intprops test: Strengthen on clang.
[gnulib.git] / ChangeLog
blob0810c1106ce676d760950112de940ae3bfac67d7
1 2020-08-16  Bruno Haible  <bruno@clisp.org>
3         intprops test: Strengthen on clang.
4         * tests/test-intprops.c (VERIFY): Use verify_stmt.
6 2020-08-16  Bruno Haible  <bruno@clisp.org>
8         nstrftime: Guide inlining also on clang.
9         * lib/nstrftime.c (iso_week_days): Inline also on clang.
11 2020-08-16  Bruno Haible  <bruno@clisp.org>
13         intprops: Avoid bogus "warning: division by zero is undefined" on clang.
14         * lib/intprops.h (_GL__GENERIC_BOGUS): Define to 1 on clang.
16 2020-08-16  Bruno Haible  <bruno@clisp.org>
18         log2l: Disable MSVC workaround on clang.
19         * lib/log2l.c (log2l): On clang, use the expression 0.0L/0.0L.
21 2020-08-16  Bruno Haible  <bruno@clisp.org>
23         argp: Emit a warning also with clang.
24         * lib/argp-help.c (__argp_short_program_name): Use #warning also on
25         clang.
27 2020-08-16  Bruno Haible  <bruno@clisp.org>
29         libc-config: Enable __REDIRECT macro also on clang.
30         * lib/cdefs.h (__REDIRECT, __REDIRECT_NTH, __REDIRECT_NTHNL, __ASMNAME,
31         __ASMNAME2): Define on clang like on GCC.
33 2020-08-16  Bruno Haible  <bruno@clisp.org>
35         regex: Use initializer shorthand syntax also with clang.
36         * lib/regcomp.c (utf8_sb_map): Use the initializer shorthand syntax also
37         with clang.
39 2020-08-16  Bruno Haible  <bruno@clisp.org>
41         regex: Use space optimization also with clang.
42         * lib/regex_internal.h (re_token_t): Use a single byte for the type also
43         with clang.
45 2020-08-16  Bruno Haible  <bruno@clisp.org>
47         Use _Static_assert and static_assert primitives when present on clang.
48         * lib/cdefs.h (_Static_assert): Don't define as a macro on clang.
49         * lib/verify.h (_GL_HAVE__STATIC_ASSERT, _GL_HAVE__STATIC_ASSERT1,
50         _GL_HAVE_STATIC_ASSERT1): Define as appropriate on clang.
52 2020-08-16  Bruno Haible  <bruno@clisp.org>
54         Use 'throw ()' for optimization in C++ mode also on clang.
55         * lib/cdefs.h (__THROW): Define to 'throw ()' also on clang.
56         * lib/getopt-cdefs.in.h (__THROW): Likewise.
57         * lib/md5.h (__THROW): Likewise.
59 2020-08-16  Bruno Haible  <bruno@clisp.org>
61         absolute-header: Add support for clang.
62         * modules/absolute-header (Makefile.am): Include '__clang__' in the
63         HAVE_INCLUDE_NEXT expression.
65 2020-08-16  Bruno Haible  <bruno@clisp.org>
67         Fix "warning: implicitly declaring library function 'strcasecmp'".
68         * lib/argp-help.c: Include <strings.h>.
70 2020-08-16  Bruno Haible  <bruno@clisp.org>
72         stdio: Don't break attribute 'scanf' on clang.
73         * lib/stdio.in.h (scanf): Treat clang like GCC.
75 2020-08-16  Bruno Haible  <bruno@clisp.org>
77         Use __restrict also on clang.
78         * lib/argp.h (__restrict): Don't define as a macro on clang >= 3.
79         * lib/glob.in.h (_Restrict_): Use __restrict on clang >= 3.
80         * lib/unitypes.in.h (_UC_RESTRICT): Likewise.
82 2020-08-16  Bruno Haible  <bruno@clisp.org>
84         pthread-spin: Use GCC built-ins also on clang.
85         * lib/pthread-spin.c (pthread_spin_init, pthread_spin_lock,
86         pthread_spin_trylock, pthread_spin_unlock): Use the newer GCC built-ins
87         also on clang.
89 2020-08-16  Bruno Haible  <bruno@clisp.org>
91         asyncsafe-spin tests: Update.
92         * tests/test-asyncsafe-spin2.c: Update to match the change in
93         lib/asyncsafe-spin.c from 2020-08-11.
95 2020-08-16  Bruno Haible  <bruno@clisp.org>
97         setenv: Use tree code also with clang.
98         * lib/setenv.c (USE_TSEARCH): Treat clang like GCC.
100 2020-08-16  Bruno Haible  <bruno@clisp.org>
102         math: Optimize signbit also on clang.
103         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Optimize also
104         on clang.
106 2020-08-16  Bruno Haible  <bruno@clisp.org>
108         avltreehash-list, rbtreehash-list: Optimize also on clang.
109         * lib/gl_anytreehash_list1.h (add_nodes_to_buckets): Use
110         __builtin_expect also on clang.
112 2020-08-16  Bruno Haible  <bruno@clisp.org>
114         Fix "warning: 'WSASocketA' is deprecated: Use WSASocketW() instead".
115         * lib/socket.c: Use WSASocketW, not WSASocketA.
117         Fix "warning: format specifies type 'unsigned long'".
118         * tests/test-nonblocking-writer.h (main_writer_loop): Cast dbgfprintf
119         argument to match the format directive.
121         Fix "warning: no case matching constant switch condition '0'".
122         * tests/test-fcntl.c (check_flags): Add a 'default' case.
124         Fix "warning: integer overflow in expression".
125         * tests/test-strtol.c (main): Use an 'unsigned long' expression to
126         remove a 'long' overflow.
128         Fix "warning: "getpagesize" redefined".
129         * tests/test-getcwd.c (getpagesize): Don't redefine if defined as a
130         macro.
132         Fix "warning: implicitly declaring library function 'strncasecmp'".
133         * lib/strptime.c: Include <strings.h>.
135         Fix "warning: 'snprintf' macro redefined".
136         * lib/strerror_r.c (snprintf): Undefine before redefining.
138         Fix "warning: address of array 'locale' will always evaluate to 'true'".
139         * lib/nl_langinfo.c (ctype_codeset): Remove redundant NULL test.
141         Fix "warning: '__stat64' macro redefined".
142         * lib/glob.c (__stat64): Undefine also on MSVC/clang.
144         Fix "warning: 'format' attribute argument not supported: rpl_printf".
145         * lib/stdio.in.h (printf): Treat clang like GCC.
147         Fix "warning: attribute declaration must precede definition" with clang.
148         * lib/math.in.h (acosl, asinl, atanl, ceill, cosl, expl, fabsf, fabsl,
149         floorl, fmodl, frexpf, frexpl, hypotf, hypotl, ldexpf, ldexpl, logl,
150         log10l, modfl, sinl, sqrtl, tanl): Disable _GL_CXXALIASWARN invocation
151         on non-glibc systems.
152         * lib/netdb.in.h (gai_strerror): Likewise.
153         * lib/stdio.in.h (snprintf, vfscanf, vscanf, vsnprintf): Likewise.
154         * lib/sys_stat.in.h (fstat): Likewise.
155         * lib/utime.in.h (utime): Likewise.
157         Fix undesired warnings.
158         * lib/sys_select.in.h: Disable all _GL_WARN_ON_USE invocations with
159         clang.
161 2020-08-16  Bruno Haible  <bruno@clisp.org>
163         C++ tests: Fix link errors on MSVC (regression from 2020-05-31).
164         * modules/stdio-c++-tests (Makefile.am): Link test-stdio-c++ with
165         $(LIB_GETRANDOM), needed for the rpl_tmpfile symbol.
166         * modules/stdlib-c++-tests (Makefile.am): Link test-stdlib-c++ with
167         $(LIB_GETRANDOM), needed for the mkdtemp and mkstemp symbols.
169 2020-08-16  Bruno Haible  <bruno@clisp.org>
171         Don't use Autoconf quadrigraphs.
172         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA): Use '#' instead of the corresponding
173         Autoconf quadrigraph.
174         * m4/free.m4 (gl_FUNC_FREE): Likewise.
175         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
176         * m4/largefile.m4 (_AC_SYS_LARGEFILE_TEST_INCLUDES,
177         _AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
178         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
179         * m4/math_h.m4 (gl_MATH_H): Likewise.
180         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Likewise.
182 2020-08-16  Bruno Haible  <bruno@clisp.org>
184         Fix quoting of AC_LANG_PROGRAM arguments.
185         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Quote the AC_LANG_PROGRAM
186         arguments through [[...]].
187         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
188         * m4/fpurge.m4 (gl_FUNC_FPURGE): Likewise.
189         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
190         * m4/ld-output-def.m4 (gl_LD_OUTPUT_DEF): Likewise.
191         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Likewise.
192         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
193         * m4/mountlist.m4 (gl_MOUNTLIST): Likewise.
194         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
195         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
196         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Likewise.
197         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Likewise.
198         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Likewise.
199         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
201 2020-08-16  Bruno Haible  <bruno@clisp.org>
203         Assume autoconf >= 2.64.
204         * gnulib-tool (DEFAULT_AUTOCONF_MINVERSION): Set to 2.64.
205         * DEPENDENCIES: Require Autoconf 2.64 or newer.
206         * NEWS: Mention the changed requirement.
207         * m4/00gnulib.m4 (_m4_divert_diversion, AC_DEFUN_ONCE): Remove macros.
208         * m4/gnulib-common.m4 (AS_VAR_IF, AS_VAR_COPY): Remove macros.
209         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Quote pushdef'ed
210         variables.
211         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
212         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Likewise.
213         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Likewise.
214         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C), gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++),
215         gl_UNKNOWN_WARNINGS_ARE_ERRORS(Objective C)): Define through AC_DEFUN.
216         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C), gl_MANYWARN_ALL_GCC(C++)):
217         Likewise.
218         * m4/iconv.m4 (AM_ICONV): Define through AC_DEFUN_ONCE directly.
219         * m4/libunistring.m4 (gl_LIBUNISTRING): Likewise.
220         * m4/configmake.m4: Update comment.
222 2020-08-16  Bruno Haible  <bruno@clisp.org>
224         sys_ioctl: Simplify.
225         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Remove confusing use of
226         AC_INCLUDES_DEFAULT.
228 2020-08-16  Bruno Haible  <bruno@clisp.org>
230         Fix quoting of AC_LANG_SOURCE arguments.
231         * m4/printf.m4 (gl_PRINTF_ENOMEM): Fix an m4 quoting bug in the
232         GL_NOCRASH expansion.
233         * m4/locale-ar.m4 (gt_LOCALE_AR): Simplify m4 quoting.
234         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
235         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
236         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
237         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
239 2020-08-15  Paul Eggert  <eggert@cs.ucla.edu>
241         nstrftime: be more predictable about errno
242         This aligns nstrftime better with draft POSIX 202x strftime.
243         * lib/nstrftime.c: Include errno.h.
244         (width_add, __strftime_internal): Set errno on failure,
245         and preserve it on success.  Check for mktime_z failure.
246         * modules/nstrftime (Depends-on): Add errno.
247         * modules/nstrftime-tests (Depends-on): Add atoll, intprops.
248         * tests/test-nstrftime.c: Include intprops.h, limits.h.
249         (errno_test): New test function.
250         (main): Call it.
252 2020-08-15  Bruno Haible  <bruno@clisp.org>
254         canonicalize: Fix a problem of the autoconf test on MSVC/clang.
255         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Remove undesired file
256         from dependency analysis first.
258 2020-08-15  Bruno Haible  <bruno@clisp.org>
260         Determine asm output option and filename suffix for MSVC/clang.
261         * m4/asm-underscore.m4 (gl_C_ASM): Distinguish clang from cl and
262         clang-cl.
264 2020-08-15  Bruno Haible  <bruno@clisp.org>
266         doc: Update for MSVC/clang.
267         * doc/*-functions/*printf.texi: Mention that MSVC/clang has two bugs
268         that MSVC 14 does not have.
270 2020-08-15  Bruno Haible  <bruno@clisp.org>
272         Revert autoupdate's revert.
273         * config/srclist.txt: Mark mktime.c as needing sync with glibc.
275 2020-08-15  Bruno Haible  <bruno@clisp.org>
277         frexpl: Fix configuration test result on MSVC.
278         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Avoid a division by a constant
279         zero.
281 2020-08-15  Bruno Haible  <bruno@clisp.org>
283         Support compiling without -loldnames on native Windows.
284         * m4/gnulib-common.m4 (GL_MDA_DEFINES, _GL_MDA_DEFINES): New macros.
285         * m4/chown.m4 (AC_FUNC_CHOWN): In the test programs, use GL_MDA_DEFINES.
286         (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
287         * m4/dup.m4 (gl_FUNC_DUP): Likewise.
288         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
289         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
290         * m4/fchmodat.m4 (gl_FUNC_FCHMODAT): Likewise.
291         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): Likewise.
292         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
293         * m4/fcntl.m4 (gl_FUNC_FCNTL): Likewise.
294         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Likewise.
295         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Likewise.
296         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Likewise.
297         * m4/fopen.m4 (gl_FUNC_FOPEN_GNU): Likewise.
298         * m4/freopen.m4 (gl_FUNC_FREOPEN): Likewise.
299         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
300         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
301         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
302         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL, gl_FUNC_GETCWD_SIGNATURE):
303         Likewise.
304         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Likewise.
305         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
306         * m4/lseek.m4 (gl_FUNC_LSEEK): Likewise.
307         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
308         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
309         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Likewise.
310         * m4/open-slash.m4 (gl_OPEN_TRAILING_SLASH_BUG): Likewise.
311         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
312         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
313         * m4/pread.m4 (gl_FUNC_PREAD): Likewise.
314         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
315         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Likewise.
316         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Likewise.
317         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
318         * m4/pwrite.m4 (gl_FUNC_PWRITE): Likewise.
319         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
320         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
321         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
322         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
323         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
324         * m4/strncat.m4 (gl_FUNC_STRNCAT): Likewise.
325         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
326         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
327         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
328         * m4/utimens.m4 (gl_UTIMENS): Likewise.
329         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
330         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
331         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): On native Windows, don't
332         test for getcwd.
333         * m4/utime.m4 (gl_FUNC_UTIME): On native Windows, don't test for utime.
334         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): To test for wcsdup, use a test program
335         with GL_MDA_DEFINES.
336         * lib/c++defs.h (_GL_CXXALIAS_MDA): New macro.
337         * lib/fcntl.in.h (creat, open):  On native Windows, use the underscore-
338         prefixed symbol.
339         * lib/search.in.h (lfind, lsearch): Likewise.
340         * lib/stdio.in.h (fcloseall, fdopen, fileno, getw, putw, tempnam):
341         Likewise.
342         * lib/stdlib.in.h (ecvt, fcvt, gcvt, mktemp, putenv): Likewise.
343         * lib/string.in.h (memccpy, strdup): Likewise.
344         * lib/sys_stat.in.h (chmod, umask): Likewise.
345         * lib/time.in.h (tzset): Likewise.
346         * lib/unistd.in.h (access, chdir, close, dup, dup2, execl, execle,
347         execlp, execv, execve, execvp, execvpe, getcwd, getpid, isatty, lseek,
348         read, rmdir, swab, unlink, write): Likewise.
349         * lib/utime.in.h (utime): Likewise.
350         * lib/wchar.in.h (wcsdup): Likewise.
351         * lib/math.in.h (j0, j1, jn, y0, y1, yn):  Likewise.
352         (isfinite, isinf, isnan, signbit): On native Windows, don't define as an
353         rpl_-prefixed macro.
354         * lib/canonicalize-lgpl.c (__getcwd): On native Windows, use _getcwd.
355         * lib/close.c (close_nothrow): On native Windows, use _close.
356         * lib/creat.c (orig_creat): On native Windows, use _creat.
357         * lib/dup.c (dup_nothrow): On native Windows, use _dup.
358         * lib/dup2.c (dup2_nothrow): Use _dup2.
359         * lib/fdopen.c (fdopen_nothrow): On native Windows, use _fdopen.
360         * lib/getcwd-lgpl.c: On native Windows, use _getcwd.
361         * lib/getcwd.c (getcwd_nothrow): Use _getcwd also on mingw.
362         * lib/open.c (orig_open): On native Windows, use _open.
363         * lib/read.c (read_nothrow): Use _read.
364         * lib/rmdir.c: On native Windows, use _rmdir.
365         * lib/unlink.c: On native Windows, use _unlink.
366         * lib/write.c (write_nothrow): Use _write.
367         * lib/sys_select.in.h (close): With clang, don't attach a warning on an
368         undefined symbol.
369         * lib/sys_socket.in.h (close): Likewise.
370         * lib/sys_time.in.h (close): Likewise.
371         * tests/test-spawn-pipe-child.c: On native Windows, use _fdopen.
373 2020-08-15  Bruno Haible  <bruno@clisp.org>
375         Fix "unknown pragma ignored" warnings with clang on native Windows.
376         * lib/cbrt.c: Don't use '#pragma fenv_access (off)' with clang.
377         * lib/cbrtf.c: Likewise.
378         * lib/ceil.c: Likewise.
379         * lib/floor.c: Likewise.
380         * lib/fma.c: Likewise.
381         * lib/fmod.c: Likewise.
382         * lib/rint.c: Likewise.
383         * lib/round.c: Likewise.
384         * lib/trunc.c: Likewise.
385         * tests/test-ceil2.c: Likewise.
386         * tests/test-ceilf2.c: Likewise.
387         * tests/test-floor2.c: Likewise.
388         * tests/test-floorf2.c: Likewise.
389         * tests/test-trunc2.c: Likewise.
390         * tests/test-truncf2.c: Likewise.
391         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
392         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
394 2020-08-15  Bruno Haible  <bruno@clisp.org>
396         Fix compilation errors in C++ mode with clang on native Windows.
397         * lib/pthread.in.h (pthread_*): Disable _GL_CXXALIASWARN invocation on
398         non-glibc systems.
399         * lib/sched.in.h (sched_yield): Likewise.
401 2020-08-14  Bruno Haible  <bruno@clisp.org>
403         stdnoreturn: Work around problem with MSVC/clang.
404         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): On native Windows, include some
405         system header after <stdnoreturn.h>.
406         * doc/posix-headers/stdnoreturn.texi: Mention the issue.
408 2020-08-14  Bruno Haible  <bruno@clisp.org>
410         utime-h: Generate an utime.h file always.
411         * modules/utime-h (Makefile.am): Generate utime.h always.
412         * m4/utime_h.m4 (gl_UTIME_H): Don't set UTIME_H. Don't define
413         GL_GENERATE_UTIME_H.
415 2020-08-14  Bruno Haible  <bruno@clisp.org>
417         mktime, mktime-internal: Remove obsolete code.
418         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Don't #undef putenv.
420 2020-08-14  Bruno Haible  <bruno@clisp.org>
422         getcwd: Remove obsolete code.
423         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Don't #undef mkdir.
424         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
426 2020-08-14  Bruno Haible  <bruno@clisp.org>
428         tzset: Assume the function exists.
429         * lib/time.in.h (tzset): Assume HAVE_TZSET is 1.
430         * lib/tzset.c: Define rpl_tzset, not tzset. Assume HAVE_TZSET is 1.
431         * modules/tzset (configure.ac): Don't test HAVE_TZSET.
432         * m4/tzset.m4 (gl_FUNC_TZSET): Don't test for tzset. Don't set
433         HAVE_TZSET.
434         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Don't initialize HAVE_TZSET.
435         * modules/time (Makefile.am): Don't substitute HAVE_TZSET.
437         nstrftime: Assume tzset exists.
438         * lib/nstrftime.c (HAVE_TZSET): Remove macro.
439         (__strftime_internal): Test my_strftime, not HAVE_TZSET.
440         * m4/nstrftime.m4 (gl_FUNC_GNU_STRFTIME): Don't test for tzset.
442         mktime, mktime-internal: Assume tzset exists.
443         * lib/mktime.c (my_tzset): Assume HAVE_TZSET is 1.
444         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Don't test for tzset.
446 2020-08-14  Bruno Haible  <bruno@clisp.org>
448         strdup: Assume the function exists.
449         * m4/strdup.m4 (gl_FUNC_STRDUP, gl_FUNC_STRDUP_POSIX): Don't test
450         whether strdup exists.
451         * modules/strdup (Files): Remove lib/strdup.c.
452         (configure.ac): Don't compile strdup.c.
453         * modules/strdup-posix (Depends-on, configure.ac): Don't test
454         ac_cv_func_strdup.
455         * doc/posix-functions/strdup.texi: Update.
456         * lib/unistr/u8-strdup.c: Assume HAVE_STRDUP is 1.
457         * modules/unistr/u8-strdup (Files): Remove lib/unistr/u-strdup.h.
458         (Depends-on): Remove unistr/u8-strlen.
460 2020-08-13  Bruno Haible  <bruno@clisp.org>
462         sys_random: Work around an uClibc bug.
463         Reported by akater <nuclearspace@gmail.com>
464         via Stefan Kangas <stefan@marxist.se>
465         in <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=42236>.
466         * lib/sys_random.in.h: On uClibc, include <stddef.h> first.
467         * m4/sys_random_h.m4 (gl_HEADER_SYS_RANDOM): Update comment.
468         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Likewise.
469         * doc/glibc-headers/sys_random.texi: Mention the uClibc bug.
471 2020-08-12  Bruno Haible  <bruno@clisp.org>
473         Avoid implicit conversion from 'unsigned int' to 'int' in initializers.
474         Reported by Florian Weimer in
475         <https://lists.gnu.org/archive/html/bug-gnulib/2020-08/msg00086.html>.
476         * lib/gen-uni-tables.c (output_predicate): Change the element type of
477         the level3 array to 'unsigned int'.
478         * lib/unictype/bitmap.h (bitmap_lookup): Access an 'unsigned int'.
479         * lib/unictype/categ_*.h: Regenerated.
480         * lib/unictype/ctype_*.h: Regenerated.
481         * lib/unictype/pr_*.h: Regenerated.
482         * lib/unictype/sy_*.h: Regenerated.
483         * lib/unicase/cased.h: Regenerated.
484         * lib/unicase/ignorable.h: Regenerated.
486 2020-08-12  Paul Eggert  <eggert@cs.ucla.edu>
488         stdint: port intptr_t to more-recent MinGW
489         Problem reported by Eli Zaretskii in <https://bugs.gnu.org/36597#106>.
490         * lib/stdint.in.h (intptr_t, uintptr_t): Do not define on MinGW,
491         even if _INTPTR_T_DEFINED and _UINTPTR_T_DEFINED are not defined.
492         Apparently those two macros were removed in mingwrt-3.22
493         dated 2016-07-14.
495 2020-08-12  Bruno Haible  <bruno@clisp.org>
497         thread-optim: Export function-like macros only.
498         Suggested by Paul Eggert.
499         * lib/thread-optim.h (gl_multithreaded): New macro.
500         (IF_MT_DECL, IF_MT): Remove macros.
501         * doc/multithread.texi (Multithreading Optimizations): Add a small
502         example.
503         * lib/fatal-signal.c: Update all uses.
504         * lib/clean-temp.c: Likewise.
505         * lib/localename.c: Likewise.
506         * modules/localename (Depends-on): Add stdbool.
508 2020-08-12  Bruno Haible  <bruno@clisp.org>
510         Revert autoupdate's revert.
511         * config/srclist.txt: Mark regex.h as needing sync with glibc.
513 2020-08-11  Bruno Haible  <bruno@clisp.org>
515         thread-optim: Fix a compiler warning.
516         * lib/thread-optim.h (IF_MT_DECL): Define differently.
518 2020-08-11  Bruno Haible  <bruno@clisp.org>
520         Use __restrict also on clang.
521         * lib/cdefs.h (__restrict): Don't define as a macro on clang.
522         (__restrict_arr): On clang, define like on GCC.
523         * lib/regex.h (_Restrict_): Use '__restrict' also on clang.
524         (_Restrict_arr_): Use _Restrict_ also on clang.
525         * lib/spawn.in.h (_Restrict_): Use '__restrict' also on clang.
526         (_Restrict_arr_): Use _Restrict_ also on clang.
528 2020-08-11  Bruno Haible  <bruno@clisp.org>
530         Use flexible array syntax also on clang.
531         * lib/cdefs.h (__flexarr, __glibc_c99_flexarr_available): For clang,
532         define like for GCC 3.
534 2020-08-11  Bruno Haible  <bruno@clisp.org>
536         fcntl: On native Windows, use _setmode, not setmode.
537         * lib/fcntl.c (dupfd): Use _setmode, not setmode.
538         * lib/binary-io.h: Update comment.
539         * tests/test-cloexec.c: Call set_binary_mode, not setmode.
540         * tests/test-dup2.c: Likewise.
541         * tests/test-dup-safer.c: Likewise.
542         * tests/test-fcntl.c: Likewise.
544 2020-08-11  Bruno Haible  <bruno@clisp.org>
546         execute, spawn-pipe: Use _spawnvpe, not spawnvpe.
547         * lib/execute.c (execute): Use _spawnvpe, not spawnvpe.
548         * lib/spawn-pipe.c (create_pipe): Likewise.
549         * tests/test-nonblocking-pipe-main.c (main): Likewise.
550         * tests/test-nonblocking-socket-main.c (main): Likewise.
551         * lib/wait-process.c: Update comment.
552         * doc/posix-functions/fork.texi: Update.
554 2020-08-11  Bruno Haible  <bruno@clisp.org>
556         asyncsafe-spin: Use GCC built-ins also on clang.
557         * lib/asyncsafe-spin.c (asyncsafe_spin_init, do_lock, do_unlock): Use
558         the newer GCC built-ins also on clang.
560 2020-08-11  Bruno Haible  <bruno@clisp.org>
562         Use expression statements also on clang.
563         * lib/cdefs.h (__extension__): Don't define to empty on clang.
564         * lib/obstack.h (__extension__): Likewise.
565         (obstack_object_size, obstack_room, obstack_make_room, obstack_empty_p,
566         obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
567         obstack_int_grow, obstack_ptr_grow_fast, obstack_int_grow_fast,
568         obstack_blank, obstack_alloc, obstack_copy, obstack_copy0,
569         obstack_finish, obstack_free): Enable as optimized macros also on clang.
570         * lib/fpucw.h (fpucw_t etc.): Enable the definitions also on clang.
572 2020-08-10  Bruno Haible  <bruno@clisp.org>
574         Use many __attribute__s with clang.
575         * m4/gnulib-common.m4 (_Noreturn): Use __attribute__ __noreturn__ also
576         on clang.
577         * lib/cdefs.h (__glibc_clang_has_attribute, __glibc_clang_has_builtin):
578         New macros.
579         (__THROW, __THROWNL, __NTH, __NTHNL): Use __attribute__ __nothrow__ also
580         on clang.
581         (__warndecl, __warnattr, __errordecl): Use __attribute__ __diagnose_if__
582         also on older clang versions.
583         (__attribute__): Don't define to empty on clang.
584         (__attribute_malloc__): Use __attribute__ __malloc__ also on clang.
585         (__attribute_pure__): Use __attribute__ __pure__ also on clang.
586         (__attribute_const__): Use __attribute__ __const__ also on clang.
587         (__attribute_used__): Use __attribute__ __used__ also on clang.
588         (__attribute_noinline__): Use __attribute__ __noinline__ also on clang.
589         (__attribute_deprecated__): Use __attribute__ __deprecated__ also on
590         clang.
591         (__attribute_format_arg__): Use __attribute__ __format_arg__ also on
592         clang.
593         (__attribute_format_strfmon__): Use __attribute__ __format__ __strfmon__
594         also on clang.
595         (__nonnull): Use __attribute__ __nonnull__ also on clang.
596         (__attribute_warn_unused_result__): Use __attribute__
597         __warn_unused_result__ also on clang.
598         (__always_inline): Use __attribute__ __always_inline__ also on clang.
599         (__attribute_artificial__): Use __attribute__ __artificial__ also on
600         clang >= 7.
601         (__glibc_unlikely, __glibc_likely): Use __builtin_expect also on older
602         clang versions.
603         (_Noreturn): Don't redefine on clang >= 3.5.
604         * lib/arg-nonnull.h (_GL_ARG_NONNULL): Use __attribute__ __nonnull__
605         also on clang.
606         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Use __attribute__ __pure__ also
607         on clang.
608         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Likewise.
609         * lib/string.in.h (_GL_ATTRIBUTE_PURE): Likewise.
610         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Likewise.
611         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT): Use __attribute__ __format__
612         also on clang.
613         * lib/monetary.in.h (_GL_ATTRIBUTE_FORMAT): Likewise.
614         * lib/textstyle.in.h (ostream_printf, ostream_vprintf): Likewise.
615         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST): Use __attribute__ __const__
616         also on clang.
617         (_UC_ATTRIBUTE_PURE): Use __attribute__ __pure__ also on clang.
618         * lib/noreturn.h (_GL_NORETURN_FUNC, _GL_NORETURN_FUNCPTR): Use
619         __attribute__ __noreturn__ also on clang.
620         * lib/obstack.h (__attribute_noreturn__): Likewise.
621         * lib/file-set.h (record_file): Use __attribute__ __nonnull__ also on
622         clang.
623         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__
624         always_inline also on clang.
625         * tests/test-printf-posix.c (func1, func2, func3, func4): Test also on
626         clang.
628 2020-08-10  Bruno Haible  <bruno@clisp.org>
630         c-ldtoastr tests: Fix test failure.
631         * tests/test-c-ldtoastr.c (main): Support platforms where 'long double'
632         is longer than 'double'.
634 2020-08-10  Bruno Haible  <bruno@clisp.org>
636         Revert autoupdate's revert.
637         * config/srclist.txt: Mark intprops.h as needing sync with glibc.
639 2020-08-09  Bruno Haible  <bruno@clisp.org>
641         string: Fix build error in C++ mode with clang (regression from today).
642         * lib/warn-on-use.h (_GL_WARN_ON_USE_CXX): Expect two rettype
643         parameters, one for GCC, one for clang.
644         * lib/c++defs.h (_GL_CXXALIASWARN1_2): Update.
645         * lib/string.in.h (strchr, strpbrk, strrchr): For clang, pass 'char *'
646         as return type.
648 2020-08-09  Bruno Haible  <bruno@clisp.org>
650         ftruncate: Use _chsize, not chsize.
651         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Test for _chsize, not chsize.
652         * lib/ftruncate.c: Test HAVE__CHSIZE.
653         (chsize_nothrow): Use _chsize, not chsize.
655 2020-08-09  Bruno Haible  <bruno@clisp.org>
657         Silence warnings from clang 10 with -Wimplicit-fallthrough.
658         * lib/dfa.c (FALLTHROUGH): Use __attribute__ __fallthrough__ also on
659         clang >= 10.
660         * lib/fnmatch.c (FALLTHROUGH): Likewise.
661         * lib/fts.c (FALLTHROUGH): Likewise.
662         * tests/macros.h (FALLTHROUGH): Likewise.
663         * lib/regex_internal.h (FALLTHROUGH): Likewise.
664         * config/srclist.txt: Mark it as needing sync with glibc.
666 2020-08-09  Bruno Haible  <bruno@clisp.org>
668         stdbool tests: Enable the stricter tests also on clang.
669         * tests/test-stdbool.c (ADDRESS_CHECK_OKAY): Define also on clang.
670         (e): Enable the address-to-bool conversion test also on clang.
672 2020-08-09  Bruno Haible  <bruno@clisp.org>
674         count-one-bits: Use __builtin_popcount{,l,ll} on clang.
675         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the GCC built-in.
677 2020-08-09  Bruno Haible  <bruno@clisp.org>
679         Use attribute __aligned__ with clang.
680         * lib/stdalign.in.h (_Alignas): Treat clang like GCC.
681         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS): Likewise.
683 2020-08-09  Bruno Haible  <bruno@clisp.org>
685         Use __alignof__ with clang.
686         * m4/stddef_h.m4 (gl_STDDEF_H): Test the alignment of max_align_t also
687         on clang.
688         * lib/alignof.h (alignof_type): Use __alignof__ also on clang.
689         * lib/stdalign.in.h (_Alignof): Don't activate the GCC workaround on
690         clang.
691         * lib/malloca.h (sa_alignof): Use __alignof__ also on clang.
692         * lib/bitset/list.c (lbitset_elt_alloc): Use __alignof__ also on clang.
693         * lib/bitset/table.c (tbitset_elt_alloc): Likewise.
694         * tests/test-stddef.c: Very the behaviour of __alignof__ also on clang.
696 2020-08-09  Bruno Haible  <bruno@clisp.org>
698         ignore-value: Simplify on clang.
699         * lib/ignore-value.h (ignore_value): With clang, no need to use the GCC
700         workaround.
702 2020-08-09  Bruno Haible  <bruno@clisp.org>
704         Use __typeof__ with clang.
705         * m4/stdint.m4 (gl_STDINT_H): Check for SIZE_MAX also on
706         "clang -std=gnu99".
707         * lib/intprops.h (_GL_HAVE___TYPEOF__): Define to 1 also on clang.
708         * tests/test-stdint.c (verify_same_types): Enable the check also on
709         clang.
711 2020-08-09  Bruno Haible  <bruno@clisp.org>
713         Add ability to emit user-defined warnings and errors with clang.
714         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _GL_ATTRIBUTE_ERROR,
715         _GL_ATTRIBUTE_WARNING using an attribute for clang.
716         * lib/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_ATTRIBUTE,
717         _GL_WARN_ON_USE_CXX): Define using an attribute for clang.
718         * lib/cdefs.h (__warndecl, __warnattr, __errordecl): Define using an
719         attribute for clang.
721 2020-08-09  Bruno Haible  <bruno@clisp.org>
723         intprops: Fix typo in comment.
724         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_P): Fix typo in comment.
726 2020-08-09  Bruno Haible  <bruno@clisp.org>
728         Use __builtin_signbit* with clang.
729         * lib/math.in.h (signbit): Use __builtin_signbit{,f,l} also on clang.
730         * m4/signbit.m4 (gl_SIGNBIT): Use __builtin_signbit{,f,l} also on clang.
731         Set REPLACE_SIGNBIT_USING_BUILTINS, not REPLACE_SIGNBIT_USING_GCC.
732         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
733         REPLACE_SIGNBIT_USING_BUILTINS, not REPLACE_SIGNBIT_USING_GCC.
734         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_BUILTINS,
735         not REPLACE_SIGNBIT_USING_GCC.
737 2020-08-09  Bruno Haible  <bruno@clisp.org>
739         Use __builtin_isnan with clang.
740         * lib/isnanf-nolibm.h (isnanf): Use the GCC built-in __builtin_isnan,
741         not __builtin_isnanf. Also on clang.
742         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Use the GCC
743         built-in __builtin_isnan, not __builtin_isnanf. Also on clang.
744         * lib/isnand-nolibm.h (isnand): With clang, use the GCC built-in.
745         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): With clang, use the GCC
746         built-in.
747         * lib/isnanl-nolibm.h (isnanf): Use the GCC built-in __builtin_isnan,
748         not __builtin_isnanl. Also on clang.
749         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_FUNC_ISNANL_WORKS): Use the
750         GCC built-in __builtin_isnan, not __builtin_isnanl. Also on clang.
751         * lib/math.in.h (__has_builtin): Remove macro.
752         (isnanf, gl_isnan_f): Use the GCC built-in __builtin_isnan, not
753         __builtin_isnanf. Also on clang.
754         (isnand, gl_isnan_d): With clang, use the GCC built-in.
755         (isnanl, gl_isnan_l): Use the GCC built-in __builtin_isnan, not
756         __builtin_isnanl. Also on clang.
757         (isnan): Use the GCC built-in __builtin_isnan in all three cases. Also
758         on clang.
760 2020-08-09  Bruno Haible  <bruno@clisp.org>
762         thread-optim: Fix logic error.
763         Reported by Paul Eggert.
764         * lib/thread-optim.h (IF_MT): Fix logic error.
766 2020-08-08  Bruno Haible  <bruno@clisp.org>
768         localename: Use module 'thread-optim'.
769         * lib/localename.c: Include thread-optim.h.
770         (struniq): Use IF_MT macro.
771         * modules/localename (Depends-on): Add thread-optim.
773         clean-temp: Use module 'thread-optim'.
774         * lib/clean-temp.c: Include thread-optim.h.
775         (register_temporary_file, unregister_temporary_file, create_temp_dir,
776         register_temp_file, unregister_temp_file, register_temp_subdir,
777         unregister_temp_subdir, cleanup_temp_dir_contents, register_fd,
778         close_temp, fclose_variant_temp): Use IF_MT macro.
779         * modules/clean-temp (Depends-on): Add thread-optim.
781         fatal-signal: Use module 'thread-optim'.
782         * lib/fatal-signal.c: Include thread-optim.h.
783         (at_fatal_signal, block_fatal_signals, unblock_fatal_signals): Use IF_MT
784         macro.
785         * modules/fatal-signal (Depends-on): Add thread-optim.
787 2020-08-08  Bruno Haible  <bruno@clisp.org>
789         New module 'thread-optim'.
790         * lib/thread-optim.h: New file.
791         * modules/thread-optim: New file.
792         * doc/multithread.texi (Multithreading Optimizations): New section.
794 2020-08-07  Paul Eggert  <eggert@cs.ucla.edu>
796         doc: more updates for glibc 2.32
797         * doc/glibc-functions/lchmod.texi, doc/posix-functions/faccessat.texi:
798         * doc/posix-functions/fchmodat.texi: Update.
800 2020-08-07  Bruno Haible  <bruno@clisp.org>
802         doc: Update for glibc 2.32.
803         * doc/glibc-functions/__libc_single_threaded.texi: New file.
804         * doc/glibc-functions/pthread_attr_getsigmask_np.texi: New file.
805         * doc/glibc-functions/pthread_attr_setsigmask_np.texi: New file.
806         * doc/glibc-functions/sigabbrev_np.texi: New file.
807         * doc/glibc-functions/sigdescr_np.texi: New file.
808         * doc/glibc-functions/strerrordesc_np.texi: New file.
809         * doc/glibc-functions/strerrorname_np.texi: New file.
810         * doc/gnulib.texi: Include them.
811         (Glibc sys/single_threaded.h): New section.
812         * doc/pastposix-functions/h_errno.texi: Update.
813         * doc/posix-functions/*.texi: Likewise.
814         * doc/glibc-functions/*.texi: Likewise.
816 2020-08-07  Bruno Haible  <bruno@clisp.org>
818         alloca: No need to compile alloca.c with clang.
819         * lib/alloca.c: Skip all code with clang.
821         Use __builtin_alloca with clang.
822         * lib/alloca.in.h (alloca): Define as __builtin_alloca on clang.
824 2020-08-06  Bruno Haible  <bruno@clisp.org>
826         Use __builtin_assume with clang.
827         * lib/verify.h (_GL_HAS_BUILTIN_ASSUME): New macro.
828         (assume): Use __builtin_assume when available.
830 2020-08-06  Paul Eggert  <eggert@cs.ucla.edu>
832         libgmp: add <gmp/gmp.h> support
833         * m4/libgmp.m4 (gl_LIBGMP):
834         * modules/libgmp (configure.ac, Makefile.am):
835         Support platforms requiring ‘#include <gmp/gmp.h>’ instead of
836         ‘#include <gmp.h>’.
838 2020-08-06  Bruno Haible  <bruno@clisp.org>
840         Consider that clang defines __OPTIMIZE__ like GCC does.
841         * lib/streq.h: Define the inline functions also on clang.
842         * lib/c-strcaseeq.h: Likewise.
843         * lib/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't enable
844         the GCC workaround to clang.
846 2020-08-06  Bruno Haible  <bruno@clisp.org>
848         safe-alloc: Remove unused code.
849         * lib/safe-alloc.h (__GNUC_PREREQ): Remove macro.
851 2020-08-06  Bruno Haible  <bruno@clisp.org>
853         Use __builtin_expect with clang everywhere.
854         * lib/cdefs.h (__glibc_unlikely, __glibc_likely): Use the GCC built-in
855         also on clang.
857 2020-08-05  Bruno Haible  <bruno@clisp.org>
859         Use __builtin_ctz{,l,ll} and __builtin_ffs{,l,ll} with clang everywhere.
860         * lib/count-trailing-zeros.h (COUNT_TRAILING_ZEROS): Use the GCC
861         built-in also on clang.
862         * lib/ffs.c: With clang, use the GCC built-in, not <intrin.h>.
863         * lib/ffsl.h: Likewise. Assume GCC_BUILTIN is defined.
865 2020-08-05  Bruno Haible  <bruno@clisp.org>
867         Use __builtin_clz{,l,ll} with clang, also on Windows.
868         * lib/integer_length.c: With clang, use the GCC built-in, not
869         <intrin.h>.
870         * lib/integer_length_l.c: Likewise.
871         * lib/count-leading-zeros.h (COUNT_LEADING_ZEROS): Use the GCC built-in
872         also on clang.
873         * lib/vasnprintf.c (divide): Likewise.
875 2020-08-04  Paul Eggert  <eggert@cs.ucla.edu>
877         Update srclist.txt as per recent glibc changes
878         * config/srclist.txt: Uncomment lines to reflect recent merges
879         from Gnulib to glibc.
881 2020-08-03  Bruno Haible  <bruno@clisp.org>
883         Prefer documented autoconf macro 'm4_if' over 'ifelse'.
884         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Use m4_if instead of ifelse.
886 2020-08-03  Bruno Haible  <bruno@clisp.org>
888         integer_length_ll: Optimize for MSVC in 64-bit mode.
889         * lib/integer_length_l.c (MSVC_BUILTIN): Define for MSVC in 64-bit mode.
890         (FUNC): On MSVC, use MSVC_BUILTIN if defined.
892 2020-08-03  Bruno Haible  <bruno@clisp.org>
894         integer_length_ll: Optimize for MSVC in 32-bit mode.
895         * lib/integer_length_l.c: Include <intrin.h>.
896         (integer_length): Define as inline function, like in
897         lib/integer_length.c.
899 2020-08-03  Bruno Haible  <bruno@clisp.org>
901         integer_length: Optimize for MSVC.
902         * lib/integer_length.c: Include <intrin.h>.
903         (integer_length): With MSVC, use the _BitScanReverse built-in.
905 2020-08-03  Bruno Haible  <bruno@clisp.org>
907         ffsll: Optimize for MSVC in 64-bit mode.
908         * lib/ffsl.h (FUNC): On MSVC, use MSVC_BUILTIN if defined.
909         * lib/ffsll.c (MSVC_BUILTIN): Define for MSVC in 64-bit mode.
910         * lib/ffsl.c (MSVC_BUILTIN): Define for MSVC.
912 2020-08-03  Bruno Haible  <bruno@clisp.org>
914         ffsll: Optimize for MSVC in 32-bit mode.
915         * lib/ffsl.h: Include <intrin.h>.
916         (ffs): Define as inline function, like in lib/ffs.c.
918 2020-08-03  Bruno Haible  <bruno@clisp.org>
920         ffs: Optimize for MSVC.
921         * lib/ffs.c: Include <intrin.h>.
922         (ffs): With MSVC, use the _BitScanForward built-in.
924 2020-08-03  Bruno Haible  <bruno@clisp.org>
926         sigprocmask: Try to avoid breakage for people who use an Autoconf cache.
927         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Change the name of the cache
928         variable.
930 2020-08-03  Harald van Dijk  <harald@gigawatt.nl>  (tiny change)
932         fopen: Avoid undesired interactions with glibc headers.
933         * lib/fopen.c (_GL_ALREADY_INCLUDING_STDIO_H): Define this instead of
934         __need_FILE, as the latter does not work with glibc.
936 2020-08-02  Paul Eggert  <eggert@cs.ucla.edu>
938         fcntl: document some F_SETLK errno variations
939         * doc/posix-functions/fcntl.texi (fcntl): Document
940         OpenIndiana, GNU/Linux, FreeBSD on NFS files.
942 2020-08-02  Bruno Haible  <bruno@clisp.org>
944         oset: Add an 'iterator_atleast' operation.
945         * lib/gl_array_oset.c (gl_array_indexof_atleast): New function,
946         extracted from gl_array_search_atleast.
947         (gl_array_search_atleast): Use it.
948         (gl_array_iterator_atleast): New function.
949         (gl_array_oset_implementation): Use it.
950         * lib/gl_anytree_oset.h (gl_tree_iterator_atleast): New function.
951         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Use it.
952         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Likewise.
953         * lib/gl_oset.h (struct gl_oset_implementation): Add 'iterator_atleast'
954         member.
955         (gl_oset_iterator_atleast): New function.
956         * lib/gl_oset.hh (gl_OSet): Add 'begin_atleast' member.
957         (gl_OSet::iterator): Add another auxiliary constructor.
958         * tests/test-array_oset.c (is_at_least, gl_sortedlist_indexof_atleast):
959         New functions.
960         (main): Test also gl_oset_iterator_atleast.
961         * tests/test-avltree_oset.c (is_at_least): New function.
962         (main): Test also gl_oset_iterator_atleast.
963         * tests/test-rbtree_oset.c (is_at_least): New function.
964         (main): Test also gl_oset_iterator_atleast.
965         * tests/test-oset-c++.cc (is_at_most): New function.
966         (main): Test also gl_OSet::begin_atleast.
968 2020-08-02  Bruno Haible  <bruno@clisp.org>
970         oset-c++, omap-c++: Remove restriction for search_atleast method.
971         * lib/gl_oset.hh (gl_OSet::search_atleast): Allow the threshold to be of
972         a different type than the element.
973         * lib/gl_omap.hh (gl_OMap::search_atleast): Allow the threshold to be of
974         a different type than the key.
976 2020-08-01  Paul Eggert  <eggert@cs.ucla.edu>
978         gnumakefile: say ‘$(MAKE)’ not ‘make’
979         * top/GNUmakefile (abort-due-to-no-makefile):
980         Prefer ‘$(MAKE)’ to ‘make’ in a diagnostic.
981         This change is backported from Autoconf.
983 2020-08-01  Bruno Haible  <bruno@clisp.org>
985         Prefer documented autoconf macro 'm4_if' over 'ifelse'.
986         * m4/autobuild.m4 (AB_INIT): Use m4_if instead of ifelse.
987         * m4/csharpexec.m4 (gt_CSHARPEXEC): Likewise.
988         * m4/javacomp.m4 (gt_JAVACOMP): Likewise.
989         * m4/javaexec.m4 (gt_JAVAEXEC): Likewise.
990         * m4/libtextstyle.m4 (gl_LIBTEXTSTYLE): Likewise.
992 2020-08-01  Bruno Haible  <bruno@clisp.org>
994         libtextstyle-optional: Update tests.
995         * modules/libtextstyle-optional-tests (configure.ac): Invoke
996         gl_LIBTEXTSTYLE_OPTIONAL.
998 2020-08-01  Bruno Haible  <bruno@clisp.org>
1000         parse-datetime: Fix wrong #line statements.
1001         * modules/parse-datetime (Makefile.am): Correct #line statements also in
1002         parse-datetime-gen.h.
1004 2020-08-01  Bruno Haible  <bruno@clisp.org>
1006         libtextstyle[-optional]: Allow requesting a minimum version.
1007         * m4/libtextstyle.m4 (gl_LIBTEXTSTYLE): Allow an optional argument.
1008         (gl_LIBTEXTSTYLE_NEWEST_VERSION, gl_LIBTEXTSTYLE_INITIALIZE,
1009         gl_LIBTEXTSTYLE_SEARCH): New macros.
1010         * modules/libtextstyle (configure.ac): Don't invoke gl_LIBTEXTSTYLE.
1011         * m4/libtextstyle-optional.m4 (gl_LIBTEXTSTYLE_OPTIONAL): Allow an
1012         optional argument. Invoke, not require, gl_LIBTEXTSTYLE.
1013         * modules/libtextstyle-optional (configure.ac): Don't invoke
1014         gl_LIBTEXTSTYLE_OPTIONAL.
1015         * NEWS: Mention the changes.
1017 2020-07-31  Bruno Haible  <bruno@clisp.org>
1019         _GL_CMP: Improve documentation.
1020         Reported by Paul Eggert in
1021         <https://lists.gnu.org/archive/html/bug-gnulib/2020-07/msg00188.html>.
1022         * m4/gnulib-common.m4 (gl_COMMON_BODY): Clarify what arguments can be
1023         passed.
1025 2020-07-30  Paul Eggert  <eggert@cs.ucla.edu>
1027         largefile: sync with Autoconf master
1028         * m4/largefile.m4 (_AC_SYS_LARGEFILE_TEST_INCLUDES):
1029         Avoid undefined behavior on platforms where off_t is 32 bits.
1030         See: https://bugs.debian.org/742780
1032         alloca: sync with Autoconf master
1033         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
1034         Do not define if Autoconf 2.70 or later, since Autoconf master
1035         now matches us.
1037 2020-07-30  Bruno Haible  <bruno@clisp.org>
1039         unicodeio: Add comment.
1040         * lib/unicodeio.c (unicode_to_mb): Clarify why the code distinguishes
1041         different iconv behaviours.
1043 2020-07-30  Paul Eggert  <eggert@cs.ucla.edu>
1045         Work around some Oracle Studio attribute bugs
1046         These were discovered when building bleeding-edge Emacs with
1047         Oracle Studio.
1048         * m4/gnulib-common.m4 (_GL_ATTRIBUTE_COLD, _GL_ATTRIBUTE_MAY_ALIAS):
1049         Port to Oracle Studio 12.6, which mishandles __attribute__
1050         ((__cold__)) and __attribute__ ((__may_alias__)) even though
1051         __has_attribute says they work.
1053 2020-07-29  Bruno Haible  <bruno@clisp.org>
1055         unicodeio: Fix wrong result on musl libc.
1056         Reported by A. Wilcox <awilfox@adelielinux.org> in
1057         <https://www.openwall.com/lists/musl/2020/07/29/2>.
1058         * lib/unicodeio.c (unicode_to_mb): Handle asterisk fallback characters
1059         on musl libc.
1060         * m4/unicodeio.m4 (gl_UNICODEIO): Invoke gl_MUSL_LIBC.
1061         * modules/unicodeio (Files): Add m4/musl.m4.
1063 2020-07-29  Paul Eggert  <eggert@cs.ucla.edu>
1065         fsusage, regex, stat-size: remove Cray support
1066         As near as I can make out this is actually support for UNICOS/mp,
1067         last released 2005, and Cray hasn’t supported that for years.
1068         * config/srclist.txt: Comment out regex.h for now.
1069         * lib/fsusage.c (get_fs_usage):
1070         * lib/regex.h (re_comp, re_exec):
1071         * lib/stat-size.h (ST_NBLOCKSIZE):
1072         Don’t worry about _CRAY.
1074 2020-07-29  Bruno Haible  <bruno@clisp.org>
1076         parse-datetime: Fix compilation error with bison 3.7.
1077         * modules/parse-datetime (Makefile.am): Create a generated header file
1078         parse-datetime-gen.h in the source directory. Correct #include and
1079         #line statements during preprocessing.
1081 2020-07-28  Bruno Haible  <bruno@clisp.org>
1083         fopen-gnu: Create files correctly (regression from 2020-05-24).
1084         * lib/fopen.c (rpl_open): Pass a third argument to open().
1086 2020-07-27  Paul Eggert  <eggert@cs.ucla.edu>
1088         xalloc-die: don’t depend on xalloc
1089         This removes a circular dependency, as xalloc depends on xalloc-die.
1090         * modules/xalloc-die (Files): Add lib/xalloc.h.
1091         (Depends-on): Remove xalloc.
1092         Add extern-inline, stdint, xalloc-oversized (this is for xalloc.h).
1094         dfa-tests: port to MSVC
1095         Problem reported by Gisle Vanem in:
1096         https://lists.gnu.org/r/bug-gnulib/2020-07/msg00159.html
1097         Also, remove an unnecessary dependency on getprogname.
1098         * modules/dfa-tests (Depends-on): Remove getprogname.
1099         * tests/test-dfa-match-aux.c: Do not include getprogname.h.
1100         (exit_status): New static var.
1101         (dfawarn): Set it instead of exiting.
1102         Do not declare as _Noreturn, to pacify MSVC.
1103         (main): Return exit_status.
1105 2020-07-26  Paul Eggert  <eggert@cs.ucla.edu>
1107         argz: pacify MSVC
1108         * lib/argz.in.h: Avoid "*/*" to pacify MSVC.
1109         Problem reported by Gisle Vanem.
1111         libgmp: remove dependency on havelib
1112         * m4/libgmp.m4 (gl_LIBGMP): If gl_HAVE_MODULE_HAVELIB is not defined,
1113         use the more-traditional AC_SEARCH_LIBS approach.
1114         This should work better with GNU Emacs configuration,
1115         which uses pkg-config instead of a havelib-style approach.
1116         * modules/havelib (gl_HAVE_MODULE_HAVELIB): New witness macro.
1117         * modules/libgmp (Depends-on): Remove havelib.
1119         libgmp: remove HAVE_GMP, LIB_GMP
1120         * m4/libgmp.m4 (gl_LIBGMP): Do not define HAVE_GMP and LIB_GMP, as
1121         they’re redundant.  I’ll adjust GNU Coreutils accordingly.
1123 2020-07-26  Bruno Haible  <bruno@clisp.org>
1125         inttypes: Remove support for AIX 4.
1126         * lib/inttypes.in.h: Assume that PRI_MACROS_BROKEN is 0.
1127         * m4/inttypes-pri.m4: Remove file.
1128         * m4/inttypes.m4 (gl_INTTYPES_PRI_SCN): Don't require gt_INTTYPES_PRI.
1129         (gl_INTTYPES_H_DEFAULTS): Don't initialize PRI_MACROS_BROKEN.
1130         * modules/inttypes-incomplete (Makefile.am): Don't substitute
1131         PRI_MACROS_BROKEN.
1132         * modules/inttypes (Files): Remove m4/inttypes-pri.m4.
1134 2020-07-26  Bruno Haible  <bruno@clisp.org>
1136         gettimeofday: Remove workaround for Mac OS X 10.0.
1137         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Remove macro.
1138         (gl_FUNC_GETTIMEOFDAY): Don't invoke it.
1139         * lib/gettimeofday.c: Don't include localtime-buffer.h.
1140         (gettimeofday): Don't test GETTIMEOFDAY_CLOBBERS_LOCALTIME.
1141         * lib/localtime.c: Don't test GETTIMEOFDAY_CLOBBERS_LOCALTIME.
1142         * modules/gettimeofday (Depends-on): Remove localtime-buffer.
1143         * modules/localtime-buffer: Remove file.
1144         * lib/localtime-buffer.h: Remove file.
1145         * lib/localtime-buffer.c: Remove file.
1146         * m4/localtime-buffer.m4: Remove file.
1147         * MODULES.html.sh (Date and time <time.h>): Remove localtime-buffer.
1149 2020-07-26  Bruno Haible  <bruno@clisp.org>
1151         tzset: Remove workaround for Solaris 2.6.
1152         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Remove macro.
1153         (gl_FUNC_TZSET): Don't invoke it. Don't define TZSET_CLOBBERS_LOCALTIME.
1154         Don't require gl_LOCALTIME_BUFFER_DEFAULTS.
1155         * lib/localtime-buffer.h: Don't test TZSET_CLOBBERS_LOCALTIME.
1156         * lib/localtime-buffer.c: Likewise.
1157         * lib/localtime.c: Likewise.
1158         * lib/tzset.c: Don't include localtime-buffer.h.
1159         (tzset): Don't test TZSET_CLOBBERS_LOCALTIME.
1160         * lib/nstrftime.c (__strftime_internal): Assume HAVE_RUN_TZSET_TEST
1161         is 1.
1162         * modules/tzset (Depends-on): Remove localtime-buffer.
1164 2020-07-26  Bruno Haible  <bruno@clisp.org>
1166         expl: Simplify autoconf test.
1167         * m4/expl.m4 (gl_FUNC_EXPL): Merge the "checking whether expl() breaks
1168         with small values..." test into the "checking whether expl works..."
1169         test.
1171 2020-07-26  Bruno Haible  <bruno@clisp.org>
1173         alloca: Remove Cray-2 and Cray Y-MP support.
1174         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA): Don't define CRAY_STACKSEG_END.
1175         Enable also on Autoconf >= 2.69.
1176         * lib/alloca.c (ADDRESS_FUNCTION, struct stack_control_header,
1177         struct stack_segment_linkage, struct stk_stat, struct stk_trailer,
1178         i00afunc): Remove.
1180 2020-07-25  Bruno Haible  <bruno@clisp.org>
1182         multiarch: Prepare for x86_64+arm64 universal binaries in macOS 11.
1183         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the ARM architectures.
1185 2020-07-25  Bruno Haible  <bruno@clisp.org>
1187         sigprocmask: Small autoconf macro improvement.
1188         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Make it possible for the
1189         user to override the value of gl_cv_func_sigprocmask.
1190         * m4/gnulib-common.m4 (gl_SILENT): New macro.
1192 2020-07-25  Bruno Haible  <bruno@clisp.org>
1194         Small autoconf macro improvements.
1195         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Make it possible for the user to
1196         override the value of gl_cv_func_working_mktime.
1197         * m4/multiarch.m4 (gl_MULTIARCH): Show a line "checking whether the
1198         compiler produces multi-arch binaries..." in the configure output.
1199         * m4/size_max.m4 (gl_SIZE_MAX): When not found, say "no".
1200         * m4/parse-datetime.m4 (gl_C_COMPOUND_LITERALS): Improve indentation.
1202 2020-07-25  Bruno Haible  <bruno@clisp.org>
1204         doc: Update for NetBSD 7.1, 8.0, 9.0.
1205         * doc/*/*.texi: Update.
1206         * m4/exp2l.m4: Update comments.
1207         * m4/expl.m4: Likewise.
1208         * m4/ilogb.m4: Likewise.
1209         * m4/ilogbf.m4: Likewise.
1210         * m4/log10l.m4: Likewise.
1211         * m4/logl.m4: Likewise.
1212         * m4/printf.m4: Likewise.
1213         * m4/rintl.m4: Likewise.
1214         * m4/wcwidth.m4: Likewise.
1216 2020-07-24  Bruno Haible  <bruno@clisp.org>
1218         doc: Update for Mac OS X 10.13.
1219         * doc/*/*.texi: Update.
1220         * m4/expm1l.m4: Update comments.
1221         * m4/getgroups.m4: Likewise.
1222         * m4/getlogin_r.m4: Likewise.
1223         * m4/linkat.m4: Likewise.
1224         * m4/printf.m4: Likewise.
1226 2020-07-24  Bruno Haible  <bruno@clisp.org>
1228         doc: Update for Cygwin 2.9.0.
1229         * doc/*/*.texi: Update.
1231 2020-07-24  Paul Eggert  <eggert@cs.ucla.edu>
1233         parse-datetime: modernize doc
1234         * doc/parse-datetime.texi: Use more-current examples.
1235         Don’t lead with 32-bit time_t, as it’s on its way out.
1236         Capitalize “Epoch” to be consistent with POSIX.
1238         timespec: remove dependence on ‘verify’
1239         * lib/timespec.h: Do not include verify.h; no longer needed.
1240         * modules/timespec (Depends-on): Remove ‘verify’.
1242         Optimize a few more three-valued comparisons
1243         * lib/timespec.h (timespec_cmp, timespec_sign):
1244         * lib/utimecmp.c (utimecmpat):
1245         Avoid conditional branches by using _GL_CMP.
1247         Fix _GL_CMP parenthesization typo
1248         * m4/gnulib-common.m4 (_GL_CMP): Properly parenthesize.
1250 2020-07-24  Bruno Haible  <bruno@clisp.org>
1252         dfa: Revert breaking gawk.
1253         Reported by Arnold Robbins <arnold@skeeve.com>.
1254         * lib/dfa.c (compare): Don't reference the _GL_CMP macro.
1256 2020-07-23  Bruno Haible  <bruno@clisp.org>
1258         Optimize three-valued comparison between integers.
1259         (a > b ? 1 : a < b ? -1 : 0) is the same as (a > b) - (a < b).
1260         * m4/gnulib-common.m4 (gl_COMMON): Define _GL_CMP.
1261         * lib/c-strcasecmp.c (c_strcasecmp): Use _GL_CMP.
1262         * lib/c-strncasecmp.c (c_strncasecmp): Likewise.
1263         * lib/dfa.c (compare): Likewise.
1264         * lib/fts.c (fts_compare_ino): Likewise.
1265         * lib/mbmemcasecmp.c (mbmemcasecmp): Likewise.
1266         * lib/mbscasecmp.c (mbscasecmp): Likewise.
1267         * lib/mbsncasecmp.c (mbsncasecmp): Likewise.
1268         * lib/memcasecmp.c (memcasecmp): Likewise.
1269         * lib/memcmp2.c (memcmp2): Likewise.
1270         * lib/savedir.c (direntry_cmp_inode): Likewise.
1271         * lib/strcasecmp.c (strcasecmp): Likewise.
1272         * lib/strncasecmp.c (strncasecmp): Likewise.
1273         * lib/unistr/u-cmp2.h (FUNC): Likewise.
1275 2020-07-23  Bruno Haible  <bruno@clisp.org>
1277         lchmod: Use /proc on Cygwin.
1278         * lib/lchmod.c (lchmod): Use /proc on Cygwin.
1280 2020-07-23  Ken Brown  <kbrown@cornell.edu>
1282         fchmodat: Use /proc on Cygwin
1283         * lib/fchmodat.c (fchmodat): Use /proc on Cygwin.
1285 2020-07-21  Bruno Haible  <bruno@clisp.org>
1287         aligned-malloc: Optionally use aligned_alloc.
1288         * lib/aligned-malloc.h: Verify the alignment.
1289         (aligned_malloc): Use aligned_alloc as an alternative.
1290         * modules/aligned-malloc (configure.ac): Test for aligned_alloc.
1291         * doc/posix-functions/aligned_alloc.texi: Mention the modules
1292         'aligned-malloc' and 'pagealign_alloc'.
1294 2020-07-21  Bruno Haible  <bruno@clisp.org>
1296         aligned-malloc: Add tests.
1297         * tests/test-aligned-malloc.c: New file.
1298         * modules/aligned-malloc-tests: New file.
1300         aligned-malloc: New module.
1301         * lib/aligned-malloc.h: New file.
1302         * m4/malloc-align.m4: New file.
1303         * modules/aligned-malloc: New file.
1304         * doc/posix-functions/posix_memalign.texi: Mention the new module.
1305         * doc/glibc-functions/memalign.texi: Likewise.
1307 2020-07-21  Bruno Haible  <bruno@clisp.org>
1309         inttypes: Fix PRI*PTR and SCN*PTR on 64-bit native Windows.
1310         * m4/inttypes.m4 (gl_INTTYPES_PRI_SCN): On 64-bit native Windows, make
1311         sure PRIPTR_PREFIX is defined to "ll", not "l".
1313 2020-07-21  Bruno Haible  <bruno@clisp.org>
1315         printf-posix: Make an autoconf test more future-proof.
1316         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): Include <inttypes.h> before
1317         using uintptr_t.
1319 2020-07-20  Bruno Haible  <bruno@clisp.org>
1321         list, oset, omap: Relicense some of the container modules under LGPLv2+.
1322         * modules/list (License): Change to LGPLv2+.
1323         * modules/array-list (License): Likewise.
1324         * modules/carray-list (License): Likewise.
1325         * modules/linked-list (License): Likewise.
1326         * modules/avltree-list (License): Likewise.
1327         * modules/rbtree-list (License): Likewise.
1328         * modules/oset (License): Likewise.
1329         * modules/array-oset (License): Likewise.
1330         * modules/avltree-oset (License): Likewise.
1331         * modules/rbtree-oset (License): Likewise.
1332         * modules/omap (License): Likewise.
1333         * modules/array-omap (License): Likewise.
1334         * modules/avltree-omap (License): Likewise.
1335         * modules/rbtree-omap (License): Likewise.
1337 2020-07-20  Bruno Haible  <bruno@clisp.org>
1339         oset: Add an 'update' operation.
1340         * lib/gl_array_oset.c (gl_array_update): New function.
1341         (gl_array_oset_implementation): Use it.
1342         * lib/gl_avltree_omap.c (NODE_PAYLOAD_DISPOSE): Add parameters.
1343         * lib/gl_rbtree_omap.c (NODE_PAYLOAD_DISPOSE): Add parameters.
1344         * lib/gl_avltree_ordered.h (gl_tree_add_node_before): New function,
1345         extracted from gl_tree_nx_add_before.
1346         (gl_tree_nx_add_before): Invoke it.
1347         (gl_tree_add_node_after): New function, extracted from
1348         gl_tree_nx_add_after.
1349         (gl_tree_nx_add_after): Invoke it.
1350         (gl_tree_remove_node_no_free): New function, extracted from
1351         gl_tree_remove_node.
1352         (gl_tree_remove_node): Invoke it.
1353         * lib/gl_rbtree_ordered.h (gl_tree_add_node_before): New function,
1354         extracted from gl_tree_nx_add_before.
1355         (gl_tree_nx_add_before): Invoke it.
1356         (gl_tree_add_node_after): New function, extracted from
1357         gl_tree_nx_add_after.
1358         (gl_tree_nx_add_after): Invoke it.
1359         (gl_tree_remove_node_no_free): New function, extracted from
1360         gl_tree_remove_node.
1361         (gl_tree_remove_node): Invoke it.
1362         * lib/gl_anytree_oset.h (gl_tree_next_node): New function, extracted
1363         from gl_tree_iterator_next.
1364         (gl_tree_iterator_next): Invoke it.
1365         (gl_tree_prev_node, gl_tree_update): New functions.
1366         * lib/gl_avltree_oset.c (NODE_PAYLOAD_DISPOSE): Add parameters.
1367         (gl_avltree_oset_implementation): Use gl_tree_update.
1368         * lib/gl_rbtree_oset.c (NODE_PAYLOAD_DISPOSE): Add parameters.
1369         (gl_rbtree_oset_implementation): Use gl_tree_update.
1370         * lib/gl_oset.h (struct gl_oset_implementation): Add 'update' member.
1371         (gl_oset_update): New function.
1372         * lib/gl_oset.hh (gl_OSet): Add 'update' member.
1373         * modules/avltree-oset (configure.ac): Require AC_C_INLINE.
1374         * modules/rbtree-oset (configure.ac): Likewise.
1375         * tests/test-oset-update.h: New file.
1376         * tests/test-array_oset.c: Include test-oset-update.h.
1377         (main): Invoke test_update.
1378         * tests/test-avltree_oset.c: Likewise.
1379         * tests/test-rbtree_oset.c: Likewise.
1380         * modules/array-oset-tests (Files): Add tests/test-oset-update.h.
1381         * modules/avltree-oset-tests (Files): Likewise.
1382         * modules/rbtree-oset-tests (Files): Likewise.
1383         * tests/test-oset-c++.cc (action): New function.
1384         (main): Test the 'update' member function.
1386 2020-07-15  Paul Eggert  <eggert@cs.ucla.edu>
1388         md5, sha1, sha256, sha512: pacify Autoconf 2.70
1389         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Use m4_if rather than a
1390         shell if, so that the argument to AC_CHECK_HEADERS is
1391         a simple string that does not require shell evaluation.
1392         This fixes a warning generated by Autoconf 2.69b.
1394 2020-07-12  Bruno Haible  <bruno@clisp.org>
1396         libgmp: Avoid warning when --without-libgmp is used.
1397         * lib/mini-gmp-gnulib.c: Ignore -Wsuggest-attribute=malloc only for
1398         GCC >= 8, not for GCC >= 4.6.
1400 2020-07-12  Bruno Haible  <bruno@clisp.org>
1402         libgmp: Link to the correct shared library.
1403         * m4/libgmp.m4 (gl_LIBGMP): Invoke AC_LIB_HAVE_LINKFLAGS.
1404         * modules/libgmp (Depends-on): Add havelib.
1405         (Link): Mention $(LIBGMP) and $(LTLIBGMP).
1406         * modules/libgmp-tests (Makefile.am): Link test-libgmp with $(LIBGMP).
1408 2020-07-12  Bruno Haible  <bruno@clisp.org>
1410         libgmp tests: Add some safety checks.
1411         * modules/libgmp-tests (Depends-on): Add verify.
1412         * tests/test-libgmp.c: Verify GMP_NUMB_BITS value.
1413         (main): Verify that gmp.h and libgmp versions match.
1415 2020-07-10  Bruno Haible  <bruno@clisp.org>
1417         unicodeio: Fix wrong result on NetBSD.
1418         * lib/unicodeio.c (unicode_to_mb): Handle question mark fallback
1419         characters also on NetBSD.
1421 2020-07-09  Bruno Haible  <bruno@clisp.org>
1423         unicodeio: Fix wrong result on Solaris 11.
1424         Reported by Kiyoshi Kanazawa <yoi_no_myoujou@yahoo.co.jp>
1425         via Akim Demaille <akim.demaille@gmail.com> in
1426         <https://lists.gnu.org/archive/html/bug-gnulib/2020-07/msg00036.html>.
1427         * lib/unicodeio.c (unicode_to_mb): Handle question mark fallback
1428         characters on Solaris.
1429         * tests/test-unicodeio.c (main): In the "C" locale, expect either the
1430         UTF-8 output or the specified fallback.
1432 2020-07-08  Bruno Haible  <bruno@clisp.org>
1434         unicodeio: Add tests.
1435         * tests/test-unicodeio.c: New file.
1436         * tests/test-unicodeio1.sh: New file.
1437         * tests/test-unicodeio2.sh: New file.
1438         * tests/test-unicodeio3.sh: New file.
1439         * modules/unicodeio-tests: New file.
1441 2020-07-08  Bruno Haible  <bruno@clisp.org>
1443         unicodeio: Document link requirements.
1444         * modules/unicodeio (Link): New section.
1446 2020-07-07  Bruno Haible  <bruno@clisp.org>
1448         doc: Remove support for some very old platforms.
1449         * doc/posix-functions/memcmp.texi: Don't mention "older platforms".
1450         * doc/posix-functions/memcpy.texi: Likewise.
1451         * doc/posix-functions/memmove.texi: Likewise.
1452         * doc/posix-functions/memset.texi: Likewise.
1453         * doc/posix-functions/getcwd.texi: Likewise.
1455         memchr: Remove support for some very old platforms.
1456         * m4/memchr-obsolete.m4: Remove file.
1457         * modules/memchr-obsolete: Remove file.
1458         * m4/memchr.m4 (gl_FUNC_MEMCHR): Assume module 'memchr-obsolete' is
1459         absent. Don't define HAVE_MEMCHR.
1460         * lib/string.in.h (memchr): Assume HAVE_MEMCHR is 1.
1461         * modules/memchr (Depends-on): Remove memchr-obsolete.
1462         (configure.ac): Assume HAVE_MEMCHR is 1.
1463         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
1464         HAVE_MEMCHR.
1465         * modules/string (Makefile.am): Don't substitute HAVE_MEMCHR.
1466         * doc/posix-functions/memchr.texi: Don't mention module
1467         'memchr-obsolete'.
1468         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Assume HAVE_MEMCHR is 1.
1469         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Assume HAVE_MEMCHR is 1.
1470         * modules/strnlen (Depends-on): Remove memchr-obsolete.
1472         dup2: Remove support for some very old platforms.
1473         * m4/dup2-obsolete.m4: Remove file.
1474         * modules/dup2-obsolete: Remove file.
1475         * m4/dup2.m4 (gl_FUNC_DUP2): Assume module 'dup2-obsolete' is absent.
1476         Don't define HAVE_DUP2.
1477         * lib/unistd.in.h (dup2): Assume HAVE_DUP2 is 1.
1478         * lib/dup2.c: Likewise.
1479         * modules/dup2 (Depends-on, configure.ac): Likewise.
1480         (Depends-on): Remove dup2-obsolete.
1481         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize HAVE_DUP2.
1482         * modules/unistd (Makefile.am): Don't substitute HAVE_DUP2.
1483         * doc/posix-functions/dup2.texi: Don't mention module 'dup2-obsolete'.
1485 2020-07-07  Bruno Haible  <bruno@clisp.org>
1487         canonicalize: Trim module dependencies.
1488         * lib/hash-triple.h: Group declarations.
1489         * lib/hash-triple-simple.c: New file, extracted from lib/hash-triple.c.
1490         * lib/hash-triple.c: Don't include <stdlib.h>, <string.h>, hash-pjw.h.
1491         (STREQ): Remove macro.
1492         (triple_hash, triple_compare_ino_str, triple_free): Remove functions.
1493         * modules/hash-triple-simple: New file, based on modules/hash-triple.
1494         * modules/hash-triple (Files): Remove lib/hash-triple.h.
1495         (Depends-on): Add hash-triple-simple. Remove hash-pjw.
1496         * modules/canonicalize (Depends-on): Remove hash-triple. Add
1497         hash-triple-simple.
1498         * modules/file-set (Depends-on): Likewise.
1500 2020-07-07  Bruno Haible  <bruno@clisp.org>
1502         Clarify dependencies to double-slash-root.
1503         * modules/canonicalize (Files): Remove m4/double-slash-root.m4.
1504         (Depends-on): Add double-slash-root.
1505         * modules/canonicalize-lgpl (Depends-on): Add double-slash-root.
1506         * modules/dirname-lgpl (Depends-on): Add double-slash-root.
1508 2020-07-06  Paul Eggert  <eggert@cs.ucla.edu>
1510         libgmp: new module
1511         The idea is to let programs simply include <gmp.h>, and
1512         so long as they live within the mini-gmp subset they need
1513         not worry about whether the GMP libraries are installed.
1514         * MODULES.html.sh: Mention it.
1515         * config/srclist.txt: Mention files copied from GMP source.
1516         * config/srclistvars.sh (GMP): New var.
1517         * lib/mini-gmp-gnulib.c, m4/libgmp.m4, modules/libgmp:
1518         * modules/libgmp-tests, tests/test-libgmp.c: New files.
1519         * lib/mini-gmp.c, lib/mini-gmp.h: New files, copied from GMP.
1521 2020-07-05  Bruno Haible  <bruno@clisp.org>
1523         mkancesdirs: Trim module dependencies.
1524         * lib/mkancesdirs.c: Include filename.h instead of dirname.h.
1525         * modules/mkancesdirs (Depends-on): Remove dirname-lgpl. Add filename.
1527 2020-07-05  Bruno Haible  <bruno@clisp.org>
1529         getprogname: Trim module dependencies.
1530         * lib/getprogname.c: Include basename-lgpl.h instead of dirname.h.
1531         * modules/getprogname (Depends-on): Remove dirname-lgpl. Add
1532         basename-lgpl.
1534 2020-07-05  Bruno Haible  <bruno@clisp.org>
1536         filenamecat-lgpl: Trim module dependencies.
1537         * lib/filenamecat-lgpl.c: Include basename-lgpl.h, filename.h instead of
1538         dirname.h.
1539         * modules/filenamecat-lgpl (Depends-on): Remove dirname-lgpl. Add
1540         basename-lgpl, filename.
1542 2020-07-05  Bruno Haible  <bruno@clisp.org>
1544         backupfile, backup-rename: Trim module dependencies.
1545         * lib/backupfile.c: Include basename-lgpl.h instead of dirname.h.
1546         * modules/backupfile (Depends-on): Remove dirname-lgpl. Add
1547         basename-lgpl.
1548         * modules/backup-rename (Depends-on): Likewise.
1550 2020-07-05  Bruno Haible  <bruno@clisp.org>
1552         argp: Trim module dependencies.
1553         * lib/argp-namefrob.h: Include basename-lgpl.h instead of dirname.h.
1554         * modules/argp (Depends-on): Remove dirname-lgpl. Add basename-lgpl.
1556 2020-07-05  Bruno Haible  <bruno@clisp.org>
1558         basename-lgpl: New module.
1559         * lib/basename-lgpl.h: New file, based on lib/dirname.h and
1560         lib/basename-lgpl.c.
1561         * lib/basename-lgpl.c: Include basename-lgpl.h, not dirname.h. Include
1562         <stdbool.h>, filename.h.
1563         (last_component): Rename a local variable.
1564         * lib/dirname.h: Include basename-lgpl.h.
1565         (DOUBLE_SLASH_IS_DISTINCT_ROOT): Remove macro.
1566         (last_component, base_len): Remove declarations.
1567         * modules/basename-lgpl: New file.
1568         * modules/dirname-lgpl (Files): Remove lib/basename-lgpl.c.
1569         (Depends-on): Add basename-lgpl. Remove double-slash-root.
1570         (Makefile.am): Don't compile basename-lgpl.c.
1571         * doc/posix-functions/basename.texi: Mention the module 'basename-lgpl',
1572         not 'dirname'.
1574 2020-07-05  Bruno Haible  <bruno@clisp.org>
1576         dirname, dirname-lgpl: Simplify.
1577         * m4/dirname.m4: Remove file.
1578         * modules/dirname (configure.ac): Don't invoke gl_DIRNAME.
1579         * modules/dirname-lgpl (Files): Remove m4/dirname.m4.
1580         (configure.ac): Don't invoke gl_DIRNAME_LGPL.
1582 2020-07-05  Bernhard Voelker  <mail@bernhard-voelker.de>
1584         tests: avoid shadowing warning
1585         * tests/test-memchr.c (main): Give page_boundary variable a tight scope.
1587 2020-07-05  Bruno Haible  <bruno@clisp.org>
1589         supersede: Add tests.
1590         * tests/test-supersede.c: New file.
1591         * tests/test-supersede-open.h: New file.
1592         * tests/test-supersede-fopen.h: New file.
1593         * modules/supersede-tests: New file.
1595         supersede: New module.
1596         * lib/supersede.h: New file.
1597         * lib/supersede.c: New file.
1598         * m4/supersede.m4: New file.
1599         * modules/supersede: New file.
1601 2020-07-05  Bruno Haible  <bruno@clisp.org>
1603         Add some copyright headers.
1604         * lib/dev-ino.h: Add copyright header.
1605         * lib/di-set.h: Likewise.
1606         * lib/fchown-stub.c: Likewise.
1607         * lib/file-set.h: Likewise.
1608         * lib/hash-triple.h: Likewise.
1609         * lib/idcache.h: Likewise.
1610         * lib/ino-map.h: Likewise.
1611         * lib/mkancesdirs.h: Likewise.
1612         * lib/scratch_buffer.h: Likewise.
1613         * lib/se-context.in.h: Likewise.
1614         * lib/stdopen.h: Likewise.
1615         * lib/userspec.h: Likewise.
1617 2020-07-04  Bruno Haible  <bruno@clisp.org>
1619         getrandom: Relicense under LGPLv2+.
1620         Paul Eggert's approval is in
1621         <https://lists.gnu.org/archive/html/bug-gnulib/2020-07/msg00023.html>.
1622         * modules/getrandom (License): Change to LGPLv2+.
1624 2020-07-04  Bruno Haible  <bruno@clisp.org>
1626         getumask: Add tests.
1627         * tests/test-getumask.c: New file.
1628         * modules/getumask-tests: New file.
1630         getumask: New module.
1631         * lib/sys_stat.in.h (getumask): New declaration.
1632         * lib/getumask.c: New file.
1633         * m4/getumask.m4: New file.
1634         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether getumask is
1635         declared.
1636         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_GETUMASK, HAVE_GETUMASK.
1637         * modules/sys_stat (Makefile.am): Substitute GNULIB_GETUMASK,
1638         HAVE_GETUMASK.
1639         * modules/getumask: New file.
1640         * tests/test-sys_stat-c++.cc (getumask): Check signature.
1641         * doc/glibc-functions/getumask.texi: New file.
1642         * doc/gnulib.texi (Glibc sys/stat.h): Include it.
1644 2020-07-04  Bruno Haible  <bruno@clisp.org>
1646         clean-temp: Add support for temporary files with given mode.
1647         * lib/clean-temp.h (gen_register_open_temp): Add mode argument.
1648         * lib/clean-temp.c (struct try_create_file_params): New type.
1649         (try_create_file): New function.
1650         (gen_register_open_temp): Add mode argument. Use try_tempname instead of
1651         gen_tempname.
1653 2020-07-04  Bruno Haible  <bruno@clisp.org>
1655         clean-temp: Document limitations.
1656         * lib/clean-temp.h: Document limitations.
1658 2020-07-04  Bruno Haible  <bruno@clisp.org>
1660         clean-temp: Add support for temporary files with unpredictable names.
1661         * lib/clean-temp.h (gen_register_open_temp): New declaration.
1662         * lib/clean-temp.c: Include tempname.h.
1663         (gen_register_open_temp): New function.
1664         * modules/tempname (configure.ac): Define a module indicator.
1666 2020-07-04  Bruno Haible  <bruno@clisp.org>
1668         clean-temp: Add support for temporary files anywhere in the file system.
1669         * lib/clean-temp.h (register_temporary_file, unregister_temporary_file,
1670         cleanup_temporary_file): New declarations.
1671         * lib/clean-temp.c (file_cleanup_list_lock, file_cleanup_list): New
1672         variables.
1673         (dir_cleanup_list_lock): Renamed from cleanup_list_lock.
1674         (dir_cleanup_list): Renamed from cleanup_list.
1675         (cleanup_action): Process the file_cleanup_list as well.
1676         (do_init_clean_temp): New function.
1677         (clean_temp_once): New variable.
1678         (init_clean_temp): New function.
1679         (create_temp_dir): Invoke it.
1680         (register_temporary_file, unregister_temporary_file,
1681         cleanup_temporary_file): New functions.
1682         (do_unlink, do_rmdir): Remove 'dir' argument. Add 'cleanup_verbose'
1683         argument.
1685 2020-07-04  Bruno Haible  <bruno@clisp.org>
1687         clean-temp: Improve comments.
1688         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
1689         fwriteerror_temp, close_stream_temp): Clarify intended use.
1690         * lib/clean-temp.c: Likewise.
1692 2020-07-04  Bruno Haible  <bruno@clisp.org>
1694         clean-temp: Make multithread-safe, part 2.
1695         * lib/fatal-signal.h: Include <signal.h>.
1696         (get_fatal_signal_set): New declaration.
1697         * lib/fatal-signal.c (get_fatal_signal_set): New function.
1698         * lib/clean-temp.c: Include asyncsafe-spin.h, gl_linked_list.h.
1699         (struct closeable_fd): New type.
1700         (fatal_signal_set): New variable.
1701         (init_fatal_signal_set): New function.
1702         (asyncsafe_close, asyncsafe_fclose_variant): New functions.
1703         (cleanup_action): Invoke asyncsafe_close instead of close.
1704         (create_temp_dir): Invoke init_fatal_signal_set.
1705         (register_fd): Use a plain linked list. Add a 'struct closeable_fd *'
1706         element.
1707         (unregister_fd): Remove function.
1708         (close_temp): Cleanup descriptors list on the fly. Invoke
1709         init_fatal_signal_set. Invoke asyncsafe_close instead of close.
1710         (fclose_variant_temp): New function.
1711         (fclose_temp, fwriteerror_temp, close_stream_temp): Use it.
1712         * modules/clean-temp (Depends-on): Add asyncsafe-spin, linked-list.
1714 2020-07-04  Bruno Haible  <bruno@clisp.org>
1716         clean-temp: Make multithread-safe, part 1.
1717         * lib/clean-temp.c: Include glthread/lock.h.
1718         (cleanup_list_lock): New variable.
1719         (register_temp_file, unregister_temp_file, register_temp_subdir,
1720         unregister_temp_subdir, cleanup_temp_dir_contents): Use it.
1721         (create_temp_dir): Likewise. Don't free the old array.
1722         (descriptors_lock): New variable.
1723         (register_fd, unregister_fd): Use it.
1724         * modules/clean-temp (Depends-on): Add lock.
1726 2020-07-04  Bruno Haible  <bruno@clisp.org>
1728         fatal-signal: Make multithread-safe.
1729         * lib/fatal-signal.c (init_fatal_signals): Add comment.
1730         (do_init_fatal_signal_set): New function, extracted from
1731         init_fatal_signal_set.
1732         (fatal_signal_set_once): New variable.
1733         (init_fatal_signal_set): Use gl_once.
1735 2020-07-03  Bruno Haible  <bruno@clisp.org>
1737         getrandom: Fix compilation error on native Windows (regr. 2020-06-28).
1738         * lib/getrandom.c: Don't include <ntdef.h>. Instead, define NTSTATUS.
1739         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Include <windows.h> before
1740         <bcrypt.h>.
1742 2020-07-03  Bruno Haible  <bruno@clisp.org>
1744         dfa tests: Follow common file naming conventions.
1745         * tests/test-dfa-match-aux.c: Renamed from tests/dfa-match-aux.c.
1746         * tests/test-dfa-match.sh: Renamed from tests/dfa-match.sh. Update.
1747         * tests/test-dfa-invalid-char-class.sh: Renamed from
1748         tests/dfa-invalid-char-class.sh. Update.
1749         * modules/dfa-tests (Files, Makefile.am): Update.
1751 2020-07-03  Bruno Haible  <bruno@clisp.org>
1753         asyncsafe-spin: Use GCC extended asm syntax for SunStudio 12 compiler.
1754         * lib/asyncsafe-spin.c (memory_barrier, atomic_compare_and_swap): Use
1755         the GCC extended asm syntax also for the Sun Studio 12 compilers.
1757 2020-07-03  Bruno Haible  <bruno@clisp.org>
1759         asyncsafe-spin: Reduce code duplication.
1760         * lib/asyncsafe-spin.c (do_lock, do_unlock): New functions.
1761         (asyncsafe_spin_lock, asyncsafe_spin_unlock): Use them.
1762         * modules/asyncsafe-spin (configure.ac): Require AC_C_INLINE.
1764 2020-07-03  Bruno Haible  <bruno@clisp.org>
1766         lchmod: Simplify after 2020-02-22 change.
1767         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Don't require AC_C_INLINE.
1769 2020-07-03  Bruno Haible  <bruno@clisp.org>
1771         gen-uni-tables: Make sure the compiler does not barf on 'inline'.
1772         * modules/gen-uni-tables (configure.ac): Require AC_C_INLINE.
1774 2020-07-03  Bruno Haible  <bruno@clisp.org>
1776         dfa: Make sure the compiler does not barf on 'inline'.
1777         * modules/dfa (configure.ac): Require AC_C_INLINE.
1779 2020-07-03  Bruno Haible  <bruno@clisp.org>
1781         bitset: Make sure the compiler does not barf on 'inline'.
1782         * modules/bitset (configure.ac): New section.
1784 2020-07-01  Paul Eggert  <eggert@cs.ucla.edu>
1786         manywarnings: improve port to GCC 10.1
1787         * build-aux/gcc-warning.spec: Also list warnings that are default
1788         or are enabled by already-given flags.  This lets us speed up
1789         checking for attributes, and makes the generated compilation
1790         commands shorter.  Add -Wanalyzer-too-complex (too much noise).
1791         * m4/manywarnings.m4 (gl_MANYWARN_COMPLEMENT)
1792         (gl_MANYWARN_ALL_GCC): Use gl_AS_VAR_APPEND to append
1793         to shell variables that may have long values.
1794         (gl_MANYWARN_ALL_GCC): Omit flags that are default or are
1795         consequences of other flags, to speed up checking and
1796         shorten commands.
1798         tests: pacify gcc -fanalyzer on zerosize_ptr
1799         * tests/test-memcasecmp.c (main):
1800         * tests/test-memchr.c (main):
1801         * tests/test-memchr2.c (main):
1802         * tests/test-memcmp.c (main):
1803         * tests/test-memmem.c (main):
1804         * tests/test-memrchr.c (main):
1805         * tests/unistr/test-chr.h (main):
1806         * tests/unistr/test-cmp.h (test_cmp):
1807         Check whether zerosize_ptr returns NULL before using it.
1808         This pacifies GCC 10.1’s new fanalyzer option, and matches
1809         other uses of zerosize_ptr.
1811 2020-07-01  Bruno Haible  <bruno@clisp.org>
1813         asyncsafe-spin: Add tests.
1814         * tests/test-asyncsafe-spin1.c: New file.
1815         * tests/test-asyncsafe-spin2.c: New file, based on tests/test-lock.c and
1816         tests/test-pthread-spin.c.
1817         * modules/asyncsafe-spin-tests: New file.
1819 2020-07-01  Bruno Haible  <bruno@clisp.org>
1821         asyncsafe-spin: New module.
1822         * lib/asyncsafe-spin.h: New file.
1823         * lib/asyncsafe-spin.c: New file, based on lib/pthread-spin.c.
1824         * modules/asyncsafe-spin: New file.
1826 2020-07-01  Bruno Haible  <bruno@clisp.org>
1828         windows-spin: Fix race condition on multiprocessor systems.
1829         * lib/windows-spin.c (glwthread_spin_init): Add a memory barrier.
1831 2020-07-01  Bruno Haible  <bruno@clisp.org>
1833         pthread-spin: Add optimized fallback for GCC versions >= 4.1, < 4.7.
1834         * lib/pthread-spin.c (pthread_spin_init, pthread_spin_lock,
1835         pthread_spin_trylock, pthread_spin_unlock): For GCC >= 4.1, < 4.7, use
1836         an implementation based on other GCC built-ins.
1838 2020-07-01  Bruno Haible  <bruno@clisp.org>
1840         pthread-spin: Optimize fallback for GCC versions >= 4.7.
1841         * lib/pthread-spin.c (pthread_spin_init, pthread_spin_lock,
1842         pthread_spin_trylock, pthread_spin_unlock): Use a lock word instead of a
1843         lock byte.
1845 2020-07-01  Bruno Haible  <bruno@clisp.org>
1847         pthread-spin: Add error checking.
1848         * lib/pthread-spin.c: Include <stdbool.h>.
1849         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock,
1850         pthread_spin_unlock) [GCC>=4.7]: Prefer an implementation that verifies
1851         the unlocks.
1852         * modules/pthread-spin (Depends-on): Add stdbool.
1854 2020-07-01  Bruno Haible  <bruno@clisp.org>
1856         pthread-spin: Add tests.
1857         * tests/test-pthread-spin.c: New file, based on tests/test-lock.c.
1858         * modules/pthread-spin-tests: New file.
1860 2020-07-01  Bruno Haible  <bruno@clisp.org>
1862         tests: Reduce code duplication.
1863         * tests/atomic-int-posix.h: New file, extracted from
1864         tests/test-pthread-mutex.c.
1865         * tests/test-pthread-mutex.c: Include it. Remove the corresponding code.
1866         * tests/test-pthread-rwlock.c: Likewise.
1867         * modules/pthread-mutex-tests (Files): Add tests/atomic-int-posix.h.
1868         * modules/pthread-rwlock-tests (Files): Likewise.
1870 2020-07-01  Bruno Haible  <bruno@clisp.org>
1872         tests: Refactor.
1873         * tests/atomic-int-isoc.h: New file, extracted from tests/test-mtx.c.
1874         * tests/test-mtx.c: Include it. Remove the corresponding code.
1875         * modules/mtx-tests (Files): Add tests/atomic-int-isoc.h.
1877 2020-07-01  Bruno Haible  <bruno@clisp.org>
1879         tests: Refactor.
1880         * tests/atomic-int-gnulib.h: New file, extracted from tests/test-lock.c.
1881         * tests/test-lock.c: Include it. Remove the corresponding code.
1882         * modules/lock-tests (Files): Add tests/atomic-int-gnulib.h.
1884 2020-06-29  Bruno Haible  <bruno@clisp.org>
1886         sys_socket: Don't define socklen_t if it is already defined on mingw.
1887         Reported by Keith Marshall <keith.d.marshall@ntlworld.com> in
1888         <https://savannah.gnu.org/bugs/?57725>,
1889         by Rahul Das <bokul_4u@yahoo.com> in
1890         <https://lists.gnu.org/archive/html/bug-gnulib/2020-04/msg00081.html>,
1891         and by Eli Zaretskii <eliz@gnu.org> in
1892         <https://lists.gnu.org/archive/html/bug-gnulib/2020-06/msg00068.html>.
1893         * lib/sys_socket.in.h (socklen_t): Remove definition.
1895 2020-06-29  Bruno Haible  <bruno@clisp.org>
1897         alloca-opt: Fix warning on mingw.
1898         Reported and solution by Eli Zaretskii <eliz@gnu.org> in
1899         <https://lists.gnu.org/archive/html/bug-gnulib/2020-06/msg00069.html>.
1900         * lib/alloca.in.h: On mingw, include <alloca.h> and then test again
1901         whether alloca is defined.
1903 2020-06-28  Paul Eggert  <eggert@cs.ucla.edu>
1905         getrandom: do not depend on ‘open’ on mingw
1906         Similarly for at-internal, getloadavg.  These modules do not call
1907         the ‘open’ function when they are compiled on mingw.  On mingw,
1908         this avoids having to compile open.c when building Emacs, which
1909         does its own thing with ‘open’.
1910         * modules/at-internal, modules/getloadavg, modules/getrandom:
1911         (Depends-on): Don’t depend on ‘open’ on mingw.
1912         (Depends-on): Require AC_CANONICAL_HOST, for host_os.
1913         * modules/getloadavg (Depends-on):
1914         Depend on intprops, open, stdbool, stdlib only if compiling
1915         getloadavg.c.
1917 2020-06-28  Bruno Haible  <bruno@clisp.org>
1919         doc: Add a note about sigprocmask vs. pthread_sigmask.
1920         * doc/posix-functions/sigprocmask.texi: Add note.
1922 2020-06-28  Bruno Haible  <bruno@clisp.org>
1924         getrandom: Fix compilation errors on older versions of mingw.
1925         Reported by Eli Zaretskii <eliz@gnu.org> in
1926         <https://lists.gnu.org/archive/html/bug-gnulib/2020-06/msg00059.html>.
1927         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Test whether <bcrypt.h> exists.
1928         * lib/getrandom.c: If <bcrypt.h> is not available, include <ntdef.h> and
1929         define/declare BCRYPT_ALG_HANDLE, BCRYPT_USE_SYSTEM_PREFERRED_RNG,
1930         BCryptGenRandom ourselves.
1932 2020-06-28  Bruno Haible  <bruno@clisp.org>
1934         clean-temp: Fix wrong errno in error message.
1935         * lib/clean-temp.c (create_temp_dir): Save errno around
1936         unblock_fatal_signals call.
1938 2020-06-27  Bruno Haible  <bruno@clisp.org>
1940         fatal-signal: Make multithread-safe.
1941         * lib/fatal-signal.c (at_fatal_signal): Don't free the old actions array.
1943 2020-06-27  Bruno Haible  <bruno@clisp.org>
1945         clean-temp: Don't force deletion of temporary files on native Windows.
1946         * lib/clean-temp.h (open_temp, fopen_temp): Add delete_on_close
1947         argument.
1948         * lib/clean-temp.c (open_temp, fopen_temp): Likewise.
1949         * NEWS: Mention the change.
1950         * lib/javacomp.c (write_temp_file): Update.
1952 2020-06-27  Bruno Haible  <bruno@clisp.org>
1954         fatal-signal: Make multithread-safe.
1955         * lib/fatal-signal.c: Include glthread/lock.h.
1956         (at_fatal_signal_lock): New variable.
1957         (at_fatal_signal): Use it.
1958         (fatal_signals_block_lock, fatal_signals_block_counter): New variables.
1959         (block_fatal_signals, unblock_fatal_signals): Use them.
1960         * modules/fatal-signal (Depends-on): Add lock.
1962 2020-06-27  Paul Eggert  <eggert@cs.ucla.edu>
1964         getloadavg: don’t depend on fopen-gnu
1965         This is for Emacs, which does not need fopen-gnu for anything else,
1966         and which would need it only on a NetBSD platform where getloadavg
1967         does not work (does that even happen?).
1968         * lib/getloadavg.c (getloadavg) [__NetBSD__]: Use open, not fopen.
1969         * modules/getloadavg (Depends-on): Remove fopen-gnu.
1971         * tests/test-getloadavg.c (main): Fix typo.
1973 2020-06-27  Bruno Haible  <bruno@clisp.org>
1975         tempname et al.: Fix link errors on MSVC (regression from 2020-05-31).
1976         * modules/tempname (Link): New section.
1977         * modules/mkdtemp (Link): Likewise.
1978         * modules/clean-temp (Link): Likewise.
1979         * modules/mkstemp (Link): Likewise.
1980         * modules/stdlib-safer (Link): Likewise.
1981         * modules/mkstemps (Link): Likewise.
1982         * modules/mkostemp (Link): Likewise.
1983         * modules/mkostemps (Link): Likewise.
1984         * modules/tmpfile (Link): Likewise.
1985         * modules/tmpfile-safer (Link): Likewise.
1986         * modules/javacomp (Link): Add $(LIB_GETRANDOM).
1987         * modules/argv-iter-tests (Makefile.am): Link test-argv-iter with
1988         $(LIB_GETRANDOM).
1989         * NEWS: Mention the changes.
1991 2020-06-27  Bruno Haible  <bruno@clisp.org>
1993         fopen-gnu: Simplify code.
1994         * lib/fopen.c: Include <stdbool.h>.
1995         (rpl_fopen): Use a single variable open_flags instead of
1996         open_flags_standard and open_flags_gnu. Make open_flags_gnu a bool.
1997         * modules/fopen (Depends-on): Add stdbool.
1999 2020-06-26  Bruno Haible  <bruno@clisp.org>
2001         canonicalize: Improve documentation.
2002         * lib/canonicalize.h (canonicalize_filename_mode): Document the failure
2003         return convention.
2005 2020-06-26  Bruno Haible  <bruno@clisp.org>
2007         xgetcwd: Improve documentation.
2008         * lib/xgetcwd.c (xgetcwd): Document the failure return convention.
2010 2020-06-26  Bruno Haible  <bruno@clisp.org>
2012         getcwd: Improve documentation.
2013         * lib/getcwd.c (__getcwd): Document the failure return convention.
2015 2020-06-26  Bruno Haible  <bruno@clisp.org>
2017         fchdir: Improve documentation.
2018         * lib/fchdir.c (get_name, _gl_register_fd): Document the failure return
2019         convention.
2021 2020-06-26  Bruno Haible  <bruno@clisp.org>
2023         filenamecat-lgpl: Set errno upon failure.
2024         * lib/filenamecat-lgpl.c (mfile_name_concat): Document the failure
2025         return convention.
2026         * modules/filenamecat-lgpl (Depends-on): Add malloc-posix.
2028 2020-06-26  Bruno Haible  <bruno@clisp.org>
2030         areadlink-with-size: Set errno upon failure.
2031         * lib/areadlink-with-size.c (areadlink_with_size): Set errno when malloc
2032         fails.
2033         * lib/areadlinkat-with-size.c (areadlinkat_with_size): Add comment.
2035 2020-06-26  Bruno Haible  <bruno@clisp.org>
2037         copy-file: Shrink dependencies.
2038         * modules/copy-file (Depends-on): Remove acl. Add acl-permissions,
2039         qcopy-acl.
2041 2020-06-26  Bruno Haible  <bruno@clisp.org>
2043         doc: Mention declaration fixes implemented by some modules.
2044         * doc/posix-functions/chdir.texi: Mention the module 'chdir'.
2045         * doc/posix-functions/close.texi: Mention that Gnulib makes the function
2046         declaration appear in <unistd.h>.
2047         * doc/posix-functions/dup.texi: Likewise.
2048         * doc/posix-functions/dup2.texi: Likewise.
2049         * doc/posix-functions/gethostname.texi: Likewise.
2050         * doc/posix-functions/isatty.texi: Likewise.
2051         * doc/posix-functions/lseek.texi: Likewise.
2052         * doc/posix-functions/unlink.texi: Likewise.
2053         * doc/posix-functions/read.texi: Mention the module 'read'.
2054         * doc/posix-functions/write.texi: Mention the effects of the module
2055         'write'.
2057 2020-06-25  Marc Nieper-Wißkirchen  <marc@nieper-wisskirchen.de>
2059         c-dtoastr, c-ldtoastr: new modules
2060         These modules provide the same functionality as the modules
2061         dtoastr and ldtoastr except for the formatting taking place in the
2062         C locale.
2063         * MODULES.html.sh: Add c-dtoastr and c-ldtoastr.
2064         * lib/c-dtoastr.c, lib/c-ldtoastr.c: New files.
2065         * lib/ftoastr.c: Prefix exported functions when the macro C_LOCALE is
2066         defined.  Use c_snprintf and c_strtod/c_strtold instead of
2067         snprintf and strtod/strtold whhen the macro C_LOCALE is defined.
2068         * lib/ftoastr.h: Add prototypes for c_dtoastr and c_ldtoastr.
2069         * modules/c-dtoastr, modules/c-dtoastr-tests, modules/c-ldtoastr,
2070         modules/c-ldtoastr-tests: New files.
2071         * tests/test-c-dtoastr.c, tests/test-c-dtoastr.sh,
2072         tests-c-ldtoastr.c tests-c-ldtoastr.sh: New files.
2074 2020-06-21  Bruno Haible  <bruno@clisp.org>
2076         tzset: Fix compilation warnings on mingw (regression from 2017-05-01).
2077         * lib/tzset.c: Include <stdlib.h>, <string.h>.
2079 2020-06-16  Bruno Haible  <bruno@clisp.org>
2081         thread: Avoid possible compiler warnings in uses of gl_thread_exit.
2082         * lib/glthread/thread.h (gl_thread_exit): Add a cast to void.
2084 2020-06-16  Bruno Haible  <bruno@clisp.org>
2086         thread, thrd: Avoid a compiler warning.
2087         * lib/windows-thread.h (glwthread_thread_exit): Mark as non-returning.
2089 2020-06-16  Biswapriyo Nath  <nathbappai@gmail.com>  (tiny change)
2091         windows-thread: Avoid a compiler warning.
2092         * lib/windows-thread.h (glwthread_thread_exit): Change return type to
2093         void.
2094         * lib/windows-thread.c (glwthread_thread_exit): Likewise.
2096 2020-06-15  Bruno Haible  <bruno@clisp.org>
2098         unictype/joininggroup-name: Fix warning on 64-bit mingw.
2099         Reported by Biswapriyo Nath <nathbappai@gmail.com> in
2100         <https://lists.gnu.org/archive/html/bug-gnulib/2020-06/msg00036.html>.
2101         * lib/unictype/joininggroup_name.c (ELEM): Cast struct offset to size_t
2102         first.
2104 2020-06-06  Bruno Haible  <bruno@clisp.org>
2106         calloc-gnu tests: Avoid a test failure with clang.
2107         * tests/test-calloc-gnu.c (main): Mark the pointer variable as
2108         'volatile', to defeat compiler optimizations.
2110 2020-06-01  Paul Eggert  <eggert@cs.ucla.edu>
2112         getloadavg: fix double-increment bug
2113         * lib/getloadavg.c (getloadavg): Fix double-increment typo on
2114         Linux without glibc, Android, Cygwin.  This fixes a bug I
2115         introduced in 2011-02-08T20:23:29Z!eggert@cs.ucla.edu.
2116         Problem and fix reported by Semen Verchenko in:
2117         https://lists.gnu.org/r/bug-gnulib/2020-06/msg00007.html
2119         tempname: use getrandom, not getentropy
2120         This removes a dependency, as getentropy depends on getrandom.
2121         * lib/tempname.c: Include sys/random.h instead of unistd.h.
2122         (RANDOM_BITS) [!_LIBC]: Use getrandom, not getentropy.
2123         * modules/tempname (Depends-on): Depend on getrandom, not getentropy.
2125 2020-06-01  Bruno Haible  <bruno@clisp.org>
2127         doc: New chapter 'Multithreading'.
2128         * doc/multithread.texi: New file.
2129         * doc/gnulib.texi: Include it.
2131 2020-06-01  Bruno Haible  <bruno@clisp.org>
2133         doc: Move 'Running self-tests under valgrind' section.
2134         * doc/gnulib.texi (Build Infrastructure Modules): Include
2135         valgrind-tests.texi here...
2136         (Miscellaneous Notes): ... not here.
2138 2020-06-01  Bruno Haible  <bruno@clisp.org>
2140         doc: Move 'Visual Studio Compatibility' section.
2141         * doc/gnulib.texi (Native Windows Support): Include ld-output-def.texi
2142         here...
2143         (Build Infrastructure Modules): ... not here.
2145 2020-06-01  Paul Eggert  <eggert@cs.ucla.edu>
2147         doc: improve randomness discussion
2148         Inspired by comments from Jeffrey Walton in:
2149         https://lists.gnu.org/r/bug-gnulib/2020-06/msg00002.html
2150         * doc/glibc-functions/getentropy.texi (getentropy):
2151         * doc/glibc-functions/getrandom.texi (getrandom):
2152         Improve discussion of problems with "random" data,
2153         and cite Ristenpart & Yilek.  Also, mention GRND_INSECURE.
2155 2020-06-01  Bruno Haible  <bruno@clisp.org>
2157         doc: Fix Texinfo syntax error.
2158         * doc/glibc-functions/getrandom.texi: Add missing '@item'.
2160 2020-06-01  Asher Gordon  <AsDaGo@posteo.net>
2162         doc: Change '.' to '@.' where appropriate.
2163         * doc/c-ctype.texi: Change '.' to '@.' where appropriate.
2164         * doc/glibc-functions/fstatfs.texi: Likewise.
2165         * doc/glibc-functions/fts_children.texi: Likewise.
2166         * doc/glibc-functions/fts_read.texi: Likewise.
2167         * doc/glibc-functions/getdirentries.texi: Likewise.
2168         * doc/glibc-functions/mkostemp.texi: Likewise.
2169         * doc/glibc-functions/mkostemps.texi: Likewise.
2170         * doc/glibc-functions/mkstemps.texi: Likewise.
2171         * doc/glibc-functions/preadv.texi: Likewise.
2172         * doc/glibc-functions/pwritev.texi: Likewise.
2173         * doc/glibc-functions/sendfile.texi: Likewise.
2174         * doc/glibc-functions/statfs.texi: Likewise.
2175         * doc/gnulib-intro.texi: Likewise.
2176         * doc/gnulib-tool.texi: Likewise.
2177         * doc/intprops.texi: Likewise.
2178         * doc/lib-symbol-visibility.texi: Likewise.
2179         * doc/licenses-texi.texi: Likewise.
2180         * doc/pastposix-functions/bcmp.texi: Likewise.
2181         * doc/pastposix-functions/bcopy.texi: Likewise.
2182         * doc/pastposix-functions/bzero.texi: Likewise.
2183         * doc/pastposix-functions/ecvt.texi: Likewise.
2184         * doc/pastposix-functions/fcvt.texi: Likewise.
2185         * doc/pastposix-functions/ftime.texi: Likewise.
2186         * doc/pastposix-functions/gcvt.texi: Likewise.
2187         * doc/pastposix-functions/getwd.texi: Likewise.
2188         * doc/pastposix-functions/index.texi: Likewise.
2189         * doc/pastposix-functions/mktemp.texi: Likewise.
2190         * doc/pastposix-functions/rindex.texi: Likewise.
2191         * doc/pastposix-functions/wcswcs.texi: Likewise.
2192         * doc/posix-functions/aio_cancel.texi: Likewise.
2193         * doc/posix-functions/aio_error.texi: Likewise.
2194         * doc/posix-functions/aio_fsync.texi: Likewise.
2195         * doc/posix-functions/aio_read.texi: Likewise.
2196         * doc/posix-functions/aio_return.texi: Likewise.
2197         * doc/posix-functions/aio_suspend.texi: Likewise.
2198         * doc/posix-functions/aio_write.texi: Likewise.
2199         * doc/posix-functions/creat.texi: Likewise.
2200         * doc/posix-functions/ctime.texi: Likewise.
2201         * doc/posix-functions/daylight.texi: Likewise.
2202         * doc/posix-functions/fgetpos.texi: Likewise.
2203         * doc/posix-functions/fopen.texi: Likewise.
2204         * doc/posix-functions/freopen.texi: Likewise.
2205         * doc/posix-functions/fseeko.texi: Likewise.
2206         * doc/posix-functions/fsetpos.texi: Likewise.
2207         * doc/posix-functions/fstatat.texi: Likewise.
2208         * doc/posix-functions/fstatvfs.texi: Likewise.
2209         * doc/posix-functions/ftello.texi: Likewise.
2210         * doc/posix-functions/ftruncate.texi: Likewise.
2211         * doc/posix-functions/getrlimit.texi: Likewise.
2212         * doc/posix-functions/lio_listio.texi: Likewise.
2213         * doc/posix-functions/localtime.texi: Likewise.
2214         * doc/posix-functions/lseek.texi: Likewise.
2215         * doc/posix-functions/mkstemp.texi: Likewise.
2216         * doc/posix-functions/mktime.texi: Likewise.
2217         * doc/posix-functions/open.texi: Likewise.
2218         * doc/posix-functions/openat.texi: Likewise.
2219         * doc/posix-functions/opendir.texi: Likewise.
2220         * doc/posix-functions/pread.texi: Likewise.
2221         * doc/posix-functions/pwrite.texi: Likewise.
2222         * doc/posix-functions/readdir.texi: Likewise.
2223         * doc/posix-functions/readdir_r.texi: Likewise.
2224         * doc/posix-functions/scandir.texi: Likewise.
2225         * doc/posix-functions/seekdir.texi: Likewise.
2226         * doc/posix-functions/setrlimit.texi: Likewise.
2227         * doc/posix-functions/statvfs.texi: Likewise.
2228         * doc/posix-functions/strftime.texi: Likewise.
2229         * doc/posix-functions/telldir.texi: Likewise.
2230         * doc/posix-functions/timezone.texi: Likewise.
2231         * doc/posix-functions/tmpfile.texi: Likewise.
2232         * doc/posix-functions/truncate.texi: Likewise.
2233         * doc/posix-functions/tzname.texi: Likewise.
2234         * doc/posix-functions/wcsftime.texi: Likewise.
2235         * doc/windows-sockets.texi: Likewise.
2237 2020-05-31  Paul Eggert  <eggert@cs.ucla.edu>
2239         getrandom-tests: do not assume GRND_RANDOM yields short read
2240         * tests/test-getrandom.c (main): Omit assertion that
2241         getrandom (b, sizeof b, GRND_RANDOM | GRND_NONBLOCK) < sizeof b
2242         when b’s size is 100000.  This assertion fails with Linux kernel
2243         5.6.13, as that kernel ignores the GRND_RANDOM flag.
2244         The separate blocking pool is going away in the Linux kernel, and
2245         they’ve added a flag GRND_INSECURE instead; see:
2246         https://lore.kernel.org/linux-api/705c5a091b63cc5da70c99304bb97e0109be0a26.1577088521.git.luto@kernel.org/
2247         The assertion was iffy anyway; what’s to prevent a kernel from
2248         lazily filling a large buffer with random bytes?
2250         read-file-test: pacify --enable-gcc-warnings
2251         * tests/test-read-file.c (test_read_file): Now static.
2253         tempname: merge from glibc and coreutils
2254         Also, merge in Gnulib’s more-recent methods of making it easier
2255         to share between Gnulib and glibc, and fix a few randomness
2256         glitches.
2257         * lib/tempname.c: Include libc-config.h, not config.h, if !_LIBC.
2258         (__set_errno): Remove; libc-config.h does that for us.
2259         Do not include <sys/time.h>.
2260         (__secure_getenv) [_LIBC]: New macro.
2261         (__try_tempname, __getpid, __gettimeofday) [!_LIBC]: Remove macros.
2262         (RANDOM_BITS): Rewrite.
2263         (RANDOM_VALUE_MAX, BASE_62_DIGITS, BASE_62_POWER): New macros.
2264         (random_value): New typedef.
2265         (try_file, try_dir, try_nocreate): Move up.
2266         (gen_tempname_len, try_tempname_len): New functions.
2267         (gen_tempname_len): Use a constant array rather than a switch.
2268         (try_tempname_len): Don’t assume string length fits in int.
2269         Generalize use of RANDOM_BITS.  If _LIBC, don’t assume RANDOM_BITS
2270         has enough entropy (it’s a bit short).
2271         (__gen_tempname): Rewrite in terms of gen_tempname_len.
2272         (__try_tempname): Rewrite in terms of try_tempname_len.
2273         * lib/tempname.h (gen_tempname_len, try_tempname_len): New decls.
2274         * modules/tempname (Depends-on): Remove gettimeofday, sys_time.
2275         Add getentropy, libc-config.
2277 2020-05-31  Bruno Haible  <bruno@clisp.org>
2279         getrandom, getentropy: Mention the crypto/gc-random module.
2280         Suggested by Simon Josefsson in
2281         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00400.html>.
2282         * doc/glibc-functions/getrandom.texi: Mention the quality issues and the
2283         crypto/gc-random module.
2284         * doc/glibc-functions/getentropy.texi: Likewise.
2286 2020-05-31  Bruno Haible  <bruno@clisp.org>
2288         getentropy: Enhance tests.
2289         * tests/test-getentropy.c (main): Add one more test.
2290         * tests/test-unistd-c++.cc: Check the signature of getentropy.
2292 2020-05-31  Bruno Haible  <bruno@clisp.org>
2294         getentropy: Work around a macOS and Solaris problem.
2295         * lib/unistd.in.h: Include <sys/random.h>, when needed for the
2296         'getentropy' module.
2297         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
2298         UNISTD_H_HAVE_SYS_RANDOM_H.
2299         * m4/sys_random_h.m4 (gl_HEADER_SYS_RANDOM): Set
2300         UNISTD_H_HAVE_SYS_RANDOM_H.
2301         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_SYS_RANDOM_H.
2302         * doc/glibc-functions/getentropy.texi: Document the macOS and Solaris
2303         problem. List more platforms.
2305 2020-05-31  Paul Eggert  <eggert@cs.ucla.edu>
2307         fnmatch: merge from glibc
2308         Also, merge in Gnulib’s more-recent methods of making it easier
2309         to share between Gnulib and glibc.
2310         * lib/fnmatch.c: Reorder includes to match glibc better.
2311         Include libc-config.h instead of config.h.
2312         Include alloca.h only if _LIBC || HAVE_ALLOCA.
2313         Do not include "../locale/elem-hash.h" if _LIBC.
2314         Define macros for btowc, etc. if _LIBC.  All uses simplified.
2315         Define FALLTHROUGH if _LIBC, instead of including attribute.h.
2316         Include intprops.h, since glibc has it now.
2317         (SIZE_MAX): Remove; use (size_t) -1 instead.
2318         Omit the "Comment out all this code" ifdef, since Gnulib
2319         has never really needed it.
2320         (STREQ): Remove; no longer used.
2321         (__libc_use_alloca, alloca, alloca_account): Define as
2322         needed if !_LIBC.
2323         (ISWCTYPE): Remove; all uses replaced by iswctype.
2324         (HANDLE_MULTIBYTE): Remove.  All uses removed by assuming true.
2325         (internal_function): Remove.  All uses removed.
2326         (STRUCT): New macro.
2327         (WIDE_CHAR_VERSION): Define to 0 instead of leaving undefined.
2328         (WMEMCMP): New macro.
2329         (FINDIDX): Define if _LIBC, and include <locale/weight.h>
2330         and <locale/weightwc.h>.
2331         (fnmatch): Prefer __glibc_likely and __glibc_unlikely to
2332         __builtin_expect.  Check for integer overflow more
2333         systematically.  Account for alloca storage better when
2334         recursive.  Use strnlen instead of strlen for efficiency.
2335         * lib/fnmatch_loop.c: Include stdint.h if _LIBC, for int32_t etc.
2336         (struct STRUCT): New type.
2337         (FCT, EXT): New ENDS and ALLOCA_USED args.
2338         All callers changed.
2339         (FCT): Prefer __glibc_unlikely to __builtin_expect.
2340         Simplify by assuming WIDE_CHAR_SUPPORT.
2341         Copy _LIBC code from glibc without worrying Gnulib compatibility.
2342         Cast cold to UCHAR to avoid signedness warning.
2343         (END): Check for invalid pattern.
2344         (EXT): Improve alloca/malloc checking (taken from glibc),
2345         and improve it some more by using intprops.h and checking
2346         for integer overflow and using bool for booleans.
2347         * lib/libc-config.h (compat_symbol): New macro.
2348         (versioned_symbol): Make it ‘extern int dummy’ so that it’s
2349         acceptable to non-GCC when a trailing semicolon is added.
2350         * modules/fnmatch (Depends-on): Add alloca-opt, intprops,
2351         libc-config, strnlen.  Remove alloca.
2353 2020-05-31  Bruno Haible  <bruno@clisp.org>
2355         getrandom: Doc and test tweaks.
2356         * lib/getrandom.c (getrandom): Mention that it never returns 0, and that
2357         it sets errno when failing.
2358         * tests/test-getrandom.c (main): Disable the high-quality check on those
2359         platforms on which it fails.
2360         * doc/glibc-functions/getrandom.texi: Add Minix, AIX, HP-UX, IRIX,
2361         Cygwin to the list of platforms that don't have the function. Add a note
2362         about the quality of the result.
2363         * doc/glibc-headers/sys_random.texi: Don't mention the 'getrandom'
2364         declaration; this is fixed by module 'getrandom'.
2366 2020-05-31  Bruno Haible  <bruno@clisp.org>
2368         getrandom: Add support for native Windows.
2369         * lib/getrandom.c: Include <errno.h>, <windows.h>, <bcrypt.h>,
2370         <wincrypt.h>.
2371         (CRYPT_VERIFY_CONTEXT): New macro.
2372         (LoadLibrary, CryptAcquireContext): Redirect to the variant with suffix
2373         'A'.
2374         (GetProcAddress): New macro.
2375         (BCryptGenRandomFuncType): New type.
2376         (BCryptGenRandomFunc, initialized): New variables.
2377         (initialize): New function.
2378         (getrandom): On native Windows, use <bcrypt.h> API when available, and
2379         <wincrypt.h> API as fallback.
2380         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Set LIB_GETRANDOM.
2381         * modules/getrandom (Link): New section.
2382         * modules/getentropy (Link): Likewise.
2383         * modules/getrandom-tests (Makefile.am): Link test-getrandom against
2384         $(LIB_GETRANDOM).
2385         * modules/getentropy-tests (Makefile.am): Link test-getentropy against
2386         $(LIB_GETRANDOM).
2387         * modules/sys_random-c++-tests (Makefile.am): Link test-sys_random-c++
2388         against $(LIB_GETRANDOM).
2389         * doc/glibc-functions/getrandom.texi: Mention the native Windows
2390         support.
2392 2020-05-31  Bruno Haible  <bruno@clisp.org>
2394         getrandom: Simplify the determination of the random number devices.
2395         Suggested by Paul Eggert in
2396         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00383.html>.
2397         * lib/getrandom.c (NAME_OF_RANDOM_DEVICE, NAME_OF_NONCE_DEVICE): New
2398         macros.
2399         * modules/getrandom (Depends-on): Remove crypto/gc-random.
2401 2020-05-31  Bruno Haible  <bruno@clisp.org>
2403         crypto/gc-random: Fix list of crypto devices for Solaris.
2404         * m4/gc-random.m4 (gl_GC_RANDOM): Don't special-case Solaris.
2406 2020-05-31  Akim Demaille  <akim@lrde.epita.fr>
2408         list: fix GCC warnings
2409         * lib/gl_anytree_list2.h (gl_tree_iterator_free)
2410         (gl_tree_next_node, gl_tree_node_nx_set_value)
2411         (gl_tree_previous_node, gl_tree_next_node):
2412         Mark unused arguments.
2413         * lib/gl_anytree_oset.h (gl_tree_iterator_free): Likewise.
2414         * lib/gl_anylinked_list2.h (gl_linked_node_value)
2415         (gl_linked_node_nx_set_value, gl_linked_iterator_free): Likewise.
2417         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Avoid using
2418         the same variable name in nested scopes.
2420 2020-05-31  Bruno Haible  <bruno@clisp.org>
2422         list-c++, set-c++, oset-c++, map-c++, omap-c++: Don't fool the compiler.
2423         Reported by Akim Demaille in
2424         <https://lists.gnu.org/archive/html/bug-bison/2020-05/msg00102.html>.
2425         * lib/gl_list.hh (gl_List::iterator::next): Avoid a reinterpret_cast.
2426         * lib/gl_set.hh (gl_Set::iterator::next): Likewise.
2427         * lib/gl_oset.hh (gl_OSet::iterator::next): Likewise.
2428         * lib/gl_map.hh (gl_Map::iterator::next): Likewise.
2429         * lib/gl_omap.hh (gl_OMap::iterator::next): Likewise.
2431 2020-05-30  Bruno Haible  <bruno@clisp.org>
2433         wmemchr: Relicense under LGPLv2+.
2434         * modules/wmemchr (License): Set to LGPLv2+.
2436 2020-05-30  Bruno Haible  <bruno@clisp.org>
2438         wmempcpy: New module.
2439         Reported by Paul Eggert in
2440         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00387.html>.
2441         * lib/wchar.in.h (wmempcpy): New declaration.
2442         * lib/wmempcpy.c: New file.
2443         * m4/wmempcpy.m4: New file.
2444         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmempcpy is declared.
2445         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMPCPY, HAVE_WMEMPCPY.
2446         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMPCPY,
2447         HAVE_WMEMPCPY.
2448         * modules/wmempcpy: New file.
2449         * tests/test-wchar-c++.cc: Check the signature of wmempcpy.
2450         * doc/glibc-functions/wmempcpy.texi: Mention the new module.
2451         * modules/mempcpy (Description): Fix typo.
2453 2020-05-30  Bruno Haible  <bruno@clisp.org>
2455         crypto/gc-random: Fix list of crypto devices for NetBSD, OpenBSD.
2456         * m4/gc-random.m4 (gl_GC_RANDOM): Don't special-case NetBSD and OpenBSD.
2458 2020-05-30  Bruno Haible  <bruno@clisp.org>
2460         sys_random: Work around macOS bug.
2461         * m4/sys_random_h.m4 (gl_HEADER_SYS_RANDOM): Include <sys/types.h> and
2462         <stdlib.h> before <sys/random.h>.
2463         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Likewise.
2464         * lib/sys_random.in.h: On macOS, include <sys/types.h> and <stdlib.h>
2465         first.
2466         * doc/glibc-headers/sys_random.texi: Mention the macOS problem.
2468 2020-05-30  Bruno Haible  <bruno@clisp.org>
2470         getrandom: Override incompatible system function on Solaris 11.
2471         * lib/sys_random.in.h (getrandom): Override if REPLACE_GETRANDOM is 1.
2472         * lib/getrandom.c (getrandom): When the system has getrandom, just
2473         invoke it.
2474         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Set REPLACE_GETRANDOM if the
2475         system's getrandom function's prototype is not the expected one.
2476         * m4/sys_random_h.m4 (gl_SYS_RANDOM_H_DEFAULTS): Initialize
2477         REPLACE_GETRANDOM.
2478         * modules/sys_random (Makefile.am): Substitute REPLACE_GETRANDOM.
2479         * modules/getrandom (modules/getrandom): Consider REPLACE_GETRANDOM.
2480         * tests/test-getrandom.c (main): Allow error EINVAL as an alternative to
2481         EAGAIN.
2482         * doc/glibc-functions/getrandom.texi: Mention the new module and the
2483         Solaris problem.
2485 2020-05-30  Bruno Haible  <bruno@clisp.org>
2487         sys_random: Add C++ tests.
2488         * tests/test-sys_random-c++.cc: New file.
2489         * modules/sys_random-c++-tests: New file.
2490         * modules/sys_random-tests (Depends-on): Depend on it.
2492         sys_random: Add tests.
2493         * tests/test-sys_random.c: New file.
2494         * modules/sys_random-tests: New file.
2496         sys_random: New module.
2497         * lib/sys_random.in.h: Use the common idioms for overridable header
2498         files.
2499         * m4/sys_random_h.m4: New file.
2500         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Require gl_SYS_RANDOM_H_DEFAULTS.
2501         * modules/sys_random: New file.
2502         * modules/getrandom (Files): Remove lib/sys_random.in.h.
2503         (Depends-on): Add sys_random.
2504         (configure.ac): Use gl_SYS_RANDOM_MODULE_INDICATOR, not
2505         gl_UNISTD_MODULE_INDICATOR.
2506         (Makefile.am): Don't generate sys/random.h here.
2507         * doc/glibc-headers/sys_random.texi: New file.
2508         * doc/gnulib.texi: Include it.
2510 2020-05-30  Bruno Haible  <bruno@clisp.org>
2512         unistd: Remove conflicting declaration of getrandom().
2513         * lib/unistd.in.h (getrandom): Remove declaration.
2514         * m4/unistd_h.m4 (gl_UNISTD_H): Don't test whether getrandom is
2515         declared.
2516         (gl_UNISTD_H_DEFAULTS): Don't initialize GNULIB_GETRANDOM,
2517         HAVE_GETRANDOM.
2518         * modules/unistd (Makefile.am): Don't substitute GNULIB_GETRANDOM,
2519         HAVE_GETRANDOM.
2521 2020-05-30  Bruno Haible  <bruno@clisp.org>
2523         getrandom: Add tests.
2524         * tests/test-getrandom.c: New file.
2525         * modules/getrandom-tests: New file.
2527 2020-05-30  Bruno Haible  <bruno@clisp.org>
2529         crypto/gc-random: Fix link error on MSVC.
2530         * m4/gc-random.m4 (gl_GC_RANDOM): Set LIB_GC_RANDOM.
2531         * modules/crypto/gc-random (Link): New section.
2532         * modules/crypto/gc-tests (Makefile.am): Link test-gc against
2533         $(LIB_GC_RANDOM).
2535 2020-05-30  Bruno Haible  <bruno@clisp.org>
2537         Don't assume that UNICODE is not defined.
2538         Many Windows API functions are defined differently (redirecting to a
2539         function with suffix 'W') if the application defines the macro UNICODE
2540         than by default (redirecting to a function with suffix 'A').
2541         * lib/clean-temp.c (OSVERSIONINFO, GetVersionEx): Redirect to the
2542         variant with suffix 'A'.
2543         * lib/dirent-private.h (WIN32_FIND_DATA): Likewise.
2544         * lib/gc-gnulib.c (CryptAcquireContext): Likewise.
2545         * lib/getaddrinfo.c (GetModuleHandle): Likewise.
2546         * lib/getlogin.c (GetUserName): Likewise.
2547         * lib/getlogin_r.c (GetUserName): Likewise.
2548         * lib/gettimeofday.c (LoadLibrary): Likewise.
2549         * lib/isatty.c (LoadLibrary, QueryFullProcessImageName): Likewise.
2550         * lib/link.c (GetModuleHandle, CreateHardLink): Likewise.
2551         * lib/localename.c (GetLocaleInfo, EnumSystemLocales): Likewise.
2552         * lib/mountlist.c (GetDriveType): Likewise.
2553         * lib/nonblocking.c (GetNamedPipeHandleState): Likewise.
2554         * lib/opendir.c (WIN32_FIND_DATA, GetFullPathName, FindFirstFile):
2555         Likewise.
2556         * lib/physmem.c (GetModuleHandle): Likewise.
2557         * lib/poll.c (GetModuleHandle, PeekConsoleInput, CreateEvent,
2558         PeekMessage, DispatchMessage): Likewise.
2559         * lib/progreloc.c (GetModuleFileName): Likewise.
2560         * lib/putenv.c (SetEnvironmentVariable): Likewise.
2561         * lib/read.c (GetNamedPipeHandleState): Likewise.
2562         * lib/readdir.c (FindNextFile): Likewise.
2563         * lib/relocatable.c (GetModuleFileName): Likewise.
2564         * lib/rename.c (MoveFileEx): Likewise.
2565         * lib/rewinddir.c (FindFirstFile): Likewise.
2566         * lib/select.c (GetModuleHandle, PeekConsoleInput, CreateEvent,
2567         PeekMessage, DispatchMessage): Likewise.
2568         * lib/sethostname.c (GetComputerNameEx, SetComputerNameEx): Likewise.
2569         * lib/socket.c (WSASocket): Likewise.
2570         * lib/stat-w32.c (LoadLibrary, GetFinalPathNameByHandle): Likewise.
2571         * lib/stat.c (WIN32_FIND_DATA, CreateFile, FindFirstFile): Likewise.
2572         * lib/stdio-read.c (GetNamedPipeHandleState): Likewise.
2573         * lib/stdio-write.c (GetNamedPipeHandleState): Likewise.
2574         * lib/tmpdir.c (GetTempPath): Likewise.
2575         * lib/tmpfile.c (OSVERSIONINFO, GetVersionEx, GetTempPath): Likewise.
2576         * lib/uname.c (OSVERSIONINFO, GetVersionEx): Likewise.
2577         * lib/utime.c (CreateFile, GetFileAttributes): Likewise.
2578         * lib/windows-cond.c (CreateEvent): Likewise.
2579         * lib/windows-rwlock.c (CreateEvent): Likewise.
2580         * lib/windows-timedmutex.c (CreateEvent): Likewise.
2581         * lib/windows-timedrecmutex.c (CreateEvent): Likewise.
2582         * lib/windows-timedrwlock.c (CreateEvent): Likewise.
2583         * lib/write.c (GetNamedPipeHandleState): Likewise.
2585 2020-05-30  Bruno Haible  <bruno@clisp.org>
2587         physmem: Fix compilation errors on MSVC.
2588         * lib/physmem.c (PFN_MS_EX): Use BOOL, not WINBOOL.
2589         * modules/physmem (Depends-on): Add unistd.
2591 2020-05-29  Bruno Haible  <bruno@clisp.org>
2593         gnulib-tool: Fix link errors with a particular set of modules on mingw.
2594         * gnulib-tool (func_emit_tests_Makefile_am): Add ../lib/libgnu.a to
2595         LDADD a second time, after the second occurrence of libtests.a.
2596         * pygnulib/GLEmiter.py (tests_Makefile_am): Likewise.
2598 2020-05-29  Bruno Haible  <bruno@clisp.org>
2600         fnmatch: Rely on more gnulib modules.
2601         * modules/fnmatch (Depends-on): Add btowc, isblank, iswctype, wmemchr,
2602         wmempcpy, mempcpy.
2603         * lib/fnmatch.c: Assume that HAVE_WCTYPE_H, HAVE_BTOWC, HAVE_ISWCTYPE,
2604         HAVE_WMEMCHR, HAVE_WMEMPCPY, HAVE_ISBLANK, HAVE_DECL_ISBLANK,
2605         HAVE_MEMPCPY are all 1.
2606         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Don't test for btowc, isblank,
2607         iswctype, mempcpy, wmemchr, wmemcpy, wmempcpy, <wctype.h>.
2609 2020-05-29  Bruno Haible  <bruno@clisp.org>
2611         Avoid dynamic lookup of Windows API functions when possible.
2612         * lib/getaddrinfo.c (GetProcAddress, getaddrinfo_func,
2613         freeaddrinfo_func, getnameinfo_func, getaddrinfo_ptr, freeaddrinfo_ptr,
2614         getnameinfo_ptr): Don't define in a build for Windows XP or higher.
2615         (use_win32_p): Define differently.
2616         * lib/link.c (GetProcAddress, CreateHardLinkFuncType,
2617         CreateHardLinkFunc, initialized, initialize): Don't define in a build
2618         for Windows XP or higher.
2620 2020-05-29  Daiki Ueno  <ueno@gnu.org>
2622         read-file: disable buffering if RF_SENSITIVE is set
2623         * lib/read-file.c (read_file): Call setvbuf if RF_SENSITIVE.
2624         Suggested by Glenn Strauss.
2625         (fread_file): Suggest calling setvbuf before calling this
2626         function.  Suggested by Bruno Haible.
2628 2020-05-29  Bruno Haible  <bruno@clisp.org>
2630         wmemchr, wmemcmp, wmemcpy, wmemmove, wmemset: Fix autoconf test.
2631         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Link, not only compile, the test
2632         program.
2633         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Likewise.
2634         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Likewise.
2635         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Likewise.
2636         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Likewise.
2638 2020-05-29  Bruno Haible  <bruno@clisp.org>
2640         Fix compilation error on native Windows (regression from 2020-05-28).
2641         Reported by Daiki Ueno.
2642         * lib/gettimeofday.c (GetSystemTimePreciseAsFileTimeFunc): Define as
2643         macro when not using dynamic loading.
2644         * lib/isatty.c (GetNamedPipeClientProcessIdFunc,
2645         QueryFullProcessImageNameFunc): Likewise.
2646         * lib/stat-w32.c (GetFileInformationByHandleExFunc,
2647         GetFinalPathNameByHandleFunc): Likewise.
2649 2020-05-29  Daiki Ueno  <ueno@gnu.org>
2651         fopen-gnu-tests: fix "\x" escape usage
2652         * tests/test-fopen-gnu.c (DATA): Use safer escape sequence.
2654 2020-05-28  Bruno Haible  <bruno@clisp.org>
2656         Avoid dynamic loading of Windows API functions when possible.
2657         Reported by Steve Lhomme <robux4@ycbcr.xyz> in
2658         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00182.html>.
2659         * lib/gettimeofday.c (GetProcAddress,
2660         GetSystemTimePreciseAsFileTimeFuncType,
2661         GetSystemTimePreciseAsFileTimeFunc, initialized, initialize): Don't
2662         define in a build for Windows 8 or higher.
2663         * lib/isatty.c (GetProcAddress, GetNamedPipeClientProcessIdFuncType,
2664         GetNamedPipeClientProcessIdFunc, QueryFullProcessImageNameFuncType,
2665         QueryFullProcessImageNameFunc, initialized, initialize): Don't define
2666         in a build for Windows Vista or higher.
2667         * lib/stat-w32.c (GetProcAddress, GetFileInformationByHandleExFuncType,
2668         GetFileInformationByHandleExFunc, GetFinalPathNameByHandleFuncType,
2669         GetFinalPathNameByHandleFunc, initialized, initialize): Likewise.
2671 2020-05-28  Paul Eggert  <eggert@cs.ucla.edu>
2673         explicit_bzero-tests: improve -Wmissing-declarations pacification
2674         * tests/test-explicit_bzero.c: Now noinline.
2675         Suggested by Bruno Haible in:
2676         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00300.html
2678 2020-05-28  Bruno Haible  <bruno@clisp.org>
2680         Fix build errors due to read-file changes (regression from 2020-05-27).
2681         * lib/git-merge-changelog.c (read_changelog_file): Update read_file
2682         invocation.
2683         * tests/test-sameacls.c (main): Likewise.
2684         * tests/test-pipe-filter-gi1.c (main): Call read_file instead of
2685         read_binary_file.
2686         * tests/test-pipe-filter-ii1.c (main): Likewise.
2688 2020-05-28  Bruno Haible  <bruno@clisp.org>
2690         fts: Make more robust in multithreaded applications.
2691         * lib/fts.c (fts_open): Pass an O_CLOEXEC flag to open().
2692         * modules/fts (Depends-on): Add 'open'.
2694 2020-05-28  Bruno Haible  <bruno@clisp.org>
2696         relocatable-prog: Make more robust in multithreaded applications.
2697         * lib/progreloc.c (O_CLOEXEC): Define fallback to 0 when use from module
2698         relocatable-prog-wrapper.
2699         (find_executable): Pass an O_CLOEXEC flag to open().
2700         * modules/relocatable-prog (Depends-on): Add 'open'.
2702 2020-05-28  Bruno Haible  <bruno@clisp.org>
2704         getloadavg: Make more robust in multithreaded applications.
2705         * lib/getloadavg.c (getloadavg): Pass an O_CLOEXEC flag to open().
2706         Simplify use of O_CLOEXEC.
2707         * modules/getloadavg (Depends-on): Add 'open'.
2709 2020-05-28  Bruno Haible  <bruno@clisp.org>
2711         vma-iter: Make more robust in multithreaded applications.
2712         * lib/vma-iter.c (rof_open, vma_iterate): Pass an O_CLOEXEC flag to
2713         open().
2714         * modules/vma-iter (Depends-on): Add 'open'.
2716 2020-05-28  Bruno Haible  <bruno@clisp.org>
2718         truncate: Make more robust in multithreaded applications.
2719         * lib/truncate.c (truncate): Pass an O_CLOEXEC flag to open().
2721 2020-05-28  Bruno Haible  <bruno@clisp.org>
2723         pagealign_alloc: Make more robust in multithreaded applications.
2724         * lib/pagealign_alloc.c (pagealign_alloc): Pass an O_CLOEXEC flag to
2725         open().
2726         * modules/pagealign_alloc (Depends-on): Add 'open'.
2728 2020-05-28  Bruno Haible  <bruno@clisp.org>
2730         openat: Make more robust in multithreaded applications.
2731         * lib/openat.c (openat_needs_fchdir): Pass an O_CLOEXEC flag to open().
2733 2020-05-28  Bruno Haible  <bruno@clisp.org>
2735         at-internal: Make more robust in multithreaded applications.
2736         * lib/openat-proc.c (openat_proc_name): Pass an O_CLOEXEC flag to
2737         open().
2739 2020-05-28  Bruno Haible  <bruno@clisp.org>
2741         mountlist: Make more robust in multithreaded applications.
2742         * lib/mountlist.c (read_file_system_list): Pass an O_CLOEXEC flag to
2743         open().
2744         * modules/mountlist (Depends-on): Add 'open'.
2746 2020-05-28  Bruno Haible  <bruno@clisp.org>
2748         login_tty: Make more robust in multithreaded applications.
2749         * lib/login_tty.c (login_tty): Pass an O_CLOEXEC flag to open().
2750         * modules/login_tty (Depends-on): Add 'open'.
2752 2020-05-28  Bruno Haible  <bruno@clisp.org>
2754         javacomp: Make more robust in multithreaded applications.
2755         * lib/javacomp.c (get_classfile_version): Pass an O_CLOEXEC flag to
2756         open().
2757         * modules/javacomp (Depends-on): Add 'open'.
2759 2020-05-28  Bruno Haible  <bruno@clisp.org>
2761         getprogname: Make more robust in multithreaded applications.
2762         * lib/getprogname.c (getprogname): Pass an O_CLOEXEC flag to open().
2763         * modules/getprogname (Depends-on): Add 'open'.
2765 2020-05-28  Bruno Haible  <bruno@clisp.org>
2767         get_progname_of: Make more robust in multithreaded applications.
2768         * lib/get_progname_of.c (get_progname_of): Pass an O_CLOEXEC flag to
2769         open().
2770         * modules/get_progname_of (Depends-on): Add 'open'.
2772 2020-05-28  Bruno Haible  <bruno@clisp.org>
2774         get_ppid_of: Make more robust in multithreaded applications.
2775         * lib/get_ppid_of.c (get_ppid_of): Pass an O_CLOEXEC flag to open().
2776         * modules/get_ppid_of (Depends-on): Add 'open'.
2778 2020-05-28  Bruno Haible  <bruno@clisp.org>
2780         get-rusage-as: Make more robust in multithreaded applications.
2781         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Pass an O_CLOEXEC
2782         flag to open().
2783         * modules/get-rusage-as (Depends-on): Add 'open'.
2785 2020-05-28  Bruno Haible  <bruno@clisp.org>
2787         crypto/gc: Make more robust in multithreaded applications.
2788         * lib/gc-gnulib.c (randomize): Pass an O_CLOEXEC flag to open().
2789         * modules/crypto/gc (Depends-on): Add 'open'.
2791 2020-05-28  Bruno Haible  <bruno@clisp.org>
2793         copy-file: Make more robust in multithreaded applications.
2794         * lib/copy-file.c (qcopy_file_preserving): Pass an O_CLOEXEC flag to
2795         open().
2797 2020-05-28  Bruno Haible  <bruno@clisp.org>
2799         chown: Make more robust in multithreaded applications.
2800         * lib/chown.c (rpl_chown): Pass an O_CLOEXEC flag to open().
2802 2020-05-28  Bruno Haible  <bruno@clisp.org>
2804         doc: Fix statement about O_CLOEXEC (wrong since 2017-08-14).
2805         * doc/posix-headers/fcntl.texi: Gnulib no longer defines O_CLOEXEC to 0.
2807 2020-05-28  Daiki Ueno  <ueno@gnu.org>
2809         fopen-gnu: make 'b' flag can be used with 'e' on Windows
2810         * lib/fopen.c (rpl_fopen): Pass O_BINARY to open, if a 'b' flag is
2811         specified on Windows.
2812         * tests/test-fopen-gnu.c (DATA): New define.
2813         (main): Add test for reading binary files with an 'e' flag.
2815 2020-05-27  Bruno Haible  <bruno@clisp.org>
2817         Don't assume that UNICODE is not defined.
2818         Some Windows types, such as TCHAR, LPTSTR, LPCTSTR, are defined
2819         differently if the application defines the macro UNICODE.
2820         Reported by Steve Lhomme <robux4@ycbcr.xyz> in
2821         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00184.html>.
2822         * lib/link.c (CreateHardLinkFuncType): Use LPCSTR, not LPCTSTR.
2823         * lib/localename.c (enum_locales_fn): Use LPSTR, not LPTSTR.
2824         * lib/stat-w32.c (GetFinalPathNameByHandleFuncType): Likewise.
2826 2020-05-27  Bruno Haible  <bruno@clisp.org>
2828         Improve pattern for defining _WIN32_WINNT.
2829         Newer versions of the Windows API may not only add, but also remove API
2830         functions. Therefore, when the user is e.g. building for Windows 10, we
2831         should not set _WIN32_WINNT to e.g. Windows 8, as this may enable the
2832         use of APIs that were present in Windows 8 but removed in Windows 10.
2833         Suggested by Steve Lhomme <robux4@ycbcr.xyz> in
2834         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00318.html>.
2835         * lib/ftruncate.c (_WIN32_WINNT): Don't set to a smaller value.
2836         * lib/sethostname.c (_WIN32_WINNT): Likewise.
2837         * lib/stat-w32.c (_WIN32_WINNT): Likewise.
2839 2020-05-27  Bruno Haible  <bruno@clisp.org>
2841         javacomp: Make more robust in multithreaded applications.
2842         * lib/javacomp.c (write_temp_file): Pass an 'e' flag to fopen_temp.
2843         * modules/javacomp (Depends-on): Add fopen-gnu.
2845 2020-05-27  Bruno Haible  <bruno@clisp.org>
2847         mountlist: Make more robust in multithreaded applications.
2848         * lib/mountlist.c (setmntent, read_file_system_list): Pass an 'e' flag
2849         to fopen.
2850         * modules/mountlist (Depends-on): Add fopen-gnu.
2852 2020-05-27  Bruno Haible  <bruno@clisp.org>
2854         sethostname: Make more robust in multithreaded applications.
2855         * lib/sethostname.c (sethostname): Pass an 'e' flag to fopen.
2856         * modules/sethostname (Depends-on): Add fopen-gnu.
2858 2020-05-27  Bruno Haible  <bruno@clisp.org>
2860         readutmp: Make more robust in multithreaded applications.
2861         * lib/readutmp.c (read_utmp): Pass an 'e' flag to fopen.
2862         * modules/readutmp (Depends-on): Add fopen-gnu.
2864 2020-05-27  Bruno Haible  <bruno@clisp.org>
2866         getpass: Make more robust in multithreaded applications.
2867         * lib/getpass.c (getpass): Pass an 'e' flag to fopen.
2868         * modules/getpass (Depends-on): Add fopen-gnu.
2870 2020-05-27  Bruno Haible  <bruno@clisp.org>
2872         getloadavg: Make more robust in multithreaded applications.
2873         * lib/getloadavg.c (getloadavg): Pass an 'e' flag to fopen.
2874         * modules/getloadavg (Depends-on): Add fopen-gnu.
2876 2020-05-27  Bruno Haible  <bruno@clisp.org>
2878         exclude: Make more robust in multithreaded applications.
2879         * lib/exclude.c (add_exclude_file): Pass an 'e' flag to fopen.
2880         * modules/exclude (Depends-on): Add fopen-gnu.
2882 2020-05-27  Bruno Haible  <bruno@clisp.org>
2884         bitset: Make more robust in multithreaded applications.
2885         * lib/bitset/stats.c (bitset_stats_read, bitset_stats_write): Pass an
2886         'e' flag to fopen.
2887         * modules/bitset (Depends-on): Add fopen-gnu.
2889 2020-05-27  Daiki Ueno  <ueno@gnu.org>
2891         read-file: add RF_SENSITIVE flag
2892         * lib/read-file.h (RF_SENSITIVE): New define.
2893         * lib/read-file.c (fread_file, read_file): Take into account of
2894         RF_SENSITIVE flag.
2895         * modules/read-file (Depends-on): Add explicit_bzero.
2896         This adds an alternative behavior of those functions to explicitly
2897         clear the internal memory block when it becomes unused.  This is
2898         useful for reading sensitive information from a file.
2900 2020-05-27  Daiki Ueno  <ueno@gnu.org>
2902         read-file: add flags to modify reading behavior
2903         * lib/read-file.h (RF_BINARY): New define.
2904         (fread_file, read_file): Take FLAGS argument.
2905         (read_binary_file): Remove.
2906         * lib/read-file.c (internal_read_file): Merge into ...
2907         (read_file): ... here.
2908         * modules/read-file-tests (Files): Add "tests/macros.h".
2909         * tests/test-read-file.c (main): Refactor using ASSERT macro.
2910         * NEWS: Mention this change.
2912 2020-05-26  Bernhard Voelker  <mail@bernhard-voelker.de>
2914         doc/gnulib-intro.texi: add missing "to" in sentence
2915         Reported by Bjarni Ingi Gislason <bjarniig@rhi.hi.is> in
2916         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00316.html>.
2917         * doc/gnulib-intro.texi (Collaborative Development): Add "to".
2919 2020-05-26  Bruno Haible  <bruno@clisp.org>
2921         count-one-bits: Fix MSVC specific code.
2922         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
2923         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00309.html>.
2924         * lib/count-one-bits.h (COUNT_ONE_BITS_GENERIC): Don't define if we're
2925         using GCC.
2926         [_MSC_VER]: Use correct syntax for #pragma intrinsic.
2927         (__popcnt64): In 32-bit mode, define as an inline function.
2928         (COUNT_ONE_BITS): Rename first argument to GCC_BUILTIN.
2930 2020-05-26  Bruno Haible  <bruno@clisp.org>
2932         argz: Avoid name clashes through argz.h.
2933         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
2934         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00308.html>.
2935         * lib/argz.h: Don't use __ prefixed identifiers.
2936         (const): Remove definition.
2937         (argz_next): Remove inline definitions.
2939 2020-05-26  Daiki Ueno  <ueno@gnu.org>
2941         read-file: make use of fopen-gnu
2942         * lib/read-file.c (read_file): Pass an 'e' flag to fopen.
2943         (read_binary_file): Likewise.
2944         * modules/read-file (Depends-on): Add fopen-gnu.
2946 2020-05-25  Paul Eggert  <eggert@cs.ucla.edu>
2948         getentropy, getrandom: new modules
2949         * MODULES.html.sh (func_all_modules):
2950         * lib/unistd.in.h (getentropy, getrandom):
2951         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS):
2952         * modules/unistd (unistd.h):
2953         Add support for getentropy, getrandom.
2954         * doc/glibc-functions/getentropy.texi (getentropy):
2955         * doc/glibc-functions/getrandom.texi (getrandom):
2956         These are now fixed on some platforms.
2957         * lib/getentropy.c, lib/getrandom.c, lib/sys_random.in.h:
2958         * m4/getentropy.m4, m4/getrandom.m4:
2959         * modules/getentropy, modules/getentropy-tests:
2960         * modules/getrandom, modules/getrandom-tests:
2961         * tests/test-getentropy.c, tests/test-getrandom.c:
2962         New files.
2964 2020-05-25  Bruno Haible  <bruno@clisp.org>
2966         Add missing C99 dependencies.
2967         Reported by Paul Smith <psmith@gnu.org> in
2968         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00290.html>.
2969         * modules/assert (Depends-on): Add c99.
2970         * modules/filenamecat-lgpl (Depends-on): Likewise.
2971         * modules/libc-config (Depends-on): Likewise.
2972         * modules/mktime (Depends-on): Likewise.
2973         * modules/random_r (Depends-on): Likewise.
2974         * modules/regex (Depends-on): Likewise.
2975         * modules/scratch_buffer (Depends-on): Likewise.
2976         * modules/timespec-add (Depends-on): Likewise.
2977         * modules/timespec-sub (Depends-on): Likewise.
2978         * modules/verify (Depends-on): Likewise.
2980 2020-05-24  Paul Eggert  <eggert@cs.ucla.edu>
2982         explicit_bzero-tests: pacify -Wmissing-declarations
2983         * tests/test-explicit_bzero.c (do_secret_stuff, test_stack):
2984         Now static.
2986 2020-05-24  Bruno Haible  <bruno@clisp.org>
2988         fopen-gnu: Add tests.
2989         * tests/test-fopen-gnu.c: New file.
2990         * modules/fopen-gnu-tests: New file.
2992         fopen-gnu: New module.
2993         Suggested by Tim Rühsen <tim.ruehsen@gmx.de> in
2994         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00119.html>.
2995         * lib/fopen.c (rpl_fopen): When the fopen-gnu module is enabled and the
2996         mode contains an 'x' or 'e' flag, use open() followed by fdopen().
2997         * m4/fopen.m4 (gl_FUNC_FOPEN_GNU): New macro.
2998         * modules/fopen-gnu: New file.
2999         * doc/posix-functions/fopen.texi: Document the 'fopen-gnu' module.
3001 2020-05-24  Bruno Haible  <bruno@clisp.org>
3003         open, openat: Really support O_CLOEXEC.
3004         * lib/open.c (open): When have_cloexec is still undecided, do pass a
3005         O_CLOEXEC flag to orig_open.
3006         * lib/openat.c (rpl_openat): When have_cloexec is still undecided, do
3007         pass a O_CLOEXEC flag to orig_openat.
3008         * tests/test-open.h (test_open): Verify that O_CLOEXEC is honoured.
3009         * modules/open-tests (Depends-on): Add fcntl.
3010         * modules/openat-tests (Depends-on): Likewise.
3011         * modules/fcntl-safer-tests (Depends-on): Likewise.
3013 2020-05-24  Bruno Haible  <bruno@clisp.org>
3015         fopen: Fix the trailing slash workaround.
3016         * lib/fopen.c (rpl_fopen): Parse the mode string. Recognize "r+" as a
3017         write access. Pass the right flags to open().
3018         * tests/test-fopen.h (test_fopen): Add a few more tests on directories.
3020 2020-05-23  Paul Eggert  <eggert@cs.ucla.edu>
3022         assure: new macro ‘affirm’
3023         * lib/assure.h: Include verify.h.
3024         (affirm): New macro, after a suggestion by Marc Nieper-Wißkirchen in:
3025         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00263.html
3026         and commentary by Bruno Haible in:
3027         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00278.html
3028         * modules/assure (Depends-on:): Add verify.
3030 2020-05-23  Bruno Haible  <bruno@clisp.org>
3032         calloc-gnu: Make test work in non-flat address spaces.
3033         Uses code by Paul Eggert.
3034         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Allow a calloc() implementation
3035         to return more than SIZE_MAX bytes, but only without wrap-around bugs.
3037 2020-05-23  Bruno Haible  <bruno@clisp.org>
3039         calloc-gnu: Avoid wrong configure results with GCC's AddressSanitizer.
3040         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Split the AC_RUN_IFELSE into two
3041         AC_RUN_IFELSE invocations.
3043 2020-05-23  Bruno Haible  <bruno@clisp.org>
3045         isnanf, isnanl, isnan: Don't use nonexistent builtins with clang.
3046         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM,
3047         gl_ISNANF_WORKS): Don't use __builtin_isnanf on clang versions that
3048         don't have it.
3049         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
3050         gl_FUNC_ISNANL_WORKS): Don't use __builtin_isnanl on clang versions that
3051         don't have it.
3052         * lib/isnanf-nolibm.h (__has_builtin): New macro.
3053         (isnanf): Don't use __builtin_isnanf on clang versions that don't have
3054         it.
3055         * lib/isnanl-nolibm.h (__has_builtin): New macro.
3056         (isnanl): Don't use __builtin_isnanl on clang versions that don't have
3057         it.
3058         * lib/math.in.h (__has_builtin): New macro.
3059         (isnanf): Don't use __builtin_isnanf on clang versions that don't have
3060         it.
3061         (isnanl): Don't use __builtin_isnanl on clang versions that don't have
3062         it.
3063         (isnan): Don't use the builtins on clang versions that don't have
3064         __builtin_isnanf and __builtin_isnanl.
3066 2020-05-23  Bruno Haible  <bruno@clisp.org>
3068         calloc-gnu: Avoid wrong configure results with clang.
3069         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Mark the pointer variable as
3070         'volatile', to defeat compiler optimizations.
3072 2020-05-23  Bruno Haible  <bruno@clisp.org>
3074         isnanl, isnanl-nolibm: Make a test work better with "gcc -O2" on x86_64.
3075         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Pass the
3076         'long double' values by reference, with values taken from a statically
3077         allocated array.
3079 2020-05-23  Bruno Haible  <bruno@clisp.org>
3081         findprog-in: Ignore directories.
3082         Reported by Frederick Eaton via Dmitry Goncharov in
3083         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00003.html>.
3084         * lib/findprog-in.c (find_in_given_path): When the file found is a
3085         directory, set errno to EACCES and, during a PATH search, continue
3086         searching.
3087         * modules/findprog-in (Depends-on): Add sys_stat, stat.
3089 2020-05-23  Paul Eggert  <eggert@cs.ucla.edu>
3091         verify: document ‘assume’ better
3092         * lib/verify.h (assume): Say it’s for static analysis, not dynamic.
3094 2020-05-22  Asher Gordon  <AsDaGo@posteo.net>
3096         gendocs: Clarify licenses for templates.
3097         * doc/gendocs_template: Add a GNU All-Permissive license notice
3098         and bump Parent-Version.
3099         * doc/gendocs_template_min: Add a GNU All-Permissive license
3100         notice and copy the explanatory comment about the license notice
3101         at the bottom from gendocs_template.
3103 2020-05-21  Bruno Haible  <bruno@clisp.org>
3105         group-member: Relicense under LGPLv2+.
3106         Jim Meyering's approval is in
3107         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00218.html>.
3108         Paul Eggert's approval is in
3109         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00225.html>.
3110         Eric Blake's approval is in
3111         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00217.html>.
3112         * modules/group-member (License): Change to LGPLv2+.
3114 2020-05-21  Bruno Haible  <bruno@clisp.org>
3116         memmem: Avoid wrong configure results with "clang -fsanitize=undefined".
3117         Reported by Tim Rühsen in
3118         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00207.html>.
3119         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Use NULL + 1, not NULL.
3121 2020-05-21  Bruno Haible  <bruno@clisp.org>
3123         regex: Avoid wrong configure results with "clang -fsanitize=leak".
3124         Reported by Tim Rühsen in
3125         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00207.html>.
3126         * m4/regex.m4 (gl_REGEX): Free compiled regexes and allocated registers
3127         before returning with status 0.
3129 2020-05-21  Bruno Haible  <bruno@clisp.org>
3131         glob: Avoid wrong configure results with "clang -fsanitize=leak".
3132         Reported by Tim Rühsen in
3133         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00207.html>.
3134         * m4/glob.m4 (gl_GLOB): Free allocated memory before returning.
3136 2020-05-21  Bruno Haible  <bruno@clisp.org>
3138         fchownat: Support clang -fsanitize=implicit-integer-sign-change better.
3139         Reported by Tim Rühsen in
3140         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00207.html>.
3141         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG,
3142         gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): Cast -1 to uid_t or git_t,
3143         respectively.
3145 2020-05-18  Tim Rühsen  <tim.ruehsenqgmx.de>
3147         getdelim: Avoid wrong configure results with gcc -fsanitize=address.
3148         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Fix memleak.
3150 2020-05-19  Paul Eggert  <eggert@cs.ucla.edu>
3152         ftoastr: fix ifndef typo
3153         * lib/ftoastr.h (_GL_FTOASTR_H): Define.
3155 2020-05-19  Bruno Haible  <bruno@clisp.org>
3157         havelib: Tweak documentation.
3158         * doc/havelib.texi (Searching for Libraries): Fix typo.
3160 2020-05-18  Siddhesh Poyarekar  <siddhesh@gotplt.org>
3162         vcs-to-changelog: Rename vcs_to_changelog.py to use hyphens.
3163         This was needed earlier because modules had to import the main script,
3164         but that is no longer true.  Rename the script so that it is
3165         consistent with all other scripts in gnulib and uses hyphens.
3166         * build-aux/vcs_to_changelog.py: Rename to...
3167         * build-aux/vcs-to-changelog.py: ... this.
3168         * doc/vcs-to-changelog.texi (VCS To ChangeLog): Update reference.
3169         * modules/vcs-to-changelog: Likewise.
3171 2020-05-17  Bruno Haible  <bruno@clisp.org>
3173         Clarify intended usage of the license file modules.
3174         Reported by Asher Gordon <AsDaGo@posteo.net> in
3175         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00126.html>.
3176         * doc/licenses-texi.texi (License Texinfo sources): Mention the
3177         GNU AGPL. Explain the intended usage of the modules.
3178         * modules/fdl (Notice): Discourage use as a module.
3179         * modules/fdl-1.3 (Notice): Likewise.
3181 2020-05-17  Akim Demaille  <akim@lrde.epita.fr>
3183         hash: add hash_xinsert
3184         * lib/hash.h, lib/xhash.c (hash_xinsert): New.
3186 2020-05-16  Bruno Haible  <bruno@clisp.org>
3188         findprog-lgpl: Fix link error (existing since 2008-09-02).
3189         * modules/findprog-lgpl (Makefile.am): Arrange to compile
3190         findprog-lgpl.c, not findprog.c.
3191         * lib/findprog.c (find_in_path): Add LGPLed replacement code for
3192         XNMALLOC.
3194 2020-05-15  Paul Eggert  <eggert@cs.ucla.edu>
3196         c-stack: pacify -Wunused-result when DEBUG
3197         Problem reported by Marc Nieper-Wißkirchen in:
3198         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00132.html
3199         * lib/c-stack.c (segv_handler, overflow_handler, segv_handler) [DEBUG]:
3200         Explicitly ignore write failures.
3202 2020-05-13  Jim Meyering  <meyering@fb.com>
3204         announce-gen: improve a comment
3205         * build-aux/announce-gen: Improve comment.
3207 2020-05-12  Paul Eggert  <eggert@cs.ucla.edu>
3209         xalloc: pacify -Wanalyzer-possible-null-argument
3210         Problem reported for GCC 10.1.0 by Bruno Haible in:
3211         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00118.html
3212         * lib/xmalloc.c (HAVE_GNU_MALLOC, HAVE_GNU_REALLOC): New constants.
3213         (xmalloc): Suppress unnecessary check if HAVE_GNU_MALLOC.
3214         (xrealloc): Suppress unnecssary check if HAVE_GNU_REALLOC.
3216 2020-05-11  Paul Eggert  <eggert@cs.ucla.edu>
3218         careadlinkat: fix GCC 10 workaround
3219         * lib/careadlinkat.c (careadlinkat) [GCC_LINT]:
3220         Massage the code so that it’s closer to what it was before
3221         the GCC 10.1.0 workaround was introduced.  This fixes
3222         a loop when !buffer and the bug workaround is in effect.
3223         Remove unnecessary casts.  Defend in a different way
3224         against (buffer && !buffer_size), by adding at least 1
3225         to buf_size each time through the loop.
3227 2020-05-10  Bruno Haible  <bruno@clisp.org>
3229         doc: Mark HP-UX as unsupported.
3230         * doc/gnulib-intro.texi (Target Platforms): List HP-UX as unsupported.
3232 2020-05-10  Paul Eggert  <eggert@cs.ucla.edu>
3234         careadlinkat: limit GCC workaround
3235         * lib/careadlinkat.c (careadlinkat): Limit workaround to GCC
3236         10.1.0 and later, since the workaround is pretty bad and the GCC
3237         bug should get fixed.
3239 2020-05-10  Bruno Haible  <bruno@clisp.org>
3241         havelib: Enhance documentation.
3242         * doc/havelib.texi (Searching for Libraries): Mention the bad
3243         consequences of using LIBxxx instead of LTLIBxxx and vice versa.
3245 2020-05-10  Bruno Haible  <bruno@clisp.org>
3247         attribute: Clarify list of attributes.
3248         * lib/attribute.h: Reorder the list of attributes, and group them by
3249         purpose.
3251 2020-05-10  Bruno Haible  <bruno@clisp.org>
3253         string: Fix compilation error in C++ mode.
3254         * lib/warn-on-use.h (_GL_WARN_ON_USE_CXX): In C mode, use plain
3255         _GL_WARN_ON_USE.
3256         * lib/string.in.h (strchr, strpbrk, strrchr): Use _GL_WARN_ON_USE_CXX
3257         instead of _GL_WARN_ON_USE.
3259 2020-05-10  Akim Demaille  <akim@lrde.epita.fr>
3261         announce-gen: add support for dist-lzip
3262         * build-aux/announce-gen (@archive_suffixes): Add tar.lz.
3264 2020-05-09  Paul Eggert  <eggert@cs.ucla.edu>
3266         manywarnings: port to GCC 10.1
3267         * build-aux/gcc-warning.spec:
3268         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C)):
3269         Add GCC 10.1.0 warnings.
3271         careadlinkat: pacify -Wreturn-local-addr
3272         * lib/careadlinkat.c (careadlinkat) [GCC_LINT]:
3273         Pacify gcc 10’s -Wreturn-local-addr option.
3274         Simplify some of the later code.
3276 2020-05-09  Paul Eggert  <eggert@cs.ucla.edu>
3278         attribute: remove ATTRIBUTE_DEPRECATED
3279         * lib/attribute.h: Improve recently-added comments, mostly
3280         by shortening them (use active voice, etc.).
3281         (ATTRIBUTE_DEPRECATED): Remove, as it duplicates DEPRECATED.
3282         Problem reported by Bruno Haible in:
3283         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00089.html
3285 2020-05-09  Bruno Haible  <bruno@clisp.org>
3287         attribute: Add comments.
3288         * lib/attribute.h: Document each macro.
3290 2020-05-09  Akim Demaille  <akim@lrde.epita.fr>
3292         bitset: use the attribute module
3293         * modules/bitset: Depend on 'attribute'.
3294         * lib/bitset/base.h (ATTRIBUTE_UNUSED): Remove.
3295         * lib/bitset.c, lib/bitset/array.c, lib/bitset/list.c,
3296         * lib/bitset/stats.c, lib/bitset/table.c, lib/bitset/vector.c:
3297         Use MAYBE_UNUSED instead of ATTRIBUTE_UNUSED.
3299 2020-05-09  Bruno Haible  <bruno@clisp.org>
3301         c-stack: Fix warning when DEBUG is enabled.
3302         Patch suggested by Marc Nieper-Wißkirchen <marc.nieper+gnu@gmail.com> in
3303         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00081.html>.
3304         * lib/c-stack.c: Include <stdio.h>.
3306 2020-05-09  Bruno Haible  <bruno@clisp.org>
3308         Remove redundant definitions of _GL_ATTRIBUTE_FORMAT.
3309         * lib/argp.h (_GL_ATTRIBUTE_FORMAT): Remove macro.
3310         * lib/argp-fmtstream.h (_GL_ATTRIBUTE_FORMAT): Likewise.
3311         * lib/c-snprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
3312         * lib/c-vasnprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
3313         * lib/c-vasprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
3314         * lib/c-vsnprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
3315         * lib/c-xvasprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
3316         * lib/error.h (_GL_ATTRIBUTE_FORMAT): Likewise.
3317         * lib/parse-datetime.y (_GL_ATTRIBUTE_FORMAT): Likewise.
3318         * lib/vasnprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
3319         * lib/xprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
3320         * lib/xvasprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
3322 2020-05-09  Bruno Haible  <bruno@clisp.org>
3324         Remove redundant definitions of _GL_ATTRIBUTE_ALLOC_SIZE.
3325         Reported by Akim Demaille in
3326         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00077.html>.
3327         * lib/eealloc.h (_GL_ATTRIBUTE_ALLOC_SIZE): Remove macro.
3328         * lib/pagealign_alloc.h (_GL_ATTRIBUTE_ALLOC_SIZE): Likewise.
3329         * lib/xalloc.h (_GL_ATTRIBUTE_ALLOC_SIZE): Likewise.
3331 2020-05-09  Bruno Haible  <bruno@clisp.org>
3333         stdio, monetary: Don't redefine _GL_ATTRIBUTE_FORMAT.
3334         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT): Don't override the definition
3335         that usually comes from m4/gnulib-common.m4.
3336         * lib/monetary.in.h (_GL_ATTRIBUTE_FORMAT): Likewise.
3338 2020-05-09  Bruno Haible  <bruno@clisp.org>
3340         dirent, stdlib, wchar, string: Don't redefine _GL_ATTRIBUTE_PURE.
3341         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Don't override the definition
3342         that usually comes from m4/gnulib-common.m4.
3343         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Likewise.
3344         * lib/string.in.h (_GL_ATTRIBUTE_PURE): Likewise.
3345         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Likewise.
3347 2020-05-09  Bruno Haible  <bruno@clisp.org>
3349         uchar: Work around incorrect char16_t, char32_t types on Haiku 2020.
3350         * lib/uchar.in.h (char16_t): Define as macro if
3351         GNULIB_OVERRIDES_CHAR16_T.
3352         (char32_t): Define as macro if GNULIB_OVERRIDES_CHAR32_T.
3353         * m4/uchar.m4 (gl_TYPE_CHAR16_T, gl_TYPE_CHAR32_T): New macros.
3354         (gl_UCHAR_H): Invoke them.
3355         (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_OVERRIDES_CHAR16_T,
3356         GNULIB_OVERRIDES_CHAR32_T.
3357         * m4/mbrtoc32.m4 (gl_FUNC_MBRTOC32, gl_MBRTOC32_SANITYCHECK): Require
3358         gl_TYPE_CHAR32_T and test GNULIB_OVERRIDES_CHAR32_T.
3359         * modules/uchar (Makefile.am): Substitute GNULIB_OVERRIDES_CHAR16_T,
3360         GNULIB_OVERRIDES_CHAR32_T.
3362 2020-05-09  Bruno Haible  <bruno@clisp.org>
3364         Macro tweaks.
3365         * m4/c32rtomb.m4 (gl_FUNC_C32RTOMB): Correct config.h comment.
3366         * m4/wint_t.m4 (gt_TYPE_WINT_T): Correct indentation.
3368 2020-05-08  Bruno Haible  <bruno@clisp.org>
3370         c32rtomb: Avoid compilation failure on Haiku.
3371         * m4/c32rtomb.m4 (gl_FUNC_C32RTOMB): Test for c32rtomb without excluding
3372         inline definitions.
3373         * doc/posix-functions/c32rtomb.texi: Mention the Haiku problem.
3375 2020-05-08  Bruno Haible  <bruno@clisp.org>
3377         mbrtoc32: Avoid compilation failure on Haiku.
3378         * m4/mbrtoc32.m4 (gl_CHECK_FUNC_MBRTOC32): New macro.
3379         (gl_FUNC_MBRTOC32, gl_MBRTOC32_SANITYCHECK): Use it instead of
3380         AC_CHECK_FUNCS_ONCE.
3381         * doc/posix-functions/mbrtoc32.texi: Mention the Haiku problem.
3383 2020-05-08  Bruno Haible  <bruno@clisp.org>
3385         limits-h: Define LONG_BIT correctly on Haiku/x86_64.
3386         * lib/limits.in.h: Define and test _GL_ALREADY_INCLUDING_LIMITS_H.
3388 2020-05-08  Bruno Haible  <bruno@clisp.org>
3390         list: Update documentation.
3391         Reported by Marc Nieper-Wißkirchen <marc.nieper+gnu@gmail.com> in
3392         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00062.html>.
3393         * doc/containers.texi (Container data types): Document the new list
3394         operations and their complexity.
3396 2020-05-08  Bruno Haible  <bruno@clisp.org>
3398         ignore-value tests: Use module 'attribute'.
3399         * m4/gnulib-common.m4 (gl_COMMON_BODY): Fix a typo.
3400         * tests/test-ignore-value.c: Include attribute.h.
3401         (_GL_ATTRIBUTE_RETURN_CHECK): Remove macro. Use NODISCARD instead.
3402         * modules/ignore-value-tests (Depends-on): Add attribute.
3404 2020-05-08  Bruno Haible  <bruno@clisp.org>
3406         uniname/uniname: Use module 'attribute'.
3407         * lib/uniname/gen-uninames.lisp: Emit a reference to ATTRIBUTE_PACKED.
3408         * lib/uniname/uninames.h: Regenerated.
3409         * lib/uniname/uniname.c: Include attribute.h.
3410         * modules/uniname/uniname (Depends-on): Add attribute.
3412 2020-05-08  Bruno Haible  <bruno@clisp.org>
3414         c32rtomb: Use module 'attribute'.
3415         * lib/c32rtomb.c: Include attribute.h.
3416         (FALLTHROUGH): Remove macro.
3417         * modules/c32rtomb (Depends-on): Add attribute.
3419 2020-05-08  Bruno Haible  <bruno@clisp.org>
3421         xsize: Use module 'attribute'.
3422         * lib/xsize.h: Include attribute.h. Use ATTRIBUTE_PURE.
3423         * modules/xsize (Depends-on): Add attribute.
3425 2020-05-06  Paul Eggert  <eggert@cs.ucla.edu>
3427         * m4/gnulib-common.m4 (gl_COMMON_BODY): Minor style fixes.
3429         * lib/attribute.h: Minor style fixes.
3431         Fix version-etc glitch on OpenIndiana
3432         Problem reported by Mats Erik Andersson in:
3433         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00067.html
3434         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Remove defn
3435         that now clashes with gnulib-common.h.  All uses changed.
3437 2020-05-03  Paul Eggert  <eggert@cs.ucla.edu>
3439         attribute: new module
3440         This simplifies use of GCC and C2X attributes like ‘deprecated’.
3441         * MODULES.html.sh: Add attribute.
3442         * doc/attribute.texi, lib/attribute.h, modules/attribute: New files.
3443         * doc/gnulib.texi (Particular Modules): Add Attributes.
3444         * lib/backupfile.c, lib/fnmatch.c, lib/freopen-safer.c:
3445         * lib/mbrtoc32.c, lib/mbrtowc.c, lib/nstrftime.c, lib/quotearg.c:
3446         * lib/savewd.c, lib/unistr/u8-uctomb-aux.c, lib/unistr/u8-uctomb.c:
3447         * lib/vasnprintf.c:
3448         Include attribute.h, and let it define FALLTHROUGH.
3449         * lib/bitset/base.h, lib/c-stack.c (__attribute__): Remove macro.
3450         * lib/bitset/base.h (ATTRIBUTE_UNUSED): Define in terms of
3451         _GL_ATTRIBUTE_MAYBE_UNUSED, for forwards compatibility to C2X.
3452         * lib/dfa.c (FALLTHROUGH): Define consistently with gl_COMMON_BODY.
3453         This is a copy since Gawk doesn’t use Gnulib.
3454         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Remove definition that
3455         is incompatible with gl_COMMON_BODY’s.  All uses changed.
3456         * lib/fts.c: Include attribte.h, for FALLTHROUGH.
3457         Keep the existing FALLTHROUGH definition since Glibc might use it,
3458         and it does no harm to Gnulib’s FALLTHROUGH.
3459         * lib/fts_.h, lib/inttostr.h:
3460         (__GNUC_PREREQ): Remove; no longer needed.
3461         (__attribute_warn_unused_result__): Remove.  All uses
3462         replaced by _GL_ATTRIBUTE_NODISCARD.
3463         * lib/gl_list.h, lib/gl_map.h, lib/gl_omap.h, lib/gl_oset.h:
3464         * lib/gl_set.h: Prefer _GL_ATTRIBUTE_NODISCARD to an ifdeffed
3465         __attribute__ ((__warn_unused_result__)), for forward
3466         compatibility to C2X.
3467         * lib/hash.h (_GL_ATTRIBUTE_WUR): Remove.  All uses replaced by
3468         _GL_ATTRIBUTE_NODISCARD.
3469         (_GL_ATTRIBUTE_DEPRECATED): Remove, since gl_COMMON_BODY defines it.
3470         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Remove.  All uses
3471         replaced by gl_COMMON_BODY’s implementation, which has a
3472         slightly different signature.
3473         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK):
3474         Remove.  All uses replaced by _GL_ATTRIBUTE_NODISCARD.
3475         * lib/unused-parameter.h (_GL_UNUSED_PARAMETER):
3476         Define in terms of _GL_ATTRIBUTE_MAYBE_UNUSED.
3477         No doubt all uses should be replaced, at some point.
3478         * m4/gnulib-common.m4 (_GL_GNUC_PREREQ): New macro.
3479         (_Noreturn): Use it.
3480         (_GL_HAS_ATTRIBUTE, _GL_ATTRIBUTE_ALLOC_SIZE)
3481         (_GL_ATTRIBUTE_ALWAYS_INLINE, _GL_ATTRIBUTE_ARTIFICIAL)
3482         (_GL_ATTRIBUTE_COLD)
3483         (_GL_ATTRIBUTE_DEPRECATED, _GL_ATTRIBUTE_ERROR)
3484         (_GL_ATTRIBUTE_WARNING, _GL_ATTRIBUTE_EXTERNALLY_VISIBLE)
3485         (_GL_ATTRIBUTE_FALLTHROUGH, _GL_ATTRIBUTE_FORMAT)
3486         (_GL_ATTRIBUTE_LEAF, _GL_ATTRIBUTE_MAY_ALIAS)
3487         (_GL_ATTRIBUTE_MAYBE_UNUSED)
3488         (_GL_ATTRIBUTE_NODISCARD, _GL_ATTRIBUTE_NOINLINE)
3489         (_GL_ATTRIBUTE_NONNULL, _GL_ATTRIBUTE_NONSTRING)
3490         (_GL_ATTRIBUTE_NOTHROW, _GL_ATTRIBUTE_PACKED, _GL_ATTRIBUTE_PURE)
3491         (_GL_ATTRIBUTE_RETURNS_NONNULL)
3492         (_GL_ATTRIBUTE_SENTINEL): New macros.
3493         * modules/backup-rename, modules/backupfile, modules/c-vasnprintf:
3494         * modules/fnmatch, modules/freopen-safer, modules/fts:
3495         * modules/mbrtoc32, modules/mbrtowc, modules/nstrftime:
3496         * modules/quotearg, modules/savewd:
3497         * modules/unistdio/u16-u16-vasnprintf:
3498         * modules/unistdio/u16-vasnprintf:
3499         * modules/unistdio/u32-u32-vasnprintf:
3500         * modules/unistdio/u32-vasnprintf:
3501         * modules/unistdio/u8-u8-vasnprintf:
3502         * modules/unistdio/u8-vasnprintf:
3503         * modules/unistdio/ulc-vasnprintf:
3504         * modules/unistr/u8-uctomb, modules/vasnprintf:
3505         (Depends-on:): Add attribute module.
3507 2020-05-03  Bruno Haible  <bruno@clisp.org>
3509         bison: Fix today's commit.
3510         * m4/bison.m4 (gl_PROG_BISON): Set ac_verc_fail to 'yes', not 'true'.
3512 2020-05-03  Bruno Haible  <bruno@clisp.org>
3514         list-c++: Add get_first, get_last, set_first, set_last operations.
3515         * lib/gl_list.hh (class gl_List): Add methods get_first, get_last,
3516         set_first, set_last.
3517         * lib/gl_list.h: Tweak comments.
3519 2020-05-03  Akim Demaille  <akim@lrde.epita.fr>
3521         bison: rely on bison's %require to check a version requirement
3522         See https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00021.html.
3523         * m4/bison.m4 (gl_PROG_BISON): Let bison itself decide if it it recent
3524         enough of not.
3525         So far it is the only know Yacc tool that supports '%require'.
3526         Other yaccs will actually even choke on seeing the -o option after the
3527         input file name.
3528         * m4/parse-datetime.m4: Simplify gl_PROG_BISON invocation.
3530 2020-05-02  Bruno Haible  <bruno@clisp.org>
3532         list: Add get_first, get_last, set_first, set_last operations.
3533         * lib/gl_list.h (gl_list_get_first, gl_list_get_last,
3534         gl_list_nx_set_first, gl_list_nx_set_last): New functions.
3535         * lib/gl_xlist.h (gl_list_set_first, gl_list_set_last): New functions.
3537 2020-05-02  Bruno Haible  <bruno@clisp.org>
3539         list: Remove redundant code for remove_first and remove_last operations.
3540         * lib/gl_list.h (struct gl_list_implementation): Remove fields
3541         remove_first, remove_last.
3542         (gl_list_remove_first, gl_list_remove_last): Implement in a generic way.
3543         * lib/gl_array_list.c: Revert last change.
3544         * lib/gl_carray_list.c: Likewise.
3545         * lib/gl_anylinked_list2.h: Likewise.
3546         * lib/gl_linked_list.c: Likewise.
3547         * lib/gl_linkedhash_list.c: Likewise.
3548         * lib/gl_anytree_list2.h: Likewise.
3549         * lib/gl_avltree_list.c: Likewise.
3550         * lib/gl_avltreehash_list.c: Likewise.
3551         * lib/gl_rbtree_list.c: Likewise.
3552         * lib/gl_rbtreehash_list.c: Likewise.
3553         * lib/gl_sublist.c: Likewise.
3555 2020-05-02  Bruno Haible  <bruno@clisp.org>
3557         bison-i18n: Add support for cross-compilation.
3558         Reported by Hongxu Jia <hongxu.jia@windriver.com> in
3559         <https://lists.gnu.org/archive/html/bison-patches/2016-02/msg00000.html>
3560         via Akim Demaille <akim@lrde.epita.fr>.
3561         * m4/bison-i18n.m4 (BISON_I18N): Accept a configure option
3562         --with-bison-prefix=PREFIX and use it to determine BISON_LOCALEDIR.
3563         Don't use bison's --print-localedir option when cross-compiling.
3564         Also, fix an error message and a comment.
3566 2020-05-01  Bruno Haible  <bruno@clisp.org>
3568         list: Add remove_first and remove_last operations.
3569         Suggested by Marc Nieper-Wißkirchen <marc.nieper+gnu@gmail.com> in
3570         <https://lists.gnu.org/archive/html/bug-gnulib/2020-04/msg00092.html>.
3571         * lib/gl_list.h (struct gl_list_implementation): Add fields
3572         remove_first, remove_last.
3573         (gl_list_remove_first, gl_list_remove_last): New functions.
3574         * lib/gl_array_list.c (gl_array_remove_first, gl_array_remove_last): New
3575         functions, based on gl_array_remove_at.
3576         (gl_array_list_implementation): Implement the new operations.
3577         * lib/gl_carray_list.c (gl_carray_remove_first, gl_carray_remove_last):
3578         New functions, based on gl_carray_remove_at.
3579         (gl_carray_list_implementation): Implement the new operations.
3580         * lib/gl_anylinked_list2.h (gl_linked_remove_first,
3581         gl_linked_remove_last): New functions, based on gl_linked_remove_at.
3582         * lib/gl_linked_list.c (gl_linked_list_implementation): Implement the
3583         new operations.
3584         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation):
3585         Likewise.
3586         * lib/gl_anytree_list2.h (gl_tree_remove_first, gl_tree_remove_last):
3587         New functions, based on gl_tree_remove_at.
3588         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Implement the
3589         new operations.
3590         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
3591         Likewise.
3592         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Likewise.
3593         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation):
3594         Likewise.
3595         * lib/gl_sublist.c (gl_sublist_remove_first, gl_sublist_remove_last):
3596         New functions, based on gl_sublist_remove_at.
3597         (gl_sublist_list_implementation): Implement the new operations.
3598         * lib/gl_list.hh (class gl_List): Add methods remove_first,
3599         remove_last.
3600         * tests/test-array_list.c (main): Test also gl_list_remove_first and
3601         gl_list_remove_last.
3602         * tests/test-avltree_list.c (main): Likewise.
3603         * tests/test-avltreehash_list.c (main): Likewise.
3604         * tests/test-carray_list.c (main): Likewise.
3605         * tests/test-linked_list.c (main): Likewise.
3606         * tests/test-linkedhash_list.c (main): Likewise.
3607         * tests/test-rbtree_list.c (main): Likewise.
3608         * tests/test-rbtreehash_list.c (main): Likewise.
3610 2020-05-01  Bruno Haible  <bruno@clisp.org>
3612         parse-datetime: Fix a build failure with an older bison version.
3613         * modules/parse-datetime (Makefile.am): Don't do the post-processing of
3614         parse-datetime.tab.c if a suitable version of bison was not found.
3616 2020-05-01  Bruno Haible  <bruno@clisp.org>
3618         bison: New module.
3619         * m4/bison.m4 (gl_PROG_BISON): New macro, extracted from
3620         m4/parse-datetime.m4.
3621         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Invoke gl_PROG_BISON.
3622         * modules/bison: New file.
3623         * modules/parse-datetime (Files): Remove m4/bison.m4.
3624         (Depends-on): Add bison.
3626 2020-05-01  Jose E. Marchesi  <jemarch@gnu.org>
3628         Update users.txt.
3629         * users.txt: Add poke.
3631 2020-04-28  Bruno Haible  <bruno@clisp.org>
3633         posix_spawn_file_actions_addfchdir tests: Enhance test.
3634         * tests/test-posix_spawn5.c: Include findprog.h.
3635         (test): New function, extracted from main.
3636         (main): Invoke it. Also, invoke it with a program name such as
3637         "bin/pwd".
3638         * modules/posix_spawn_file_actions_addfchdir-tests (Depends-on): Add
3639         findprog.
3641 2020-04-28  Bruno Haible  <bruno@clisp.org>
3643         posix_spawn_file_actions_addchdir tests: Enhance test.
3644         * tests/test-posix_spawn4.c: Include findprog.h.
3645         (test): New function, extracted from main.
3646         (main): Invoke it. Also, invoke it with a program name such as
3647         "bin/pwd".
3648         * modules/posix_spawn_file_actions_addchdir-tests (Depends-on): Add
3649         findprog.
3651 2020-04-28  Bruno Haible  <bruno@clisp.org>
3653         posix_spawn_file_actions_destroy: Fix a crash (bug from 2019-06-10).
3654         * lib/spawn_faction_destroy.c (posix_spawn_file_actions_destroy): Don't
3655         access elements of the wrong union member.
3657 2020-04-27  Bruno Haible  <bruno@clisp.org>
3659         getdate: Remove deprecated module.
3660         * modules/getdate: Remove file.
3661         * doc/getdate.texi: Remove file.
3662         * lib/getdate.h: Remove file.
3663         * NEWS: Mention the removal.
3665 2020-04-27  Bruno Haible  <bruno@clisp.org>
3667         realloc: Remove deprecated module.
3668         * modules/realloc: Remove file.
3669         * NEWS: Mention the removal.
3671 2020-04-27  Bruno Haible  <bruno@clisp.org>
3673         calloc: Remove deprecated module.
3674         * modules/calloc: Remove file.
3675         * NEWS: Mention the removal.
3677 2020-04-27  Bruno Haible  <bruno@clisp.org>
3679         malloc: Remove deprecated module.
3680         * modules/malloc: Remove file.
3681         * NEWS: Mention the removal.
3683 2020-04-27  Bruno Haible  <bruno@clisp.org>
3685         fnmatch-posix: Remove deprecated module.
3686         * modules/fnmatch-posix: Remove file.
3687         * MODULES.html.sh (Enhancements for POSIX:2008 functions): Update.
3688         * NEWS: Mention the removal.
3690 2020-04-27  Bruno Haible  <bruno@clisp.org>
3692         pipe: Remove deprecated module.
3693         * modules/pipe: Remove file.
3694         * lib/pipe.h: Remove file.
3695         * NEWS: Mention the removal.
3697 2020-04-27  Bruno Haible  <bruno@clisp.org>
3699         getopt: Remove deprecated module.
3700         * modules/getopt: Remove file.
3701         * NEWS: Mention the removal.
3703 2020-04-27  Bruno Haible  <bruno@clisp.org>
3705         remove-dest-slash: Remove deprecated module.
3706         * modules/rename-dest-slash: Remove file.
3707         * MODULES.html.sh (Compatibility checks for POSIX:2008 functions):
3708         Update.
3709         * NEWS: Mention the removal.
3711 2020-04-27  Bruno Haible  <bruno@clisp.org>
3713         unictype/bidicategory-*: Remove deprecated modules.
3714         * modules/unictype/bidicategory-all: Remove file.
3715         * modules/unictype/bidicategory-byname: Remove file.
3716         * modules/unictype/bidicategory-name: Remove file.
3717         * modules/unictype/bidicategory-of: Remove file.
3718         * modules/unictype/bidicategory-test: Remove file.
3719         * MODULES.html.sh (Unicode string functions): Update.
3720         * NEWS: Mention the removals.
3722 2020-04-25  Paul Eggert  <eggert@cs.ucla.edu>
3724         Tune fts for FTS_LOGICAL+FTS_NOSTAT
3725         From a suggestion by Askar Safin in:
3726         https://lists.gnu.org/r/bug-gnulib/2020-04/msg00074.html
3727         * lib/fts.c (fts_build): If file types are known, optimize
3728         FTS_LOGICAL+FTS_NOSTAT for non-symlinks and non-directories the
3729         same way that we already optimize FTS_PHYSICAL+FTS_NOSTAT for
3730         non-directories.
3732 2020-04-19  Bruno Haible  <bruno@clisp.org>
3734         vasnprintf: Add support for printing wide characters using escapes.
3735         * lib/vasnprintf.c (ENABLE_WCHAR_FALLBACK): Document optional macro.
3736         (wctomb_fallback): New function.
3737         (local_wctomb): New function.
3738         (local_wcrtomb): New function or macro.
3739         (MAX_ROOM_NEEDED): Adjust estimate for %lc.
3740         (VASNPRINTF): Simplify %ls code by use of local_wcrtomb. Add code for
3741         %lc.
3743 2020-04-15  Paul Eggert  <eggert@cs.ucla.edu>
3745         fts: remove NOSTAT_LEAF_OPTIMIZATION
3746         It caused ‘find’ and ‘du’ to dump core, and it was useful
3747         only for obsolescent Linux filesystems anyway.  Problem reported in:
3748         https://lists.gnu.org/r/bug-gnulib/2020-04/msg00068.html
3749         Quite possibly there is still a serious underlying fts bug with
3750         tight-loop-check and mutating file systems, but if so this patch
3751         should cause the bug to be triggered less often.
3752         * lib/fts.c (enum leaf_optimization): Remove
3753         NOSTAT_LEAF_OPTIMIZATION, as it’s problematic.
3754         (S_MAGIC_REISERFS, S_MAGIC_XFS): Remove; no longer needed.
3755         (leaf_optimization): Remove special cases for ReiserFS and XFS.
3756         (fts_read): Remove NOSTAT_LEAF_OPTIMIZATION code.
3757         * lib/fts_.h (struct _ftsent.fts_n_dirs_remaining):
3758         Remove.  All uses removed.
3760 2020-04-13  Bastien Roucariès  <rouca@debian.org>
3762         explicit_bzero: Improve code style.
3763         * lib/explicit_bzero.c (explicit_bzero): Use '\0' instead of 0.
3765 2020-04-13  Bastien Roucariès  <rouca@debian.org>
3767         explicit_bzero: On native Windows, use SecureZeroMemory().
3768         * lib/explicit_bzero.c: Include <windows.h>.
3769         (explicit_bzero): On native Windows, use SecureZeroMemory.
3771 2020-04-13  Bastien Roucariès  <rouca@debian.org>
3773         explicit_bzero: Use memset_s() when available.
3774         * lib/explicit_bzero.c (__STDC_WANT_LIB_EXT1__): Define.
3775         (explicit_bzero): Use memset_s when available.
3776         * m4/explicit_bzero.m4 (gl_PREREQ_EXPLICIT_BZERO): Test for memset_s.
3778 2020-04-13  Bastien Roucariès  <rouca@debian.org>
3780         explicit_bzero tests: Fix test failure on OpenBSD 6.5.
3781         * tests/test-explicit_bzero.c (test_heap): Handle implementations of
3782         free() that overwrite the memory with canaries.
3784 2020-04-13  Akim Demaille  <akim@lrde.epita.fr>
3786         bootstrap: recommend git submodule update --init
3787         Reported by Bruno Haible.
3788         <https://lists.gnu.org/r/bug-gnulib/2020-03/msg00101.html>
3789         * build-aux/bootstrap: recommand "git submodule update --init"
3790         rather than "git submodule init".
3792 2020-04-12  Bruno Haible  <bruno@clisp.org>
3794         explicit_bzero: Add tests.
3795         * tests/test-explicit_bzero.c: New file.
3796         * modules/explicit_bzero-tests: New file.
3798 2020-04-11  Bruno Haible  <bruno@clisp.org>
3800         explicit_bzero: Relicense under LGPLv2+.
3801         Approved by Paul Eggert.
3802         * modules/explicit_bzero (License): Change to LGPLv2+.
3804 2020-04-10  Bruno Haible  <bruno@clisp.org>
3806         findprog, relocatable-prog: Ignore directories during PATH search.
3807         Reported by Frederick Eaton via Dmitry Goncharov in
3808         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00003.html>.
3810         * lib/findprog.c (find_in_path): When the file found in a PATH element
3811         is a directory, continue searching.
3812         * modules/findprog (Depends-on): Add sys_stat, stat.
3813         * modules/findprog-lgpl (Depends-on): Likewise.
3815         * lib/progreloc.c (maybe_executable): When the file found in a PATH
3816         element is a directory, continue searching.
3817         * lib/relocwrapper.c: Update comments.
3818         * modules/relocatable-prog-wrapper (Files): Add m4/largefile.m4.
3819         (configure.ac-early): New section.
3821 2020-04-10  Bruno Haible  <bruno@clisp.org>
3823         MODULES.html.sh: Support for reproducible builds from git-less tarballs.
3824         Reported by Bernhard M. Wiedemann <bwiedemann@suse.de> in
3825         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00061.html>.
3826         * MODULES.html.sh: In a git-less tarball, use the date of the first
3827         ChangeLog entry.
3829 2020-04-04  Bruno Haible  <bruno@clisp.org>
3831         Fix comments: The gettext library is under LGPL 2.1, not LGPL 2.0.
3832         * m4/gettext.m4: Fix comments regarding the gettext library.
3833         * m4/intl-thread-locale.m4: Likewise.
3834         * m4/intlmacosx.m4: Likewise.
3835         * m4/lcmessage.m4: Likewise.
3836         * m4/nls.m4: Likewise.
3837         * m4/po.m4: Likewise.
3838         * m4/progtest.m4: Likewise.
3840 2020-04-04  Jim Meyering  <meyering@fb.com>
3842         maint: remove a stray inter-word space in a 6x-repeated comment
3843         Induce the changes by running this:
3844           re='by  perl'; git grep -l "$re"|xargs perl -pi -e "s/$re/by perl/"
3845         * build-aux/announce-gen: Change "by  perl" to "by perl".
3846         * build-aux/gitlog-to-changelog: Likewise.
3847         * build-aux/prefix-gnulib-mk: Likewise.
3848         * build-aux/update-copyright: Likewise.
3849         * build-aux/useless-if-before-free: Likewise.
3850         * tests/test-update-copyright.sh: Likewise.
3852 2020-03-28  Bruno Haible  <bruno@clisp.org>
3854         Use module 'filename' instead of module 'dosname'.
3856         * lib/at-func.c: Include filename.h instead of dosname.h.
3857         * lib/unlinkat.c: Likewise.
3858         * modules/areadlinkat (Depends-on): Add filename. Remove dosname.
3859         * modules/areadlinkat-with-size (Depends-on): Likewise.
3860         * modules/faccessat (Depends-on): Likewise.
3861         * modules/fchmodat (Depends-on): Likewise.
3862         * modules/fchownat (Depends-on): Likewise.
3863         * modules/fstatat (Depends-on): Likewise.
3864         * modules/mkdirat (Depends-on): Likewise.
3865         * modules/mkfifoat (Depends-on): Likewise.
3866         * modules/readlinkat (Depends-on): Likewise.
3867         * modules/selinux-at (Depends-on): Likewise.
3868         * modules/symlinkat (Depends-on): Likewise.
3869         * modules/unlinkat (Depends-on): Likewise.
3870         * modules/utimensat (Depends-on): Likewise.
3872         * lib/at-func2.c: Include filename.h instead of dosname.h.
3873         * modules/linkat (Depends-on): Add filename. Remove dosname.
3874         * modules/renameatu (Depends-on): Likewise.
3876         * lib/canonicalize.c: Include filename.h instead of dosname.h.
3877         * lib/canonicalize-lgpl.c: Likewise.
3878         * modules/canonicalize (Depends-on): Add filename.
3879         * modules/canonicalize-lgpl (Depends-on): Likewise.
3881         * lib/dirname.h: Include filename.h instead of dosname.h.
3882         * modules/dirname-lgpl (Depends-on): Add filename. Remove dosname.
3884         * lib/fchdir.c: Include filename.h instead of dosname.h.
3885         * modules/fchdir (Depends-on): Add filename. Remove dosname.
3887         * lib/openat.c: Include filename.h instead of dosname.h.
3888         * modules/openat (Depends-on): Add filename. Remove dosname.
3890         * lib/rmdir.c: Include filename.h instead of dosname.h.
3891         * modules/rmdir (Depends-on): Add filename. Remove dosname.
3893         * lib/savewd.c: Include filename.h instead of dosname.h.
3894         * modules/savewd (Depends-on): Add filename. Remove dosname.
3896         * lib/unlink.c: Include filename.h instead of dosname.h.
3897         * modules/unlink (Depends-on): Add filename. Remove dosname.
3899         * modules/relocatable-prog-wrapper (Depends-on): Add filename.
3900         * lib/relocwrapper.c: Update comments.
3902         * modules/lstat (Depends-on): Remove dosname.
3904 2020-03-28  Bruno Haible  <bruno@clisp.org>
3906         dosname: Redirect to 'filename'.
3907         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
3908         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00042.html>.
3909         * lib/dosname.h: Remove all definitions. Just include filename.h.
3910         * modules/dosname (Status, Notice): Mark as deprecated.
3911         (Depends-on): Add 'filename'.
3913 2020-03-28  Bruno Haible  <bruno@clisp.org>
3915         dosname: Change IS_RELATIVE_FILE_NAME.
3916         * lib/dosname.h (IS_RELATIVE_FILE_NAME): On native Windows, OS/2, DOS,
3917         change the definition so that IS_RELATIVE_FILE_NAME("c:") is false.
3918         * NEWS: Mention the change.
3920 2020-03-28  Bruno Haible  <bruno@clisp.org>
3922         filename: Copy some definitions from module 'dosname'.
3923         * lib/filename.h: Include <string.h>, for IS_FILE_NAME_WITH_DIR.
3924         (HAS_DEVICE): Document macro.
3925         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New macro.
3926         (IS_ABSOLUTE_FILE_NAME): Consider
3927         FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE.
3928         (IS_RELATIVE_FILE_NAME, IS_FILE_NAME_WITH_DIR): New macros.
3929         (IS_ABSOLUTE_PATH, IS_PATH_WITH_DIR): Define as deprecated aliases.
3930         * lib/relocatable.c (IS_FILE_NAME_WITH_DIR): Renamed from
3931         IS_PATH_WITH_DIR.
3932         (DllMain): Update.
3933         * lib/progreloc.c (IS_FILE_NAME_WITH_DIR): Renamed from
3934         IS_PATH_WITH_DIR.
3935         (find_executable): Update.
3936         * NEWS: Document the deprecations.
3938 2020-03-25  Paul Eggert  <eggert@cs.ucla.edu>
3940         getopt-posix: port __GETOPT_PREFIX to macOS
3941         * lib/getopt-pfx-core.h (_GETOPT) [__APPLE__ && __GETOPT_PREFIX]:
3942         Define to work around a problem with asm on macOS (Bug#40205).
3944 2020-03-22  Bruno Haible  <bruno@clisp.org>
3946         MODULES.html.sh: Add support for reproducible builds.
3947         Reported by Bernhard M. Wiedemann <bwiedemann@suse.de> in
3948         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00024.html>.
3949         * MODULES.html.sh: Print the date of the last gnulib commit, not the
3950         current date.
3952 2020-03-22  Bruno Haible  <bruno@clisp.org>
3954         Several modules: Depend on stat.
3955         * modules/acl-permissions (Depends-on): Add stat.
3956         * modules/canonicalize (Depends-on): Likewise.
3957         * modules/file-has-acl (Depends-on): Likewise.
3958         * modules/fstat (Depends-on): Likewise.
3959         * modules/fstatat (Depends-on): Likewise.
3960         * modules/glob (Depends-on): Likewise.
3961         * modules/javacomp (Depends-on): Likewise.
3962         * modules/linkat (Depends-on): Likewise.
3963         * modules/mkdir (Depends-on): Likewise.
3964         * modules/pt_chown (Depends-on): Likewise.
3965         * modules/ptsname_r (Depends-on): Likewise.
3966         * modules/readlinkat (Depends-on): Likewise.
3967         * modules/rename (Depends-on): Likewise.
3968         * modules/renameatu (Depends-on): Likewise.
3969         * modules/tmpdir (Depends-on): Likewise.
3970         * modules/utimens (Depends-on): Likewise.
3971         * modules/relocatable-prog-wrapper (Depends-on): Add largefile.
3972         * modules/same (Depends-on): Remove stat.
3974 2020-03-22  Bruno Haible  <bruno@clisp.org>
3976         acl-permissions: Improve autoconf macro.
3977         * m4/acl.m4 (gl_FUNC_ACL): Test the value of gl_need_lib_has_acl
3978         more reliably.
3980 2020-03-22  Bruno Haible  <bruno@clisp.org>
3982         file-has-acl: Fix module description.
3983         * modules/file-has-acl (Files): Add lib/acl-internal.h, m4/acl.m4.
3984         (Depends-on): Depend on acl-permissions unconditionally.
3986 2020-03-21  Bruno Haible  <bruno@clisp.org>
3988         unlink: Ensure errno also on native Windows.
3989         * modules/unlink (Depends-on): Add malloc-posix.
3991 2020-03-21  Paul Eggert  <eggert@cs.ucla.edu>
3993         unlink: fix malloc errno typo
3994         Problem reported by Tim Rühsen in:
3995         https://lists.gnu.org/r/bug-gnulib/2020-03/msg00044.html
3996         * lib/unlink.c (rpl_unlink): Don’t mask malloc errno.
3998 2020-03-16  Bruno Haible  <bruno@clisp.org>
4000         *printf-posix: Fix m4 error (regression from 2020-03-08).
4001         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): Enable interpretation of
4002         brackets in AC_COMPILE_IFELSE invocation.
4004 2020-03-08  Bruno Haible  <bruno@clisp.org>
4006         crypto/af_alg, renameatu, same, term-style-control: Depend on fstat.
4007         * modules/crypto/af_alg (Depends-on): Add fstat.
4008         * modules/renameatu (Depends-on): Likewise.
4009         * modules/same (Depends-on): Likewise.
4010         * modules/term-style-control (Depends-on): Likewise.
4012 2020-03-08  Bruno Haible  <bruno@clisp.org>
4014         *printf-posix: Document why it's overridden on some glibc systems.
4015         Reported by Adrian Bunk <bunk@stusta.de> in
4016         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00011.html>.
4017         * doc/posix-functions/*printf.texi: Document the problem with the %n
4018         directive on some glibc systems.
4019         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Adjust
4020         the cross-compilation guesses accordingly.
4022 2020-03-07  Paul Eggert  <eggert@cs.ucla.edu>
4024         open, openat: port to (O_RDWR | O_RDONLY) != 0
4025         Potential portability problem reported by Dan Gohman in:
4026         https://lists.gnu.org/r/bug-gnulib/2020-03/msg00000.html
4027         * lib/open.c (open):
4028         * lib/openat.c (rpl_openat):
4029         Don’t assume O_RDONLY is disjoint from O_RDWR.
4031 2020-03-07  Bruno Haible  <bruno@clisp.org>
4033         openat: Fix theoretically possible issue on GNU/Hurd.
4034         Reported by Dan Gohman <sunfish@mozilla.com> in
4035         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00000.html>.
4036         * lib/openat.c (rpl_openat): When testing whether flags contains O_RDWR,
4037         ignore the bits that are also set in O_RDONLY.
4039 2020-02-24  Bruno Haible  <bruno@clisp.org>
4041         getloadavg: Don't use /usr/local when cross-compiling on AIX.
4042         Reported by Jens Rehsack <sno@netbsd.org> in
4043         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00136.html>.
4044         * m4/getloadavg.m4 (gl_GETLOADAVG): Don't look in /usr/local/lib when
4045         cross-compiling.
4047 2020-02-24  Bruno Haible  <bruno@clisp.org>
4049         fcntl: Add witness of gnulib override.
4050         Reported by Jens Rehsack <sno@netbsd.org> in
4051         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00137.html>.
4052         * lib/fcntl.in.h (GNULIB_defined_rpl_fcntl, GNULIB_defined_fcntl): New
4053         macros.
4055 2020-02-23  Assaf Gordon  <assafgordon@gmail.com>
4057         Update users.txt.
4058         * users.txt: Add datamash, time.
4060 2020-02-23  Bruno Haible  <bruno@clisp.org>
4062         uni*/base: Use 'restrict'.
4063         * lib/unitypes.in.h (_UC_RESTRICT): New macro, based on '_Restrict_'
4064         from lib/regex.h.
4065         * lib/unistr.in.h (u8_cpy, u16_cpy, u32_cpy, u8_strcpy, u16_strcpy,
4066         u32_strcpy, u8_stpcpy, u16_stpcpy, u32_stpcpy, u8_strncpy, u16_strncpy,
4067         u32_strncpy, u8_stpncpy, u16_stpncpy, u32_stpncpy, u8_strcat,
4068         u16_strcat, u32_strcat, u8_strncat, u16_strncat, u32_strncat, u8_strtok,
4069         u16_strtok, u32_strtok): Use '_UC_RESTRICT'.
4070         * lib/uninorm.in.h (u8_normalize, u16_normalize, u32_normalize): Use
4071         '_UC_RESTRICT'.
4072         * lib/uniconv.in.h (u8_conv_to_encoding, u16_conv_to_encoding,
4073         u32_conv_to_encoding): Use '_UC_RESTRICT'.
4074         * lib/unicase.in.h (u8_toupper, u16_toupper, u32_toupper, u8_tolower,
4075         u16_tolower, u32_tolower, u8_totitle, u16_totitle, u32_totitle,
4076         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
4077         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
4078         u32_ct_totitle, u8_casefold, u16_casefold, u32_casefold, u8_ct_casefold,
4079         u16_ct_casefold, u32_ct_casefold, u8_casexfrm, u16_casexfrm,
4080         u32_casexfrm, ulc_casexfrm): Use '_UC_RESTRICT'.
4081         * lib/unilbrk.in.h (u8_possible_linebreaks, u16_possible_linebreaks,
4082         u32_possible_linebreaks, ulc_possible_linebreaks, u8_width_linebreaks,
4083         u16_width_linebreaks, u32_width_linebreaks, ulc_width_linebreaks): Use
4084         '_UC_RESTRICT'.
4085         * lib/uniwbrk.in.h (ulc_wordbreaks): Use '_UC_RESTRICT'.
4086         * lib/unistdio.in.h (ulc_sprintf, ulc_snprintf, ulc_asnprintf,
4087         ulc_vsprintf, ulc_vsnprintf, ulc_vasnprintf, u8_u8_sprintf,
4088         u8_u8_snprintf, u8_u8_asnprintf, u8_u8_vsprintf, u8_u8_vsnprintf,
4089         u8_u8_vasnprintf, u16_u16_sprintf, u16_u16_snprintf, u16_u16_asnprintf,
4090         u16_u16_vsprintf, u16_u16_vsnprintf, u16_u16_vasnprintf,
4091         u32_u32_sprintf, u32_u32_snprintf, u32_u32_asnprintf, u32_u32_vsprintf,
4092         u32_u32_vsnprintf, u32_u32_vasnprintf): Use '_UC_RESTRICT'.
4094 2020-02-23  Bruno Haible  <bruno@clisp.org>
4096         glob, spawn: Use improved '_Restrict_' definition.
4097         * lib/glob.in.h (_Restrict_): Use same definition as in lib/regex.h.
4098         * lib/spawn.in.h (_Restrict_, _Restrict_arr_): Likewise.
4100 2020-02-23  Bruno Haible  <bruno@clisp.org>
4102         crypto/gc: Use 'restrict'.
4103         * lib/gc.h (gc_pbkdf2_hmac, gc_pbkdf2_sha1): Use 'restrict'.
4104         * m4/gc.m4 (gl_GC): Require AC_C_RESTRICT.
4106         crypto/hmac-*: Use 'restrict'.
4107         * lib/hmac.h (hmac_md5, hmac_sha1, hmac_sha256, hmac_sha512): Use
4108         'restrict'.
4109         * modules/crypto/hmac-md5 (configure.ac): Require AC_C_RESTRICT.
4110         * modules/crypto/hmac-sha1 (configure.ac): Likewise.
4111         * modules/crypto/hmac-sha256 (configure.ac): Likewise.
4112         * modules/crypto/hmac-sha512 (configure.ac): Likewise.
4114         crypto/sm3: Use 'restrict'.
4115         * lib/sm3.h (sm3_finish_ctx, sm3_read_ctx, sm3_buffer): Use 'restrict'.
4116         * m4/sm3.m4 (gl_SM3): Require AC_C_RESTRICT.
4118         crypto/*-buffer: Use 'restrict'.
4119         * lib/gl_openssl.h (GL_CRYPTO_FN (_finish_ctx), GL_CRYPTO_FN (_buffer),
4120         GL_CRYPTO_FN (_read_ctx)): Use 'restrict'.
4122         crypto/sha512-buffer: Use 'restrict'.
4123         * lib/sha512.h (sha512_finish_ctx, sha384_finish_ctx, sha512_read_ctx,
4124         sha384_read_ctx, sha512_buffer, sha384_buffer): Use 'restrict'.
4125         * modules/crypto/sha512-buffer (configure.ac): Require AC_C_RESTRICT.
4127         crypto/sha256-buffer: Use 'restrict'.
4128         * lib/sha256.h (sha256_finish_ctx, sha224_finish_ctx, sha256_read_ctx,
4129         sha224_read_ctx, sha256_buffer, sha224_buffer): Use 'restrict'.
4130         * modules/crypto/sha256-buffer (configure.ac): Require AC_C_RESTRICT.
4132         crypto/sha1-buffer: Use 'restrict'.
4133         * lib/sha1.h (sha1_finish_ctx, sha1_read_ctx, sha1_buffer): Use
4134         'restrict'.
4135         * modules/crypto/sha1-buffer (configure.ac): Require AC_C_RESTRICT.
4137         crypto/md5-buffer: Use 'restrict'.
4138         * lib/md5.h (__md5_finish_ctx, __md5_read_ctx, __md5_buffer): Use
4139         'restrict'.
4140         * modules/crypto/md5-buffer (configure.ac): Require AC_C_RESTRICT.
4142         crypto/md4: Use 'restrict'.
4143         * lib/md4.h (md4_finish_ctx, md4_read_ctx, md4_buffer): Use 'restrict'.
4144         * modules/crypto/md4 (configure.ac): Require AC_C_RESTRICT.
4146         crypto/md2: Use 'restrict'.
4147         * lib/md2.h (md2_finish_ctx, md2_read_ctx, md2_buffer): Use 'restrict'.
4148         * modules/crypto/md2 (configure.ac): Require AC_C_RESTRICT.
4150         crypto/rijndael: Use 'restrict'.
4151         * lib/rijndael-api-fst.h (rijndaelBlockEncrypt, rijndaelPadEncrypt,
4152         rijndaelBlockDecrypt, rijndaelPadDecrypt): Use 'restrict'.
4153         * modules/crypto/rijndael (configure.ac): Require AC_C_RESTRICT.
4155         crypto/arctwo: Use 'restrict'.
4156         * lib/arctwo.h (arctwo_encrypt, arctwo_decrypt): Use 'restrict'.
4157         * modules/crypto/arctwo (configure.ac): Require AC_C_RESTRICT.
4159         crypto/arcfour: Use 'restrict'.
4160         * lib/arcfour.h (arcfour_stream): Use 'restrict'.
4161         * modules/crypto/arcfour (configure.ac): Require AC_C_RESTRICT.
4163         careadlinkat: Use 'restrict'.
4164         * lib/careadlinkat.h (careadlinkat): Use 'restrict'.
4165         * modules/careadlinkat (configure.ac): Require AC_C_RESTRICT.
4166         * modules/relocatable-prog-wrapper (configure.ac): Likewise.
4168         regex-quote: Use 'restrict'.
4169         * lib/regex-quote.h (regex_quote_copy): Use 'restrict'.
4170         * modules/regex-quote (configure.ac): Require AC_C_RESTRICT.
4172         system-quote: Use 'restrict'.
4173         * lib/system-quote.h (system_quote_copy): Use 'restrict'.
4174         * modules/system-quote (configure.ac): Require AC_C_RESTRICT.
4176         sh-quote: Use 'restrict'.
4177         * lib/sh-quote.h (shell_quote_copy): Use 'restrict'.
4178         * modules/sh-quote (configure.ac): Require AC_C_RESTRICT.
4180         quotearg: Use 'restrict'.
4181         * lib/quotearg.h (quotearg_buffer): Use 'restrict'.
4182         * m4/quotearg.m4 (gl_QUOTEARG): Require AC_C_RESTRICT.
4184         parse-datetime: Use 'restrict'.
4185         * lib/parse-datetime.h (parse_datetime, parse_datetime2): Use
4186         'restrict'.
4187         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Require AC_C_RESTRICT.
4189         nstrftime: Use 'restrict'.
4190         * lib/strftime.h (nstrftime): Use 'restrict'.
4191         * m4/nstrftime.m4 (gl_FUNC_GNU_STRFTIME): Require AC_C_RESTRICT.
4193         mbstok_r: Use 'restrict'.
4194         * lib/string.in.h (mbstok_r): Use 'restrict'.
4196         xmemcoll: Use 'restrict'.
4197         * lib/xmemcoll.h (xmemcoll): Use 'restrict'.
4198         * modules/xmemcoll (configure.ac): Require AC_C_RESTRICT.
4200         memcoll: Use 'restrict'.
4201         * lib/memcoll.h (memcoll): Use 'restrict'.
4202         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_C_RESTRICT.
4204         vasnprintf: Use 'restrict'.
4205         * lib/vasnprintf.h (asnprintf, vasnprintf): Use 'restrict'.
4206         * modules/vasnprintf (configure.ac): Require AC_C_RESTRICT.
4208         c-vasnprintf: Use 'restrict'.
4209         * lib/c-vasnprintf.h (c_vasnprintf): Use 'restrict'.
4210         * modules/c-vasnprintf (configure.ac): Require AC_C_RESTRICT.
4212         c-vsnprintf: Use 'restrict'.
4213         * lib/c-vsnprintf.h (c_vsnprintf): Use 'restrict'.
4214         * modules/c-vsnprintf (configure.ac): Require AC_C_RESTRICT.
4216         c-snprintf: Use 'restrict'.
4217         * lib/c-snprintf.h (c_snprintf): Use 'restrict'.
4218         * modules/c-snprintf (configure.ac): Require AC_C_RESTRICT.
4220         astrxfrm: Use 'restrict'.
4221         * lib/astrxfrm.h (astrxfrm): Use 'restrict'.
4222         * modules/astrxfrm (configure.ac): Require AC_C_RESTRICT.
4224         amemxfrm: Use 'restrict'.
4225         * lib/amemxfrm.h (amemxfrm): Use 'restrict'.
4226         * modules/amemxfrm (configure.ac): Require AC_C_RESTRICT.
4228 2020-02-22  Paul Eggert  <eggert@cs.ucla.edu>
4230         fchmodat, lchmod: simplify
4231         It appears that we may have overengineered lchmod and fchmodat,
4232         in that the code was prepared for some hypothetical platforms but
4233         was so complicated that it was hard to understand.  I attempted to
4234         improve the situation by simplifying the code when this
4235         simplification should not hurt on real platforms; we can re-add
4236         complexity later to port to platforms I didn’t know about.
4237         * lib/fchmodat.c (fchmodat):
4238         * lib/lchmod.c (lchmod):
4239         Put the ‘defined __linux__ || defined __ANDROID__’ #ifdef only
4240         around the /proc code that needs it.
4241         * lib/fchmodat.c (fchmodat): Coalese calls to orig_fchmodat.
4242         * lib/lchmod.c (__need_system_sys_stat_h): Omit; no longer needed.
4243         Do not include <config.h> twice.
4244         (orig_lchmod) [HAVE_LCHMOD]: Remove, since we need not wrap
4245         lchmod on any known hosts.
4246         (lchmod): Do not defer to fchmodat, so that the lchmod module
4247         need not depend on the fchmodat module (which is a circular
4248         dependency).  Do not use openat, since ‘open’ suffices.
4249         Coalesce calls to lchmod/chmod.
4250         * lib/lchmod.c, lib/sys_stat.in.h (lchmod):
4251         * m4/sys_stat_h.m4 (REPLACE_FSTAT):
4252         * modules/lchmod (Depends-on, configure.ac):
4253         * modules/sys_stat (Depends-on):
4254         Do not worry about replacing lchmod, since that shouldn’t happen.
4255         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Do not check for fchmodat.
4256         Do not worry about whether lchmod works on non-symlinks,
4257         since every known lchmod works on non-symlinks.
4258         * modules/lchmod (Depends-on):
4259         Remove circular dependency on fchmodat.
4261 2020-02-22  Bruno Haible  <bruno@clisp.org>
4263         lchmod: Fix link error on Solaris 10 (regression from 2020-02-16).
4264         * lib/lchmod.c (lchmod): Use the code with lstat and chmod also when
4265         NEED_LCHMOD_NONSYMLINK_FIX is not defined.
4267 2020-02-22  Bruno Haible  <bruno@clisp.org>
4269         Use 'restrict' in all POSIX function declarations.
4270         * lib/iconv.in.h (iconv): Use 'restrict'.
4271         * lib/inttypes.in.h (strtoimax, strtoumax): Likewise.
4272         * lib/monetary.in.h (strfmon_l): Likewise.
4273         * lib/pthread.in.h (pthread_create, pthread_mutex_init,
4274         pthread_mutexattr_gettype, pthread_mutexattr_getrobust,
4275         pthread_mutex_timedlock, pthread_rwlock_init,
4276         pthread_rwlock_timedrdlock, pthread_rwlock_timedwrlock,
4277         pthread_cond_init, pthread_cond_wait, pthread_cond_timedwait): Likewise.
4278         * lib/search.in.h (tdelete): Likewise.
4279         * lib/signal.in.h (pthread_sigmask, sigprocmask): Likewise.
4280         * lib/stdio.in.h (dprintf, fgets, fopen, fprintf, fputs, fread, freopen,
4281         fscanf, fwrite, getdelim, getline, printf, scanf, snprintf, sprintf,
4282         vdprintf, vfprintf, vfscanf, vprintf, vscanf, vsnprintf, vsprintf):
4283         Likewise.
4284         * lib/stdlib.in.h (mbtowc, realpath, strtod, strtold, strtoll,
4285         strtoull): Likewise.
4286         * lib/string.in.h (strncat): Likewise.
4287         * lib/sys_socket.in.h (accept, getpeername, getsockname, getsockopt,
4288         recvfrom): Likewise.
4289         * lib/sys_stat.in.h (fstatat, lstat, stat): Likewise.
4290         * lib/time.in.h (strftime): Likewise.
4291         * lib/unistd.in.h (readlink, readlinkat): Likewise.
4292         * lib/wchar.in.h (mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs, wcrtomb,
4293         wcsrtombs, wcsnrtombs, wmemcpy, wcscpy, wcpcpy, wcsncpy, wcpncpy,
4294         wcscat, wcsncat, wcsxfrm, wcsstr, wcstok, wcsftime): Likewise.
4295         * m4/iconv_h.m4 (gl_ICONV_H): Require AC_C_RESTRICT.
4296         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Likewise.
4297         * m4/monetary_h.m4 (gl_MONETARY_H): Likewise.
4298         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
4299         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
4300         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
4301         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
4302         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
4303         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
4304         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
4305         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
4306         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Make consistent with the
4307         other *_h.m4 files.
4308         * m4/time_h.m4 (gl_HEADER_TIME_H): Likewise.
4310 2020-02-22  Bruno Haible  <bruno@clisp.org>
4312         Update NEWS.
4313         * NEWS: Mention the last change.
4315 2020-02-22  Paul Eggert  <eggert@cs.ucla.edu>
4317         chmodat, chownat: new modules
4318         These are split from fchmodat, fchownat.  GNU Emacs needs the
4319         POSIX-specified fchmodat, but not the gnulib-specified chmodat and
4320         lchmodat.  Split the latter two into a new module chmodat.
4321         Similarly for fchownat.  This the same basic idea for why statat
4322         was split from fstatat on 2013-01-23.
4323         * lib/chmodat.c, lib/openat.h (CHMODAT_INLINE):
4324         Rename from FCHMODAT_INLINE.  All uses changed.
4325         * lib/chownat.c, lib/openat.h (CHOWNAT_INLINE):
4326         Rename from FCHOWNAT_INLINE.  All uses changed.
4327         * lib/openat.h:
4328         (chownat, lchownat): Define if GNULIB_CHOWNAT, not GNULIB_FCHOWNAT.
4329         (chmodat, lchmodat): Define if GNULIB_CHMODAT, not GNULIB_FCHMODAT.
4330         * modules/chmodat, modules/chownat, tests/test-chownat.c: New files.
4331         * modules/fchmodat (Files:): Remove lib/fchmodat.c.
4332         (configure.ac): Remove fchmodat module indicator.
4333         (Makefile.am): Omit chmodat.c.
4334         (Maintainer): Add self.
4335         * modules/fchownat: Similarly, but for chown.
4336         * tests/test-fchownat.c (BASE): Don't define if already defined.
4337         (do_chown, do_lchown) [!TEST_CHOWNAT]: Test fchownat instead.
4339 2020-02-22  Bruno Haible  <bruno@clisp.org>
4341         users.txt: Add groff.
4342         Reported by Bjarni Ingi Gislason <bjarniig@rhi.hi.is>.
4343         * users.txt: Add groff.
4345 2020-02-22  Bruno Haible  <bruno@clisp.org>
4347         gnulib-tool: Ensure copied files are writable.
4348         Reported by Benno Fünfstück <benno.fuenfstueck@gmail.com> in
4349         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00101.html>.
4350         * gnulib-tool (func_ensure_writable): New function.
4351         (func_ln_s, func_hardlink, func_lookup_file, func_import,
4352         func_create_testdir, copy-file): Invoke it after copying a file.
4354 2020-02-22  Bruno Haible  <bruno@clisp.org>
4356         users.txt: Update.
4357         * users.txt: Update URLs to projects that have moved or switched to git.
4358         Use canonical host names. Prefer gitweb over cgit. Prefer the tree view
4359         over the summary view. Add gawk.
4361 2020-02-21  Paul Eggert  <eggert@cs.ucla.edu>
4363         largefile: remove _DARWIN_USE_64_BIT_INODE
4364         It’s not needed in currently-supported macOS versions, and was
4365         problematic anyway in MacOS X 10.5 which was the only version that
4366         could use it.  Problem reported by Peter Eisentraut in:
4367         https://lists.gnu.org/r/bug-autoconf/2020-02/msg00004.html
4368         * m4/largefile.m4 (AC_SYS_LARGEFILE):
4369         Don’t define _DARWIN_USE_64_BIT_INODE.
4370         This syncs with Autoconf master.
4372         Add ‘extern "C"’ to count-one-bits.h etc.
4373         This ports these .h files to C++.
4374         Problem reported by Simon Marchi in:
4375         https://lists.gnu.org/r/bug-gnulib/2020-02/msg00110.html
4376         * lib/count-leading-zeros.h, lib/count-one-bits.h:
4377         * lib/count-trailing-zeros.h: Add ‘extern "C"’.
4379 2020-02-19  Bruno Haible  <bruno@clisp.org>
4381         uninorm/decompose-internal: Avoid "no previous prototype" warning.
4382         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
4383         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00105.html>.
4384         * lib/array-mergesort.h: Accept an optional macro definition
4385         STATIC_FROMTO.
4386         * lib/uninorm/decompose-internal.c (STATIC_FROMTO): New macro.
4388 2020-02-16  Bruno Haible  <bruno@clisp.org>
4390         fchmodat: Make more future-proof.
4391         * m4/fchmodat.m4 (gl_FUNC_FCHMODAT): Define
4392         NEED_FCHMODAT_NONSYMLINK_FIX.
4393         (gl_PREREQ_FCHMODAT): New macro.
4394         * lib/fchmodat.c (fchmodat): Test NEED_FCHMODAT_NONSYMLINK_FIX. Access
4395         /proc only on Linux. Return EOPNOTSUPP only on Linux and on platforms
4396         without lchmod function.
4397         * modules/fchmodat (configure.ac): Invoke gl_PREREQ_FCHMODAT.
4399 2020-02-16  Bruno Haible  <bruno@clisp.org>
4401         lchmod: Make more future-proof.
4402         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Define NEED_LCHMOD_NONSYMLINK_FIX.
4403         (gl_PREREQ_LCHMOD): New macro.
4404         * lib/lchmod.c (orig_lchmod): New function.
4405         (lchmod): Test NEED_LCHMOD_NONSYMLINK_FIX. Access /proc only on Linux.
4406         Return EOPNOTSUPP only on Linux and on platforms without lchmod
4407         function.
4408         * modules/lchmod (configure.ac): Invoke gl_PREREQ_LCHMOD.
4410         lchmod: Fix buggy override on macOS, HP-UX (regression from 2020-02-08).
4411         * modules/lchmod (Makefile.am): Don't add lchmod.c to lib_SOURCES.
4413 2020-02-16  Paul Eggert  <eggert@cs.ucla.edu>
4415         xnanosleep: prefer pause, and get remaining time
4416         Problem reported by Vladimir Panteleev in:
4417         https://lists.gnu.org/r/bug-gnulib/2020-02/msg00052.html
4418         * lib/xnanosleep.c: Include intprops.h, unistd.h.
4419         (xnanosleep) [HAVE_PAUSE]: Prefer pause when sleeping infinitely.
4420         (xnanosleep): Obtain remaining time when nanosleep is interrupted.
4421         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Check for 'pause'.
4422         * modules/xnanosleep (Depends-on): Add intprops, unistd.
4424 2020-02-16  Bruno Haible  <bruno@clisp.org>
4426         lchmod: Improve cross-compilation guess.
4427         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require AC_CANONICAL_HOST. When
4428         cross-compiling, guess depending on the platform.
4430 2020-02-16  Bruno Haible  <bruno@clisp.org>
4432         fstrcmp: Add API to clean up resources.
4433         Reported by Akim Demaille <akim@lrde.epita.fr> in
4434         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00080.html>.
4435         * lib/fstrcmp.h (fstrcmp_free_resources): New declaration.
4436         * lib/fstrcmp.c (fstrcmp_free_resources): New function.
4438 2020-02-14  Bruno Haible  <bruno@clisp.org>
4440         wctype-h: Fix compilation errors in C++ (regression from 2020-01-25).
4441         Reported by Christian Biesinger in
4442         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00064.html>.
4443         * lib/wctype.in.h (iswdigit, iswxdigit): Don't declare if the
4444         corresponding module is not enabled.
4445         * tests/test-wctype-h-c++.cc (iswdigit, iswxdigit): Don't check the
4446         prototype if the corresponding module is not enabled.
4448 2020-02-13  Paul Eggert  <eggert@cs.ucla.edu>
4450         fchmodat, lchmod: port to buggy Linux filesystems
4451         Problem reported by Florian Weimer in:
4452         https://www.sourceware.org/ml/libc-alpha/2020-02/msg00534.html
4453         * lib/fchmodat.c (fchmodat):
4454         * lib/lchmod.c (lchmod):
4455         Don’t assume that chmod on the O_PATH-opened fd will do
4456         the right thing on a symbolic link.
4457         * lib/fchmodat.c (fchmodat):
4458         Don’t attempt to special-case
4459         any flag value other than AT_SYMLINK_NOFOLLOW.
4461 2020-02-11  Paul Eggert  <eggert@cs.ucla.edu>
4463         lchmod: pacify Coverity CID 1491216
4464         * lib/lchmod.c (lchmod): Redo #if nesting so that Coverity does
4465         not complain about unreachable code at the ‘struct stat st;’
4466         declaration.
4468 2020-02-10  Bruno Haible  <bruno@clisp.org>
4470         copysignf: Fix link error on HP-UX with cc.
4471         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Require AC_CANONICAL_HOST. On
4472         HP-UX, set COPYSIGNF_LIBM to -lm.
4474 2020-02-10  Bruno Haible  <bruno@clisp.org>
4476         pthread-mutex-tests, pthread-rwlock-tests: Fix link errors on HP-UX.
4477         * modules/pthread-mutex-tests (Makefile.am): Link test-pthread-mutex
4478         with $(LIB_SEMAPHORE).
4479         * modules/pthread-rwlock-tests (Makefile.am): Link test-pthread-rwlock
4480         with $(LIB_SEMAPHORE).
4482 2020-02-10  Bruno Haible  <bruno@clisp.org>
4484         ptsname_r-tests: Avoid unused function warning.
4485         * tests/test-ptsname_r.c: Don't include null-ptr.h if we don't need it.
4487 2020-02-08  Bruno Haible  <bruno@clisp.org>
4489         lchmod: Add tests.
4490         * tests/test-lchmod.c: New file.
4491         * modules/lchmod-tests: New file.
4493 2020-02-08  Bruno Haible  <bruno@clisp.org>
4495         lchmod: Ensure declaration on HP-UX.
4496         * lib/sys_stat.in.h (lchown): Declare also on HP-UX.
4497         * doc/glibc-functions/lchmod.texi: Mention the HP-UX problem.
4499 2020-02-08  Bruno Haible  <bruno@clisp.org>
4501         fchmodat: Strengthen tests.
4502         * tests/test-fchmodat.c (BASE): New macro.
4503         (main): Use it, to avoid conflicts with other unit tests. Verify that
4504         fchmodat changed the file permission bits.
4506 2020-02-08  Bruno Haible  <bruno@clisp.org>
4508         fchmodat: Fix endless recursion on Cygwin (regression from 2020-02-07).
4509         * lib/fchmodat.c (orig_fchmodat): Move definition to immediately after
4510         '#undef __need_system_sys_stat_h'.
4512 2020-02-08  Bruno Haible  <bruno@clisp.org>
4514         fchmodat: Improve cross-compilation guesses.
4515         * m4/fchmodat.m4 (gl_FUNC_FCHMODAT): Require AC_CANONICAL_HOST. When
4516         cross-compiling, guess depending on the platform.
4517         * doc/posix-functions/fchmodat.texi: Clarify.
4519 2020-02-08  Bruno Haible  <bruno@clisp.org>
4521         Fix compilation errors in a testdir created with --with-c++-tests.
4522         * lib/c++defs.h (_GL_CXXALIASWARN1_2): Do not use __typeof__ (func),
4523         since it does not work any more with g++ >= 4.4.
4525 2020-02-08  Bruno Haible  <bruno@clisp.org>
4527         doc: Update for glibc 2.31.
4528         * doc/glibc-functions/pthread_clockjoin_np.texi: New file.
4529         * doc/gnulib.texi: Include it.
4530         * doc/pastposix-functions/h_errno.texi: Update.
4531         * doc/posix-functions/*.texi: Likewise.
4533 2020-02-08  Kenneth D'souza  <kdsouza@redhat.com>
4535         mountlist: consider smb3 file systems as remote
4536         * lib/mountlist.c (ME_REMOTE): Recognize file systems of type
4537         "smb3" as remote.
4539 2020-02-07  Paul Eggert  <eggert@cs.ucla.edu>
4541         fchmodat: AT_SYMLINK_NOFOLLOW fix for non-symlinks
4542         Fix lchmod, and fchmodat with AT_SYMLINK_NOFOLLOW, so that
4543         they act like chmod on non-symlinks.
4544         * NEWS:
4545         * doc/glibc-functions/lchmod.texi (lchmod):
4546         * doc/posix-functions/fchmodat.texi (fchmodat):
4547         Mention this.
4548         * lib/fchmodat.c: Define __need_system_sys_stat_h before including
4549         config.h, and undef it after including sys/stat.h the first time.
4550         Include fcntl.h, stdio.h, unistd.h, intprops.h, and include
4551         sys/stat.h a second time after defining orig_fchmodat.
4552         (orig_fchmodat) [HAVE_FCHMODAT]: New function.
4553         (fchmodat) [HAVE_FCHMODAT]: Work around the AT_SYMLINK_NOFOLLOW bug.
4554         * lib/lchmod.c: New file.
4555         * lib/sys_stat.in.h (fchmodat, lchmod):
4556         Support replacing these functions.
4557         * m4/fchmodat.m4 (gl_FUNC_FCHMODAT): If fchmodat exists,
4558         test that AT_SYMLINK_NOFOLLOW works on non-symlinks.
4559         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Check for lstat.
4560         Test that lchmod works on non-symlinks.
4561         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS):
4562         Default REPLACE_FCHMODAT and REPLACE_LCHMOD to 0.
4563         * modules/fchmodat (Depends-on): Add fstatat, intprops, lchmod, unistd.
4564         (Depends-on, configure.ac): Check REPLACE_FCHMODAT too.
4565         * modules/lchmod (Files): Add lib/lchmod.c.
4566         (Depends-on): Add errno, fcntl-h, fchmodat, intprops, lstat, unistd.
4567         (configure.ac): Compile lchmod.c if needed.
4568         (lib_SOURCES): Add lchmod.c.
4569         * modules/sys_stat (sys/stat.h): Substitute REPLACE_FCHMODAT
4570         and REPLACE_LCHMOD.
4571         * tests/test-fchmodat.c: Include fcntl.h, sys/stat.h.
4572         (main): Test fchmodat with AT_SYMLINK_NOFOLLOW on non-symlinks.
4574 2020-02-05  Marc Dionne  <marc.dionne@auristor.com>  (tiny change)
4576         mountlist: Consider AFS filesystems as remote
4577         df --local relies on the ME_REMOTE macro to determine if a given
4578         mount entry should be considered "local".  There is special logic
4579         for nfs and smb/cifs mounts, but /afs as mounted by OpenAFS, the
4580         kernel's kafs module or AuriStorFS is treated as a local mount.
4581         * lib/mountlist.c (ME_REMOTE): Treat mounts of type 'afs'
4582         (OpenAFS, kernel kafs) and 'auristorfs' (AuriStorFS) as remote.
4584 2020-02-04  Paul Eggert  <eggert@cs.ucla.edu>
4586         Port _Noreturn to older Clang
4587         Problem reported by Jeffery Walton in:
4588         https://lists.gnu.org/r/bug-gnulib/2020-02/msg00013.html
4589         * lib/_Noreturn.h (_Noreturn):
4590         * m4/gnulib-common.m4 (gl_COMMON_BODY):
4591         Assume _Noreturn works in Clang 3.5 and later.
4592         It is documented to work in Clang 3.5:
4593         http://releases.llvm.org/3.5.0/tools/clang/docs/AttributeReference.html
4594         and is not documented in Clang 3.4:
4595         https://releases.llvm.org/3.4/tools/clang/docs/LanguageExtensions.html
4596         Apple sets __clang_version__ to a different value, so use
4597         __apple_build_version__ there.  See:
4598         https://lists.gnu.org/r/bug-gnulib/2020-02/msg00017.html
4600 2020-02-04  Pádraig Brady  <P@draigBrady.com>
4602         test-canonicalize: avoid unused function warning
4603         * tests/test-canonicalize.c: Protect the inclusion of null-ptr.h
4604         with the same guard as that used to protect usage of the null_ptr
4605         function, so that one doesn't get a -Wunused warning.
4606         * tests/test-canonicalize-lgpl.c: Likewise.
4608 2020-02-03  Paul Eggert  <eggert@cs.ucla.edu>
4610         libc-config: port to Apple’s Clang variant
4611         * lib/libc-config.h (__glibc_clang_prereq):
4612         Port to Apple’s Clang variant, which uses a different
4613         numbering scheme for __clang_major__.
4615 2020-02-02  Bruno Haible  <bruno@clisp.org>
4617         Document the new modules list-c++, set-c++, oset-c++, map-c++, omap-c++.
4618         * doc/containers.texi: Document these new modules.
4620 2020-02-02  Bruno Haible  <bruno@clisp.org>
4622         omap-c++: Add tests.
4623         * tests/test-omap-c++.cc: New file.
4624         * modules/omap-c++-tests: New file.
4626         omap-c++: New module.
4627         * lib/gl_omap.hh: New file, based on lib/gl_omap.h.
4628         * modules/omap-c++: New file.
4630 2020-02-02  Bruno Haible  <bruno@clisp.org>
4632         map-c++: Add tests.
4633         * tests/test-map-c++.cc: New file.
4634         * modules/map-c++-tests: New file.
4636         map-c++: New module.
4637         * lib/gl_map.hh: New file, based on lib/gl_map.h.
4638         * modules/map-c++: New file.
4640 2020-02-02  Bruno Haible  <bruno@clisp.org>
4642         oset-c++: Add tests.
4643         * tests/test-oset-c++.cc: New file.
4644         * modules/oset-c++-tests: New file.
4646         oset-c++: New module.
4647         * lib/gl_oset.hh: New file, based on lib/gl_oset.h.
4648         * modules/oset-c++: New file.
4650 2020-02-02  Bruno Haible  <bruno@clisp.org>
4652         set-c++: Add tests.
4653         * tests/test-set-c++.cc: New file.
4654         * modules/set-c++-tests: New file.
4656         set-c++: New module.
4657         * lib/gl_set.hh: New file, based on lib/gl_set.h.
4658         * modules/set-c++: New file.
4660 2020-02-02  Bruno Haible  <bruno@clisp.org>
4662         list-c++: Add tests.
4663         * tests/test-list-c++.cc: New file.
4664         * modules/list-c++-tests: New file.
4666         list-c++: New module.
4667         * lib/gl_list.hh: New file, based on lib/gl_list.h.
4668         * modules/list-c++: New file.
4670 2020-02-02  Bruno Haible  <bruno@clisp.org>
4672         xalloc: Fix compilation error in C++ mode on FreeBSD 12.
4673         * lib/xalloc.h (xalloc_die): Comment out 'extern' keyword before
4674         '_Noreturn'.
4675         * lib/sigpipe-die.h (sigpipe_die): Likewise.
4677 2020-02-02  Pádraig Brady  <P@draigBrady.com>
4679         read-file: reduce max size from SIZE_MAX to PTRDIFF_MAX
4680         On x86_64 with glibc-2.30, gcc 9.2 is giving:
4681           error: argument 2 value '18446744073709551615'
4682           exceeds maximum object size 9223372036854775807
4683           [-Werror=alloc-size-larger-than=]
4684         The details of this restriction are discussed at:
4685         https://stackoverflow.com/q/42574890/4421
4686         * lib/read-file.c: s/SIZE_MAX/PTRDIFF_MAX/
4688 2020-02-02  Pádraig Brady  <P@draigBrady.com>
4690         sysctl.h: avoid including on glibc
4691         * lib/nproc.c: Avoid including deprecated and unneeded header on GLIBC.
4692         * lib/physmem.c: Likewise.
4694 2020-02-02  Bruno Haible  <bruno@clisp.org>
4696         list, set, oset, map, omap: Avoid imperative voice in documentation.
4697         * lib/gl_list.h: Use descriptive sentences instead of imperative voice
4698         in the specification of functions.
4699         * lib/gl_set.h: Likewise.
4700         * lib/gl_oset.h: Likewise.
4701         * lib/gl_map.h: Likewise.
4702         * lib/gl_omap.h: Likewise.
4703         * lib/gl_*.h: Likewise.
4705 2020-02-01  Bruno Haible  <bruno@clisp.org>
4707         ansi-c++-opt: Set CXXFLAGS to "-g -O2" by default.
4708         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Determine CXXFLAGS like AC_PROG_CXX
4709         does.
4711 2020-01-29  Bruno Haible  <bruno@clisp.org>
4713         array-map, hash-map, linkedhash-map: Fix module description.
4714         * modules/array-map (Description): Fix description.
4715         * modules/hash-map (Description): Likewise.
4716         * modules/linkedhash-map (Description): Likewise.
4718 2020-01-29  Paul Eggert  <eggert@cs.ucla.edu>
4720         dfa: do not depend on isblank
4721         This removes a difference between Gawk dfa.c and Gnulib dfa.c.
4722         * lib/dfa.c (isblank): Define if neither system nor Gnulib does.
4723         * modules/dfa (Depends-on): Remove isblank.
4724         * modules/isblank: Add a module indicator, for lib/dfa.c.
4726         dfa: do not assume 64-bit int
4727         Problem reported for VAX/VMS C (!) by Arnold Robbins in:
4728         https://lists.gnu.org/r/bug-gnulib/2020-01/msg00173.html
4729         * lib/dfa.c (CHARCLASS_PAIR): Bring back this macro.
4730         (CHARCLASS_WORD_BITS, charclass_word) [!UINT_LEAST64_MAX]:
4731         Fall back to 32-bit words.
4732         (CHARCLASS_INIT): Go back to having 8 32-bit args instead
4733         of 4 64-bit args.  All uses changed.
4735 2020-01-27  Paul Eggert  <eggert@cs.ucla.edu>
4737         regex: remove limits-h dependency
4738         * modules/regex (Depends-on): Remove limits-h, since the
4739         code no longer depends on ULONG_WIDTH already being defined.
4741         regex: port to non-GCC pre-IEC-60559
4742         Problem reported by Arnold Robbins in:
4743         https://lists.gnu.org/r/bug-gnulib/2020-01/msg00154.html
4744         * lib/regex_internal.h (ULONG_WIDTH): Make this usable in #if.
4746 2020-01-25  Bruno Haible  <bruno@clisp.org>
4748         c32isxdigit: Add tests.
4749         * tests/test-c32isxdigit.c: New file, based on tests/test-iswxdigit.c.
4750         * tests/test-c32isxdigit.sh: New file.
4751         * modules/c32isxdigit-tests: New file.
4753         c32isxdigit: New module.
4754         * lib/c32isxdigit.c: New file.
4755         * modules/c32isxdigit: New file.
4756         * doc/posix-functions/iswxdigit.texi: Mention the new module.
4758 2020-01-25  Bruno Haible  <bruno@clisp.org>
4760         c32isupper: Add tests.
4761         * tests/test-c32isupper.c: New file.
4762         * tests/test-c32isupper.sh: New file.
4763         * modules/c32isupper-tests: New file.
4765         c32isupper: New module.
4766         * lib/c32isupper.c: New file.
4767         * modules/c32isupper: New file.
4768         * doc/posix-functions/iswupper.texi: Mention the new module.
4770 2020-01-25  Bruno Haible  <bruno@clisp.org>
4772         c32isspace: Add tests.
4773         * tests/test-c32isspace.c: New file.
4774         * tests/test-c32isspace.sh: New file.
4775         * modules/c32isspace-tests: New file.
4777         c32isspace: New module.
4778         * lib/c32isspace.c: New file.
4779         * modules/c32isspace: New file.
4780         * doc/posix-functions/iswspace.texi: Mention the new module.
4782 2020-01-25  Bruno Haible  <bruno@clisp.org>
4784         c32ispunct: Add tests.
4785         * tests/test-c32ispunct.c: New file.
4786         * tests/test-c32ispunct.sh: New file.
4787         * modules/c32ispunct-tests: New file.
4789         c32ispunct: New module.
4790         * lib/c32ispunct.c: New file.
4791         * modules/c32ispunct: New file.
4792         * doc/posix-functions/iswpunct.texi: Mention the new module.
4794 2020-01-25  Bruno Haible  <bruno@clisp.org>
4796         c32isprint: Add tests.
4797         * tests/test-c32isprint.c: New file.
4798         * tests/test-c32isprint.sh: New file.
4799         * modules/c32isprint-tests: New file.
4801         c32isprint: New module.
4802         * lib/c32isprint.c: New file.
4803         * modules/c32isprint: New file.
4804         * doc/posix-functions/iswprint.texi: Mention the new module.
4806 2020-01-25  Bruno Haible  <bruno@clisp.org>
4808         c32islower: Add tests.
4809         * tests/test-c32islower.c: New file.
4810         * tests/test-c32islower.sh: New file.
4811         * modules/c32islower-tests: New file.
4813         c32islower: New module.
4814         * lib/c32islower.c: New file.
4815         * modules/c32islower: New file.
4816         * doc/posix-functions/iswlower.texi: Mention the new module.
4818 2020-01-25  Bruno Haible  <bruno@clisp.org>
4820         c32isgraph: Add tests.
4821         * tests/test-c32isgraph.c: New file.
4822         * tests/test-c32isgraph.sh: New file.
4823         * modules/c32isgraph-tests: New file.
4825         c32isgraph: New module.
4826         * lib/c32isgraph.c: New file.
4827         * modules/c32isgraph: New file.
4828         * doc/posix-functions/iswgraph.texi: Mention the new module.
4830 2020-01-25  Bruno Haible  <bruno@clisp.org>
4832         c32isdigit: Add tests.
4833         * tests/test-c32isdigit.c: New file, based on tests/test-iswdigit.c.
4834         * tests/test-c32isdigit.sh: New file.
4835         * modules/c32isdigit-tests: New file.
4837         c32isdigit: New module.
4838         * lib/c32isdigit.c: New file.
4839         * modules/c32isdigit: New file.
4840         * doc/posix-functions/iswdigit.texi: Mention the new module.
4842 2020-01-25  Bruno Haible  <bruno@clisp.org>
4844         c32iscntrl: Add tests.
4845         * tests/test-c32iscntrl.c: New file.
4846         * tests/test-c32iscntrl.sh: New file.
4847         * modules/c32iscntrl-tests: New file.
4849         c32iscntrl: New module.
4850         * lib/c32iscntrl.c: New file.
4851         * modules/c32iscntrl: New file.
4852         * doc/posix-functions/iswcntrl.texi: Mention the new module.
4854 2020-01-25  Bruno Haible  <bruno@clisp.org>
4856         c32isblank: Add tests.
4857         * tests/test-c32isblank.c: New file.
4858         * tests/test-c32isblank.sh: New file.
4859         * modules/c32isblank-tests: New file.
4861         c32isblank: New module.
4862         * lib/c32isblank.c: New file.
4863         * modules/c32isblank: New file.
4864         * doc/posix-functions/iswblank.texi: Mention the new module.
4866 2020-01-25  Bruno Haible  <bruno@clisp.org>
4868         c32isalpha: Add tests.
4869         * tests/test-c32isalpha.c: New file.
4870         * tests/test-c32isalpha.sh: New file.
4871         * modules/c32isalpha-tests: New file.
4873         c32isalpha: New module.
4874         * lib/c32isalpha.c: New file.
4875         * modules/c32isalpha: New file.
4876         * doc/posix-functions/iswalpha.texi: Mention the new module.
4878 2020-01-25  Bruno Haible  <bruno@clisp.org>
4880         c32isalnum: Add tests.
4881         * tests/test-c32isalnum.c: New file.
4882         * tests/test-c32isalnum.sh: New file.
4883         * modules/c32isalnum-tests: New file.
4885         c32isalnum: New module.
4886         * lib/c32isalnum.c: New file.
4887         * lib/c32is-impl.h: New file.
4888         * modules/c32isalnum: New file.
4889         * doc/posix-functions/iswalnum.texi: Mention the new module.
4891 2020-01-25  Bruno Haible  <bruno@clisp.org>
4893         uchar: Preparations for modules c32isalnum, ..., c32isxdigit.
4894         * lib/uchar.in.h (c32isalnum, c32isalpha, c32isblank, c32iscntrl,
4895         c32isdigit, c32isgraph, c32islower, c32isprint, c32ispunct, c32isspace,
4896         c32isupper, c32isxdigit): New declarations.
4897         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32ISALNUM,
4898         GNULIB_C32ISALPHA, GNULIB_C32ISBLANK, GNULIB_C32ISCNTRL,
4899         GNULIB_C32ISDIGIT, GNULIB_C32ISGRAPH, GNULIB_C32ISLOWER,
4900         GNULIB_C32ISPRINT, GNULIB_C32ISPUNCT, GNULIB_C32ISSPACE,
4901         GNULIB_C32ISUPPER, GNULIB_C32ISXDIGIT.
4902         * modules/uchar (Makefile.am): Substitute GNULIB_C32ISALNUM,
4903         GNULIB_C32ISALPHA, GNULIB_C32ISBLANK, GNULIB_C32ISCNTRL,
4904         GNULIB_C32ISDIGIT, GNULIB_C32ISGRAPH, GNULIB_C32ISLOWER,
4905         GNULIB_C32ISPRINT, GNULIB_C32ISPUNCT, GNULIB_C32ISSPACE,
4906         GNULIB_C32ISUPPER, GNULIB_C32ISXDIGIT.
4907         * tests/test-uchar-c++.cc: Test the signature of c32isalnum, c32isalpha,
4908         c32isblank, c32iscntrl, c32isdigit, c32isgraph, c32islower, c32isprint,
4909         c32ispunct, c32isspace, c32isupper, c32isxdigit.
4911 2020-01-25  Bruno Haible  <bruno@clisp.org>
4913         mbchar, wctype: Use the corrected iswxdigit function.
4914         * modules/mbchar (Depends-on): Add iswxdigit.
4915         * modules/wctype (Depends-on): Likewise.
4917         iswxdigit: Add tests.
4918         * tests/test-iswxdigit.c: New file.
4919         * tests/test-iswxdigit.sh: New file.
4920         * modules/iswxdigit-tests: New file.
4922         iswxdigit: New module.
4923         * m4/iswxdigit.m4: New file.
4924         * lib/wctype.in.h (iswxdigit): Potentially override.
4925         (iswxdigit, rpl_iswxdigit): Test REPLACE_ISWXDIGIT, not
4926         REPLACE_ISWCNTRL. Rely on ISO C compliant definition.
4927         * lib/iswxdigit.c: New file.
4928         * m4/wctype_h.m4 (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWXDIGIT,
4929         REPLACE_ISWXDIGIT.
4930         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWXDIGIT,
4931         REPLACE_ISWXDIGIT.
4932         * modules/iswxdigit: New file.
4933         * doc/posix-functions/iswxdigit.texi: Mention the portability problem.
4935 2020-01-25  Bruno Haible  <bruno@clisp.org>
4937         lseek: Fix the override to not undo the effects of AC_SYS_LARGEFILE.
4938         Reported by John Donoghue <john.david.donoghue@gmail.com> in
4939         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00146.html>.
4940         * lib/lseek.c (rpl_lseek): When AC_SYS_LARGEFILE has enabled a 64-bit
4941         off_t on mingw, invoke _lseeki64 instead of lseek.
4943 2020-01-25  Bruno Haible  <bruno@clisp.org>
4945         iswdigit tests: Avoid test failure on Cygwin.
4946         * tests/test-iswdigit.c (for_character): If mbrtowc cannot convert the
4947         byte sequence, return 0.
4949         iswdigit: Fix test failure on native Windows.
4950         * lib/wctype.in.h (rpl_iswdigit): Rely on ISO C compliant definition.
4952         mbchar, wctype: Use the corrected iswdigit function.
4953         * modules/mbchar (Depends-on): Add iswdigit.
4954         * modules/wctype (Depends-on): Likewise.
4956         iswdigit: Add tests.
4957         * tests/test-iswdigit.c: New file.
4958         * tests/test-iswdigit.sh: New file.
4959         * modules/iswdigit-tests: New file.
4961         iswdigit: New module.
4962         * m4/iswdigit.m4: New file.
4963         * lib/wctype.in.h (iswdigit): Potentially override.
4964         (iswdigit, rpl_iswdigit): Test REPLACE_ISWDIGIT, not REPLACE_ISWCNTRL.
4965         * lib/iswdigit.c: New file.
4966         * m4/wctype_h.m4 (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWDIGIT,
4967         REPLACE_ISWDIGIT.
4968         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWDIGIT,
4969         REPLACE_ISWDIGIT.
4970         * modules/iswdigit: New file.
4971         * doc/posix-functions/iswdigit.texi: Mention the portability problem.
4973 2020-01-25  Bruno Haible  <bruno@clisp.org>
4975         hard-locale tests: Make it easy to reuse the musl test.
4976         * m4/musl.m4: New file, extracted from modules/hard-locale-tests.
4977         * modules/hard-locale-tests (Files): Add it.
4978         (configure.ac): Invoke gl_MUSL_LIBC.
4980 2020-01-24  Paul Eggert  <eggert@cs.ucla.edu>
4982         regex: port to Gawk on nonstandard platforms
4983         * lib/regex_internal.h (ULONG_WIDTH): Define if not already defined.
4984         This is useful for Gawk, which does not use the Gnulib stdlib-h
4985         module.  Problem reported by Arnold Robbins in:
4986         https://lists.gnu.org/r/bug-gnulib/2020-01/msg00138.html
4988 2020-01-21  Paul Eggert  <eggert@cs.ucla.edu>
4990         regex: fix bug with >=16 subexpressions
4991         * lib/regex_internal.h (struct re_backref_cache_entry):
4992         Use bitset_word_t as the type of eps_reachable_subexps_map,
4993         instead of unsigned short int.  This fixes a bug I introduced
4994         to glibc in 2005-09-28T17:33:18Z!drepper@redhat.com (glibc commit
4995         2c05d33f90861d074dc12808dafbde30f487b1a0, BZ #1302).
4996         Remove unused member 'unused'.
4998         regex: simplify definition of BITSET_WORD_BITS
4999         * config/srclist.txt: Remove regex.c, regex_internal.h temporarily.
5000         * lib/regex.c (__STDC_WANT_IEC_60559_BFP_EXT__): Define.
5001         * lib/regex_internal.h (BITSET_WORD_BITS):
5002         * modules/regex (Depends-on): Add limits-h.
5003         Simplify now that we can use ULONG_WIDTH.
5005 2020-01-20  Bruno Haible  <bruno@clisp.org>
5007         mbrtoc32: Add note about FreeBSD 12.
5008         * m4/mbrtoc32.m4 (gl_MBRTOC32_SANITYCHECK): Guess no also on FreeBSD.
5009         * doc/posix-functions/mbrtoc32.texi: Mention that FreeBSD 12 is also
5010         affected.
5012 2020-01-20  Bruno Haible  <bruno@clisp.org>
5014         unistr/u8-uctomb: Fix warning.
5015         Reported by Andreas Schwab <schwab@suse.de> in
5016         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00127.html>.
5017         * lib/unistr/u8-uctomb.c (FALLTHROUGH): New macro.
5018         (u8_uctomb): Add FALLTHROUGH markers.
5020 2020-01-20  Bruno Haible  <bruno@clisp.org>
5022         lock: Fix test-once1 failure on FreeBSD 11 (regression from 2020-01-19).
5023         * lib/glthread/lock.c (glthread_once_multithreaded): New function.
5024         * lib/glthread/lock.h (glthread_once_multithreaded): New declaration.
5025         (glthread_once): Use it.
5027 2020-01-19  Bruno Haible  <bruno@clisp.org>
5029         threadlib: Disable use of weak symbols on FreeBSD 11.
5030         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
5031         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00061.html>.
5032         * m4/threadlib.m4 (gl_WEAK_SYMBOLS): Require AC_CANONICAL_HOST. Test
5033         against a bug in FreeBSD 11.
5035 2020-01-19  Bruno Haible  <bruno@clisp.org>
5037         iconv_open: Improve z/OS support.
5038         * lib/iconv_open-zos.gperf: Choose better aliases. Add mapping for
5039         ISO-8859-3, KOI8-R, KOI8-U, CP775, CP857, CP865, CP1129, CP1131, CP1257.
5040         Remove mapping for EUC-TW.
5042 2020-01-18  Bruno Haible  <bruno@clisp.org>
5044         Rename ~~gnulib.m4 to zzgnulib.m4.
5045         Suggested by Paul Eggert.
5046         * m4/zzgnulib.m4: Renamed from m4/~~gnulib.m4.
5047         * gnulib-tool (func_get_filelist): Update.
5048         * pygnulib/GLModuleSystem.py (getFiles): Likewise.
5050 2020-01-18  Bruno Haible  <bruno@clisp.org>
5052         doc: Update license notices.
5053         * doc/*.texi: Reference the GFDL 1.3 through a URL, rather than by
5054         reference to a section or to a "file as part of this distribution".
5056 2020-01-18  Bruno Haible  <bruno@clisp.org>
5058         Avoid error "m4_require: circular dependency of AC_LANG_COMPILER(C)".
5059         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se> in
5060         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00109.html>.
5061         * m4/00gnulib.m4 (gl_COMPILER_CLANG): Use _AC_COMPILE_IFELSE, not
5062         AC_EGREP_CPP.
5064 2020-01-18  Bruno Haible  <bruno@clisp.org>
5066         Ensure Automake does not drop ~~gnulib.m4.
5067         * m4/~~gnulib.m4 (gl_ZZGNULIB): New macro.
5068         * m4/gnulib-common.m4 (gl_COMMON): Require it.
5070 2020-01-18  Bruno Haible  <bruno@clisp.org>
5072         Fix major regression from 2020-01-10.
5073         Reported by Paul Eggert in
5074         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00079.html>.
5075         * m4/00gnulib.m4 (gl_COMPILER_CLANG, gl_COMPILER_PREPARE_CHECK_DECL):
5076         Don't AC_REQUIRE anything.
5077         (gl_COMPILER_PREPARE_CHECK_DECL): Define through AC_DEFUN, not
5078         AC_DEFUN_ONCE. Use _AC_COMPILE_IFELSE, not AC_COMPILE_IFELSE.
5079         (_AC_CHECK_DECL_BODY): If ac_compile_for_check_decl has not been set,
5080         use ac_compile instead.
5081         (AC_CHECK_DECL): Remove override.
5082         * m4/~~gnulib.m4: New file.
5083         * gnulib-tool (func_get_filelist): Add also ~~gnulib.m4.
5084         * pygnulib/GLModuleSystem.py (getFiles): Likewise.
5086 2020-01-17  Bruno Haible  <bruno@clisp.org>
5087             Paul Eggert  <eggert@cs.ucla.edu>
5089         glob: Fix use-after-free bug.
5090         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
5091         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00102.html>.
5092         * lib/glob.c (__glob): Delay freeing dirname until after the use of
5093         end_name.
5095 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
5097         vcs-to-changelog: Fix parsing of fndecl without args.
5098         * build-aux/vcstocl/frontend_c.py (FNDECL_RE): Fix regular expression
5099         for empty arguments.
5101 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
5103         vcs-to-changelog: Add documentation.
5104         * doc/vcs-to-changelog.texi: New file.
5105         * doc/gnulib.texi (Build Infrastructure Modules): Add vcs-to-changelog
5106         section.
5108 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
5110         vcs-to-changelog: Allow loading of custom quirks file.
5111         * build-aux/vcs_to_changelog.py: New commandline option -q.
5113 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
5115         vcs-to-changelog: Fix formatting of ChangeLog output.
5116         * build-aux/vcstocl/vcs_git.py (list_changes): Add newline in print
5117         output.
5119 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
5121         vcs-to-changelog: Drop python3 shebang from frontend_c.py.
5122         Reported in
5123         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00050.html>.
5124         * build-aux/vcstocl/frontend_c.py: Remove shebang.
5126 2020-01-15  Simon Josefsson  <simon@josefsson.org>
5128         crypto/gc-pbkdf2: New module.
5129         * MODULES.html.sh (func_all_modules): Add gc-pbkdf2.
5130         * NEWS: Deprecated gc-pbkdf2-sha1 in favor of gc-pbkdf2.
5131         * lib/gc-pbkdf2.c: New file.
5132         * lib/gc-pbkdf2-sha1.c: Use new interface.
5133         * lib/gc.h (GC_MAX_DIGEST_SIZE, gc_pbkdf2_hmac): Add.
5134         * modules/crypto/gc-pbkdf2: New file.
5135         * modules/crypto/gc-pbkdf2-tests: New file.
5136         * tests/test-gc-pbkdf2.c: New file.
5138 2020-01-12  Bruno Haible  <bruno@clisp.org>
5140         c32stombs: Add tests.
5141         * tests/test-c32stombs.c: New file, based on tests/test-c32srtombs.c.
5142         * tests/test-c32stombs-1.sh: New file, based on
5143         tests/test-c32srtombs-1.sh.
5144         * tests/test-c32stombs-2.sh: New file, based on
5145         tests/test-c32srtombs-2.sh.
5146         * tests/test-c32stombs-3.sh: New file, based on
5147         tests/test-c32srtombs-3.sh.
5148         * tests/test-c32stombs-4.sh: New file, based on
5149         tests/test-c32srtombs-4.sh.
5150         * modules/c32stombs-tests: New file, based on modules/c32srtombs-tests.
5152         c32stombs: New module.
5153         * lib/uchar.in.h (c32stombs): New declaration.
5154         * lib/c32stombs.c: New file.
5155         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32STOMBS.
5156         * modules/uchar (Makefile.am): Substitute GNULIB_C32STOMBS.
5157         * modules/c32stombs: New file.
5158         * tests/test-uchar-c++.cc: Test the signature of c32stombs.
5159         * doc/posix-functions/wcstombs.texi: Mention the new module.
5161 2020-01-11  Jim Meyering  <meyering@fb.com>
5163         perl: require the "warnings" module
5164         * m4/perl.m4: Also "use warnings", so we reject the perl found
5165         on at least one IRIX 6.5 system. Reported by Bruno Haible in
5166         https://lists.gnu.org/r/sed-devel/2020-01/msg00004.html
5168 2020-01-10  Bruno Haible  <bruno@clisp.org>
5170         Fix major regression from 2020-01-04.
5171         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se> in
5172         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00072.html>.
5173         * m4/00gnulib.m4 (gl_COMPILER_PREPARE_CHECK_DECL): Define through
5174         AC_DEFUN_ONCE.
5175         (AC_CHECK_DECL): Invoke, not require, it.
5177 2020-01-10  Bruno Haible  <bruno@clisp.org>
5179         c32snrtombs: Add tests.
5180         * tests/test-c32snrtombs.c: New file, based on tests/test-wcsnrtombs.c.
5181         * tests/test-c32snrtombs-1.sh: New file, based on
5182         tests/test-wcsnrtombs1.sh.
5183         * tests/test-c32snrtombs-2.sh: New file, based on
5184         tests/test-wcsnrtombs2.sh.
5185         * tests/test-c32snrtombs-3.sh: New file, based on
5186         tests/test-wcsnrtombs3.sh.
5187         * tests/test-c32snrtombs-4.sh: New file, based on
5188         tests/test-wcsnrtombs4.sh.
5189         * modules/c32snrtombs-tests: New file, based on
5190         modules/wcsnrtombs-tests.
5192         c32snrtombs: New module.
5193         * lib/uchar.in.h (c32snrtombs): New declaration.
5194         * lib/wcsnrtombs-impl.h: Parameterize: Use macros FUNC, SCHAR_T,
5195         INTERNAL_STATE, WCRTOMB.
5196         * lib/wcsnrtombs.c (FUNC, SCHAR_T, INTERNAL_STATE, WCRTOMB): New macros.
5197         * lib/c32snrtombs.c: New file.
5198         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32SNRTOMBS.
5199         * modules/uchar (Makefile.am): Substitute GNULIB_C32SNRTOMBS.
5200         * modules/c32snrtombs: New file.
5201         * tests/test-uchar-c++.cc: Test the signature of c32snrtombs.
5202         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
5204 2020-01-09  Bruno Haible  <bruno@clisp.org>
5206         c32srtombs: Add tests.
5207         * tests/test-c32srtombs.c: New file, based on tests/test-wcsrtombs.c.
5208         * tests/test-c32srtombs-1.sh: New file, based on
5209         tests/test-wcsrtombs1.sh.
5210         * tests/test-c32srtombs-2.sh: New file, based on
5211         tests/test-wcsrtombs2.sh.
5212         * tests/test-c32srtombs-3.sh: New file, based on
5213         tests/test-wcsrtombs3.sh.
5214         * tests/test-c32srtombs-4.sh: New file, based on
5215         tests/test-wcsrtombs4.sh.
5216         * modules/c32srtombs-tests: New file, based on modules/wcsrtombs-tests.
5218         c32srtombs: New module.
5219         * lib/uchar.in.h (c32srtombs): New declaration.
5220         * lib/wcsrtombs-impl.h: Parameterize: Use macros FUNC, SCHAR_T,
5221         INTERNAL_STATE, WCRTOMB.
5222         * lib/wcsrtombs.c (FUNC, SCHAR_T, INTERNAL_STATE, WCRTOMB): New macros.
5223         * lib/c32srtombs.c: New file.
5224         * lib/c32srtombs-state.c: New file, based on lib/wcsrtombs-state.c.
5225         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32SRTOMBS.
5226         * modules/uchar (Makefile.am): Substitute GNULIB_C32SRTOMBS.
5227         * modules/c32srtombs: New file.
5228         * tests/test-uchar-c++.cc: Test the signature of c32srtombs.
5229         * doc/posix-functions/wcsrtombs.texi: Mention the new module.
5231 2020-01-08  Bruno Haible  <bruno@clisp.org>
5233         c32tob: Make consistent with mbrtoc32.
5234         * lib/c32tob.c: Include <stdio.h>, <string.h>, <wchar.h>.
5235         (c32tob): If the char32_t encoding and the wchar_t encoding may differ,
5236         use c32rtomb, not wctob.
5237         * modules/c32tob (Files): Add m4/mbrtoc32.m4.
5238         (Depends-on): Add c32rtomb.
5239         (configure.ac): Require gl_MBRTOC32_SANITYCHECK.
5241 2020-01-08  Bruno Haible  <bruno@clisp.org>
5243         c32rtomb: Add tests.
5244         * tests/test-c32rtomb.c: New file, based on tests/test-wcrtomb.c.
5245         * tests/test-c32rtomb.sh: New file, based on tests/test-wcrtomb.sh.
5246         * tests/test-c32rtomb-w32.c: New file, based on
5247         tests/test-wcrtomb-w32.c.
5248         * tests/test-c32rtomb-w32-1.sh: New file, based on
5249         tests/test-wcrtomb-w32-1.sh.
5250         * tests/test-c32rtomb-w32-2.sh: New file, based on
5251         tests/test-wcrtomb-w32-2.sh.
5252         * tests/test-c32rtomb-w32-3.sh: New file, based on
5253         tests/test-wcrtomb-w32-3.sh.
5254         * tests/test-c32rtomb-w32-4.sh: New file, based on
5255         tests/test-wcrtomb-w32-4.sh.
5256         * tests/test-c32rtomb-w32-5.sh: New file, based on
5257         tests/test-wcrtomb-w32-5.sh.
5258         * tests/test-c32rtomb-w32-6.sh: New file, based on
5259         tests/test-wcrtomb-w32-6.sh.
5260         * tests/test-c32rtomb-w32-7.sh: New file, based on
5261         tests/test-wcrtomb-w32-7.sh.
5262         * modules/c32rtomb-tests: New file.
5264         c32rtomb: New module.
5265         * lib/uchar.in.h (c32rtomb): New declaration.
5266         * lib/c32rtomb.c: New file, based on lib/unistr/u8-uctomb-aux.c.
5267         * m4/c32rtomb.m4: New file.
5268         * m4/uchar.m4 (gl_UCHAR_H): Test whether c32rtomb is declared.
5269         (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32RTOMB, HAVE_C32RTOMB,
5270         REPLACE_C32RTOMB.
5271         * modules/uchar (Makefile.am): Substitute GNULIB_C32RTOMB,
5272         HAVE_C32RTOMB, REPLACE_C32RTOMB.
5273         * modules/c32rtomb: New file.
5274         * tests/test-uchar-c++.cc: Test the signature of c32rtomb.
5275         * doc/posix-functions/c32rtomb.texi: Document the new module.
5276         * doc/posix-functions/wcrtomb.texi: Mention the new module.
5278 2020-01-08  Bruno Haible  <bruno@clisp.org>
5280         mbrtoc32: Use the system's mbrtoc32 if it exists and basically works.
5281         * m4/mbrtoc32.m4 (gl_MBRTOC32_SANITYCHECK): New macro.
5282         (gl_FUNC_MBRTOC32): Require it. Set REPLACE_MBRTOC32 if mbrtoc32 exists
5283         but is not working.
5284         * lib/mbrtoc32.c: Include hard-locale.h, <locale.h>.
5285         (mbrtoc32): If the char32_t encoding and the wchar_t encoding may
5286         differ, use the system's mbrtoc32, adding workarounds.
5287         * modules/mbrtoc32 (Depends-on): Add hard-locale.
5288         * doc/posix-functions/mbrtoc32.texi: Mention the Solaris and native
5289         Windows problem.
5290         * lib/btoc32.c: Include <stdio.h>, <string.h>.
5291         (btoc32): If the char32_t encoding and the wchar_t encoding may differ,
5292         use mbrtoc32, not btowc.
5293         * modules/btoc32 (Depends-on): Add mbrtoc32.
5294         * lib/mbsrtoc32s.c (mbsrtoc32s): If the char32_t encoding and the
5295         wchar_t encoding may differ, use mbrtoc32, not mbsrtowcs.
5296         * modules/mbsrtoc32s (Depends-on): Update conditions.
5297         (configure.ac): Compile mbsrtoc32s-state.c unconditionally.
5298         * lib/mbsnrtoc32s.c (mbsnrtoc32s): If the char32_t encoding and the
5299         wchar_t encoding may differ, use mbrtoc32, not mbsnrtowcs.
5300         * modules/mbsnrtoc32s (Depends-on): Update conditions.
5301         (configure.ac): Compile mbsrtoc32s-state.c unconditionally.
5303 2020-01-07  Bruno Haible  <bruno@clisp.org>
5305         wcrtomb: Make multithread-safe, except possibly on IRIX.
5306         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Don't set REPLACE_WCRTOMB to 1 when
5307         REPLACE_MBSTATE_T is set. Define WCRTOMB_C_LOCALE_BUG and
5308         WCRTOMB_RETVAL_BUG.
5309         * lib/wcrtomb.c (wcrtomb): Use original wcrtomb whenever available. Use
5310         wctomb only on IRIX.
5312 2020-01-05  Jim Meyering  <meyering@fb.com>
5314         tests: skip thread-using tests when threading is disabled
5315         sed's configure.ac specifies gl_DISABLE_THREADS, and that caused three
5316         thread-using gnulib tests to fail. Add an #if-guarded exit (77) to each
5317         of those, so they are skipped in this case.
5318         * tests/test-nl_langinfo-mt.c (main): Exit 77 when threading is disabled.
5319         * tests/test-setlocale_null-mt-all.c (main): Likewise.
5320         * tests/test-setlocale_null-mt-one.c (main): Likewise.
5322 2020-01-05  Bruno Haible  <bruno@clisp.org>
5324         tests: Avoid GCC over-optimization caused by _GL_ARG_NONNULL attributes.
5325         Reported by Jim Meyering in
5326         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00040.html>.
5327         * lib/stdlib.in.h (GNULIB_defined_canonicalize_file_name): New macro.
5328         (GNULIB_defined_ptsname_r): New macro.
5329         * tests/test-canonicalize.c (_GL_ARG_NONNULL): Define to empty.
5330         (main): Disable the NULL argument test if canonicalize_file_name does
5331         not come from gnulib.
5332         * tests/test-canonicalize-lgpl.c (_GL_ARG_NONNULL): Define to empty.
5333         (main): Disable the NULL argument test if canonicalize_file_name does
5334         not come from gnulib.
5335         * tests/test-ptsname_r.c (_GL_ARG_NONNULL): Define to empty.
5336         (test_errors): Disable the NULL argument test if ptsname_r does not come
5337         from gnulib.
5339 2020-01-04  Jim Meyering  <meyering@fb.com>
5341         update-copyright: reenable its always-skipped test
5342         * tests/test-update-copyright.sh: Restore the "-pi" options removed
5343         on 2019-06-15. Without those, an internal preliminary test would
5344         fail, causing this test always to be skipped.
5345         Verify that the test is now run and passes via this:
5346           ./gnulib-tool --test --dir /tmp/x --with-tests update-copyright
5348 2020-01-05  Bruno Haible  <bruno@clisp.org>
5350         mbstoc32s: Add tests.
5351         * tests/test-mbstoc32s.c: New file, based on tests/test-mbsrtoc32s.c.
5352         * tests/test-mbstoc32s-1.sh: New file, based on
5353         tests/test-mbsrtoc32s-1.sh.
5354         * tests/test-mbstoc32s-2.sh: New file, based on
5355         tests/test-mbsrtoc32s-2.sh.
5356         * tests/test-mbstoc32s-3.sh: New file, based on
5357         tests/test-mbsrtoc32s-3.sh.
5358         * tests/test-mbstoc32s-4.sh: New file, based on
5359         tests/test-mbsrtoc32s-4.sh.
5360         * modules/mbstoc32s-tests: New file, based on modules/mbsrtoc32s-tests.
5362         mbstoc32s: New module.
5363         * lib/uchar.in.h (mbstoc32s): New declaration.
5364         * lib/mbstoc32s.c: New file.
5365         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_MBSTOC32S.
5366         * modules/uchar (Makefile.am): Substitute GNULIB_MBSTOC32S.
5367         * modules/mbstoc32s: New file.
5368         * tests/test-uchar-c++.cc: Test the signature of mbstoc32s.
5369         * doc/posix-functions/mbstowcs.texi: Mention the new module.
5371 2020-01-05  Bruno Haible  <bruno@clisp.org>
5373         Tweak recently added tests.
5374         * tests/test-mbrtoc32.c: Make signature consistent with uchar.in.h.
5375         * tests/test-mbsrtoc32s.c: Likewise.
5376         * tests/test-mbsnrtoc32s.c: Likewise.
5378 2020-01-04  Bruno Haible  <bruno@clisp.org>
5380         mbsnrtoc32s: Add tests.
5381         * tests/test-mbsnrtoc32s.c: New file, based on tests/test-mbsnrtowcs.c.
5382         * tests/test-mbsnrtoc32s-1.sh: New file, based on
5383         tests/test-mbsnrtowcs1.sh.
5384         * tests/test-mbsnrtoc32s-2.sh: New file, based on
5385         tests/test-mbsnrtowcs2.sh.
5386         * tests/test-mbsnrtoc32s-3.sh: New file, based on
5387         tests/test-mbsnrtowcs3.sh.
5388         * tests/test-mbsnrtoc32s-4.sh: New file, based on
5389         tests/test-mbsnrtowcs4.sh.
5390         * modules/mbsnrtoc32s-tests: New file, based on
5391         modules/mbsnrtowcs-tests.
5393         mbsnrtoc32s: New module.
5394         * lib/uchar.in.h (mbsnrtoc32s): New declaration.
5395         * lib/mbsnrtowcs-impl.h: Parameterize: Use macros FUNC, DCHAR_T,
5396         INTERNAL_STATE, MBRTOWC.
5397         * lib/mbsnrtowcs.c (FUNC, DCHAR_T, INTERNAL_STATE, MBRTOWC): New macros.
5398         * lib/mbsnrtoc32s.c: New file.
5399         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOC32S.
5400         * modules/uchar (Makefile.am): Substitute GNULIB_MBSNRTOC32S.
5401         * modules/mbsnrtoc32s: New file.
5402         * tests/test-uchar-c++.cc: Test the signature of mbsnrtoc32s.
5403         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module.
5405 2020-01-04  Bruno Haible  <bruno@clisp.org>
5407         mbsrtoc32s tests: Enhance test.
5408         * tests/test-mbsrtoc32s.c (main): Include a non-BMP character in the
5409         test strings for UTF-8 and GB18030.
5411 2020-01-04  Bruno Haible  <bruno@clisp.org>
5413         mbsrtoc32s: Fix bug.
5414         * modules/mbsrtoc32s (configure.ac): Require gl_UCHAR_H, to make sure
5415         that SMALL_WCHAR_T is defined.
5417 2020-01-04  Bruno Haible  <bruno@clisp.org>
5419         mbsrtoc32s: Add tests.
5420         * tests/test-mbsrtoc32s.c: New file, based on tests/test-mbsrtowcs.c.
5421         * tests/test-mbsrtoc32s-1.sh: New file, based on
5422         tests/test-mbsrtowcs1.sh.
5423         * tests/test-mbsrtoc32s-2.sh: New file, based on
5424         tests/test-mbsrtowcs2.sh.
5425         * tests/test-mbsrtoc32s-3.sh: New file, based on
5426         tests/test-mbsrtowcs3.sh.
5427         * tests/test-mbsrtoc32s-4.sh: New file, based on
5428         tests/test-mbsrtowcs4.sh.
5429         * modules/mbsrtoc32s-tests: New file, based on modules/mbsrtowcs-tests.
5431         mbsrtoc32s: New module.
5432         * lib/uchar.in.h (mbsrtoc32s): New declaration.
5433         * lib/mbsrtowcs-impl.h: Parameterize: Use macros FUNC, DCHAR_T,
5434         INTERNAL_STATE, MBRTOWC.
5435         * lib/mbsrtowcs.c (FUNC, DCHAR_T, INTERNAL_STATE, MBRTOWC): New macros.
5436         * lib/mbsrtoc32s.c: New file.
5437         * lib/mbsrtoc32s-state.c: New file, based on lib/mbsrtowcs-state.c.
5438         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOC32S.
5439         * modules/uchar (Makefile.am): Substitute GNULIB_MBSRTOC32S.
5440         * modules/mbsrtoc32s: New file.
5441         * tests/test-uchar-c++.cc: Test the signature of mbsrtoc32s.
5442         * doc/posix-functions/mbsrtowcs.texi: Mention the new module.
5444 2020-01-04  Bruno Haible  <bruno@clisp.org>
5446         mbrtowc, mbrtoc32: Tighten dependendies.
5447         * modules/mbrtowc (Depends-on): Disable hard-locale, mbsinit if
5448         REPLACE_MBSTATE_T is 1.
5449         (configure.ac): Don't compile lc-charset-dispatch.c and mbtowc-lock.c if
5450         REPLACE_MBSTATE_T is 0.
5451         * modules/mbrtoc32 (Depends-on): Remove hard-locale, mbsinit. Disable
5452         mbrtowc dependency if REPLACE_MBSTATE_T is 1.
5453         (configure.ac): Don't compile lc-charset-dispatch.c and mbtowc-lock.c if
5454         REPLACE_MBSTATE_T is 0.
5456 2020-01-04  Bruno Haible  <bruno@clisp.org>
5458         uchar: Decide about _GL_LARGE_CHAR32_T at configure time.
5459         * m4/uchar.m4 (gl_UCHAR_H): Set SMALL_WCHAR_T.
5460         * modules/uchar (Files): Add stdint.m4.
5461         (Makefile.am): Substitute SMALL_WCHAR_T.
5462         * lib/uchar.in.h (_GL_LARGE_CHAR32_T): Rely on SMALL_WCHAR_T.
5464 2020-01-04  Bruno Haible  <bruno@clisp.org>
5466         Fix AC_CHECK_DECL so that it deactivates clang's built-in declarations.
5467         Reported by Martin Storsjö <martin@martin.st> in
5468         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00016.html>.
5469         * m4/00gnulib.m4 (gl_COMPILER_CLANG, gl_COMPILER_PREPARE_CHECK_DECL):
5470         New macros.
5471         (_AC_CHECK_DECL_BODY, AC_CHECK_DECL): Augment.
5473 2020-01-04  Bruno Haible  <bruno@clisp.org>
5475         btoc32: Add tests.
5476         * tests/test-btoc32.c: New file, based on tests/test-btowc.c.
5477         * tests/test-btoc32-1.sh: New file, based on tests/test-btowc1.sh.
5478         * tests/test-btoc32-2.sh: New file, based on tests/test-btowc2.sh.
5479         * modules/btoc32-tests: New file, based on modules/btowc-tests.
5481         btoc32: New module.
5482         * lib/uchar.in.h (btoc32): New declaration.
5483         * lib/btoc32.c: New file.
5484         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_BTOC32.
5485         * modules/uchar (Makefile.am): Substitute GNULIB_BTOC32.
5486         * modules/btoc32: New file.
5487         * tests/test-uchar-c++.cc: Test the signature of btoc32.
5488         * doc/posix-functions/btowc.texi: Mention the new module.
5490 2020-01-03  Bruno Haible  <bruno@clisp.org>
5492         uchar tests: Avoid compilation error with HP cc.
5493         * tests/test-uchar.c: Disable a test when HP cc is in use.
5495 2020-01-03  Bruno Haible  <bruno@clisp.org>
5497         mbrtoc32: Add tests.
5498         * tests/test-mbrtoc32.c: New file, based on tests/test-mbrtowc.c.
5499         * tests/test-mbrtoc32-1.sh: New file, based on tests/test-mbrtowc1.sh.
5500         * tests/test-mbrtoc32-2.sh: New file, based on tests/test-mbrtowc2.sh.
5501         * tests/test-mbrtoc32-3.sh: New file, based on tests/test-mbrtowc3.sh.
5502         * tests/test-mbrtoc32-4.sh: New file, based on tests/test-mbrtowc4.sh.
5503         * tests/test-mbrtoc32-5.sh: New file, based on tests/test-mbrtowc5.sh.
5504         * tests/test-mbrtoc32-w32.c: New file, based on tests/test-mbrtowc-w32.c.
5505         * tests/test-mbrtoc32-w32-1.sh: New file, based on
5506         tests/test-mbrtowc-w32-1.sh.
5507         * tests/test-mbrtoc32-w32-2.sh: New file, based on
5508         tests/test-mbrtowc-w32-2.sh.
5509         * tests/test-mbrtoc32-w32-3.sh: New file, based on
5510         tests/test-mbrtowc-w32-3.sh.
5511         * tests/test-mbrtoc32-w32-4.sh: New file, based on
5512         tests/test-mbrtowc-w32-4.sh.
5513         * tests/test-mbrtoc32-w32-5.sh: New file, based on
5514         tests/test-mbrtowc-w32-5.sh.
5515         * tests/test-mbrtoc32-w32-6.sh: New file, based on
5516         tests/test-mbrtowc-w32-6.sh.
5517         * tests/test-mbrtoc32-w32-7.sh: New file, based on
5518         tests/test-mbrtowc-w32-7.sh.
5519         * modules/mbrtoc32-tests: New file, based on modules/mbrtowc-tests.
5521         mbrtoc32: New module.
5522         * lib/uchar.in.h (mbrtoc32): New declaration.
5523         * lib/mbrtoc32.c: New file, based on lib/mbrtowc.c.
5524         * m4/mbrtoc32.m4: New file, based on m4/mbrtowc.m4.
5525         * m4/uchar.m4 (gl_UCHAR_H): Test whether mbrtoc32 is declared.
5526         (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOC32, HAVE_MBRTOC32,
5527         REPLACE_MBRTOC32.
5528         * modules/uchar (Makefile.am): Substitute GNULIB_MBRTOC32,
5529         HAVE_MBRTOC32, REPLACE_MBRTOC32.
5530         * modules/mbrtoc32: New file, based on modules/mbrtowc.
5531         * tests/test-uchar-c++.cc (mbrtoc32): Verify the signature.
5532         * modules/uchar-c++-tests (Makefile.am): Link test-uchar-c++ with
5533         $(LIB_MBRTOWC).
5534         * doc/posix-functions/mbrtoc32.texi: Document the new module.
5535         * doc/posix-functions/mbrtowc.texi: Mention the new module.
5537 2020-01-03  Bruno Haible  <bruno@clisp.org>
5539         mbrtowc: Refactor to share code with mbrtoc32.
5540         * lib/mbrtowc-impl.h: New file, extracted from lib/mbrtowc.c.
5541         * lib/mbrtowc-impl-utf8.h: Likewise.
5542         * lib/mbrtowc.c (mbrtowc): Define macro FITS_IN_CHAR_TYPE. Include
5543         mbrtowc-impl.h.
5544         * modules/mbrtowc (Files): Add the new files.
5546 2020-01-03  Jim Meyering  <meyering@fb.com>
5548         doc: fix time.texi wording
5549         * doc/posix-headers/time.texi (time.h): Typo.
5551 2020-01-03  Bruno Haible  <bruno@clisp.org>
5553         mbrtowc: Refactor locale charset dispatching.
5554         * lib/lc-charset-dispatch.h: New file, extracted from lib/mbrtowc.c.
5555         * lib/lc-charset-dispatch.c: New file, extracted from lib/mbrtowc.c.
5556         * lib/mbrtowc.c: Include lc-charset-dispatch.h. Don't include
5557         localcharset.h, streq.h.
5558         (enc_t): Remove type.
5559         (locale_enc): Remove function.
5560         (cached_locale_enc): Remove variable.
5561         (locale_enc_cached): Remove function.
5562         (mbrtowc): Invoke locale_encoding_classification.
5563         * m4/mbrtowc.m4 (gl_PREREQ_MBRTOWC): Update comment.
5564         * modules/mbrtowc (Files): Add lc-charset-dispatch.h,
5565         lc-charset-dispatch.c.
5566         (configure.ac): Arrange to compile lc-charset-dispatch.c.
5568 2020-01-03  Paul Eggert  <eggert@cs.ucla.edu>
5570         doc: mention 32-bit time_t issue
5571         * doc/posix-headers/sys_stat.texi (sys/stat.h):
5572         * doc/posix-headers/time.texi (time.h): Mention 2038.
5574 2020-01-03  Bruno Haible  <bruno@clisp.org>
5576         mbrtowc: Ensure the mbtowc_lock is unique.
5577         * lib/mbtowc-lock.c: New file, based on lib/setlocale-lock.c.
5578         * lib/mbtowc-lock.h: New file, extracted from lib/mbrtowc.c and
5579         lib/setlocale_null.c.
5580         * lib/mbrtowc.c: Include headers needed for mbtowc-lock.h. Don't include
5581         glthread/lock.h. Include mbtowc-lock.h.
5582         (mbtowc_lock): Remove declaration.
5583         (mbrtowc): Use mbtowc_with_lock.
5584         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Require gl_PTHREADLIB. Check for
5585         threads.h. Set LIB_MBRTOWC.
5586         (gl_PREREQ_MBTOWC_LOCK): New macro.
5587         * modules/mbrtowc (Files): Add lib/mbtowc-lock.h, lib/mbtowc-lock.c,
5588         lib/windows-initguard.h, m4/threadlib.m4, m4/visibility.m4.
5589         (Depends-on): Remove lock.
5590         (configure.ac): Arrange to compile mbtowc-lock.c.
5591         (Link): Mention $(LIB_MBRTOWC) instead of $(LIBTHREAD).
5592         * modules/acl (Link): Likewise.
5593         * modules/argmatch (Link): Likewise.
5594         * modules/backup-rename (Link): Likewise.
5595         * modules/backupfile (Link): Likewise.
5596         * modules/closein (Link): Likewise.
5597         * modules/closeout (Link): Likewise.
5598         * modules/copy-file (Link): Likewise.
5599         * modules/csharpcomp (Link): Likewise.
5600         * modules/csharpexec (Link): Likewise.
5601         * modules/dfa (Link): Likewise.
5602         * modules/exclude (Link): Likewise.
5603         * modules/fnmatch (Link): Likewise.
5604         * modules/fnmatch-gnu (Link): Likewise.
5605         * modules/fnmatch-posix (Link): Likewise.
5606         * modules/glob (Link): Likewise.
5607         * modules/human (Link): Likewise.
5608         * modules/javacomp (Link): Likewise.
5609         * modules/javaexec (Link): Likewise.
5610         * modules/javaversion (Link): Likewise.
5611         * modules/mbfile (Link): Likewise.
5612         * modules/mbiter (Link): Likewise.
5613         * modules/mbmemcasecmp (Link): Likewise.
5614         * modules/mbmemcasecoll (Link): Likewise.
5615         * modules/mbrlen (Link): Likewise.
5616         * modules/mbscasecmp (Link): Likewise.
5617         * modules/mbscasestr (Link): Likewise.
5618         * modules/mbschr (Link): Likewise.
5619         * modules/mbscspn (Link): Likewise.
5620         * modules/mbsinit (Link): Likewise.
5621         * modules/mbslen (Link): Likewise.
5622         * modules/mbsncasecmp (Link): Likewise.
5623         * modules/mbsnlen (Link): Likewise.
5624         * modules/mbsnrtowcs (Link): Likewise.
5625         * modules/mbspbrk (Link): Likewise.
5626         * modules/mbspcasecmp (Link): Likewise.
5627         * modules/mbsrchr (Link): Likewise.
5628         * modules/mbsrtowcs (Link): Likewise.
5629         * modules/mbssep (Link): Likewise.
5630         * modules/mbsspn (Link): Likewise.
5631         * modules/mbsstr (Link): Likewise.
5632         * modules/mbstok_r (Link): Likewise.
5633         * modules/mbswidth (Link): Likewise.
5634         * modules/mbuiter (Link): Likewise.
5635         * modules/mkdir-p (Link): Likewise.
5636         * modules/propername (Link): Likewise.
5637         * modules/quote (Link): Likewise.
5638         * modules/quotearg (Link): Likewise.
5639         * modules/quotearg-simple (Link): Likewise.
5640         * modules/regex-quote (Link): Likewise.
5641         * modules/rpmatch (Link): Likewise.
5642         * modules/sh-quote (Link): Likewise.
5643         * modules/system-quote (Link): Likewise.
5644         * modules/trim (Link): Likewise.
5645         * modules/unistdio/ulc-asnprintf (Link): Likewise.
5646         * modules/unistdio/ulc-fprintf (Link): Likewise.
5647         * modules/unistdio/ulc-vasnprintf (Link): Likewise.
5648         * modules/unistdio/ulc-vasprintf (Link): Likewise.
5649         * modules/unistdio/ulc-vfprintf (Link): Likewise.
5650         * modules/unistdio/ulc-vsnprintf (Link): Likewise.
5651         * modules/unistdio/ulc-vsprintf (Link): Likewise.
5652         * modules/xfreopen (Link): Likewise.
5653         * modules/xmemcoll (Link): Likewise.
5654         * modules/yesno (Link): Likewise.
5655         * modules/regex (Link): Add $(LIB_MBRTOWC).
5656         * modules/acl-tests (Makefile.am): Link the programs with $(LIB_MBRTOWC)
5657         instead of $(LIBTHREAD).
5658         * modules/argmatch-tests (Makefile.am): Likewise.
5659         * modules/closein-tests (Makefile.am): Likewise.
5660         * modules/copy-file-tests (Makefile.am): Likewise.
5661         * modules/dfa-tests (Makefile.am): Likewise.
5662         * modules/fnmatch-tests (Makefile.am): Likewise.
5663         * modules/glob-tests (Makefile.am): Likewise.
5664         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
5665         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
5666         * modules/mbrtowc-tests (Makefile.am): Likewise.
5667         * modules/mbscasecmp-tests (Makefile.am): Likewise.
5668         * modules/mbscasestr-tests (Makefile.am): Likewise.
5669         * modules/mbschr-tests (Makefile.am): Likewise.
5670         * modules/mbscspn-tests (Makefile.am): Likewise.
5671         * modules/mbsinit-tests (Makefile.am): Likewise.
5672         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
5673         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
5674         * modules/mbspbrk-tests (Makefile.am): Likewise.
5675         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
5676         * modules/mbsrchr-tests (Makefile.am): Likewise.
5677         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
5678         * modules/mbsspn-tests (Makefile.am): Likewise.
5679         * modules/mbsstr-tests (Makefile.am): Likewise.
5680         * modules/quotearg-simple-tests (Makefile.am): Likewise.
5681         * modules/quotearg-tests (Makefile.am): Likewise.
5682         * modules/readtokens-tests (Makefile.am): Likewise.
5683         * modules/sh-quote-tests (Makefile.am): Likewise.
5684         * modules/system-quote-tests (Makefile.am): Likewise.
5685         * modules/unistdio/ulc-asnprintf-tests (Makefile.am): Likewise.
5686         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
5687         * modules/unistdio/ulc-vasprintf-tests (Makefile.am): Likewise.
5688         * modules/unistdio/ulc-vsnprintf-tests (Makefile.am): Likewise.
5689         * modules/unistdio/ulc-vsprintf-tests (Makefile.am): Likewise.
5690         * modules/yesno-tests (Makefile.am): Likewise.
5691         * modules/exclude-tests (Makefile.am): Link the programs with
5692         $(LIB_MBRTOWC).
5693         * modules/regex-tests (Makefile.am): Likewise.
5694         * modules/regex-quote-tests (Makefile.am): Likewise.
5696 2020-01-03  Bruno Haible  <bruno@clisp.org>
5698         getopt-posix: Fix compilation failure in testdirs.
5699         * lib/unistd.in.h: Include <getopt-cdefs.h> and <getopt-pfx-core.h> only
5700         when the gnulib module 'getopt-posix' is enabled.
5701         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETOPT_POSIX.
5702         * modules/getopt-posix (configure.ac): Set GNULIB_GETOPT_POSIX as a
5703         module indicator.
5704         * modules/unistd (Makefile.am): Substitute GNULIB_GETOPT_POSIX.
5706 2020-01-03  Bruno Haible  <bruno@clisp.org>
5708         doc: Mention the 64-bit inode number problem.
5709         * m4/largefile.m4 (AC_SYS_LARGEFILE): Mention that this macro fixes the
5710         64-bit inode number problem.
5711         * doc/posix-functions/stat.texi: Mention that this module fixes the
5712         64-bit inode number problem.
5713         * doc/posix-functions/lstat.texi: Likewise.
5714         * doc/posix-functions/fstat.texi: Likewise.
5715         * doc/posix-functions/readdir.texi: Add more details.
5716         * doc/posix-functions/readdir_r.texi: Likewise.
5718 2020-01-02  Bruno Haible  <bruno@clisp.org>
5720         wcrtomb: Add more tests.
5721         * tests/test-wcrtomb-w32.c: Include localcharset.h.
5722         (test_one_locale): For the GB18030 and UTF-8 tests, verify that
5723         locale_charset() returns the expected value; otherwise, skip the test.
5724         * tests/test-wcrtomb-w32-6.sh: Remove old comment.
5725         * tests/test-wcrtomb-w32-7.sh: Likewise.
5726         * modules/wcrtomb-tests (Files): Add these files.
5727         (Depends-on): Add localcharset.
5728         (TESTS): Add test-wcrtomb-w32-6.sh, test-wcrtomb-w32-7.sh.
5730 2020-01-02  Bruno Haible  <bruno@clisp.org>
5732         mbrtowc: Add more tests.
5733         * tests/test-mbrtowc-w32.c: Include localcharset.h.
5734         (test_one_locale): For the GB18030 and UTF-8 tests, verify that
5735         locale_charset() returns the expected value; otherwise, skip the test.
5736         * tests/test-mbrtowc-w32-6.sh: Remove old comment.
5737         * tests/test-mbrtowc-w32-7.sh: Likewise.
5738         * modules/mbrtowc-tests (Files): Add these files.
5739         (Depends-on): Add localcharset.
5740         (TESTS): Add test-mbrtowc-w32-6.sh, test-mbrtowc-w32-7.sh.
5742 2020-01-02  Bruno Haible  <bruno@clisp.org>
5744         mbrtowc: Fix test failures on MSVC (regression by previous commit).
5745         * m4/mbrtowc.m4 (gl_MBRTOWC_STORES_INCOMPLETE): New macro.
5746         (gl_FUNC_MBRTOWC): Invoke it. Define MBRTOWC_STORES_INCOMPLETE_BUG.
5747         * lib/mbrtowc.c (rpl_mbrtowc): Add workaround for
5748         MBRTOWC_STORES_INCOMPLETE_BUG.
5749         * doc/posix-functions/mbrtowc.texi: Mention the MSVC bug.
5751 2020-01-02  Paul Eggert  <eggert@cs.ucla.edu>
5753         doc: mention glibc bug 24269
5754         * doc/regex.texi (Back-reference Operator): Add glibc bug 24269.
5755         Reformat slightly so that it looks nicer in the Grep manual.
5757 2020-01-02  Bruno Haible  <bruno@clisp.org>
5759         mbrtowc: Don't replace mbstate_t on MSVC.
5760         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN): Require AC_CANONICAL_HOST. Ignore
5761         a missing mbsinit function on native Windows.
5762         * lib/wchar.in.h (GNULIB_defined_mbstate_t): Likewise.
5763         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Strengthen the test, to detect an
5764         MSVC bug.
5765         * doc/posix-functions/wcrtomb.texi: Mention the MSVC bug.
5767 2020-01-02  Bruno Haible  <bruno@clisp.org>
5769         setlocale-null: Avoid crashing the MSVC linker.
5770         * lib/setlocale-lock.c: Don't define IMP(gl_get_setlocale_null_lock) on
5771         MSVC.
5773 2020-01-02  Bruno Haible  <bruno@clisp.org>
5775         wchar: Make the HP-UX workaround work on HP-UX 11.31.
5776         * modules/wchar (Depends-on): Add inttypes-incomplete.
5777         * lib/inttypes.in.h: Define _GL_FINISHED_INCLUDING_SYSTEM_INTTYPES_H.
5778         * lib/wchar.in.h: Test _GL_FINISHED_INCLUDING_SYSTEM_INTTYPES_H instead
5779         of strtoimax.
5781 2020-01-02  Bruno Haible  <bruno@clisp.org>
5783         mbrtowc: Fix compilation error on IRIX (regression from 2019-12-26).
5784         * lib/mbrtowc.c: Include <stdint.h>.
5785         * modules/mbrtowc (Depends-on): Add stdint.
5787 2020-01-01  Pádraig Brady  <P@draigBrady.com>
5789         md5, sha1, sha256, sha512: support --with-openssl=auto-gpl-compat
5790         * m4/gl-openssl.m4: Add a new "auto-gpl-compat" mode,
5791         which will auto enable use of openssl, only for >= version 3,
5792         which is newly licensed under the Apache Software License.
5794 2020-01-01  Bruno Haible  <bruno@clisp.org>
5796         mbrtowc: Include function name in macro names.
5797         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Define
5798         MBRTOWC_IN_C_LOCALE_MAYBE_EILSEQ, not C_LOCALE_MAYBE_EILSEQ.
5799         (gl_MBRTOWC_C_LOCALE): Change cache variable name to
5800         gl_cv_func_mbrtowc_C_locale_sans_EILSEQ.
5801         * lib/mbrtowc.c: Test MBRTOWC_IN_C_LOCALE_MAYBE_EILSEQ, not
5802         C_LOCALE_MAYBE_EILSEQ.
5804 2020-01-01  Bruno Haible  <bruno@clisp.org>
5806         c32tob: New module.
5807         * lib/uchar.in.h (_GL_LARGE_CHAR32_T): New macro.
5808         (c32tob): New declaration.
5809         * lib/c32tob.c: New file.
5810         * m4/uchar.m4 (gl_UCHAR_MODULE_INDICATOR, gl_UCHAR_H_DEFAULTS): New
5811         macros.
5812         (gl_UCHAR_H): Require gl_UCHAR_H_DEFAULTS.
5813         * modules/uchar (Depends-on): Add snippet/c++defs.
5814         (Makefile.am): Include c++defs.h and substitute GNULIB_C32TOB in
5815         uchar.h.
5816         * modules/c32tob: New file.
5817         * tests/test-uchar.c: Verify that _GL_LARGE_CHAR32_T is correctly
5818         defined.
5819         * tests/test-uchar-c++.cc: Include signature.h. Test the signature of
5820         c32tob.
5821         * modules/uchar-c++-tests (Files): Add tests/signature.h.
5822         * doc/posix-functions/wctob.texi: Mention the new module.
5824 2020-01-01  Bruno Haible  <bruno@clisp.org>
5826         locale C++ tests: Fix link error on AIX (regression from 2019-12-18).
5827         * modules/locale-c++-tests (Makefile.am): Link test-locale-c++ with
5828         $(LIB_SETLOCALE).
5830 2020-01-01  Bruno Haible  <bruno@clisp.org>
5832         hard-locale tests: Fix a conflict with the C++ tests.
5833         * modules/hard-locale-tests (Makefile.am): Build a program named
5834         'current-locale', not 'locale'.
5836 2020-01-01  Bruno Haible  <bruno@clisp.org>
5838         doc: Update documentation about wchar_t.
5839         * doc/*/*wc*.texi: Clarify that 64-bit AIX does not have a too small
5840         wchar_t type.
5842 2020-01-01  Bruno Haible  <bruno@clisp.org>
5844         mbrtowc tests: Fix typos.
5845         * tests/test-mbrtowc.c (main): Fix typo.
5846         * tests/test-mbrtowc-w32.c (test_one_locale): Likewise.
5848 2019-12-31  Paul Eggert  <eggert@cs.ucla.edu>
5850         maint: update copyright notices
5851         Before doing the following changes done by hand, I also ran ‘make
5852         update-copyright’ and ‘config/srclist-update <config/srclist.txt’
5853         to do most of the copyright years automatically.  A few upstream
5854         sources are still in 2019 but these should eventually be changed
5855         automatically too.
5856         * build-aux/declared.sh (func_version):
5857         * build-aux/libtool-next-version (func_version):
5858         * build-aux/run-test (func_version):
5859         Update these notices by hand.  Put just the last year
5860         in output of programs, as per GNU coding standards.
5862 2019-12-31  Bruno Haible  <bruno@clisp.org>
5864         uchar: Add C++ tests.
5865         * tests/test-uchar-c++.cc: New file.
5866         * tests/test-uchar-c++2.cc: New file.
5867         * modules/uchar-c++-tests: New file.
5869         uchar: Add tests.
5870         * tests/test-uchar.c: New file.
5871         * modules/uchar-tests: New file.
5873         uchar: New module.
5874         * lib/uchar.in.h: New file.
5875         * m4/uchar.m4: New file.
5876         * modules/uchar: New file.
5877         * doc/posix-headers/uchar.texi: Mention the new module.
5879 2019-12-30  Jim Meyering  <meyering@fb.com>
5881         localeinfo: ->simple would be wrong for LC_ALL=C
5882         That would lead to using unnecessary and expensive code paths in dfa.c.
5883         * lib/localeinfo.c (using_simple_locale): Fix recently-introduced logic
5884         error that would have made grep many times slower in the C locale.
5885         With this change, and a file created like this:
5886           yes 00 | head -10000000 > in
5887         Running grep as follows becomes more than 40 times faster:
5888           LC_ALL=C grep -Fw 0 in
5890 2019-12-30  Paul Eggert  <eggert@cs.ucla.edu>
5892         doc: document trouble with back-references
5893         * doc/regex.texi (Back-reference Operator): Mention bugs etc.
5895 2019-12-29  Paul Eggert  <eggert@cs.ucla.edu>
5897         doc: use “back-reference” for \1 etc.
5898         * doc/regex.texi: Consistently spell “back-reference” with
5899         a hyphen, since that’s how POSIX does it.
5901 2019-12-26  Jim Meyering  <meyering@fb.com>
5903         test-framework-sh: tighten an internal grep regexp
5904         * tests/init.sh (gl_shell_test_script_): Tighten the grep regexp
5905         that helps test for a working printf.
5907 2019-12-26  Bruno Haible  <bruno@clisp.org>
5909         test-framework-sh: Avoid /bin/sh on AIX 7.2 due to its printf built-in.
5910         Reported by Paul Eggert in
5911         <https://lists.gnu.org/archive/html/grep-devel/2019-12/msg00020.html>.
5912         Simplification by Jim Meyering.
5913         * tests/init.sh (gl_shell_test_script_): Add a test of printf of an
5914         octal escape sequence in a UTF-8 locale.
5916 2019-12-26  Paul Eggert  <eggert@cs.ucla.edu>
5918         mbrtowc: port better to narrow-wchar_t platforms
5919         * lib/mbrtowc.c (mbrtowc): On platforms like AIX 7.2, where
5920         wchar_t is too narrow to represent all the Unicode characters,
5921         consider a byte sequence for an out-of-wchar_t-range character to
5922         be an encoding error.  This fixes grep’s surrogate-pair test
5923         failure on AIX 7.2.
5925 2019-12-24  Bruno Haible  <bruno@clisp.org>
5927         localcharset: Avoid referencing rpl_setlocale on native Windows.
5928         * lib/localcharset.c (setlocale): Undefine.
5930 2019-12-24  Bruno Haible  <bruno@clisp.org>
5932         lock tests: Fix link error on HP-UX/hppa (regression from 2019-12-21).
5933         * m4/semaphore.m4: New file.
5934         * modules/lock-tests (Files): Add it.
5935         (configure.ac): Require gl_SEMAPHORE.
5936         (Makefile.am): Link test-lock with $(LIB_SEMAPHORE).
5938 2019-12-24  Paul Eggert  <eggert@cs.ucla.edu>
5940         strptime: fix typo in previous patch
5941         Problem and fix reported by Bruno Haible in:
5942         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00202.html
5943         * lib/strptime.c (day_of_the_week): Fix paren bug.
5945 2019-12-24  Bruno Haible  <bruno@clisp.org>
5947         setlocale-null: Make it easy to rely on the lock in another library.
5948         * lib/setlocale-lock.c: Do not define anything if OMIT_SETLOCALE_LOCK is
5949         defined.
5951 2019-12-23  Paul Eggert  <eggert@cs.ucla.edu>
5953         gethrxtime, mktime, nstrftime, strptime: tweak division performance
5954         Performanced analyzed by Bruno Haible in:
5955         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00200.html
5956         * config/srclist.txt: Do not sync mktime.c for now.
5957         * lib/mktime.c (shr, ydhms_diff):
5958         * lib/nstrftime.c (SHR, tm_diff, __strftime_internal):
5959         * lib/strptime.c (day_of_the_week):
5960         * lib/xtime.h (xtime_sec):
5961         Redo with neither ‘%’ nor conditional branches.
5963 2019-12-23  Bruno Haible  <bruno@clisp.org>
5965         setlocale-null: Export the lock function also on non-Windows platforms.
5966         * lib/setlocale-lock.c (DLL_EXPORTED): New macro.
5967         (gl_get_setlocale_null_lock): Declare as DLL_EXPORTED.
5968         * m4/setlocale_null.m4 (gl_PREREQ_SETLOCALE_LOCK): New macro.
5969         * modules/setlocale-null (configure.ac): Invoke it.
5970         (Files): Add m4/visibility.m4.
5972 2019-12-22  Paul Eggert  <eggert@cs.ucla.edu>
5974         gethrxtime: fix rounding bug with negative args
5975         Problem reported by Bruno Haible in:
5976         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00192.html
5977         * lib/xtime.h (xtime_sec): Simplify calculation and correct bug
5978         with negative rounding.  Common platforms can compute / and % with
5979         a single instruction, so the simplified code should be shorter and
5980         faster on these platforms anyway.
5982 2019-12-22  Bruno Haible  <bruno@clisp.org>
5984         gethrxtime: remove incorrect overflow detection
5985         * lib/xtime.h (xtime_make): Remove attempt to prevent internal
5986         integer overflow, as it didn’t suffice.  This reverts the xtime.h
5987         part of 2018-10-12T04:46:09Z!akim.demaille@gmail.com, which I
5988         cannot now see the need for anyway (even in cases where it works),
5989         as the patch is helpful only when the signs of S and NS disagree,
5990         and all callers pass nonnegative values for S and NS.
5992 2019-12-22  Bruno Haible  <bruno@clisp.org>
5994         setlocale-null: Add standalone include file.
5995         * lib/setlocale_null.h: New file, extracted from lib/locale.in.h.
5996         * lib/locale.in.h: Include setlocale_null.h.
5997         (SETLOCALE_NULL_MAX, SETLOCALE_NULL_ALL_MAX, setlocale_null_r,
5998         setlocale_null): Remove declarations.
5999         * lib/setlocale_null.c: Include setlocale_null.h.
6000         * lib/localename.c: Likewise.
6001         * modules/setlocale-null (Files): Add lib/setlocale_null.h.
6002         (Depends-on): Add snippet/arg-nonnull.
6003         (Include): Allow either "setlocale_null.h" or <locale.h>.
6005 2019-12-22  Bruno Haible  <bruno@clisp.org>
6007         strfmon_l: Fix test failures on FreeBSD and Cygwin.
6008         * m4/strfmon_l.m4 (gl_FUNC_STRFMON_L): Require gt_LOCALE_FR_UTF8. Add an
6009         AC_RUN_IFELSE test.
6010         * modules/strfmon_l (Files): Add locale-fr.m4, codeset.m4.
6011         * doc/posix-functions/strfmon_l.texi: Mention the FreeBSD and Cygwin
6012         problem.
6014 2019-12-22  Bruno Haible  <bruno@clisp.org>
6016         Prefer lib_SOURCES to unconditional AC_LIBOBJ.
6017         * modules/at-internal: Prefer a lib_SOURCES augmentation to an
6018         unconditional AC_LIBOBJ.
6019         * modules/selinux-at: Likewise.
6020         * modules/xmemdup0: Likewise.
6021         * modules/xstrtoll: Likewise.
6023 2019-12-22  Bruno Haible  <bruno@clisp.org>
6025         longlong: Mark module obsolete.
6026         * modules/longlong (Status, Notice): New sections.
6028         stdint: Assume that the compiler supports 'long long'.
6029         * lib/stdint.in.h (int64_t, uint64_t, intmax_t, uintmax_t, INT64_C,
6030         UINT64_C, INTMAX_C, UINTMAX_C): Assume HAVE_LONG_LONG_INT and
6031         HAVE_UNSIGNED_LONG_LONG_INT to be 1.
6032         * m4/stdint.m4 (gl_STDINT_H): Don't require AC_TYPE_LONG_LONG_INT,
6033         AC_TYPE_UNSIGNED_LONG_LONG_INT.
6034         * modules/stdint (Files): Remove longlong.m4.
6035         (Makefile.am): Don't substitute HAVE_LONG_LONG_INT,
6036         HAVE_UNSIGNED_LONG_LONG_INT.
6038         inttypes-incomplete: Assume that the compiler supports 'long long'.
6039         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
6040         _SCNu64_PREFIX): Assume HAVE_LONG_LONG_INT and
6041         HAVE_UNSIGNED_LONG_LONG_INT to be 1.
6042         * m4/inttypes.m4 (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): Assume
6043         HAVE_LONG_LONG_INT to be 1.
6044         * modules/inttypes-incomplete (Makefile.am): Don't substitute
6045         HAVE_LONG_LONG_INT, HAVE_UNSIGNED_LONG_LONG_INT.
6047         malloca: Assume that the compiler supports 'long long'.
6048         * lib/malloca.h: Assume HAVE_LONG_LONG_INT to be 1.
6049         * m4/malloca.m4 (gl_MALLOCA): Don't require AC_TYPE_LONG_LONG_INT.
6050         * modules/malloca (Files): Remove longlong.m4.
6051         * modules/relocatable-prog-wrapper (Files): Likewise.
6053         atoll: Assume that the compiler supports 'long long'.
6054         * m4/atoll.m4 (gl_FUNC_ATOLL): Don't require AC_TYPE_LONG_LONG_INT.
6055         * modules/atoll (Files): Remove longlong.m4.
6057         strtoll: Assume that the compiler supports 'long long'.
6058         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Don't require AC_TYPE_LONG_LONG_INT.
6059         * modules/strtoll (Files): Remove longlong.m4.
6061         strtoull: Assume that the compiler supports 'long long'.
6062         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Don't require
6063         AC_TYPE_UNSIGNED_LONG_LONG_INT.
6064         * modules/strtoull (Files): Remove longlong.m4.
6066         strtoimax, strtoumax: Assume that the compiler supports 'long long'.
6067         * lib/strtoimax.c: Assume HAVE_LONG_LONG_INT and
6068         HAVE_UNSIGNED_LONG_LONG_INT to be 1.
6069         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Don't require
6070         AC_TYPE_LONG_LONG_INT.
6071         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't require
6072         AC_TYPE_UNSIGNED_LONG_LONG_INT.
6073         * modules/strtoimax (Files): Remove longlong.m4.
6074         * modules/strtoumax (Files): Likewise.
6076         xstrtoll: Assume that the compiler supports 'long long'.
6077         * lib/xstrtol.h (xstrtoll, xstrtoull): Declare unconditionally.
6078         * modules/xstrtoll (configure.ac): Don't invoke AC_TYPE_LONG_LONG_INT.
6080         vasnprintf: Assume that the compiler supports 'long long'.
6081         * lib/printf-args.h: Assume HAVE_LONG_LONG_INT to be 1.
6082         * lib/printf-args.c (PRINTF_FETCHARGS): Likewise.
6083         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
6084         * lib/vasnprintf.c (MAX_ROOM_NEEDED, VASNPRINTF): Likewise.
6085         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Don't
6086         require AC_TYPE_LONG_LONG_INT.
6087         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
6088         gl_PREREQ_VASNPRINTF): Likewise.
6089         * modules/vasnprintf (Files): Remove longlong.m4.
6090         * modules/c-vasnprintf (Files): Likewise.
6091         * modules/unistdio/u8-vasnprintf (Files): Likewise.
6092         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
6093         * modules/unistdio/u16-vasnprintf (Files): Likewise.
6094         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
6095         * modules/unistdio/u32-vasnprintf (Files): Likewise.
6096         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
6097         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
6099         gethrxtime: Assume that the compiler supports 'long long'.
6100         * lib/xtime.h (xtime_t): Define to 'long long int' always.
6101         (XTIME_PRECISION): Define to 1000000000 always.
6102         (xtime_make, xtime_sec): Optimize accordingly.
6103         * m4/gethrxtime.m4 (gl_XTIME): Don't require AC_TYPE_LONG_LONG_INT.
6104         * modules/gethrxtime (Files): Remove longlong.m4.
6106         integer_length*: Assume that the compiler supports 'long long'.
6107         * lib/integer_length.h (integer_length_ll): Declare unconditionally.
6108         * modules/integer_length (Files): Remove longlong.m4.
6109         (configure.ac): Don't require AC_TYPE_UNSIGNED_LONG_LONG_INT.
6110         * modules/integer_length_l (Files): Remove longlong.m4.
6111         (configure.ac): Don't require AC_TYPE_UNSIGNED_LONG_LONG_INT.
6112         * modules/integer_length_ll (Files): Remove longlong.m4.
6113         (configure.ac): Don't require AC_TYPE_UNSIGNED_LONG_LONG_INT.
6115         count-one-bits: Assume that the compiler supports 'long long'.
6116         * lib/count-one-bits.h (count_one_bits_ll): Define unconditionally.
6117         * m4/count-one-bits.m4: Remove file.
6118         * modules/count-one-bits (Files): Remove it.
6119         (configure.ac): Don't invoke gl_COUNT_ONE_BITS.
6120         * tests/test-count-one-bits.c (main): Test count_one_bits_ll
6121         unconditionally.
6123         count-trailing-zeros: Assume that the compiler supports 'long long'.
6124         * lib/count-trailing-zeros.h (count_trailing_zeros_ll): Define
6125         unconditionally.
6126         * m4/count-trailing-zeros.m4: Remove file.
6127         * modules/count-trailing-zeros (Files): Remove it.
6128         (configure.ac): Don't invoke gl_COUNT_TRAILING_ZEROS.
6129         * tests/test-count-trailing-zeros.c (main): Test count_trailing_zeros_ll
6130         unconditionally.
6132         count-leading-zeros: Assume that the compiler supports 'long long'.
6133         * lib/count-leading-zeros.h (count_leading_zeros_ll): Define
6134         unconditionally.
6135         * m4/count-leading-zeros.m4: Remove file.
6136         * modules/count-leading-zeros (Files): Remove it.
6137         (configure.ac): Don't invoke gl_COUNT_LEADING_ZEROS.
6138         * tests/test-count-leading-zeros.c (main): Test count_leading_zeros_ll
6139         unconditionally.
6141 2019-12-22  Bruno Haible  <bruno@clisp.org>
6143         localcharset: Update support for OpenBSD.
6144         * lib/localcharset.c (alias_table): Map "US-ASCII" to "ASCII".
6146 2019-12-21  Bruno Haible  <bruno@clisp.org>
6148         pthread_sigmask: Avoid test failure on NetBSD 8.0.
6149         * tests/test-pthread_sigmask2.c (main): Skip the error handling test on
6150         NetBSD.
6151         * doc/posix-functions/pthread_sigmask.texi: Mention the NetBSD problem.
6153 2019-12-21  Bruno Haible  <bruno@clisp.org>
6155         threadlib: Improve code structure.
6156         * m4/threadlib.m4: Reorder macros. Add comments.
6158 2019-12-21  Bruno Haible  <bruno@clisp.org>
6160         threadlib: Fix LIBMULTITHREAD on FreeBSD with --enable-threads=isoc.
6161         * m4/threadlib.m4 (gl_STDTHREADLIB_BODY): New macro (some code moved
6162         here from m4/threads.m4).
6163         (gl_THREADLIB_BODY): Don't test whether mtx_lock and cnd_timedwait exist
6164         in libc. Instead, rely on gl_STDTHREADLIB_BODY.
6165         (gl_STDTHREADLIB): New macro.
6166         * m4/threads.m4 (gl_THREADS_H): Require gl_STDTHREADLIB instead of
6167         gl_THREADLIB_BODY and gl_YIELD. Don't set LIBSTDTHREAD here.
6169 2019-12-21  Bruno Haible  <bruno@clisp.org>
6171         sched_yield: Don't depend on threadlib and yield.
6172         * m4/threadlib.m4 (gl_PTHREADLIB): Document that it sets
6173         LIB_SCHED_YIELD.
6174         (gl_PTHREADLIB_BODY): Set LIB_SCHED_YIELD (code moved here from
6175         m4/yield.m4).
6176         * m4/sched_yield.m4 (gl_FUNC_SCHED_YIELD): Require gl_PTHREADLIB, not
6177         gl_THREADLIB and gl_YIELD.
6178         * m4/yield.m4 (gl_YIELD): Require gl_PTHREADLIB. Determine YIELD_LIB
6179         based on $(LIB_SCHED_YIELD).
6180         * m4/threads.m4 (gl_THREADS_H): Don't require gl_YIELD. Use
6181         $(LIB_SCHED_YIELD), not $(YIELD_LIB).
6182         * modules/sched_yield (Files): Remove yield.m4. Add threadlib.m4.
6183         (Depends-on): Remove threadlib.
6184         (Link): Mention $(LIB_SCHED_YIELD), not $(YIELD_LIB).
6185         * modules/threads-h (Files): Remove m4/yield.m4.
6186         * modules/pthread-cond-tests (Makefile.am): Link the programs against
6187         $(LIB_SCHED_YIELD), not $(YIELD_LIB).
6188         * modules/pthread-mutex-tests (Makefile.am): Likewise.
6189         * modules/pthread-once-tests (Makefile.am): Likewise.
6190         * modules/pthread-rwlock-tests (Makefile.am): Likewise.
6191         * modules/pthread-tss-tests (Makefile.am): Likewise.
6193 2019-12-21  Bruno Haible  <bruno@clisp.org>
6195         threads-h: Don't depend on threadlib.
6196         * modules/threads-h (configure.ac-early): Invoke gl_ANYTHREADLIB_EARLY,
6197         not gl_THREADLIB_EARLY.
6199 2019-12-21  Bruno Haible  <bruno@clisp.org>
6201         nl_langinfo tests: Fix link error (regression from 2019-12-18).
6202         * modules/nl_langinfo-tests (Makefile.am): Link also test-nl_langinfo
6203         with $(LIB_SETLOCALE).
6205 2019-12-21  Bruno Haible  <bruno@clisp.org>
6207         threadlib: Remove unused dependency (left over from 2019-07-06).
6208         * modules/threadlib (Depends-on): Remove havelib.
6210 2019-12-21  Bruno Haible  <bruno@clisp.org>
6212         New convention for multithread-safety tests.
6213         * tests/test-setlocale_null-mt-one.c: Renamed from
6214         tests/test-setlocale_null-one.c.
6215         * tests/test-setlocale_null-mt-all.c: Renamed from
6216         tests/test-setlocale_null-all.c.
6217         * modules/setlocale-null-tests (Files, Makefile.am): Update.
6219 2019-12-21  Bruno Haible  <bruno@clisp.org>
6221         quotearg tests: Fix conflict with hard-locale tests.
6222         * tests/testlocale: Renamed from tests/locale.
6223         * modules/quotearg-tests (Files): Update.
6224         * tests/test-quotearg.sh (LOCALEDIR): Likewise.
6226 2019-12-21  Bruno Haible  <bruno@clisp.org>
6228         pthread-thread, lock: On z/OS, use PTHREAD_RWLOCK_INITIALIZER_NP.
6229         Reported by Daniel Richard G. in
6230         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00001.html>
6231         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00167.html>
6232         * lib/pthread.in.h (PTHREAD_RWLOCK_INITIALIZER): Define to
6233         PTHREAD_RWLOCK_INITIALIZER_NP when possible.
6234         * lib/glthread/lock.h: Allow PTHREAD_RWLOCK_INITIALIZER_NP as an
6235         alternative to PTHREAD_RWLOCK_INITIALIZER.
6236         * lib/glthread/lock.c: Likewise.
6238 2019-12-21  Bruno Haible  <bruno@clisp.org>
6240         memcmp tests: Work around the clang bug.
6241         * tests/test-memcmp.c (main): Use a volatile function pointer to disable
6242         the clang optimization.
6244 2019-12-20  Bruno Haible  <bruno@clisp.org>
6246         localcharset: Add support for z/OS encoding names.
6247         * lib/localcharset.h: Mention which encodings are used as locale
6248         encodings on z/OS.
6250 2019-12-20  Bruno Haible  <bruno@clisp.org>
6252         iconv_open: Add support for z/OS encoding names.
6253         Reported by Daniel Richard G. in
6254         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00172.html>.
6255         * lib/iconv_open-zos.gperf: New file.
6256         * modules/iconv_open (Files): Add iconv_open-zos.gperf.
6257         (Makefile.am): Add rules for generating iconv_open-zos.h from it.
6258         * lib/iconv_open.c (ICONV_FLAVOR_ZOS): New macro.
6259         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): On z/OS, use ICONV_FLAVOR_ZOS.
6260         * doc/posix-functions/iconv_open.texi: Mention z/OS.
6262 2019-12-20  Bruno Haible  <bruno@clisp.org>
6264         doc: Document the problem of the per-thread locale functions on z/OS.
6265         * doc/posix-functions/uselocale.texi: Document the z/OS problem.
6266         * doc/posix-functions/newlocale.texi: Likewise.
6267         * doc/posix-functions/duplocale.texi: Likewise.
6268         * doc/posix-functions/freelocale.texi: Likewise.
6270 2019-12-20  Bruno Haible  <bruno@clisp.org>
6272         localename, gettext: Fix host_os value for z/OS.
6273         * m4/intl-thread-locale.m4 (gt_FUNC_USELOCALE): Fix host_os value in
6274         cross-configuration code.
6276 2019-12-19  Jim Meyering  <meyering@fb.com>
6278         nstrftime: avoid a shadowing warning
6279         * lib/nstrftime.c (libc_hidden_def): Rename inner "i" to "j",
6280         to avoid shadowing an "i" declared hundreds of lines above.
6282 2019-12-19  Paul Eggert  <eggert@cs.ucla.edu>
6284         dfa: struct dfamust now uses flexible array
6285         * lib/dfa.c: Include flexmember.h.
6286         (dfamust, dfamustfree): Adjust to struct dfamust change.
6287         This saves a call to malloc+free.
6288         * lib/dfa.h (struct dfamust): Make the final member a
6289         flexible array member.
6290         * modules/dfa (Depends-on): Add flexmember.
6292         dfa: fast->small for array elements
6293         * lib/dfa.c (charclass_word): Use uint_least64_t not uint_fast64_t,
6294         since this type is used in arrays.  This change is more for
6295         documentation than for any practical effect, since the two types
6296         are the same on all known platforms.
6298 2019-12-19  Bruno Haible  <bruno@clisp.org>
6300         iconv tests: Test canonicalized, not system-dependent, encoding names.
6301         * tests/test-iconv.c (main): Revert part of the 2016-08-17 patch.
6302         * modules/iconv-tests (Depends-on): Add iconv_open.
6304 2019-12-18  Bruno Haible  <bruno@clisp.org>
6306         localename: Fix test failure on AIX 7.2.
6307         * m4/intl-thread-locale.m4 (gt_INTL_THREAD_LOCALE_NAME): Enable nameless
6308         locales on AIX.
6309         * lib/localename.c (gl_locale_name_thread_unsafe): Handle nameless
6310         locales on AIX.
6312 2019-12-18  Paul Eggert  <eggert@cs.ucla.edu>
6314         Improve port of AC_C_RESTRICT to Oracle C++
6315         Problem reported by Christian Biesinger in:
6316         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00159.html
6317         * m4/gnulib-common.m4 (AC_C_RESTRICT): Port better to
6318         Oracle Developer Studio C++ 12.5 or later.
6320 2019-12-18  Bruno Haible  <bruno@clisp.org>
6322         wchar: Fix test failures on AIX and MSVC (regression from 2019-12-07).
6323         * lib/wchar.in.h (GNULIB_defined_mbstate_t): Do define on AIX and MSVC.
6325 2019-12-18  Bruno Haible  <bruno@clisp.org>
6327         localename: Ensure multithread-safety in future changes.
6328         * lib/localename.c (setlocale): Reference the system's setlocale().
6329         (get_locale_t_name): Invoke setlocale_null instead of setlocale.
6330         (gl_locale_name_posix): Likewise.
6331         * modules/localename (Depends-on): Add setlocale-null.
6333 2019-12-18  Bruno Haible  <bruno@clisp.org>
6335         setlocale-null: Make API more useful.
6336         * lib/locale.in.h (setlocale_null_r): Renamed from setlocale_null. All
6337         callers changed.
6338         (setlocale_null): New declaration.
6339         * lib/setlocale_null.c (setlocale_null_androidfix): New function,
6340         extracted from setlocale_null_unlocked.
6341         (setlocale_null_unlocked): Invoke it.
6342         (setlocale_null_r): Renamed from setlocale_null.
6343         (setlocale_null): New function, extracted from setlocale_mtsafe in
6344         setlocale.c.
6345         * lib/setlocale.c: Don't include <errno.h>.
6346         (setlocale_mtsafe): Invoke setlocale_null.
6347         * lib/setlocale-lock.c: Update comments.
6348         * doc/posix-functions/setlocale.texi: Mention both functions.
6350 2019-12-18  Bruno Haible  <bruno@clisp.org>
6352         localename: Optimize code for native Windows.
6353         * lib/localename.c (gl_locale_name_posix): Remove handling of LC_ALL
6354         category (not allowed here).
6356 2019-12-18  Bruno Haible  <bruno@clisp.org>
6358         setlocale: Make calls with NULL argument multithread-safe.
6359         * lib/setlocale.c: Include <errno.h>.
6360         (setlocale_mtsafe): New function.
6361         (setlocale_unixlike): Invoke setlocale_mtsafe instead of setlocale.
6362         (setlocale_improved): Renamed from rpl_setlocale.
6363         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Require gl_FUNC_SETLOCALE_NULL.
6364         Set and define NEED_SETLOCALE_IMPROVED and NEED_SETLOCALE_MTSAFE. Set
6365         LIB_SETLOCALE.
6366         * modules/setlocale (Depends-on): Add setlocale-null. Update conditions.
6367         (Link): New section.
6368         * tests/locale.c: Undefine setlocale.
6369         * tests/test-setlocale_null-one.c: Likewise.
6370         * tests/test-setlocale_null-all.c: Likewise.
6371         * modules/setlocale-tests (Makefile.am): Link the test programs with
6372         $(LIB_SETLOCALE).
6373         * modules/astrxfrm-tests (Makefile.am): Likewise.
6374         * modules/btowc-tests (Makefile.am): Likewise.
6375         * modules/c-ctype-tests (Makefile.am): Likewise.
6376         * modules/c-snprintf-tests (Makefile.am): Likewise.
6377         * modules/c-strcase-tests (Makefile.am): Likewise.
6378         * modules/c-vasprintf-tests (Makefile.am): Likewise.
6379         * modules/c-vsnprintf-tests (Makefile.am): Likewise.
6380         * modules/c-xvasprintf-tests (Makefile.am): Likewise.
6381         * modules/dfa-tests (Makefile.am): Likewise.
6382         * modules/duplocale-tests (Makefile.am): Likewise.
6383         * modules/hard-locale-tests (Makefile.am): Likewise.
6384         * modules/localcharset-tests (Makefile.am): Likewise.
6385         * modules/localename-tests (Makefile.am): Likewise.
6386         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
6387         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
6388         * modules/mbrtowc-tests (Makefile.am): Likewise.
6389         * modules/mbscasecmp-tests (Makefile.am): Likewise.
6390         * modules/mbscasestr-tests (Makefile.am): Likewise.
6391         * modules/mbschr-tests (Makefile.am): Likewise.
6392         * modules/mbscspn-tests (Makefile.am): Likewise.
6393         * modules/mbsinit-tests (Makefile.am): Likewise.
6394         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
6395         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
6396         * modules/mbspbrk-tests (Makefile.am): Likewise.
6397         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
6398         * modules/mbsrchr-tests (Makefile.am): Likewise.
6399         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
6400         * modules/mbsspn-tests (Makefile.am): Likewise.
6401         * modules/mbsstr-tests (Makefile.am): Likewise.
6402         * modules/nl_langinfo-tests (Makefile.am): Likewise.
6403         * modules/quotearg-tests (Makefile.am): Likewise.
6404         * modules/regex-tests (Makefile.am): Likewise.
6405         * modules/strfmon_l-tests (Makefile.am): Likewise.
6406         * modules/strtod-tests (Makefile.am): Likewise.
6407         * modules/strtold-tests (Makefile.am): Likewise.
6408         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
6409         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
6410         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
6411         * modules/unigbrk/ulc-grapheme-breaks-tests (Makefile.am): Likewise.
6412         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
6413         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
6414         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
6415         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
6416         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
6417         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
6418         * modules/wcrtomb-tests (Makefile.am): Likewise.
6419         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
6420         * modules/wcsrtombs-tests (Makefile.am): Likewise.
6421         * modules/wcwidth-tests (Makefile.am): Likewise.
6422         * doc/posix-functions/setlocale.texi: Mention that the multithread-
6423         safety fix is also available in module 'setlocale'.
6425 2019-12-18  Bruno Haible  <bruno@clisp.org>
6427         hard-locale: Make multithread-safe.
6428         * lib/hard-locale.h (hard_locale): Move documentation to here.
6429         * lib/hard-locale.c: Don't include <stdlib.h>.
6430         (GLIBC_VERSION): Remove macro.
6431         (hard_locale): Assume that all systems name the "C" and "POSIX" locales
6432         "C" or "POSIX". Invoke setlocale_null instead of setlocale.
6433         * modules/hard-locale (Depends-on): Remove strdup. Add setlocale-null.
6434         (configure.ac): Require gl_FUNC_SETLOCALE_NULL. Set LIB_HARD_LOCALE.
6435         (Link): New section.
6436         * modules/hard-locale-tests (Makefile.am): Link test-hard-locale against
6437         $(LIB_HARD_LOCALE).
6439 2019-12-18  Bruno Haible  <bruno@clisp.org>
6441         hard-locale: Avoid test failure on Haiku.
6442         * tests/test-hard-locale.c (test_one): Treat Haiku like recent OpenBSD.
6444 2019-12-18  Bruno Haible  <bruno@clisp.org>
6446         setlocale-null: Handle NULL result from setlocale.
6447         * lib/locale.in.h (setlocale_null): Document EINVAL return value.
6448         * lib/setlocale_null.c (setlocale_null_unlocked): Handle NULL result
6449         from setlocale or _wsetlocale.
6451 2019-12-18  Bruno Haible  <bruno@clisp.org>
6453         hard-locale: Add test.
6454         * tests/test-hard-locale.c: New file.
6455         * tests/locale.c: New file.
6456         * modules/hard-locale-tests: New file.
6458 2019-12-17  Paul Eggert  <eggert@cs.ucla.edu>
6460         dfa: do not match invalid UTF-8
6461         * lib/dfa.c (struct dfa): Grow utf8_anychar_classes member array
6462         from 5 to 9 tokens; this is needed due to the changes to
6463         add_utf8_anychar.
6464         (charclass_index): 2nd arg is now pointer-to-const.
6465         (add_utf8_anychar): Match only valid UTF-8 byte sequences
6466         instead of allowing overlong encodings or surrogate halves.
6468         dfa: simplify charclass by assuming C99
6469         * lib/dfa.c (CHARCLASS_WORD_BITS): Now always 64.
6470         (charclass_word): Now always uint_fast64_t.
6471         (CHARCLASS_PAIR): Remove.
6472         (CHARCLASS_INIT): Take 4 arguments instead of 8.  All uses changed.
6474         fts: tune via calloc
6475         * lib/fts.c (fts_open): Prefer calloc to malloc + memset.
6477         dfa: tune via xzalloc
6478         * lib/dfa.c (dfaoptimize): Prefer xzalloc to xmalloc + memset.
6480 2019-12-17  Bruno Haible  <bruno@clisp.org>
6482         localcharset: Fix multithread-safety bug on Windows and OS/2.
6483         * lib/localcharset.h (locale_charset): Clarify when the result becomes
6484         invalid.
6485         * lib/localcharset.c (locale_charset): Use a stack-allocated buffer to
6486         assemble the result.
6488 2019-12-17  Bruno Haible  <bruno@clisp.org>
6490         localcharset: Optimize code for native Windows.
6491         * lib/localcharset.c (locale_charset): Don't bother calling
6492         setlocale (LC_ALL, NULL) since we're not interested in its result.
6494 2019-12-17  Bruno Haible  <bruno@clisp.org>
6496         nl_langinfo: Fix multithread-safety bug on OpenBSD 3.8.
6497         * lib/nl_langinfo.c (ctype_codeset): Invoke setlocale_null instead of
6498         setlocale.
6499         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Require
6500         gl_FUNC_SETLOCALE_NULL. Set LIB_NL_LANGINFO.
6501         * modules/nl_langinfo (Depends-on): Add setlocale-null.
6503 2019-12-17  Bruno Haible  <bruno@clisp.org>
6505         nl_langinfo: Fix multithread-safety bug on mingw and MSVC.
6506         * lib/nl_langinfo.c (ctype_codeset, rpl_nl_langinfo): Use a
6507         stack-allocated buffer to assemble each result and different static
6508         buffers to return it.
6509         * tests/test-nl_langinfo-mt.c: New file.
6510         * modules/nl_langinfo-tests (Files): Add it.
6511         (Depends-on): Add thread, nanosleep.
6512         (Makefile.am): Build test-nl_langinfo-mt test.
6514 2019-12-17  Bruno Haible  <bruno@clisp.org>
6516         langinfo: Document more details.
6517         * doc/posix-headers/langinfo.texi: List platform details.
6518         * doc/posix-functions/nl_langinfo.texi: Likewise.
6520 2019-12-17  Bruno Haible  <bruno@clisp.org>
6522         mbsinit: Fix compilation error in mingw-w64 7.0 with _UCRT defined.
6523         Reported by Tom Kacvinsky <tom.kacvinsky@vector.com>
6524         and Martin Storsjö <martin@martin.st>
6525         in <https://savannah.gnu.org/bugs/?57406>.
6526         * lib/mbsinit.c: Accommodate an MSVC-like mbstate_t definition with
6527         mingw.
6529 2019-12-17  Bruno Haible  <bruno@clisp.org>
6531         glob: Avoid warning on mingw.
6532         Reported by Christian Biesinger <cbiesinger@google.com> in
6533         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00122.html>.
6534         * lib/glob.c (__stat64): Undefine first.
6536 2019-12-17  Paul Eggert  <eggert@cs.ucla.edu>
6538         xalloc: tune xzalloc for fresh allocations
6539         * lib/xmalloc.c (xzalloc): Use xcalloc rather than xmalloc+memset,
6540         because when the memory is freshly allocated from the OS via sbrk
6541         or mmap, calloc can avoid doing the memset.
6543         dfa: new function dfacopysyntax
6544         * lib/dfa.c (struct dfa): Move syntax member later so
6545         that dfacopysyntax can easily clear earlier members.
6546         (dfacopysyntax): New function, used by Gawk.
6548 2019-12-16  Paul Eggert  <eggert@cs.ucla.edu>
6550         dfa: port _GL_ATTRIBUTE_MALLOC to Gawk
6551         Gawk does not use Gnulib, and does not define _GL_ATTRIBUTE_MALLOC.
6552         * lib/dfa.h (_GL_ATTRIBUTE_MALLOC): Define to empty
6553         if not already defined.
6555         dfa: remove one dependency on MB_CUR_MAX
6556         * lib/dfa.c (dfamust): No need to refer to MB_CUR_MAX here.
6558         dfa: remove struct lexer_state.cur_mb_len
6559         * lib/dfa.c (struct lexer_state): Remove cur_mb_len member,
6560         as it’s not needed and the code is simpler without it.
6561         All uses removed.
6563 2019-12-16  Bruno Haible  <bruno@clisp.org>
6565         setlocale-null: Remove need for -lpthread on musl libc, *BSD, Haiku.
6566         Reported by Arnold Robbins <arnold@skeeve.com>.
6567         * lib/setlocale_null.c (c11_threads_in_use, pthread_in_use): New macros,
6568         copied from lib/glthread/lock.h.
6569         (pthread_mutex_lock, pthread_mutex_unlock): Mark as weak.
6570         (setlocale_null_with_lock): If pthread_in_use() is false, use
6571         setlocale_null_unlocked directly.
6572         * m4/threadlib.m4 (gl_WEAK_SYMBOLS): New macro, extracted from
6573         gl_THREADLIB_BODY. Define HAVE_WEAK_SYMBOLS.
6574         (gl_THREADLIB_BODY): Invoke gl_WEAK_SYMBOLS.
6575         * m4/setlocale_null.m4 (gl_FUNC_SETLOCALE_NULL): Invoke gl_WEAK_SYMBOLS.
6576         Set LIB_SETLOCALE_NULL to empty if weak symbols are supported.
6577         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Add comment.
6579 2019-12-16  Paul Eggert  <eggert@cs.ucla.edu>
6581         dfa: make dfasyntax thread-safe
6582         Problem reported by Bruno Haible in:
6583         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00099.html
6584         * lib/dfa.c: Do not include locale.h.
6585         (struct dfa): Remove simple_locale member.
6586         All uses replaced by localeinfo.simple.
6587         (using_simple_locale): Remove; now present (with some
6588         changes) in localeinfo.c.
6589         (dfasyntax): No need to initialize removed member.
6591         localeinfo: record whether locale is simple
6592         * lib/localeinfo.c (using_simple_locale): New function,
6593         copied here from lib/dfa.c but with a change: it uses
6594         strcoll for its heuristic, instead of using setlocale.
6595         This lets it be thread-safe.
6596         * lib/localeinfo.h (struct localeinfo): New member ‘simple’.
6598 2019-12-15  Bruno Haible  <bruno@clisp.org>
6600         duplocale: Fix multithread-safety bug on AIX.
6601         * lib/duplocale.c: Don't include <stdlib.h>.
6602         (rpl_duplocale): Invoke setlocale_null instead of setlocale.
6603         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Require gl_FUNC_SETLOCALE_NULL.
6604         Set LIB_DUPLOCALE.
6605         * modules/duplocale (Depends-on): Add setlocale-null.
6606         (Link): New section.
6607         * modules/duplocale-tests (Makefile.am): Link test-duplocale with
6608         $(LIB_DUPLOCALE).
6610 2019-12-15  Bruno Haible  <bruno@clisp.org>
6612         setlocale-null: Add tests.
6613         * tests/test-setlocale_null.c: New file.
6614         * tests/test-setlocale_null-one.c: New file.
6615         * tests/test-setlocale_null-all.c: New file.
6616         * modules/setlocale-null-tests: New file.
6618         setlocale-null: New module.
6619         * lib/locale.in.h (SETLOCALE_NULL_MAX, SETLOCALE_NULL_ALL_MAX,
6620         setlocale_null): New declarations.
6621         * lib/setlocale_null.c: New file.
6622         * lib/setlocale-lock.c: New file.
6623         * m4/threadlib.m4 (gl_PTHREADLIB_BODY): Define C macro HAVE_PTHREAD_API.
6624         * m4/setlocale_null.m4: New file.
6625         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize
6626         GNULIB_SETLOCALE_NULL.
6627         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE_NULL.
6628         * modules/setlocale-null: New file.
6629         * doc/posix-functions/setlocale.texi: Mention the new module.
6631 2019-12-15  Bruno Haible  <bruno@clisp.org>
6633         lock tests: Skip test when no multithreading is enabled.
6634         * tests/test-rwlock1.c: Skip the test when no multithreading is enabled.
6636 2019-12-14  Bruno Haible  <bruno@clisp.org>
6638         locale, duplocale, localename: Fix last patch.
6639         Reported by Daniel Richard G. in
6640         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00093.html>.
6641         * lib/locale.in.h (HAVE_WORKING_NEWLOCALE, HAVE_WORKING_DUPLOCALE):
6642         Don't define if locale_t does not exist.
6644 2019-12-13  Bruno Haible  <bruno@clisp.org>
6646         locale, duplocale, localename: Fix errors if locale_t does not exist.
6647         Reported by Daniel Richard G. in
6648         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00078.html>.
6649         * lib/locale.in.h (HAVE_WORKING_NEWLOCALE, HAVE_WORKING_DUPLOCALE): New
6650         macros.
6651         * tests/test-locale.c: Test HAVE_WORKING_NEWLOCALE instead of
6652         HAVE_NEWLOCALE.
6653         * tests/test-localename.c: Likewise.
6654         * tests/test-duplocale.c: Test HAVE_WORKING_DUPLOCALE instead of
6655         HAVE_DUPLOCALE.
6656         * tests/test-locale-c++.cc: Likewise.
6658 2019-12-13  Bruno Haible  <bruno@clisp.org>
6660         wcstok: Fix test failure on HP-UX.
6661         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Set REPLACE_WCSTOK to 1 on HP-UX.
6662         * doc/posix-functions/wcstok.texi: Mention the HP-UX bug.
6664 2019-12-12  Bruno Haible  <bruno@clisp.org>
6666         strtod, strtold tests: Avoid test failure on AIX 7.2.
6667         * tests/test-strtod1.c (main): Allow implementations in which ',' and
6668         '.' both are radix characters.
6669         * tests/test-strtold1.c (main): Likewise.
6671 2019-12-12  Paul Eggert  <eggert@cs.ucla.edu>
6673         dfa: prefer ptrdiff_t for API, too
6674         Also, use ‘idx_t’ for ptrdiff_t values that must be nonnegative,
6675         but do this only for internal use for now.
6676         * NEWS: Mention the API change.
6677         * lib/dfa.c (idx_t, IDX_MAX): New type and max value, for internal
6678         use for now.  Use them instead of ptrdiff_t and PTRDIFF_MAX for
6679         values known to be nonnegative.
6680         (dfaparse, dfaexec_mb, dfaexec_sb, dfaexec_noop, dfaexec):
6681         Prefer idx_t or ptrdiff_t to size_t for API.
6682         * lib/dfa.h (dfaparse, dfacomp, dfaexec):
6683         Prefer ptrdiff_t to size_t for API.
6685         stdalign: port to xlclang 16.01
6686         Problem reportd by Bruno Haible in:
6687         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00064.html
6688         * lib/stdalign.in.h (_Alignas): Do not use __attribute__
6689         ((__aligned__ (...))) with xlclang, as a top-level
6690         ‘char __attribute__ ((__aligned__ (8))) c;’ does not work with
6691         xlclang version 16.01.0000.0001; the alignment directive is ignored.
6693 2019-12-12  Bruno Haible  <bruno@clisp.org>
6695         duplocale: Fix test failure on AIX 7.2 with xlclang.
6696         * lib/duplocale.c: Include <stdlib.h>.
6697         (rpl_duplocale): Use a heap-allocated copy of the first setlocale return
6698         value.
6700 2019-12-12  Bruno Haible  <bruno@clisp.org>
6702         stddef: Document the AIX xlc issue.
6703         * doc/posix-headers/stddef.texi: Document the NULL issue with AIX xlc.
6705 2019-12-12  Bruno Haible  <bruno@clisp.org>
6707         duplocale: Don't attempt to override if locale_t does not exist.
6708         Reported by Daniel Richard G. in
6709         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00039.html>.
6710         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): If locale_t does not exist, set
6711         HAVE_DUPLOCALE to 0.
6713 2019-12-12  Bruno Haible  <bruno@clisp.org>
6715         wcwidth: Avoid test failure on AIX 7.2.
6716         * tests/test-wcwidth.c (main): Don't fail if wcwidth(0x200B) is
6717         negative.
6718         * doc/posix-functions/wcwidth.texi: Mention the AIX issue.
6720 2019-12-12  Bruno Haible  <bruno@clisp.org>
6722         ilogbl: Work around Cygwin bug.
6723         * m4/ilogbl.m4 (gl_FUNC_ILOGBL_WORKS): Test whether ilogbl(0.0L) is
6724         correct.
6725         * doc/posix-functions/ilogbl.texi: Mention the Cygwin bug.
6727 2019-12-12  Bruno Haible  <bruno@clisp.org>
6729         strtold: Work around Cygwin bug.
6730         * m4/strtold.m4 (gl_FUNC_STRTOLD): Add test for the underflow problem.
6731         If it is present, define STRTOLD_HAS_UNDERFLOW_BUG.
6732         * lib/strtod.c (HAVE_UNDERLYING_STRTOD): Set to 0 if
6733         STRTOLD_HAS_UNDERFLOW_BUG is defined.
6734         * doc/posix-functions/strtold.texi: Mention the Cygwin bug.
6736 2019-12-12  Bruno Haible  <bruno@clisp.org>
6738         strtold: Fix autoconf test.
6739         * m4/strtold.m4 (gl_FUNC_STRTOLD): Test strtold, not strtod.
6741 2019-12-11  Bruno Haible  <bruno@clisp.org>
6743         fsync tests: Skip test that is known to fail.
6744         * doc/posix-functions/fsync.texi: Update list of platforms.
6745         * tests/test-fsync.c (main): Skip test with read-only file descriptors
6746         that is known to fail on AIX and Cygwin.
6748 2019-12-11  Bruno Haible  <bruno@clisp.org>
6750         getaddrinfo: Fix calling convention in 32-bit mode on native Windows.
6751         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Test whether getaddrinfo has a
6752         non-POSIX signature. If so, set REPLACE_GETADDRINFO. Define
6753         HAVE_GETADDRINFO as a C macro.
6754         * lib/netdb.in.h (getaddrinfo, freeaddrinfo): If REPLACE_GETADDRINFO,
6755         declare as replacement functions.
6756         * lib/getaddrinfo.c (getaddrinfo, freeaddrinfo): If HAVE_GETADDRINFO,
6757         define as no-op overrides.
6758         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize REPLACE_GETADDRINFO.
6759         * modules/netdb (Makefile.am): Substitute REPLACE_GETADDRINFO.
6760         * modules/getaddrinfo (Depends-on, configure.ac): Test
6761         REPLACE_GETADDRINFO.
6762         * doc/posix-functions/getaddrinfo.texi: Mention calling convention
6763         problem.
6764         * doc/posix-functions/freeaddrinfo.texi: Mention header file and calling
6765         convention problems.
6767 2019-12-11  Paul Eggert  <eggert@cs.ucla.edu>
6769         dfa: prefer signed integers for internals
6770         Signed integers can be checked more easily for integer overflow.
6771         * lib/dfa.c (position, struct lexer_state, struct parser_state)
6772         (struct dfa, mbs_to_wchar, fetch_wc, parse_bracket_exp)
6773         (struct lexptr, lex, addtok_mb, add_utf8_anychar, atom)
6774         (nsubtoks, copytoks, closure, alloc_position_set, delete)
6775         (replace, state_index, epsclosure, charclass_context)
6776         (state_separate_contexts, merge_nfa_state, dfaoptimize)
6777         (dfaanalyze, build_state, dfaexec_main, dfa_supported)
6778         (maybe_disable_superset_dfa, dfassbuild, dfafree, enlist)
6779         (comsubs, inboth, allocmust):
6780         Prefer a signed to an unsigned integer when calculating indexes,
6781         unless the integer is part of the external API (a bigger deal,
6782         and to be done later).
6784         dfa: fix index overflow
6785         * lib/dfa.c (compare): Avoid integer overflow when analyzing
6786         very large regular expressions.
6788         dfa: update commentary for previous change
6789         * NEWS: Mention the change.
6790         * lib/dfa.c, lib/dfa.h (dfaparse, dfamust, dfacomp): Update comments.
6792 2019-12-11  Norihiro Tanaka  <noritnk@kcn.ne.jp>
6794         dfa: separate parse and compile phase
6795         ‘dfamust’ must be called after parsing and before tokens are
6796         reordered, but both are executed in the compilation phase.
6797         Token reordering was introduced in Gnulib commit
6798         2018-10-22T15:01:08Z!noritnk@kcn.ne.jp
6799         (5c7a0371823876cca7a1347fa09ca26bbbff0c98).
6800         * lib/dfa.c (dfaparse): Change it to global function.
6801         (dfacomp): If first argument is NULL, skip parse.
6802         * lib/dfa.h: (dfaparse): Add a prototype.
6804 2019-12-11  Bruno Haible  <bruno@clisp.org>
6806         unistd tests: Fix link error on MSVC.
6807         * modules/unistd-c++-tests (Makefile.am): Link test-unistd-c++ against
6808         $(LIB_GETLOGIN).
6810 2019-12-11  Bruno Haible  <bruno@clisp.org>
6812         doc: Document that ISO C or POSIX substitutes are supported in C++ mode.
6813         * doc/gnulib-intro.texi (Various Kinds of Modules): Document that ISO C
6814         and POSIX substitutes are supported in C++ mode.
6815         * NEWS: Likewise.
6817 2019-12-11  Bruno Haible  <bruno@clisp.org>
6819         stddef: Fix compilation error in C++ mode on MSVC.
6820         * lib/stddef.in.h (max_align_t): With MSVC in C++ mode, don't define it;
6821         instead, include <cstddef>.
6823 2019-12-11  Bruno Haible  <bruno@clisp.org>
6825         unistd: Fix compilation error in C++ mode on MSVC.
6826         * lib/unistd.in.h: Don't do include[_next] <unistd.h> if the platform
6827         does not have <unistd.h>.
6829 2019-12-11  Bruno Haible  <bruno@clisp.org>
6831         locale: Fix compilation error in C++ mode on MSVC.
6832         * m4/locale_h.m4 (gl_LOCALE_H): Don't set REPLACE_STRUCT_LCONV on MSVC.
6833         * lib/locale.in.h (int_p_cs_precedes, int_p_sign_posn,
6834         int_p_sep_by_space, int_n_cs_precedes, int_n_sign_posn,
6835         int_n_sep_by_space): Define as macros on MSVC.
6837 2019-12-11  Bruno Haible  <bruno@clisp.org>
6839         wchar: Fix compilation error in C++ mode on MSVC.
6840         * lib/wchar.in.h (mbstate_t): Don't override on MSVC.
6842 2019-12-11  Bruno Haible  <bruno@clisp.org>
6844         pthread-thread: Fix compilation error in C++ mode on MSVC.
6845         * lib/pthread.in.h (pthread_exit): Don't use _Noreturn in the
6846         _GL_CXXALIAS_RPL invocation.
6848 2019-12-08  Bruno Haible  <bruno@clisp.org>
6850         Fix compilation errors in C++ mode on Haiku.
6851         * lib/stdio.in.h (vdprintf): Disable _GL_CXXALIASWARN invocation on
6852         non-glibc systems.
6853         * lib/spawn.in.h (posix_spawnattr_getschedpolicy,
6854         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
6855         posix_spawnattr_setschedparam): Likewise.
6856         * lib/stdlib.in.h (random, initstate_r, setstate_r): Use
6857         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
6858         * lib/unistd.in.h (usleep): Likewise.
6860 2019-12-08  Bruno Haible  <bruno@clisp.org>
6862         Fix compilation errors in 32-bit C++ mode on HP-UX 11/ia64.
6863         * m4/largefile.m4 (gl_SET_LARGEFILE_SOURCE): New macro.
6864         * modules/fseeko (configure.ac-early): Require it instead of
6865         AC_FUNC_FSEEKO.
6866         * modules/ftello (configure.ac-early): Likewise.
6867         * modules/fflush (configure.ac-early): Likewise.
6869 2019-12-08  Bruno Haible  <bruno@clisp.org>
6871         Fix compilation error in C++ mode on HP-UX 11.
6872         * lib/unistd.in.h (getpagesize): Declare on HP-UX.
6873         * doc/glibc-functions/getpagesize.texi: Mention the HP-UX problem.
6875 2019-12-08  Bruno Haible  <bruno@clisp.org>
6877         Fix compilation errors on HP-UX 11/ia64.
6878         * lib/math.in.h (copysignf, fmaf, fma): Undefine before
6879         _GL_FUNCDECL_SYS.
6881 2019-12-08  Bruno Haible  <bruno@clisp.org>
6883         Fix compilation error in C++ mode on OpenBSD.
6884         * lib/signal.in.h (signal): Declare on OpenBSD.
6886 2019-12-08  Bruno Haible  <bruno@clisp.org>
6888         math tests: Don't fail if isfinite, isinf, isnan, signbit is a macro.
6889         * tests/test-math-c++.cc (isfinite, isinf, isnan, signbit): Use #warning
6890         instead of #error.
6892 2019-12-08  Bruno Haible  <bruno@clisp.org>
6894         Fix compilation errors in C++ mode on FreeBSD.
6895         * lib/pthread.in.h (pthread_exit): Remove _Noreturn from prototype.
6896         * tests/test-pthread-c++.cc (GNULIB_NAMESPACE::pthread_exit): Likewise.
6897         * lib/threads.in.h (thrd_exit): Likewise.
6898         * tests/test-threads-c++.cc (GNULIB_NAMESPACE::thrd_exit): Likewise.
6900 2019-12-08  Bruno Haible  <bruno@clisp.org>
6902         Fix compilation errors in C++ mode on macOS and FreeBSD.
6903         * lib/math.in.h (isfinite, isinf, isnan, signbit): In C++ mode on macOS
6904         or FreeBSD with clang, use the approach without C preprocessor macro.
6906 2019-12-07  Bruno Haible  <bruno@clisp.org>
6908         Fix compilation errors in C++ mode on AIX with xlclang++.
6909         Reported by Christian Biesinger <cbiesinger@google.com> in
6910         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00009.html>.
6911         * lib/wchar.in.h (mbstate_t): Don't override on AIX.
6913 2019-12-07  Bruno Haible  <bruno@clisp.org>
6915         Document compilation error in C++ mode on NetBSD 8.0.
6916         * doc/posix-headers/monetary.texi: Mention the NetBSD bug.
6918 2019-12-07  Bruno Haible  <bruno@clisp.org>
6920         Fix compilation errors in C++ mode on Solaris 10.
6921         * m4/stdbool.m4 (AM_STDBOOL_H): Require AC_CANONICAL_HOST. Set STDBOOL_H
6922         to non-empty on Solaris with a non-GCC compiler.
6923         * doc/posix-headers/stdbool.texi: Mention the Solaris issue.
6925 2019-12-07  Bruno Haible  <bruno@clisp.org>
6927         Reword NEWS entry.
6928         * NEWS: Reword the latest NEWS entry.
6930 2019-12-05  Pino Toscano  <ptoscano@redhat.com>
6932         Move xstrtol_fatal to a new xstrtol-error module.
6933         * lib/xstrtol.h: Stop including <getopt.h>.
6934         (xstrtol_fatal): Move ...
6935         * lib/xstrtol-error.h: ... here.  New file.
6936         * lib/xstrtol-error.c: Include xstrtol-error.h instead of xstrtol.h.
6937         * tests/test-xstrtol.c: Likewise.
6938         * modules/xstrtol (Files): Remove lib/xstrtol-error.c.
6939         (Depends-on): Remove exitfail, error, getopt-gnu, and gettext-h.
6940         (Makefile.am): Remove xstrtol-error.c from lib_SOURCES.
6941         * modules/xstrtol-error: New file.
6942         * modules/xstrtol-tests (Depends-on): Add xstrtol-error.
6943         * MODULES.html.sh: Add xstrtol-error.
6944         * NEWS: Document the change.
6946 2019-12-06  Paul Eggert  <eggert@cs.ucla.edu>
6948         nstrftime: better width support for %N, %z
6949         * lib/nstrftime.c (width_add, width_add1, width_cpy):
6950         New macros, which generalize ‘add’, ‘add1’, ‘cpy’ by adding
6951         a new WIDTH parameter.
6952         (add, add1, cpy): Use these macros.
6953         (width_add): Do not treat digits == 0 as a special case,
6954         do not pad if padding is ‘-’, and do not use a negative width.
6955         (__strftime_internal): Redo formatting of nanoseconds and numeric
6956         timezones to avoid buffer misuse in unusual cases, and so that
6957         widths make more sense.  Add support for widths greater than 9 to
6958         the %N format; they are zero filled on the right.
6959         * tests/test-nstrftime.c (posixtm_test): Add a %12N test.
6961 2019-12-05  Bruno Haible  <bruno@clisp.org>
6963         Fix compilation errors in C++ mode on Solaris 10 and Solaris 11.
6964         * m4/isfinite.m4 (gl_ISFINITE): Require AC_CANONICAL_HOST. On Solaris,
6965         set REPLACE_ISFINITE to 1.
6966         * m4/isinf.m4 (gl_ISINF): Require AC_CANONICAL_HOST. On Solaris, set
6967         REPLACE_ISINF to 1.
6968         * m4/signbit.m4 (gl_SIGNBIT): On Solaris, set REPLACE_SIGNBIT to 1.
6969         * lib/pthread.in.h (pthread_create, pthread_once, pthread_key_create):
6970         Use _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
6971         * lib/threads.in.h (call_once): Likewise.
6972         * lib/iconv.in.h (iconv): Likewise.
6974 2019-12-05  Bruno Haible  <bruno@clisp.org>
6976         wchar: Add more C++ tests.
6977         Reported by Christian Biesinger <cbiesinger@google.com> in
6978         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00009.html>.
6979         * tests/test-wchar-c++3.cc: New file.
6980         * modules/wchar-c++-tests (Files): Add it.
6981         (Makefile.am): Compile it.
6983 2019-12-05  Bruno Haible  <bruno@clisp.org>
6985         Add more C++ tests.
6987         assert-h: Add C++ tests.
6988         * tests/test-assert-h-c++.cc: New file.
6989         * tests/test-assert-h-c++2.cc: New file.
6990         * modules/assert-h-c++-tests: New file.
6991         * modules/assert-h-tests: New file.
6993         ctype: Add C++ tests.
6994         * tests/test-ctype-c++.cc: New file.
6995         * tests/test-ctype-c++2.cc: New file.
6996         * modules/ctype-c++-tests: New file.
6997         * modules/ctype-tests (Depends-on): Add ctype-c++-tests.
6999         errno: Add C++ tests.
7000         * tests/test-errno-c++.cc: New file.
7001         * tests/test-errno-c++2.cc: New file.
7002         * modules/errno-c++-tests: New file.
7003         * modules/errno-tests (Depends-on): Add errno-c++-tests.
7005         float: Add C++ tests.
7006         * tests/test-float-c++.cc: New file.
7007         * tests/test-float-c++2.cc: New file.
7008         * modules/float-c++-tests: New file.
7009         * modules/float-tests (Depends-on): Add float-c++-tests.
7011         inttypes: Add more C++ tests.
7012         * tests/test-inttypes-c++2.cc: New file.
7013         * modules/inttypes-c++-tests (Files): Add it.
7014         (Makefile.am): Compile it.
7016         limits-h: Add C++ tests.
7017         * tests/test-limits-h-c++.cc: New file.
7018         * tests/test-limits-h-c++2.cc: New file.
7019         * modules/limits-h-c++-tests: New file.
7020         * modules/limits-h-tests (Depends-on): Add limits-h-c++-tests.
7022         stdarg: Add C++ tests.
7023         * tests/test-stdarg-c++.cc: New file.
7024         * tests/test-stdarg-c++2.cc: New file.
7025         * modules/stdarg-c++-tests: New file.
7026         * modules/stdarg-tests: New file.
7028         stdbool: Add C++ tests.
7029         * tests/test-stdbool-c++.cc: New file.
7030         * tests/test-stdbool-c++2.cc: New file.
7031         * modules/stdbool-c++-tests: New file.
7032         * modules/stdbool-tests (Depends-on): Add stdbool-c++-tests.
7034         stddef: Add C++ tests.
7035         * tests/test-stddef-c++.cc: New file.
7036         * tests/test-stddef-c++2.cc: New file.
7037         * modules/stddef-c++-tests: New file.
7038         * modules/stddef-tests (Depends-on): Add stddef-c++-tests.
7040         stdint: Add C++ tests.
7041         * tests/test-stdint-c++.cc: New file.
7042         * tests/test-stdint-c++2.cc: New file.
7043         * modules/stdint-c++-tests: New file.
7044         * modules/stdint-tests (Depends-on): Add stdint-c++-tests.
7046         wchar: Add more C++ tests.
7047         * tests/test-wchar-c++2.cc: New file.
7048         * modules/wchar-c++-tests (Files): Add it.
7049         (Makefile.am): Compile it.
7051         wctype-h: Add more C++ tests.
7052         * tests/test-wctype-h-c++2.cc: New file.
7053         * modules/wctype-h-c++-tests (Files): Add it.
7054         (Makefile.am): Compile it.
7056 2019-12-04  Bruno Haible  <bruno@clisp.org>
7058         Fix compilation errors in C++ mode with xlclang++ on AIX.
7059         * lib/math.in.h (expm1l, fmal, remainderl, roundl): Don't redeclare in
7060         C++ mode on AIX.
7061         (isfinite, signbit): In C++ mode on AIX with clang, use the approach
7062         without C preprocessor macro.
7063         * lib/pthread.in.h (pthread_exit): Use _GL_CXXALIAS_SYS_CAST instead of
7064         _GL_CXXALIAS_SYS.
7065         * lib/threads.in.h (thrd_exit): Likewise.
7067 2019-12-04  Bruno Haible  <bruno@clisp.org>
7069         Fix compilation error in C++ mode on Solaris 11 OpenIndiana.
7070         * lib/wchar.in.h (wcsnrtombs): Force declaration in C++ mode on Solaris.
7071         * doc/posix-functions/wcsnrtombs.texi: Mention the issue.
7073 2019-12-04  Bruno Haible  <bruno@clisp.org>
7075         Disable more _GL_CXXALIASWARN on all platforms other than glibc systems.
7076         * lib/wchar.in.h (wcsnrtombs, wcwidth, wcswidth): Disable
7077         _GL_CXXALIASWARN invocation on non-glibc systems.
7078         * lib/wctype.in.h (iswalnum, iswalpha, iswcntrl, iswdigit, iswgraph,
7079         iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit, wctype,
7080         iswctype, towlower, towupper): Likewise.
7082 2019-12-03  Bruno Haible  <bruno@clisp.org>
7084         Avoid hassles caused by [[noreturn]] in C++.
7085         Reported by Christian Biesinger <cbiesinger@google.com> in
7086         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00010.html>.
7087         * m4/gnulib-common.m4 (gl_COMMON_BODY): Disable the use of [[noreturn]].
7088         * lib/_Noreturn.h: Likewise.
7090 2019-12-02  Bruno Haible  <bruno@clisp.org>
7092         Fix mistakes in --enable-threads=isoc fixes from 2019-12-01.
7093         * m4/pthread-mutex.m4 (gl_PTHREAD_MUTEX): Use LIBPMULTITHREAD, not
7094         LIBMULTITHREAD.
7095         * m4/pthread-rwlock.m4 (gl_PTHREAD_RWLOCK): Likewise.
7096         * m4/pthread-thread.m4 (gl_PTHREAD_THREAD): Likewise.
7097         * m4/timer_time.m4 (gl_TIMER_TIME): Likewise. Require gl_PTHREADLIB, not
7098         gl_THREADLIB.
7099         * modules/timer-time (Depends-on): Add pthread-h. Remove threadlib.
7101 2019-12-02  Bruno Haible  <bruno@clisp.org>
7103         Fix some more link errors with --enable-threads=isoc.
7104         * modules/pthread-mutex (Depends-on): Test $gl_threads_api differently.
7105         * modules/pthread-rwlock (Depends-on): Likewise.
7107 2019-12-02  Bruno Haible  <bruno@clisp.org>
7109         Fix link errors with --enable-threads=posix on AIX.
7110         * modules/string-c++-tests (Makefile.am): Link the test-string-c++
7111         program with $(LIBTHREAD).
7112         * modules/wchar-c++-tests (Makefile.am): Link the test-wchar-c++
7113         program with $(LIBTHREAD).
7115 2019-12-02  Bruno Haible  <bruno@clisp.org>
7117         Fix link errors with --enable-threads=posix on AIX.
7118         * modules/mbrtowc (Link): New section.
7119         * modules/acl (Link): Likewise.
7120         * modules/argmatch (Link): Likewise.
7121         * modules/backup-rename (Link): Likewise.
7122         * modules/backupfile (Link): Likewise.
7123         * modules/closein (Link): Likewise.
7124         * modules/closeout (Link): Likewise.
7125         * modules/copy-file (Link): Likewise.
7126         * modules/csharpcomp (Link): Likewise.
7127         * modules/csharpexec (Link): Likewise.
7128         * modules/dfa (Link): Likewise.
7129         * modules/exclude (Link): Likewise.
7130         * modules/fnmatch (Link): Likewise.
7131         * modules/fnmatch-gnu (Link): Likewise.
7132         * modules/fnmatch-posix (Link): Likewise.
7133         * modules/glob (Link): Likewise.
7134         * modules/human (Link): Likewise.
7135         * modules/javacomp (Link): Likewise.
7136         * modules/javaexec (Link): Likewise.
7137         * modules/javaversion (Link): Likewise.
7138         * modules/mbfile (Link): Likewise.
7139         * modules/mbiter (Link): Likewise.
7140         * modules/mbmemcasecmp (Link): Likewise.
7141         * modules/mbmemcasecoll (Link): Likewise.
7142         * modules/mbrlen (Link): Likewise.
7143         * modules/mbscasecmp (Link): Likewise.
7144         * modules/mbscasestr (Link): Likewise.
7145         * modules/mbschr (Link): Likewise.
7146         * modules/mbscspn (Link): Likewise.
7147         * modules/mbsinit (Link): Likewise.
7148         * modules/mbslen (Link): Likewise.
7149         * modules/mbsncasecmp (Link): Likewise.
7150         * modules/mbsnlen (Link): Likewise.
7151         * modules/mbsnrtowcs (Link): Likewise.
7152         * modules/mbspbrk (Link): Likewise.
7153         * modules/mbspcasecmp (Link): Likewise.
7154         * modules/mbsrchr (Link): Likewise.
7155         * modules/mbsrtowcs (Link): Likewise.
7156         * modules/mbssep (Link): Likewise.
7157         * modules/mbsspn (Link): Likewise.
7158         * modules/mbsstr (Link): Likewise.
7159         * modules/mbstok_r (Link): Likewise.
7160         * modules/mbswidth (Link): Likewise.
7161         * modules/mbuiter (Link): Likewise.
7162         * modules/mkdir-p (Link): Likewise.
7163         * modules/propername (Link): Likewise.
7164         * modules/quote (Link): Likewise.
7165         * modules/quotearg (Link): Likewise.
7166         * modules/quotearg-simple (Link): Likewise.
7167         * modules/regex-quote (Link): Likewise.
7168         * modules/rpmatch (Link): Likewise.
7169         * modules/sh-quote (Link): Likewise.
7170         * modules/system-quote (Link): Likewise.
7171         * modules/trim (Link): Likewise.
7172         * modules/unistdio/ulc-asnprintf (Link): Likewise.
7173         * modules/unistdio/ulc-fprintf (Link): Likewise.
7174         * modules/unistdio/ulc-vasnprintf (Link): Likewise.
7175         * modules/unistdio/ulc-vasprintf (Link): Likewise.
7176         * modules/unistdio/ulc-vfprintf (Link): Likewise.
7177         * modules/unistdio/ulc-vsnprintf (Link): Likewise.
7178         * modules/unistdio/ulc-vsprintf (Link): Likewise.
7179         * modules/xfreopen (Link): Likewise.
7180         * modules/xmemcoll (Link): Likewise.
7181         * modules/yesno (Link): Likewise.
7182         * modules/acl-tests (Makefile.am): Link the programs with $(LIBTHREAD).
7183         * modules/argmatch-tests (Makefile.am): Likewise.
7184         * modules/closein-tests (Makefile.am): Likewise.
7185         * modules/copy-file-tests (Makefile.am): Likewise.
7186         * modules/dfa-tests (Makefile.am): Likewise.
7187         * modules/fnmatch-tests (Makefile.am): Likewise.
7188         * modules/glob-tests (Makefile.am): Likewise.
7189         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
7190         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
7191         * modules/mbrtowc-tests (Makefile.am): Likewise.
7192         * modules/mbscasecmp-tests (Makefile.am): Likewise.
7193         * modules/mbscasestr-tests (Makefile.am): Likewise.
7194         * modules/mbschr-tests (Makefile.am): Likewise.
7195         * modules/mbscspn-tests (Makefile.am): Likewise.
7196         * modules/mbsinit-tests (Makefile.am): Likewise.
7197         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
7198         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
7199         * modules/mbspbrk-tests (Makefile.am): Likewise.
7200         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
7201         * modules/mbsrchr-tests (Makefile.am): Likewise.
7202         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
7203         * modules/mbsspn-tests (Makefile.am): Likewise.
7204         * modules/mbsstr-tests (Makefile.am): Likewise.
7205         * modules/quotearg-tests (Makefile.am): Likewise.
7206         * modules/quotearg-simple-tests (Makefile.am): Likewise.
7207         * modules/readtokens-tests (Makefile.am): Likewise.
7208         * modules/regex-quote-tests (Makefile.am): Likewise.
7209         * modules/sh-quote-tests (Makefile.am): Likewise.
7210         * modules/system-quote-tests (Makefile.am): Likewise.
7211         * modules/unistdio/ulc-asnprintf-tests (Makefile.am): Likewise.
7212         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
7213         * modules/unistdio/ulc-vasprintf-tests (Makefile.am): Likewise.
7214         * modules/unistdio/ulc-vsnprintf-tests (Makefile.am): Likewise.
7215         * modules/unistdio/ulc-vsprintf-tests (Makefile.am): Likewise.
7216         * modules/yesno-tests (Makefile.am): Likewise.
7218 2019-12-02  Bruno Haible  <bruno@clisp.org>
7220         Simplify link sections.
7221         * modules/threadlib (Link): Stop mentioning LTLIBTHREAD.
7222         * modules/lock (Link): Likewise.
7223         * modules/cond (Link): Likewise.
7224         * modules/tls (Link): Likewise.
7225         * modules/yield (Link): Likewise.
7226         * modules/regex (Link): Likewise.
7227         * modules/localename (Link): Likewise.
7228         * modules/unicase/locale-language (Link): Likewise.
7229         * modules/thread (Link): Stop mentioning LTLIBMULTITHREAD.
7231 2019-12-02  Bruno Haible  <bruno@clisp.org>
7233         thread tests: Avoid link error with --enable-threads=isoc+posix on AIX.
7234         * tests/test-thread_self.c (main): Disable test on AIX.
7236 2019-12-01  Bruno Haible  <bruno@clisp.org>
7238         pthread-h: Fix link errors with --enable-threads=isoc on AIX.
7239         * m4/threadlib.m4 (gl_ANYTHREADLIB_EARLY): New macro, extracted from
7240         gl_THREADLIB_EARLY_BODY.
7241         (gl_THREADLIB_EARLY_BODY): Invoke it.
7242         (gl_PTHREADLIB_BODY): New macro, extracted from gl_THREADLIB_BODY.
7243         (gl_THREADLIB_BODY): Invoke it.
7244         (gl_PTHREADLIB): New macro.
7245         * m4/pthread_h.m4 (gl_PTHREAD_H): Require gl_PTHREADLIB. Require
7246         gl_THREADLIB and test $gl_threads_api only if module 'threadlib' is
7247         present. Define LIB_PTHREAD using LIBPMULTITHREAD, not LIBMULTITHREAD.
7248         * modules/pthread-h (Files): Add threadlib.m4.
7249         (Depends-on): Remove threadlib.
7250         (configure.ac-early): Invoke gl_ANYTHREADLIB_EARLY. Don't set _REENTRANT
7251         and _THREAD_SAFE here.
7252         (Link): Use LIBPTHREAD, not LIBTHREAD.
7253         * modules/pthread-thread (Link): Use LIBPMULTITHREAD, not
7254         LIBMULTITHREAD.
7255         * modules/pthread-once (Link): Likewise.
7256         * modules/pthread-mutex (Link): Likewise.
7257         * modules/pthread-rwlock (Link): Likewise.
7258         * modules/pthread-cond (Link): Likewise.
7259         * modules/pthread-tss (Link): Likewise.
7260         * modules/pthread-spin (Link): Likewise.
7261         * modules/pthread (Link): Likewise.
7262         * modules/pthread-h-c++-tests (test_pthread_c___LDADD): Likewise.
7263         * modules/pthread-thread-tests (test_pthread_thread_LDADD): Likewise.
7264         * modules/pthread-once-tests (test_pthread_once1_LDADD,
7265         test_pthread_once2_LDADD): Likewise.
7266         * modules/pthread-mutex-tests (test_pthread_mutex_LDADD): Likewise.
7267         * modules/pthread-rwlock-tests (test_pthread_rwlock_LDADD): Likewise.
7268         * modules/pthread-cond-tests (test_pthread_cond_LDADD): Likewise.
7269         * modules/pthread-tss-tests (test_pthread_tss_LDADD): Likewise.
7271 2019-12-01  Bruno Haible  <bruno@clisp.org>
7273         cond: State linking requirements.
7274         * modules/cond (Link): New section.
7276 2019-12-01  Bruno Haible  <bruno@clisp.org>
7278         threadlib: Remove unnecessary file (left over from 2019-07-06).
7279         * modules/threadlib (Files): Remove config.rpath.
7281 2019-11-29  Tim Rühsen  <tim.ruehsen@gmx.de>
7283         gnulib-tool.py: Fix libgnu_la_LDFLAGS section in generated Makefile.am.
7284         Reported by Dagobert Michelsen <dam@opencsw.org> in
7285         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00086.html>.
7286         * pygnulib/GLModuleSystem.py (getLink): Don't join the parts. Return a
7287         list of strings instead of one string.
7288         * pygnulib/GLEmiter.py (lib_Makefile_am): Adapt accordingly.
7289         * pygnulib/GLImport.py (execute): Likewise.
7291 2019-11-27  Bruno Haible  <bruno@clisp.org>
7293         openpty, forkpty: Fix build error on Solaris 11.4.
7294         * m4/pty_h.m4 (gl_PTY_H): Test for termios.h. Look for the declarations
7295         also in <termios.h>.
7296         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Look for the declaration
7297         of the function also in <termios.h>.
7298         * doc/glibc-functions/openpty.texi: Mention the Solaris 11.4 problems.
7299         * doc/glibc-functions/forkpty.texi: Likewise.
7301 2019-11-27  Bruno Haible  <bruno@clisp.org>
7303         New options --enable-threads=isoc and --enable-threads=isoc+posix.
7304         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Accept the options
7305         --enable-threads=isoc and --enable-threads=isoc+posix.
7306         (gl_THREADLIB_BODY): Test whether the ISO C threads API is available.
7307         When both the ISO C and the POSIX threads API are available, choose
7308         USE_ISOC_AND_POSIX_THREADS instead of USE_POSIX_THREADS if
7309         --enable-threads=isoc+posix was specified. When only the ISO C threads
7310         API is available and --enable-threads=iso was specified, choose
7311         USE_ISOC_THREADS.
7312         * lib/glthread/lock.h: Add new code for USE_ISOC_THREADS ||
7313         USE_ISOC_AND_POSIX_THREADS.
7314         * lib/glthread/lock.c: Likewise.
7315         * lib/glthread/cond.h: Likewise.
7316         * lib/glthread/cond.c: Likewise.
7317         * lib/glthread/tls.h: Likewise.
7318         * lib/glthread/tls.c: Likewise.
7319         * lib/glthread/yield.h: Likewise.
7320         * lib/glthread/thread.h: Add new code for USE_ISOC_THREADS. Treat
7321         USE_ISOC_AND_POSIX_THREADS like USE_POSIX_THREADS.
7322         * lib/glthread/thread.c: Likewise.
7323         * lib/glthread/threadlib.c: Likewise.
7324         * tests/test-lock.c: Save and restore the values of USE_ISOC_THREADS and
7325         USE_ISOC_AND_POSIX_THREADS.
7326         * tests/test-cond.c: Consider USE_ISOC_THREADS and
7327         USE_ISOC_AND_POSIX_THREADS.
7328         * tests/test-tls.c: Likewise.
7329         * tests/test-thread_create.c (main): Likewise.
7330         * tests/test-pthread-cond.c: Likewise.
7331         * tests/test-pthread-mutex.c: Likewise.
7332         * tests/test-pthread-once2.c: Likewise.
7333         * tests/test-pthread-rwlock.c: Likewise.
7334         * tests/test-pthread-tss.c: Likewise.
7335         * tests/test-pthread_sigmask2.c: Treat USE_ISOC_AND_POSIX_THREADS like
7336         USE_POSIX_THREADS.
7338 2019-11-24  Bruno Haible  <bruno@clisp.org>
7340         mbrtowc: Modernize autoconf test.
7341         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Require
7342         gt_LOCALE_FR_UTF8. If a traditional Japanese locale is not available,
7343         try a UTF-8 locale.
7344         * doc/posix-functions/mbrtowc.texi: Update info about AIX.
7346 2019-11-24  Bruno Haible  <bruno@clisp.org>
7348         Fix errors in C++ mode on mingw.
7349         * lib/arpa_inet.in.h (inet_ntop, inet_pton): Use _GL_CXXALIAS_SYS_CAST
7350         instead of _GL_CXXALIAS_SYS.
7351         * lib/signal.in.h (pthread_sigmask): Likewise.
7352         * lib/spawn.in.h (posix_spawn_file_actions_addopen,
7353         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
7354         Likewise.
7355         * lib/wchar.in.h (btowc): Likewise.
7357 2019-11-24  Bruno Haible  <bruno@clisp.org>
7359         sys_time: Fix errors in C++ mode on mingw.
7360         * lib/sys_time.in.h (timeval): Restore the redirection
7361         '#define timeval rpl_timeval', for when the symbol timeval is being used
7362         outside the 'gnulib' namespace.
7363         * lib/sys_select.in.h (select): In C++, write 'timeval', not
7364         'struct timeval'.
7366 2019-11-24  Bruno Haible  <bruno@clisp.org>
7368         iswctype: Fix errors in C++ mode on mingw.
7369         * lib/wctype.in.h (rpl_iswctype): Override if GNULIB_OVERRIDES_WINT_T
7370         is 1.
7371         * lib/iswctype.c (iswctype): Add another implementation, for the
7372         GNULIB_defined_wint_t case.
7373         * modules/iswctype (configure.ac): Compile iswctype.c also if
7374         GNULIB_OVERRIDES_WINT_T is 1.
7376 2019-11-24  Bruno Haible  <bruno@clisp.org>
7378         windows-timedmutex: Fix errors in C++ mode on mingw.
7379         * lib/windows-timedmutex.h: Add closing brace.
7381 2019-11-24  Bruno Haible  <bruno@clisp.org>
7383         Fix errors in C++ mode on Cygwin.
7384         * lib/sys_wait.in.h (waitpid): Use _GL_CXXALIAS_SYS_CAST instead of
7385         _GL_CXXALIAS_SYS.
7387 2019-11-24  Bruno Haible  <bruno@clisp.org>
7389         time_r: Fix for mingw (regression from 2019-11-16).
7390         * m4/time_r.m4 (gl_TIME_R): Revert to using AC_CHECK_FUNCS_ONCE. Use the
7391         AC_LINK_IFELSE test only if the function does not appear to exist.
7393 2019-11-24  Bruno Haible  <bruno@clisp.org>
7395         wcstok: Add tests.
7396         * tests/test-wcstok.c: New file.
7397         * modules/wcstok-tests: New file.
7399 2019-11-24  Bruno Haible  <bruno@clisp.org>
7401         wcstok: Work around wrong signature on native Windows.
7402         * lib/wchar.in.h (wcstok): Override when REPLACE_WCSTOK is 1.
7403         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Check for signature of wcstok. Set
7404         REPLACE_WCSTOK.
7405         * m4/wchar_h.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSTOK.
7406         * modules/wchar (Makefile.am): Substitute REPLACE_WCSTOK.
7407         * modules/wcstok (Depends-on, configure.ac): Consider REPLACE_WCSTOK.
7408         * doc/posix-functions/wcstok.texi: Mention the problem.
7410 2019-11-22  Paul Eggert  <eggert@cs.ucla.edu>
7412         intprops: INT_MULTIPLY_WRAPV speedup for GCC 8.4+
7413         * lib/intprops.h (INT_MULTIPLY_WRAPV): If GCC 8.x where 4 <= x,
7414         remove workaround for GCC bug 91450 as the bug should be fixed
7415         there too.
7417 2019-11-21  Bruno Haible  <bruno@clisp.org>
7419         Disable many _GL_CXXALIASWARN on all platforms other than glibc systems.
7420         Reported by Christian Biesinger <cbiesinger@google.com> in
7421         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00066.html>.
7422         * lib/fnmatch.in.h (fnmatch): Disable _GL_CXXALIASWARN invocation on
7423         non-glibc systems.
7424         * lib/locale.in.h (localeconv, setlocale): Likewise.
7425         * lib/math.in.h (cbrt, ceil, copysign, exp2, expm1, floor, fma, fmod,
7426         frexp, hypot, ilogb, log, log10, log1p, log2, logb, modf, remainder,
7427         rint, round, trunc): Likewise.
7428         * lib/monetary.in.h (strfmon_l): Likewise.
7429         * lib/pthread.in.h (pthread_mutexattr_getrobust,
7430         pthread_mutexattr_setrobust, pthread_mutex_lock, pthread_spin_init,
7431         pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock,
7432         pthread_spin_destroy): Likewise.
7433         * lib/signal.in.h (raise, signal): Likewise.
7434         * lib/stdio.in.h (fclose, fflush, fgetc, fgets, fopen, fprintf, fputc,
7435         fputs, fread, freopen, fscanf, fseek, ftell, fwrite, getc, getchar,
7436         perror, printf, putc, putchar, puts, remove, rename, scanf, sprintf,
7437         tmpfile, vfprintf, vprintf, vsprintf): Likewise.
7438         * lib/stdlib.in.h (calloc, malloc, mbtowc, realloc, strtod, wctomb):
7439         Likewise.
7440         * lib/string.in.h (memchr, strncat, strpbrk, strstr, strerror):
7441         Likewise.
7442         * lib/time.in.h (mktime, localtime, ctime, strftime): Likewise.
7443         * lib/wchar.in.h (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs,
7444         wcrtomb, wcsrtombs, wmemchr, wmemcmp, wmemcpy, wmemmove, wmemset,
7445         wcslen, wcscpy, wcsncpy, wcscat, wcsncat, wcscmp, wcsncmp, wcscoll,
7446         wcsxfrm, wcschr, wcsrchr, wcscspn, wcsspn, wcspbrk, wcsstr, wcstok,
7447         wcsftime): Likewise.
7448         * lib/wctype.in.h (iswblank, wctrans, towctrans): Likewise.
7450 2019-11-21  Bruno Haible  <bruno@clisp.org>
7452         Fix various errors in _GL_CXXALIAS_SYS invocations.
7453         * lib/locale.in.h (freelocale): Use _GL_CXXALIAS_SYS_CAST instead of
7454         _GL_CXXALIAS_SYS.
7455         * lib/pthread.in.h (pthread_mutexattr_gettype,
7456         pthread_mutexattr_getrobust): Likewise.
7457         * lib/stdlib.in.h (srandom, initstate, setstate): Likewise.
7458         * lib/sys_socket.in.h (recv, send): Likewise.
7459         * lib/unistd.in.h (getdtablesize): Likewise.
7460         * lib/sys_select.in.h (select): In C++, write 'timeval' instead of
7461         'struct timeval'.
7463 2019-11-21  Bruno Haible  <bruno@clisp.org>
7465         math tests: Update after 2019-08-28 change.
7466         * tests/test-math-c++.cc (isfinite, isinf, isnan, signbit): Expect a
7467         return type of 'bool', not 'int'.
7469 2019-11-21  Bruno Haible  <bruno@clisp.org>
7471         pthread-spin: Fix errors in C++ mode.
7472         * m4/pthread-spin.m4 (gl_PTHREAD_SPIN): Mark the pthread_spin_*
7473         functions as nonexistent when <pthread.h> exists but does not define
7474         the pthread_spinlock_t type.
7476 2019-11-21  Bruno Haible  <bruno@clisp.org>
7478         pthread-mutex: Fix errors in C++ mode.
7479         * m4/pthread-mutex.m4 (gl_PTHREAD_MUTEX): Test whether
7480         pthread_mutexattr_getrobust exists. If not, define
7481         PTHREAD_MUTEXATTR_ROBUST_UNIMPLEMENTED.
7482         * lib/pthread-mutex.c (pthread_mutexattr_getrobust,
7483         pthread_mutexattr_setrobust): Define also if <pthread.h> exists but
7484         PTHREAD_MUTEXATTR_ROBUST_UNIMPLEMENTED.
7485         * modules/pthread-mutex (configure.ac): Compile pthread-mutex.c also
7486         when <pthread.h> exists but pthread_mutexattr_getrobust needs a gnulib
7487         definition.
7489 2019-11-19  Bruno Haible  <bruno@clisp.org>
7491         threads-h tests: Fix typo.
7492         * tests/test-threads-c++.cc: Fix references to undefined type 'mtx'.
7494 2019-11-19  Bruno Haible  <bruno@clisp.org>
7496         pthread-thread: Fix prototype of pthread_attr_getdetachstate.
7497         * lib/pthread.in.h (pthread_attr_getdetachstate): Change first parameter
7498         to 'const pthread_attr_t *'.
7499         * lib/pthread-thread.c (pthread_attr_getdetachstate): Likewise.
7500         * tests/test-pthread-c++.cc (pthread_attr_getdetachstate): Likewise.
7502 2019-11-19  Paul Eggert  <eggert@cs.ucla.edu>
7504         intprops: speed up INT_MULTIPLY_WRAPV in GCC 9.3
7505         * lib/intprops.h (INT_MULTIPLY_WRAPV): If GCC 9.3 or later, do not
7506         work around GCC bug 91450 as the bug should be fixed there.
7508 2019-11-18  Paul Eggert  <eggert@cs.ucla.edu>
7510         glob: get closer to glibc glob.c
7511         Omit differences from glibc when the differences don’t matter.
7512         * lib/glob.c [_LIBC]: Include shlib-compat.h.
7513         (__glob) [!_LIBC]: New macro.  All uses of glob changed to __glob.
7514         (glob_lstat): New function.
7515         (glob_in_dir): Use it.
7516         (GLOB_ATTRIBUTE): Define to empty if not already defined.
7517         Use changed.
7519 2019-11-18  Bruno Haible  <bruno@clisp.org>
7521         stdint: Define [u]intptr_t correctly on 64-bit native Windows.
7522         * lib/stdint.in.h (gl_intptr_t, gl_uintptr_t, INTPTR_MIN, INTPTR_MAX,
7523         UINTPTR_MAX): Consider _WIN64.
7524         * tests/test-stdint.c: Verify that [u]intptr_t is large enough to hold
7525         a pointer.
7527 2019-11-18  Bruno Haible  <bruno@clisp.org>
7529         stdint: Fix value of WINT_MAX when we override wint_t.
7530         * lib/stdint.in.h (WINT_MIN, WINT_MAX): Don't override a second time
7531         when GNULIB_OVERRIDES_WINT_T is 1.
7533 2019-11-18  Bruno Haible  <bruno@clisp.org>
7535         vcs-to-changelog: New module.
7536         * modules/vcs-to-changelog: New file.
7537         * MODULES.html.sh (func_all_modules): Add it.
7539 2019-11-01  Siddhesh Poyarekar  <siddhesh@gotplt.org>
7541         vcs-to-changelog: New script to generate ChangeLog-like output.
7542         Discussion:
7543         <https://lists.gnu.org/archive/html/bug-gnulib/2019-10/msg00062.html>
7544         * build-aux/vcs_to_changelog.py: New file.
7545         * build-aux/vcstocl/frontend_c.py: New file.
7546         * build-aux/vcstocl/misc_util.py: New file.
7547         * build-aux/vcstocl/vcs_git.py: New file.
7549 2019-11-18  Bruno Haible  <bruno@clisp.org>
7551         stdint: Avoid triggering a "conflicting types" error on mingw 5.22.
7552         Reported by Keith Marshall <keith@users.osdn.me> in
7553         <https://lists.gnu.org/archive/html/bug-gnulib/2019-10/msg00044.html>
7554         and <https://osdn.net/projects/mingw/ticket/39677>.
7555         * lib/stdint.in.h (intptr_t, uintptr_t): Don't define if the types have
7556         already been defined by mingw's <crtdefs.h>.
7558 2019-11-18  Bruno Haible  <bruno@clisp.org>
7560         gnulib-tool: Fix build error on macOS with --conditional-dependencies.
7561         * gnulib-tool (func_modules_add_dummy): Ignore modules that are
7562         conditionally enabled.
7564 2019-11-18  Bruno Haible  <bruno@clisp.org>
7566         gc: Mirror libgcrypt.m4 from libgcrypt.
7567         * config/srclistvars.sh (LIBGCRYPT): New variable.
7568         * config/srclist.txt: Use it to fetch m4/libgcrypt.m4.
7570 2019-11-17  Bruno Haible  <bruno@clisp.org>
7572         locale, localename: Improve z/OS support.
7573         Reported by Daniel Richard G. in
7574         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00001.html>.
7575         * m4/locale_h.m4 (gl_LOCALE_T): New macro, partially extracted from
7576         gl_LOCALE_H.
7577         (gl_LOCALE_H): Require it.
7578         * m4/localename.m4 (gl_LOCALENAME): Likewise. If locale_t is not
7579         defined, don't even check for newlocale, duplocale, freelocale.
7580         * m4/intl-thread-locale.m4 (gt_FUNC_USELOCALE): Make the test fail when
7581         locale_t is not defined.
7583 2019-11-17  Bruno Haible  <bruno@clisp.org>
7585         havelib: Make libdirstems processing more flexible.
7586         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Set 3 libdirstem
7587         variables: Consider 'lib' always, also on Solaris. Look for lib32 in
7588         addition to lib64. Don't invoke /usr/bin/gcc (reverting the second
7589         patch from 2017-02-19).
7590         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Consider up to 3 additional
7591         libdirs, even when the first one exists as a directory.
7593 2019-11-17  Bruno Haible  <bruno@clisp.org>
7595         havelib: Match the bitness when searching for libraries.
7596         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Define a function
7597         acl_is_expected_elfclass.
7598         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): When testing whether a library
7599         file exists, in ELF, also test whether it has the ELF class that
7600         corresponds to the host's bitness.
7602 2019-11-17  Bruno Haible  <bruno@clisp.org>
7604         host-cpu-c-abi: Add support for unknown CPUs.
7605         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI_32BIT): Set
7606         gl_cv_host_cpu_c_abi_32bit to 'unknown' if we don't know whether it's
7607         32-bit or 64-bit.
7609 2019-11-17  Bruno Haible  <bruno@clisp.org>
7611         havelib: Remove redundant code.
7612         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Remove Solaris specific
7613         test for 64-bit host. Use gl_HOST_CPU_C_ABI_32BIT result instead.
7615 2019-11-17  Bruno Haible  <bruno@clisp.org>
7617         havelib: Fix a bug in dependency processing.
7618         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): During dependency processing
7619         of .la files, don't overwrite the value of additional_libdir for the
7620         next rounds.
7622 2019-11-16  Bruno Haible  <bruno@clisp.org>
7624         wctype-h: When overriding wint_t, override also the related functions.
7625         Reported by Christian Biesinger <cbiesinger@google.com> in
7626         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00027.html>.
7627         * m4/wctype_h.m4 (gl_WCTYPE_H): When GNULIB_OVERRIDES_WINT_T is 1, set
7628         REPLACE_ISWCNTRL to 1.
7629         * lib/wctype.in.h (rpl_iswalnum, rpl_iswalpha, rpl_iswblank,
7630         rpl_iswcntrl, rpl_iswdigit, rpl_iswgraph, rpl_iswlower, rpl_iswprint,
7631         rpl_iswpunct, rpl_iswspace, rpl_iswupper, rpl_iswxdigit, rpl_towlower,
7632         rpl_towupper): New definitions when GNULIB_OVERRIDES_WINT_T is 1.
7633         * doc/posix-headers/wchar.texi: Mention that wint_t is also overridden
7634         on mingw.
7635         * doc/posix-headers/wctype.texi: Likewise.
7637 2019-11-16  Bruno Haible  <bruno@clisp.org>
7639         time_r: Fix for mingw.
7640         Reported by Christian Biesinger <cbiesinger@google.com> in
7641         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00014.html>.
7642         * lib/time.in.h: On mingw, include <unistd.h>.
7643         * m4/time_r.m4 (gl_TIME_R): On mingw, include <unistd.h> before
7644         <time.h>. Test for localtime_r in a way that works when it is defined
7645         as an inline function.
7647 2019-11-13  Bruno Haible  <bruno@clisp.org>
7649         havelib: Revert last change.
7650         * build-aux/config.rpath: Revert last change. We can add msys2 support
7651         when it has been added to libtool.m4 upstream.
7653 2019-11-09  Paul Eggert  <eggert@cs.ucla.edu>
7655         config: add msys support
7656         Requested by Arnold Robbins in:
7657         https://lists.gnu.org/r/bug-gnulib/2019-11/msg00008.html
7658         He also requested a change to config.guess, which I’ll forward
7659         upstream.
7660         * build-aux/ar-lib (func_file_conv):
7661         * build-aux/compile (func_file_conv):
7662         * build-aux/config.rpath (wl, with_gnu_ld)
7663         (hardcode_libdir_flag_spec, libext, shrext, library_names_spec):
7664         Treat msys like cygwin.
7666 2019-11-06  Paul Eggert  <eggert@cs.ucla.edu>
7668         regex: now back in sync with glibc
7669         * config/srclist.txt: regcomp.c, regex_internal.c, regex_internal.h,
7670         regexec.c got merged into glibc and are now copies again.
7672 2019-10-27  Bruno Haible  <bruno@clisp.org>
7674         host-cpu-c-abi: Recognize i386 and a couple of other CPUs as 32-bit.
7675         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Include i386 in the case
7676         statement.
7677         (gl_HOST_CPU_C_ABI_32BIT): Likewise. Also recognize a couple of other
7678         32-bit CPUs.
7680 2019-10-24  Paul Eggert  <eggert@cs.ucla.edu>
7682         timespec-add, timespec-sub: simplify
7683         * lib/timespec-add.c (timespec_add):
7684         * lib/timespec-sub.c (timespec_sub):
7685         Simplify, now that INT_ADD_WRAPV and INT_SUBTRACT_WRAPV
7686         work on unsigned integers.
7688 2019-10-23  Paul Eggert  <eggert@cs.ucla.edu>
7690         nstrftime: speed up integer overflow checking
7691         * lib/nstrftime.c: Include intprops.h.
7692         (INT_STRLEN_BOUND): Remove, as we can use intprops.h’s defn.
7693         (__strftime_internal): Use INT_MULTIPLY_WRAPV and INT_ADD_WRAPV
7694         instead of doing it by hand.
7695         * modules/nstrftime (Depends-on): Add intprops.
7697         Port better to GCC under macOS
7698         Work around macOS header that has ‘#define __has_builtin(x) 0’
7699         when compiled by GCC.  Apple really, really doesn’t want you to
7700         use GCC, apparently.  Rroblem reported by Akim Demaille in:
7701         https://lists.gnu.org/r/bug-bison/2019-10/msg00071.html
7702         The fix is to not trust __has_builtin when being compiled by
7703         recent-enough GCC.
7704         * lib/intprops.h (__has_builtin)
7705         (_GL_HAS___builtin_add_overflow, _GL_TEMPDEF___has_builtin):
7706         * lib/verify.h (__has_builtin, _GL_HAS___builtin_unreachable)
7707         (_GL_HAS___builtin_trap, _GL_TEMPDEF___has_builtin):
7708         Remove.  All uses removed.
7709         * lib/intprops.h (_GL_HAS_BUILTIN_ADD_OVERFLOW): Use __has_builtin
7710         directly, if defined and if not newer GCC.
7711         * lib/verify.h (_GL_HAS_BUILTIN_TRAP, _GL_HAS_BUILTIN_UNREACHABLE):
7712         New macro, that use __has_builtin directly, if defined and if
7713         not newer GCC.
7714         (assume): Use them.
7716 2019-10-22  Akim Demaille  <akim@lrde.epita.fr>
7718         maintainer-makefile: update rule for argmatch.
7719         * top/maint.mk (sc_prohibit_argmatch_without_use): Add ARGMATCH_DEFINE_GROUP.
7721 2019-10-21  Akim Demaille  <akim@lrde.epita.fr>
7723         bitset: let freeing functions accept NULL.
7724         * lib/bitset.c (bitset_free, bitset_obstack_free): Do nothing if
7725         given NULL.
7726         * lib/bitset.h: Document that.
7727         * doc/bitset.texi: Fix the example, and demonstrate bitset_free.
7729 2019-10-15  Paul Eggert  <eggert@cs.ucla.edu>
7731         inttypes: use more-robust test for int range
7732         This fixes Bison 3.4.2 when built with Oracle Solaris Studio 12.3.
7733         Problem reported by Dagobert Michelsen in:
7734         https://lists.gnu.org/r/bug-gnulib/2019-10/msg00042.html
7735         * lib/inttypes.in.h: Rely only on limits.h when checking
7736         int range.
7738 2019-10-15  Bruno Haible  <bruno@clisp.org>
7740         libtextstyle-optional: Sync with current not-yet-released libtextstyle.
7741         * libtextstyle-optional (styled_ostream_get_hyperlink_ref,
7742         styled_ostream_get_hyperlink_id, styled_ostream_set_hyperlink,
7743         term_ostream_get_hyperlink_ref, term_ostream_get_hyperlink_id,
7744         term_ostream_set_hyperlink): New functions.
7745         (term_styled_ostream_get_hyperlink_ref,
7746         term_styled_ostream_get_hyperlink_id,
7747         term_styled_ostream_set_hyperlink): New function aliases.
7749 2019-10-14  Paul Eggert  <eggert@cs.ucla.edu>
7751         update-copyright: use en dashes in .texi ranges
7752         * build-aux/update-copyright: Match year ranges like "1998--2019",
7753         which are used in the Autoconf manual.  Also, update ranges in
7754         .tex, .texi, and .texinfo files to use en dashes instead of
7755         hyphens.
7757 2019-10-13  Paul Eggert  <eggert@cs.ucla.edu>
7759         * config/srclist.txt: Remove posix/regex_internal.c for now.
7761 2019-10-13  Bruno Haible  <bruno@clisp.org>
7763         git-version-gen: Allow 'snapshot' as .tarball-version contents.
7764         * build-aux/git-version-gen: Don't map non-numeric .tarball-version
7765         contents to the empty string.
7767 2019-10-12  Bruno Haible  <bruno@clisp.org>
7769         intprops tests: Fix compilation errors on HP-UX/ia64 with cc.
7770         * tests/test-intprops.c (main): Disable two more tests when using
7771         HP-UX cc.
7773 2019-10-11  Paul Eggert  <eggert@cs.ucla.edu>
7775         Simplify and regularize regex use of ‘assert’
7776         Also, tell GCC about the asserts even when compiling without
7777         debugging, to give it further optimization opportunities.
7778         * lib/regex_internal.h (DEBUG_ASSERT): New macro.
7779         * lib/regcomp.c (link_nfa_nodes, calc_eclosure)
7780         (parse_expression, parse_bracket_exp):
7781         * lib/regex_internal.c (build_wcs_buffer)
7782         (build_wcs_upper_buffer, re_string_reconstruct)
7783         (re_string_context_at):
7784         * lib/regexec.c (re_search_stub, re_copy_regs)
7785         (re_search_internal, prune_impossible_nodes, check_matching)
7786         (check_halt_state_context, set_regs, sift_states_backward)
7787         (build_sifted_states, transit_state_mb, transit_state_bkref)
7788         (check_arrival_add_next_nodes, check_arrival_expand_ecl)
7789         (match_ctx_add_subtop):
7790         Use it instead of plain ‘assert’.
7792 2019-10-09  Paul Eggert  <eggert@cs.ucla.edu>
7794         regex: omit debug assignment when not debugging
7795         * lib/regexec.c (re_search_internal) [!DEBUG]:
7796         Remove unnecessary assignment.
7798         regex: tell compiler there’s at most 256 arcs out
7799         Partly this is to help the reader (and maybe help GCC);
7800         partly this is to pacify Coverity.
7801         * lib/regex_internal.h: Include verify.h.
7802         * lib/regexec.c (group_nodes_into_DFAstates):
7803         Tell the compiler that ndests cannot exceed SBC_MAX.
7804         * modules/regex (Depends-on): Add ‘verify’.
7806         regex: simplify by assuming C99
7807         * config/srclist.txt: Comment out regex_internal.h and regexec.c
7808         temporarily.
7809         * lib/regex_internal.h (lock_define, re_match_context_t):
7810         Simplify by assuming C99 macros and const.
7811         * lib/regexec.c (re_search_internal): Simplify by assuming C99
7812         initializers.  Remove unnecessary assignment, as mctx is now
7813         safely initialized earlier.
7815         regex: avoid copying of uninitialized storage
7816         * config/srclist.txt: Comment out regcomp.c temporarily.
7817         * lib/regcomp.c (build_charclass_op, create_tree) [! (GCC_LINT||lint)]:
7818         Initialize even when not checking for lint, as the behavior is
7819         arguably undefined otherwise and Coverity warns about it.
7821 2019-10-06  Bruno Haible  <bruno@clisp.org>
7823         access tests: Fix test failure when run as root.
7824         * tests/test-access.c: Include root-uid.h.
7825         (geteuid): Define fallback.
7826         (main): Don't expect that writing to a read-only file would fail when
7827         running as root. Also, remove the created files at the end.
7828         * modules/access-tests (Depends-on): Add root-uid.
7829         (configure.ac): Test whether geteuid exists.
7831 2019-10-06  Benno Schulenberg  <bensberg@telfort.nl>  (tiny change)
7833         users.txt: add GNU nano
7834         Nano has been making use of gnulib since March 2017, version 2.8.0.
7836 2019-10-05  Paul Eggert  <eggert@cs.ucla.edu>
7838         bootstrap: simplify debugging of wget failures
7839         Problem reported by Tim Rühsen in:
7840         https://lists.gnu.org/r/bug-gnulib/2019-10/msg00000.html
7841         * build-aux/bootstrap (po_download_command_format):
7842         Invoke wget with -nv instead of -q, to make debugging easier.
7844 2019-09-29  Bruno Haible  <bruno@clisp.org>
7846         avltree-list: Fix compilation warning (introduced on 2014-09-16).
7847         * lib/gl_avltree_list.c (gl_avltree_list_check_invariants): Remove
7848         'const' attribute.
7850 2019-09-29  Bruno Haible  <bruno@clisp.org>
7852         fbufmode: Fix compilation error on glibc >= 2.28 systems.
7853         * lib/stdio-impl.h (_IO_UNBUFFERED): Define fallback on glibc >= 2.28.
7855 2019-09-28  Bruno Haible  <bruno@clisp.org>
7857         Update comments that refer to POSIX.
7858         * lib/creat.c, lib/fopen.c, lib/open.c, lib/openat.c: Cite the relevant
7859         sentence about trailing slashes.
7860         * lib/fflush.c: Clarify the reasoning.
7861         * tests/test-fflush2.c: Cite the relevant sentence.
7863 2019-09-28  Bruno Haible  <bruno@clisp.org>
7865         access: Document limitations on Windows.
7866         Suggested by Zaretskii <eliz@gnu.org>.
7867         * doc/posix-functions/access.texi: Mention two limitations on Windows.
7869 2019-09-28  Bruno Haible  <bruno@clisp.org>
7871         findprog-in: Fix comment.
7872         Reported by Eli Zaretskii <eliz@gnu.org>.
7873         * lib/findprog.h (find_in_given_path): Extend description of EACCES
7874         condition.
7875         * lib/stat.c (rpl_stat): Fix typo in comment.
7876         * lib/utime.c (_gl_utimens_windows): Likewise.
7878 2019-09-23  Paul Eggert  <eggert@cs.ucla.edu>
7880         Update URLs and associated text
7881         (Thanks to Bruno Haible for proofreading this patch.)
7882         Prefer https: to http: in URLs where either will do, for the usual
7883         security reasons.  I also updated broken and/or moved URLs
7884         discovered during the process. In a few places I had to resort to
7885         archive.org, since I didn't find the originals elsewhere.
7887 2019-09-15  Paul Smith  <psmith@gnu.org>
7888             Bruno Haible  <bruno@clisp.org>
7890         findprog-in: Set errno when the search fails.
7891         * lib/findprog-in.c: Include <errno.h>.
7892         (find_in_given_path): Set errno before returning NULL.
7893         * lib/findprog.h (find_in_given_path): Update comment accordingly.
7894         Define the term "slash".
7896 2019-09-15  Bruno Haible  <bruno@clisp.org>
7898         findprog, findprog-lgpl, findprog-in: Fix crash on MSVC.
7899         * modules/findprog (Depends-on): Add access.
7900         * modules/findprog-lgpl (Depends-on): Likewise.
7901         * modules/findprog-in (Depends-on): Likewise.
7903 2019-09-15  Bruno Haible  <bruno@clisp.org>
7905         access: Add tests.
7906         * tests/test-access.c: New file.
7907         * modules/access-tests: New file.
7909         access: New module.
7910         * lib/unistd.in.h (access): New declaration.
7911         * lib/access.c: New file.
7912         * m4/access.m4: New file.
7913         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether access is declared.
7914         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ACCESS, REPLACE_ACCESS.
7915         * modules/unistd (Makefile.am): Substitute GNULIB_ACCESS,
7916         REPLACE_ACCESS.
7917         * modules/access: New file.
7918         * tests/test-unistd-c++.cc (access): Check signature.
7919         * doc/posix-functions/access.texi: Mention the new module.
7921 2019-09-15  Bruno Haible  <bruno@clisp.org>
7923         fcntl-h: Fix compilation error of creat.c on MSVC.
7924         * lib/fcntl.in.h: Include <io.h> also when __need_system_fcntl_h is
7925         defined.
7927 2019-09-15  Bruno Haible  <bruno@clisp.org>
7929         creat: Add tests.
7930         * tests/test-creat.c: New file, based on tests/test-open.h.
7931         * modules/creat-tests: New file.
7933         creat: New module.
7934         * lib/fcntl.in.h (creat): New declaration.
7935         * lib/creat.c: New file, based on lib/open.c.
7936         * m4/creat.m4: New file.
7937         * m4/open-slash.m4: New file, extracted from m4/open.m4.
7938         * m4/open.m4 (gl_FUNC_OPEN): Move trailing-slash test to open-slash.m4.
7939         Invoke gl_OPEN_TRAILING_SLASH_BUG.
7940         * modules/open (Files): Add m4/open-slash.m4.
7941         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_CREAT,
7942         REPLACE_CREAT.
7943         * modules/fcntl-h (Makefile.am): Substitute GNULIB_CREAT, REPLACE_CREAT.
7944         * modules/creat: New file.
7945         * tests/test-fcntl-h-c++.cc (creat): Check signature.
7946         * doc/posix-functions/creat.texi: Mention the new module.
7948 2019-09-15  Bruno Haible  <bruno@clisp.org>
7950         open tests: Enhance test.
7951         * tests/test-open.h (test_open): Test the creation of an executable
7952         regular file. Also improve initial cleanup.
7954 2019-09-15  Bruno Haible  <bruno@clisp.org>
7956         intprops tests: Avoid build failure with HP-UX cc.
7957         * tests/test-intprops.c: Disable a check that makes HP cc choke with
7958         "error 4018: Macro param too large after substitution - use -H option.".
7960 2019-09-14  Bruno Haible  <bruno@clisp.org>
7962         Make autoconf tests work with -Werror=implicit-function-declaration.
7963         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Include <wctype.h>, for
7964         towupper() declaration.
7965         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Include <stdlib.h>, for ptsname()
7966         declaration.
7968 2019-09-14  Bruno Haible  <bruno@clisp.org>
7970         findprog-in: Better mimic the system on native Windows.
7971         Reported by Paul Smith <psmith@gnu.org>.
7972         * lib/findprog-in.c (find_in_given_path): On native Windows, don't try
7973         non-empty suffixes when the file name already contains a '.'.
7975 2019-09-10  Bruno Haible  <bruno@clisp.org>
7977         wctob: Fix autoconf test.
7978         Based on patch by Florian Weimer <fweimer@redhat.com>.
7979         * m4/wctob.m4 (gl_FUNC_WCTOB): Include <stdlib.h> before using mbtowc.
7981 2019-09-09  Akim Demaille  <akim@lrde.epita.fr>
7983         xhash: provide hash_xinitialize.
7984         Suggested by Egor Pugin <egor.pugin@gmail.com>
7985         https://lists.gnu.org/archive/html/bison-patches/2019-09/msg00026.html
7986         * modules/xhash, lib/xhash.c: New.
7987         * lib/hash.h (hash_xinitialize): New.
7989 2019-09-09  Bruno Haible  <bruno@clisp.org>
7991         findprog-in: Make exec optimization optional.
7992         * lib/findprog.h: Add double-inclusion guard. Include <stdbool.h>.
7993         (find_in_given_path): Add optimize_for_exec parameter.
7994         * lib/findprog-in.c (find_in_given_path): Likewise.
7996 2019-09-08  Bruno Haible  <bruno@clisp.org>
7998         Add option to assume the best, not the worst, when cross-compiling.
7999         Suggested by Jonas Termansen <sortie@maxsi.org>.
8000         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add --enable-cross-guesses=...
8001         option. Set gl_cross_guess_normal and gl_cross_guess_inverted.
8002         * m4/argz.m4 (gl_FUNC_ARGZ): Obey --enable-cross-guesses for
8003         lt_cv_sys_argz_works.
8004         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Obey --enable-cross-guesses for
8005         ac_cv_func_calloc_0_nonnull.
8006         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Obey
8007         --enable-cross-guesses for gl_cv_func_realpath_works.
8008         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Obey --enable-cross-guesses for
8009         gl_cv_func_cbrtl_ieee.
8010         * m4/ceil.m4 (gl_FUNC_CEIL): Obey --enable-cross-guesses for
8011         gl_cv_func_ceil_ieee.
8012         * m4/ceilf.m4 (gl_FUNC_CEILF): Obey --enable-cross-guesses for
8013         gl_cv_func_ceilf_ieee.
8014         * m4/ceill.m4 (gl_FUNC_CEILL): Obey --enable-cross-guesses for
8015         gl_cv_func_ceill_ieee.
8016         * m4/chown.m4 (AC_FUNC_CHOWN): Obey --enable-cross-guesses for
8017         ac_cv_func_chown_works.
8018         (gl_FUNC_CHOWN): Obey --enable-cross-guesses for
8019         gl_cv_func_chown_slash_works, gl_cv_func_chown_ctime_works.
8020         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Obey
8021         --enable-cross-guesses for gl_cv_struct_dirent_d_ino.
8022         * m4/exp2l.m4 (gl_FUNC_EXP2L): Obey --enable-cross-guesses for
8023         gl_cv_func_exp2l_works, gl_cv_func_exp2l_ieee.
8024         * m4/expl.m4 (gl_FUNC_EXPL): Obey --enable-cross-guesses for
8025         gl_cv_func_expl_works.
8026         * m4/expm1.m4 (gl_FUNC_EXPM1): Obey --enable-cross-guesses for
8027         gl_cv_func_expm1_ieee.
8028         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Obey --enable-cross-guesses for
8029         gl_cv_func_expm1l_works.
8030         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Obey --enable-cross-guesses for
8031         gl_cv_func_open_directory_works.
8032         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Obey
8033         --enable-cross-guesses for gl_cv_func_fchownat_nofollow_works.
8034         (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): Obey --enable-cross-guesses for
8035         gl_cv_func_fchownat_empty_filename_works.
8036         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Obey --enable-cross-guesses for
8037         gl_cv_func_fdopendir_works.
8038         * m4/floor.m4 (gl_FUNC_FLOOR): Obey --enable-cross-guesses for
8039         gl_cv_func_floor_ieee.
8040         * m4/floorf.m4 (gl_FUNC_FLOORF): Obey --enable-cross-guesses for
8041         gl_cv_func_floorf_ieee.
8042         * m4/fma.m4 (gl_FUNC_FMA_WORKS): Obey --enable-cross-guesses for
8043         gl_cv_func_fma_works.
8044         * m4/fmaf.m4 (gl_FUNC_FMAF_WORKS): Obey --enable-cross-guesses for
8045         gl_cv_func_fmaf_works.
8046         * m4/fmal.m4 (gl_FUNC_FMAL_WORKS): Obey --enable-cross-guesses for
8047         gl_cv_func_fmal_works.
8048         * m4/fmod.m4 (gl_FUNC_FMOD): Obey --enable-cross-guesses for
8049         gl_cv_func_fmod_ieee.
8050         * m4/fmodf.m4 (gl_FUNC_FMODF): Obey --enable-cross-guesses for
8051         gl_cv_func_fmodf_ieee.
8052         * m4/fmodl.m4 (gl_FUNC_FMODL): Obey --enable-cross-guesses for
8053         gl_cv_func_fmodl_ieee.
8054         * m4/fpurge.m4 (gl_FUNC_FPURGE): Obey --enable-cross-guesses for
8055         gl_cv_func_fpurge_works.
8056         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Obey
8057         --enable-cross-guesses for gl_cv_func_getcwd_path_max.
8058         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Obey --enable-cross-guesses for
8059         gl_cv_func_getcwd_null.
8060         (gl_FUNC_GETCWD): Update for getcwd-path-max.m4 change.
8061         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Obey --enable-cross-guesses for
8062         gl_cv_func_working_getdelim.
8063         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Obey --enable-cross-guesses for
8064         ac_cv_func_getgroups_works. Keep this macro also in Autoconf >= 2.70.
8065         (gl_FUNC_GETGROUPS): Obey --enable-cross-guesses for
8066         gl_cv_func_getgroups_works.
8067         * m4/getline.m4 (gl_FUNC_GETLINE): Obey --enable-cross-guesses for
8068         am_cv_func_working_getline.
8069         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Obey --enable-cross-guesses
8070         for gl_cv_func_getopt_gnu.
8071         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Obey
8072         --enable-cross-guesses for gl_cv_func_gettimeofday_clobber.
8073         * m4/hypot.m4 (gl_FUNC_HYPOT): Obey --enable-cross-guesses for
8074         gl_cv_func_hypot_ieee.
8075         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Obey --enable-cross-guesses for
8076         gl_cv_func_hypotf_ieee.
8077         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Obey --enable-cross-guesses for
8078         gl_cv_func_hypotl_ieee.
8079         * m4/iconv_open-utf.m4 (gl_FUNC_ICONV_OPEN_UTF_SUPPORT): Obey
8080         --enable-cross-guesses for gl_cv_func_iconv_supports_utf.
8081         * m4/link.m4 (gl_FUNC_LINK): Obey --enable-cross-guesses for
8082         gl_cv_func_link_works.
8083         * m4/linkat.m4 (gl_FUNC_LINKAT): Obey --enable-cross-guesses for
8084         gl_cv_func_linkat_slash.
8085         * m4/log.m4 (gl_FUNC_LOG): Obey --enable-cross-guesses for
8086         gl_cv_func_log_ieee.
8087         * m4/logf.m4 (gl_FUNC_LOGF): Obey --enable-cross-guesses for
8088         gl_cv_func_logf_ieee.
8089         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Obey --enable-cross-guesses for
8090         gl_cv_func_logl_works.
8091         * m4/log10.m4 (gl_FUNC_LOG10): Obey --enable-cross-guesses for
8092         gl_cv_func_log10_ieee.
8093         * m4/log10f.m4 (gl_FUNC_LOG10F): Obey --enable-cross-guesses for
8094         gl_cv_func_log10f_ieee.
8095         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): Obey --enable-cross-guesses for
8096         gl_cv_func_log10l_works.
8097         * m4/log1p.m4 (gl_FUNC_LOG1P): Obey --enable-cross-guesses for
8098         gl_cv_func_log1p_ieee.
8099         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Obey --enable-cross-guesses for
8100         gl_cv_func_log1pf_ieee.
8101         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Obey --enable-cross-guesses for
8102         gl_cv_func_log1pl_ieee.
8103         * m4/log2.m4 (gl_FUNC_LOG2): Obey --enable-cross-guesses for
8104         gl_cv_func_log2_ieee.
8105         * m4/log2f.m4 (gl_FUNC_LOG2F): Obey --enable-cross-guesses for
8106         gl_cv_func_log2f_ieee.
8107         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Obey
8108         --enable-cross-guesses for
8109         gl_cv_func_lstat_dereferences_slashed_symlink.
8110         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Obey --enable-cross-guesses for
8111         ac_cv_func_malloc_0_nonnull. Keep this macro also in Autoconf >= 2.70.
8112         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): Obey --enable-cross-guesses for
8113         gl_cv_C_locale_sans_EILSEQ.
8114         * m4/memchr.m4 (gl_FUNC_MEMCHR): Obey --enable-cross-guesses for
8115         gl_cv_func_memchr_works.
8116         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Obey --enable-cross-guesses for
8117         gl_cv_func_memmem_works_always.
8118         (gl_FUNC_MEMMEM): Obey --enable-cross-guesses for
8119         gl_cv_func_memmem_works_fast.
8120         * m4/mkdir.m4 (gl_FUNC_MKDIR): Obey --enable-cross-guesses for
8121         gl_cv_func_mkdir_trailing_slash_works,
8122         gl_cv_func_mkdir_trailing_dot_works.
8123         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Obey --enable-cross-guesses for
8124         gl_cv_func_mkfifo_works.
8125         * m4/mknod.m4 (gl_FUNC_MKNOD): Obey --enable-cross-guesses for
8126         gl_cv_func_mknod_works.
8127         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Obey --enable-cross-guesses for
8128         gl_cv_func_working_mkstemp.
8129         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Obey --enable-cross-guesses for
8130         gl_cv_func_working_mktime.
8131         * m4/modf.m4 (gl_FUNC_MODF): Obey --enable-cross-guesses for
8132         gl_cv_func_modf_ieee.
8133         * m4/modff.m4 (gl_FUNC_MODFF): Obey --enable-cross-guesses for
8134         gl_cv_func_modff_ieee.
8135         * m4/modfl.m4 (gl_FUNC_MODFL): Obey --enable-cross-guesses for
8136         gl_cv_func_modfl_ieee.
8137         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Obey --enable-cross-guesses for
8138         gl_cv_func_nanosleep.
8139         * m4/perror.m4 (gl_FUNC_PERROR): Obey --enable-cross-guesses for
8140         gl_cv_func_perror_works.
8141         * m4/printf.m4 (gl_PRINTF_SIZES_C99): Obey --enable-cross-guesses for
8142         gl_cv_func_printf_sizes_c99.
8143         (gl_PRINTF_INFINITE): Obey --enable-cross-guesses for
8144         gl_cv_func_printf_infinite.
8145         (gl_PRINTF_INFINITE_LONG_DOUBLE): Obey --enable-cross-guesses for
8146         gl_cv_func_printf_infinite_long_double.
8147         (gl_PRINTF_DIRECTIVE_A): Obey --enable-cross-guesses for
8148         gl_cv_func_printf_directive_a.
8149         (gl_PRINTF_DIRECTIVE_F): Obey --enable-cross-guesses for
8150         gl_cv_func_printf_directive_f.
8151         (gl_PRINTF_FLAG_ZERO): Obey --enable-cross-guesses for
8152         gl_cv_func_printf_flag_zero.
8153         (gl_PRINTF_ENOMEM): Obey --enable-cross-guesses for
8154         gl_cv_func_printf_enomem.
8155         (gl_SNPRINTF_TRUNCATION_C99): Obey --enable-cross-guesses for
8156         gl_cv_func_snprintf_truncation_c99.
8157         (gl_SNPRINTF_RETVAL_C99): Obey --enable-cross-guesses for
8158         gl_cv_func_snprintf_retval_c99.
8159         (gl_SNPRINTF_DIRECTIVE_N): Obey --enable-cross-guesses for
8160         gl_cv_func_snprintf_directive_n.
8161         (gl_VSNPRINTF_ZEROSIZE_C99): Obey --enable-cross-guesses for
8162         gl_cv_func_vsnprintf_zerosize_c99.
8163         * m4/pselect.m4 (gl_FUNC_PSELECT): Obey --enable-cross-guesses for
8164         gl_cv_func_pselect_detects_ebadf.
8165         * m4/pthread_rwlock_rdlock.m4 (gl_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER):
8166         Obey --enable-cross-guesses for
8167         gl_cv_pthread_rwlock_rdlock_prefer_writer.
8168         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Obey --enable-cross-guesses for
8169         gl_cv_func_ptsname_sets_errno.
8170         * m4/putenv.m4 (gl_FUNC_PUTENV): Obey --enable-cross-guesses for
8171         gl_cv_func_svid_putenv.
8172         * m4/readlink.m4 (gl_FUNC_READLINK): Obey --enable-cross-guesses for
8173         gl_cv_func_readlink_works.
8174         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Obey --enable-cross-guesses for
8175         ac_cv_func_realloc_0_nonnull. Keep this macro also in Autoconf >= 2.70.
8176         * m4/regex.m4 (gl_REGEX): Obey --enable-cross-guesses for
8177         gl_cv_func_re_compile_pattern_working.
8178         * m4/remainder.m4 (gl_FUNC_REMAINDER): Obey --enable-cross-guesses for
8179         gl_cv_func_remainder_ieee.
8180         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Obey --enable-cross-guesses for
8181         gl_cv_func_remainderf_ieee.
8182         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Obey --enable-cross-guesses for
8183         gl_cv_func_remainderl_ieee.
8184         * m4/rintl.m4 (gl_FUNC_RINTL): Obey --enable-cross-guesses for
8185         gl_cv_func_rintl_works.
8186         * m4/rmdir.m4 (gl_FUNC_RMDIR): Obey --enable-cross-guesses for
8187         gl_cv_func_rmdir_works.
8188         * m4/round.m4 (gl_FUNC_ROUND): Obey --enable-cross-guesses for
8189         gl_cv_func_round_ieee.
8190         * m4/roundf.m4 (gl_FUNC_ROUNDF): Obey --enable-cross-guesses for
8191         gl_cv_func_roundf_ieee.
8192         * m4/roundl.m4 (gl_FUNC_ROUNDL): Obey --enable-cross-guesses for
8193         gl_cv_func_roundl_ieee.
8194         * m4/select.m4 (gl_FUNC_SELECT): Obey --enable-cross-guesses for
8195         gl_cv_func_select_detects_ebadf.
8196         * m4/setenv.m4 (gl_FUNC_SETENV): Obey --enable-cross-guesses for
8197         gl_cv_func_setenv_works.
8198         (gl_FUNC_UNSETENV): Obey --enable-cross-guesses for
8199         gl_cv_func_unsetenv_works.
8200         * m4/signbit.m4 (gl_SIGNBIT): Obey --enable-cross-guesses for
8201         gl_cv_func_signbit, gl_cv_func_signbit_gcc.
8202         * m4/sleep.m4 (gl_FUNC_SLEEP): Obey --enable-cross-guesses for
8203         gl_cv_func_sleep_works.
8204         * m4/stat.m4 (gl_FUNC_STAT): Obey --enable-cross-guesses for
8205         gl_cv_func_stat_file_slash.
8206         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Obey --enable-cross-guesses for
8207         gl_cv_func_stpncpy.
8208         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Obey
8209         --enable-cross-guesses for gl_cv_func_strcasestr_works_always.
8210         (gl_FUNC_STRCASESTR): Obey --enable-cross-guesses for
8211         gl_cv_func_strcasestr_linear.
8212         * m4/strerror.m4 (gl_FUNC_STRERROR): Obey --enable-cross-guesses for
8213         gl_cv_func_working_strerror.
8214         (gl_FUNC_STRERROR_0): Obey --enable-cross-guesses for
8215         gl_cv_func_strerror_0_works.
8216         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Obey
8217         --enable-cross-guesses for gl_cv_func_strerror_r_works.
8218         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Obey --enable-cross-guesses for
8219         gl_cv_func_strstr_works_always.
8220         (gl_FUNC_STRSTR): Obey --enable-cross-guesses for
8221         gl_cv_func_strstr_linear.
8222         * m4/strtod.m4 (gl_FUNC_STRTOD): Obey --enable-cross-guesses for
8223         gl_cv_func_strtod_works.
8224         * m4/strtold.m4 (gl_FUNC_STRTOLD): Obey --enable-cross-guesses for
8225         gl_cv_func_strtold_works.
8226         * m4/symlink.m4 (gl_FUNC_SYMLINK): Obey --enable-cross-guesses for
8227         gl_cv_func_symlink_works.
8228         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Obey --enable-cross-guesses for
8229         gl_cv_func_symlinkat_works.
8230         * m4/trunc.m4 (gl_FUNC_TRUNC): Obey --enable-cross-guesses for
8231         gl_cv_func_trunc_ieee.
8232         * m4/truncf.m4 (gl_FUNC_TRUNCF): Obey --enable-cross-guesses for
8233         gl_cv_func_truncf_ieee.
8234         * m4/truncl.m4 (gl_FUNC_TRUNCL): Obey --enable-cross-guesses for
8235         gl_cv_func_truncl_ieee.
8236         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Obey --enable-cross-guesses for
8237         gl_cv_func_tzset_clobber.
8238         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Obey --enable-cross-guesses for
8239         gl_cv_func_ungetc_works.
8240         * m4/unlink.m4 (gl_FUNC_UNLINK): Obey --enable-cross-guesses for
8241         gl_cv_func_unlink_honors_slashes, gl_cv_func_unlink_parent_fails.
8242         * m4/usleep.m4 (gl_FUNC_USLEEP): Obey --enable-cross-guesses for
8243         gl_cv_func_usleep_works.
8244         * m4/utimens.m4 (gl_UTIMENS): Obey --enable-cross-guesses for
8245         gl_cv_func_futimesat_works.
8246         * m4/utimes.m4 (gl_FUNC_UTIMES): Obey --enable-cross-guesses for
8247         gl_cv_func_working_utimes.
8248         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Obey --enable-cross-guesses for
8249         gl_cv_func_wcwidth_works.
8250         * m4/glob.m4 (gl_GLOB): When cross-compiling, don't create symlinks for
8251         testing. Obey --enable-cross-guesses for gl_cv_glob_lists_symlinks.
8252         * m4/rename.m4 (gl_FUNC_RENAME): When cross-compiling, don't create
8253         links for testing. Obey --enable-cross-guesses for
8254         gl_cv_func_rename_slash_dst_works, gl_cv_func_rename_slash_src_works,
8255         gl_cv_func_rename_link_works, gl_cv_func_rename_dest_works.
8257 2019-09-08  Bruno Haible  <bruno@clisp.org>
8259         Clarify that cross-compilation guesses are guesses.
8260         * m4/threads.m4 (gl_THREADS_H): Say "guessing yes" or "guessing no" when
8261         cross-compiling.
8263 2019-09-08  Bruno Haible  <bruno@clisp.org>
8265         chown: Fix configure output (regression from 2019-03-23).
8266         * m4/chown.m4 (gl_FUNC_CHOWN): Fix reference to
8267         gl_cv_func_chown_follows_symlink variable.
8269 2019-09-08  Bruno Haible  <bruno@clisp.org>
8271         findprog-in: New module.
8272         Suggested by Paul Smith <psmith@gnu.org>.
8273         * lib/findprog.h (find_in_given_path): New declaration.
8274         * lib/findprog-in.c: New file, based on lib/findprog.c.
8275         * m4/findprog-in.m4: New file, based on m4/findprog.m4.
8276         * modules/findprog-in: New file.
8278 2019-09-08  Bruno Haible  <bruno@clisp.org>
8280         findprog: Remove unused dependency.
8281         * modules/findprog (Depends-on): Remove strdup.
8283 2019-09-08  Bruno Haible  <bruno@clisp.org>
8285         findprog: Remove test that is obsolete since 2006-04-24.
8286         * m4/findprog.m4 (gl_FINDPROG): Don't test for unistd.h.
8288 2019-09-06  Akim Demaille  <akim@lrde.epita.fr>
8290         bitset: style changes
8291         * lib/bitset/vector.c (vbitset_resize): Factor computation.
8292         * lib/bitset.c, lib/bitset/stats.c, lib/bitsetv.c: Prefer
8293         xzalloc to xcalloc.
8294         Suggested by Paul Eggert.
8296 2019-09-06  Akim Demaille  <akim@lrde.epita.fr>
8298         bitset: check memory allocation
8299         Reported by 江 祖铭 (Zu-Ming Jiang).
8300         With help from Paul Eggert.
8301         https://lists.gnu.org/archive/html/bug-bison/2019-08/msg00016.html
8302         * lib/bitset/table.c (tbitset_resize): When growing, use xrealloc
8303         instead of realloc.
8304         When shrinking, accept failures.
8305         * lib/bitset/vector.c (vbitset_resize): Likewise.
8307 2019-09-07  Paul Eggert  <eggert@cs.ucla.edu>
8309         scratch_buffer: sync from glibc
8310         * config/srclist.txt: Add the scratch_buffer source
8311         code from glibc, since these should be in sync.
8312         Autoupdate.
8314 2019-09-07  Bruno Haible  <bruno@clisp.org>
8316         doc: Update for glibc 2.30.
8317         * doc/glibc-functions/gettid.texi: New file.
8318         * doc/glibc-functions/pthread_cond_clockwait.texi: New file.
8319         * doc/glibc-functions/pthread_mutex_clocklock.texi: New file.
8320         * doc/glibc-functions/pthread_rwlock_clockrdlock.texi: New file.
8321         * doc/glibc-functions/pthread_rwlock_clockwrlock.texi: New file.
8322         * doc/glibc-functions/sem_clockwait.texi: New file.
8323         * doc/glibc-functions/tgkill.texi: New file.
8324         * doc/glibc-functions/twalk_r.texi: New file.
8325         * doc/gnulib.texi: Include them.
8326         (Glibc semaphore.h): New section.
8327         * doc/pastposix-functions/h_errno.texi: Update.
8328         * doc/posix-functions/*.texi: Likewise.
8330 2019-09-06  Bruno Haible  <bruno@clisp.org>
8332         symlink tests: Avoid test failure on Linux with Lustre file system.
8333         Reported by Thomas C Oppe <Thomas.C.Oppe@erdc.dren.mil>
8334         at <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=37312>.
8335         * tests/test-symlink.h (test_symlink): Accept errno value ENOENT.
8337 2019-09-01  Bruno Haible  <bruno@clisp.org>
8339         gitsub.sh: Add support for shallow-cloning of subdirectories.
8340         * top/gitsub.sh (func_usage): Document allowed git options with
8341         'git pull'.
8342         (func_pull): Accept GIT_OPTIONS argument.
8343         (pull): Parse git options before complaining about too many arguments.
8344         Pass the git options to func_pull.
8346 2019-08-29  Bruno Haible  <bruno@clisp.org>
8348         lock: Fix cross-compilation guesses.
8349         * m4/pthread_rwlock_rdlock.m4 (gl_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER):
8350         Require AC_CANONICAL_HOST. When cross-compiling, guess no on most
8351         platforms.
8353 2019-08-28  Bruno Haible  <bruno@clisp.org>
8355         isfinite, isinf, isnan, signbit: Fix error in C++ mode on mingw.
8356         Reported by Martin Storsjö <martin@martin.st> in
8357         <https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00075.html>.
8358         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_2): Add more arguments.
8359         (isfinite, isinf, isnan, signbit): On platforms that use C++ include
8360         files from GCC 6 or newer, use an override through '#define', because
8361         the inline definitions in the platform's <cmath> cannot be overridden
8362         in another way.
8364 2019-08-27  Paul Eggert  <eggert@cs.ucla.edu>
8366         Revert macOS INT_MULTIPLY_WRAPV patch
8367         Problem reported by Bruno Haible in:
8368         https://lists.gnu.org/r/bug-gnulib/2019-08/msg00076.html
8369         * lib/intprops.h (_GL_HAS___builtin_mul_overflow): Remove.
8370         (_GL_HAS_BUILTIN_MUL_OVERFLOW):
8371         Go back to working around the Clang bug on macOS.
8373 2019-08-27  Bruno Haible  <bruno@clisp.org>
8375         libtool-next-version: Fix error output.
8376         * build-aux/libtool-next-version (func_fatal_error): Fix the program
8377         name.
8379 2019-08-27  Paul Eggert  <eggert@cs.ucla.edu>
8381         Speed up INT_MULTIPLY_WRAPV on macOS
8382         Assume that __builtin_mul_overflow works OK with Clang on macOS.
8383         Mattias Engdegård says it’s safe to assume the relevant library
8384         is always available there.
8385         * lib/intprops.h (_GL_HAS___builtin_mul_overflow):
8386         New temporary internal macro.
8387         (_GL_HAS_BUILTIN_MUL_OVERFLOW):
8388         No need to work around the Clang bug on macOS.
8390 2019-08-25  Paul Eggert  <eggert@cs.ucla.edu>
8392         intprops.h, verify.h: port better to clang
8393         Improve code generated by INT_ADD_WRAPV and INT_SUBTRACT_WRAPV
8394         with Clang.  Problem reported privately by Mattias Engdegård.
8395         Also, insulate intprops.h and verify.h better against each other’s
8396         definitions of __has_builtin on non-Clang hosts.
8397         * lib/intprops.h (__has_builtin): Define a temporary substitute
8398         if __has_builtin is not already defined.
8399         (_GL_HAS___builtin_add_overflow, _GL_TEMPDEF___has_builtin):
8400         New temporary internal macros.
8401         (_GL_HAS_BUILTIN_ADD_OVERFLOW, _GL_HAS_BUILTIN_MUL_OVERFLOW):
8402         Now two separate macros, replacing the old
8403         _GL_HAS_BUILTIN_OVERFLOW, since we no longer assume that
8404         __builtin_mul_overflow is like the rest.  All uses changed.
8405         (INT_ADD_WRAPV, INT_SUBTRACT_WRAPV, INT_MULTIPLY_WRAPV):
8406         Adjust to above changes.
8407         (_GL_INT_OP_WRAPV): Remove ‘builtin’ arg, since it’s no
8408         longer relevant.  All uses changed.
8409         * lib/verify.h (__has_builtin): Treat like intprops.h,
8410         so that the two .h files do not collide with each other.
8411         (_GL_HAS___builtin_unreachable, _GL_HAS___builtin_trap)
8412         (_GL_TEMPDEF___has_builtin): New temporary internal macros.
8414 2019-08-24  Paul Eggert  <eggert@cs.ucla.edu>
8416         intprops: say why not Clang __builtin_add_overflow
8417         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW):
8418         Mention Clang in comment, responding to a query from
8419         Mattias Engdegård.
8421 2019-08-24  Bruno Haible  <bruno@clisp.org>
8423         doc: Document most of the files outside of modules.
8424         * doc/gnulib.texi (Build Infrastructure Files,
8425         Release Management Files): New chapters.
8427 2019-08-24  Bruno Haible  <bruno@clisp.org>
8429         bootstrap: Keep in sync with the 'gettext' module.
8430         Reported by Assaf Gordon in
8431         <https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00045.html>.
8432         * build-aux/po/Makefile.in.in: Update to gettext 0.20.
8433         * build-aux/po/remove-potcdate.sin: Likewise.
8435 2019-08-24  Bruno Haible  <bruno@clisp.org>
8437         crypto/gc-sha512: Add tests.
8438         * tests/test-gc-sha512.c: New file, based on tests/test-gc-sha1.c.
8439         * modules/crypto/gc-sha512-tests: New file.
8441         crypto/gc-sha256: Add tests.
8442         * tests/test-gc-sha256.c: New file, based on tests/test-gc-sha1.c.
8443         * modules/crypto/gc-sha256-tests: New file.
8445         crypto/gc-sha256, crypto/gc-sha512: New modules.
8446         * lib/gc.h (gc_sha256, gc_sha512): New declarations.
8447         * lib/gc-gnulib.c: Include sha256.h, sha512.h.
8448         (MAX_DIGEST_SIZE): Set to 64.
8449         (_gc_hash_ctx, gc_hash_open, gc_hash_digest_length, gc_hash_write,
8450         gc_hash_read, gc_hash_buffer): Add support for sha256 and sha512.
8451         (gc_sha256, gc_sha512): New functions.
8452         * lib/gc-libgcrypt.c (gc_sha256, gc_sha512): New functions.
8453         * modules/crypto/gc-sha256: New file, based on modules/crypto/gc-sha1.
8454         * modules/crypto/gc-sha512: New file, based on modules/crypto/gc-sha1.
8456 2019-08-24  Bruno Haible  <bruno@clisp.org>
8458         crypto/gc-sha1 tests: Improve output when the test fails.
8459         * tests/test-gc-sha1.c (main): In case of mismatch, print the entire
8460         output.
8462 2019-08-24  Bruno Haible  <bruno@clisp.org>
8464         crypto/gc-sm3: Fix compilation error with --with-libgcrypt.
8465         * m4/gc-sm3.m4 (gl_GC_SM3): Test whether libgcrypt supports SM3. Define
8466         LIBGCRYPT_HAS_MD_SM3.
8467         * lib/gc-libgcrypt.c: Include sm3.h.
8468         (_gc_hash_ctx, gc_hash_open, gc_hash_hmac_setkey, gc_hash_write,
8469         gc_hash_read, gc_hash_close, gc_hash_buffer, gc_sm3): Use the gnulib
8470         implementation if libgcrypt does not support SM3.
8472 2019-08-24  Bruno Haible  <bruno@clisp.org>
8474         crypto/gc-md2: Optimize and clarify code.
8475         * lib/gc-gnulib.c (gc_hash_open): Comment out md2_init_ctx invocation.
8476         * lib/gc-libgcrypt.c (gc_hash_open): Clarify why md2_init_ctx invocation
8477         is not needed.
8479 2019-08-24  Bruno Haible  <bruno@clisp.org>
8481         crypto/gc-md2: Add comment.
8482         * lib/gc-libgcrypt.c: Add comment.
8484 2019-08-24  Bruno Haible  <bruno@clisp.org>
8486         crypto/gc-{md[24],rijndael} tests: Fix link error with --with-libgcrypt.
8487         * modules/crypto/gc-md2-tests (test_gc_md2_LDADD): New variable.
8488         * modules/crypto/gc-md4-tests (test_gc_md4_LDADD): New variable.
8489         * modules/crypto/gc-rijndael-tests (test_gc_rijndael_LDADD): New
8490         variable.
8492 2019-08-24  Bruno Haible  <bruno@clisp.org>
8494         crypto/gc: Fix link error with --with-libgcrypt.
8495         * m4/gc.m4 (gl_GC): Set LIB_CRYPTO to the value found by the
8496         AC_LIB_HAVE_LINKFLAGS invocation.
8498 2019-08-24  Bruno Haible  <bruno@clisp.org>
8500         crypto/gc: Access the module indicators correctly.
8501         * lib/gc-gnulib.c: Use '#if GNULIB_GC_*', not '#ifdef GNULIB_GC_*'.
8502         * lib/gc-libgcrypt.c: Likewise.
8504 2019-08-24  Bruno Haible  <bruno@clisp.org>
8506         crypto/gc: Fix configuration with --with-libgcrypt.
8507         * m4/libgcrypt.m4: New file, copied from libgcrypt/src/libgcrypt.m4.
8508         * modules/crypto/gc (Files): Add it.
8509         * m4/gc.m4 (gl_GC): Assume AM_PATH_LIBGCRYPT is defined.
8511 2019-08-24  Bruno Haible  <bruno@clisp.org>
8513         Remove unused file.
8514         * m4/stat-macros.m4: Remove file.
8516 2019-08-21  Paul Eggert  <eggert@cs.ucla.edu>
8518         New strip-trailing-space option for srclist-update
8519         * config/srclist-update (fixfile): Support new option.
8520         * config/srclist.txt (texinfo.tex, maintain.texi, standards.texi):
8521         Use it.
8523 2019-08-20  Eric Blake  <eblake@redhat.com>
8525         accept4: Support SOCK_NONBLOCK, if defined
8526         * lib/accept4.c (accept4): If SOCK_NONBLOCK is defined, honor it.
8528         accept4: Fix compilation when native accept4() exists.
8529         Reported by Richard W.M. Jones <rjones@redhat.com> in
8530         https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00029.html
8531         * lib/accept4.c (accept4): Match witness symbol to m4 file update.
8533 2019-08-18  Bruno Haible  <bruno@clisp.org>
8535         Defeat -flto GCC optimization in math autoconf tests.
8536         Reported by Tomasz Kłoczko <kloczko.tomasz@gmail.com>
8537         at <https://savannah.gnu.org/bugs/?56109>.
8538         * m4/mathfunc.m4 (gl_MATHFUNC): Mark function pointer as 'volatile'.
8539         * m4/acosl.m4 (gl_FUNC_ACOSL): Likewise.
8540         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
8541         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
8542         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
8543         * m4/exp2.m4 (gl_FUNC_EXP2): Likewise.
8544         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
8545         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
8546         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Likewise.
8547         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
8548         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
8549         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
8551 2019-08-17  Bruno Haible  <bruno@clisp.org>
8553         windows-spin: Implement declared functions.
8554         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
8555         <https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00024.html>.
8556         * lib/windows-spin.c (glwthread_spin_trylock): Fix typo in function
8557         name.
8559 2019-08-17  Paul Eggert  <eggert@cs.ucla.edu>
8561         intprops: port to Oracle Developer Studio 12.6
8562         * lib/intprops.h (_GL_INT_OP_WRAPV): Fix recently-introduced
8563         typos that were in a section not compiled by GCC.
8565 2019-08-14  Paul Eggert  <eggert@cs.ucla.edu>
8567         intprops: support uchar, ushort _WRAPV dests
8568         * lib/intprops.h (_GL_INT_OP_WRAPV_SMALLISH): New macro, defined
8569         when __builtin_add_overflow etc. and _Generic are not used.
8570         (_GL_INT_OP_WRAPV): Use it to support destinations that
8571         are unsigned char or unsigned short, even in compilers
8572         that lack __typeof__ and are not C11-compatible.
8574         intprops: pacify picky GCC
8575         * lib/intprops.h (_GL_BUILTIN_MUL_OVERFLOW):
8576         Pacify GCC’s complaints about ignoring __builtin_mul_overflow’s
8577         possibly-incorrect result.
8578         (_GL_INT_MULTIPLY_RANGE_OVERFLOW): Pacify GCC’s complaints
8579         about (A) used as a boolean, when A is an expression like 3 * 4.
8581         intprops: support unsigned *_WRAPV results
8582         Add support for unsigned, unsigned long, and unsigned long long
8583         results to INT_ADD_WRAPV, INT_SUBTRACT_WRAPV, and
8584         INT_MULTIPLY_WRAPV.  Also, work around GCC bug 91450, and fix a
8585         bug with unsigned inputs reported by Eli Zaretskii in:
8586         https://lists.gnu.org/r/bug-gnulib/2019-08/msg00012.html
8587         * config/srclist.txt: Break the glibc connection for intprops.h
8588         temporarily, while more testing is done in Gnulib-using apps.
8589         * lib/intprops.h (INT_ADD_WRAPV, INT_SUBTRACT_WRAPV)
8590         (INT_MULTIPLY_WRAPV, _GL_INT_OP_WRAPV, _GL_INT_OP_WRAPV_LONGISH):
8591         Support unsigned results no narrower than unsigned int.  Report
8592         overflow correctly if some arguments are unsigned.
8593         (_GL_BUILTIN_MUL_OVERFLOW): New macro, to work around GCC bug 91450.
8594         (_GL_INT_OP_CALC): Simplify now that the OVERFLOW argument does
8595         the right thing with narrow args.
8596         (_GL_INT_OP_CALC1): Remove.  All callers removed.
8597         (_GL_INT_ADD_RANGE_OVERFLOW, _GL_INT_SUBTRACT_RANGE_OVERFLOW)
8598         (_GL_INT_MULTIPLY_RANGE_OVERFLOW): New macros.
8599         * tests/test-intprops.c: Check for bugs and test new behavior.
8601 2019-08-14  Bruno Haible  <bruno@clisp.org>
8603         get_progname_of: New module.
8604         * lib/get_progname_of.h: New file.
8605         * lib/get_progname_of.c: New file, based on lib/getprogname.c.
8606         * lib/getprogname.c (getprogname): Tweak coding style.
8607         * lib/vma-iter.c (vma_iterate_bsd): Update comment.
8608         * modules/get_progname_of: New file.
8610 2019-08-14  Bruno Haible  <bruno@clisp.org>
8612         get_ppid_of: New module.
8613         * lib/get_ppid_of.h: New file.
8614         * lib/get_ppid_of.c: New file.
8615         * modules/get_ppid_of: New file.
8617 2019-08-13  Bruno Haible  <bruno@clisp.org>
8619         libtextstyle-optional tests: Support the NO_COLOR environment variable.
8620         * tests/test-libtextstyle.c (main): Do not emit styling when the
8621         environment variable NO_COLOR is set.
8623 2019-08-12  Paul Eggert  <eggert@cs.ucla.edu>
8625         verify: improve diagnostic quality in recent GCC
8626         If ‘verify’ fails in a deeply-nested macro, GCC does not output a
8627         useful line number containing the top-level caller of the macro.
8628         So, bring back the older way of issuing a diagnostic containing
8629         the top-level call’s arg, so that it is easier to diagnose
8630         ‘verify’ failures with recent GCC.
8631         * lib/verify.h (_GL_VERIFY_TRUE, _GL_VERIFY_TYPE):
8632         Bring back DIAGNOSTIC arg.  All callers changed.
8633         (verify): Just use _GL_VERIFY.
8635 2019-08-11  Bruno Haible  <bruno@clisp.org>
8637         localcharset: Add more aliases for OS/2.
8638         Based on patch by KO Myung-Hun <komh78@gmail.com> in
8639         <https://lists.gnu.org/archive/html/bug-gnu-libiconv/2019-08/msg00004.html>.
8640         * lib/localcharset.c (alias_table) [OS2]: Add more aliases.
8642 2019-08-10  Eric Blake  <eblake@redhat.com>
8644         configmake: Update advice on usage.
8645         * modules/configmake (Include): No longer necessary to include
8646         last, since configmake.h itself worries about collision avoidance.
8648 2019-08-10  Assaf Gordon <assafgordon@gmail.com>
8650         parse-datetime: fix 'T' military timezone handling
8651         * lib/parse-datetime.y (zone):
8652         follow-up to the previous commit: the 'T' case is handled outside the
8653         conversion table (used as either military timezone UTC-7 or ISO8601
8654         separator). Change it from "HOUR(7)" to "-HOUR(7)" to match other
8655         timezone letters.
8657 2019-08-09  Paul Eggert  <eggert@cs.ucla.edu>
8659         parse-datetime: fix military timezone letters
8660         Problem and trivial fix reported by Neil Hoggarth in:
8661         https://lists.gnu.org/r/bug-gnulib/2019-08/msg00005.html
8662         * lib/parse-datetime.y (military_table):
8663         Do it the right way, not the RFC 822 way.
8665 2019-08-08  Eric Blake  <eblake@redhat.com>
8667         configmake: Avoid namespace pollution issue on mingw.
8668         * modules/configmake (Makefile.am): If the project uses
8669         <winsock2.h>, include that header before defining DATADIR.
8671 2019-07-28  Bruno Haible  <bruno@clisp.org>
8673         mbrtowc tests: Fix regression on mingw (regression from 2018-02-24).
8674         * tests/test-mbrtowc.c (main): Fix expected value of wc.
8676 2019-07-24  Bruno Haible  <bruno@clisp.org>
8678         pthread-h: Fix definitions of types and macros on mingw.
8679         * lib/pthread.in.h (pthread_t, pthread_attr_t, PTHREAD_CREATE_JOINABLE,
8680         PTHREAD_CREATE_DETACHED): Define also when module 'pthread-thread' is
8681         not in use.
8682         (pthread_once_t, PTHREAD_ONCE_INIT): Define also when module
8683         'pthread-once' is not in use.
8684         (pthread_mutex_t, pthread_mutexattr_t, PTHREAD_MUTEX_INITIALIZER,
8685         PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL, PTHREAD_MUTEX_ERRORCHECK,
8686         PTHREAD_MUTEX_RECURSIVE): Define also when module 'pthread-mutex' is not
8687         in use.
8688         (pthread_rwlock_t, pthread_rwlockattr_t, PTHREAD_RWLOCK_INITIALIZER):
8689         Define also when module 'pthread-rwlock' is not in use.
8690         (pthread_cond_t, pthread_condattr_t, PTHREAD_COND_INITIALIZER): Define
8691         also when module 'pthread-cond' is not in use.
8692         (pthread_key_t, PTHREAD_DESTRUCTOR_ITERATIONS): Define also when module
8693         'pthread-tss' is not in use.
8694         (pthread_spinlock_t): Define also when module 'pthread-spin' is not in
8695         use.
8697 2019-07-24  Simon Josefsson  <simon@josefsson.org>
8699         crypto/gc: Cope with libgcrypt without SM3.
8700         * lib/gc-libgcrypt.c (gc_hash_open): Guard SM3 usage.
8702 2019-07-23  Paul Eggert  <eggert@cs.ucla.edu>
8704         backupfile: fix resource leak on memory failure
8705         Problem found by Coverity (CID 1484214).
8706         * lib/backupfile.c (backupfile_internal): Don’t leak dirp.
8708 2019-07-22  Bruno Haible  <bruno@clisp.org>
8710         Avoid missing-declarations warning in various tests.
8711         * tests/test-argp.c (fail, test1, test2, test_file, test3, test4, test5,
8712         test6, test_optional, test7, test8, test9, test10, test11, test12,
8713         test13, test14, test15, test_fun): Declare static.
8714         * tests/test-cnd.c (test_cnd_wait): Likewise.
8715         * tests/test-cond.c (test_cond): Likewise.
8717 2019-07-22  Bernhard Voelker  <mail@bernhard-voelker.de>
8719         pthread tests: Avoid missing-declarations warning.
8720         * tests/test-pthread-cond.c (test_pthread_cond_wait): Declare static.
8722 2019-07-19  Bruno Haible  <bruno@clisp.org>
8724         parse-datetime: Avoid warnings from bison versions >= 3.3.
8725         Reported by Bernhard Voelker <mail@bernhard-voelker.de>.
8726         * modules/parse-datetime (Makefile.am): Don't pass option '-y' to bison.
8728 2019-07-19  Bruno Haible  <bruno@clisp.org>
8730         parse-datetime: Require Bison 2.4 or newer.
8731         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Set PARSE_DATETIME_BISON.
8732         Code taken from gettext's intl.m4.
8733         * modules/parse-datetime (Makefile.am): Use PARSE_DATETIME_BISON instead
8734         of YACC.
8736 2019-07-19  Bruno Haible  <bruno@clisp.org>
8738         areadlink-with-size, xgethostname, xgetdomainname: Fix GCC warning.
8739         * lib/areadlink-with-size.c: Include <string.h>.
8740         * lib/areadlinkat-with-size.c: Likewise.
8741         * lib/xgethostname.c: Likewise.
8742         * lib/xgetdomainname.c: Likewise.
8744 2019-07-19  Bernhard Voelker  <mail@bernhard-voelker.de>
8746         parse-datetime: avoid "%pure-parser" deprecation warning from Bison 3.4
8747         * lib/parse-datetime.y: Use "%define api.pure" rather than obsolescent
8748         "%pure-parser".  The former is available since Bison 2.3b (2008),
8749         while the latter is marked as obsolete since version 3.4 (May 2019).
8751 2019-07-16  Bruno Haible  <bruno@clisp.org>
8753         update-copyright: Make it work again (regression from 2019-06-15).
8754         Reported by Brian C. Lane <bcl@redhat.com>.
8755         * build-aux/update-copyright: Add back the -0777, -p, -i options.
8757 2019-07-14  Bruno Haible  <bruno@clisp.org>
8759         doc: Update info about <pthread.h>.
8760         * doc/posix-headers/pthread.texi: Mention the module 'pthread-h' instead
8761         of 'pthread'.
8763 2019-07-14  Bruno Haible  <bruno@clisp.org>
8765         pthread_sigmask tests: Use new multithread modules.
8766         * tests/test-pthread_sigmask2.c: Include <pthread.h> instead of
8767         glthread/thread.h.
8768         (main_thread, killer_thread): Change type to pthread_t.
8769         (main): Update accordingly.
8770         * modules/pthread_sigmask-tests (Depends-on): Add pthread-thread. Remove
8771         thread.
8773 2019-07-14  Bruno Haible  <bruno@clisp.org>
8775         pthread-tss: Add tests.
8776         * tests/test-pthread-tss.c: New file, based on tests/test-tls.c and
8777         tests/test-tss.c.
8778         * modules/pthread-tss-tests: New file.
8780 2019-07-14  Bruno Haible  <bruno@clisp.org>
8782         pthread-cond: Add tests.
8783         * tests/test-pthread-cond.c: New file, based on tests/test-cond.c and
8784         tests/test-cnd.c.
8785         * modules/pthread-cond-tests: New file.
8787 2019-07-14  Bruno Haible  <bruno@clisp.org>
8789         pthread-rwlock: Add tests.
8790         * tests/test-pthread-rwlock.c: New file, based on tests/test-lock.c.
8791         * modules/pthread-rwlock-tests: New file.
8793 2019-07-14  Bruno Haible  <bruno@clisp.org>
8795         pthread-mutex: Add tests.
8796         * tests/test-pthread-mutex.c: New file, based on tests/test-lock.c and
8797         tests/test-mtx.c.
8798         * modules/pthread-mutex-tests: New file.
8800 2019-07-14  Bruno Haible  <bruno@clisp.org>
8802         pthread-once: Add tests.
8803         * tests/test-pthread-once1.c: New file, based on tests/test-once.c and
8804         tests/test-call_once.c.
8805         * tests/test-pthread-once2.c: New file, based on tests/test-lock.c and
8806         tests/test-mtx.c.
8807         * modules/pthread-once-tests: New file.
8809 2019-07-14  Bruno Haible  <bruno@clisp.org>
8811         pthread-thread: Add tests.
8812         * tests/test-pthread-thread.c: New file, based on
8813         tests/test-thread_create.c and tests/test-thrd_create.c.
8814         * modules/pthread-thread-tests: New file.
8816 2019-07-14  Bruno Haible  <bruno@clisp.org>
8818         pthread: Turn into a convenience module.
8819         * lib/pthread.in.h: Remove declarations for extern inline functions.
8820         * lib/pthread.c: Remove file.
8821         * modules/pthread (Files): Remove it.
8822         (Depends-on): Add pthread-thread, pthread-once, pthread-mutex,
8823         pthread-rwlock, pthread-cond, pthread-tss, pthread-spin.
8824         (configure.ac): Don't compile lib/pthread.c. Don't set GNULIB_PTHREAD.
8825         * m4/pthread_h.m4 (gl_PTHREAD_H_DEFAULTS): Don't initialize
8826         GNULIB_PTHREAD.
8827         * modules/pthread-h (Makefile.am): Don't substitute GNULIB_PTHREAD.
8829 2019-07-14  Bruno Haible  <bruno@clisp.org>
8831         pthread-spin: New module.
8832         * lib/pthread.in.h (pthread_spin_init, pthread_spin_destroy,
8833         pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock): Remove
8834         inline definitions.
8835         * lib/pthread-spin.c: New file.
8836         * m4/pthread-spin.m4: New file.
8837         * modules/pthread-spin: New file.
8838         * doc/posix-functions/pthread_spin_init.texi: Mention the new module.
8839         * doc/posix-functions/pthread_spin_lock.texi: Likewise.
8840         * doc/posix-functions/pthread_spin_trylock.texi: Likewise.
8841         * doc/posix-functions/pthread_spin_unlock.texi: Likewise.
8842         * doc/posix-functions/pthread_spin_destroy.texi: Likewise.
8844 2019-07-14  Bruno Haible  <bruno@clisp.org>
8846         pthread-tss: New module.
8847         * lib/pthread-tss.c: New file.
8848         * m4/pthread-tss.m4: New file.
8849         * modules/pthread-tss: New file.
8850         * doc/posix-functions/pthread_key_create.texi: Mention the new module.
8851         * doc/posix-functions/pthread_setspecific.texi: Likewise.
8852         * doc/posix-functions/pthread_getspecific.texi: Likewise.
8853         * doc/posix-functions/pthread_key_delete.texi: Likewise.
8855 2019-07-14  Bruno Haible  <bruno@clisp.org>
8857         pthread-cond: New module.
8858         * lib/pthread.in.h (pthread_cond_destroy, pthread_cond_init,
8859         pthread_cond_signal, pthread_cond_wait): Remove inline definitions.
8860         * lib/pthread-cond.c: New file.
8861         * m4/pthread-cond.m4: New file.
8862         * modules/pthread-cond: New file.
8863         * doc/posix-functions/pthread_cond_init.texi: Mention the new module.
8864         * doc/posix-functions/pthread_condattr_init.texi: Likewise.
8865         * doc/posix-functions/pthread_condattr_destroy.texi: Likewise.
8866         * doc/posix-functions/pthread_cond_wait.texi: Likewise.
8867         * doc/posix-functions/pthread_cond_timedwait.texi: Likewise.
8868         * doc/posix-functions/pthread_cond_signal.texi: Likewise.
8869         * doc/posix-functions/pthread_cond_broadcast.texi: Likewise.
8870         * doc/posix-functions/pthread_cond_destroy.texi: Likewise.
8872 2019-07-14  Bruno Haible  <bruno@clisp.org>
8874         pthread-rwlock: New module.
8875         * lib/pthread-rwlock.c: New file, based on lib/glthread/lock.c.
8876         * m4/pthread-rwlock.m4: New file.
8877         * modules/pthread-rwlock: New file.
8878         * doc/posix-functions/pthread_rwlock_init.texi: Mention the new module
8879         and the Android problem.
8880         * doc/posix-functions/pthread_rwlockattr_init.texi: Likewise.
8881         * doc/posix-functions/pthread_rwlockattr_destroy.texi: Likewise.
8882         * doc/posix-functions/pthread_rwlock_rdlock.texi: Likewise.
8883         * doc/posix-functions/pthread_rwlock_wrlock.texi: Likewise.
8884         * doc/posix-functions/pthread_rwlock_tryrdlock.texi: Likewise.
8885         * doc/posix-functions/pthread_rwlock_trywrlock.texi: Likewise.
8886         * doc/posix-functions/pthread_rwlock_timedrdlock.texi: Likewise.
8887         * doc/posix-functions/pthread_rwlock_timedwrlock.texi: Likewise.
8888         * doc/posix-functions/pthread_rwlock_unlock.texi: Likewise.
8889         * doc/posix-functions/pthread_rwlock_destroy.texi: Likewise.
8891 2019-07-14  Bruno Haible  <bruno@clisp.org>
8893         pthread-mutex: New module.
8894         * lib/pthread.in.h (pthread_mutexattr_destroy, pthread_mutexattr_init,
8895         pthread_mutexattr_settype, pthread_mutex_destroy, pthread_mutex_init,
8896         pthread_mutex_lock, pthread_mutex_trylock, pthread_mutex_timedlock,
8897         pthread_mutex_unlock): Remove inline definitions.
8898         * lib/pthread-mutex.c: New file.
8899         * m4/pthread-mutex.m4: New file.
8900         * modules/pthread-mutex: New file.
8901         * doc/posix-functions/pthread_mutex_init.texi: Mention the new module.
8902         * doc/posix-functions/pthread_mutexattr_init.texi: Likewise.
8903         * doc/posix-functions/pthread_mutexattr_gettype.texi: Likewise.
8904         * doc/posix-functions/pthread_mutexattr_settype.texi: Likewise.
8905         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
8906         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
8907         * doc/posix-functions/pthread_mutexattr_destroy.texi: Likewise.
8908         * doc/posix-functions/pthread_mutex_lock.texi: Likewise.
8909         * doc/posix-functions/pthread_mutex_trylock.texi: Likewise.
8910         * doc/posix-functions/pthread_mutex_timedlock.texi: Likewise.
8911         * doc/posix-functions/pthread_mutex_unlock.texi: Likewise.
8912         * doc/posix-functions/pthread_mutex_destroy.texi: Likewise.
8914 2019-07-14  Bruno Haible  <bruno@clisp.org>
8916         pthread-once: New module.
8917         * lib/pthread-once.c: New file.
8918         * m4/pthread-once.m4: New file.
8919         * modules/pthread-once: New file.
8920         * doc/posix-functions/pthread_once.texi: Mention the new module.
8922 2019-07-14  Bruno Haible  <bruno@clisp.org>
8924         pthread-thread: New module.
8925         * lib/pthread.in.h (pthread_create, pthread_exit, pthread_join): Remove
8926         inline definitions.
8927         * lib/pthread-thread.c: New file.
8928         * m4/pthread-thread.m4: New file.
8929         * modules/pthread-thread: New file.
8930         * doc/posix-functions/pthread_create.texi: Mention the new module.
8931         * doc/posix-functions/pthread_attr_init.texi: Likewise.
8932         * doc/posix-functions/pthread_attr_getdetachstate.texi: Likewise.
8933         * doc/posix-functions/pthread_attr_setdetachstate.texi: Likewise.
8934         * doc/posix-functions/pthread_attr_destroy.texi: Likewise.
8935         * doc/posix-functions/pthread_self.texi: Likewise.
8936         * doc/posix-functions/pthread_equal.texi: Likewise.
8937         * doc/posix-functions/pthread_detach.texi: Likewise.
8938         * doc/posix-functions/pthread_join.texi: Likewise.
8939         * doc/posix-functions/pthread_exit.texi: Likewise.
8941 2019-07-14  Bruno Haible  <bruno@clisp.org>
8943         pthread-h: Prepare for adding new modules.
8944         * lib/pthread.in.h: Define the types and macros for each of the
8945         facilities separately.
8946         * m4/pthread_h.m4 (gl_PTHREAD_H): Set HAVE_PTHREAD_CREATE_DETACHED,
8947         HAVE_PTHREAD_MUTEX_RECURSIVE, HAVE_PTHREAD_MUTEX_ROBUST,
8948         HAVE_PTHREAD_PROCESS_SHARED.
8949         (gl_PTHREAD_H_DEFAULTS): Initialize HAVE_PTHREAD_CREATE_DETACHED,
8950         HAVE_PTHREAD_MUTEX_RECURSIVE, HAVE_PTHREAD_MUTEX_ROBUST,
8951         HAVE_PTHREAD_PROCESS_SHARED.
8952         * modules/pthread-h (Makefile.am): Substitute
8953         HAVE_PTHREAD_CREATE_DETACHED, HAVE_PTHREAD_MUTEX_RECURSIVE,
8954         HAVE_PTHREAD_MUTEX_ROBUST, HAVE_PTHREAD_PROCESS_SHARED.
8956 2019-07-14  Bruno Haible  <bruno@clisp.org>
8958         pthread-h: Add declarations of essential pthread functions.
8959         * lib/pthread.in.h: Include snippets.
8960         (pthread_create, pthread_attr_init, pthread_attr_getdetachstate,
8961         pthread_attr_setdetachstate, pthread_attr_destroy, pthread_self,
8962         pthread_equal, pthread_detach, pthread_join, pthread_exit, pthread_once,
8963         pthread_mutex_init, pthread_mutexattr_init, pthread_mutexattr_gettype,
8964         pthread_mutexattr_settype, pthread_mutexattr_getrobust,
8965         pthread_mutexattr_setrobust, pthread_mutexattr_destroy,
8966         pthread_mutex_lock, pthread_mutex_trylock, pthread_mutex_unlock,
8967         pthread_mutex_destroy, pthread_rwlock_init, pthread_rwlockattr_init,
8968         pthread_rwlockattr_destroy, pthread_rwlock_rdlock,
8969         pthread_rwlock_wrlock, pthread_rwlock_tryrdlock,
8970         pthread_rwlock_trywrlock, pthread_rwlock_timedrdlock,
8971         pthread_rwlock_timedwrlock, pthread_rwlock_unlock,
8972         pthread_rwlock_destroy, pthread_cond_init, pthread_condattr_init,
8973         pthread_condattr_destroy, pthread_cond_wait, pthread_cond_timedwait,
8974         pthread_cond_signal, pthread_cond_broadcast, pthread_cond_destroy,
8975         pthread_key_create, pthread_setspecific, pthread_getspecific,
8976         pthread_key_delete, pthread_spin_init, pthread_spin_lock,
8977         pthread_spin_trylock, pthread_spin_unlock, pthread_spin_destroy): New
8978         declarations.
8979         (pthread_mutex_timedlock): Move declaration.
8980         * m4/pthread_h.m4 (gl_PTHREAD_H): Check whether the new functions are
8981         declared.
8982         (gl_PTHREAD_H_DEFAULTS): Initialize GNULIB_PTHREAD_THREAD,
8983         GNULIB_PTHREAD_ONCE, GNULIB_PTHREAD_MUTEX, GNULIB_PTHREAD_RWLOCK,
8984         GNULIB_PTHREAD_COND, GNULIB_PTHREAD_TSS, GNULIB_PTHREAD_SPIN and the
8985         HAVE_* and REPLACE_* variables for the new functions.
8986         * modules/pthread-h (Depends-on): Add snippet/c++defs,
8987         snippet/_Noreturn, snippet/arg-nonnull, snippet/warn-on-use.
8988         (Makefile.am): Substitute GNULIB_PTHREAD_THREAD, GNULIB_PTHREAD_ONCE,
8989         GNULIB_PTHREAD_MUTEX, GNULIB_PTHREAD_RWLOCK, GNULIB_PTHREAD_COND,
8990         GNULIB_PTHREAD_TSS, GNULIB_PTHREAD_SPIN and the HAVE_* and REPLACE_*
8991         variables for the new functions. Split the sed script, to avoid the
8992         limit of 99 commands of HP-UX sed.
8993         * tests/test-pthread-c++.cc: Check the signature of the new functions.
8995 2019-07-14  Bruno Haible  <bruno@clisp.org>
8997         pthread-h: Respect --enable-threads={posix|windows} option on mingw.
8998         * m4/pthread_h.m4 (gl_PTHREAD_H): Require gl_THREADLIB. Set
8999         HAVE_PTHREAD_H if gl_threads_api is 'windows'.
9000         (LIB_PTHREAD): Rely on $LIBMULTITHREAD from threadlib.m4.
9001         * modules/pthread (Link): Change to $(LIBMULTITHREAD).
9002         * modules/pthread-h (Depends-on): Add threadlib.
9003         (Link): Change to $(LIBTHREAD).
9004         * modules/pthread-h-c++-tests (test_pthread_c___LDADD): Use
9005         $(LIBMULTITHREAD) instead of $(LIB_PTHREAD).
9007 2019-07-14  Bruno Haible  <bruno@clisp.org>
9009         pthread-h: Add C++ tests.
9010         * tests/test-pthread-c++.cc: New file.
9011         * modules/pthread-h-c++-tests: New file.
9013 2019-07-14  Bruno Haible  <bruno@clisp.org>
9015         pthread-h: Add tests.
9016         * tests/test-pthread.c: New file.
9017         * modules/pthread-h-tests: New file.
9019 2019-07-14  Bruno Haible  <bruno@clisp.org>
9021         pthread-h: New module.
9022         * lib/pthread.in.h: Define replacement functions only if GNULIB_PTHREAD
9023         is 1.
9024         * m4/pthread_h.m4: Renamed from m4/pthread.m4.
9025         (gl_PTHREAD_H): Renamed from gl_PTHREAD_CHECK. Don't test whether
9026         <pthread.h> pollutes the namespace; instead, prepare for generating a
9027         pthread.h always. Substitute HAVE_PTHREAD_H here.
9028         (gl_PTHREAD_H_DEFAULTS): Renamed from gl_PTHREAD_DEFAULTS. Initialize
9029         GNULIB_PTHREAD. Don't initialize HAVE_PTHREAD_H here.
9030         * modules/pthread-h: New file, based on modules/pthread.
9031         * modules/pthread: Rely on 'pthread-h'.
9032         * m4/pthread_mutex_timedlock.m4 (gl_FUNC_PTHREAD_MUTEX_TIMEDLOCK):
9033         Update.
9034         * modules/pthread_mutex_timedlock (Depends-on): Add pthread-h. Remove
9035         pthread.
9037 2019-07-14  Bruno Haible  <bruno@clisp.org>
9039         sched_yield: New module.
9040         * lib/sched.in.h: Add _GL_FUNCDECL_RPL, _GL_WARN_ON_USE placeholders.
9041         (sched_yield): New declaration.
9042         * lib/sched_yield.c: New file.
9043         * m4/sched_yield.m4: New file.
9044         * m4/sched_h.m4 (gl_SCHED_H): Require gl_SCHED_H_DEFAULTS. Arrange to
9045         provide a replacement sched.h always. Test whether sched_yield is
9046         declared.
9047         (gl_SCHED_MODULE_INDICATOR, gl_SCHED_H_DEFAULTS): New macros.
9048         * modules/sched (Depends-on): Add snippet/c++defs, snippet/warn-on-use.
9049         (Makefile.am): Provide a replacement sched.h always. Substitute
9050         GNULIB_SCHED_YIELD, HAVE_SCHED_YIELD, REPLACE_SCHED_YIELD,
9051         _GL_FUNCDECL_RPL, _GL_WARN_ON_USE.
9052         * modules/sched_yield: New file.
9053         * doc/posix-functions/sched_yield.texi: Mention the new module.
9055 2019-07-14  Bruno Haible  <bruno@clisp.org>
9057         windows-spin: New module.
9058         * lib/windows-spin.h: New file.
9059         * lib/windows-spin.c: New file.
9060         * modules/windows-spin: New file.
9062 2019-07-14  Bruno Haible  <bruno@clisp.org>
9064         windows-timedrwlock: New module.
9065         * lib/windows-timedrwlock.h: New file, based on windows-rwlock.h.
9066         * lib/windows-timedrwlock.c: New file, based on windows-rwlock.c and
9067         windows-cond.c.
9068         * lib/windows-cond.h (struct glwthread_waitqueue_link): Protect against
9069         redefinition conflict with windows-timedrwlock.h.
9070         * modules/windows-timedrwlock: New file.
9072 2019-07-14  Bruno Haible  <bruno@clisp.org>
9074         windows-rwlock: New module.
9075         * lib/windows-rwlock.h: New file, extracted from lib/glthread/lock.h.
9076         * lib/windows-rwlock.c: New file, extracted from lib/glthread/lock.c.
9077         * lib/glthread/lock.h: Include windows-rwlock.h. Don't include
9078         windows-initguard.h.
9079         (gl_rwlock_t): Define using glwthread_rwlock_t.
9080         (gl_rwlock_initializer): Define using GLWTHREAD_RWLOCK_INIT.
9081         (glthread_rwlock_init): Define using glwthread_rwlock_init.
9082         (glthread_rwlock_rdlock): Define using glwthread_rwlock_rdlock.
9083         (glthread_rwlock_wrlock): Define using glwthread_rwlock_wrlock.
9084         (glthread_rwlock_unlock): Define using glwthread_rwlock_unlock.
9085         (glthread_rwlock_destroy): Define using glwthread_rwlock_destroy.
9086         (glthread_rwlock_init_func, glthread_rwlock_rdlock_func,
9087         glthread_rwlock_wrlock_func, glthread_rwlock_unlock_func,
9088         glthread_rwlock_destroy_func): Remove declarations.
9089         * lib/glthread/lock.c (gl_waitqueue_t): Remove type.
9090         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_notify_first,
9091         gl_waitqueue_notify_all, glthread_rwlock_init_func,
9092         glthread_rwlock_rdlock_func, glthread_rwlock_wrlock_func,
9093         glthread_rwlock_unlock_func, glthread_rwlock_destroy_func): Remove
9094         functions.
9095         * modules/windows-rwlock: New file.
9096         * modules/lock (Depends-on): Add windows-rwlock.
9098 2019-07-14  Bruno Haible  <bruno@clisp.org>
9100         windows-thread: Add support for creating a thread in detached state.
9101         * lib/windows-thread.h (GLWTHREAD_ATTR_DETACHED): New macro.
9102         (glwthread_thread_create): Add attr argument.
9103         * lib/windows-thread.c (glwthread_thread_create): Likewise.
9104         * lib/glthread/thread.h (glthread_create): Update.
9105         * lib/thrd.c (thrd_create): Update.
9107 2019-07-14  Bruno Haible  <bruno@clisp.org>
9109         windows-*: Rename glwthread_spinlock_t to glwthread_initguard_t.
9110         * lib/windows-initguard.h: Renamed from lib/windows-spinlock.h.
9111         (glwthread_initguard_t): Renamed from glwthread_spinlock_t.
9112         (GLWTHREAD_INITGUARD_INIT): Renamed from GLWTHREAD_SPINLOCK_INIT.
9113         * lib/windows-mutex.h: Update.
9114         * lib/windows-recmutex.h: Likewise.
9115         * lib/windows-timedmutex.h: Likewise.
9116         * lib/windows-timedrecmutex.h: Likewise.
9117         * lib/windows-cond.h: Likewise.
9118         * lib/glthread/lock.h: Likewise.
9119         * modules/windows-mutex (Files): Add lib/windows-initguard.h. Remove
9120         lib/windows-spinlock.h.
9121         * modules/windows-recmutex (Files): Likewise.
9122         * modules/windows-timedmutex (Files): Likewise.
9123         * modules/windows-timedrecmutex (Files): Likewise.
9124         * modules/windows-cond (Files): Likewise.
9125         * modules/threads-h (Files): Likewise.
9127 2019-07-14  Bruno Haible  <bruno@clisp.org>
9129         doc: Fix info about pthread API in HP-UX.
9130         * doc/posix-functions/pthread_*.texi: Fix info about HP-UX 11.
9132 2019-07-14  Bruno Haible  <bruno@clisp.org>
9134         threads-h: Fix generation of threads.h.
9135         * modules/threads-h (Makefile.am): Insert the required header file
9136         snippets.
9138 2019-07-09  Bruno Haible  <bruno@clisp.org>
9140         striconveh test: Fix a compilation failure when iconv is not available.
9141         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9142         * tests/test-striconveh.c (main): Move iconv_close invocations inside
9143         HAVE_ICONV.
9145 2019-07-07  Akim Demaille  <akim@lrde.epita.fr>
9147         argmatch: adjust columns for help2man.
9148         * lib/argmatch.h (argmatch_##Name##_doc_col): If some argument
9149         requires column 20 or more, return 20.
9151 2019-07-06  Paul Eggert  <eggert@cs.ucla.edu>
9153         areadlink-with-size: avoid realloc when size==0
9154         * lib/areadlink-with-size.c (areadlink_with_size):
9155         * lib/areadlinkat-with-size.c (areadlinkat_with_size):
9156         Reallocate at the end to the actual size, to avoid memory waste,
9157         as suggested by Bruno Haible.  But when the guessed size is zero -
9158         useful when the size is unknown - do the initial small readlink
9159         into the stack, to avoid that realloc in the usual case.
9161 2019-07-06  Pádraig Brady  <P@draigBrady.com>
9163         areadlink-with-size: guess a buffer size with 0 size
9164         The size is usually taken from st_size, which can be zero,
9165         resulting in inefficient operation.
9166         Instead let zero select an initial memory allocation
9167         of 128 bytes, which most symlinks fit within.
9168         * lib/areadlink-with-size.c (areadlink_with_size):
9169         Start with a 128 byte buffer, for SIZE == 0.
9170         * lib/areadlinkat-with-size.c (areadlinkat_with_size): Likewise.
9172 2019-07-06  Konstantin Kharlamov  <Hi-Angel@yandex.ru>
9174         Replace manually crafted hex regexes with [:xdigit:]
9175         * build-aux/gitlog-to-changelog (parse_amend_file)
9176         (git_dir_option):
9177         Replace various combinations of [0-9a-fA-F] with [[:xdigit:]].
9178         This patch is backported from Emacs (Bug#36167).
9180 2019-07-06  Bruno Haible  <bruno@clisp.org>
9182         error: Fix documentation.
9183         * doc/glibc-functions/error_at_line.texi: Document what the 'error'
9184         module provides.
9185         * doc/glibc-functions/error_message_count.texi: Likewise.
9186         * doc/glibc-functions/error_one_per_line.texi: Likewise.
9187         * doc/glibc-functions/error_print_progname.texi: Likewise.
9189 2019-07-06  Bruno Haible  <bruno@clisp.org>
9191         doc: Remove documentation of glibc <= 2.1.x as a supported platform.
9192         * doc/gnulib-intro.texi (Target Platforms): Mention that glibc 2.1.x
9193         and older is unsupported.
9194         * doc/**/*.texi: Update.
9196 2019-07-06  Bruno Haible  <bruno@clisp.org>
9198         doc: Remove documentation of Linux libc5 as a supported platform.
9199         * doc/posix-functions/iswalnum.texi: Don't mention workarounds specific
9200         to Linux libc5.
9201         * doc/posix-functions/iswalpha.texi: Likewise.
9202         * doc/posix-functions/iswblank.texi: Likewise.
9203         * doc/posix-functions/iswcntrl.texi: Likewise.
9204         * doc/posix-functions/iswdigit.texi: Likewise.
9205         * doc/posix-functions/iswgraph.texi: Likewise.
9206         * doc/posix-functions/iswlower.texi: Likewise.
9207         * doc/posix-functions/iswprint.texi: Likewise.
9208         * doc/posix-functions/iswpunct.texi: Likewise.
9209         * doc/posix-functions/iswspace.texi: Likewise.
9210         * doc/posix-functions/iswupper.texi: Likewise.
9211         * doc/posix-functions/iswxdigit.texi: Likewise.
9212         * doc/posix-functions/snprintf.texi: Likewise.
9213         * doc/posix-functions/vsnprintf.texi: Likewise.
9215 2019-07-06  Bruno Haible  <bruno@clisp.org>
9217         doc: Remove documentation of Tandem/NSK as a supported platform.
9218         * doc/posix-headers/stdlib.texi: Don't mention workarounds specific to
9219         Tandem/NSK.
9220         * doc/**/*.texi: Update.
9222 2019-07-06  Bruno Haible  <bruno@clisp.org>
9224         doc: Remove documentation of Mac OS X <= 10.4 as a supported platform.
9225         * doc/gnulib-intro.texi (Target Platforms): Mention that Mac OS X 10.4
9226         and older is unsupported.
9227         * doc/posix-functions/acosl.texi: Don't mention workarounds specific to
9228         Mac OS X 10.4 and older.
9229         * doc/posix-functions/asinl.texi: Likewise.
9230         * doc/posix-functions/atanl.texi: Likewise.
9231         * doc/posix-functions/cosl.texi: Likewise.
9232         * doc/posix-functions/expl.texi: Likewise.
9233         * doc/posix-functions/frexpl.texi: Likewise.
9234         * doc/posix-functions/gettimeofday.texi: Likewise.
9235         * doc/posix-functions/logl.texi: Likewise.
9236         * doc/posix-functions/mkstemp.texi: Likewise.
9237         * doc/posix-functions/sinl.texi: Likewise.
9238         * doc/posix-functions/sqrtl.texi: Likewise.
9239         * doc/posix-functions/tanl.texi: Likewise.
9240         * doc/posix-functions/wcswidth.texi: Likewise.
9241         * doc/**/*.texi: Update.
9243 2019-07-06  Bruno Haible  <bruno@clisp.org>
9245         doc: Remove documentation of AIX 4 as a supported platform.
9246         * doc/gnulib-intro.texi (Target Platforms): Mention that AIX 4 is
9247         unsupported.
9248         * doc/posix-functions/nanosleep.texi: Don't mention AIX 4 specific
9249         workarounds.
9250         * doc/posix-functions/strnlen.texi: Likewise.
9251         * doc/posix-headers/inttypes.texi: Likewise.
9252         * doc/**/*.texi: Update.
9254 2019-07-06  Bruno Haible  <bruno@clisp.org>
9256         doc: Remove documentation of HP-UX 10 as a supported platform.
9257         * doc/gnulib-intro.texi (Target Platforms): Mention that HP-UX 10 is
9258         unsupported.
9259         * doc/*-functions/*printf.texi: Don't mention HP-UX 10 specific
9260         workarounds.
9261         * doc/posix-functions/gmtime_r.texi: Likewise.
9262         * doc/posix-functions/localtime_r.texi: Likewise.
9263         * doc/posix-functions/mkstemp.texi: Likewise.
9264         * doc/**/*.texi: Update.
9266 2019-07-06  Bruno Haible  <bruno@clisp.org>
9268         doc: Remove documentation of Interix 3.5 as a supported platform.
9269         * doc/gnulib-intro.texi (Target Platforms): Mention that Interix is
9270         unsupported.
9271         * doc/posix-functions/select.texi: Don't mention Interix specific
9272         workarounds.
9273         * doc/posix-headers/signal.texi: Likewise.
9274         * doc/**/*.texi: Update.
9276 2019-07-06  Bruno Haible  <bruno@clisp.org>
9278         doc: Remove documentation of IRIX 6.4 and older as supported platforms.
9279         * doc/gnulib-intro.texi (Target Platforms): Mention that IRIX <= 6.4 is
9280         unsupported.
9281         * doc/pastposix-functions/usleep.texi: Don't mention IRIX specific
9282         workarounds.
9283         * doc/posix-functions/nl_langinfo.texi: Likewise.
9284         * doc/posix-functions/remainder.texi: Likewise.
9285         * doc/posix-functions/towlower.texi: Likewise.
9286         * doc/posix-functions/towupper.texi: Likewise.
9287         * doc/posix-functions/vsnprintf.texi: Likewise.
9288         * doc/posix-functions/wcscat.texi: Likewise.
9289         * doc/posix-functions/wcschr.texi: Likewise.
9290         * doc/posix-functions/wcscmp.texi: Likewise.
9291         * doc/posix-functions/wcscpy.texi: Likewise.
9292         * doc/posix-functions/wcscspn.texi: Likewise.
9293         * doc/posix-functions/wcslen.texi: Likewise.
9294         * doc/posix-functions/wcsncat.texi: Likewise.
9295         * doc/posix-functions/wcsncmp.texi: Likewise.
9296         * doc/posix-functions/wcsncpy.texi: Likewise.
9297         * doc/posix-functions/wcspbrk.texi: Likewise.
9298         * doc/posix-functions/wcsrchr.texi: Likewise.
9299         * doc/posix-functions/wcsspn.texi: Likewise.
9300         * doc/posix-headers/langinfo.texi: Likewise.
9301         * doc/posix-headers/signal.texi: Likewise.
9302         * doc/posix-headers/wchar.texi: Likewise.
9303         * doc/posix-headers/wctype.texi: Likewise.
9304         * doc/**/*.texi: Update.
9306 2019-07-05  Bruno Haible  <bruno@clisp.org>
9308         doc: Remove documentation of OSF/1 as supported platform.
9309         * doc/gnulib-intro.texi (Target Platforms): Mention that OSF/1 is
9310         unsupported.
9311         * doc/glibc-functions/getdomainname.texi: Don't mention OSF/1 specific
9312         workarounds.
9313         * doc/glibc-functions/pthread_setname_np.texi: Likewise.
9314         * doc/glibc-functions/ptsname_r.texi: Likewise.
9315         * doc/posix-functions/ceil.texi: Likewise.
9316         * doc/posix-functions/ceilf.texi: Likewise.
9317         * doc/posix-functions/ceill.texi: Likewise.
9318         * doc/posix-functions/fchdir.texi: Likewise.
9319         * doc/posix-functions/floor.texi: Likewise.
9320         * doc/posix-functions/floorf.texi: Likewise.
9321         * doc/posix-functions/fmod.texi: Likewise.
9322         * doc/posix-functions/fmodf.texi: Likewise.
9323         * doc/posix-functions/fmodl.texi: Likewise.
9324         * doc/posix-functions/log.texi: Likewise.
9325         * doc/posix-functions/logf.texi: Likewise.
9326         * doc/posix-functions/logl.texi: Likewise.
9327         * doc/posix-functions/log10.texi: Likewise.
9328         * doc/posix-functions/log10f.texi: Likewise.
9329         * doc/posix-functions/log10l.texi: Likewise.
9330         * doc/posix-functions/log2.texi: Likewise.
9331         * doc/posix-functions/log2f.texi: Likewise.
9332         * doc/posix-functions/log2l.texi: Likewise.
9333         * doc/posix-functions/mbrtowc.texi: Likewise.
9334         * doc/posix-functions/recv.texi: Likewise.
9335         * doc/posix-functions/recvfrom.texi: Likewise.
9336         * doc/posix-functions/remainder.texi: Likewise.
9337         * doc/posix-functions/remainderf.texi: Likewise.
9338         * doc/posix-functions/remainderl.texi: Likewise.
9339         * doc/posix-functions/round.texi: Likewise.
9340         * doc/posix-functions/roundf.texi: Likewise.
9341         * doc/posix-functions/roundl.texi: Likewise.
9342         * doc/posix-functions/send.texi: Likewise.
9343         * doc/posix-functions/sendto.texi: Likewise.
9344         * doc/posix-functions/setenv.texi: Likewise.
9345         * doc/posix-functions/snprintf.texi: Likewise.
9346         * doc/posix-functions/tcgetsid.texi: Likewise.
9347         * doc/posix-functions/trunc.texi: Likewise.
9348         * doc/posix-functions/truncf.texi: Likewise.
9349         * doc/posix-functions/truncl.texi: Likewise.
9350         * doc/posix-functions/ttyname_r.texi: Likewise.
9351         * doc/posix-functions/unsetenv.texi: Likewise.
9352         * doc/posix-functions/wcsrtombs.texi: Likewise.
9353         * doc/posix-headers/sys_select.texi: Likewise.
9354         * doc/posix-headers/wchar.texi: Likewise.
9355         * doc/posix-headers/wctype.texi: Likewise.
9356         * doc/**/*.texi: Update.
9358 2019-07-05  Bruno Haible  <bruno@clisp.org>
9360         doc: Remove documentation of BSDI and BSD/OS as supported platforms.
9361         * doc/**/*.texi: Update.
9363 2019-07-05  Bruno Haible  <bruno@clisp.org>
9365         doc: Remove documentation of Solaris 8 and older as supported platforms.
9366         * doc/gnulib-intro.texi (Target Platforms): Mention that Solaris <= 8 is
9367         unsupported.
9368         * doc/posix-functions/mbrtowc.texi: Don't mention Solaris specific
9369         workarounds.
9370         * doc/posix-functions/memcmp.texi: Likewise.
9371         * doc/posix-functions/rename.texi: Likewise.
9372         * doc/posix-functions/tzset.texi: Likewise.
9373         * doc/posix-headers/wctype.texi: Likewise.
9374         * doc/**/*.texi: Update.
9376 2019-07-05  Bruno Haible  <bruno@clisp.org>
9378         doc: Remove documentation of Interix 3.5 as a supported platform.
9379         * doc/**/*.texi: Update.
9381 2019-07-05  Bruno Haible  <bruno@clisp.org>
9383         doc: Remove documentation of BeOS as a supported platform.
9384         * doc/gnulib-intro.texi (Target Platforms): Mention that BeOS is
9385         unsupported.
9386         * doc/*-functions/*printf.texi: Don't mention BeOS specific workarounds.
9387         * doc/posix-functions/getdelim.texi: Likewise.
9388         * doc/**/*.texi: Update.
9390 2019-07-05  Bruno Haible  <bruno@clisp.org>
9392         thread, lock, cond, tls: Remove support for Pth threads.
9393         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Don't document
9394         --enable-threads=pth any more.
9395         (gl_THREADLIB_BODY): Don't set USE_PTH_THREADS any more.
9396         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Update comment.
9397         * m4/threads.m4 (gl_THREADS_H): Remove test for conflict between Pth
9398         threads and ISO C11 threads.
9399         * lib/glthread/thread.h: Remove code for USE_PTH_THREADS.
9400         * lib/glthread/lock.h: Likewise.
9401         * lib/glthread/lock.c: Likewise.
9402         * lib/glthread/cond.h: Likewise.
9403         * lib/glthread/cond.c: Likewise.
9404         * lib/glthread/tls.h: Likewise.
9405         * lib/glthread/tls.c: Likewise.
9406         * lib/glthread/yield.h: Likewise.
9407         * lib/regex_internal.h: Likewise.
9408         * tests/test-thread_create.c: Likewise.
9409         * tests/test-lock.c: Likewise.
9410         * tests/test-cond.c: Likewise.
9411         * tests/test-tls.c: Likewise.
9412         * tests/test-rwlock1.c: Don't include glthread/yield.h.
9413         (main): Sleep without calling gl_thread_yield.
9415 2019-07-05  Bruno Haible  <bruno@clisp.org>
9417         thread, lock, cond, tls: Remove support for old Solaris threads.
9418         Solaris >= 2.5.1 has POSIX threads.
9419         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Don't document
9420         --enable-threads=solaris any more.
9421         (gl_THREADLIB_BODY): Don't set USE_SOLARIS_THREADS any more.
9422         * lib/glthread/thread.c: Update comment.
9423         * lib/glthread/thread.h: Remove code for USE_SOLARIS_THREADS.
9424         * lib/glthread/lock.h: Likewise.
9425         * lib/glthread/lock.c: Likewise.
9426         * lib/glthread/cond.h: Likewise.
9427         * lib/glthread/cond.c: Likewise.
9428         * lib/glthread/tls.h: Likewise.
9429         * lib/glthread/tls.c: Likewise.
9430         * lib/glthread/yield.h: Likewise.
9431         * lib/regex_internal.h: Likewise.
9432         * tests/test-thread_create.c: Likewise.
9433         * tests/test-lock.c: Likewise.
9434         * tests/test-cond.c: Likewise.
9435         * tests/test-tls.c: Likewise.
9437 2019-07-05  Bruno Haible  <bruno@clisp.org>
9439         getcwd-lgpl, getcwd: Don't call realloc when it is pointless.
9440         * lib/getcwd-lgpl.c (rpl_getcwd): Don't call realloc if the result's
9441         needed size is equal to the allocated size.
9442         * lib/getcwd.c (__getcwd): Likewise.
9444 2019-07-05  Bruno Haible  <bruno@clisp.org>
9446         xgetdomainname: Don't return an excessive memory allocation.
9447         * lib/xgetdomainname.c (xgetdomainname): Shrink the domainname buffer
9448         before returning it.
9450 2019-07-05  Bruno Haible  <bruno@clisp.org>
9452         xgethostname: Don't return an excessive memory allocation.
9453         * lib/xgethostname.c (xgethostname): Shrink the hostname buffer before
9454         returning it.
9456 2019-07-05  Bruno Haible  <bruno@clisp.org>
9458         areadlinkat-with-size: Don't return an excessive memory allocation.
9459         * lib/areadlinkat-with-size.c (areadlinkat_with_size): Shrink the buffer
9460         before returning it.
9462 2019-07-05  Bruno Haible  <bruno@clisp.org>
9464         areadlink-with-size: Don't return an excessive memory allocation.
9465         Reported by Andreas Dilger <adilger@whamcloud.com>.
9466         * lib/areadlink-with-size.c (areadlink_with_size): Shrink the buffer
9467         before returning it.
9469 2019-07-03  Bruno Haible  <bruno@clisp.org>
9471         renameatu: Fix test failure on MSVC.
9472         * lib/at-func2.c (at_func2): Fail with ENOENT if file1 or file2 is the
9473         empty string.
9475 2019-07-03  Bruno Haible  <bruno@clisp.org>
9477         mbrtowc: Fix invalid use of mbtowc() on MSVC.
9478         * lib/mbrtowc.c: Include glthread/lock.h.
9479         (mbtowc_lock): New variable.
9480         (mbrtowc): Treat UTF-8 encoding without locking. For the other
9481         encodings, explicitly reset the internal state of mbtowc, and protect
9482         this through a lock.
9483         * modules/mbrtowc (Depends-on): Add lock.
9485 2019-07-03  Akim Demaille  <akim@lrde.epita.fr>
9487         argmatch: don't define _ in the header.
9488         Reported by Jim Meyering.
9489         * lib/argmatch.h (N_, _): Don't define.
9490         Use gettext instead.
9491         * lib/argmatch.h (_): Define.
9492         * tests/test-argmatch.c (N_): Define.
9494 2019-07-02  Paul Eggert  <eggert@cs.ucla.edu>
9496         verify: document ‘assume’ better
9497         * lib/verify.h: Reword doc (Bug#36370).
9499 2019-07-02  Bruno Haible  <bruno@clisp.org>
9501         localcharset, nl_langinfo: Fix return value for UTF-8 locales on MSVC.
9502         * lib/localcharset.c (locale_charset): Return "UTF-8" instead of
9503         "CPutf8".
9504         * lib/nl_langinfo.c (ctype_codeset): Likewise.
9506 2019-07-02  Bruno Haible  <bruno@clisp.org>
9508         getcwd: Fix crash when invoked with size = 0 on MSVC.
9509         * lib/getcwd.c: Include msvc-inval.h.
9510         (getcwd_nothrow): New function/macro.
9511         (getcwd_system): New macro.
9512         (__getcwd): Use it instead of getcwd.
9513         * modules/getcwd (Depends-on): Add msvc-inval.
9514         * doc/posix-functions/getcwd.texi: Mention the MSVC issue.
9516 2019-07-02  Bruno Haible  <bruno@clisp.org>
9518         nonblocking-pipe tests: Fix test failure on MSVC.
9519         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE): Set to 10000 on
9520         native Windows.
9522 2019-07-02  Bruno Haible  <bruno@clisp.org>
9524         usleep: Implement with millisecond resolution on native Windows.
9525         * lib/usleep.c (usleep): On native Windows, implement using Sleep().
9526         * doc/pastposix-functions/usleep.texi: Update accordingly.
9528 2019-07-02  Bruno Haible  <bruno@clisp.org>
9530         lstat tests: Fix test failure on MSVC.
9531         * tests/test-lstat.h (test_lstat_func): Don't test SAME_INODE values on
9532         native Windows, unless _GL_WINDOWS_STAT_INODES is defined.
9534 2019-07-02  Bruno Haible  <bruno@clisp.org>
9536         stat tests: Fix test failure on MSVC.
9537         * tests/test-stat.h (test_stat_func): Don't test SAME_INODE values on
9538         native Windows, unless _GL_WINDOWS_STAT_INODES is defined.
9540 2019-07-02  Bruno Haible  <bruno@clisp.org>
9542         getaddrinfo tests: Fix test failure on MSVC.
9543         * tests/test-getaddrinfo.c: Include sockets.h.
9544         (main): Invoke gl_sockets_startup.
9545         * modules/getaddrinfo-tests (Depends-on): Add sockets.
9547 2019-07-01  Hannes Müller  <h.c.f.mueller@gmx.de>
9549         poll: Fix type of timeout pointer passed to select() on mingw x86_64.
9550         * lib/poll.c: Call Windows native select() with Windows native timeval.
9552 2019-06-30  Bruno Haible  <bruno@clisp.org>
9554         argmatch: Fix compilation errors.
9555         * lib/argmatch.h: Include <limits.h>, for INT_MAX.
9556         * tests/test-argmatch.c (main): Update after last-minute function names
9557         change.
9559 2019-06-30  Bruno Haible  <bruno@clisp.org>
9561         Include <stdlib.h> when needed.
9562         * lib/cnd.c: Include <stdlib.h>, needed for abort().
9563         * lib/fcntl.c: Likewise.
9564         * lib/mbscasestr.c: Likewise.
9565         * lib/mbssep.c: Likewise.
9566         * lib/mbsstr.c: Likewise.
9567         * lib/openat.c: Include <stdlib.h>, needed for free().
9568         * lib/windows-tls.c: Include <stdlib.h>, needed for malloc(), free(),
9569         abort().
9571 2019-06-30  Bruno Haible  <bruno@clisp.org>
9573         Include <stdlib.h> when needed.
9574         * lib/areadlinkat.c: Include <stdlib.h>, needed for free() in at-func.c.
9575         * lib/faccessat.c: Likewise.
9576         * lib/fchmodat.c: Likewise.
9577         * lib/fchownat.c: Likewise.
9578         * lib/fstatat.c: Likewise.
9579         * lib/mkfifoat.c: Likewise.
9580         * lib/mknodat.c: Likewise.
9581         * lib/readlinkat.c: Likewise.
9582         * lib/symlinkat.c: Likewise.
9583         * lib/utimensat.c: Likewise.
9584         * lib/mkdirat.c: Likewise. Include also the specification header.
9586 2019-06-30  Bruno Haible  <bruno@clisp.org>
9588         inet_ntop, inet_pton: Avoid conflict with native Windows functions.
9589         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WS2TCPIP): New macro, extracted
9590         from gl_PREREQ_SYS_H_SOCKET.
9591         (gl_PREREQ_SYS_H_SOCKET): Invoke it.
9592         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Invoke
9593         gl_PREREQ_SYS_H_WS2TCPIP.
9594         * modules/arpa_inet (Files): Add m4/sys_socket_h.m4, m4/socklen.m4.
9595         (Makefile.am): Substitute HAVE_WS2TCPIP_H.
9596         * lib/arpa_inet.in.h: Include <ws2tcpip.h>.
9598 2019-06-30  Bruno Haible  <bruno@clisp.org>
9600         inet_ntop, inet_pton: Forward-compatibility with newer Windows versions.
9601         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): On native Windows, set
9602         REPLACE_INET_NTOP to 1 always.
9603         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): On native Windows, set
9604         REPLACE_INET_PTON to 1 always.
9606 2019-06-30  Bruno Haible  <bruno@clisp.org>
9608         inet_pton: Fix link error on mingw with _WIN32_WINNT >= 0x0600.
9609         * modules/inet_pton (Depends-on, configure.ac): Test REPLACE_INET_PTON,
9610         not REPLACE_INET_NTOP.
9612 2019-06-30  Bruno Haible  <bruno@clisp.org>
9614         poll: Add comment.
9615         * lib/poll.c: Add comment about WSAPoll.
9617 2019-06-30  Bruno Haible  <bruno@clisp.org>
9619         poll-h: Fix compilation error on mingw with _WIN32_WINNT >= 0x0600.
9620         Reported by Hannes Müller <h.c.f.mueller@gmx.de>.
9621         * lib/poll.in.h: Include <winsock2.h>.
9622         (POLL*, pollfd): Override on native Windows.
9623         * m4/poll_h.m4 (gl_POLL_H): Invoke gl_PREREQ_SYS_H_WINSOCK2.
9624         * modules/poll-h (Files): Add m4/sys_socket_h.m4.
9625         (Makefile.am): Substitute HAVE_WINSOCK2_H.
9627 2019-06-28  Bruno Haible  <bruno@clisp.org>
9629         accept4: Fix compilation error on OpenIndiana.
9630         Reported by Michal Nowak <mnowak@startmail.com>
9631         via Mark H Weaver <mhw@netris.org>.
9632         * m4/accept.m4 (gl_FUNC_ACCEPT4): Test whether accept4 is declared, not
9633         whether it exists as a function.
9635 2019-06-26  Paul Eggert  <eggert@cs.ucla.edu>
9637         strverscmp: sync from glibc
9638         * lib/strverscmp.c: Sync from glibc, except use UTF-8 encoding in
9639         comments, include libc-config.h, define __strverscmp to be
9640         strverscmp, and don’t assume types line uint8_t and int8_t that
9641         that C99 doesn’t guarantee.
9642         [!_LIBC]: Include libc-config.h; define __strverscmp.
9643         Include stdint.h.
9644         (__strverscmp): Assume C99.  Use uint_least8_t
9645         and int_least8_t instead of unsigned char and signed char.
9646         * modules/strverscmp (Depends-on): Add libc-config, stdint.
9648 2019-06-25  Bruno Haible  <bruno@clisp.org>
9650         tss tests: Add tests for destructors and races.
9651         * tests/test-tss.c (worker_thread): Fix typo in debug message.
9652         (test_tss_dtorcheck1, test_tss_dtorcheck2, test_tss_racecheck): New
9653         functions.
9654         (main): Invoke them.
9655         * modules/tls-tests (Depends-on): Add mtx.
9657 2019-06-25  Bruno Haible  <bruno@clisp.org>
9659         tls tests: Add tests for destructors and races.
9660         * tests/test-tls.c: Include glthread/lock.h.
9661         (test_tls_dtorcheck1, test_tls_dtorcheck2, test_tls_racecheck): New
9662         functions.
9663         (main): Invoke them.
9664         * modules/tls-tests (Depends-on): Add lock.
9666 2019-06-25  Bruno Haible  <bruno@clisp.org>
9668         windows-tls: Implement TLS key destructors for native Windows.
9669         * lib/windows-tls.h (glwthread_tls_process_destructors): New
9670         declaration.
9671         (GLWTHREAD_DESTRUCTOR_ITERATIONS): New macro.
9672         * lib/windows-tls.c: Include <limits.h>, windows-once.h.
9673         (dtor_table_init_once, dtor_table_lock: New variables.
9674         (struct dtor): New type.
9675         (dtor_table, dtors_count, dtors_used, dtors_allocated,
9676         dtor_processing_threads): New variables.
9677         (dtor_table_initialize, dtor_table_ensure_initialized,
9678         dtor_table_shrink_used, glwthread_tls_process_destructors): New
9679         functions.
9680         (glwthread_tls_key_create, glwthread_tls_key_delete): Rewritten to
9681         handle non-NULL destructors.
9682         * modules/windows-tls (Depends-on): Add windows-once.
9683         * lib/glthread/tls.h (glthread_tls_key_init, glthread_tls_key_destroy):
9684         Use the functions declared in windows-tls.h.
9685         * lib/threads.in.h (TSS_DTOR_ITERATIONS): Define using
9686         GLWTHREAD_DESTRUCTOR_ITERATIONS.
9687         * lib/windows-thread.c: Include windows-tls.h.
9688         (wrapper_func, glwthread_thread_exit): Invoke
9689         glwthread_tls_process_destructors.
9690         * modules/windows-thread (Depends-on): Add windows-tls.
9692 2019-06-25  Bruno Haible  <bruno@clisp.org>
9694         threadlib: Avoid autoconf warning "was expanded before it was required".
9695         * modules/threadlib (configure.ac): Require gl_THREADLIB.
9697 2019-06-25  Akim Demaille  <akim@lrde.epita.fr>
9699         argmatch: remove duplicate const qualifier
9700         * lib/argmatch.h (ARGMATCH_DEFINE_GROUP): Here.
9702 2019-06-24  Paul Eggert  <eggert@cs.ucla.edu>
9704         unistd: stddef.h and sys/types.h namespace cleanup
9705         * lib/unistd.in.h [__GLIBC__]:
9706         Do not include stddef.h or sys/types.h.
9707         [!__GLIBC__]: Always include sys/types.h, since unistd.h is
9708         supposed to declare off_t and ssize_t.  Problem found when looking
9709         at why @GNULIB_PWRITE@ was different from the newly-added
9710         @GNULIB_COPY_FILE_RANGE@ with respect to ssize_t.
9712 2019-06-22  Akim Demaille  <akim@lrde.epita.fr>
9714         maintainer-makefile: restore portability to non-GNU awks
9715         Reported by Tim Rühsen.
9716         * top/maint.mk (AWK): New variable.  Use it.
9717         (sc_prohibit_gnu_make_extensions): Skip if $(AWK) is not gawk.
9719 2019-06-23  Paul Eggert  <eggert@cs.ucla.edu>
9721         Document setvbuf _IOLBF problem
9722         * doc/posix-functions/setvbuf.texi (setvbuf):
9723         Document MS-Windows portability problem with _IOLBF.
9725         Document lseek SEEK_DATA/SEEK_HOLE
9726         * doc/posix-functions/lseek.texi (lseek):
9727         Document some systems that do not support SEEK_DATA and SEEK_HOLE.
9729 2019-06-22  Akim Demaille  <akim@lrde.epita.fr>
9731         argmatch: put all the docs member last.
9732         Reported by Bruno Haible.
9733         * lib/argmatch.h (argmatch_##Name##_group_type): Put the args
9734         member before the docs done.
9735         * doc/argmatch.texi, tests/test-argmatch.c: Adjust.
9737 2019-06-21  Akim Demaille  <akim@lrde.epita.fr>
9739         argmatch: add support to generate the usage message.
9740         * lib/argmatch.c: Move some #includes and gettext support to...
9741         * lib/argmatch.h: here.
9742         (ARGMATCH_DEFINE_GROUP): New macro.
9743         * tests/test-argmatch.c (argmatch_backup_docs, argmatch_backup_args)
9744         (argmatch_backup_group): New.
9745         (CHECK): New.
9746         (main): Check argmatch_backup_value, argmatch_backup_xvalue,
9747         argmatch_backup_argument and argmatch_backup_usage.
9748         * modules/argmatch: We depend on c99.
9749         * doc/argmatch.texi (Recognizing Option Arguments): New.
9750         * doc/gnulib.texi: Use it.
9752 2019-06-21  Bruno Haible  <bruno@clisp.org>
9754         thrd: Add comment.
9755         * lib/thrd.c (pthread_main_func): Add comment.
9757 2019-06-21  Bruno Haible  <bruno@clisp.org>
9759         threads-h: Define 'thread_local' if and only if it actually works.
9760         * m4/threads.m4 (gl_THREAD_LOCAL_DEFINITION): New macro.
9761         (gl_THREADS_H): Define _Thread_local to __thread also for ARM C, IBM C,
9762         Oracle Solaris Studio C. Compile a simple program, to see whether
9763         _Thread_local basically works. Set HAVE_THREAD_LOCAL and LIBTHREADLOCAL.
9764         (gl_THREADS_H_DEFAULTS): Initialize HAVE_THREAD_LOCAL.
9765         * lib/threads.in.h (thread_local): Undefine if it does not work.
9766         * modules/threads-h (Makefile.am): Substitute HAVE_THREAD_LOCAL.
9767         (Link): Mention LIBTHREADLOCAL.
9768         * tests/test-threads.c: Don't check that thread_local is defined.
9769         * tests/test-thread_local.c: New file.
9770         * modules/threads-h-tests (Files): Add it and macros.h.
9771         (Depends-on): Add thrd and stdint.
9772         (configure.ac): Test whether 'alarm' is declared.
9773         (Makefile.am): Arrange to build and link test-thread_local.
9774         * doc/posix-headers/threads.texi: Mention the platforms that don't
9775         support 'thread_local'.
9777 2019-06-20  Bruno Haible  <bruno@clisp.org>
9779         threads-h: Simplify link dependencies.
9780         * m4/threads.m4 (gl_THREADS_H): Bail out if Pth threading is requested.
9781         Don't set LTLIBSTDTHREAD.
9782         * modules/thrd (Link): Simplify accordingly.
9783         * modules/mtx (Link): Likewise.
9784         * modules/cnd (Link): Likewise.
9785         * modules/tss (Link): Likewise.
9786         * modules/threads (Link): Likewise.
9788 2019-06-20  Bruno Haible  <bruno@clisp.org>
9790         threads-h: Fix link error on FreeBSD 11.
9791         * m4/threads.m4 (gl_THREADS_H): When linking with -lstdthreads, link
9792         also with -lpthread.
9794 2019-06-20  Bruno Haible  <bruno@clisp.org>
9796         threadlib: Fix typo (regression from today).
9797         * m4/threadlib.m4 (gl_THREADLIB_BODY): Fix typo in comment marker.
9799 2019-06-20  Bruno Haible  <bruno@clisp.org>
9801         windows-thread, windows-tls: Fix compilation error on 32-bit mingw.
9802         * lib/windows-thread.c: Include <errno.h>.
9803         * lib/windows-tls.c: Likewise.
9805 2019-06-20  Bruno Haible  <bruno@clisp.org>
9807         tss tests: Small improvement.
9808         * tests/test-tss.c (test_tss): Pass a different id to each thread.
9810 2019-06-20  Bruno Haible  <bruno@clisp.org>
9812         threads: New module.
9813         * modules/threads: New file.
9815 2019-06-20  Bruno Haible  <bruno@clisp.org>
9817         tss: Add tests.
9818         * tests/test-tss.c: New file, based on tests/test-tls.c.
9819         * modules/tss-tests: New file.
9821 2019-06-20  Bruno Haible  <bruno@clisp.org>
9823         cnd: Add tests.
9824         * tests/test-cnd.c: New file, based on tests/test-cond.c.
9825         * modules/cnd-tests: New file.
9827 2019-06-20  Bruno Haible  <bruno@clisp.org>
9829         mtx: Add tests.
9830         * tests/test-mtx.c: New file, based on tests/test-lock.c.
9831         * tests/test-call_once.c: New file, based on tests/test-once.c.
9832         * modules/mtx-tests: New file.
9834 2019-06-20  Bruno Haible  <bruno@clisp.org>
9836         thrd: Add tests.
9837         * tests/test-thrd_create.c: New file, based on
9838         tests/test-thread_create.c.
9839         * tests/test-thrd_current.c: New file, based on
9840         tests/test-thread_self.c.
9841         * modules/thrd-tests: New file.
9843 2019-06-20  Bruno Haible  <bruno@clisp.org>
9845         tss: New module.
9846         * lib/tss.c: New file.
9847         * modules/tss: New file.
9848         * doc/posix-functions/tss_create.texi: Mention the new module.
9849         * doc/posix-functions/tss_set.texi: Likewise.
9850         * doc/posix-functions/tss_get.texi: Likewise.
9851         * doc/posix-functions/tss_delete.texi: Likewise.
9853 2019-06-20  Bruno Haible  <bruno@clisp.org>
9855         cnd: New module.
9856         * lib/cnd.c: New file.
9857         * modules/cnd: New file.
9858         * doc/posix-functions/cnd_init.texi: Mention the new module.
9859         * doc/posix-functions/cnd_wait.texi: Likewise.
9860         * doc/posix-functions/cnd_timedwait.texi: Likewise.
9861         * doc/posix-functions/cnd_signal.texi: Likewise.
9862         * doc/posix-functions/cnd_broadcast.texi: Likewise.
9863         * doc/posix-functions/cnd_destroy.texi: Likewise.
9865 2019-06-20  Bruno Haible  <bruno@clisp.org>
9867         mtx: New module.
9868         * lib/mtx.c: New file.
9869         * modules/mtx: New file.
9870         * doc/posix-functions/call_once.texi: Mention the new module.
9871         * doc/posix-functions/mtx_init.texi: Likewise.
9872         * doc/posix-functions/mtx_lock.texi: Likewise.
9873         * doc/posix-functions/mtx_trylock.texi: Likewise.
9874         * doc/posix-functions/mtx_timedlock.texi: Likewise.
9875         * doc/posix-functions/mtx_unlock.texi: Likewise.
9876         * doc/posix-functions/mtx_destroy.texi: Likewise.
9878 2019-06-20  Bruno Haible  <bruno@clisp.org>
9880         thrd: New module.
9881         * lib/thrd.c: New file.
9882         * m4/thrd.m4: New file.
9883         * modules/thrd: New file.
9884         * doc/posix-functions/thrd_current.texi: Mention the new module.
9885         * doc/posix-functions/thrd_detach.texi: Likewise.
9886         * doc/posix-functions/thrd_equal.texi: Likewise.
9887         * doc/posix-functions/thrd_exit.texi: Likewise.
9888         * doc/posix-functions/thrd_sleep.texi: Likewise.
9889         * doc/posix-functions/thrd_yield.texi: Likewise.
9890         * doc/posix-functions/thrd_create.texi: Mention the new module and the
9891         AIX bug.
9892         * doc/posix-functions/thrd_join.texi: Mention the new module and the
9893         AIX and Solaris bugs.
9895 2019-06-20  Bruno Haible  <bruno@clisp.org>
9897         threads-h: Add tests.
9898         * tests/test-threads.c: New file.
9899         * modules/threads-h-tests: New file.
9900         * tests/test-threads-c++.cc: New file.
9901         * modules/threads-h-c++-tests: New file.
9903 2019-06-20  Bruno Haible  <bruno@clisp.org>
9905         threads-h: New module.
9906         * lib/threads.in.h: New file.
9907         * m4/threads.m4: New file.
9908         * m4/yield.m4 (gl_YIELD): Update comment.
9909         * modules/threads-h: New file.
9910         * modules/yields (configure.ac): Use AC_REQUIRE.
9911         * doc/posix-headers/threads.texi: Mention the new module and the AIX
9912         bugs.
9914 2019-06-20  Bruno Haible  <bruno@clisp.org>
9916         windows-thread: New module.
9917         * lib/windows-thread.h: New file, based on lib/glthread/thread.h.
9918         * lib/windows-thread.c: New file, based on lib/glthread/thread.c.
9919         * lib/glthread/thread.h: Include windows-thread.h.
9920         (gl_thread_t): Define using glwthread_thread_t.
9921         (glthread_create): Define using glwthread_thread_create.
9922         (glthread_join): Define using glwthread_thread_join.
9923         (gl_thread_self): Define using glwthread_thread_self.
9924         (gl_thread_exit): Define using glwthread_thread_exit.
9925         (glthread_create_func, glthread_join_func, gl_thread_self_func,
9926         gl_thread_exit_func): Remove declarations.
9927         * lib/glthread/thread.c (self_key): Remove variable.
9928         (do_init_self_key, init_self_key): Remove functions.
9929         (struct gl_thread_struct): Remove type.
9930         (get_current_thread_handle, gl_thread_self_func, wrapper_func,
9931         glthread_create_func, glthread_join_func, gl_thread_exit_func): Remove
9932         functions.
9933         * modules/windows-thread: New file.
9934         * modules/thread (Depends-on): Add windows-thread.
9936 2019-06-20  Bruno Haible  <bruno@clisp.org>
9938         windows-tls: New module.
9939         * lib/windows-tls.h: New file, based on lib/glthread/tls.h.
9940         * lib/windows-tls.c: New file, based on lib/glthread/tls.h.
9941         * lib/glthread/tls.h: Include windows-tls.h.
9942         (gl_tls_key_t): Define using glwthread_tls_key_t.
9943         * modules/windows-tls: New file.
9944         * modules/tls (Depends-on): Add windows-tls.
9946 2019-06-20  Bruno Haible  <bruno@clisp.org>
9948         windows-cond: New module.
9949         * lib/windows-cond.h: New file, based on lib/glthread/cond.h.
9950         * lib/windows-cond.c: New file, based on lib/glthread/cond.c.
9951         * lib/glthread/cond.h: Include windows-cond.h.
9952         (struct gl_waitqueue_link, gl_linked_waitqueue_t): Remove types.
9953         (gl_cond_t): Define using glwthread_cond_t.
9954         (gl_cond_initializer): Define using GLWTHREAD_COND_INIT.
9955         (glthread_cond_init): Define using glwthread_cond_init.
9956         (glthread_cond_wait): Define using glwthread_cond_wait.
9957         (glthread_cond_timedwait): Define using glwthread_cond_timedwait.
9958         (glthread_cond_signal): Define using glwthread_cond_signal.
9959         (glthread_cond_broadcast): Define using glwthread_cond_broadcast.
9960         (glthread_cond_destroy): Define using glwthread_cond_destroy.
9961         (glthread_cond_init_func, glthread_cond_wait_func,
9962         glthread_cond_timedwait_func, glthread_cond_signal_func,
9963         glthread_cond_broadcast_func, glthread_cond_destroy_func): Remove
9964         declarations.
9965         * lib/glthread/cond.c (gl_waitqueue_t, gl_waitqueue_element): Remove
9966         types.
9967         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
9968         gl_waitqueue_notify_first, gl_waitqueue_notify_all,
9969         glthread_cond_init_func, glthread_cond_wait_func,
9970         glthread_cond_timedwait_func, glthread_cond_signal_func,
9971         glthread_cond_broadcast_func, glthread_cond_destroy_func): Remove
9972         functions.
9973         * modules/windows-cond: New file.
9974         * modules/cond (Depends-on): Add windows-cond. Remove gettimeofday.
9976 2019-06-20  Bruno Haible  <bruno@clisp.org>
9978         windows-timedrecmutex: New module.
9979         * lib/windows-timedrecmutex.h: New file, based on windows-recmutex.h.
9980         * lib/windows-timedrecmutex.c: New file, based on windows-recmutex.c.
9981         * modules/windows-timedrecmutex: New file.
9983 2019-06-20  Bruno Haible  <bruno@clisp.org>
9985         windows-timedmutex: New module.
9986         * lib/windows-timedmutex.h: New file, based on windows-mutex.h.
9987         * lib/windows-timedmutex.c: New file, based on windows-mutex.c.
9988         * modules/windows-timedmutex: New file.
9990 2019-06-20  Bruno Haible  <bruno@clisp.org>
9992         windows-recmutex: New module.
9993         * lib/windows-recmutex.h: New file, extracted from lib/glthread/lock.h.
9994         * lib/windows-recmutex.c: New file, extracted from lib/glthread/lock.c.
9995         * lib/glthread/lock.h: Include windows-recmutex.h.
9996         (gl_recursive_lock_t): Define using glwthread_recmutex_t.
9997         (gl_recursive_lock_initializer): Define using GLWTHREAD_RECMUTEX_INIT.
9998         (glthread_recursive_lock_init): Define using glwthread_recmutex_init.
9999         (glthread_recursive_lock_lock): Define using glwthread_recmutex_lock.
10000         (glthread_recursive_lock_unlock): Define using
10001         glwthread_recmutex_unlock.
10002         (glthread_recursive_lock_destroy): Define using
10003         glwthread_recmutex_destroy.
10004         (glthread_recursive_lock_init_func, glthread_recursive_lock_lock_func,
10005         glthread_recursive_lock_unlock_func,
10006         glthread_recursive_lock_destroy_func): Remove declarations.
10007         * lib/glthread/lock.c (glthread_recursive_lock_init_func,
10008         glthread_recursive_lock_lock_func, glthread_recursive_lock_unlock_func,
10009         glthread_recursive_lock_destroy_func): Remove functions.
10010         * modules/windows-recmutex: New file.
10011         * modules/lock (Depends-on): Add windows-recmutex.
10013 2019-06-20  Bruno Haible  <bruno@clisp.org>
10015         windows-mutex: New module.
10016         * lib/windows-mutex.h: New file, extracted from lib/glthread/lock.h.
10017         * lib/windows-mutex.c: New file, extracted from lib/glthread/lock.c.
10018         * lib/windows-spinlock.h: New file, extracted from lib/glthread/lock.h.
10019         * lib/glthread/lock.h: Include windows-spinlock.h, windows-mutex.h.
10020         (gl_spinlock_t): Remove type.
10021         (gl_lock_t): Define using glwthread_mutex_t.
10022         (gl_lock_initializer): Define using GLWTHREAD_MUTEX_INIT.
10023         (glthread_lock_init): Define using glwthread_mutex_init.
10024         (glthread_lock_lock): Define using glwthread_mutex_lock.
10025         (glthread_lock_unlock): Define using glwthread_mutex_unlock.
10026         (glthread_lock_destroy): Define using glwthread_mutex_destroy.
10027         (glthread_lock_init_func, glthread_lock_lock_func,
10028         glthread_lock_unlock_func, glthread_lock_destroy_func): Remove
10029         declarations.
10030         Use glwthread_spinlock_t instead of gl_spinlock_t.
10031         (gl_rwlock_initializer, gl_recursive_lock_initializer): Define using
10032         GLWTHREAD_SPINLOCK_INIT.
10033         * lib/glthread/lock.c (glthread_lock_init_func, glthread_lock_lock_func,
10034         glthread_lock_unlock_func, glthread_lock_destroy_func): Remove
10035         functions.
10036         * lib/glthread/cond.h: Use glwthread_spinlock_t instead of
10037         gl_spinlock_t.
10038         * modules/windows-mutex: New file.
10039         * modules/lock (Depends-on): Add windows-mutex.
10041 2019-06-20  Bruno Haible  <bruno@clisp.org>
10043         windows-once: New module.
10044         * lib/windows-once.h: New file, extracted from lib/glthread/lock.h.
10045         * lib/windows-once.c: New file, extracted from lib/glthread/lock.c.
10046         * lib/glthread/lock.h: Include windows-once.h.
10047         (gl_once_t): Define using glwthread_once_t.
10048         (gl_once_define): Define using GLWTHREAD_ONCE_INIT.
10049         (glthread_once): Define using glwthread_once.
10050         (glthread_once_func): Remove declaration.
10051         * lib/glthread/lock.c (glthread_once_func): Remove function.
10052         * modules/windows-once: New file.
10053         * modules/lock (Depends-on): Add windows-once.
10055 2019-06-20  Bruno Haible  <bruno@clisp.org>
10057         lock, cond: Avoid possible counter wraparound on Windows.
10058         * lib/glthread/lock.c (glthread_lock_lock_func): Leave the 'started'
10059         field of the guard unchanged if it was already positive.
10060         (glthread_rwlock_rdlock_func): Likewise.
10061         (glthread_rwlock_wrlock_func): Likewise.
10062         (glthread_recursive_lock_lock_func): Likewise.
10063         * lib/glthread/cond.c (glthread_cond_wait_func): Likewise.
10064         (glthread_cond_timedwait_func): Likewise.
10066 2019-06-20  Bruno Haible  <bruno@clisp.org>
10068         cond: Make glthread_cond_timedwait more reliable on Windows.
10069         * lib/glthread/cond.c (glthread_cond_timedwait_func): Initialize the
10070         condition variable before looking at the current time.
10072 2019-06-20  Bruno Haible  <bruno@clisp.org>
10074         pthread_mutex_timedlock: New module.
10075         * lib/pthread.in.h (pthread_mutex_timedlock): New dummy function and
10076         new declaration.
10077         * lib/pthread_mutex_timedlock.c: New file.
10078         * m4/pthread_mutex_timedlock.m4: New file.
10079         * m4/pthread.m4 (gl_PTHREAD_CHECK): Don't call AC_LIBOBJ here. Test
10080         whether pthread_mutex_timedlock is declared.
10081         (gl_PTHREAD_MODULE_INDICATOR): New macro.
10082         (gl_PTHREAD_DEFAULTS): Initialize GNULIB_PTHREAD_MUTEX_TIMEDLOCK,
10083         HAVE_PTHREAD_MUTEX_TIMEDLOCK.
10084         * modules/pthread (configure.ac): Call AC_LIBOBJ here.
10085         (Makefile.am): Substitute GNULIB_PTHREAD_MUTEX_TIMEDLOCK,
10086         HAVE_PTHREAD_MUTEX_TIMEDLOCK.
10087         * modules/pthread_mutex_timedlock: New file.
10088         * doc/posix-functions/pthread_mutex_timedlock.texi: Mention the new
10089         module.
10091 2019-06-20  Bruno Haible  <bruno@clisp.org>
10093         thread, lock, cond, tls: Recognize C11 multithreaded applications.
10094         * m4/threadlib.m4 (gl_THREADLIB_BODY): Test for <threads.h>.
10095         * lib/glthread/thread.h (c11_threads_in_use): New macro.
10096         (pthread_in_use, pth_in_use, thread_in_use): Use it.
10097         * lib/glthread/lock.h (c11_threads_in_use): New macro.
10098         (pthread_in_use, pth_in_use, thread_in_use): Use it.
10099         * lib/glthread/cond.h (c11_threads_in_use): New macro.
10100         (pthread_in_use, pth_in_use, thread_in_use): Use it.
10101         * lib/glthread/tls.h (c11_threads_in_use): New macro.
10102         (pthread_in_use, pth_in_use, thread_in_use): Use it.
10104 2019-06-20  Bruno Haible  <bruno@clisp.org>
10106         tls tests: Small improvements.
10107         * tests/test-tls.c: Include <stdint.h>.
10108         (worker_thread): Avoid gcc warning on 64-bit mingw.
10109         (test_tls): Pass a different id to each thread.
10110         * modules/tls-tests (Depends-on): Add stdint.
10112 2019-06-20  Bruno Haible  <bruno@clisp.org>
10114         cond tests: Simplify.
10115         * tests/test-cond.c (test_timedcond): Remove redundant assignment.
10117 2019-06-20  Bruno Haible  <bruno@clisp.org>
10119         lock tests: Avoid reference to undefined variable if !ENABLE_LOCKING.
10120         * tests/test-lock.c (test_once): Don't reference fire_signal if
10121         !ENABLE_LOCKING.
10123 2019-06-19  Bruno Haible  <bruno@clisp.org>
10125         nanosleep: Relicense under LGPLv2+.
10126         Approved by Jim Meyering, Paul Eggert, Eric Blake, Pádraig Brady.
10127         * modules/nanosleep (License): Change to LGPLv2+.
10129 2019-06-19  Bruno Haible  <bruno@clisp.org>
10131         Reorder pieces of header in perl scripts.
10132         The desired order is
10133         - Prologue part 1 (2 lines with #!)
10134         - Program short description
10135         - Copyright and license notice
10136         - Written-by notice
10137         - Program short description (optional)
10138         - Program long description (optional)
10139         - Prologue part 2
10140         - Time stamp
10141         - Code
10142         Reported by Paul Eggert.
10143         * build-aux/announce-gen: Reorder header.
10144         * build-aux/gitlog-to-changelog: Likewise.
10145         * build-aux/useless-if-before-free: Likewise.
10146         * build-aux/prefix-gnulib-mk: Add copyright notice and short
10147         description.
10148         * build-aux/update-copyright: Likewise. Add short description. Bump
10149         time-stamp-line-limit to 200.
10151 2019-06-18  Paul Eggert  <eggert@cs.ucla.edu>
10153         verify-tests: work around xlc bug
10154         Problem reported by Bruno Haible in:
10155         https://lists.gnu.org/r/bug-gnulib/2019-06/msg00049.html
10156         * tests/test-verify.c (item): Move the arithmetic inside the
10157         verify_expr, to avoid tickling a bug in IBM AIX xlc V12.1.
10159 2019-06-16  Bruno Haible  <bruno@clisp.org>
10161         Restore Emacs time-stamp hook applicability.
10162         Reported by Darshit Shah <darnir@gnu.org>.
10163         * build-aux/useless-if-before-free: Bump time-stamp-line-limit to 50.
10164         * build-aux/announce-gen: Likewise.
10165         * build-aux/gitlog-to-changelog: Likewise.
10166         * build-aux/prefix-gnulib-mk: Likewise.
10167         * build-aux/update-copyright: Likewise.
10169 2019-06-15  Bruno Haible  <bruno@clisp.org>
10171         Fix scripts to have valid executable format on Alpine Linux.
10172         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
10173         Idea by Paul Eggert.
10174         * build-aux/useless-if-before-free: Use a prologue that starts with
10175         '#!/bin/sh'.
10176         * build-aux/announce-gen: Likewise.
10177         * build-aux/gitlog-to-changelog: Likewise.
10178         * build-aux/prefix-gnulib-mk: Likewise.
10179         * build-aux/update-copyright: Likewise.
10180         * tests/test-update-copyright.sh: Update test program accordingly.
10182 2019-06-10  Bruno Haible  <bruno@clisp.org>
10184         nproc: Ensure nproc(NPROC_ALL) ≥ nproc(NPROC_CURRENT) with glibc ≥ 2.26.
10185         Reported by Nikita Ermakov <arei@altlinux.org> in
10186         <https://lists.gnu.org/archive/html/bug-gnulib/2019-06/msg00003.html>.
10187         * lib/nproc.c (num_processors_ignoring_omp): Treat a return value of
10188         sysconf (_SC_NPROCESSORS_CONF) == 2 like a return value == 1.
10190 2019-06-10  Bruno Haible  <bruno@clisp.org>
10192         posix_spawn_file_actions_addchdir: Fix possible use-after-free bug.
10193         * lib/spawn_int.h (struct __spawn_action): Remove 'const' from path.
10194         * lib/spawn_faction_addchdir.c (posix_spawn_file_actions_addchdir): Make
10195         a copy of the path argument.
10196         * lib/spawn_faction_destroy.c (posix_spawn_file_actions_destroy): Free
10197         it.
10199 2019-06-10  Bruno Haible  <bruno@clisp.org>
10201         posix_spawn_file_actions_addopen: Fix possible use-after-free bug.
10202         Reported at <https://sourceware.org/bugzilla/show_bug.cgi?id=17048>.
10203         * lib/spawn_int.h (struct __spawn_action): Remove 'const' from path.
10204         * lib/spawn_faction_addopen.c (posix_spawn_file_actions_addopen): Make
10205         a copy of the path argument.
10206         * lib/spawn_faction_destroy.c (posix_spawn_file_actions_destroy): Free
10207         it.
10209 2019-06-10  Bruno Haible  <bruno@clisp.org>
10211         posix_spawn_file_actions_addfchdir: Add tests.
10212         * tests/test-posix_spawn_file_actions_addfchdir.c: New file.
10213         * tests/test-posix_spawn5.c: New file.
10214         * modules/posix_spawn_file_actions_addfchdir-tests: New file.
10216 2019-06-10  Bruno Haible  <bruno@clisp.org>
10218         posix_spawn_file_actions_addfchdir: New module.
10219         * lib/spawn.in.h (posix_spawn_file_actions_addfchdir): New declaration.
10220         * lib/spawn_int.h (struct __spawn_action): Add tag 'spawn_do_fchdir' and
10221         union member 'fchdir_action'.
10222         * lib/spawn_faction_addfchdir.c: New file.
10223         * lib/spawni.c (__spawni): Implement the spawn_do_fchdir action.
10224         * m4/posix_spawn_faction_addfchdir.m4: New file.
10225         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether module
10226         'posix_spawn_file_actions_addfchdir' is present and whether
10227         posix_spawn_file_actions_addfchdir_np exists. Set REPLACE_POSIX_SPAWN.
10228         * m4/spawn_h.m4 (gl_SPAWN_H): Test whether
10229         posix_spawn_file_actions_addfchdir is declared.
10230         (gl_SPAWN_H_DEFAULTS): Initialize
10231         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
10232         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
10233         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR.
10234         * modules/spawn (Makefile.am): Substitute
10235         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
10236         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
10237         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR.
10238         * modules/posix_spawn_file_actions_addfchdir: New file.
10239         * tests/test-spawn-c++.cc (posix_spawn_file_actions_addfchdir): Check
10240         signature.
10241         * doc/posix-functions/posix_spawn.texi: Mention the new module.
10242         * doc/posix-functions/posix_spawnp.texi: Likewise.
10243         * doc/glibc-functions/posix_spawn_file_actions_addfchdir_np.texi:
10244         Likewise.
10246 2019-06-10  Bruno Haible  <bruno@clisp.org>
10248         doc: Document existence of posix_spawn_file_actions_addchdir module.
10249         * doc/glibc-functions/posix_spawn_file_actions_addchdir_np.texi: Mention
10250         the posix_spawn_file_actions_addchdir module.
10252 2019-06-10  Bruno Haible  <bruno@clisp.org>
10254         posix_spawn-internal: Fix module description.
10255         * modules/posix_spawn (configure.ac): Move request to compile spawni.c
10256         from here...
10257         * modules/posix_spawnp (configure.ac): ... and here...
10258         * modules/posix_spawn-internal (configure.ac): ... to here.
10260 2019-06-10  Bruno Haible  <bruno@clisp.org>
10262         doc: Update and improve documentation of glibc functions.
10263         This is a series of commits that
10264         - updates the documentation to the state of glibc 2.29,
10265         - adds references to Linux man pages and glibc documentation,
10266         - marks Linux specific functions as such.
10267         These are the commits:
10268         doc: Update after removal of crypt functions from glibc 2.28.
10269         doc: Remove mention of function vm86 (does not exist on x86_64).
10270         doc: Remove mention of functions that are gone from glibc.
10271         doc: Mention that glibc no longer provides h_errno.
10272         doc: Mention the availability of specific functions in glibc versions.
10273         doc: Mention eaccess.
10274         doc: Add references to Linux man pages.
10275         doc: Add references to glibc documentation.
10276         doc: Mention inotify_* functions.
10277         doc: Mention ppoll.
10278         doc: Mention sched_getcpu.
10279         doc: Mention sync_file_range.
10280         doc: Mention epoll_pwait.
10281         doc: Mention eventfd, eventfd_read, eventfd_write.
10282         doc: Mention signalfd.
10283         doc: Mention timerfd_create, timerfd_gettime, timerfd_settime.
10284         doc: Mention epoll_create1.
10285         doc: Mention getauxval.
10286         doc: Mention pthread_getattr_default_np, pthread_setattr_default_np.
10287         doc: Mention nextdown, nextup.
10288         doc: Mention more ISO TS 18661-1 <math.h> functions.
10289         doc: Mention ISO TS 18661-1 <fenv.h> functions.
10290         doc: Mention getrandom, getentropy.
10291         doc: Mention strfromf, strfromd, strfroml.
10292         doc: Mention preadv2, pwritev2.
10293         doc: Mention copy_file_range.
10294         doc: Mention memfd_create.
10295         doc: Mention mlock2.
10296         doc: Mention pkey_alloc, pkey_set, pkey_get, pkey_free, pkey_mprotect.
10297         doc: Mention more ISO TS 18661-1 <math.h> functions.
10298         doc: Mention renameat2.
10299         doc: Mention statx.
10300         doc: Mention the ISO C11 multithreading header and functions.
10301         doc: Mention getcpu.
10302         doc: Mention posix_spawn_file_actions_add[f]chdir_np.
10303         doc: Some glibc functions also exist on IRIX 6.5 in 32-bit mode.
10304         doc: Some glibc functions also exist on FreeBSD, AIX, HP-UX, Solaris 11.
10305         doc: Some glibc functions also exist on FreeBSD, Solaris 11.
10306         doc: Some glibc functions also exist on Solaris 11.
10307         doc: Some glibc functions also exist on Solaris 11.4.
10308         doc: Some glibc functions also exist on FreeBSD.
10309         doc: Some glibc functions also exist on BeOS.
10310         doc: Some glibc functions also exist on Haiku.
10311         doc: Mark functions which exist only on Linux.
10312         doc: Mark functions which exist only on Linux and illumos.
10314 2019-06-06  Paul Eggert  <eggert@cs.ucla.edu>
10316         copy-file: fix typo
10317         * lib/copy-file.c (qcopy_file_preserving): Remove unused label.
10319         copy-file-range: simplify into a stub
10320         Based on a comment by Florian Weimer in:
10321         https://lists.gnu.org/r/bug-gnulib/2019-06/msg00007.html
10322         It turns out that Emacs (which will use this module) won’t need an
10323         emulation and I suspect other programs won’t either, because these
10324         programs will need to fall back on read+write anyway.  Perhaps I
10325         am wrong and other programs will be able to use an emulation; if
10326         so, this patch can be reverted.
10327         * lib/copy-file-range.c (COPY_FILE_RANGE): Replace with a stub.
10328         Just call it copy_file_range.
10329         * m4/copy-file-range.m4 (gl_FUNC_COPY_FILE_RANGE):
10330         Check via AC_LINK_IFELSE.
10331         * modules/copy-file-range (Depends-on): Remove modules no longer used.
10333 2019-06-04  Paul Eggert  <eggert@cs.ucla.edu>
10335         copy-file: prefer copy_file_range
10336         * lib/copy-file.c: Do not include xalloc.h.
10337         (qcopy_file_preserving): Allocate a buffer only if
10338         copy_file_range does not suffice.  If the allocation fails
10339         don't give up; just use a small stack-based buffer.
10340         Prefer copy_file_range if it works.
10341         * modules/copy-file (Depends-on): Add copy-file-range.
10342         Remove xalloc.
10344         copy-file-range: new module
10345         * MODULES.html.sh: Add copy-file-range.
10346         * lib/copy-file-range.c, m4/copy-file-range.m4:
10347         * modules/copy-file-range: New files.
10348         * lib/unistd.in.h (copy_file_range): Declare.
10349         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS):
10350         Set up GNULIB_COPY_FILE_RANGE and HAVE_COPY_FILE_RANGE.
10351         * modules/unistd (unistd.h): Substitute them.
10353 2019-05-28  Bruno Haible  <bruno@clisp.org>
10355         binary-io: Attempted use of O_BINARY on consoles no longer fails.
10356         Reported by KO Myung-Hun <komh78@gmail.com> in
10357         <https://lists.gnu.org/archive/html/bug-gnulib/2019-05/msg00124.html>.
10358         * lib/binary-io.h (__gl_setmode_check): Remove function.
10359         (set_binary_mode): Declare as notinline on DJGPP and EMX.
10360         * lib/binary-io.c (__gl_setmode_check): Remove function.
10361         (set_binary_mode): Define here on DJGPP and EMX. Inline
10362         __gl_setmode_check. In case of a tty, don't return an error code.
10364 2019-05-28  James Youngman  <jay@gnu.org>
10366         dirent-safer: Make opendir_safer usable from C++.
10367         * lib/dirent-safer.h: use extern "C".
10369 2019-05-28  James Youngman  <jay@gnu.org>
10371         canonicalize: Make canonicalize_filename_mode usable from C++.
10372         * lib/canonicalize.h: use extern "C".
10374 2019-05-26  Akim Demaille  <akim@lrde.epita.fr>
10376         prefix-gnulib-mk: Fix CPPFLAGS migration.
10377         * build-aux/prefix-gnulib-mk (prefix_assignment): Don't forget the
10378         _a part of the library name.
10380 2019-05-24  Paul Eggert  <eggert@cs.ucla.edu>
10382         flexmember: update comments again
10383         * lib/flexmember.h, m4/flexmember.m4: Improve comments further.
10385         flexmember: update comment
10386         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER): Improve comment.
10388 2019-05-20  Bruno Haible  <bruno@clisp.org>
10390         setlocale: Improve fallback on macOS.
10391         * lib/setlocale.c (search): Optimize away a redundant strcmp()
10392         invocation.
10393         (locales_with_principal_territory): New array.
10394         (langcmp, get_main_locale_with_same_language): New functions.
10395         (locales_with_principal_language): New array.
10396         (terrcmp, get_main_locale_with_same_territory): New functions.
10397         (rpl_setlocale): When setlocale_single failed, try again with a locale
10398         that is more likely to exist. Don't warn if the environment variable
10399         SETLOCALE_VERBOSE is not set.
10401 2019-05-19  Bruno Haible  <bruno@clisp.org>
10403         localename: Fix default on macOS.
10404         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Don't test for CFLocaleCopyCurrent.
10405         * lib/localename.c: Remove includes for HAVE_CFLOCALECOPYCURRENT.
10406         (gl_locale_name_environ, gl_locale_name_default): Remove code for
10407         HAVE_CFLOCALECOPYCURRENT.
10408         * lib/localename.h (gl_locale_name_default): Update.
10410 2019-05-19  Karl Berry  <karl@freefriends.org>
10412         * config/srclistvars.sh (TEXINFOTEX): make ftp.gnu.org be the
10413         source for texinfo.tex, replacing TEXINFOSRC, per Texinfo maintainer.
10414         * config/srclist.txt (texinfo.tex): use it. (Also doc changes.)
10416 2019-05-18  Akim Demaille  <akim@lrde.epita.fr>
10418         maintainer-makefile: catch uses of $< in non-implicit rules
10419         * top/maint.mk (sc_prohibit_magic_number_exit): New.
10421 2019-05-18  Bruno Haible  <bruno@clisp.org>
10423         threadlib: Provide an easy way to avoid mingw's winpthreads library.
10424         * m4/threadlib.m4 (gl_AVOID_WINPTHREAD): New macro.
10425         (gl_THREADLIB_EARLY_BODY): Recognize when it was invoked, and set
10426         gl_use_threads accordingly.
10428 2019-05-18  Bruno Haible  <bruno@clisp.org>
10430         pthread_sigmask: Fix compilation error with --enable-threads=windows.
10431         Reported by Tim Rühsen in
10432         <https://lists.gnu.org/archive/html/bug-gnulib/2018-01/msg00018.html>
10433         and Michele Locati in
10434         <https://lists.gnu.org/archive/html/bug-gettext/2019-04/msg00057.html>.
10435         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Revert change from
10436         2015-06-01. Test whether pthread_sigmask is a macro, regardless of
10437         $LIBMULTITHREAD. Consider it regardless whether module 'threadlib' is
10438         in use and regardless which threads API is chosen.
10440 2019-05-14  Paul Eggert  <eggert@cs.ucla.edu>
10442         close-stream, closein, closeout: simplify
10443         I noticed this opportunity for simplification while drafting a
10444         new, related module that I haven’t had time to finish yet.
10445         * m4/close-stream.m4, m4/closein.m4, m4/closeout.m4: Remove.
10446         * modules/close-stream (Files): Remove m4/close-stream.m4.
10447         (configure.ac): Omit gl_CLOSE_STREAM.
10448         * modules/closein (Files): Remove m4/closein.m4
10449         (configure.ac): Omit gl_CLOSEIN.
10450         * modules/closeout (Files): Remove m4/closeout.m4.
10451         (configure.ac): Omit gl_CLOSEOUT.
10453 2019-05-12  Bruno Haible  <bruno@clisp.org>
10455         libtool-next-version: New program.
10456         * build-aux/libtool-next-version: New file.
10458 2019-05-11  John Darrington  <john@darrington.wattle.id.au>
10459             Bruno Haible  <bruno@clisp.org>
10461         version-etc: Ease translation.
10462         * lib/version-etc.c (version_etc_arn, emit_bug_reporting_address): Move
10463         URLs and formatting newlines out of translatable string.
10465 2019-05-11  Bruno Haible  <bruno@clisp.org>
10467         gnupload: Explain how to create symlinks.
10468         * build-aux/gnupload (usage): Add an example that creates symlinks.
10470 2019-05-11  Paul Eggert  <eggert@cs.ucla.edu>
10472         fpucw: port to gcc -pedantic
10473         * lib/fpucw.h (GET_FPUCW, SET_FPUCW):
10474         Use __extension__ if using ({ ... }).
10476         crypto/af_alg: port to strict C compilers
10477         * lib/af_alg.c: Include af_alg.h regardless, so that the
10478         compilation unit is nonempty.
10480 2019-05-10  Bruno Haible  <bruno@clisp.org>
10482         base64: Avoid false positive warning from Coverity.
10483         Reported by Kamil Dudka <kdudka@redhat.com>.
10484         Idea by Paul Eggert.
10485         * lib/base64.c (base64_encode_fast, base64_encode): Add a no-op
10486         '& 0x3f' to the array index expressions. This convinces Coverity that
10487         there is no out-of-bounds array reference, regardless of the input.
10489 2019-05-09  Bruno Haible  <bruno@clisp.org>
10491         gettext: Update to gettext 0.20.
10492         * modules/gettext (Files): Remove m4/codeset.m4, m4/fcntl-o.m4,
10493         m4/glibc2.m4, m4/glibc21.m4, m4/intdiv0.m4, m4/intl.m4, m4/intldir.m4,
10494         m4/intmax.m4, m4/inttypes_h.m4, m4/inttypes-pri.m4, m4/lcmessage.m4,
10495         m4/lock.m4, m4/longlong.m4, m4/printf-posix.m4, m4/size_max.m4,
10496         m4/stdint_h.m4, m4/threadlib.m4, m4/uintmax_t.m4, m4/visibility.m4,
10497         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4. Add m4/host-cpu-c-abi.m4.
10498         (configure.ac): Request infrastructure compatible with gettext 0.20.
10499         * m4/glibc2.m4: Remove file.
10500         * m4/intdiv0.m4: Remove file.
10501         * m4/intl.m4: Remove file.
10502         * m4/intldir.m4: Remove file.
10503         * m4/intmax.m4: Remove file.
10504         * m4/printf-posix.m4: Remove file.
10505         * m4/uintmax_t.m4: Remove file.
10506         * m4/gettext.m4: Update from gettext 0.20.
10507         * m4/po.m4: Likewise.
10509 2019-05-09  Paul Eggert  <eggert@cs.ucla.edu>
10511         verify: remove verify_true
10512         * NEWS: Mention this.
10513         * lib/verify.h (verify_true): Remove.
10514         * tests/test-verify.c (item): Test verify_expr, not verify_true.
10516         Support C2X and C++17 static_assert
10517         C2X and C++17 finally added support for a simple, single-argument
10518         ‘static_assert’ that implements what the Gnulib ‘verify’ macro was
10519         doing back in 2005.  Implement static_assert on older platforms.
10520         The only remaining advantage of ‘verify’ is a shorter name.
10521         * doc/posix-headers/assert.texi (assert.h):
10522         * doc/verify.texi (Compile-time Assertions):
10523         Modernize for C2X and C++17.
10524         * lib/verify.h (_GL_HAVE__STATIC_ASSERT1, _GL_HAVE_STATIC_ASSERT1):
10525         New macros.
10526         (_GL_HAVE__STATIC_ASSERT): Remove.
10527         (_GL_HAVE__STATIC_ASSERT): Rely more heavily on __STDC_VERSION__.
10528         (_GL_VERIFY_TRUE, _GL_VERIFY_TYPE): Remove 2nd arg, the diagnostic
10529         string.  All callers changed.
10530         (_GL_VERIFY): Require 3 or more args, of which only the first 2
10531         are used.  All callers changed.
10532         (_Static_assert): Allow either 1 or 2 args, and define if
10533         !_GL_HAVE__STATIC_ASSERT1 instead of defining if
10534         !_GL_HAVE__STATIC_ASSERT.
10535         (static_assert): Define if !_GL_HAVE_STATIC_ASSERT1 instead
10536         of defining if !_GL_HAVE_STATIC_ASSERT.
10537         (verify_expr, verify): Don’t bother trying to copy the expression
10538         into the diagnostic, since 1-argument static_assert doesn’t.
10539         (verify): Prefer 1-argument _Static_assert if it works.
10540         * m4/assert_h.m4 (gl_ASSERT_H): Check for 1-argument static_assert.
10542 2019-05-08  Paul Eggert  <eggert@cs.ucla.edu>
10544         Fix _GL_HAVE__STATIC_ASSERT typo
10545         * lib/verify.h (_Static_assert): For the FreeBSD workaround,
10546         use _GL_HAVE__STATIC_ASSERT, not _GL_HAVE_STATIC_ASSERT.
10548 2019-05-05  Bruno Haible  <bruno@clisp.org>
10550         wcwidth: Ensure width 1, not 2, for ambiguous characters.
10551         Reported by Kiyoshi KANAZAWA <yoi_no_myoujou@yahoo.co.jp>
10552         via Akim Demaille <akim.demaille@gmail.com>.
10553         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check the width of U+2202. Use an
10554         en_US.UTF-8 locale, since that is more likely to be present than an
10555         fr_FR.UTF-8 locale.
10556         * tests/test-wcwidth.c (main): Check the width of U+2202.
10557         * doc/posix-functions/wcwidth.texi: Mention the issue.
10559 2019-05-03  Paul Eggert  <eggert@cs.ucla.edu>
10561         Port manywarnings to GCC 9
10562         * build-aux/gcc-warning.spec: Sort.  Add -Wattribute-alias,
10563         -Wc11-c2x-compat, -Wcast-result (for the D programming language),
10564         -Wclass-conversion, -Wdeprecated-copy, -Wdeprecated-copy-dtor,
10565         -Winit-list-lifetime, -Wpessimizing-move, -Wprio-ctor-dtor,
10566         -Wredundant-move.  Adjust to minor wording changes in GCC 9’s
10567         --help=warnings output.
10568         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wabsolute-value,
10569         -Waddress-of-packed-member, -Wattribute-warning, -Wcannot-profile,
10570         -Wmissing-profile.  Change -Wattribute-alias to -Wattribute-alias=2.
10572 2019-04-30  Paul Eggert  <eggert@cs.ucla.edu>
10574         Sync lib/mktime-internal.h from glibc
10575         * config/srclist.txt: Add entry for lib/mktime-internal.h.
10576         * lib/mktime-internal.h: Autoupdate.
10578 2019-04-28  Bruno Haible  <bruno@clisp.org>
10580         tls tests: Prevent that the test takes too long.
10581         * tests/test-tls.c: Include <signal.h>, <unistd.h>.
10582         (main): Let the test fail if it takes more than 10 minutes.
10583         * modules/tls-tests (configure.ac): Test whether 'alarm' is declared.
10585 2019-04-27  Bruno Haible  <bruno@clisp.org>
10587         lock tests: Prevent that the test takes too long.
10588         * tests/test-lock.c: Include <signal.h>, <unistd.h>.
10589         (main): Let the test fail if it takes more than 10 minutes.
10590         * modules/lock-tests (configure.ac): Test whether 'alarm' is declared.
10592 2019-04-27  Bruno Haible  <bruno@clisp.org>
10594         localename: Fix crash on mingw (regression from 2018-11-23).
10595         * lib/localename.c (gl_locale_name_posix): Don't attempt to convert a
10596         locale name that is null.
10598 2019-04-27  Bruno Haible  <bruno@clisp.org>
10600         Fix gcc warnings on 64-bit mode mingw.
10601         * lib/clean-temp.c: Include <stdint.h> instead of defining uintptr_t.
10602         * lib/gl_array_list.c: Likewise.
10603         * lib/gl_array_map.c: Likewise.
10604         * lib/gl_array_set.c: Likewise.
10605         * lib/gl_carray_list.c: Likewise.
10606         * lib/gl_sublist.c: Likewise.
10607         * lib/gl_avltreehash_list.c (uintptr_t): Remove definition.
10608         * lib/gl_rbtreehash_list.c (uintptr_t): Likewise.
10609         * lib/gl_hash_map.c (uintptr_t): Likewise.
10610         * lib/gl_hash_set.c (uintptr_t): Likewise.
10611         * lib/gl_linkedhash_list.c (uintptr_t): Likewise.
10612         * lib/gl_linkedhash_map.c (uintptr_t): Likewise.
10613         * lib/gl_linkedhash_set.c (uintptr_t): Likewise.
10614         * lib/iconv.c (uintptr_t): Likewise.
10615         * lib/iconv_close.c (uintptr_t): Likewise.
10616         * tests/test-lock.c: Include <stdint.h>.
10617         (once_contender_thread, test_once): Cast through 'intptr_t' instead of
10618         'long'.
10619         * modules/clean-temp (Depends-on): Add stdint.
10620         * modules/array-list (Depends-on): Likewise.
10621         * modules/array-map (Depends-on): Likewise.
10622         * modules/array-set (Depends-on): Likewise.
10623         * modules/carray-list (Depends-on): Likewise.
10624         * modules/sublist (Depends-on): Likewise.
10625         * modules/lock-tests (Depends-on): Likewise.
10627 2019-04-27  Bruno Haible  <bruno@clisp.org>
10629         error: Tweak indentation.
10630         * lib/error.c: Correct indentation.
10632 2019-04-27  Bruno Haible  <bruno@clisp.org>
10634         term-style-control: Fix gcc warning on mingw.
10635         * lib/term-style-control.c (ensure_other_signal_handlers): Reduce scope
10636         of i.
10638 2019-04-26  Bruno Haible  <bruno@clisp.org>
10640         pipe-filter-gi, pipe-filter-ii: Fix gcc warning.
10641         * lib/pipe-filter-aux.h (read): Undefine before redefinition.
10643 2019-04-26  Bruno Haible  <bruno@clisp.org>
10645         relocatable-prog: Fix gcc warning on mingw.
10646         * lib/progreloc.c (maybe_executable): Don't define on native Windows and
10647         on EMX.
10649 2019-04-02  Bruno Haible  <bruno@clisp.org>
10651         gitsub.sh: New file.
10652         * top/gitsub.sh: New file.
10654 2019-04-18  Akim Demaille  <akim@lrde.epita.fr>
10656         argmatch: use void* for raw memory pointers
10657         * lib/argmatch.h, lib/argmatch.c (argmatch, argmatch_valid)
10658         (__xargmatch_internal, argmatch_to_argument): Use void* for pointers
10659         to "values", keep char* for strings.
10661 2019-04-21  Akim Demaille  <akim@lrde.epita.fr>
10663         prefix-gnulib-mk: fix the support for gnulib-po
10664         * build-aux/prefix-gnulib-mk (prefix_assignment): Remove useless $res.
10665         Don't touch HAVE_* variables.
10666         Map AM_CPPFLAGS and AM_CPPFLAGS to the library's corresponding variables.
10668 2019-04-18  Bernhard Voelker  <mail@bernhard-voelker.de>
10670         di-set: allow free with 'ino_map' being NULL.
10671         * lib/di-set.c (di_set_free): Avoid ino_map_free() when dis->ino_map
10672         is NULL.  Bug introduced in commit 3703dbbe88dd.
10673         * tests/test-di-set.c: Add di_set_free() right after di_set_alloc()
10674         as a test.
10676 2019-04-14  Paul Eggert  <eggert@cs.ucla.edu>
10678         * lib/str-two-way.h: Fix comment typo.
10680 2019-04-13  Bruno Haible  <bruno@clisp.org>
10682         x-to-1: Restore ability to use original calling convention.
10683         * build-aux/x-to-1.in: Add comments. Accept the original form of
10684         HELP2MAN argument as well as the form expected since 2012-12-12.
10686 2019-04-13  Bruno Haible  <bruno@clisp.org>
10688         x-to-1: Avoid failure due to missing perl modules.
10689         * build-aux/x-to-1.in: Test whether all the perl modules that help2man
10690         needs are installed.
10692 2019-04-13  Bruno Haible  <bruno@clisp.org>
10694         openmp-init: New module.
10695         * modules/openmp-init: New file.
10696         * modules/openmp: (Files, Depends-on, configure.ac, Makefile.am): Revert
10697         the changes from 2019-04-09.
10699 2019-04-12  Bruno Haible  <bruno@clisp.org>
10701         signbit: Fix compilation error when gnulib's math.h exists twice.
10702         * lib/math.in.h (GNULIB_defined_signbit): New macro.
10704 2019-04-12  Bruno Haible  <bruno@clisp.org>
10706         openmp: Fix compilation error on platforms without OpenMP.
10707         * lib/omp-init.c: Include <omp.h> only if _OPENMP.
10709 2019-04-09  Bernhard Voelker  <mail@bernhard-voelker.de>
10711         mountlist: make parsing /proc/self/mountinfo more robust
10712         Cater for the following issues with mountinfo parsing (the first
10713         one was reported by Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
10714         in <https://bugs.gnu.org/35137>).
10715         1. The fields source, target, mntroot and fstype may contain characters
10716         like '\r'; sscanf(3) fails to read such values with the %s format
10717         specifier because it would stop at such characters.
10718         Example: "mount -t tmpfs tmpfs /foo^Mbar".
10719         The only true separator in that file is the ' ' character.
10720         2. The source field may be an empty string, which happens e.g. with
10721         "mount -t tmpfs '' /target".
10722         3. The fstype field may contain mangled characters as well which need
10723         unescaping.
10724         * lib/mountlist.c (terminate_at_blank): Add utility function.
10725         (read_file_system_list): In the block trying to read the mountinfo file,
10726         avoid using sscanf(3) with %s format; instead, parse the above fields
10727         separated by spaces one by one.
10728         This also handles the case when the source field is an empty string.
10729         Unescape the fstype field.
10731 2019-04-09  Bruno Haible  <bruno@clisp.org>
10733         openmp: Add workaround for 32-bit programs on AIX.
10734         * lib/omp.in.h: New file.
10735         * lib/omp-init.c: New file, based on lib/nproc.c.
10736         * m4/omp_h.m4: New file.
10737         * modules/openmp (Files): Add them.
10738         (Depends-on): Add include_next, c-ctype, setenv.
10739         (configure.ac): Invoke gl_OMP_H.
10740         (Makefile.am): Add rules to create omp.h and compile omp-init.c.
10741         (Include): Mention <omp.h>.
10743 2019-04-09  Bruno Haible  <bruno@clisp.org>
10745         nproc: Fix return value for privileged processes.
10746         * lib/nproc.c (num_processors_ignoring_omp): Test getuid(), not
10747         getpid().
10749 2019-04-07  Bruno Haible  <bruno@clisp.org>
10751         Add copyright notices in several files.
10752         Reported by <ineiev@gnu.org> in <https://savannah.gnu.org/bugs/?54809>.
10753         * lib/_Noreturn.h: Add LGPLv2+ copyright notice.
10754         * lib/libunistring.valgrind: Likewise.
10755         * lib/iconv_open-*.gperf: Add GPLv2+ copyright notice.
10756         * lib/uniname/gen-uninames.lisp: Add GPLv3+ copyright notice.
10757         * lib/memchr.valgrind: Likewise.
10758         * lib/memchr2.valgrind: Likewise.
10759         * lib/rawmemchr.valgrind: Likewise.
10760         * lib/relocatable.valgrind: Likewise.
10761         * lib/strchrnul.valgrind: Likewise.
10763 2019-03-25  Bruno Haible  <bruno@clisp.org>
10765         term-style-control tests: Fix link error.
10766         Reported by Tom G. Christensen in
10767         <https://lists.gnu.org/archive/html/bug-gnulib/2019-03/msg00108.html>.
10768         * modules/term-style-control-tests (Makefile.am): Link
10769         test-term-style-control-hello and test-term-style-control-yes against
10770         LIBINTL.
10772 2019-03-24  Bruno Haible  <bruno@clisp.org>
10774         term-style-control: Add tests.
10775         * tests/test-term-style-control-hello.c: New file.
10776         * tests/test-term-style-control-yes.c: New file.
10777         * modules/term-style-control-tests: New file.
10779         term-style-control: New module.
10780         * lib/term-style-control.h: New file, based on libtextstyle's
10781         term-ostream.oo.h and term-ostream.oo.c.
10782         * lib/term-style-control.c: New file, based on libtextstyle's
10783         term-ostream.oo.c.
10784         * modules/term-style-control: New file.
10786 2019-03-22  Akim Demaille  <akim@lrde.epita.fr>
10788         _Noreturn: beware of C's _Noreturn in C++ pre C++11.
10789         * lib/_Noreturn.h, m4/gnulib-common.m4: Using C's _Noreturn in
10790         C++98 appears to be supported by Clang, but not by GCC nor ICC.
10792 2019-03-23  Bruno Haible  <bruno@clisp.org>
10794         Support cross-compilation to musl libc.
10795         Reported by Necktwi Ozfguah <necktwi@ferryfair.com>.
10796         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Add cross-compilation guesses for
10797         musl libc.
10798         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
10799         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
10800         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
10801         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
10802         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
10803         * m4/chown.m4 (gl_FUNC_CHOWN): Likewise.
10804         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
10805         * m4/exp2l.m4 (gl_FUNC_EXP2L): Likewise.
10806         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
10807         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
10808         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Likewise.
10809         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Likewise.
10810         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
10811         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
10812         * m4/fmod.m4 (gl_FUNC_FMOD): Likewise.
10813         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
10814         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
10815         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
10816         * m4/fpurge.m4 (gl_FUNC_FPURGE): Likewise.
10817         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
10818         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
10819         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
10820         * m4/getgroups.m4 (AC_FUNC_GETGROUPS, gl_FUNC_GETGROUPS): Likewise.
10821         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
10822         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Likewise.
10823         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
10824         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
10825         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
10826         * m4/iconv_open-utf.m4 (gl_FUNC_ICONV_OPEN_UTF_SUPPORT): Likewise.
10827         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
10828         * m4/log.m4 (gl_FUNC_LOG): Likewise.
10829         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
10830         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Likewise.
10831         * m4/log10.m4 (gl_FUNC_LOG10): Likewise.
10832         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
10833         * m4/log10l.m4 (gl_FUNC_LOG10L): Likewise.
10834         * m4/log1p.m4 (gl_FUNC_LOG1P): Likewise.
10835         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Likewise.
10836         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Likewise.
10837         * m4/log2.m4 (gl_FUNC_LOG2): Likewise.
10838         * m4/log2f.m4 (gl_FUNC_LOG2F): Likewise.
10839         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Likewise.
10840         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
10841         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
10842         * m4/modf.m4 (gl_FUNC_MODF): Likewise.
10843         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
10844         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
10845         * m4/perror.m4 (gl_FUNC_PERROR): Likewise.
10846         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_INFINITE,
10847         gl_PRINTF_INFINITE_LONG_DOUBLE, gl_PRINTF_DIRECTIVE_A,
10848         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO, gl_SNPRINTF_TRUNCATION_C99,
10849         gl_SNPRINTF_RETVAL_C99, gl_SNPRINTF_DIRECTIVE_N,
10850         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
10851         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Likewise.
10852         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
10853         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Likewise.
10854         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
10855         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
10856         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
10857         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
10858         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
10859         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
10860         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
10861         * m4/setenv.m4 (gl_FUNC_SETENV): Likewise.
10862         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
10863         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
10864         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
10865         * m4/strerror.m4 (gl_FUNC_STRERROR, gl_FUNC_STRERROR_0): Likewise.
10866         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
10867         * m4/strtold.m4 (gl_FUNC_STRTOLD): Likewise.
10868         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
10869         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
10870         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
10871         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
10872         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
10873         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
10874         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
10875         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
10877 2019-03-23  Bruno Haible  <bruno@clisp.org>
10879         posix_spawn_file_actions_*: Document musl libc bugs.
10880         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
10881         the bug.
10882         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Likewise.
10883         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Likewise.
10884         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): When
10885         cross-compiling to a musl system, guess no.
10886         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): Likewise.
10887         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): Likewise.
10889 2019-03-23  Bruno Haible  <bruno@clisp.org>
10891         futimens: Document musl libc bug.
10892         * doc/posix-functions/futimens.texi: Mention the bug.
10893         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Require AC_CANONICAL_HOST. When
10894         cross-compiling, guess no on glibc and musl systems.
10896 2019-03-23  Bruno Haible  <bruno@clisp.org>
10898         Clarify that cross-compilation guesses are guesses.
10899         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): When cross-compiling, add
10900         prefix 'guessing ' to gl_cv_func_chown_follows_symlink.
10901         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): When cross-compiling, add
10902         prefix 'guessing ' to gl_cv_func_fchownat_nofollow_works.
10903         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): When
10904         cross-compiling, add prefix 'guessing ' to gl_cv_func_getcwd_abort_bug.
10905         * m4/glob.m4 (gl_GLOB): When cross-compiling, add prefix 'guessing ' to
10906         gl_cv_glob_lists_symlinks.
10907         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): When cross-compiling, add prefix
10908         'guessing ' to ac_cv_func_malloc_0_nonnull.
10909         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): When cross-compiling, add prefix
10910         'guessing ' to ac_cv_func_realloc_0_nonnull.
10911         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, add prefix
10912         'guessing ' to gl_cv_func_poll.
10913         * m4/iconv_open-utf.m4 (gl_FUNC_ICONV_OPEN_UTF_SUPPORT): When cross-
10914         compiling, add prefix 'guessing ' to gl_cv_func_iconv_supports_utf.
10915         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Update accordingly.
10917 2019-03-23  Bruno Haible  <bruno@clisp.org>
10919         strtold: Fix typo.
10920         * m4/strtold.m4 (gl_FUNC_STRTOLD): Fix typo in variable name.
10922 2019-03-23  Bruno Haible  <bruno@clisp.org>
10924         noreturn: In C++ mode with clang, use _Noreturn as fallback.
10925         Reported by Akim Demaille.
10926         * lib/noreturn.h (_GL_NORETURN_FUNC): In C++ mode with clang, when
10927         [[noreturn]] would not work, use _Noreturn instead.
10929 2019-03-22  Akim Demaille  <akim@lrde.epita.fr>
10931         libtextstyle-optional: Fix compiler warnings.
10932         * lib/textstyle.in.h (html_styled_ostream_create): Flag arguments
10933         as unused.
10935 2019-03-19  Akim Demaille  <akim@lrde.epita.fr>
10937         bitset: fix memory leaks
10938         Reported by Bruno Haible.
10939         https://lists.gnu.org/archive/html/bug-gnulib/2019-03/msg00027.html
10940         * lib/bitset/vector.c (vbitset_free): New.
10941         (vbitset_vtable): Use it.
10943 2019-03-19  Akim Demaille  <akim@lrde.epita.fr>
10945         bitset: minor changes
10946         * lib/bitset/base.h (bitset_alloc_type): Remove, unused.
10947         * lib/bitset/table.c: Formatting changes.
10948         Remove useless braces.
10949         Prefer using else in cascades of if/else-if with returns.
10950         * lib/bitset/vector.c: Reduce scopes.
10952 2019-03-19  Akim Demaille  <akim@lrde.epita.fr>
10954         bitset: expose bitset_resize
10955         * lib/bitset.h (bitset_resize): Bounce on the polymorphic implementation.
10956         * tests/test-bitset.c (check_attributes): Check bitset_resize.
10957         (main): Use a variable bitset as reference, since fixed does not support resize.
10959 2019-03-19  Bruno Haible  <bruno@clisp.org>
10961         doc: Document the 'stdnoreturn' and 'noreturn' modules.
10962         Reported by Akim Demaille.
10963         * doc/noreturn.texi: New file.
10964         * doc/gnulib.texi: Include it.
10966 2019-03-19  Bruno Haible  <bruno@clisp.org>
10968         doc: Document how to use 'static inline'.
10969         * doc/static-inline.texi: New file.
10970         * doc/gnulib.texi: Include it.
10972 2019-03-19  Bruno Haible  <bruno@clisp.org>
10974         libtextstyle-optional: Add tests.
10975         * tests/test-libtextstyle.c: New file, based on libtextstyle's
10976         adhoc-tests/hello.c.
10977         * tests/test-libtextstyle-default.css: New file, copied from
10978         libtextstyle's adhoc-tests/hello-default.css.
10979         * modules/libtextstyle-optional-tests: New file.
10981         libtextstyle-optional: New module.
10982         * lib/textstyle.in.h: New file, based on libtextstyle's textstyle.h.
10983         * m4/libtextstyle-optional.m4: New file, based on m4/libtextstyle.m4.
10984         * modules/libtextstyle-optional: New file.
10986 2019-03-19  Bruno Haible  <bruno@clisp.org>
10988         c-stack: Make signal handlers more reliable.
10989         * lib/c-stack.c (progname): New variable.
10990         (die): Use it.
10991         (c_stack_action): Initialize it.
10992         (segv_handler): Save and restore errno.
10994 2019-03-19  Bruno Haible  <bruno@clisp.org>
10996         Help making signal handlers more reliable.
10997         * m4/gnulib-common.m4 (gl_COMMON_BODY): Emit definition of
10998         _GL_ASYNC_SAFE into config.h.
10999         * lib/nanosleep.c (sighandler): Mark as _GL_ASYNC_SAFE.
11000         * lib/fatal-signal.h (at_fatal_signal): Add _GL_ASYNC_SAFE marker to
11001         argument.
11002         * lib/fatal-signal.c (action_t, uninstall_handlers,
11003         fatal_signal_handler): Mark as _GL_ASYNC_SAFE.
11004         * lib/clean-temp.c (cleanup_action): Mark as _GL_ASYNC_SAFE.
11005         * lib/wait-process.c (cleanup_slaves, cleanup_slaves_action): Mark as
11006         _GL_ASYNC_SAFE.
11007         * lib/c-stack.h (c_stack_action): Add _GL_ASYNC_SAFE marker to argument.
11008         * lib/c-stack.c: Add _GL_ASYNC_SAFE markers.
11010 2019-03-18  Bruno Haible  <bruno@clisp.org>
11012         _Noreturn: clang and MSVC do support [[noreturn]] in C++11 mode.
11013         * lib/_Noreturn.h: Use [[noreturn]] if __GNUC__ and __GNUC_MINOR__
11014         indicate clang, or if _MSC_VER indicates MSVC++ 14.0 or newer.
11016 2019-03-17  Akim Demaille  <akim@lrde.epita.fr>
11018         _Noreturn: GCC 4.7 does not support [[noreturn]] in C++11 mode
11019         * lib/_Noreturn.h, m4/gnulib-common.m4: Don't use [[noreturn]] before
11020         GCC 4.8.
11022 2019-03-17  Paul Eggert  <eggert@cs.ucla.edu>
11024         fts: minor simplification
11025         * lib/fts.c (fts_safe_changedir): Remove redundant assignment.
11027 2019-03-17  Akim Demaille  <akim@lrde.epita.fr>
11029         bitset, timevar: Depend on c99.
11030         Reported by Bruno Haible.
11031         * modules/bitset, modules/timevar (Depends-on): Add c99.
11033 2019-03-16  Akim Demaille  <akim@lrde.epita.fr>
11035         bitset: a bit (...) more tests
11036         * tests/test-bitset.c (check_attributes): Check zero and ones.
11038 2019-03-16  Akim Demaille  <akim@lrde.epita.fr>
11040         bitset: fix overflows.
11041         Reported by Bruno Haible.
11042         https://lists.gnu.org/archive/html/bug-gnulib/2019-03/msg00017.html
11043         * lib/bitset/table.c (tbitset_test): last_bit is the position of
11044         the bit in the array of bitset_word, so be sure to take its modulo
11045         number-of-bits-in-bitset-word (i.e., EBITSET_ELT_WORDS).
11046         * lib/bitset/list.c (lbitset_unused_clear): Likewise.
11048 2019-03-14  Akim Demaille  <akim@lrde.epita.fr>
11050         bitset: style changes.
11051         * lib/bitset/table.c: Use NULL, not 0, for pointers.
11052         Formatting changes.
11053         (tbitset_list): Reduce scopes.
11055 2019-03-16  Bruno Haible  <bruno@clisp.org>
11057         fatal-signal: Pass the signal number to the action.
11058         * lib/fatal-signal.h (at_fatal_signal): Change the signature.
11059         * lib/fatal-signal.c (action_t): Take the signal number as parameter.
11060         (fatal_signal_handler): Pass the signal number to the action.
11061         * lib/clean-temp.c (cleanup_action): Renamed from cleanup. Take the
11062         signal number as parameter.
11063         (create_temp_dir): Update.
11064         * lib/wait-process.c (cleanup_slaves_action): New function.
11065         (register_slave_subprocess): Update at_fatal_signal invocation.
11066         * NEWS: Mention the change.
11068 2019-03-16  Bruno Haible  <bruno@clisp.org>
11070         fatal-signal: Add function that lists the fatal signals.
11071         * lib/fatal-signal.h (get_fatal_signals): New declaration.
11072         * lib/fatal-signal.c (get_fatal_signals): New function.
11074 2019-03-14  Bruno Haible  <bruno@clisp.org>
11076         isatty: Make it return true in Cygwin consoles on native Windows.
11077         * lib/isatty.c: Include <string.h>.
11078         (GetProcAddress): New macro.
11079         (GetNamedPipeClientProcessIdFuncType): New type.
11080         (GetNamedPipeClientProcessIdFunc): New variable.
11081         (QueryFullProcessImageNameFuncType): New type.
11082         (QueryFullProcessImageNameFunc): New variable.
11083         (initialized): New variable.
11084         (initialize): New function.
11085         (IsCygwinConsoleHandle): New function.
11086         (isatty): Invoke it.
11087         * doc/posix-functions/isatty.texi: Mention the issue.
11089 2019-03-14  Bruno Haible  <bruno@clisp.org>
11091         all: Update URLs to msdn.microsoft.com.
11092         * lib/stat-w32.c et al.: Update URLs after most of msdn.microsoft.com
11093         was moved to docs.microsoft.com.
11095 2019-03-13  Bruno Haible  <bruno@clisp.org>
11097         gnulib-tool: Clarify the coding style.
11098         Suggested by Pavel Raiskup <praiskup@redhat.com>.
11099         * gnulib-tool: Add comment about coding style.
11101 2019-03-11  Paul Eggert  <eggert@cs.ucla.edu>
11103         strtod: fix clash with strtold
11104         Problem reported for RHEL 5 by Jesse Caldwell (Bug#34817).
11105         * lib/strtod.c (compute_minus_zero, minus_zero):
11106         Simplify by remving the macro / external variable,
11107         and having just a function.  User changed.  This avoids
11108         the need for an external variable that might clash.
11110 2019-03-10  Bruno Haible  <bruno@clisp.org>
11112         alloca-opt: Fix conflict mingw's new <alloca.h> file.
11113         Reported by Eli Zaretskii <eliz@gnu.org>.
11114         * lib/alloca.in.h: On mingw systems that have <alloca.h>, include that.
11115         * m4/alloca.m4 (gl_FUNC_ALLOCA): Set HAVE_ALLOCA_H.
11116         * modules/alloca-opt (Makefile.am): Substitute HAVE_ALLOCA_H.
11118 2019-03-10  Bruno Haible  <bruno@clisp.org>
11120         tests: Avoid havoc with "gcc -fcheck-pointer-bounds".
11121         * tests/test-fprintf-posix2.c: Skip the test when -fcheck-pointer-bounds
11122         is in use.
11123         * tests/test-printf-posix2.c: Likewise.
11125 2019-03-10  Bruno Haible  <bruno@clisp.org>
11127         uninorm tests: Free allocated memory.
11128         * tests/uninorm/test-u32-normalize-big.h
11129         (struct normalization_test_file): Remove 'const' from allocated member.
11130         (free_normalization_test_file): New declaration.
11131         * tests/uninorm/test-u32-normalize-big.c (test_other): Free allocated
11132         memory.
11133         (free_normalization_test_file): New function.
11134         * tests/uninorm/test-u32-nfc-big.c (main): Free allocated
11135         'struct normalization_test_file' contents.
11136         * tests/uninorm/test-u32-nfd-big.c (main): Likewise.
11137         * tests/uninorm/test-u32-nfkc-big.c (main): Likewise.
11138         * tests/uninorm/test-u32-nfkd-big.c (main): Likewise.
11140 2019-03-10  Bruno Haible  <bruno@clisp.org>
11142         di-set: Fix memory leak.
11143         * lib/di-set.c (di_set_free): Free the ino_map through ino_map_free(),
11144         not free().
11146 2019-03-10  Bruno Haible  <bruno@clisp.org>
11148         tests: Free allocated memory.
11149         Reported by <deltatau@protonmail.com> via Assaf Gordon.
11150         * tests/test-astrxfrm.c (main): Free allocated memory.
11151         * tests/test-bitset.c (compare, check_attributes): Free allocated
11152         bitsets.
11153         * tests/test-filenamecat.c (main): Free allocated memory.
11154         * tests/test-freadahead.c (main): Free allocated memory and close stdin.
11155         * tests/test-freadptr.c (main): Likewise.
11156         * tests/test-freadptr2.c (main): Free allocated memory.
11157         * tests/test-freadseek.c (main): Likewise.
11158         * tests/test-gc-arcfour.c (main): Close allocated context.
11159         * tests/test-gc-arctwo.c (main): Likewise.
11160         * tests/test-gc-des.c (main): Close all allocated contexts.
11161         * tests/test-pipe-filter-gi1.c (main): Free allocated memory.
11162         * tests/test-pipe-filter-ii1.c (main): Likewise.
11163         * tests/test-posix_spawn_file_actions_addchdir.c (main): Destroy the
11164         allocated file actions.
11165         * tests/test-posix_spawn_file_actions_addclose.c (main): Likewise.
11166         * tests/test-posix_spawn_file_actions_adddup2.c (main): Likewise.
11167         * tests/test-posix_spawn_file_actions_addopen.c (main): Likewise.
11168         * tests/test-sameacls.c (main): Free allocated memory and ACLs.
11169         * tests/test-strfmon_l.c (main): Free allocated locales.
11170         * tests/test-striconveh.c (main): Free allocated iconv_t objects.
11171         * tests/uniconv/test-u8-conv-to-enc.c (main): Free allocated memory.
11172         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
11173         * tests/uniconv/test-u32-conv-to-enc.c (main): Likewise.
11174         * tests/unistr/test-chr.h (main): Free input32.
11175         * tests/unistr/test-strchr.h (test_strchr): Likewise.
11177 2019-03-10  Bruno Haible  <bruno@clisp.org>
11179         tests: Prepare for using valgrind.
11180         * tests/*.sh: Invoke all test programs through ${CHECKER}.
11181         * tests/*/*.sh: Likewise.
11182         * tests/test-freadptr.c (main): Update accordingly.
11183         * tests/test-freadseek.c (main): Likewise.
11185 2019-03-09  Bruno Haible  <bruno@clisp.org>
11187         get-rusage-as, pthread_sigmask tests: Fix -fsanitize=thread findings.
11188         * lib/get-rusage-as.c (get_rusage_as): When compiled by
11189         "gcc -fsanitize=thread", don't try get_rusage_as_via_setrlimit.
11190         * tests/test-pthread_sigmask2.c (main): Clean up the killer_thread
11191         before exiting.
11193 2019-03-09  Jim Meyering  <meyering@fb.com>
11195         test-userspec.c: don't print NULL
11196         * tests/test-userspec.c (main): A test release of gcc,
11197         9.0.1 20190310, warned that this test would attempt to
11198         print a NULL pointer via a %s printf format.  Fix that
11199         and remove the unnecessary preceding "!diag" conjunct.
11200         Also add a comment.
11202 2019-03-03  Bruno Haible  <bruno@clisp.org>
11204         getloadavg: Write NULL for the null pointer.
11205         Reported by Michal Privoznik <mprivozn@redhat.com>.
11206         * lib/getloadavg.c (getloadavg): Write NULL instead of 0.
11208 2019-02-28  Michal Privoznik  <mprivozn@redhat.com>
11210         alloca, tsearch-tests: Write NULL for the null pointer.
11211         * lib/alloca.c (i00afunc): Write NULL instead of 0.
11212         * tests/test-tsearch.c (mangle_tree): Likewise.
11214 2019-03-09  Bruno Haible  <bruno@clisp.org>
11216         strfmon_l: Fix -fsanitize=address finding.
11217         * lib/strfmon_l.c: Include <errno.h>, <stdbool.h>, <stdlib.h>,
11218         <string.h>.
11219         (MAX_ARGS): Renamed from MAX_ARG_WORDS.
11220         (directive_t, directives_t): New types.
11221         (fmon_parse): New function.
11222         (rpl_strfmon_l): Don't call va_arg more often than needed for the
11223         format string. Consume 'long double' arguments in places where the
11224         format string indicates so.
11225         * modules/strfmon_l (Depends-on): Add 'stdbool'.
11227 2019-03-09  Bruno Haible  <bruno@clisp.org>
11229         crypto/des: Fix undefined behaviour.
11230         * lib/des.c (READ_64BIT_DATA): Cast bytes to 'unsigned int', to avoid
11231         shift operations on 'int'.
11233 2019-03-09  Bruno Haible  <bruno@clisp.org>
11235         Fix undefined behaviour.
11236         * lib/bitrotate.h (rotl16, rotr16, rotl8, rotr8): Cast x to
11237         'unsigned int', to avoid shift operations on 'int'.
11238         * lib/xmemdup0.c (xmemdup0): Don't invoke memcpy with a zero size.
11239         * tests/test-count-leading-zeros.c (main): Use a random number that has
11240         as many bits as TYPE, not only 2*15 or 2*31 bits.
11241         * tests/test-count-trailing-zeros.c (main): Likewise.
11242         * tests/test-count-one-bits.c (main): Likewise.
11243         * tests/test-memmem.c: Don't include "null-ptr.h".
11244         (main): Use zerosize_ptr() instead of null_ptr().
11245         * modules/memmem-tests (Files): Remove tests/null-ptr.h.
11247 2019-03-08  Bruno Haible  <bruno@clisp.org>
11249         unilbrk/u*-possible-linebreaks: Fix undefined behaviour.
11250         Reported by Jeffrey Walton <noloader@gmail.com>.
11251         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks): Don't
11252         invoke memset with a zero size.
11253         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
11254         Likewise.
11255         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
11256         Adjust accordingly.
11258 2019-03-08  Bruno Haible  <bruno@clisp.org>
11260         unistr/*, uniconv/*: Fix undefined behaviour.
11261         Reported by Jeffrey Walton <noloader@gmail.com>.
11262         * lib/unistr/u-cpy.h (FUNC): Don't invoke memcpy with a zero size.
11263         * lib/unistr/u-cpy-alloc.h (FUNC): Likewise.
11264         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
11265         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
11267 2019-03-08  Bruno Haible  <bruno@clisp.org>
11269         unistr/u8-cmp: Fix undefined behaviour.
11270         Reported by Jeffrey Walton <noloader@gmail.com>.
11271         * lib/unistr/u8-cmp.c (u8_cmp): Don't invoke memcmp if n is zero.
11273 2019-03-08  Bruno Haible  <bruno@clisp.org>
11275         unictype/numeric: Fix undefined behaviour.
11276         Reported by Jeffrey Walton <noloader@gmail.com>.
11277         * lib/unictype/numeric.c (uc_numeric_value): Avoid undefined behaviour
11278         on shift overflow, caught by "gcc -fsanitize=undefined".
11279         * lib/unictype/bidi_of.c (uc_bidi_class): Add cast, for clarity.
11280         * lib/unictype/categ_of.c (lookup_withtable): Likewise.
11281         * lib/unictype/joininggroup_of.c (uc_joining_group): Likewise.
11283 2019-03-05  Paul Eggert  <eggert@cs.ucla.edu>
11285         git-version-gen: fix --version copyright year
11286         * build-aux/git-version-gen, build-aux/move-if-change (version):
11287         --version output copyright year is now taken from script year,
11288         so that it no longer needs to be updated by hand.
11290 2019-03-04  Bruno Haible  <bruno@clisp.org>
11292         relocatable-prog: Use wrapper-free installation on Mac OS X, take 2.
11293         This approach supports relocatable installation of shared libraries
11294         which depend on other shared libraries from the same package.
11295         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Determine use_macos_tools.
11296         If use_macos_tools is true, use reloc-ldflags and set LIBTOOL to be a
11297         wrapper around the original LIBTOOL.
11298         * build-aux/reloc-ldflags: Add support for Mac OS X, which uses the
11299         token '@loader_path' instead of '$ORIGIN'.
11300         * build-aux/libtool-reloc: New file.
11301         * modules/relocatable-prog (Files): Add it.
11302         * doc/relocatable-maint.texi (Supporting Relocation): Update to match
11303         the recent changes. Document the need to set the *_LDFLAGS of libraries.
11304         RELOCATABLE_LIBRARY_PATH and RELOCATABLE_CONFIG_H_DIR should be set in
11305         Makefile.am, not in configure.ac.
11307 2019-03-04  Bruno Haible  <bruno@clisp.org>
11309         relocatable-prog: Revert "Use wrapper-free installation on Mac OS X."
11310         * build-aux/install-reloc: Revert change.
11311         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Likewise.
11313 2019-02-24  Paul Eggert  <eggert@cs.ucla.edu>
11315         nstrftime: support the ‘+’ flag
11316         * lib/nstrftime.c (add, __strftime_internal):
11317         Add support for the ‘+’ flag introduced in POSIX.1-2017.
11318         (__strftime_internal): New arg ‘width’.  All uses changed.
11319         (DO_YEARISH, DO_MAYBE_SIGNED_NUMBER): New macros.
11321 2019-02-24  Bruno Haible  <bruno@clisp.org>
11323         relocatable-prog: Improve verbose output.
11324         * build-aux/install-reloc (func_verbose): Escape characters that would
11325         be interpreted by the shell.
11327 2019-02-24  Bruno Haible  <bruno@clisp.org>
11329         stat, lstat: Fix conflict with relocatable-prog-wrapper module.
11330         * lib/stat.c: On platforms other than OSF/1, include <sys/stat.h>, not
11331         "sys/stat.h".
11332         * lib/lstat.c: Likewise.
11333         * lib/fstat.c: Likewise.
11334         * lib/fstatat.c: Likewise.
11336 2019-02-23  Bernhard Voelker  <mail@bernhard-voelker.de>
11338         long-options: add parse_gnu_standard_options_only
11339         Discussed in https://bugs.gnu.org/33468 .
11341         * lib/long-options.c (parse_long_options): Use EXIT_SUCCESS instead of 0
11342         (parse_gnu_standard_options_only): Add function to process
11343         the GNU default options --help and --version and fail for
11344         any other unknown long or short option. See
11345         https://gnu.org/prep/standards/html_node/Command_002dLine-Interfaces.html
11346         * lib/long-options.h (parse_gnu_standard_options_only): Declare it.
11347         * modules/long-options (depends-on): Add stdbool, exitfail.
11348         * top/maint.mk (sc_prohibit_long_options_without_use): Update
11349         syntax-check rule, add new function name.
11351 2019-02-23  Bruno Haible  <bruno@clisp.org>
11353         relocatable-prog: Update documentation.
11354         * doc/relocatable-maint.texi (Supporting Relocation): Update to match
11355         the recent changes.
11357 2019-02-23  Paul Eggert  <eggert@cs.ucla.edu>
11359         nstrftime: tweak arg order
11360         * lib/nstrftime.c (__strftime_internal): Interchange arg order.
11361         All callers changed.  Suggested by TAMUKI Shoichi in:
11362         https://lists.gnu.org/r/bug-gnulib/2019-02/msg00052.html
11364 2019-02-23  Bruno Haible  <bruno@clisp.org>
11366         relocatable-prog: Use wrapper-free installation also on Mac OS X.
11367         Reported by Paul Smith <psmith@gnu.org>.
11368         * build-aux/install-reloc: Accept a 'mode' argument as first argument.
11369         (func_relativize): New function, from gnulib-tool.
11370         Handle mode 'macosx' through invocations of 'otool' and
11371         'install_name_tool'.
11372         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Determine use_macos_tools.
11373         If use_macos_tools is true, set INSTALL_PROGRAM_ENV to an
11374         'install-reloc' invocation with mode 'macosx'.
11376 2019-02-23  Bruno Haible  <bruno@clisp.org>
11378         relocatable-prog: Use $ORIGIN trick also on GNU/Hurd.
11379         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Use $ORIGIN trick also on
11380         Hurd with glibc >= 2.27.
11382 2019-02-21  Paul Eggert  <eggert@cs.ucla.edu>
11384         nstrftime: merge glibc strftime changes
11385         This incorporates:
11386         2019-02-11 Fix a few whitespace arrangement inconsistencies
11387         2019-01-24 strftime: Pass flags from "%EY" to "%Ey" [BZ #24096]
11388         2019-01-24 Set the default width of "%Ey" to 2 [BZ #23758]
11389         2019-01-11 strftime: use the "L_" macro with character literals
11390         * lib/nstrftime.c (__strftime_internal): New arg yr_spec.  All
11391         callers changed.  Default width of %Ey is now 2.  This is needed
11392         for proper handling of Japanese dates starting on 2019-05-01.
11394 2019-02-19  Bruno Haible  <bruno@clisp.org>
11396         relocatable-prog: Use $ORIGIN trick on more platforms.
11397         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Use $ORIGIN trick also on
11398         FreeBSD >= 7.3, DragonFly >= 3.0, NetBSD >= 8.0, OpenBSD >= 5.4,
11399         Solaris >= 10, Haiku. But don't use it on Android.
11400         * build-aux/reloc-ldflags: Allow the use of the $ORIGIN trick also on
11401         Hurd, FreeBSD, DragonFly, NetBSD, OpenBSD, Solaris, Haiku.
11403 2019-02-19  Bruno Haible  <bruno@clisp.org>
11405         progreloc: Speed up executable lookup on various platforms.
11406         * lib/progreloc.c: Include <errno.h>.
11407         (safe_read, full_read): New functions.
11408         (find_executable): On GNU/kFreeBSD, FreeBSD, DragonFly, NetBSD, Solaris,
11409         prefer the information from the /proc file system to a PATH search.
11411 2019-02-19  Bruno Haible  <bruno@clisp.org>
11413         progreloc: Simplify code for Android.
11414         * lib/progreloc.c (executable_fd): Don't define on Android.
11415         (maybe_executable, find_executable): Don't use executable_fd on Android.
11417 2019-02-15  Bruno Haible  <bruno@clisp.org>
11419         gnulib-tool: Support --import with just a few tests, not --with-tests.
11420         * gnulib-tool (func_import): New variable 'gentests'. Use it instead of
11421         'inctests' when generating files; use 'inctests' only for computing the
11422         transitive closure.
11424 2019-02-14  Bruno Haible  <bruno@clisp.org>
11426         gnulib-tool: Improve handling of multiple --local-dir options.
11427         * doc/gnulib.texi (Extending Gnulib): Explain how multiple --local-dir
11428         options work.
11429         * gnulib-tool (func_path_prepend): Remove function.
11430         (func_path_foreach): Make IFS handling more robust.
11431         (local_gnulib_path): Collect --local-dir values using func_path_append,
11432         not func_path_prepend.
11433         (func_determine_path_separator): Make IFS handling more robust.
11434         (func_lookup_file_cb): New function.
11435         (func_lookup_file): Rewritten to use func_lookup_file_cb instead of
11436         func_lookup_local_file. Apply the patches in the reverse order of their
11437         origin in $local_gnulib_path.
11438         (func_count_relative_local_gnulib_path): Make IFS handling more robust.
11439         * NEWS: Mention that the first --local-dir option is the one with
11440         highest priority.
11442 2019-02-10  Bruno Haible  <bruno@clisp.org>
11444         libtextstyle: New module.
11445         * m4/libtextstyle.m4: New file.
11446         * modules/libtextstyle: New file.
11448 2019-02-05  Bruno Haible  <bruno@clisp.org>
11450         declared.sh: Fix bug with variables of pointer type.
11451         * build-aux/declared.sh (sed_extract_extern_declared): Allow the space
11452         before the symbol to be omitted if the preceding character is a '*'.
11454 2019-02-04  Bruno Haible  <bruno@clisp.org>
11456         Add script for running tests under valgrind.
11457         * build-aux/run-test: New file, from GNU libunistring.
11458         * doc/valgrind-tests.texi: Rewritten to mention alternative approaches
11459         as well.
11461 2019-02-04  Bruno Haible  <bruno@clisp.org>
11463         declared.sh: Fix --version output.
11464         * build-aux/declared.sh (func_version): Update package name.
11466 2019-02-03  Bruno Haible  <bruno@clisp.org>
11468         Add script for determining the set of symbols to export from a library.
11469         * build-aux/declared.sh: New file, from GNU libunistring.
11470         * doc/lib-symbol-visibility.texi (Exported Symbols of Shared Libraries):
11471         Mention it.
11473 2019-02-02  Paul Eggert  <eggert@cs.ucla.edu>
11475         vla: add commentary about VLA_ELEMS
11476         * lib/vla.h (VLA_ELEMS): Add commentary,
11477         some inspired by Bruno Haible’s proposal in:
11478         https://lists.gnu.org/r/bug-gnulib/2019-01/msg00109.html
11480         dtoastr,ftoastr,ldtoastr: port to c-strtod changes
11481         Decouple these modules from c-strtod.  Nowadays it’s reasonable to
11482         assume the C99 signatures for strtod and strtold.  Programs that
11483         require stricter adherence to C99 should also use the strtod and
11484         strtold modules as needed, and we no longer need the
11485         HAVE_C99_STRTOLD macro.
11486         * NEWS: Mention this.
11487         * lib/ftoastr.c (STRTOF) [LENGTH == 3]: Assume strtold.
11488         * m4/c-strtod.m4 (gl_C_STRTOLD): Do not define HAVE_C99_STRTOLD.
11489         * modules/dtoastr, modules/ftoastr, modules/ldtoastr:
11490         (Files): Remove m4/c-strtod.m4.
11491         (configure.ac): Do not require gl_C99_STRTOLD, which no longer
11492         exists.
11494 2019-02-02  Bruno Haible  <bruno@clisp.org>
11496         fma: Improve code style.
11497         * lib/fma.c: Include <limits.h>, for CHAR_BIT.
11499 2019-02-02  Colin Watson  <cjwatson@debian.org>
11501         *-map tests: Fix compilation error.
11502         * tests/test-array_map.c: Include <limits.h>, for CHAR_BIT.
11503         * tests/test-hash_map.c: Likewise.
11504         * tests/test-linkedhash_map.c: Likewise.
11506 2019-01-31  Bruno Haible  <bruno@clisp.org>
11508         c-strtod, c-strtold: Use the bug fixes for strtod, strtold.
11509         * lib/stdlib.in.h (GNULIB_defined_strtod_function,
11510         GNULIB_defined_strtold_function): New macros.
11511         * lib/c-strtod.c (HAVE_GOOD_STRTOD_L): New macro.
11512         (STRTOD): Ignore HAVE_C99_STRTOLD.
11513         (c_locale): Don't define it on platforms where strtod_l/strtold_l is
11514         deemed buggy. But do use it on platforms where uselocale exists and is
11515         usable.
11516         (C_STRTOD): Don't use STRTOD_L on platforms where strtod_l/strtold_l is
11517         deemed buggy. On platforms where uselocale exists and is usable, use
11518         uselocale and strtod/strtold.
11519         * m4/c-strtod.m4 (gl_C99_STRTOLD): Remove macro.
11520         (gl_C_STRTOD): Require gt_FUNC_USELOCALE.
11521         (gl_C_STRTOLD): Likewise. Define HAVE_C99_STRTOLD unconditionally.
11522         * modules/c-strtod (Files): Add m4/intl-thread-locale.m4.
11523         (Depends-on): Add strtod.
11524         * modules/c-strtold (Files): Add m4/intl-thread-locale.m4.
11525         (Depends-on): Add strtold.
11527 2019-01-31  Bruno Haible  <bruno@clisp.org>
11529         strtod, strtold: Use the locale's decimal point.
11530         * lib/strtod.c: Include <locale.h>, <stdio.h>, <langinfo.h>.
11531         (decimal_point_char): New function, copied from lib/vasnprintf.c.
11532         (parse_number): Add a radixchar argument. Use it instead of '.'.
11533         (STRTOD): Invoke decimal_point_char and pass the result to parse_number.
11534         * m4/strtod.m4 (gl_PREREQ_STRTOD): Test whether nl_langinfo exists.
11535         * m4/strtold.m4 (gl_PREREQ_STRTOLD): Likewise.
11536         * tests/test-strtod1.c: New file.
11537         * tests/test-strtod1.sh: New file.
11538         * modules/strtod-tests (Files): Add test-strtod1.{sh,c}. Add
11539         locale-fr.m4 and its dependencies.
11540         (configure.ac): Invoke gt_LOCALE_FR, gt_LOCALE_FR_UTF8.
11541         (Makefile.am): Arrange to compile test-strtod1.c and run
11542         test-strtod1.sh.
11543         * tests/test-strtold1.c: New file.
11544         * tests/test-strtold1.sh: New file.
11545         * modules/strtold-tests (Files): Add test-strtold1.{sh,c}. Add
11546         locale-fr.m4 and its dependencies.
11547         (configure.ac): Invoke gt_LOCALE_FR, gt_LOCALE_FR_UTF8.
11548         (Makefile.am): Arrange to compile test-strtold1.c and run
11549         test-strtold1.sh.
11551 2019-01-31  Bruno Haible  <bruno@clisp.org>
11553         strtod, strtold tests: Simplify tests.
11554         * tests/test-strtod.c (main): Assume no rounding errors for 0.5.
11555         * tests/test-strtold.c (main): Likewise.
11557 2019-01-31  Bruno Haible  <bruno@clisp.org>
11559         strtod, strtold: Avoid unnecessary rounding errors.
11560         * lib/strtod.c (parse_number): Drop trailing zeroes before doing the
11561         decimal to DOUBLE conversion.
11563 2019-01-31  Bruno Haible  <bruno@clisp.org>
11565         strtod, strtold: Work around HP-UX 11.31/ia64 bug.
11566         * lib/strtod.c (STRTOD): When there is an extra character after the
11567         exponent marker 'p', reparse the number.
11568         * doc/posix-functions/strtod.texi: Document the HP-UX 11.31 bug.
11569         * doc/posix-functions/strtold.texi: Likewise.
11571 2019-01-29  Bruno Haible  <bruno@clisp.org>
11573         strtold: Add tests.
11574         * tests/test-strtold.c: New file, based on tests/test-strtod.c.
11575         * modules/strtold-tests: New file.
11577 2019-01-29  Bruno Haible  <bruno@clisp.org>
11579         strtold: New module.
11580         * lib/stdlib.in.h (strtold): New declaration.
11581         * lib/strtold.c: New file.
11582         * lib/strtod.c: Consider USE_LONG_DOUBLE.
11583         (STRTOD, LDEXP, HAVE_UNDERLYING_STRTOD, DOUBLE, MIN, MAX, L_,
11584         USE_LDEXP): New macros.
11585         (LDEXP, scale_radix_exp, parse_number, STRTOD): Adapt for
11586         USE_LONG_DOUBLE.
11587         (underlying_strtod): Remove function. Replace with some macros.
11588         Re-add the code for a missing underlying function that was removed on
11589         2013-02-19.
11590         * m4/strtold.m4: New file.
11591         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether strtold is declared.
11592         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLD, HAVE_STRTOLD,
11593         REPLACE_STRTOLD.
11594         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLD, HAVE_STRTOLD,
11595         REPLACE_STRTOLD.
11596         * modules/strtold: New file.
11597         * doc/posix-functions/strtold.texi: Document the new module.
11599 2019-01-29  Bruno Haible  <bruno@clisp.org>
11601         strtod: Fix compilation error on IRIX 6.5.
11602         * modules/strtod (Depends-on): Add 'math'.
11604 2019-01-28  Bruno Haible  <bruno@clisp.org>
11606         Fix build error when building a shared libunistring on Android.
11607         * tests/uninorm/test-nfc.c (n): Don't define on Android.
11608         (main): Add 'volatile', to defeat a GCC optimization that would
11609         eliminate the reference.
11610         * tests/uninorm/test-nfd.c (n): Don't define on Android.
11611         (main): Add 'volatile', to defeat a GCC optimization that would
11612         eliminate the reference.
11613         * tests/uninorm/test-nfkc.c (n): Don't define on Android.
11614         (main): Add 'volatile', to defeat a GCC optimization that would
11615         eliminate the reference.
11616         * tests/uninorm/test-nfkd.c (n): Don't define on Android.
11617         (main): Add 'volatile', to defeat a GCC optimization that would
11618         eliminate the reference.
11620 2019-01-27  Bruno Haible  <bruno@clisp.org>
11622         Avoid build errors due to wrong references between modules.
11623         * lib/uninorm/canonical-decomposition.c: Include
11624         "uninorm/decomposition-table.h", not "decomposition-table.h".
11625         * lib/uninorm/decomposition.c: Likewise.
11626         * lib/uninorm/u8-normalize.c: Include "uninorm/decompose-internal.h",
11627         not "decompose-internal.h".
11628         * lib/uninorm/u16-normalize.c: Likewise.
11629         * lib/uninorm/u32-normalize.c: Likewise.
11630         * lib/uninorm/uninorm-filter.c: Likewise.
11631         * lib/uninorm/nfkc.c: Likewise.
11632         * lib/uninorm/nfkd.c: Likewise.
11633         * lib/unicase/u8-casemap.c: Include "unicase/caseprop.h", not
11634         "caseprop.h".
11635         * lib/unicase/u8-ct-totitle.c: Likewise.
11636         * lib/unicase/u8-prefix-context.c: Likewise.
11637         * lib/unicase/u8-suffix-context.c: Likewise.
11638         * lib/unicase/u16-casemap.c: Likewise.
11639         * lib/unicase/u16-ct-totitle.c: Likewise.
11640         * lib/unicase/u16-prefix-context.c: Likewise.
11641         * lib/unicase/u16-suffix-context.c: Likewise.
11642         * lib/unicase/u32-casemap.c: Likewise.
11643         * lib/unicase/u32-ct-totitle.c: Likewise.
11644         * lib/unicase/u32-prefix-context.c: Likewise.
11645         * lib/unicase/u32-suffix-context.c: Likewise.
11646         * lib/unicase/u8-tolower.c: Include "unicase/unicasemap.h", not
11647         "unicasemap.h".
11648         * lib/unicase/u8-toupper.c: Likewise.
11649         * lib/unicase/u8-ct-tolower.c: Likewise.
11650         * lib/unicase/u8-ct-toupper.c: Likewise.
11651         * lib/unicase/u16-tolower.c: Likewise.
11652         * lib/unicase/u16-toupper.c: Likewise.
11653         * lib/unicase/u16-ct-tolower.c: Likewise.
11654         * lib/unicase/u16-ct-toupper.c: Likewise.
11655         * lib/unicase/u32-tolower.c: Likewise.
11656         * lib/unicase/u32-toupper.c: Likewise.
11657         * lib/unicase/u32-ct-tolower.c: Likewise.
11658         * lib/unicase/u32-ct-toupper.c: Likewise.
11659         * lib/unicase/u8-ct-casefold.c: Include "unicase/unicasemap.h", not
11660         "unicasemap.h", and "unicase/casefold.h", not "casefold.h".
11661         * lib/unicase/u16-ct-casefold.c: Likewise.
11662         * lib/unicase/u32-ct-casefold.c: Likewise.
11664 2019-01-27  Bruno Haible  <bruno@clisp.org>
11666         gperf: Fix error when this module is required by some test module.
11667         * modules/gperf (Applicability): Set to 'all'.
11669 2019-01-27  Bruno Haible  <bruno@clisp.org>
11671         tmpfile: Add support for Android.
11672         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Add a runtime test whether tmpfile()
11673         works.
11674         * lib/tmpfile.c (tmpfile): Add an alternative implementation for
11675         Android.
11676         * modules/tmpfile (Depends-on): Add 'stdbool'.
11677         * doc/posix-functions/tmpfile.texi: Mention the Android bug.
11678         * modules/argv-iter-tests (Depends-on): Add 'tmpfile'.
11680 2019-01-27  Akim Demaille  <akim@lrde.epita.fr>
11682         bitsetv: allow free on NULL.
11683         * lib/bitsetv.c (bitsetv_free): Do nothing when the bitsetv is NULL.
11685 2019-01-27  Bruno Haible  <bruno@clisp.org>
11687         test-framework-sh: Improve maintainability.
11688         * tests/init.sh: Clarify what belongs together. Reorder definitions.
11690 2019-01-27  Bruno Haible  <bruno@clisp.org>
11692         tests: Don't assume that /tmp exists.
11693         * tests/test-set-mode-acl-1.sh: Skip the test if /tmp does not exist.
11694         * tests/test-copy-acl-1.sh: Likewise.
11695         * tests/test-file-has-acl-1.sh: Likewise.
11696         * tests/test-copy-file-1.sh: Likewise.
11698 2019-01-27  Bruno Haible  <bruno@clisp.org>
11700         tests: Accommodate a shell that is not in /bin/sh.
11701         * tests/init.sh (setup_): Set srcdir and builddir.
11702         (BOURNE_SHELL): New variable.
11703         * modules/acl-tests (Depends-on): Add 'test-framework-sh'.
11704         * modules/file-has-acl-tests (Depends-on): Likewise.
11705         * modules/copy-file-tests (Depends-on): Likewise.
11706         * tests/test-set-mode-acl-1.sh: Use the test framework. Invoke shell
11707         scripts through $BOURNE_SHELL.
11708         * tests/test-set-mode-acl-2.sh: Likewise.
11709         * tests/test-copy-acl-1.sh: Likewise.
11710         * tests/test-copy-acl-2.sh: Likewise.
11711         * tests/test-file-has-acl-1.sh: Likewise.
11712         * tests/test-file-has-acl-2.sh: Likewise.
11713         * tests/test-copy-file-1.sh: Likewise.
11714         * tests/test-copy-file-2.sh: Likewise.
11715         * tests/test-set-mode-acl.sh (builddir): Consider value set by the
11716         invoker.
11717         * tests/test-copy-acl.sh (builddir): Likewise.
11718         * tests/test-file-has-acl.sh (builddir): Likewise.
11719         * tests/test-copy-file.sh (builddir): Likewise.
11720         * tests/test-vc-list-files-cvs.sh: Don't create shims for executables in
11721         build-aux/. Instead, invoke shell scripts through $BOURNE_SHELL.
11722         * tests/test-vc-list-files-git.sh: Likewise.
11724 2019-01-27  Bruno Haible  <bruno@clisp.org>
11726         tests: Fix some "unused variable" warnings.
11727         * tests/test-fts.c (fts_dealloc): Remove unused variable.
11728         * tests/unigbrk/test-uc-grapheme-breaks.c (main): Likewise.
11729         * tests/test-striconveh.c (main): Move some variable into the
11730         '#if HAVE_ICONV'.
11731         * tests/test-striconveha.c (main): Likewise.
11732         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
11733         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
11734         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
11735         * tests/uniconv/test-u8-conv-to-enc.c (main): Likewise.
11736         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
11737         * tests/uniconv/test-u32-conv-to-enc.c (main): Likewise.
11738         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
11739         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
11740         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
11741         * tests/uniconv/test-u8-strconv-to-enc.c (main): Likewise.
11742         * tests/uniconv/test-u16-strconv-to-enc.c (main): Likewise.
11743         * tests/uniconv/test-u32-strconv-to-enc.c (main): Likewise.
11744         * tests/test-tsearch.c (main): Move some variable into the
11745         '#if HAVE_INITSTATE'.
11747 2019-01-27  Bruno Haible  <bruno@clisp.org>
11749         unigbrk/uc-grapheme-breaks: Fix build failure.
11750         * lib/unigbrk/uc-grapheme-breaks.c: Don't include unistr.h.
11751         * modules/unigbrk/uc-grapheme-breaks (Makefile.am): Fix typo.
11753 2019-01-27  Bruno Haible  <bruno@clisp.org>
11755         mountlist: Merge two .m4 files.
11756         * m4/mountlist.m4 (gl_MOUNTLIST): Inline gl_LIST_MOUNTED_FILE_SYSTEMS.
11757         (AC_FUNC_GETMNTENT): Move to here, from m4/ls-mntd-fs.m4.
11758         * m4/ls-mntd-fs.m4: Remove file.
11759         * modules/mountlist (Files): Remove m4/ls-mntd-fs.m4.
11761 2019-01-27  Bruno Haible  <bruno@clisp.org>
11763         tests: Enable Linux specific tests on Android.
11764         * tests/test-flock.c (main): Treat Android like Linux.
11765         * tests/test-openat-safer.c (main): Likewise.
11767 2019-01-27  Bruno Haible  <bruno@clisp.org>
11769         relocatable-prog: Use Linux code on Android.
11770         * lib/progreloc.c: Treat Android like Linux.
11772 2019-01-26  Bruno Haible  <bruno@clisp.org>
11774         getloadavg: Add support for Android.
11775         * lib/getloadavg.c: Treat Android like Linux.
11777 2019-01-26  Bruno Haible  <bruno@clisp.org>
11779         vma-iter: Add support for Android.
11780         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Android as well.
11781         * lib/vma-iter.c: Treat Android like Linux.
11782         * lib/get-rusage-data.c (get_rusage_data): Likewise.
11784 2019-01-26  Bruno Haible  <bruno@clisp.org>
11786         fts: Optimize on Android.
11787         * lib/fts.c: Treat Android like Linux.
11789 2019-01-26  Bruno Haible  <bruno@clisp.org>
11791         fts: Add support for Android.
11792         * m4/fts.m4 (gl_FUNC_FTS_CORE): Avoid conflicts between the symbols
11793         defined by this module and the ones in libc.
11794         * tests/test-fts.c (main): Treat mkdir error EMLINK like EMFILE.
11796 2019-01-26  Bruno Haible  <bruno@clisp.org>
11798         mountlist: Use Linux code on Android.
11799         * lib/mountlist.c (setmntent, endmntent): Define fallbacks.
11800         (unescape_tab, read_file_system_list): Enable Linux code on Android
11801         as well.
11802         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Test for setmntent
11803         and endmntent.
11804         * modules/mountlist (Depends-on): Add 'getline'.
11806 2019-01-26  Bruno Haible  <bruno@clisp.org>
11808         localename tests: Fix test failure on Android.
11809         * modules/localename-tests (Depends-on): Add 'setlocale'.
11811 2019-01-26  Bruno Haible  <bruno@clisp.org>
11813         mountlist: Port better to Android.
11814         * lib/mountlist.c (MOUNTED): Redefine on Android.
11815         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Redefine MOUNTED on
11816         Android.
11818 2019-01-26  Bruno Haible  <bruno@clisp.org>
11820         striconveh: Fix use of uninitialized iconv_t.
11821         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
11822         <https://lists.gnu.org/archive/html/bug-libunistring/2019-01/msg00000.html>.
11823         * lib/striconveh.c (iconveh_open): Correct the iconv_close argument.
11825 2019-01-26  Bruno Haible  <bruno@clisp.org>
11827         nonblocking-socket-tests: Fix test failure on Android 4.3.
11828         * tests/test-nonblocking-socket.h (SOCKET_HAS_LARGE_BUFFER): Define to 1
11829         also on Android.
11831 2019-01-26  Bruno Haible  <bruno@clisp.org>
11833         sh-filename: Add support for Android 4.3.
11834         * m4/sh-filename.m4 (gl_SH_FILENAME): Set to "sh" on Android.
11836 2019-01-26  Bruno Haible  <bruno@clisp.org>
11838         ptsname_r: Work around bug on Android 4.3.
11839         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Define
11840         HAVE_ESSENTIALLY_WORKING_PTSNAME_R. Test whether the return value is
11841         correct.
11842         * lib/ptsname_r.c (__ptsname_r): If HAVE_ESSENTIALLY_WORKING_PTSNAME_R
11843         is defined, just fix the return value.
11844         * doc/glibc-functions/ptsname_r.texi: Mention the Android bug. Reword:
11845         The behaviour of musl libc is nothing to be "fixed", since it is
11846         compliant with the next POSIX standard.
11848 2019-01-26  Bruno Haible  <bruno@clisp.org>
11850         ttyname_r: Work around bug on Android 4.3.
11851         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is a stub.
11852         * lib/ttyname_r.c (ttyname_r): Implement for Android.
11853         * doc/posix-functions/ttyname_r.texi: Mention the Android bug.
11854         * doc/posix-functions/ttyname.texi: Likewise.
11856 2019-01-25  Bruno Haible  <bruno@clisp.org>
11858         getprogname: Port to Android 4.3.
11859         * lib/getprogname.c (getprogname): On Android, take only the last
11860         component of __progname.
11862 2019-01-25  Bruno Haible  <bruno@clisp.org>
11864         wcrtomb: Work around bug on Android 4.3.
11865         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test also whether wcrtomb works in
11866         the C locale.
11867         * lib/wcrtomb.c (wcrtomb): Provide alternate implementation for Android,
11868         which does not have the 'wctomb' function.
11869         * doc/posix-functions/wcrtomb.texi: Mention the Android bug.
11870         * tests/test-wcrtomb.c (main): Accept argument '5'.
11871         * tests/test-wcrtomb.sh: Add tests in the POSIX locale.
11873 2019-01-25  Bruno Haible  <bruno@clisp.org>
11875         setlocale: Work around bug on Android 4.3.
11876         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Test whether setlocale supports
11877         the "C" locale.
11878         * lib/setlocale.c (setlocale_unixlike): New wrapper for Android.
11879         * doc/posix-functions/setlocale.texi: Mention the Android bug.
11881 2019-01-24  Bruno Haible  <bruno@clisp.org>
11883         memchr: Work around bug on Android <= 5.0.
11884         * m4/memchr.m4 (gl_FUNC_MEMCHR): Add test against the Android bug.
11885         * doc/posix-functions/memchr.texi: Mention the Android bug.
11887 2019-01-24  Bruno Haible  <bruno@clisp.org>
11889         random: Fix compilation error on Android 4.3.
11890         * lib/stdlib.in.h (random, srandom): Test also REPLACE_RANDOM.
11891         (initstate): Test REPLACE_INITSTATE and HAVE_INITSTATE, not HAVE_RANDOM.
11892         (setstate): Test REPLACE_SETSTATE and HAVE_SETSTATE, not HAVE_RANDOM.
11893         * m4/random.m4 (gl_FUNC_RANDOM): Set HAVE_INITSTATE, HAVE_SETSTATE,
11894         REPLACE_RANDOM, REPLACE_INITSTATE, REPLACE_SETSTATE.
11895         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_INITSTATE,
11896         HAVE_SETSTATE, REPLACE_RANDOM, REPLACE_INITSTATE, REPLACE_SETSTATE.
11897         * modules/stdlib (Makefile.am): Substitute HAVE_INITSTATE, HAVE_SETSTATE,
11898         REPLACE_RANDOM, REPLACE_INITSTATE, REPLACE_SETSTATE.
11899         * modules/random (Depends-on, configure.ac): Test also REPLACE_RANDOM,
11900         REPLACE_INITSTATE, REPLACE_SETSTATE.
11901         * doc/posix-functions/random.texi: Correct the description of the
11902         situation on Android.
11903         * doc/posix-functions/srandom.texi: Likewise.
11904         * doc/posix-functions/rand.texi: Likewise.
11905         * doc/posix-functions/srand.texi: Likewise.
11907 2019-01-24  Bruno Haible  <bruno@clisp.org>
11909         mbtowc: Fix compilation error on Android 4.3.
11910         * lib/stdlib.in.h (mbtowc): Test also HAVE_MBTOWC.
11911         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Test whether mbtowc exists. Set
11912         HAVE_MBTOWC.
11913         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether mbtowc is declared.
11914         (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MBTOWC.
11915         * modules/stdlib (Makefile.am): Substitute HAVE_MBTOWC.
11916         * modules/mbtowc (Depends-on, configure.ac): Test also HAVE_MBTOWC.
11917         * doc/posix-functions/mbtowc.texi: Mention the change.
11919 2019-01-24  Bruno Haible  <bruno@clisp.org>
11921         fdatasync: Fix compilation error on Android 4.3.
11922         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): On platforms other than Solaris,
11923         test whether fdatasync() exists.
11925 2019-01-24  Bruno Haible  <bruno@clisp.org>
11927         unlinkat: Fix compilation error on Android 4.3.
11928         * lib/unistd.in.h: Include <fcntl.h> when module 'unlinkat' is in use
11929         also on Android.
11930         * doc/posix-functions/unlinkat.texi: Mention the issue.
11932 2019-01-24  Bruno Haible  <bruno@clisp.org>
11934         renameat: Fix compilation error on Android 4.3.
11935         * lib/stdio.in.h: Include <sys/stat.h> when module 'renameat' is in use.
11936         * doc/posix-functions/renameat.texi: Mention the issue.
11938 2019-01-24  Bruno Haible  <bruno@clisp.org>
11940         fchownat: Fix compilation error on Android 4.3.
11941         * lib/unistd.in.h: Include <sys/stat.h> when module 'fchownat' is in
11942         use.
11943         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG,
11944         gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): Include also <sys/stat.h>.
11945         * doc/posix-functions/fchownat.texi: Mention the issue.
11947 2019-01-23  Bruno Haible  <bruno@clisp.org>
11949         gnulib-tool: Support running testdirs on Android.
11950         * build-aux/test-driver.diff: New file.
11951         * gnulib-tool (func_create_testdir, func_create_megatestdir): Patch
11952         build-aux/test-driver after running automake.
11954 2019-01-23  Akim Demaille  <akim@lrde.epita.fr>
11956         relocatable-prog: avoid warnings from Automake
11957         * modules/relocatable-prog: Don't declare PHONY dependencies in
11958         Automake conditionals.
11960 2019-01-23  Akim Demaille  <akim@lrde.epita.fr>
11962         array-list: Pacify warnings about unused arguments (-Wunused-parameter).
11963         * lib/gl_array_list.c (gl_array_iterator_free): "Use" the argument.
11965 2019-01-23  Bruno Haible  <bruno@clisp.org>
11967         threadlib: Revert commit from 2018-06-25. We now have a better fix.
11968         * m4/threadlib.m4 (gl_THREADLIB_BODY): Don't attempt to defeat a
11969         preceding -Wl,--as-needed option. Don't check whether the linker
11970         supports --as-needed/--no-as-needed and --push-state/--pop-state.
11972 2019-01-23  Bruno Haible  <bruno@clisp.org>
11974         thread: Force linking with -lpthread, even when --as-needed is in use.
11975         Reported by Richard W.M. Jones <rjones@redhat.com> in
11976         <https://lists.gnu.org/archive/html/bug-gnulib/2019-01/msg00123.html>.
11977         * lib/glthread/thread.h (pthread_create): Don't declare weak.
11979 2019-01-23  Akim Demaille  <akim.demaille@gmail.com>
11980             Bruno Haible  <bruno@clisp.org>
11982         relocatable: avoid compiler warnings (-Wshadow)
11983         * lib/relocatable.c (compute_curr_prefix): Rename local variables
11984         to avoid name collisions with global variables.
11986 2019-01-22  Bruno Haible  <bruno@clisp.org>
11988         vasnprintf: Don't use %n on Android.
11989         Reported and fix suggested by Hugo Beauzée-Luyssen <hugo@beauzee.fr> in
11990         <https://lists.gnu.org/archive/html/bug-gnulib/2018-12/msg00123.html>.
11991         * lib/vasnprintf.c (VASNPRINTF): Don’t use %n on Android.
11993 2019-01-22  Bruno Haible  <bruno@clisp.org>
11995         *printf: Support cross-compilation to Android.
11996         * m4/printf.m4: Add cross-compilation guesses for Android.
11998 2019-01-21  Bruno Haible  <bruno@clisp.org>
12000         diacrit: Mark deprecated.
12001         * modules/diacrit (Status, Notice): Mark as deprecated.
12002         * NEWS: Mention it.
12004 2019-01-20  Bruno Haible  <bruno@clisp.org>
12006         rintl: Override broken implementation on NetBSD.
12007         * lib/math.in.h (rintl): Test also REPLACE_RINTL.
12008         * m4/rintl.m4 (gl_FUNC_RINTL): Add test for negative arguments. Set
12009         REPLACE_RINTL.
12010         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_RINTL.
12011         * modules/math (Makefile.in): Substitute REPLACE_RINTL.
12012         * modules/rintl (Depends-on, configure.ac): Test REPLACE_RINTL.
12013         * doc/posix-functions/rintl.texi: Mention the NetBSD bug.
12015 2019-01-20  Bruno Haible  <bruno@clisp.org>
12017         log10l: Work around inaccurate implementation on NetBSD.
12018         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): Add test for a certain accuracy.
12019         * lib/log10l.c: Comment out too simplistic override.
12020         * doc/posix-functions/log10l.texi: Mention the NetBSD bug.
12022 2019-01-20  Bruno Haible  <bruno@clisp.org>
12024         logl: Work around inaccurate implementation on NetBSD.
12025         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Add test for a certain accuracy.
12026         * lib/logl.c: Comment out unused code.
12027         * doc/posix-functions/logl.texi: Mention the NetBSD bug.
12029 2019-01-20  Bruno Haible  <bruno@clisp.org>
12031         expm1l: Work around inaccurate implementation on NetBSD.
12032         * lib/math.in.h (expm1l): Test also REPLACE_EXPM1L.
12033         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Add test for a certain accuracy. Set
12034         REPLACE_EXPM1L.
12035         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1L.
12036         * modules/math (Makefile.in): Substitute REPLACE_EXPM1L.
12037         * modules/expm1l (Depends-on, configure.ac): Test REPLACE_EXPM1L.
12038         * doc/posix-functions/expm1l.texi: Mention the NetBSD bug.
12040 2019-01-20  Bruno Haible  <bruno@clisp.org>
12042         expl: Work around inaccurate implementation on NetBSD.
12043         * lib/math.in.h (expl): Test also REPLACE_EXPL.
12044         * m4/expl.m4 (gl_FUNC_EXPL): Add test for a certain accuracy. Set
12045         REPLACE_EXPL.
12046         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPL.
12047         * modules/math (Makefile.in): Substitute REPLACE_EXPL.
12048         * modules/expl (Depends-on, configure.ac): Test REPLACE_EXPL.
12049         * doc/posix-functions/expl.texi: Mention the NetBSD bug.
12051 2019-01-20  Bruno Haible  <bruno@clisp.org>
12053         exp2l: Work around inaccurate implementation on NetBSD.
12054         * m4/exp2l.m4 (gl_FUNC_EXP2L): Add test for a certain accuracy.
12055         * doc/posix-functions/exp2l.texi: Mention the NetBSD bug.
12057 2019-01-20  Bruno Haible  <bruno@clisp.org>
12059         floor, floorl: Avoid autoconf warnings.
12060         * modules/floor (configure.ac): Use AC_REQUIRE.
12061         * modules/floorl (configure.ac): Likewise.
12063 2019-01-20  Bruno Haible  <bruno@clisp.org>
12065         Defeat current GCC optimizations in math autoconf tests.
12066         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Mark function pointer as 'volatile'.
12067         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
12068         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
12069         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
12070         * m4/exp2l.m4 (gl_FUNC_EXP2L): Likewise.
12071         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
12072         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
12073         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
12074         * m4/fmod.m4 (gl_FUNC_FMOD): Likewise.
12075         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
12076         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
12077         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
12078         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
12079         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
12080         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Likewise.
12081         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
12082         * m4/ilogbl.m4 (gl_FUNC_ILOGBL_WORKS): Likewise.
12083         * m4/log.m4 (gl_FUNC_LOG): Likewise.
12084         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
12085         * m4/log10.m4 (gl_FUNC_LOG10): Likewise.
12086         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
12087         * m4/log1p.m4 (gl_FUNC_LOG1P): Likewise.
12088         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Likewise.
12089         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Likewise.
12090         * m4/log2.m4 (gl_FUNC_LOG2): Likewise.
12091         * m4/log2f.m4 (gl_FUNC_LOG2F): Likewise.
12092         * m4/modf.m4 (gl_FUNC_MODF): Likewise.
12093         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
12094         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
12095         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
12096         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
12097         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
12098         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
12099         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
12100         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
12101         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
12102         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
12103         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
12105 2019-01-19  Pádraig Brady  <P@draigBrady.com>
12107         gettext: support disabling use of VLAs
12108         * lib/gettext.h: Disable use of VLAs if GNULIB_NO_VLA is defined
12110 2019-01-17  KO Myung-Hun  <komh78@gmail.com>
12112         sys_stat: Fix 'implicit declaration of function' warning on OS/2 kLIBC.
12113         * lib/sys_stat.in.h [kLIBC]: Include <unistd.h>.
12115 2019-01-17  KO Myung-Hun  <komh78@gmail.com>
12117         fcntl: Fix syntax error (regression from 2018-10-05).
12118         * lib/fcntl.c (klibc_fcntl): Remove mis-placed ';'.
12120 2019-01-13  Akim Demaille  <akim@lrde.epita.fr>
12122         relocatable: improve documentation.
12123         * doc/relocatable-maint.texi (Supporting Relocation): For
12124         substitutions performed by config.status, we need more variables
12125         (for instance datarootdir defaults to '${prefix}/share' so we need
12126         prefix).
12128 2019-01-13  Akim Demaille  <akim@lrde.epita.fr>
12130         backup: update dependencies
12131         * modules/backup-rename (Depends-on): It now depends on opendirat
12132         instead of opendir.  It also uses stdint, and xalloc-oversized.
12133         But no longer dirfd.
12134         * modules/backupfile (Depends-on): Add xalloc-oversized.
12136 2019-01-13  Bruno Haible  <bruno@clisp.org>
12138         getcwd: Fix test failure when building on a Linux 9p file system.
12139         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): On Linux, treat error
12140         EINVAL from mkdir like ENAMETOOLONG.
12141         * tests/test-getcwd.c (test_long_name): Likewise.
12143 2019-01-12  Tim Rühsen  <tim.ruehsen@gmx.de>
12145         Fix typos found by codespell.
12146         * lib/*.[hc]: Fix typos in comments.
12147         * pygnulib/*.py: Fix typos in error messages and comments.
12149 2019-01-12  Bruno Haible  <bruno@clisp.org>
12151         doc: Fix documentation about container data types.
12152         Reported by Werner Lemberg <wl@gnu.org>.
12153         * doc/containers.texi (Container data types): Fix typo.
12155 2019-01-10  Bruno Haible  <bruno@clisp.org>
12157         verify: Enable _GL_HAVE_STATIC_ASSERT for recent G++ versions.
12158         Reported by Reuben Thomas <rrt@sc3d.org>.
12159         * lib/verify.h (_GL_HAVE_STATIC_ASSERT): Define for g++ versions >= 6.
12161 2019-01-06  Bruno Haible  <bruno@clisp.org>
12163         maintainer-makefile: Make the configure.ac section optional.
12164         * top/maint.mk (GREP, SED): Define if not defined.
12166 2019-01-06  Bruno Haible  <bruno@clisp.org>
12168         localename: Assume setlocale function.
12169         * lib/localename.c (gl_locale_name_posix): Assume setlocale exists.
12170         * m4/localename.m4 (gl_LOCALENAME): Don't test whether setlocale exists.
12172 2019-01-06  Bruno Haible  <bruno@clisp.org>
12174         doc: Add documentation about container data types.
12175         * doc/containers.texi: New file.
12176         * doc/gnulib.texi (Particular Modules): Include it.
12178 2019-01-06  Bruno Haible  <bruno@clisp.org>
12180         doc: Update documentation about 'progname' module.
12181         * doc/progname.texi: Rename from doc/error.texi. Change node name and
12182         title. Rewrite.
12183         * doc/gnulib.texi (Particular Modules): Update.
12185 2019-01-06  Bruno Haible  <bruno@clisp.org>
12187         doc: Document the xstdopen and *-safer modules.
12188         * doc/xstdopen.texi: New file.
12189         * doc/gnulib.texi (Particular Modules): Include it.
12191 2019-01-06  Bruno Haible  <bruno@clisp.org>
12193         xstdopen: Add tests.
12194         * tests/test-xstdopen.c: New file.
12195         * tests/test-xstdopen.sh: New file.
12196         * modules/xstdopen-tests: New file.
12198         xstdopen: New module.
12199         * lib/xstdopen.h: New file.
12200         * lib/xstdopen.c: New file.
12201         * modules/xstdopen: New file.
12203 2019-01-06  Bruno Haible  <bruno@clisp.org>
12205         stdopen: Fix compilation error with IRIX cc.
12206         * lib/stdopen.c (stdopen): Do not use C99-style decl in loop.
12208 2019-01-05  Paul Eggert  <eggert@cs.ucla.edu>
12210         xfreopen need not include stdio--.h
12211         * lib/xfreopen.c: Do not include stdio--.h.
12213         xfreopen need not depend on freopen-safer
12214         * modules/xfreopen (Depends-on):
12215         Depend on freopen, not freopen-safer.
12217         stdopen: modernize and simplify
12218         * lib/stdopen.c: Update copyright date
12219         Do not include sys/types.h; no longer needed these days.
12220         (stdopen): Use C99-style decl in loop.  Return int errno
12221         value, rather than just a bool.  Do not worry about fd mismatches,
12222         since the caller cares only if 0, 1, 2 are occupied.
12223         * lib/stdopen.h: No need to include <stdbool.h>.
12224         * m4/stdopen.m4: Remove.
12225         * modules/stdopen: New file.
12227         stdopen: copy from last use in coreutils
12228         * lib/stdopen.c, lib/stdopen.h, m4/stdopen.m4:
12229         New files, taken from their last commit in coreutils
12230         2007-07-23T12:35:58Z!jim@meyering.net
12231         71aa3ea88084d17bcb4fc1031ad7b66f8647115e.
12233 2019-01-05  Bruno Haible  <bruno@clisp.org>
12235         argp: Don't pass an invalid argument to dgettext().
12236         Reported by He X <xw897002528@gmail.com>.
12237         * lib/argp-help.c (print_header, argp_doc): Don't pass a NULL doc to
12238         dgettext().
12240 2019-01-05  Bruno Haible  <bruno@clisp.org>
12242         argp: Don't pass an invalid argument to dgettext().
12243         Reported by He X <xw897002528@gmail.com>.
12244         * lib/argp.h (struct argp): Clarify that the args_doc field may be NULL.
12245         * lib/argp-help.c (argp_args_usage): Don't pass a NULL args_doc to
12246         dgettext().
12248 2018-12-22  Paul Eggert  <eggert@cs.ucla.edu>
12250         stdioext: port to newer 32-bit Android
12251         Problem reported by Tom Yan in:
12252         https://lists.gnu.org/archive/html/bug-gnulib/2018-07/msg00014.html
12253         * lib/stdio-impl.h (_gl_FILE_flags_t) [__ANDROID__]: New macro.
12254         (fp_) [__ANDROID__]: Use it.
12256 2019-01-04  Bruno Haible  <bruno@clisp.org>
12258         lock: Fix link error with --enable-threads=pth.
12259         * lib/glthread/lock.h (pth_cond_init, pth_cond_await, pth_cond_notify):
12260         Mark as weak.
12262 2019-01-04  Bruno Haible  <bruno@clisp.org>
12264         Fix link errors in unit tests.
12265         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12266         * modules/bitset-tests (Makefile.am): Link test-bitset against libintl.
12267         * modules/array-map-tests (Makefile.am): Link test-array_map against
12268         libintl.
12269         * modules/array-set-tests (Makefile.am): Link test-array_set against
12270         libintl.
12271         * modules/hash-map-tests (Makefile.am): Link test-hash_map against
12272         libintl.
12273         * modules/hash-set-tests (Makefile.am): Link test-hash_set against
12274         libintl.
12275         * modules/linkedhash-map-tests (Makefile.am): Link test-linkedhash_map
12276         against libintl.
12277         * modules/linkedhash-set-tests (Makefile.am): Link test-linkedhash_set
12278         against libintl.
12280 2019-01-04  Bruno Haible  <bruno@clisp.org>
12282         Fix incorrect 'Link' sections.
12283         * modules/regex (Link): Mention the link requirement of module 'lock'.
12284         * modules/regex-tests (Makefile.am): Don't use LIB_PTHREAD.
12286 2019-01-04  Bruno Haible  <bruno@clisp.org>
12288         Fix some 'Link' sections.
12289         * modules/c-stack (Link): Add link directive from the 'gettext-h'
12290         dependency.
12291         * modules/getaddrinfo (Link): Likewise.
12293 2019-01-04  Bruno Haible  <bruno@clisp.org>
12295         Remove redundant 'Link' sections.
12296         * modules/canon-host (Link): Remove section.
12297         * modules/timevar (Link): Likewise.
12299 2019-01-04  Bruno Haible  <bruno@clisp.org>
12301         Remove incorrect 'Link' sections.
12302         * modules/acl (Link): Remove section. Use combined 'Link' sections from
12303         the dependencies instead.
12304         * modules/crypto/md5 (Link): Likewise.
12305         * modules/crypto/sha1 (Link): Likewise.
12306         * modules/crypto/sha256 (Link): Likewise.
12307         * modules/crypto/sha512 (Link): Likewise.
12308         * modules/faccessat (Link): Likewise.
12309         * modules/fdutimensat (Link): Likewise.
12310         * modules/iconv_open-utf (Link): Likewise.
12311         * modules/propername (Link): Likewise.
12312         * modules/qacl (Link): Likewise.
12313         * modules/unicodeio (Link): Likewise.
12314         * modules/utimecmp (Link): Likewise.
12315         * modules/utimensat (Link): Likewise.
12316         * modules/xstriconv (Link): Likewise.
12317         * modules/xstriconveh (Link): Likewise.
12319 2019-01-04  Bruno Haible  <bruno@clisp.org>
12321         gnulib-tool: New option --extract-recursive-link-directive.
12322         * gnulib-tool (func_usage): Document the new options
12323         --extract-recursive-dependencies, --extract-recursive-link-directive.
12324         (func_verify_module): Document output variables.
12325         (func_get_dependencies_recursively): New function.
12326         (func_get_link_directive_recursively): New function.
12327         Use them to implement the new options
12328         --extract-recursive-dependencies, --extract-recursive-link-directive.
12329         * doc/gnulib-tool.texi (Link-time requirements): New section.
12331 2019-01-04  Bruno Haible  <bruno@clisp.org>
12333         Clarify meaning of 'Link' section in module description.
12334         * doc/gnulib.texi (Module description): Clarify the meaning of the
12335         'Link' section versus the one of the dependencies.
12336         * NEWS: Mention the change.
12338 2019-01-04  Bruno Haible  <bruno@clisp.org>
12340         pselect: Fix module description.
12341         * modules/pselect (Link): Put one link option per line.
12343 2019-01-04  Bruno Haible  <bruno@clisp.org>
12345         cosl: Fix module description.
12346         * modules/cosl (Link): Fix typo.
12347         * modules/mathl (configure.ac): Likewise.
12349 2019-01-04  Bruno Haible  <bruno@clisp.org>
12351         c-xvasprintf: Fix module dependencies.
12352         * modules/c-xvasprintf (Depends-on): Add 'xalloc-die'.
12354 2019-01-04  Akim Demaille  <akim@lrde.epita.fr>
12356         bootstrap: die when some submodules are not initialized
12357         * build-aux/bootstrap: Make sure all submodules are initialized.
12359 2019-01-04  Bruno Haible  <bruno@clisp.org>
12361         bitsetv: Fix module dependencies.
12362         * lib/bitsetv.c: Include xalloc.h.
12363         * modules/bitsetv (Depends-on): Add 'xalloc'.
12365 2019-01-04  Bruno Haible  <bruno@clisp.org>
12367         xmemdup0: Remove redundant code.
12368         * lib/xmemdup0.h (xalloc_die): Remove declaration.
12370 2019-01-04  Bruno Haible  <bruno@clisp.org>
12372         backupfile: Fix module dependencies.
12373         * modules/backupfile (Depends-on): Add 'xalloc'.
12375 2019-01-03  Paul Eggert  <eggert@cs.ucla.edu>
12377         bitset, crypto/gc: fix conflicts with Solaris 11
12378         * lib/bitset.h (_GL_BITSET_H): Rename from _BITSET_H, to
12379         avoid clash with Solaris 11 <sys/bitset.h>.
12380         * lib/gc.h (_GL_GC_H): Rename from GC_H, to avoid clash
12381         with Solaris 11 <xorg/gc.h>.
12383 2019-01-04  Bruno Haible  <bruno@clisp.org>
12385         safe-read, safe-write: Fix conflict with Illumos-Joyent <sys/limits.h>.
12386         Reported by Andy Fiddaman <andy@omniosce.org>.
12387         * lib/sys-limits.h: Add a '_GL' prefix to the guard symbol.
12389 2019-01-03  Eric Blake  <eblake@redhat.com>
12391         maintainer-makefile: fix typo in previous patch
12392         * top/maint.mk (_sc_search_regexp): Fix my accidental corruption
12393         of Roman's work.
12395 2019-01-02  Roman Bolshakov <r.bolshakov@yadro.com>  (tiny change)
12397         maintainer-makefile: prefer $(GREP) over grep
12398         * modules/maintainer-makefile (configure.ac): Ensure $(GREP) is
12399         defined.
12400         * top/maint.mk: Use it everywhere.
12402         maintainer-makefile: split long argument lines
12403         * top/maint.mk: Use xargs to split $(VC_LIST_EXCEPT) usage where
12404         it would be too long for exec limits on BSD.
12406 2018-12-27  Paul Eggert  <eggert@cs.ucla.edu>
12408         mkfifo: bring back HAVE_MKFIFO macro
12409         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): #define HAVE_MKFIFO as needed.
12410         Problem reported by Andrew Janke in:
12411         https://lists.gnu.org/r/bug-gnulib/2018-12/msg00147.html
12413 2018-12-21  Bruno Haible  <bruno@clisp.org>
12415         Assume Autoconf >= 2.63.
12416         * modules/stdarg (configure.ac-early): Remove comment about Autoconf
12417         versions < 2.60.
12419 2018-12-21  Bruno Haible  <bruno@clisp.org>
12421         memcmp: Mention the clang bug.
12422         * tests/test-memcmp.c: Add comment about a known test failure.
12423         * doc/posix-functions/memcmp.texi: Mention the clang bug.
12425 2018-12-20  Jim Meyering  <meyering@fb.com>
12427         revert v0.1-2213-gae4b73e28 and part of v0.1-2281-g95cd86dd7
12428         v0.1-2213-gae4b73e28 caused a regression in grep-3.2 (no match):
12429           echo '123-x'|LC_ALL=C grep -E '.\bx'
12430         The goal is to revert the first, but reverting it requires to restore
12431         the function deleted in the second. I ran this to restore the deleted
12432         function:
12433           git show v0.1-2281-g95cd86dd7 lib/dfa.c \
12434             | perl -0777 -pe 's/^@@[^\n]*dfaan.*//ms' \
12435             | patch -R -p1
12436         * lib/dfa.c (charclass_context): Restore deleted function.
12437         Reverting the primary commit removes this change:
12438         dfa: Simplify a building state
12439         * lib/dfa.c (build_state): Simplify a building state.
12441 2018-12-20  Paul Eggert  <eggert@cs.ucla.edu>
12443         version-etc: allow zero authors
12444         * lib/version-etc.c (version_etc_arn): If no authors are given,
12445         omit authorship info instead of dumping core.
12447 2018-12-19  Bruno Haible  <bruno@clisp.org>
12449         lchown tests: Be more permissive regarding errno values.
12450         Reported by Ivan Zakharyaschev <imz@altlinux.org>.
12451         * tests/test-lchown.h (test_lchown): Recognize EOPNOTSUPP as an
12452         alternative to ENOSYS.
12453         * modules/lchown-tests (Depends-on): Add 'errno'.
12454         * modules/fchownat-tests (Depends-on): Likewise.
12456 2018-12-18  Bruno Haible  <bruno@clisp.org>
12458         duplocale: Avoid test failure on AIX 7.
12459         * modules/duplocale-tests (Files): Add m4/intl-thread-locale.m4.
12460         (configure.ac): Invoke gt_FUNC_USELOCALE.
12461         * tests/test-duplocale.c: Test HAVE_WORKING_USELOCALE instead of
12462         HAVE_USELOCALE. Assume that nl_langinfo_l only works when uselocale
12463         works.
12465 2018-12-18  Bruno Haible  <bruno@clisp.org>
12467         localename: Fix test failure on AIX 7.
12468         Reported by Assaf Gordon in
12469         <https://lists.gnu.org/archive/html/sed-devel/2018-12/msg00019.html>.
12470         * m4/intl-thread-locale.m4 (gt_FUNC_USELOCALE): New macro.
12471         (gt_INTL_THREAD_LOCALE_NAME): Invoke it. Test gt_cv_func_uselocale_works
12472         instead of ac_cv_func_uselocale.
12473         * lib/localename.c: Test HAVE_WORKING_USELOCALE instead of
12474         HAVE_USELOCALE.
12475         * lib/localename-table.h: Likewise.
12476         * lib/localename-table.c: Likewise.
12477         * tests/test-localename.c: Likewise.
12478         * doc/posix-functions/uselocale.texi: Mention the AIX problem.
12480 2018-12-18  Bruno Haible  <bruno@clisp.org>
12482         localename: Update comments regarding Cygwin.
12483         * lib/localename.c: Update comment.
12484         * doc/posix-functions/uselocale.texi: Update platforms list.
12485         * doc/posix-functions/newlocale.texi: Likewise.
12486         * doc/posix-functions/duplocale.texi: Likewise.
12487         * doc/posix-functions/freelocale.texi: Likewise.
12489 2018-12-16  Bruno Haible  <bruno@clisp.org>
12491         c-stack: Fix for Linux/sparc.
12492         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Set
12493         ac_cv_sys_xsi_stack_overflow_heuristic to 'no' on Linux/sparc.
12495 2018-12-16  Bruno Haible  <bruno@clisp.org>
12497         localename: Avoid test failure on some glibc systems.
12498         * tests/test-localename.c (test_locale_name, test_locale_name_posix):
12499         Unset environment variables that might disturb the first setlocale call,
12500         and verify that this setlocale call succeeds.
12502 2018-12-16  Assaf Gordon  <assafgordon@gmail.com>
12504         random: Fix build error on native Windows (regression from 2018-06-21).
12505         * lib/random.c (__srandom, __initstate, __setstate, __random,
12506         __srandom_r, __initstate_r, __setstate_r, __random_r) [!_LIBC]: Redirect
12507         to the symbols without '__' prefix.
12509 2018-12-16  Bruno Haible  <bruno@clisp.org>
12511         obstack, libc-config: Support HP-UX cc in C99 mode.
12512         * lib/obstack.h (__FLEXIBLE_ARRAY_MEMBER): Treat HP-UX cc as a pre-C99
12513         compiler, even when in C99 mode.
12514         * lib/cdefs.h (__flexarr): Likewise.
12515         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Update comment.
12517 2018-12-16  Bruno Haible  <bruno@clisp.org>
12519         localename: Fix test failure on OpenBSD >= 6.2.
12520         * m4/intl-thread-locale.m4 (gt_INTL_THREAD_LOCALE_NAME): Test for fake
12521         locale system. Define HAVE_FAKE_LOCALES in this case.
12522         * lib/localename.c (HAVE_GOOD_USELOCALE): New macro. Use it instead of
12523         HAVE_USELOCALE.
12524         * tests/test-localename.c (HAVE_GOOD_USELOCALE): New macro. Use it
12525         instead of HAVE_NEWLOCALE && HAVE_USELOCALE.
12526         * doc/posix-functions/uselocale.texi: Mention OpenBSD problem. Update
12527         platforms list.
12528         * doc/posix-functions/newlocale.texi: Likewise.
12529         * doc/posix-functions/duplocale.texi: Update platforms list.
12530         * doc/posix-functions/freelocale.texi: Likewise.
12532 2018-12-16  Bruno Haible  <bruno@clisp.org>
12534         duplocale tests: Re-enable the test on platforms without <monetary.h>.
12535         * tests/test-duplocale.c: Use more fine-grained #ifs to re-enable most
12536         of the test, on platforms without <monetary.h>.
12538 2018-12-16  Bruno Haible  <bruno@clisp.org>
12540         localename: Update comments.
12541         * lib/localename.c (HAVE_USELOCALE): Update list of platforms.
12543 2018-12-15  Jim Meyering  <meyering@fb.com>
12545         regex: fix indentation
12546         * m4/regex.m4 (gl_REGEX): Indent with spaces, not TABs.
12548 2018-12-15  Bruno Haible  <bruno@clisp.org>
12550         openat-safer tests: Avoid test failure on NetBSD 8.
12551         * tests/test-openat-safer.c (main): Execute a Linux specific test only
12552         on Linux.
12554 2018-12-15  Jim Meyering  <meyering@fb.com>
12556         regex: work around a bug in glibc-2.27 and prior
12557         * m4/regex.m4 (gl_REGEX): Reject any system regexp that gets a failed
12558         assertion for /0|()0|\1|0/.
12559         * tests/test-regex.c (main): Add the same test here.
12561 2018-12-15  Bruno Haible  <bruno@clisp.org>
12563         localename: Fix use of uninitialized shell variable.
12564         * m4/intl-thread-locale.m4 (gt_INTL_THREAD_LOCALE_NAME): Initialize
12565         gt_cv_locale_solaris114 always before use. Remove assignment without
12566         effect.
12568 2018-12-15  Bruno Haible  <bruno@clisp.org>
12570         dfa tests: Avoid test failure on Alpine Linux.
12571         * tests/dfa-match.sh (timeout_10): Accommodate the BusyBox 'timeout'
12572         command found on Alpine Linux.
12574 2018-12-15  Jim Meyering  <meyering@fb.com>
12576         dfa: avoid new warnings from gcc
12577         These would prevent building with -Werror and a Dec snapshot of gcc.
12578         * lib/dfa.c (dfaanalyze): Avoid shadowing warnings for "pos".
12579         Rename each inner instance to "p".
12580         (charclass_context): Remove unused static function.
12582 2018-12-14  Paul Eggert  <eggert@cs.ucla.edu>
12584         mkdir-p: improve diagnostic for FUSE mounts
12585         Problem reported by Niklas Hambüchen in:
12586         https://lists.gnu.org/r/bug-gnulib/2018-12/msg00074.html
12587         * lib/mkdir-p.c (make_dir_parents): In diagnostic, prefer stat
12588         errno to mkdir errno if the stat errno is likely more interesting.
12590 2018-12-14  Bruno Haible  <bruno@clisp.org>
12592         hash-map: Add tests.
12593         * tests/test-hash_map.c: New file.
12594         * modules/hash-map-tests: New file.
12596         linkedhash-map: Add tests.
12597         * tests/test-linkedhash_map.c: New file.
12598         * modules/linkedhash-map-tests: New file.
12600         array-map: Add tests.
12601         * tests/test-array_map.c: New file.
12602         * modules/array-map-tests: New file.
12604         xmap: New module.
12605         * lib/gl_xmap.h: New file.
12606         * lib/gl_xmap.c: New file.
12607         * modules/xmap: New file.
12609         hash-map: New module.
12610         * lib/gl_hash_map.h: New file.
12611         * lib/gl_hash_map.c: New file.
12612         * modules/hash-map: New file.
12614         linkedhash-map: New module.
12615         * lib/gl_linkedhash_map.h: New file.
12616         * lib/gl_linkedhash_map.c: New file.
12617         * lib/gl_anyhash1.h: Update comments.
12618         * lib/gl_anyhash2.h: Likewise.
12619         * modules/linkedhash-map: New file.
12621         array-map: New module.
12622         * lib/gl_array_map.h: New file.
12623         * lib/gl_array_map.c: New file.
12624         * modules/array-map: New file.
12626         map: New module.
12627         * lib/gl_map.h: New file.
12628         * lib/gl_map.c: New file.
12629         * lib/gl_omap.h (gl_mapkey_dispose_fn, gl_mapvalue_dispose_fn): Avoid
12630         conflict with gl_map.h.
12631         * modules/map: New file.
12633 2018-12-13  Bruno Haible  <bruno@clisp.org>
12635         select tests: Avoid test failure on Cygwin.
12636         * tests/test-select.h (test_bad_fd): Use an fd < FD_SETSIZE.
12638 2018-12-13  Bruno Haible  <bruno@clisp.org>
12640         localtime-buffer: Avoid endless recursion in localtime and gmtime.
12641         * lib/localtime-buffer.c: Undefine localtime and gmtime before use.
12643 2018-12-13  Bruno Haible  <bruno@clisp.org>
12645         localeconv tests: Avoid test failure on Cygwin.
12646         * tests/test-localeconv.c (main): On Cygwin, skip the 'grouping' and
12647         'mon_grouping' tests.
12649 2018-12-11  Bruno Haible  <bruno@clisp.org>
12651         omap: Don't dispose the old value when the function returns it.
12652         * lib/gl_array_omap.c (gl_array_remove_at): Don't invoke the vdispose_fn
12653         here.
12654         * lib/gl_avltree_omap.c (NODE_PAYLOAD_DISPOSE): Likewise.
12655         * lib/gl_rbtree_omap.c (NODE_PAYLOAD_DISPOSE): Likewise.
12656         * lib/gl_omap.h (gl_omap_nx_put, gl_omap_remove): Invoke the vdispose_fn
12657         here.
12659         array-omap, avltree-omap, rbtree-omap: Tweak style.
12660         * lib/gl_anytree_omap.h (gl_tree_nx_getput): Return 1 or 0, not true or
12661         false.
12662         * lib/gl_array_omap.c (gl_array_nx_getput): Likewise.
12664         rbtree-omap: Add tests.
12665         * tests/test-rbtree_omap.c: New file.
12666         * modules/rbtree-omap-tests: New file.
12668         avltree-omap: Add tests.
12669         * tests/test-avltree_omap.c: New file.
12670         * modules/avltree-omap-tests: New file.
12672         array-omap: Add tests.
12673         * tests/test-array_omap.c: New file.
12674         * modules/array-omap-tests: New file.
12676         xomap: New module.
12677         * lib/gl_xomap.h: New file.
12678         * lib/gl_xomap.c: New file.
12679         * modules/xomap: New file.
12681         rbtree-omap: New module.
12682         * lib/gl_rbtree_omap.h: New file.
12683         * lib/gl_rbtree_omap.c: New file.
12684         * lib/gl_rbtree_ordered.h: Code moved to here from lib/gl_rbtree_oset.c.
12685         Parameterize.
12686         * lib/gl_rbtree_oset.c: Include gl_rbtree_ordered.h.
12687         * modules/rbtree-omap: New file.
12688         * modules/rbtree-oset (Files): Add lib/gl_rbtree_ordered.h.
12689         (Makefile.am): Add gl_rbtree_ordered.h to lib_SOURCES.
12691         avltree-omap: New module.
12692         * lib/gl_avltree_omap.h: New file.
12693         * lib/gl_avltree_omap.c: New file.
12694         * lib/gl_avltree_ordered.h: Code moved to here from
12695         lib/gl_avltree_oset.c. Parameterize.
12696         * lib/gl_avltree_oset.c: Include gl_avltree_ordered.h.
12697         * lib/gl_anytree_omap.h: New file.
12698         * modules/avltree-omap: New file.
12699         * modules/avltree-oset (Files): Add lib/gl_avltree_ordered.h.
12700         (Makefile.am): Add gl_avltree_ordered.h to lib_SOURCES.
12702         array-omap: New module.
12703         * lib/gl_array_omap.h: New file.
12704         * lib/gl_array_omap.c: New file.
12705         * modules/array-omap: New file.
12707         omap: New module.
12708         * lib/gl_omap.h: New file.
12709         * lib/gl_omap.c: New file.
12710         * modules/omap: New file.
12712 2018-12-11  Bruno Haible  <bruno@clisp.org>
12714         hash-set, linkedhash-set: Reduce code duplication.
12715         * lib/gl_anyhash1.h: Rename from lib/gl_anyhash_list1.h and
12716         lib/gl_anyhash_set1.h.
12717         * lib/gl_anyhash2.h: Rename from lib/gl_anyhash_list2.h and
12718         lib/gl_anyhash_set2.h. Parameterize.
12719         (hash_resize_after_add): New function, from lib/gl_anyhash_set2.h.
12720         * lib/gl_anytreehash_list1.h (hash_resize_after_add): Remove function.
12721         * lib/gl_avltreehash_list.c: Include gl_anyhash1.h instead of
12722         gl_anyhash_list1.h. Include gl_anyhash2.h instead of gl_anyhash_list2.h.
12723         * lib/gl_rbtreehash_list.c: Likewise.
12724         * lib/gl_linkedhash_list.c: Likewise.
12725         (hash_resize_after_add): Remove function.
12726         * lib/gl_linkedhash_set.c: Include gl_anyhash1.h instead of
12727         gl_anyhash_set1.h. Include gl_anyhash2.h instead of gl_anyhash_set2.h.
12728         * gl_hash_set.c: Likewise.
12729         * modules/avltreehash-list (Files, Makefile.am): Update file list.
12730         * modules/rbtreehash-list (Files, Makefile.am): Likewise.
12731         * modules/linkedhash-list (Files, Makefile.am): Likewise.
12732         * modules/linkedhash-set (Files, Makefile.am): Likewise.
12733         * modules/hash-set (Files, Makefile.am): Likewise.
12735 2018-12-11  Bruno Haible  <bruno@clisp.org>
12737         array-set: Optimize.
12738         * lib/gl_array_set.c (gl_array_search, gl_array_remove): Test equals_fn
12739         outside the loop, not inside the loop.
12741 2018-12-11  Bruno Haible  <bruno@clisp.org>
12743         times: Fix tests.
12744         * tests/test-times.c (doublecmp): Implement a total order.
12746 2018-12-11  Bruno Haible  <bruno@clisp.org>
12748         array-set, linkedhash-set, hash-set: Fix tests.
12749         * tests/test-array_set.c (cmp_objects_in_array): New function.
12750         (check_equals): Use it.
12751         * tests/test-hash_set.c: Likewise.
12752         * tests/test-linkedhash_set.c: Likewise.
12754 2018-12-08  Bruno Haible  <bruno@clisp.org>
12756         Fix comments.
12757         * lib/gl_list.h (gl_list_free): Clarify what it does.
12758         * lib/gl_oset.h (gl_oset_free): Likewise.
12759         * lib/gl_set.h (gl_set_free): Likewise.
12760         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Fix typo in comment.
12761         * lib/gl_array_oset.c (gl_array_search_atleast): Likewise.
12762         * lib/gl_anyavltree_list1.h (MAXHEIGHT): Likewise.
12763         * lib/gl_avltree_oset.c (MAXHEIGHT): Likewise.
12765 2018-12-03  Bruno Haible  <bruno@clisp.org>
12767         hash-set: Add tests.
12768         * tests/test-hash_set.c: New file.
12769         * modules/hash-set-tests: New file.
12771         linkedhash-set: Add tests.
12772         * tests/test-linkedhash_set.c: New file.
12773         * modules/linkedhash-set-tests: New file.
12775         array-set: Add tests.
12776         * tests/test-array_set.c: New file.
12777         * modules/array-set-tests: New file.
12779         xset: New module.
12780         * lib/gl_xset.h: New file.
12781         * lib/gl_xset.c: New file.
12782         * modules/xset: New file.
12784         hash-set: New module.
12785         * lib/gl_hash_set.h: New file.
12786         * lib/gl_hash_set.c: New file.
12787         * modules/hash-set: New file.
12789         linkedhash-set: New module.
12790         * lib/gl_linkedhash_set.h: New file.
12791         * lib/gl_linkedhash_set.c: New file.
12792         * lib/gl_anyhash_set1.h: New file, based on lib/gl_anyhash_list1.h.
12793         * lib/gl_anyhash_set2.h: New file, based on lib/gl_anyhash_list2.h.
12794         * lib/gl_anyhash_primes.h: New file, extracted from
12795         lib/gl_anyhash_list2.h.
12796         * lib/gl_anyhash_list2.h: Include it.
12797         (primes, next_prime): Remove definitions.
12798         * modules/linkedhash-set: New file.
12799         * modules/avltreehash-list (Files): Add lib/gl_anyhash_primes.h.
12800         (Makefile.am): Add gl_anyhash_primes.h to lib_SOURCES.
12801         * modules/linkedhash-list (Files): Add lib/gl_anyhash_primes.h.
12802         (Makefile.am): Add gl_anyhash_primes.h to lib_SOURCES.
12803         * modules/rbtreehash-list (Files): Add lib/gl_anyhash_primes.h.
12804         (Makefile.am): Add gl_anyhash_primes.h to lib_SOURCES.
12806         array-set: New module.
12807         * lib/gl_array_set.h: New file.
12808         * lib/gl_array_set.c: New file.
12809         * modules/array-set: New file.
12811         set: New module.
12812         * lib/gl_set.h: New file.
12813         * lib/gl_set.c: New file.
12814         * lib/gl_oset.h (gl_setelement_dispose_fn): Avoid conflict with
12815         gl_set.h.
12816         * modules/set: New file.
12818 2018-12-07  Akim Demaille  <akim@lrde.epita.fr>
12820         bison: don't force the Yacc mode
12821         Passing -y forces Bison into POSIX YACC mode.  This includes reporting
12822         errors when Bison features are used in the grammar file.  Some of
12823         these features (such as %expect) were flagged non-yacc recently.  Most
12824         of the time, -y is actually used to please Automake's ylwrap which
12825         expects the output to be y.tab.c.
12826         * m4/bison.m4 (gl_BISON): Use `-o y.tab.c` rather than `-y`.
12828 2018-12-01  Bruno Haible  <bruno@clisp.org>
12830         gnupload: Document short options.
12831         * build-aux/gnupload (usage): Document the short options.
12833 2018-11-28  Ben Elliston  <bje@gnu.org>
12835         gnupload: Support option -h as alias of --help.
12836         * build-aux/gnupload: Support -h.
12838 2018-11-30  Paul Eggert  <eggert@cs.ucla.edu>
12840         memrchr: port better to clang
12841         * lib/memrchr.c (__memrchr): Cast to void * instead of to
12842         longword *, to pacify clang -Wcast-align (Bug#33544).
12844 2018-11-29  Eric Blake  <eblake@redhat.com>
12846         docs: mention printf %m considerations
12847         * doc/glibc-functions/asprintf.texi (asprintf): Document that %m
12848         is not portable, and is easy enough to work around.
12849         * doc/glibc-functions/obstack_printf.texi (obstack_printf): Likewise.
12850         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf): Likewise.
12851         * doc/glibc-functions/vasprintf.texi (vasprintf): Likewise.
12852         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
12853         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
12854         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
12855         * doc/posix-functions/printf.texi (printf): Likewise.
12856         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
12857         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
12858         * doc/posix-functions/swprintf.texi (swprintf): Likewise.
12859         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
12860         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
12861         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
12862         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
12863         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
12864         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
12865         * doc/posix-functions/vswprintf.texi (vswprintf): Likewise.
12866         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
12867         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
12869 2018-11-29  Akim Demaille  <akim@lrde.epita.fr>
12871         bitset: rename ebitset/expandable.* as tbitset/table.*
12872         See
12873         https://lists.gnu.org/archive/html/bug-gnulib/2018-11/msg00096.html.
12874         * lib/bitset/expandable.h, lib/bitset/expandable.c: Rename as...
12875         * lib/bitset/table.h, lib/bitset/table.c: these.
12876         Rename all the ebitset* symbols as tbitset*.
12877         Adjust dependencies.
12879 2018-11-28  Akim Demaille  <akim@lrde.epita.fr>
12881         bitset: check the operations
12882         * tests/test-bitset.c (bitset_random): New.
12883         Use it.
12884         * lib/bitset/expandable.c (ebitset_not): Fix typo.
12886 2018-11-28  Akim Demaille  <akim@lrde.epita.fr>
12888         bitset: properly use false/true instead of 0/1 for Booleans
12889         * lib/bitset/expandable.c, lib/bitset/vector.c: Use false/true, not
12890         0/1, as Booleans.
12892 2018-11-28  Akim Demaille  <akim@lrde.epita.fr>
12894         bitset: rename BITSET_VARRAY as BITSET_VECTOR
12895         For consistency with the name of the file.
12896         * doc/bitset.texi, lib/bitset.c, lib/bitset/base.h,
12897         * lib/bitset/stats.c, lib/bitset/vector.c
12898         (BITSET_VARRAY): Rename as...
12899         (BITSET_VECTOR): this.
12901 2018-11-28  Paul Eggert  <eggert@cs.ucla.edu>
12903         strerror_r-posix: memmove, not memcpy
12904         * lib/strerror_r.c (safe_copy): Use memmove, not memcpy,
12905         since the source and destination might overlap in the call
12906         ‘safe_copy (buf, buflen, strerror_r (errnum, buf, buflen))’.
12907         Simplify.
12909 2018-11-25  Akim Demaille  <akim@lrde.epita.fr>
12911         bitsetv: new module
12912         * lib/bitsetv.c, lib/bitsetv.h, modules/bitsetv: New.
12914 2018-11-25  Akim Demaille  <akim@lrde.epita.fr>
12916         bitset: add tests and doc
12917         First stabs at providing a documentation and test for the bitset
12918         module.
12919         * doc/bitset.texi, modules/test-bitset, tests/bitset-tests.c: New.
12921 2018-11-25  Akim Demaille  <akim@lrde.epita.fr>
12923         bitset: new module
12924         * lib/bitset.c, lib/bitset.h, lib/bitset/array.c,
12925         * lib/bitset/array.h, lib/bitset/base.h, lib/bitset/expandable.c,
12926         * lib/bitset/expandable.h, lib/bitset/list.c, lib/bitset/list.h,
12927         * lib/bitset/stats.c, lib/bitset/stats.h, lib/bitset/vector.c,
12928         * lib/bitset/vector.h, modules/bitset:
12929         New.
12931 2018-11-23  Bruno Haible  <bruno@clisp.org>
12933         localename: Fix gettext test failures on mingw.
12934         * lib/localename.c (gl_locale_name_posix): Convert the result of
12935         gl_locale_name_environ to XPG syntax.
12937 2018-11-23  Karl Berry  <karl@freefriends.org>
12939         * config/srclistvars.txt,
12940         * config/srclist.txt: remove all gettext references;
12941         the gettext maintainers will sync as needed.
12943 2018-11-21  Paul Eggert  <eggert@cs.ucla.edu>
12945         mktime: add libc-config dependency
12946         I missed this when we synced from glibc.
12947         * modules/mktime (Depends-on): Add libc-config.
12949 2018-11-13  Paul Eggert  <eggert@cs.ucla.edu>
12951         longlong: fix comment typo
12952         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Fix typo.
12954 2018-11-11  Bruno Haible  <bruno@clisp.org>
12956         havelib: Remove the need to include asm-underscore.m4.
12957         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI_32BIT): New macro.
12958         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Use it instead of
12959         gl_HOST_CPU_C_ABI.
12960         * modules/havelib (Files): Add host-cpu-c-abi.m4.
12961         (Depends-on): Remove host-cpu-c-abi.
12963 2018-11-03  Paul Eggert  <eggert@cs.ucla.edu>
12965         parse-datetime: simplify test for mktime failure
12966         * lib/parse-datetime.y (mktime_ok): Simplify.
12967         Remove args TZ and T; no longer needed.  Callers changed.
12969         posixtm: simplify test for mktime failure
12970         * lib/posixtm.c (posixtime): Simplify.
12972         nstrftime: simplify test for mktime failure
12973         * lib/nstrftime.c (__strftime_internal): Simplify.
12975 2018-11-02  Paul Eggert  <eggert@cs.ucla.edu>
12977         gnulib-common.m4: port _Noreturn to C++
12978         Problem reported by Akim Demaille in:
12979         https://lists.gnu.org/r/bug-bison/2018-10/msg00067.html
12980         * m4/gnulib-common.m4 (gl_COMMON_BODY): If C++, use [[noreturn]].
12981         Merge adjustments from _Noreturn.h and from glibc into the non-C++
12982         version.
12983         * lib/_Noreturn.h: Match gnulib-common.
12985 2018-10-30  Bruno Haible  <bruno@clisp.org>
12987         gnu-make: Fix for NetBSD 8 'make'.
12988         Reported by Reuben Thomas in
12989         <https://lists.gnu.org/archive/html/bug-gnulib/2018-10/msg00135.html>.
12990         * m4/gnu-make.m4 (gl_GNU_MAKE): Use a heuristic based on the --version
12991         output, ignoring exit codes.
12993 2018-10-28  Bernhard Voelker  <mail@bernhard-voelker.de>
12995         maintainer-makefile: fix syntax-check rule for "same.h"
12996         * top/maint.mk (sc_prohibit_same_without_use): Adjust regex to check
12997         for 'same_nameat', too.
12999 2018-10-25  Paul Eggert  <eggert@cs.ucla.edu>
13001         havelib: fix nested ‘configure’ chatter
13002         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Don’t nest
13003         AC_CACHE_CHECK calls, which resulted in confusing output like
13004         “checking for the common suffixes of directories in the library
13005         search path... checking for 64-bit host... no lib,lib”.
13007         backupfile: tweak for better code
13008         * lib/backupfile.c: Sort include directives, and remove
13009         unnecessary <limits.h> include.
13010         (FALLTHROUGH): New macro, copied from other modules.
13011         (backupfile_internal): Use it to avoid code duplication.
13012         This lets GCC 8.2.1 generate better code by inlining the
13013         call to check_extension.
13015 2018-10-23  Paul Eggert  <eggert@cs.ucla.edu>
13017         backupfile: new dir_fd args
13018         New module opendirat with code taken from fts.
13019         Use this module to let backupfile use a directory file descriptor.
13020         * NEWS: Document the incompatible change.
13021         * lib/backup-find.c (find_backup_file_name):
13022         * lib/backup-rename.c (backup_file_rename):
13023         New arg DIR_FD.
13024         * lib/backupfile.c: Include stdint.h, for SIZE_MAX.
13025         (SIZE_MAX): Remove.
13026         Include opendirat.h rather than dirent--.h.
13027         (check_extension): New args DIR_FD and BASE_MAX.  All callers changed.
13028         (numbered_backup): New args DIR_FD and PNEW_FD.  All callers changed.
13029         (backupfile_internal): New arg DIR_FD.  All callers changed.
13030         * lib/fts.c: Include opendirat.h.
13031         (opendirat): Move to opendirat.c.
13032         * lib/opendirat.c, lib/opendirat.h, modules/opendirat: New files.
13033         * modules/backupfile (Depends-on): Remove dirfd, opendir.
13034         Add opendirat.
13035         * modules/fts (Depends-on): Remove fdopendir, openat-safer.
13036         Add opendirat.
13038 2018-10-23  Bruno Haible  <bruno@clisp.org>
13040         localename: Simplify support for per-thread locales on Solaris 11.4.
13041         * m4/intl-thread-locale.m4: Renamed from m4/intlsolaris.m4.
13042         (gt_INTL_THREAD_LOCALE_NAME): Renamed from gt_INTL_SOLARIS. Define
13043         HAVE_SOLARIS114_LOCALES instead of HAVE_NAMELESS_LOCALES.
13044         * lib/localename.c: Handle HAVE_SOLARIS114_LOCALES through Solaris
13045         specific code.
13046         * lib/localename-table.h: Update comments.
13047         * lib/localename-table.c: Update comments.
13048         * m4/localename.m4 (gl_LOCALENAME): Require gt_INTL_THREAD_LOCALE_NAME.
13049         Test for 'uselocale'. Don't invoke gt_INTL_SOLARIS.
13050         * m4/intl.m4 (AM_INTL_SUBDIR): Require gt_INTL_THREAD_LOCALE_NAME. Test
13051         for 'uselocale'. Set HAVE_NAMELESS_LOCALES.
13052         (gt_INTL_SUBDIR_CORE): Don't invoke gt_INTL_SOLARIS. Don't set
13053         HAVE_NAMELESS_LOCALES here.
13054         * modules/localename (Files): Add m4/intl-thread-locale.m4. Remove
13055         m4/intlsolaris.m4.
13056         * modules/gettext (Files): Likewise.
13058 2018-10-22  Bruno Haible  <bruno@clisp.org>
13060         std-gnu11: Support Autoconf versions < 2.64.
13061         * m4/std-gnu11.m4 (AC_PROG_CC, AC_PROG_CXX): Use _AC_DO as fallback
13062         when _AC_DO_LIMIT does not exist.
13064 2018-10-22  Bruno Haible  <bruno@clisp.org>
13066         Assume Autoconf >= 2.63.
13067         * DEPENDENCIES: Mention the requirement.
13069         * gnulib-tool (DEFAULT_AUTOCONF_MINVERSION): Bump to 2.63.
13070         (func_get_filelist): Don't list m4/onceonly.m4 any more.
13071         * pygnulib/GLModuleSystem.py (getFiles): Likewise.
13072         * m4/onceonly.m4: Remove file.
13074         * m4/openmp.m4: Remove file.
13075         * modules/openmp (Files): Remove m4/openmp.m4.
13077         * m4/configmake.m4 (gl_CONFIGMAKE_PREP): Don't set datarootdir, docdir,
13078         htmldir, dvidir, pdfdir, psdir, localedir.
13079         * m4/po.m4 (AM_PO_SUBDIRS): Don't set localedir.
13081         * m4/gnulib-common.m4 (m4_foreach_w): Remove fallback for
13082         Autoconf < 2.60.
13083         (AC_PROG_MKDIR_P): Remove definition for Autoconf < 2.62.
13084         (AC_PROG_SED): Remove fallback for Autoconf < 2.60.
13086         * m4/errno_h.m4 (AC_COMPUTE_INT): Remove fallback for Autoconf < 2.61.
13087         * m4/size_max.m4 (AC_COMPUTE_INT): Likewise.
13088         * m4/stdint.m4 (AC_COMPUTE_INT): Likewise.
13090         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Assume AC_USE_SYSTEM_EXTENSIONS
13091         exists.
13092         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Likewise,
13094         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Remove workaround for
13095         Autoconf < 2.61.
13097         * m4/lib-prefix.m4 (AC_LIB_ARG_WITH): Remove macro.
13098         (AC_LIB_PREFIX): Use AC_ARG_WITH, assuming semantics of
13099         Autoconf >= 2.52.
13101         * m4/longlong.m4: Require Autoconf >= 2.62. Update comments.
13102         * m4/ls-mntd-fs.m4: Require Autoconf >= 2.60. Update comments.
13103         * m4/gettext.m4 (AM_GNU_GETTEXT): Update comment.
13105 2018-10-22  Bruno Haible  <bruno@clisp.org>
13107         Assume Automake >= 1.11.
13108         * m4/configmake.m4: Update comments.
13109         * m4/lib-link.m4 (AC_LIB_RPATH): Assume AC_REQUIRE_AUX_FILE exists.
13110         * m4/po.m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Eliminate uses
13111         of 'eval'.
13112         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am,
13113         func_create_testdir, func_create_megatestdir): Emit a Makefile.am that
13114         requires Automake >= 1.11.
13116 2018-10-22  Bruno Haible  <bruno@clisp.org>
13118         localename: Fix typo in comment.
13119         * tests/test-locale-c++.cc (newlocale): Fix typo in comment.
13121 2018-10-22  Bruno Haible  <bruno@clisp.org>
13123         Fix failure of 'gnulib-tool --create-testdir' with all modules.
13124         * gnulib-tool (func_create_testdir): Exclude 'timevar' module.
13126 2018-10-21  Bruno Haible  <bruno@clisp.org>
13128         locale: Ease integration with GNU libintl.
13129         * lib/locale.in.h (GNULIB_defined_newlocale, GNULIB_defined_duplocale,
13130         GNULIB_defined_freelocale): New macros.
13132 2018-10-21  Bruno Haible  <bruno@clisp.org>
13134         localename: Fine-tune support for per-thread locales on Solaris 11.4.
13135         * lib/localename-table.h: New file, extracted from lib/localename.c.
13136         * lib/localename-table.c: Likewise.
13137         * lib/localename.c: Include localename-table.h.
13138         (get_locale_t_name, newlocale, duplocale, freelocale): Invoke
13139         locale_hash_function instead of pointer_hash.
13140         * modules/localename (Files): Add lib/localename-table.h,
13141         lib/localename-table.c.
13142         (lib_SOURCES): Add localename-table.c.
13143         * m4/intlsolaris.m4 (gt_INTL_SOLARIS): Require AC_CANONICAL_HOST. Test
13144         for Solaris 11.4 locale system only on Solaris. Test for it
13145         independently whether getlocalename_l exists.
13146         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Don't test for 'uselocale' and
13147         'getlocalename_l'. Instead, invoke gt_INTL_SOLARIS. Set
13148         HAVE_NAMELESS_LOCALES.
13149         * modules/gettext (Files): Add m4/intlsolaris.m4.
13151 2018-10-21  Bruno Haible  <bruno@clisp.org>
13153         Small update from gettext.
13154         * m4/intl.m4: Update from gettext:
13155         - 2018-01-02: Fix 'ar' invocation when cross-compiling and in 64-bit
13156         mode on AIX.
13157         - 2018-01-02: Don't use -lc explicitly when linking with libtool.
13158         - 2017-05-19: (AM_INTL_SUBDIR): Require AC_C_FLEXIBLE_ARRAY_MEMBER.
13160 2018-10-16  Bruno Haible  <bruno@clisp.org>
13162         mountlist: Remove support for Cray with UNICOS 9.
13163         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't define
13164         MOUNTED_LISTMNTENT.
13165         * lib/mountlist.c: Remove MOUNTED_LISTMNTENT case.
13167 2018-10-16  Bruno Haible  <bruno@clisp.org>
13169         fsusage, mountlist, getloadavg, getgroups: Remove support for Ultrix.
13170         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't define
13171         STAT_STATFS2_FS_DATA.
13172         * lib/fsusage.c: Remove STAT_STATFS2_FS_DATA case.
13173         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't define
13174         MOUNTED_GETMNT.
13175         * lib/mountlist.c: Remove MOUNTED_GETMNT case.
13176         * lib/getloadavg.c (decstation): Remove definition and case.
13177         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Mention NeXTstep, not Ultrix.
13178         * lib/getgroups.c: Likewise.
13179         * doc/posix-functions/getgroups.texi: Likewise.
13180         * lib/time.in.h: Update comments.
13182 2018-10-16  Bruno Haible  <bruno@clisp.org>
13184         getloadavg: Remove support for ConvexOS.
13185         * lib/getloadavg.c: Remove convex case.
13187 2018-10-16  Bruno Haible  <bruno@clisp.org>
13189         getloadavg: Remove support for Sony NEWS.
13190         * lib/getloadavg.c: Remove sony_news case.
13192 2018-10-16  Bruno Haible  <bruno@clisp.org>
13194         fsusage, mountlist, getloadavg: Remove support for Dynix/ptx.
13195         * lib/fsusage.c: Remove _SEQUENT_ case.
13196         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Update comments.
13197         * lib/mountlist.c: Don't test for MNTTABNAME.
13198         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Don't test for libseq.
13199         (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't test for MNTTABNAME.
13200         * lib/getloadavg.c: Remove _SEQUENT_ and sequent cases.
13201         * lib/stat-size.h: Don't mention the Sequent bug.
13202         * doc/posix-functions/utime.texi: Don't mention the Dynix bug.
13204 2018-10-16  Bruno Haible  <bruno@clisp.org>
13206         fsusage: Remove support for AIX 3.
13207         * lib/fsusage.c: Remove code for AIX 3.
13208         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Update comments.
13210 2018-10-16  Bruno Haible  <bruno@clisp.org>
13212         fsusage, stat-size, getloadavg: Remove support for AIX PS/2.
13213         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for dustat.h.
13214         * lib/fsusage.c: Remove code for AIX PS/2.
13215         * lib/stat-size.h (ST_NBLOCKSIZE): Likewise.
13216         * lib/getloadavg.c: Likewise.
13218 2018-10-16  Bruno Haible  <bruno@clisp.org>
13220         getloadavg: Remove support for HP-UX on m68k.
13221         * lib/getloadavg.c: Remove hp9000s300 case.
13223 2018-10-16  Bruno Haible  <bruno@clisp.org>
13225         fsusage, mountlist: Remove support for DolphinOS (an SVR3 variant).
13226         * lib/fsusage.c: Remove DOLPHIN case.
13227         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Update comments.
13228         * lib/mountlist.c: Remove MOUNTED_GETMNTTBL case.
13230 2018-10-16  Bruno Haible  <bruno@clisp.org>
13232         getloadavg: Remove support for Alliant FX/2800.
13233         * lib/getloadavg.c: Remove alliant case.
13235 2018-10-16  Bruno Haible  <bruno@clisp.org>
13237         getloadavg: Remove support for tek4300.
13238         * lib/getloadavg.c: Remove tek4300 case.
13240 2018-10-16  Bruno Haible  <bruno@clisp.org>
13242         getloadavg: Remove support for Ardent.
13243         * lib/getloadavg.c: Remove ardent case.
13245 2018-10-16  Bruno Haible  <bruno@clisp.org>
13247         mountlist: Remove support for SVR2.
13248         Reported by Andrew Borodin <aborodin@vmail.ru> in
13249         <https://lists.gnu.org/archive/html/bug-gnulib/2018-10/msg00101.html>.
13250         * lib/mountlist.c: Remove MOUNTED_FREAD case.
13251         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't define
13252         MOUNTED_FREAD.
13254 2018-10-15  Paul Eggert  <eggert@cs.ucla.edu>
13256         libc-config: merge from glibc
13257         * lib/cdefs.h (__glibc_has_attribute): New macro.
13259         regex: depend on libc-config
13260         * modules/regex (Depends-on): Add libc-config.
13261         This is needed after the recent autoupdate from glibc.
13263 2018-10-14  Bruno Haible  <bruno@clisp.org>
13265         localename: Add support for per-thread locales on Solaris 11.4.
13266         * lib/locale.in.h (newlocale, freelocale): New declarations.
13267         (duplocale): Declare also when the 'localename' module requests it.
13268         * lib/localename.c (struniq_hash_node): Renamed from hash_node.
13269         (STRUNIQ_HASH_TABLE_SIZE): Renamed from HASH_TABLE_SIZE.
13270         (struniq): Update.
13271         (struct locale_categories_names, struct locale_hash_node): New types.
13272         (LOCALE_HASH_TABLE_SIZE): New constant.
13273         (locale_hash_table, locale_lock): New variables.
13274         (pointer_hash, get_locale_t_name): New functions.
13275         (newlocale, duplocale, freelocale): New overridden functions.
13276         (gl_locale_name_thread_unsafe): Use get_locale_t_name.
13277         * m4/intlsolaris.m4: New file.
13278         * m4/localename.m4 (gl_LOCALENAME): Require gl_LOCALE_H_DEFAULTS. Invoke
13279         gt_INTL_SOLARIS. Set HAVE_NEWLOCALE, HAVE_DUPLOCALE, HAVE_FREELOCALE,
13280         REPLACE_NEWLOCALE, REPLACE_DUPLOCALE, REPLACE_FREELOCALE.
13281         * m4/locale_h.m4 (gl_LOCALE_H): Test whether newlocale, freelocale are
13282         declared.
13283         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALENAME, HAVE_NEWLOCALE,
13284         HAVE_FREELOCALE, REPLACE_NEWLOCALE, REPLACE_FREELOCALE.
13285         * modules/locale (Makefile.am): Substitute GNULIB_LOCALENAME,
13286         HAVE_NEWLOCALE, HAVE_FREELOCALE, REPLACE_NEWLOCALE, REPLACE_FREELOCALE.
13287         * modules/localename (Files): Add intlsolaris.m4.
13288         (Depends-on): Add 'locale'.
13289         (configure.ac): Invoke gl_LOCALE_MODULE_INDICATOR.
13290         * tests/test-locale-c++.cc (newlocale, freelocale): Prepare for checking
13291         the signatures.
13293 2018-10-14  Akim Demaille  <akim@lrde.epita.fr>
13295         timevar: use gethrxtime to get wall clock time
13296         clock_gettime is not portable.  gethrxtime takes the best available
13297         option to get the wall clock time, including clock_gettime (monotonic
13298         clock), and gettime (non monotonic).
13299         Also, using xtime_t instead of float preserves the precision.
13300         Suggested by Bruno Haible.
13301         * lib/xtime.h (xtime_make): Handle overflows of nanoseconds.
13302         * modules/timevar (Depends-on): We need gethrxtime.
13303         We no longer use times().
13304         (Link): Update.
13305         * lib/timevar.h (timevar_time_def): Use xtime_t.
13306         * lib/timevar.c (set_to_current_time): Use gethrxtime.
13307         (timevar_print): Instead of checking whether the timings themselves
13308         are large enough for the timevar to be printed, check the percentages.
13310 2018-10-14  Bruno Haible  <bruno@clisp.org>
13312         wcsnrtombs: Work around Solaris 11.4 bug.
13313         * m4/wcsnrtombs.m4 (gl_WCSNRTOMBS_WORKS_IN_TRADITIONAL_LOCALE): New
13314         macro.
13315         (gl_FUNC_WCSNRTOMBS): Invoke it.
13316         * doc/posix-functions/wcsnrtombs.texi: Mention the Solaris bug.
13318 2018-10-14  Bruno Haible  <bruno@clisp.org>
13320         mbsnrtowcs: Work around Solaris 11.4 bug.
13321         * m4/mbsnrtowcs.m4 (gl_MBSNRTOWCS_WORKS_IN_TRADITIONAL_LOCALE): New
13322         macro.
13323         (gl_FUNC_MBSNRTOWCS): Invoke it.
13324         * doc/posix-functions/mbsnrtowcs.texi: Mention the Solaris bug.
13326 2018-10-14  Bruno Haible  <bruno@clisp.org>
13328         doc: Update for Solaris 11.4.
13329         * doc/**/*.texi: For bugs that exist in both Solaris 11.3 and 11.4,
13330         mention Solaris 11.4.
13331         * m4/printf.m4: Update comments about Solaris.
13332         * m4/log.m4: Likewise.
13333         * m4/log10.m4: Likewise.
13334         * m4/logb.m4: Likewise.
13335         * m4/logbf.m4: Likewise.
13336         * m4/logbl.m4: Likewise.
13337         * m4/rename.m4: Likewise.
13338         * m4/wcrtomb.m4: Likewise.
13339         * m4/hostent.m4: Likewise.
13340         * m4/servent.m4: Likewise.
13342 2018-10-14  Bruno Haible  <bruno@clisp.org>
13344         floor, ceil, trunc, truncf, truncl: Defeat GCC optimizations.
13345         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Use 'floor' also through a function
13346         pointer.
13347         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use 'ceil' also through a function
13348         pointer.
13349         * m4/trunc.m4 (gl_FUNC_TRUNC): Use 'trunc' also through a function
13350         pointer.
13351         * m4/truncf.m4 (gl_FUNC_TRUNCF): Use 'truncf' also through a function
13352         pointer.
13353         * m4/truncl.m4 (gl_FUNC_TRUNCL): Use 'truncl' also through a function
13354         pointer.
13356 2018-10-13  Akim Demaille  <akim@lrde.epita.fr>
13358         bootstrap: fix wget command for po files.
13359         * build-aux/bootstrap (po_download_command_format): Fix comment,
13360         and adjust callers.
13362 2018-10-13  Akim Demaille  <akim@lrde.epita.fr>
13364         timevar: improve the output format
13365         Suggested by Bruno Haible.
13366         See https://lists.gnu.org/archive/html/bug-gnulib/2018-10/msg00040.html.
13367         * lib/timevar.c (timevar_print): Use %7.3f for usr/sys and %11.6f for
13368         wall, since its resolution is much higher.
13370 2018-10-13  Akim Demaille  <akim@lrde.epita.fr>
13372         timevar: expect that getrusage is available.
13373         Don't keep both times and getrusage as backend: both are guaranteed by
13374         gnulib, a single one suffices.  Using getrusage is open to possibly
13375         tracking other types of resources in the future.
13376         * modules/timevar (Depends-on): Add getrusage.
13377         (configure.ac): Remove gl_TIMEVAR.
13378         (Files): Remove m4/timevar.m4.
13379         * m4/timevar.m4: Remove, rely on gnulib for getrusage.
13380         * lib/timevar.h (timevar_enabled): Clarify documentation.
13381         * lib/timevar.c: Remove all the code about times.
13382         Remove all the CPP guards about getrusage: expect it to be present
13383         (courtesy of gnulib).
13385 2018-10-12  Bruno Haible  <bruno@clisp.org>
13387         mountlist: Improve support for Solaris in 64-bit mode.
13388         Reported by David Wood <David.Wood@deshaw.com> in
13389         <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=6816>.
13390         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): On Solaris 8 or
13391         newer, define MOUNTED_GETEXTMNTENT instead of MOUNTED_GETMNTENT2.
13392         * lib/mountlist.c: Add code for MOUNTED_GETEXTMNTENT case.
13394 2018-10-12  Bruno Haible  <bruno@clisp.org>
13396         mountlist: Add support for Minix.
13397         Reported by Assaf Gordon in
13398         <https://lists.gnu.org/archive/html/bug-gnulib/2014-09/msg00074.html>.
13399         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use
13400         AC_CHECK_FUNCS to check for 'getmntinfo'.
13401         * lib/mountlist.c: Update comments.
13403 2018-10-12  Bruno Haible  <bruno@clisp.org>
13405         Make better use of Autoconf.
13406         * m4/environ.m4: Use AC_CACHE_CHECK where possible.
13407         * m4/manywarnings.m4: Likewise.
13408         * m4/manywarnings-c++.m4: Likewise.
13409         * m4/socklen.m4: Likewise.
13410         * m4/sockpfaf.m4: Likewise.
13411         * m4/stdarg.m4: Likewise.
13412         * m4/visibility.m4: Likewise.
13413         * m4/fsusage.m4: Use AC_CACHE_CHECK where possible. Modernize
13414         indentation.
13415         * m4/ls-mntd-fs.m4: Likewise.
13417 2018-10-11  Bruno Haible  <bruno@clisp.org>
13419         mountlist: Modernize platform lists.
13420         * m4/ls-mntd-fs.m4: Clarify which MOUNTED_* symbol applies to which
13421         platforms, deemphasizing the obsolete ones.
13422         * lib/mountlist.c: Likewise.
13424 2018-10-11  Bruno Haible  <bruno@clisp.org>
13426         getprogname: Add support for 32-bit programs on HP-UX.
13427         * lib/getprogname.c (getprogname) [HP-UX]: If pstat_getproc fails,
13428         try the similar functions 32-bit programs on 64-bit HP-UX.
13430 2018-10-11  Bruno Haible  <bruno@clisp.org>
13432         getprogname: Work around program name truncation when possible.
13433         * lib/getprogname.c (getprogname) [HP-UX]: When pst_ucomm is truncated,
13434         possibly use pst_cmd instead.
13436 2018-10-08  Paul Eggert  <eggert@cs.ucla.edu>
13438         fts: cleanup after FTS_NOATIME removal
13439         * lib/fts_.h (FTS_VERBATIM, FTS_OPTIONMASK, FTS_NAMEONLY)
13440         (FTS_STOP): Shrink to minimal values.  We don’t need to
13441         worry about binary compatibility in Gnulib, and the old way
13442         of doing things had a hole in the user options that caused
13443         FTS_OPTIONMASK to not work as desired.
13445 2018-10-08  Bernhard Voelker  <mail@bernhard-voelker.de>
13447         fts: remove FTS_NOATIME
13448         This reverts commit da4d6974013c822af1498941e32db774b2031765.
13449         We cannot guarantee that O_NOATIME works: e.g. openat fails
13450         with EPERM if the effective user ID of the caller does not match
13451         the owner of the file and the caller is not privileged.
13452         Downstream findutils has never picked up FTS_NOATIME.  Discussed at
13453         <https://lists.gnu.org/r/bug-gnulib/2018-09/msg00122.html>.
13454         * lib/fts_.h (FTS_NOATIME): Remove bit flag.
13455         (FTS_OPTIONMASK): Adjust.
13456         * lib/fts.c (diropen, fts_open, fts_build): Likewise.
13457         (fd_ring_check): Likewise.
13459 2018-10-08  Bruno Haible  <bruno@clisp.org>
13461         csharpcomp*, csharpexec*: Remove support for pnet.
13462         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Don't test for cscc. Don't set
13463         HAVE_CSCC.
13464         * build-aux/csharpcomp.sh.in (options_cscc): Remove variable.
13465         Don't test HAVE_CSCC.
13466         * lib/csharpcomp.c (compile_csharp_using_pnet): Remove function.
13467         (compile_csharp_class): Don't invoke it.
13468         * m4/csharpexec.m4 (gt_CSHARPEXEC): Don't test for ilrun. Don't set
13469         HAVE_ILRUN.
13470         * build-aux/csharpexec.sh.in (options_ilrun): Remove variable.
13471         Don't test HAVE_ILRUN.
13472         * lib/csharpexec.c (execute_csharp_using_pnet): Remove function.
13473         (execute_csharp_program): Don't invoke it.
13474         * m4/csharp.m4 (gt_CSHARP_CHOICE): Don't recognize --enable-csharp=pnet
13475         any more.
13477 2018-10-07  Andreas Henriksson  <andreas@fatal.se>  (tiny change)
13479         renameatu: prefer renameat2 to syscall
13480         * lib/renameatu.c (renameatu) [HAVE_RENAMEAT2]:
13481         Use renameat2 instead of syscall (Bug#32796).
13482         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Check for renameat2.
13484 2018-10-07  Benno Schulenberg  <bensberg@telfort.nl>
13486         bootstrap, gnulib-tool: use https instead of insecure rsync
13487         * build-aux/bootstrap (download_po_files, po_download_command_format):
13488         Don't try using rsync; always use wget over https to fetch PO files.
13489         * gnulib-tool (func_import): Likewise.
13490         * pygnulib/GLImport.py (GLImport.execute): Likewise.
13492 2018-10-07  Benno Schulenberg  <bensberg@telfort.nl>
13494         bootstrap, gnulib-tool: correct the translations wget command
13495         * build-aux/bootstrap (po_download_command_format2): Restrict
13496         recursion to a single level.
13497         * gnulib-tool (func_import): Likewise.
13498         * pygnulib/GLImport.py (GLImport.execute): Likewise.
13500 2018-10-07  Akim Demaille  <akim@lrde.epita.fr>
13502         doc: the gnulib snapshots are not maintained
13503         * doc/gnulib-intro.texi (Steady Development): Don't mention them.
13505 2018-10-07  Akim Demaille  <akim@lrde.epita.fr>
13507         timevar: add to lib_SOURCES
13508         * modules/timevar (lib_SOURCES): Add timevar.c and timevar.def.
13510 2018-10-07  Bruno Haible  <bruno@clisp.org>
13512         dirent: Update documentation.
13513         * doc/posix-headers/dirent.texi: The MSVC issue is fixed by Gnulib.
13515 2018-10-05  Bruno Haible  <bruno@clisp.org>
13517         strpbrk: Make it possible to namespace the defined symbol.
13518         * lib/strpbrk.c (strpbrk): Don't undefine outside of glibc.
13520 2018-10-05  Bruno Haible  <bruno@clisp.org>
13522         strcspn: Make it possible to namespace the defined symbol.
13523         * lib/strcspn.c (strcspn): Don't undefine outside of glibc.
13525 2018-10-05  Bruno Haible  <bruno@clisp.org>
13527         raise: Make it possible to namespace the defined symbol.
13528         * lib/raise.c (raise): Undefine only after the replacement function has
13529         been defined.
13530         (raise): Renamed from rpl_raise.
13531         (raise_nothrow): Move to the end of the compilation unit.
13533 2018-10-05  Bruno Haible  <bruno@clisp.org>
13535         memcmp: Make it possible to namespace the defined symbol.
13536         * lib/memcmp.c (memcmp): Don't undefine outside of glibc.
13538 2018-10-05  Bruno Haible  <bruno@clisp.org>
13540         explicit_bzero: Make it possible to namespace the defined symbol.
13541         * lib/explicit_bzero.c (explicit_bzero): Don't undefine outside of
13542         glibc.
13544 2018-10-05  Bruno Haible  <bruno@clisp.org>
13546         mkdir-p: Depend on 'mkdir'.
13547         * modules/mkdir-p (Depends-on): Add 'mkdir'.
13549 2018-10-05  Bruno Haible  <bruno@clisp.org>
13551         tempname: Depend on 'mkdir'.
13552         Reported by Maarten Bosmans <mkbosmans@gmail.com>
13553         at <https://savannah.gnu.org/bugs/?33379>.
13554         * modules/tempname (Depends-on): Add 'mkdir'.
13556 2018-10-05  Akim Demaille  <akim@lrde.epita.fr>
13558         timevar: rely on gnulib modules for time portability.
13559         * modules/timevar (Depends-on): Add sys_time, sys_times, and times.
13560         * m4/timevar.m4: Don't check for clock_t and struct tms,
13561         guaranteed by gnulib.
13562         * lib/timevar.h: Use extern "C" protection.
13563         Include <stdio.h> for FILE.
13564         * lib/timevar.c: Include sys/time.h, sys/times.h unconditionally,
13565         they are guaranteed by gnulib.
13566         Remove uses of clock as (now useless) fallback.
13568 2018-10-04  Bruno Haible  <bruno@clisp.org>
13570         sh-filename: New module.
13571         * m4/sh-filename.m4: New file.
13572         * modules/sh-filename: New file.
13573         * lib/spawni.c (_PATH_BSHELL): Use BOURNE_SHELL instead of hardcoding
13574         "/bin/sh".
13575         * tests/test-posix_spawn1.c (main): Likewise.
13576         * tests/test-posix_spawn2.c (main): Likewise.
13577         * lib/javacomp.c (compile_using_envjavac, is_envjavac_gcj,
13578         is_envjavac_gcj43): Likewise.
13579         * lib/javaexec.c (execute_java_class): Likewise.
13580         * modules/posix_spawn-internal (Depends-on): Add sh-filename.
13581         * modules/posix_spawnp-tests (Depends-on): Likewise.
13582         * modules/javacomp (Depends-on): Likewise.
13583         * modules/javaexec (Depends-on): Likewise.
13585 2018-10-04  Bruno Haible  <bruno@clisp.org>
13587         spawn-pipe tests: Avoid test failure on native Windows.
13588         * tests/test-spawn-pipe-child.c (main): On native Windows, don't expect
13589         that fd 2 is closed.
13591 2018-10-04  Bruno Haible  <bruno@clisp.org>
13593         fcntl: Make it possible to namespace the defined symbol.
13594         * lib/fcntl.c (fcntl): Undefine only after the replacement function has
13595         been defined.
13596         (fcntl): Renamed from rpl_fcntl.
13597         (rpl_fcntl_DUPFD, rpl_fcntl_DUPFD_CLOEXEC): New functions, extracted
13598         from fcntl.
13599         (klibc_fcntl): Move to the end of the compilation unit.
13601 2018-10-02  Bruno Haible  <bruno@clisp.org>
13603         vasnprintf tests: Avoid test failure on HP-UX/hppa and IRIX.
13604         * tests/test-vasnprintf.c (test_function): Change the test added on
13605         2018-09-23 to check only the 18 most significant digits.
13607         vasnprintf tests: Avoid test failure on Cygwin.
13608         * tests/test-vasnprintf.c (test_function): Change the test added on
13609         2018-09-23 to check only the 42 most significant digits.
13611 2018-10-01  Bruno Haible  <bruno@clisp.org>
13613         mkostemp, mkostemps: Update documentation.
13614         * doc/glibc-functions/mkostemp.texi: Mention the Mac OS X issue.
13615         * doc/glibc-functions/mkostemps.texi: Likewise.
13617 2018-10-01  Tom Tromey  <tom@tromey.com>
13619         mkostemp, mkostemps: Fix compilation error in C++ mode on Mac OS X.
13620         * lib/stdlib.in.h: Include <unistd.h> for mkostemp and mkostemps
13621         on OS X.
13623 2018-09-30  Pádraig Brady  <P@draigBrady.com>
13625         hmac-*: refactor to remove repetitive code
13626         * lib/hmac.c: A new parameterized single implementation.
13627         * lib/hmac-md5.c: Define parameters and include implementation.
13628         * lib/hmac-sha1.c: Likewise.
13629         * lib/hmac-sha256.c: Likewise.
13630         * lib/hmac-sha512.c: Likewise.
13631         * modules/crypto/hmac-md5: Reference the new implementation file.
13632         * modules/crypto/hmac-sha1: Likewise.
13633         * modules/crypto/hmac-sha256: Likewise.
13634         * modules/crypto/hmac-sha512: Likewise.
13635         * tests/test-hmac-md5.c: Refactor common code to a single function.
13636         * tests/test-hmac-sha1.c: Likewise.
13637         * tests/test-hmac-sha256.c: Likewise.
13638         * tests/test-hmac-sha512.c: Likewise.
13640 2018-09-30  Zhang Qing  <zhangqingl@126.com>
13642         hmac-sha512: fix hash for keys > blocksize (128 bytes)
13643         * lib/hmac-sha512.c (hmac_sha512): Set the computed/shortened
13644         key length to that output by sha512, not the blocksize.
13645         Otherwise uninitialized data from the stack
13646         is used when computing the hash.
13647         * tests/test-hmac-sha512.c: Add a shortened key test case.
13648         Reported at https://github.com/coreutils/gnulib/pull/5
13650 2018-09-30  Bruno Haible  <bruno@clisp.org>
13652         vasnprintf: Avoid warnings from GCC's -Wsign-compare.
13653         Reported by Bjarni Ingi Gislason <bjarniig@rhi.hi.is> in
13654         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00105.html>.
13655         * lib/vasnprintf.c (VASNPRINTF): Cast 'count' from 'int' to
13656         'unsigned int' before comparison with an unsigned value.
13658 2018-09-30  Bruno Haible  <bruno@clisp.org>
13660         grantpt: Remove unnecessary dependency.
13661         * modules/grantpt (Depends-on): Remove 'builtin-expect'.
13663 2018-09-30  Bruno Haible  <bruno@clisp.org>
13665         timevar: Small tweaks.
13666         * lib/timevar.h: Fix comments. Add parameter names to function
13667         declarations.
13668         * lib/timevar.c: Include timevar.h immediately after config.h.
13669         * lib/timevar.def: Fix comments.
13670         * modules/timevar (Maintainer): List Akim Demaille.
13672 2018-09-30  Bruno Haible  <bruno@clisp.org>
13674         timevar: Include documentation in gnulib manual.
13675         * doc/timevar.texi: Change node and section name to 'Profiling of
13676         program phases'.
13677         In the code snippets, tweak the #includes and use GNU coding style.
13678         * doc/gnulib.texi: Include timevar.texi.
13680 2018-09-27  Akim Demaille  <akim@lrde.epita.fr>
13682         timevar: import from Bison.
13683         * m4/timevar.m4, modules/timevar, lib/timevar.h, lib/timevar.c:
13684         New files.
13685         * lib/timevar.def: New file.
13686         * doc/timevar.texi: New file.
13688 2018-09-26  Bruno Haible  <bruno@clisp.org>
13690         javacomp-script, javacomp: Add preliminary support for Java 12..17.
13691         * m4/javacomp.m4 (gt_JAVACOMP): Treat Java versions 12..17 like 11.
13692         * lib/javacomp.c (default_target_version): Likewise.
13694 2018-09-26  Bruno Haible  <bruno@clisp.org>
13696         javacomp-script, javacomp: Add support for Java 11.
13697         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 11 and
13698         target-version 11.
13699         * lib/javaversion.h: Update comments.
13700         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
13701         source_version_index, get_goodcode_snippet, get_failcode_snippet,
13702         TARGET_VERSION_BOUND, target_version_index,
13703         corresponding_classfile_version): Accept source_version 11 and
13704         target_version 11.
13705         * lib/javacomp.h: Update comments accordingly.
13707 2018-09-23  Bruno Haible  <bruno@clisp.org>
13709         vasnprintf: Fix heap memory overrun bug.
13710         Reported by Ben Pfaff <blp@cs.stanford.edu> in
13711         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00107.html>.
13712         * lib/vasnprintf.c (convert_to_decimal): Allocate one more byte of
13713         memory.
13714         * tests/test-vasnprintf.c (test_function): Add another test.
13716 2018-09-19  Paul Eggert  <eggert@cs.ucla.edu>
13718         maint: mktime.c now shared with glibc
13719         * config/srclist.txt: intprops.h, timegm.c and mktime.c
13720         are now the same in Gnulib and glibc.
13722         mktime: fix _LIBC typo
13723         * lib/mktime.c (mktime): Fix typo (misspelled "_LIBC").
13725 2018-09-19  Norihiro Tanaka  <noritnk@kcn.ne.jp>
13727         dfa: optimization for state merge
13728         * lib/dfa.c (merge2): New function.
13729         (merge_nfa_state): Use it.
13731 2018-09-18  Jim Meyering  <meyering@fb.com>
13733         dfa: trivial comment fix: s/is/if/
13734         * lib/dfa.c (maybe_disable_superset_dfa): Fix comment typo.
13736 2018-09-18  Paul Eggert  <eggert@cs.ucla.edu>
13738         dfa: use more-informative function name
13739         * lib/dfa.c (maybe_disable_superset_dfa):
13740         Rename from dfautf8noss.  Use change.
13742         dfa: tweak allocation performance
13743         * lib/dfa.c (merge_nfa_state, dfaoptimize):
13744         Prefer ptrdiff_t for indexes some more.
13745         Use char for flags, as it’s wide enough.
13746         Allocate queue and flags together, with one malloc call.
13747         No need to use xnmalloc since the multiplication and
13748         addition cannot overflow (it’s already been checked by
13749         earlier allocation).  Prefer memset to open-coding.
13751         dfa: prune states as we go
13752         * lib/dfa.c (prune): Remove.
13753         dfa: reorder enum for efficiency
13754         (merge_nfa_state): Prune as we go instead of at the end.
13755         Prefer ptrdiff_t for indexes, as this helps the compiler a bit.
13757         * lib/dfa.c (END): Now -1 again.  Reorder other elements
13758         of the enumeration to make it easier for GCC to generate
13759         efficient code by using fewer comparisons to check for
13760         ranges of values.
13761         (atom): Take advantage of the reordering.
13763 2018-09-18  Norihiro Tanaka  <noritnk@kcn.ne.jp>
13765         dfa: optimize alternation in NFA
13766         Even when similar states exist in alternation, the DFA treats them
13767         as separate items, which may complicate the transition in NFA and
13768         cause slowdown.  This change assembles the states into one.  For
13769         example, ab|ac is changed into a(b|c).  This change speeds-up
13770         matching for many branched patterns.  For example, grep speeds up
13771         more than 30× in:
13773           seq 10000 | sed 's/$/ abcdefghijklmnopqrstuvwxyz/; s/$/./' >in
13774           time -p env LC_ALL=C grep -vf in in
13776         * lib/dfa.c (prune): New function.
13777         (merge_nfa_state): New function.  It merges similar NFA states.
13778         (dfaoptimize): New function.  It seeks merged and removed nodes.
13779         (dfaanalyze): Call new function.
13780         (dfautf8noss): Change name from dfaoptimize because of addition of new
13781         function.
13782         (dfacomp): Update caller.
13784         dfa: simplify initial state
13785         Simplifying the initial state enables easier optimization of the NFA.
13786         * lib/dfa.c (enum token): Add new element BEG.
13787         (prtok): Adjust due to adding element BEG.
13788         (dfaparse): Put BEG at a head of tokens.
13789         (state_index): Adjust due to adding element BEG.
13790         (dfaanalyze): Concatenate BEG to other tokens, and simplify to
13791         build initial state.
13792         (dfamust): Adjust due to adding element BEG.  DFAMUST ignores it.
13794 2018-09-18  Bruno Haible  <bruno@clisp.org>
13796         file-has-acl: Fix test failure on Cygwin 2.9.
13797         * m4/acl.m4 (gl_FUNC_ACL): Update comments regarding Cygwin.
13798         * lib/acl-internal.h: Likewise.
13799         (HAVE_ACL_EXTENDED_FILE): Undefine on Cygwin.
13800         * lib/acl-internal.c: Update comments regarding Cygwin.
13801         * lib/acl_entries.c: Likewise.
13802         * lib/file-has-acl.c: Likewise.
13803         (file_has_acl): For Cygwin, use a different way to determine whether
13804         the "default" ACL of a directory is nontrivial.
13805         * lib/get-permissions.c: Update comments regarding Cygwin.
13806         * lib/set-permissions.c: Likewise.
13808 2018-09-18  Bruno Haible  <bruno@clisp.org>
13810         stat-time tests: Fix test failure on Cygwin.
13811         * tests/nap.h (nap_get_stat): Treat Cygwin like native Windows.
13813 2018-09-18  Paul Eggert  <eggert@cs.ucla.edu>
13815         doc: OS X 10.11 lacked ns time functions
13816         According to <https://github.com/zeromq/libzmq/issues/2175>,
13817         nanosecond-resolution timestamp functions were introduced
13818         in macOS 10.12, so document the last version (OS X 10.11)
13819         where they were absent.
13821         gettime: nanotime never existed
13822         Problem reported by Bruno Haible in:
13823         https://lists.gnu.org/r/bug-gnulib/2018-09/msg00082.html
13824         * lib/gettime.c (gettime) [HAVE_NANOTIME]: Remove unused code.
13825         * m4/gettime.m4 (gl_GETTIME): Don’t check for nanotime.
13827 2018-09-18  Bruno Haible  <bruno@clisp.org>
13829         doc: Update statement about target platforms.
13830         Reported by Simon Sobisch.
13831         * doc/gnulib-intro.texi (Target Platforms): Update. Mention
13832         restrictions on MSVC versions.
13834 2018-09-18  Bruno Haible  <bruno@clisp.org>
13836         posix_spawn tests: Fix link error on 64-bit Cygwin.
13837         * tests/test-posix_spawn1.c (environ): Remove declaration.
13838         * tests/test-posix_spawn2.c (environ): Likewise.
13839         * tests/test-posix_spawn3.c (environ): Likewise.
13840         * tests/test-posix_spawn4.c (environ): Likewise.
13841         * modules/posix_spawn-tests (Depends-on): Add 'environ'.
13842         * modules/posix_spawnp-tests (Depends-on): Likewise.
13844 2018-09-16  Paul Eggert  <eggert@cs.ucla.edu>
13846         timespec: new function current_timespec
13847         * lib/gettime.c (gettime): Prefer clock_gettime to nanotime,
13848         and don’t worry about it failing on a CLOCK_REALTIME arg.
13849         POSIX requires it to succeed and I don’t know of any
13850         counterexamples where the fallbacks would work.
13851         (current_timespec): New function, taken from Emacs.  It is more
13852         convenient than gettime, and can help register allocation.
13853         * lib/timespec.h: Include arg-nonnull.h.
13854         (current_timespec): New declaration.
13855         (gettime, settime): Declare args to be nonnull.
13856         * modules/timespec (Depends-on): Add snippet/arg-nonnull.
13858 2018-09-16  Bruno Haible  <bruno@clisp.org>
13860         setlocale: Improve locale handling on macOS 10.12 or newer.
13861         * lib/setlocale.c: Include header files for CoreFoundation. Declare
13862         gl_locale_name_canonicalize.
13863         (libintl_setlocale): Try harder to set a locale for categories LC_CTYPE
13864         and LC_MESSAGES.
13865         * m4/setlocale.m4 (gl_PREREQ_SETLOCALE): Add comment.
13867 2018-09-16  Bruno Haible  <bruno@clisp.org>
13869         Update list of locale names with scripts on macOS.
13870         * lib/localename.c (gl_locale_name_canonicalize): Update tables to
13871         match Mac OS X 10.13 and recent glibc.
13873 2018-09-16  Bruno Haible  <bruno@clisp.org>
13875         gettext: Use newer macOS APIs when possible.
13876         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Check for
13877         CFLocaleCopyPreferredLanguages.
13879 2018-09-16  Bruno Haible  <bruno@clisp.org>
13881         localename: Revisit macOS specific code.
13882         * lib/localename.c (gl_locale_name_default): Reduce code duplication.
13883         Fix comments about Mac OS X versions.
13885 2018-09-15  Bruno Haible  <bruno@clisp.org>
13887         setlocale: Improve support for locales not supported by libc.
13888         Reported by Dapeng Gao <peter@dpgao.cc> at
13889         <https://savannah.gnu.org/bugs/?54479>.
13890         * gettext-runtime/intl/setlocale.c: Include <stdio.h>.
13891         (libintl_setlocale): Use a more error-tolerant strategy when the locale
13892         to be set is not supported by libc: Emit warnings instead of failing.
13894 2018-09-15  Bruno Haible  <bruno@clisp.org>
13896         strstr, strcasestr: Add workaround against glibc-2.28 bug.
13897         Reported by Michael Brunnbauer via Siddhesh Poyarekar and Eric Blake.
13898         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Set
13899         gl_cv_func_strstr_works_always to 'no' on glibc 2.28.
13900         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Set
13901         gl_cv_func_strcasestr_works_always to 'no' on glibc 2.28.
13902         * doc/posix-functions/strstr.texi: Document the glibc 2.28 bug.
13903         * doc/glibc-functions/strcasestr.texi: Likewise.
13905 2018-09-14  Bruno Haible  <bruno@clisp.org>
13907         doc: Fix bottom of top-level page.
13908         Reported by Akim Demaille <akim.demaille@gmail.com> in
13909         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00072.html>.
13910         * doc/pastposix-functions/index.texi: Rename node to '_index' in HTML
13911         mode.
13912         * doc/gnulib.texi (Legacy Function Substitutes): Update menu
13913         accordingly.
13915 2018-09-12  Bruno Haible  <bruno@clisp.org>
13917         Add test case from a recent glibc bug.
13918         * tests/test-strstr.c (main): Add test of long needle.
13919         * tests/test-strcasestr.c (main): Likewise.
13920         * tests/test-c-strstr.c (main): Likewise.
13921         * tests/test-c-strcasestr.c (main): Likewise.
13922         * tests/test-memmem.c (main): Likewise.
13924 2018-09-12  Bruno Haible  <bruno@clisp.org>
13926         Apply Eric Blake's improvements from 2011-02-25 to more tests.
13927         * tests/test-c-strstr.c (main): Add the same tests here as well.
13929 2018-09-12  Bruno Haible  <bruno@clisp.org>
13931         Apply Jim Meyering's fix from 2015-01-11 to more tests.
13932         * tests/test-memmem.c (main): Free haystack.
13933         * tests/test-strcasestr.c (main): Likewise.
13934         * tests/test-c-strcasestr.c (main): Likewise.
13936 2018-09-11  Paul Eggert  <eggert@cs.ucla.edu>
13938         xstrtol: fix missing-TYPE_SIGNED typo
13939         * lib/xstrtol.c (TYPE_SIGNED): New macro, duplicating intprops.h.
13941 2018-09-10  Paul Eggert  <eggert@cs.ucla.edu>
13943         timespec: fix resolution confusion
13944         In normal usage, clock resolution is given in seconds, but the
13945         code was mistakenly using inverse seconds and calling it
13946         “resolution”.  Fix this, partly by renaming two identifiers.
13947         The old names will be kept for a bit, to ease transition.
13948         * lib/timespec.h (TIMESPEC_HZ, LOG10_TIMESPEC_HZ):
13949         New constants, replacing TIMESPEC_RESOLUTION and
13950         LOG10_TIMESPEC_RESOLUTION, which are now obsolescent.
13951         All uses changed.
13953 2018-09-09  Paul Eggert  <eggert@cs.ucla.edu>
13955         mktime: simplify in prep for glibc merge
13956         * lib/mktime.c, lib/timegm.c [_LIBC]:
13957         Include mktime-internal.h (a small file just for glibc)
13958         instead of using a typedef.
13960 2018-09-07  Paul Eggert  <eggert@cs.ucla.edu>
13962         intprops: minor clarification of code
13963         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW):
13964         Use _GL_INT_CONVERT rather than reinventing it.
13966 2018-09-07  Bruno Haible  <bruno@clisp.org>
13968         Fix a comment.
13969         * tests/test-posix_spawn3.c (parent_main): Fix typo in comment.
13971 2018-09-07  Bruno Haible  <bruno@clisp.org>
13973         posix_spawn_file_actions_addchdir: Add tests.
13974         * tests/test-posix_spawn_file_actions_addchdir.c: New file.
13975         * tests/test-posix_spawn4.c: New file.
13976         * modules/posix_spawn_file_actions_addchdir-tests: New file.
13978 2018-09-07  Bruno Haible  <bruno@clisp.org>
13980         posix_spawn_file_actions_addchdir: New module.
13981         Suggested by Eric Blake in
13982         <https://lists.gnu.org/archive/html/bug-findutils/2018-09/msg00007.html>.
13983         * lib/spawn.in.h (posix_spawn_file_actions_addchdir): New declaration.
13984         * lib/spawn_int.h (struct __spawn_action): Add tag 'spawn_do_chdir' and
13985         union member 'chdir_action'.
13986         * lib/spawn_faction_addchdir.c: New file.
13987         * lib/spawni.c (__spawni): Implement the spawn_do_chdir action.
13988         * lib/spawn_faction_addclose.c: Test REPLACE_POSIX_SPAWN instead of
13989         HAVE_WORKING_POSIX_SPAWN.
13990         * lib/spawn_faction_adddup2.c: Likewise.
13991         * lib/spawn_faction_addopen.c: Likewise.
13992         * m4/posix_spawn_faction_addchdir.m4: New file.
13993         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether module
13994         'posix_spawn_file_actions_addchdir' is present and whether
13995         posix_spawn_file_actions_addchdir_np exists. Define REPLACE_POSIX_SPAWN
13996         instead of HAVE_WORKING_POSIX_SPAWN.
13997         * m4/spawn_h.m4 (gl_SPAWN_H): Test whether
13998         posix_spawn_file_actions_addchdir is declared.
13999         (gl_SPAWN_H_DEFAULTS): Initialize
14000         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
14001         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
14002         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR.
14003         * modules/spawn (Makefile.am): Substitute
14004         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
14005         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
14006         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR.
14007         * modules/posix_spawn_file_actions_addchdir: New file.
14008         * modules/posix_spawn_file_actions_addclose (Depends-on,
14009         configure.ac): Test also REPLACE_POSIX_SPAWN.
14010         * modules/posix_spawn_file_actions_adddup2 (Depends-on,
14011         configure.ac): Likewise.
14012         * modules/posix_spawn_file_actions_addopen (Depends-on,
14013         configure.ac): Likewise.
14014         * tests/test-spawn-c++.cc (posix_spawn_file_actions_addchdir): Check
14015         signature.
14016         * doc/posix-functions/posix_spawn.texi: Mention the new module.
14017         * doc/posix-functions/posix_spawnp.texi: Likewise.
14019 2018-09-06  Bruno Haible  <bruno@clisp.org>
14021         stddef: Override max_align_t on NetBSD 8.0/x86.
14022         * m4/stddef_h.m4 (gl_STDDEF_H): When testing for max_align_t, test also
14023         the value of __alignof__ (max_align_t).
14024         * doc/posix-headers/stddef.texi: Mention the issue.
14026 2018-09-06  Bruno Haible  <bruno@clisp.org>
14028         fcntl: Fix F_DUPFD_CLOEXEC behaviour on Haiku.
14029         * lib/fcntl.c (rpl_fcntl): For F_DUPFD_CLOEXEC, don't even try the
14030         system fcntl.
14031         * doc/posix-functions/fcntl.texi: Document the issue.
14033 2018-09-06  Bruno Haible  <bruno@clisp.org>
14035         count-trailing-zeros tests: Rely on limits-h module.
14036         * tests/test-count-trailing-zeros.c (ULLONG_MAX): Remove fallback
14037         definition.
14038         * modules/count-trailing-zeros-tests (Depends-on): Add 'limits-h'.
14040 2018-09-06  Bruno Haible  <bruno@clisp.org>
14042         count-leading-zeros tests: Rely on limits-h module.
14043         * tests/test-count-leading-zeros.c (ULLONG_MAX): Remove fallback
14044         definition.
14045         * modules/count-leading-zeros-tests (Depends-on): Add 'limits-h'.
14047 2018-09-06  Bruno Haible  <bruno@clisp.org>
14049         count-one-bits tests: Rely on limits-h module.
14050         * tests/test-count-one-bits.c (ULLONG_MAX): Remove fallback definition.
14051         * modules/count-one-bits-tests (Depends-on): Add 'limits-h'.
14053 2018-09-06  Bruno Haible  <bruno@clisp.org>
14055         xstrtoll: Rely on limits-h module.
14056         * lib/xstrtol.c: Don't include intprops.h.
14057         (ULLONG_MAX, LLONG_MAX, LLONG_MIN): Remove fallback definitions.
14058         * modules/xstrtol (Depends-on): Remove 'intprops'.
14059         * modules/xstrtoll (Depends-on): Add 'limits-h'.
14061 2018-09-06  Bruno Haible  <bruno@clisp.org>
14063         strtoll, strtoull: Rely on limits-h module.
14064         * lib/strtol.c (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove macros.
14065         (ULLONG_MAX, LLONG_MAX, LLONG_MIN): Remove fallback definitions.
14066         * modules/strtoll (Depends-on): Add limits-h.
14067         * modules/strtoull (Depends-on): Likewise.
14069 2018-09-06  Bruno Haible  <bruno@clisp.org>
14071         intprops tests: Fix compilation error with pre-C99 compiler.
14072         * tests/test-intprops.c (verify_stmt): New macro.
14073         (VERIFY, main): Use it.
14075 2018-09-06  Bruno Haible  <bruno@clisp.org>
14077         limits-h: Provide numerical limits macros.
14078         * lib/limits.in.h (LLONG_MIN, LLONG_MAX, ULLONG_MAX): Define also for
14079         IRIX and for GCC.
14080         (WORD_BIT, LONG_BIT): Define.
14081         * m4/limits-h.m4 (gl_LIMITS_H): Set LIMITS_H to non-empty also when
14082         <limits.h> does not define LLONG_MAX or WORD_BIT.
14083         * tests/test-limits-h.c (TYPE_SIGNED, TYPE_WIDTH, TYPE_MINIMUM,
14084         TYPE_MAXIMUM): New macros, from intprops.h.
14085         Add tests for CHAR_BIT, WORD_BIT, LONG_BIT, <type>_MIN, and <type>_MAX.
14086         * doc/posix-headers/limits.texi: Document what the 'limits-h' module
14087         provides.
14089 2018-09-05  Bruno Haible  <bruno@clisp.org>
14091         fcntl: Don't access nonexistent optional argument.
14092         Reported by Frank Busse <f.busse@imperial.ac.uk> in
14093         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00018.html>.
14094         * lib/fcntl.c (rpl_fcntl): For actions that don't take an argument,
14095         don't consume an argument. For actions that take an 'int' argument,
14096         consume an 'int' argument.
14098 2018-09-05  Eric Blake  <eblake@redhat.com>
14100         doc: mention environ pitfall
14101         * doc/posix-functions/environ.texi (environ): Assigning NULL to
14102         environ is a glibc extension.
14104 2018-09-03  Bruno Haible  <bruno@clisp.org>
14106         gnulib-tool: Fix build order when $testsbase is a subdir of $sourcebase.
14107         Reported by Antoine Luong <antoine.luong@c-s.fr> in
14108         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00008.html>.
14109         * gnulib-tool (func_import): For the tests, set a dotfirst flag.
14110         (func_emit_lib_Makefile_am): Consider the dotfirst flag.
14111         (func_emit_tests_Makefile_am): Don't consider the dotfirst flag.
14113 2018-09-02  Paul Eggert  <eggert@cs.ucla.edu>
14115         mktime: fix unlikely race+overflow bug
14116         Problem reported by Alexandre Oliva in:
14117         https://sourceware.org/bugzilla/show_bug.cgi?id=16346
14118         * lib/mktime.c (__mktime_internal): Access *OFFSET only once,
14119         to avoid an unlikely race if the compiler delays a load and
14120         if this cascades into a signed integer overflow.
14122 2018-08-31  Paul Eggert  <eggert@cs.ucla.edu>
14124         mktime, timegm: simplify glibc time64_t
14125         * lib/mktime.c, lib/timegm.c (mktime_offset_t) [_LIBC]:
14126         Now long int, not time_t, since long int is the longstanding type
14127         for this in glibc and there is no need to change it even if time_t
14128         becomes 64 bits - even int would do, though this would be a change
14129         to the glibc generated code.  When this change is merged into
14130         glibc, it should simplify the time_t vs time64_t situation.
14132         mktime, timegm: simplify merge to glibc
14133         Move code around to make a merge to glibc easier to audit.
14134         This should not change behavior.
14135         * lib/mktime.c (NEED_MKTIME_INTERNAL, NEED_MKTIME_WINDOWS)
14136         (NEED_MKTIME_WORKING): Give default values to pacify -Wundef,
14137         which glibc uses.  Default NEED_MKTIME_WORKING to DEBUG_MKTIME, to
14138         simplify later conditionals; default the others to zero.  In uses
14139         of these conditionals, explicitly spell out how _LIBC affects
14140         things, so it’s easier to review from a glibc viewpoint.
14141         (my_tzset, __tzset) [!_LIBC]: New function and macro, to better
14142         compartmentalize tzset issues.  Move system-dependent tzsettish
14143         code here from mktime.
14144         (mktime): Move tzsettish code to my_tzset, and move
14145         localtime_offset to within mktime so that it doesn’t
14146         need a separate ifdef.
14148 2018-08-27  Paul Eggert  <eggert@cs.ucla.edu>
14150         intprops: avoid evaluation of some expressions
14151         This makes EXPR_SIGNED (e) easier to use, as it no longer
14152         evaluates the expression E.  Formerly, E was required to be free
14153         of side effects.
14154         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT)
14155         (EXPR_SIGNED, TYPE_WIDTH, _GL_INT_MINIMUM, _GL_INT_MAXIMUM)
14156         (_GL_SIGNED_INT_MAXIMUM): Do not evaluate the expression arg.
14158 2018-08-23  Bruno Haible  <bruno@clisp.org>
14160         getcwd: Add cross-compilation guesses.
14161         Reported by Sergio Durigan Junior <sergiodj@redhat.com> in
14162         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00130.html>.
14163         Based on a patch by Paul Eggert.
14164         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Add cross-compilation
14165         guesses for all GNU systems.
14167 2018-08-19  Bruno Haible  <bruno@clisp.org>
14169         glob-h: Formalize side effects from other modules.
14170         * m4/glob_h.m4 (gl_REPLACE_GLOB_H): New macro.
14171         * m4/glob.m4 (gl_GLOB): Invoke it.
14173         fnmatch-h: Formalize side effects from other modules.
14174         * m4/fnmatch_h.m4 (gl_REPLACE_FNMATCH_H): New macro.
14175         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Invoke it.
14177         limits-h: Formalize side effects from other modules.
14178         * m4/limits-h.m4 (gl_REPLACE_LIMITS_H): New macro.
14179         * m4/stdint.m4 (gl_STDINT_H): Invoke it.
14181 2018-08-19  Bruno Haible  <bruno@clisp.org>
14183         getpass: Move declaration to <unistd.h>.
14184         * lib/unistd.in.h (getpass): New declaration.
14185         * lib/getpass.h: Replace with a stub that just includes <unistd.h>.
14186         * m4/getpass.m4 (gl_FUNC_GETPASS): Declare through AC_DEFUN_ONCE.
14187         Require gl_UNISTD_H_DEFAULTS. Don't test whether getpass is declared.
14188         (gl_FUNC_GETPASS_GNU): Require gl_UNISTD_H_DEFAULTS and gl_FUNC_GETPASS.
14189         On glibc systems, don't set REPLACE_GETPASS to 1.
14190         * modules/getpass (Depends-on): Add 'unistd'.
14191         (configure.ac): Test also REPLACE_GETPASS. Define a module indicator.
14192         (Include): Specify <unistd.h> instead of "getpass.h".
14193         * modules/getpass-gnu (Depends-on): Merely depend on 'getpass'.
14194         (configure.ac): Sync with the configure.ac section of modules/getpass.
14195         (Include): Specify <unistd.h> instead of "getpass.h".
14196         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether getpass is declared.
14197         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPASS, HAVE_GETPASS,
14198         REPLACE_GETPASS.
14199         * modules/unistd (Makefile.am): Substitute GNULIB_GETPASS, HAVE_GETPASS,
14200         REPLACE_GETPASS.
14201         * tests/test-unistd-c++.cc: Test also the declaration of 'getpass'.
14202         * doc/glibc-functions/getpass.texi: A length limit exists also on uClibc
14203         and musl.
14204         * NEWS: Mention the change.
14206 2018-08-19  Bruno Haible  <bruno@clisp.org>
14208         glob: Fix over-optimization due to attribute __nonnull__.
14209         * lib/glob.c (_GL_ARG_NONNULL): Define to empty.
14211 2018-08-19  Bruno Haible  <bruno@clisp.org>
14213         glob: Fix another compilation error when glob.h is not replaced.
14214         Reported by Reuben Thomas <rrt@sc3d.org> in
14215         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00112.html>.
14216         * m4/glob.m4 (gl_GLOB): Set GLOB_H to non-empty when needed.
14217         * m4/glob_h.m4 (gl_GLOB_H): Define through AC_DEFUN_ONCE.
14219 2018-08-18  Bruno Haible  <bruno@clisp.org>
14221         fnmatch: Avoid conflicting macro definitions of 'fnmatch'.
14222         Reported by Reuben Thomas <rrt@sc3d.org> in
14223         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00108.html>.
14224         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Don't define 'fnmatch' as a macro
14225         in config.h.
14227 2018-08-18  Bruno Haible  <bruno@clisp.org>
14229         Avoid -Wcast-function-type warnings from casts after GetProcAddress.
14230         Reported by Andy Moreton <andrewjmoreton@gmail.com> in
14231         <https://lists.gnu.org/archive/html/emacs-devel/2018-08/msg00468.html>.
14232         Solution proposed by Eli Zaretskii.
14233         * lib/getaddrinfo.c (GetProcAddress): Cast result to 'void *' first.
14234         * lib/gettimeofday.c (GetProcAddress): Likewise.
14235         * lib/link.c (GetProcAddress): Likewise.
14236         * lib/physmem.c (GetProcAddress): Likewise.
14237         * lib/poll.c (GetProcAddress): Likewise.
14238         * lib/select.c (GetProcAddress): Likewise.
14239         * lib/stat-w32.c (GetProcAddress): Likewise.
14241 2018-08-18  Bruno Haible  <bruno@clisp.org>
14243         glob: Fix another compilation error when glob.h is not replaced.
14244         Reported and fix proposed by Reuben Thomas <rrt@sc3d.org> again.
14245         * lib/globfree.c: Include <libc-config.h>.
14247 2018-08-18  Bruno Haible  <bruno@clisp.org>
14249         glob: Fix compilation error when glob.h is not replaced.
14250         Reported and fix proposed by Reuben Thomas <rrt@sc3d.org> in
14251         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00096.html>.
14252         * lib/glob_pattern_p.c: Include <libc-config.h>.
14253         * modules/glob (Depends-on): Add libc-config.
14255 2018-08-18  Bruno Haible  <bruno@clisp.org>
14257         scratch_buffer: Add tests.
14258         * tests/test-scratch-buffer.c: New file.
14259         * modules/scratch_buffer-tests: New file.
14261 2018-08-18  Bruno Haible  <bruno@clisp.org>
14263         scratch_buffer: Fix include file.
14264         Reported by Reuben Thomas <rrt@sc3d.org> in
14265         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00082.html>.
14266         * lib/scratch_buffer.h: Include <libc-config.h> first. Add
14267         double-inclusion guard.
14269 2018-08-18  Bruno Haible  <bruno@clisp.org>
14271         glob-h: Revert Paul Eggert's revert.
14272         * m4/glob_h.m4: Revert to previous state.
14273         * modules/glob-h: Likewise.
14275 2018-08-18  Paul Eggert  <eggert@cs.ucla.edu>
14277         glob-h: always build glob.h
14278         This works around a problem reported by Reuben Thomas in:
14279         http://lists.gnu.org/r/bug-gnulib/2018-08/msg00079.html
14280         This workaround always builds glob.h, even on platforms that
14281         do not need it; perhaps this could be improved someday.
14282         * m4/glob_h.m4 (gl_GLOB_H): Do not set or use GLOB_H, since glob.h
14283         is always created now.
14284         * modules/glob-h (BUILT_SOURCES, glob.h): Always build glob.h.
14286 2018-08-13  Bruno Haible  <bruno@clisp.org>
14288         monetary: Simplify m4 code.
14289         * m4/monetary_h.m4 (gl_MONETARY_H): Define through AC_DEFUN_ONCE.
14290         (gl_MONETARY_H_BODY): Inline into gl_MONETARY_H. Remove macro.
14292 2018-08-13  Bruno Haible  <bruno@clisp.org>
14294         fnmatch, fnmatch-gnu: Fix compilation error on Mac OS X.
14295         Reported by Jeroen Meijer <jjgmeijer@gmail.com> in
14296         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00046.html>
14297         and by Paul J. Lucas <paul@lucasmail.org> in
14298         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00069.html>.
14299         * m4/fnmatch_h.m4 (gl_FNMATCH_H): Define through AC_DEFUN_ONCE.
14301 2018-08-11  Bruno Haible  <bruno@clisp.org>
14303         setlocale: Trivial simplification.
14304         * lib/setlocale.c (setlocale_unixlike): Remove redundant #if.
14306 2018-08-11  Paul Eggert  <eggert@cs.ucla.edu>
14308         verify: port 'assume' to traditional tools
14309         * lib/verify.h (assume): Port better to Oracle Studio 12.6
14310         and other tools that use /*NOTREACHED*/ comments.
14312 2018-08-10  Bruno Haible  <bruno@clisp.org>
14314         fnmatch-gnu: Fix compilation error in C++ namespace mode on Mac OS X.
14315         * modules/fnmatch-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
14316         * lib/fnmatch.in.h (fnmatch): Skip _GL_CXXALIASWARN if module
14317         'fnmatch-gnu' is in use.
14319 2018-08-07  Bruno Haible  <bruno@clisp.org>
14321         glob-h: Add tests.
14322         * tests/test-glob-h.c: New file, partially based on tests/test-glob.c.
14323         * tests/test-glob.c: Reorder #includes. Remove tests that are moved to
14324         tests/test-glob-h.c.
14325         * modules/glob-h-tests: New file.
14326         * tests/test-glob-h-c++.cc: Renamed from tests/test-glob-c++.cc. Add
14327         conditions.
14328         * modules/glob-h-c++-tests: Renamed from modules/glob-c++-tests.
14329         * modules/glob-tests (Depends-on): Remove glob-c++-tests.
14331 2018-08-07  Bruno Haible  <bruno@clisp.org>
14333         glob-h: New module.
14334         * lib/glob.in.h: Use nearly the usual gnulib idioms for header file
14335         replacements.
14336         * lib/glob.c: Include <config.h>.
14337         * m4/glob_h.m4: New file.
14338         * m4/glob.m4 (gl_GLOB): Require gl_GLOB_H. Remove code that is moved to
14339         glob_h.m4. Set HAVE_GLOB, REPLACE_GLOB, HAVE_GLOB_PATTERN_P,
14340         REPLACE_GLOB_PATTERN_P as appropriate.
14341         (gl_PREREQ_GLOB): Don't require AC_C_RESTRICT and
14342         AC_USE_SYSTEM_EXTENSIONS, now done through module 'glob-h'.
14343         * modules/glob-h: New file.
14344         * modules/glob (Files): Remove lib/glob.in.h, lib/glob-libc.h.
14345         (Dependencies): Add glob-h. Remove extensions, snippet/*, libc-config,
14346         lstat, sys_stat. Change conditions.
14347         (configure.ac): Test HAVE_GLOB, REPLACE_GLOB, HAVE_GLOB_PATTERN_P,
14348         REPLACE_GLOB_PATTERN_P. Set module indicator.
14349         (Makefile.am): Remove code that is moved to glob-h.
14350         * doc/posix-headers/glob.texi: Mention the 'glob-h' module.
14351         * modules/posixcheck (Depends-on): Add glob-h.
14353 2018-08-06  Bruno Haible  <bruno@clisp.org>
14355         Force generation of substitute .h file when C++ support is enabled.
14356         * m4/ansi-c++.m4 (gl_ANSI_CXX): New macro.
14357         * modules/ansi-c++-opt (configure.ac): Just require gl_ANSI_CXX.
14358         * m4/fnmatch_h.m4 (gl_FNMATCH_H): If C++ support is enabled, set
14359         FNMATCH_H to non-empty.
14360         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): If C++ support is enabled, set
14361         ICONV_H to non-empty.
14362         * m4/monetary_h.m4 (gl_MONETARY_H_BODY): If C++ support is enabled, set
14363         MONETARY_H to non-empty.
14364         * m4/utime_h.m4 (gl_UTIME_H): If C++ support is enabled, set UTIME_H to
14365         non-empty.
14367 2018-08-06  Bruno Haible  <bruno@clisp.org>
14369         fnmatch-h: Fix test compilation error on mingw (regression from today).
14370         * lib/fnmatch.in.h: Fix conditions.
14372 2018-08-06  Bruno Haible  <bruno@clisp.org>
14374         sys_resource: Relicense under LGPLv2+.
14375         John Malmberg's approval is in
14376         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00031.html>.
14377         * modules/sys_resource (License): Change to LGPLv2+.
14379 2018-08-06  Bruno Haible  <bruno@clisp.org>
14381         fnmatch-h: Add tests.
14382         * tests/test-fnmatch-h.c: New file.
14383         * modules/fnmatch-h-tests: New file.
14384         * tests/test-fnmatch-h-c++.cc: New file.
14385         * modules/fnmatch-h-c++-tests: New file.
14387 2018-08-06  Bruno Haible  <bruno@clisp.org>
14389         fnmatch-h: New module.
14390         * lib/fnmatch.in.h: Use the usual gnulib idioms for header file
14391         replacements.
14392         (FNM_*): Don't redefine if fnmatch exists and we are not overriding it.
14393         (fnmatch): Use the usual gnulib idiom for function declarations. Enable
14394         'posixcheck' warning.
14395         * m4/fnmatch_h.m4: New file.
14396         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Require gl_FNMATCH_H. Remove
14397         code that is moved to fnmatch_h.m4. When fnmatch does not exist, don't
14398         bother testing whether it is working. Set HAVE_FNMATCH, REPLACE_FNMATCH
14399         as appropriate.
14400         * modules/fnmatch-h: New file.
14401         * modules/fnmatch (Files): Remove lib/fnmatch.in.h.
14402         (Dependencies): Add fnmatch-h. Remove extensions, snippet/*. Change
14403         conditions.
14404         (configure.ac): Test HAVE_FNMATCH and REPLACE_FNMATCH. Set module
14405         indicator.
14406         (Makefile.am): Remove code that is moved to fnmatch-h.
14407         * modules/fnmatch-gnu (configure.ac): Test HAVE_FNMATCH and
14408         REPLACE_FNMATCH.
14409         * doc/posix-headers/fnmatch.texi: Mention the 'fnmatch-h' module.
14410         * modules/posixcheck (Depends-on): Add fnmatch-h.
14412 2018-08-06  Bruno Haible  <bruno@clisp.org>
14414         Enable more C++ tests.
14415         * modules/inttypes-tests (Depends-on): Add inttypes-c++-tests.
14416         * modules/monetary-tests (Depends-on): Add monetary-c++-tests.
14417         * modules/strings-tests (Depends-on): Add strings-c++-tests.
14418         * modules/sys_resource-tests (Depends-on): Add sys_resource-c++-tests.
14419         * modules/utime-h-tests (Depends-on): Add utime-h-c++-tests.
14421 2018-08-06  Bruno Haible  <bruno@clisp.org>
14423         getopt-posix, utime-h: Ensure the .h file gets regenerated when needed.
14424         * modules/getopt-posix (Makefile.am): Add Makefile dependency for
14425         getopt.h.
14426         * modules/utime-h (Makefile.am): Add Makefile dependency for utime.h.
14428 2018-08-05  Bruno Haible  <bruno@clisp.org>
14430         utime-h: Generate header file when module 'posixcheck' is in use.
14431         * m4/utime_h.m4 (gl_UTIME_H): If module 'posixcheck' is in use, set
14432         UTIME_H to non-empty.
14434 2018-08-05  Bruno Haible  <bruno@clisp.org>
14436         monetary: Generate header file when module 'posixcheck' is in use.
14437         * m4/monetary_h.m4 (gl_MONETARY_H_BODY): If module 'posixcheck' is in
14438         use, set MONETARY_H to non-empty.
14440 2018-08-05  Bruno Haible  <bruno@clisp.org>
14442         iconv-h: Generate header file when module 'posixcheck' is in use.
14443         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): If module 'posixcheck' is in use,
14444         set ICONV_H to non-empty.
14446 2018-08-05  Bruno Haible  <bruno@clisp.org>
14448         Optimize the "checking whether ... is declared without a macro" checks.
14449         Suggested by Paul Eggert in
14450         <https://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00339.html>.
14451         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Expand to nothing if the
14452         Gnulib module 'posixcheck' is not in use.
14454 2018-08-05  Bruno Haible  <bruno@clisp.org>
14456         iconv-h: Enable 'posixcheck' warnings.
14457         * m4/iconv_h.m4 (gl_ICONV_H): Check for declarations of iconv and
14458         iconv_open.
14459         * lib/iconv.in.h (iconv_open, iconv): Use _GL_WARN_ON_USE.
14461 2018-08-05  Bruno Haible  <bruno@clisp.org>
14463         Fix link error regarding 'rpl_environ' (regression from 2012-11-21).
14464         * m4/extern-inline.m4: Add more comments.
14465         * lib/warn-on-use.h (_GL_WARN_ON_USE_ATTRIBUTE): New macro.
14466         * lib/unistd.in.h (rpl_environ): Use it instead of _GL_WARN_ON_USE.
14467         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL): Likewise.
14469 2018-08-04  Bruno Haible  <bruno@clisp.org>
14471         New module 'posixcheck'.
14472         * modules/posixcheck: New file.
14473         * m4/posixcheck.m4: New file.
14474         * doc/gnulib-tool.texi (Finding POSIX substitutes): New section.
14475         (Which modules?): Reference it.
14477 2018-08-01  Assaf Gordon  <assafgordon@gmail.com>
14479         dfa: fix memory leak
14480         * lib/dfa.c (dfafree): Add missing free() on dfa->superset.
14482 2018-08-01  Paul Eggert  <eggert@cs.ucla.edu>
14484         ieee754-h: new module
14485         It looks like Emacs can use this for some NaN processing.
14486         Emacs uses it only on double NaNs so it should be safe.
14487         * MODULES.html.sh (func_all_modules): Add ieee754-h.
14488         * config/srclist.txt: Mention ieee754.h in a comment.
14489         * doc/glibc-headers/ieee754.texi (ieee754.h):
14490         Gnulib now has a substitute that should work
14491         except for long double and for non-IEEE platforms.
14492         * lib/ieee754.in.h, m4/ieee754-h.m4, modules/ieee754-h:
14493         * modules/ieee754-h-tests, tests/test-ieee754-h.c: New files.
14495 2018-07-27  Bruno Haible  <bruno@clisp.org>
14497         iswcntrl: Mention minor problem on macOS.
14498         * doc/posix-functions/iswcntrl.texi: Mention oddity on macOS.
14500 2018-07-26  Colin Watson  <cjwatson@debian.org>
14502         bootstrap, gnulib-tool: fix translations rsync
14503         Previously, we created files such as $pobase/Makefile.in.in and then the
14504         subsequent rsync would immediately delete them.
14505         * build-aux/bootstrap (po_download_command_format): Avoid deleting
14506         non-.po files in target directory when rsyncing translations.
14507         * gnulib-tool (func_import): Likewise.
14508         * pygnulib/GLImport.py (GLImport.execute): Likewise.
14510 2018-07-25  Jim Meyering  <meyering@fb.com>
14512         bootstrap: reinstate definition fo gnulib_mk.
14513         That variable is used at least by cppi.
14514         * build-aux/bootstrap (gnulib_mk): Restore definition.
14515         This reverts the deletion from v0.1-1844-gc66dba9ba.
14517 2018-07-23  Bruno Haible  <bruno@clisp.org>
14519         doc: For module names, use texinfo markup @code{} or @samp{}.
14520         * doc/alloca.texi: Mark gnulib module names with @code.
14521         * doc/alloca-opt.texi: Likewise.
14522         * doc/quote.texi: Likewise.
14523         * doc/posix-functions/freopen.texi: Likewise.
14524         * doc/posix-functions/open.texi: Likewise.
14525         * doc/posix-functions/readlink.texi: Likewise.
14526         * doc/posix-functions/readlinkat.texi: Likewise.
14527         * doc/posix-functions/stdout.texi: Likewise.
14528         * doc/posix-functions/stderr.texi: Likewise.
14529         * doc/posix-functions/unlink.texi: Likewise.
14530         * doc/posix-functions/unlinkat.texi: Likewise.
14531         * doc/posix-functions/utime.texi: Likewise.
14532         * doc/posix-functions/utimensat.texi: Likewise.
14533         * doc/posix-functions/utimes.texi: Likewise.
14534         * doc/posix-headers/stdint.texi: Likewise.
14535         * doc/glibc-functions/futimesat.texi: Likewise.
14536         * doc/glibc-functions/lutimes.texi: Likewise.
14537         * doc/glibc-functions/memmem.texi: Likewise.
14539 2018-07-23  Werner LEMBERG  <wl@gnu.org>
14541         doc: Avoid some overfull lines in the TeX output.
14542         * doc/glibc-functions/futimesat.texi: Replace a long @code with a
14543         @example.
14544         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Insert a
14545         newline before the long URL.
14546         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Likewise.
14547         * doc/relocatable-maint.texi: Use @smallexample instead of @example.
14548         Add line breaks in code snippets.
14550 2018-07-17  Paul Eggert  <eggert@cs.ucla.edu>
14552         hard-locale: simplify by removing hard-locale.m4
14553         * m4/hard-locale.m4: Remove.
14554         * modules/hard-locale (Files): Remove m4/hard-locale.m4.
14555         (configure.ac): Do not call gl_HARD_LOCALE.
14557         gnulib-tool: limit line length for git send-email
14558         * gnulib-tool (func_import): Break actioncmd log line
14559         into multiple lines.
14561 2018-07-16  Bruno Haible  <bruno@clisp.org>
14563         ffs: Ensure declaration on mingw.
14564         Reported by Daniel P. Berrangé <berrange@redhat.com>
14565         in https://lists.gnu.org/archive/html/bug-gnulib/2018-07/msg00061.html.
14566         * m4/ffs.m4 (gl_FUNC_FFS): Check whether ffs() not only exists but is
14567         also declared.
14569 2018-07-13  Paul Eggert  <eggert@cs.ucla.edu>
14571         regex-tests: add dependency
14572         * modules/regex-tests (Depends-on): Add gettext-h.
14573         This is needed given the recent changes to regex,
14574         which no longer depends on gettext-h.
14576 2018-07-06  Paul Eggert  <eggert@cs.ucla.edu>
14578         regex: now in sync with glibc
14579         * config/srclist.txt: Gnulib and glibc regex code
14580         are synchronized again.
14582 2018-07-05  Paul Eggert  <eggert@cs.ucla.edu>
14584         renameatu: rename from renameat2
14585         It's looking like Glibc will add a renameat2 function
14586         that is incompatible with Gnulib renameat2; see:
14587         https://sourceware.org/ml/libc-alpha/2018-07/msg00064.html
14588         To help avoid future confusion, rename renameat2 to something else.
14589         Use the name 'renameatu', as the Gnulib function is close to the
14590         Glibc function.  Perhaps someday there will also be a renameat2
14591         Gnulib module, which mimicks the future glibc renameat2, but that
14592         can wait as nobody seems to need such a module now.
14593         * NEWS: Mention this.
14594         * lib/renameatu.c: Rename from lib/renameat2.c.
14595         * lib/renameatu.h: Rename from lib/renameat2.h.
14596         * modules/renameatu: Rename from modules/renameat2.
14597         * modules/renameatu-tests: Rename from modules/renameat2-tests.
14598         All uses of "renameat2" in identifiers or file name
14599         changed to "renameatu", except for two instances in
14600         lib/renameatu.c that deal with the Linux kernel's
14601         renameat2 syscall.
14603 2018-07-04  Paul Eggert  <eggert@cs.ucla.edu>
14605         gnulib-tool: minor tweaks for --gnu-make
14606         * gnulib-tool: Do not allow --gnu-make in test modes,
14607         since they all require automake.
14608         (func_emit_lib_Makefile_am): Don’t emit automake comment
14609         if --gnu-make.
14611         regex: work around conditional-dependencies glitch
14612         * modules/regex (Depends-on): Add langinfo.
14613         Without this change, I had problems building an experimental
14614         version of GNU Emacs.  The symptom of the bug was a message
14615         ‘./configure: line 12726: test: =: unary operator expected’.
14616         This was due to a line in gl_FUNC_NL_LANGINFO that invokes
14617         ‘test $HAVE_LANGINFO_CODESET = 1’ even though HAVE_LANGINFO_CODESET
14618         was unset.  Although gl_FUNC_NL_LANGINFO has
14619         ‘AC_REQUIRE([gl_LANGINFO_H])’ and gl_LANGINFO_H always sets
14620         HAVE_LANGINFO_CODESET to 0 or 1, gnulib-tool with
14621         --conditional-dependencies sometimes arranges for the
14622         gl_FUNC_NL_LANGINFO code to be executed before the gl_LANGINFO_H
14623         code.  Since the regex code includes <langinfo.h> it should be
14624         depending on the langinfo module anyway, and this happens to work
14625         around the bug, so install that as a workaround for now.  To
14626         reproduce the original problem, run the following shell script on
14627         the version of Gnulib just before this patch was installed.
14628                 rm -fr foo
14629                 mkdir foo
14630                 cat >foo/configure.ac <<'EOF'
14631                 AC_INIT(GNU Emacs, 27.0.50, bug-gnu-emacs@gnu.org, , https://www.gnu.org/software/emacs/)
14632                 gl_EARLY
14633                 gl_INIT
14634                 AC_OUTPUT
14635                 EOF
14636                 ./gnulib-tool --import --conditional-dependencies --gnu-make --dir foo regex
14637                 ./gnulib-tool --copy build-aux/install-sh foo/install-sh
14638                 ./gnulib-tool --copy build-aux/config.sub foo/config.sub
14639                 ./gnulib-tool --copy build-aux/config.guess foo/config.guess
14640                 cd foo
14641                 aclocal -I m4
14642                 autoconf
14643                 ./configure --with-included-regex
14645 2018-07-01  Paul Eggert  <eggert@cs.ucla.edu>
14647         wchar: fix bug when checking for ‘inline’
14648         I discovered this when looking into using the regex module
14649         with Emacs.
14650         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Fix bug introduced in
14651         2016-08-17T23:09:38Z!skunk@iSKUNK.ORG; the code compiled
14652         conftest1.c and conftest2.c but these files were not created.
14653         As far as I can see, this check never worked and nobody reported
14654         it until now, which is a bit worrisome.
14656 2018-06-30  Jim Meyering  <meyering@fb.com>
14658         bootstrap: s/--option val/--option=val/
14659         * build-aux/bootstrap (gnulib_tool_options): Change the
14660         spelling of "--option val" pairs to "--option=val", for
14661         aesthetics, and also so that this file no longer triggers
14662         a common help2man syntax-check warning when copied into
14663         projects like grep, gzip, etc.
14665 2018-07-01  Paul Eggert  <eggert@cs.ucla.edu>
14667         manywarnings: omit -Wswitch-default
14668         This should make things more consistent, as we already ignore
14669         -Wswitch-enum.  Problem reported by Reuben Thomas; see:
14670         https://lists.gnu.org/r/bug-gnulib/2018-05/msg00179.html
14671         * build-aux/g++-warning.spec, build-aux/gcc-warning.spec:
14672         Add -Wswitch-default.
14673         * m4/manywarnings-c++.m4 (gl_MANYWARN_ALL_GCC_CXX_IMPL):
14674         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
14675         Remove -Wswitch-default.
14677         regex: revert most trimming
14678         Problems reported by Bruno Haible in:
14679         https://lists.gnu.org/r/bug-gnulib/2018-07/msg00001.html
14680         * modules/regex (Depends-on): Add lock, memcmp, memmove,
14681         and wctype back in.  lock because regex users shouldn’t
14682         need to know that regex needs locking, and the rest because
14683         gnulib-tool should ordinarily ignore them anyway.
14685 2018-06-30  Paul Eggert  <eggert@cs.ucla.edu>
14687         regex: trim module dependencies
14688         * modules/regex (Depends-on): Remove gettext-h and lock,
14689         since the regex code should work OK without these modules,
14690         and Emacs uses it that way.  Also remove memcmp, memmove,
14691         and wctype, as these modules are obsolete and should not be
14692         needed any more.
14694 2018-06-29  Paul Eggert  <eggert@cs.ucla.edu>
14696         regex: glibc does not use intprops.h
14697         Maybe we can talk glibc into using intprops.h someday, but
14698         now doesn’t seem to be a good time.
14699         * lib/regcomp.c (TYPE_SIGNED): Remove; regex_internal.h now defines.
14700         * lib/regex_internal.h [_LIBC]: Do not include intprops.h.
14701         (TYPE_SIGNED, INT_ADD_WRAPV): New macros.
14703 2018-06-28  Paul Eggert  <eggert@cs.ucla.edu>
14705         regex: port to recently proposed glibc regex merge
14706         This patch is inspired by Adhemerval Zanella's recent proposal
14707         https://www.sourceware.org/ml/libc-alpha/2018-06/msg00905.html
14708         to merge glibc and Gnulib regex.  It aims to simplify the merge on
14709         the glibc side, without keeping Gnulib portable.
14710         * lib/regex.h: Fix a problem with glibc installed-header checking,
14711         as follows:
14712         (_Restrict_): Prefer __restrict if defined or if GCC 2.95 or later.
14713         (_Restrict_arr_): Prefer __restrict_arr if defined,
14714         otherwise prefer _Restrict_ if C99 or GCC 3.1 or later (but not C++).
14715         * lib/regex_internal.c (re_string_realloc_buffers, build_wcs_buffer)
14716         (build_wcs_upper_buffer, build_upper_buffer)
14717         (re_string_translate_buffer, re_string_context_at):
14718         Move decls here from lib/regex_internal.h, for glibc internal tests.
14719         (build_wcs_upper_buffer): Use __wcrtomb, not wcrtomb, fixing
14720         glibc BZ #18496.
14721         * lib/regex_internal.h (lock_fini) [_LIBC]: Cast to 0 to pacify
14722         -Wunused-value.
14723         (bitset_set, bitset_clear, bitset_contain, bitset_empty)
14724         (bitset_set_all, bitset_copy, bitset_not, bitset_merge)
14725         (bitset_mask): Now static inline, and without any __attribute__
14726         ((unused)) decoration, for glibc internal tests.
14728 2018-06-25  Bruno Haible  <bruno@clisp.org>
14730         threadlib: Fix LIBMULTITHREAD on platforms where --as-needed is enabled.
14731         Reported by Erik Auerswald <auerswal@unix-ag.uni-kl.de>
14732         in <https://lists.gnu.org/archive/html/coreutils/2018-06/msg00063.html>.
14733         * m4/threadlib.m4 (gl_THREADLIB_BODY): Check whether the linker supports
14734         --as-needed/--no-as-needed and --push-state/--pop-state. When defining
14735         USE_POSIX_THREADS_WEAK or USE_SOLARIS_THREADS_WEAK or
14736         USE_PTH_THREADS_WEAK, define LIBMULTITHREAD in such a way that -lpthread
14737         / -lthread / -lpth does not get optimized away by a preceding
14738         --as-needed option.
14740 2018-06-25  Bruno Haible  <bruno@clisp.org>
14742         Continue to use spaces for indentation, not tabs.
14743         * MODULES.html.sh: Untabify.
14744         * doc/regex.texi: Likewise.
14745         * lib/acl-internal.c: Likewise.
14746         * lib/dfa.c: Likewise.
14747         * lib/exclude.c: Likewise.
14748         * lib/exclude.h: Likewise.
14749         * lib/get-permissions.c: Likewise.
14750         * lib/gettimeofday.c: Likewise.
14751         * lib/parse-datetime.y: Likewise.
14752         * lib/pselect.c: Likewise.
14753         * lib/set-permissions.c: Likewise.
14754         * lib/time.in.h: Likewise.
14755         * m4/canonicalize.m4: Likewise.
14756         * m4/gc.m4: Likewise.
14757         * m4/gnulib-common.m4: Likewise.
14758         * m4/pthread_sigmask.m4: Likewise.
14759         * m4/vararrays.m4: Likewise.
14760         * tests/test-digest.h: Likewise.
14761         * tests/test-fcntl-h.c: Likewise.
14762         * tests/test-timespec.c: Likewise.
14763         * tests/uniwbrk/test-uc-wordbreaks.c: Likewise.
14765 2018-06-25  Bruno Haible  <bruno@clisp.org>
14767         manywarnings: Don't enable -Wjump-misses-init warnings by default.
14768         * build-aux/gcc-warning.spec: Add -Wjump-misses-init.
14769         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C)): Remove
14770         -Wjump-misses-init.
14772 2018-06-25  Jim Meyering  <meyering@fb.com>
14774         acl-internal.h: remove _GL_ATTRIBUTE_CONST on void function
14775         * lib/acl-internal.h (free_permission_context): Remove that
14776         attribute directive.  Otherwise, it would provoke this from GCC 9:
14777         lib/acl-internal.h:300:3: error: 'const' attribute on function \
14778           returning 'void' [-Werror=attributes]
14780 2018-06-24  Jim Meyering  <meyering@fb.com>
14782         parse-datetime: accommodate gcc-4.8.5
14783         Bruno Haible reported the build failure in
14784         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00066.html
14785         * lib/parse-datetime.y (parse_datetime2): Remove leading "static"
14786         on declaration of new local.
14788 2018-06-24  Bruno Haible  <bruno@clisp.org>
14790         af_alg: Fail in continuable manner on Linux/powerpc64le.
14791         Reported by Assaf Gordon <assafgordon@gmail.com>
14792         in <https://lists.gnu.org/archive/html/coreutils/2018-06/msg00034.html>.
14793         * lib/af_alg.c (afalg_stream): On non-seekable streams, try a single-
14794         byte send() as the first round.
14796 2018-06-24  Bruno Haible  <bruno@clisp.org>
14798         af_alg: Fix state of stream after sendfile() succeeds.
14799         * lib/af_alg.c (afalg_stream): Invoke fflush and lseek, to ensure that
14800         the stream is correctly positioned afterwards.
14801         * modules/crypto/af_alg (Depends-on): Add fflush.
14802         * tests/test-digest.h (test_digest_on_files): Verify that after the
14803         operation the stream is positioned at end of file.
14805 2018-06-24  Jim Meyering  <meyering@fb.com>
14807         canon-host: take GCC9's advice rather than ignoring warning
14808         Pádraig Brady suggested not to ignore this GCC9 advice.
14809         * lib/canon-host.c: Undo preceding change.
14810         * lib/canon-host.h: Instead, declare with _GL_ATTRIBUTE_MALLOC.
14812         parse-datetime.y: avoid spurious GCC 9 warning
14813         * lib/parse-datetime.y (parse_datetime2): Save RELATIVE_TIME_0 into
14814         a function local prior to the first "goto fail".  The prior use would
14815         evoke this:
14816         parse-datetime.y: In function 'parse_datetime2':
14817         parse-datetime.y:1791:19: error: jump skips variable initialization \
14818           [-Werror=jump-misses-init]
14819         parse-datetime.y:2385:2: note: label 'fail' defined here
14820         parse-datetime.y:188:43: note: '({anonymous})' declared here
14821         parse-datetime.y:1841:12: note: in expansion of macro 'RELATIVE_TIME_0'
14823         canon-host.c: avoid spurious GCC 9 warning
14824         * lib/canon-host.c: Suppress GCC9's -Wsuggest-attribute=malloc.
14826         manywarnings: accommodate GCC 9.0-pre: remove -Wchkp and -Wabi
14827         * build-aux/gcc-warning.spec: Add them here, each with an explanation.
14828         * m4/manywarnings.m4: Remove them.
14829         Otherwise, building coreutils, I would see this:
14830         cc1: error: deprecated command line option '-Wchkp' [-Werror]
14831         cc1: error: -Wabi won't warn about anything [-Werror=abi]
14832         cc1: note: -Wabi warns about differences from the most up-to-date ABI,\
14833           which is also used by default
14834         cc1: note: use e.g. -Wabi=11 to warn about changes from GCC 7
14836 2018-06-24  Bruno Haible  <bruno@clisp.org>
14838         af_alg tests: Add another test.
14839         * tests/test-digest.h (test_digest_on_files): Also check a large file
14840         with a skipped header.
14841         * tests/test-md5.c: Include macros.h.
14842         * tests/test-sha1.c: Likewise.
14843         * tests/test-sha256.c: Likewise.
14844         * tests/test-sha512.c: Likewise.
14845         * modules/crypto/md5-tests (Files): Add tests/macros.h.
14846         * modules/crypto/sha1-tests (Files): Likewise.
14847         * modules/crypto/sha256-tests (Files): Likewise.
14848         * modules/crypto/sha512-tests (Files): Likewise.
14850 2018-06-24  Pádraig Brady  <P@draigBrady.com>
14852         maint: clarify comments about sticky EOF
14853         * lib/af_alg.c: Be more direct that we can't
14854         assume stickiness of EOF for portability reasons.
14855         * lib/md5.c: Clarify that this isn't just a glibc issue.
14856         * lib/sha1.c: Likewise.
14857         * lib/sha256.c: Likewise.
14858         * lib/sha512.c: Likewise.
14860 2018-06-24  Bruno Haible  <bruno@clisp.org>
14862         af_alg: Comment and style improvements.
14863         * lib/af_alg.c (alg_socket): Use 'size_t' as index into a string.
14864         (afalg_buffer, afalg_stream): Improve comments.
14866 2018-06-24  Pádraig Brady  <P@draigBrady.com>
14868         af_alg: disable kernel hash functions by default
14869         All the kernel routines were seen to be significantly slower
14870         with these relatively recent components on an i3-2310M system:
14871           kernel-4.10.6-200.fc25.x86_64
14872           openssl-1.0.2m-1.fc25.x86_64
14873         sha1 was nearly twice as slow in the kernel for example.
14874         Further considerations why this should not be the default, at:
14875         https://lists.gnu.org/r/coreutils/2018-06/msg00034.html
14877         * m4/af_alg.m4: Require --with-linux-crypto to enable.
14878         * m4/gl-openssl.m4: Tweak accordingly.
14880 2018-06-24  Pádraig Brady  <P@draigBrady.com>
14882         af_alg: avoid hangs when reading from streams
14883         * lib/af_alg.c (afalg_stream): Don't assume EOF is sticky,
14884         and thus avoid doing a fread() when feof() is set.
14885         * lib/md5.c: Ensure feof() is called before fread().
14886         * lib/sha1.c: Likewise.
14887         * lib/sha256.c: Likewise.
14888         * lib/sha512.c: Likewise.
14890 2018-06-24  Pádraig Brady  <P@draigBrady.com>
14892         af_alg: fix error handling when hash not returned
14893         * lib/af_alg.c (afalg_stream): Handle the case where we've
14894         successfully written data to the kernel in the read/write loop,
14895         but the kernel doesn't respond with the hash.
14897 2018-06-24  Paul Eggert  <eggert@cs.ucla.edu>
14899         libc-config: merge from glibc
14900         * lib/cdefs.h (__inline, __restrict):
14901         Copy from current glibc.  This fixes glibc bug 17721,
14902         which Gnulib had already fixed in a different way.
14903         (__nonnull): Lessen the distance from glibc by using the
14904         glibc definition inside an ‘#ifndef __nonnull’.
14905         (__attribute_nonstring__): New macro, copied from
14906         current glibc.
14907         * lib/libc-config.h (__attribute_nonstring__): New undef.
14908         (__restrict): Remove; workaround no longer needed.
14909         Keep the __inline workaround, though, as it uses HAVE___INLINE to
14910         support more compilers than the glibc __inline can.
14912 2018-06-24  Bruno Haible  <bruno@clisp.org>
14914         mbrtowc, wcwidth: Fix MT-safety bug (regression from 2018-06-23).
14915         * lib/mbrtowc.c (enc_t): New enum type.
14916         (locale_enc, locale_enc_cached): New functions.
14917         (mbrtowc): Eliminate static variables. Use locale_enc_cached instead.
14918         * lib/wcwidth.c (is_locale_utf8, is_locale_utf8_cached): New functions.
14919         (wcwidth): Eliminate static variables. Use is_locale_utf8_cached
14920         instead.
14921         * m4/mbrtowc.m4 (gl_PREREQ_MBRTOWC): Require AC_C_INLINE.
14922         * m4/wcwidth.m4 (gl_PREREQ_WCWIDTH): New macro.
14923         * modules/wcwidth (configure.ac): Invoke it.
14925 2018-06-24  Bruno Haible  <bruno@clisp.org>
14927         wchar-single: Fix test failure in wcwidth tests.
14928         * tests/test-wcwidth.c (main): If the wchar-single module is present,
14929         skip the tests in the C locale.
14931 2018-06-23  Pádraig Brady  <P@draigBrady.com>
14933         crypto: mention --without-linux-crypto in --with-openssl --help
14934         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Mention that linux crypto
14935         routines take precedence in --with-openssl help output.
14937 2018-06-23  Pádraig Brady  <P@draigBrady.com>
14939         wchar-single: a new module to enable optimizations in wchar replacements
14940         * lib/mbrtowc.c (mbrtowc): Only check locale_charset() once if
14941         GNULIB_WCHAR_SINGLE is enabled.
14942         * lib/wcwidth.c (wcwidth): Likewise.
14944 2018-06-23  Bruno Haible  <bruno@clisp.org>
14946         libc-config: Fix conflict with FreeBSD include files.
14947         * lib/cdefs.h (__nonnull): Remove definition.
14948         * lib/libc-config.h (__nonnull): Remove undefinition.
14950 2018-06-21  Paul Eggert  <eggert@cs.ucla.edu>
14952         random_r: do not crash if state is unaligned
14953         Problem reported by Bruce Korb in:
14954         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00030.html
14955         I reproduced the crash on 32-bit sparc with Oracle Studio 12.6
14956         with 'cc -O2 -xmemalign=8s'.
14957         * lib/random_r.c: Include string.h, for memcpy.
14958         (get_int32, set_int32): New functions.
14959         (__srandom_r, __initstate_r, __setstate_r, __random_r):
14960         Use them to avoid assumption that state pointer is aligned.
14961         (__random_r): Avoid integer overflow if INT_MAX == UINT32_MAX.
14962         * tests/test-random_r.c (test_failed): New function.
14963         (main): Use it, to test for alignment bugs.
14965         random_r: omit unnecessary include
14966         * lib/random_r.c: Do not include limits.h.
14968         random, random_r: merge from glibc
14969         * lib/random.c, lib/random_r.c:
14970         Include libc-config.h if !_LIBC, not config.h unilaterally.
14971         * lib/random.c:
14972         Do not include stdint.h or time.h; not needed.
14973         Include libc-lock.h if _LIBC, and define substitute macros otherwise.
14974         (unsafe_state): Rename from generator.  All uses changed.
14975         Use C99-style initializers.
14976         (__random, __srandom, __initstate, __setstate): Rename from
14977         non-underscored version, but define it to non-underscored version
14978         on Gnulib.  Add a lock.
14979         * lib/random_r.c (__srandom_r, __initstate_r, __setstate_r, __random_r):
14980         Likewise.
14981         Do not include <stdint.h>; not needed since stdlib.h defines int32_t.
14982         (weak_alias, __set_errno) [!_LIBC]: Remove; now done by libc-config.
14983         (__srandom_r): Use int32_t instead of long int where int32_t will do.
14984         (__random_r): Use uint32 to fix glibc bug 17343.
14985         * modules/random, modules/random_r (Depends-on): Add libc-config.
14986         Depend on stdint only if $HAVE_RANDOM = 0.
14988 2018-06-19  Jim Meyering  <meyering@fb.com>
14990         README-release: also run any check-very-expensive tests
14991         * top/README-release: Adjust instructions so they run the
14992         check-very-expensive tests when there is such a target.
14994 2018-06-18  Bruno Haible  <bruno@clisp.org>
14996         pthread_rwlock_rdlock: Add comments regarding glibc behaviour.
14997         * m4/pthread_rwlock_rdlock.m4: Add comment.
14998         * doc/posix-functions/pthread_rwlock_rdlock.texi: Mention that rwlocks
14999         are reader-preferring in glibc.
15000         * doc/posix-functions/pthread_rwlock_tryrdlock.texi: Likwise.
15001         * doc/posix-functions/pthread_rwlock_timedrdlock.texi: Likewise.
15003 2018-06-17  Paul Eggert  <eggert@cs.ucla.edu>
15005         crypto: use byteswap
15006         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
15007         * lib/sm3.c: Include <byteswap.h>.
15008         (SWAP): Use its macros rather than reinventing the wheel.
15009         * modules/crypto/md4, modules/crypto/md5-buffer:
15010         * modules/crypto/sha1-buffer, modules/crypto/sha256-buffer:
15011         * modules/crypto/sha512-buffer, modules/crypto/sm3:
15012         (Depends-on): Add byteswap.
15014 2018-06-17  Pádraig Brady  <P@draigBrady.com>
15016         gendocs.sh: fix support for legacy --texi2html
15017         * build-aux/gendocs.sh: Restrict use of TOP_NODE_UP_URL
15018         to the default makeinfo invocation.
15019         Reported by Bruce Korb
15021 2018-06-17  Bruno Haible  <bruno@clisp.org>
15023         gettext po infrastructure: Update from current gettext git.
15024         Reported by Akim Demaille <akim@lrde.epita.fr>.
15025         * build-aux/po/Makefile.in.in: Update from current gettext git.
15026         * build-aux/po/remove-potcdate.sin: Likewise.
15027         * config/srclist.txt: Temporarily disable sync for these files.
15029 2018-06-17  Bruno Haible  <bruno@clisp.org>
15031         getloadavg: Return 0 on Windows without Cygwin.
15032         * lib/getloadavg.c: Don't assume that the symbol WINDOWS32 is defined.
15034 2018-06-17  Paul Smith  <psmith@gnu.org>
15036         getloadavg: Allow building on Windows without Cygwin
15037         * lib/getloadavg.c: Reinstate ifdef for HAVE_UNISTD_H.
15038         * m4/getloadavg.m4: Check for unistd.h.
15040 2018-06-03  Paul Eggert  <eggert@cs.ucla.edu>
15042         Port crypto/af_alg to GCC 4.8.4
15043         Problem reported by Peter Simons in:
15044         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00002.html
15045         * modules/crypto/af_alg (Depends-on): Add c99 if USE_AF_ALG.
15047 2018-05-27  Colin Watson  <cjwatson@debian.org>
15049         bootstrap: document source fetching in --help
15050         * build-aux/bootstrap (usage): Document how Gnulib sources are fetched.
15052 2018-04-09  Colin Watson  <cjwatson@debian.org>
15054         bootstrap: allow non-submodule control of gnulib
15055         * build-aux/bootstrap: Honour GNULIB_URL and GNULIB_REVISION in
15056         bootstrap.conf when fetching gnulib using "git clone" or via
15057         GNULIB_SRCDIR.
15059 2018-05-21  Paul Eggert  <eggert@cs.ucla.edu>
15061         crypto: omit stream ops Emacs doesn’t need
15062         * lib/md5.c (md5_stream):
15063         * lib/sha1.c (sha1_stream):
15064         * lib/sha256.c (shaxxx_stream, sha256_stream, sha224_stream):
15065         * lib/sha512.c (shaxxx_stream, sha512_stream, sha384_stream):
15066         Compile stream functions only if GL_COMPILE_CRYPTO_STREAM is
15067         defined.  Emacs needs this, as it does not use the stream
15068         operations and doesn’t need all the af_alg stuff we’ve recently
15069         added.  Perhaps a similar change is needed to the other crypto
15070         modules, but this patch changes only those needed for Emacs.
15071         * modules/crypto/md5-buffer, modules/crypto/sha1-buffer:
15072         * modules/crypto/sha256-buffer, modules/crypto/sha512-buffer:
15073         New modules, used by Emacs.
15074         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
15075         * modules/crypto/sha512: Rewrite to depend on the new modules.
15077 2018-05-20  Pádraig Brady  <P@draigBrady.com>
15079         fts: avoid a memory leak edge case
15080         * lib/fts.c (fts_open): Set an appropriate fts_level
15081         so that an immediate fts_close() will free the allocation.
15082         * tests/test-fts.c (fts_dealloc): Add a test case which
15083         will trigger under valgrind or address sanitizer.
15084         Fixes https://bugs.gnu.org/31439
15086 2018-05-20  Bruno Haible  <bruno@clisp.org>
15088         wcwidth tests: Fix link error.
15089         * modules/wcwidth-tests (Makefile.am): Link test-wcwidth against
15090         $(LIBUNISTRING).
15092 2018-05-20  Bruno Haible  <bruno@clisp.org>
15094         regex: Fix "error: possibly undefined macro: gl_GLIBC21".
15095         * modules/regex (Files): Add m4/glibc21.m4.
15097 2018-05-20  Bruno Haible  <bruno@clisp.org>
15099         localcharset: Optimize.
15100         * lib/localcharset.c (alias_table): Comment out no-op mappings for
15101         platforms where these don't matter. This reduces the table size,
15102         which in turn reduces the lookup time.
15104 2018-05-19  Bruno Haible  <bruno@clisp.org>
15106         localcharset: Map the locale encodings found in newer OSes.
15107         * lib/localcharset.c (alias_table): Add mapping for locale encodings
15108         found in FreeBSD 11, NetBSD 7, Solaris 10, Openindiana, HP-UX 11.31,
15109         IRIX 6.5, Minix 3.3.
15110         * lib/localcharset.h: Update comments accordingly. Also for Cygwin 2.9.
15112 2018-05-19  Bruno Haible  <bruno@clisp.org>
15114         localcharset: Move mapping tables into the code. Use a binary search.
15115         * lib/localcharset.h: Document the GNU canonical names for character
15116         encodings here.
15117         * lib/localcharset.c: Don't include <fcntl.h>, <unistd.h>,
15118         relocatable.h, configmake.h.
15119         (O_NOFOLLOW, ISSLASH, DIRECTORY_SEPARATOR, getc, volatile): Remove
15120         macros.
15121         (charset_aliases): Remove variable.
15122         (get_charset_aliases): Remove function.
15123         (struct table_entry): New type.
15124         (alias_table, locale_table): New constants.
15125         (locale_charset): Use the alias_table or locale_table to get the
15126         canonicalized encoding name.
15127         * lib/config.charset: Remove file.
15128         * lib/ref-add.sin: Remove file.
15129         * lib/ref-del.sin: Remove file.
15130         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't require gl_FCNTL_O_FLAGS,
15131         AC_CANONICAL_HOST, gl_GLIBC21. Don't check for getc_unlocked.
15132         * modules/localcharset (Notice): Remove.
15133         (Files): Remove config.charset, ref-add.sin, ref-del.sin, fcntl-o.m4,
15134         glibc21.m4.
15135         (Depends-on): Remove configmake.
15136         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT to empty.
15137         (Makefile.am): Simplify.
15138         * build-aux/prefix-gnulib-mk: Remove special code for the removed files.
15140 2018-05-19  Bruno Haible  <bruno@clisp.org>
15142         localcharset: Add a manual test.
15143         * tests/test-localcharset.c: New file.
15144         * modules/localcharset-tests: New file.
15146 2018-05-19  Bruno Haible  <bruno@clisp.org>
15148         localcharset: Remove support for obsolete platforms.
15149         * lib/config.charset: Remove support for Linux/libc5, glibc-2.0.x, and
15150         Mac OS X 10.2. Comment out dubious entry for Solaris.
15152 2018-05-19  Jim Meyering  <meyering@fb.com>
15154         gnupload: adjust comment
15155         * build-aux/gnupload: Add FIXME-2020 comment, to make it slightly
15156         more likely we'll remove the just-added code in a year or two.
15158 2018-05-19  Bruno Haible  <bruno@clisp.org>
15160         gnupload: Fix "gpg-agent is not available in this session" error.
15161         * build-aux/gnupload (GPG): Pick the right GNUPG executable to use.
15163 2018-05-16  Paul Eggert  <eggert@cs.ucla.edu>
15165         crypto/af_alg: fix --help
15166         * m4/af_alg.m4: Avoid spurious newline in --help output.
15168 2018-05-13  Bruno Haible  <bruno@clisp.org>
15170         nl_langinfo: Fix compilation error on Android.
15171         * lib/nl_langinfo.c (nl_langinfo): Define values for the items GROUPING,
15172         INT_CURR_SYMBOL, etc. only if these items are defined.
15174 2018-05-13  Bruno Haible  <bruno@clisp.org>
15176         truncate: Fix compilation error on Android.
15177         * m4/truncate.m4 (gl_FUNC_TRUNCATE): Test also whether 'truncate' is
15178         declared. Set HAVE_DECL_TRUNCATE, not HAVE_TRUNCATE.
15179         * lib/unistd.in.h (truncate): Test HAVE_DECL_TRUNCATE, not
15180         HAVE_TRUNCATE.
15181         * modules/truncate: Likewise.
15182         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_TRUNCATE,
15183         not HAVE_TRUNCATE.
15184         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TRUNCATE, not
15185         HAVE_TRUNCATE.
15186         * doc/posix-functions/truncate.texi: Mention the issue.
15188 2018-05-13  Bruno Haible  <bruno@clisp.org>
15190         pthread: Fix compilation error on Android.
15191         * lib/pthread.in.h: Use _GL_ALREADY_INCLUDING_PTHREAD_H to shortcut
15192         recursive inclusion of this file.
15194 2018-05-13  Bruno Haible  <bruno@clisp.org>
15196         posix_spawn: Fix compilation error on Android.
15197         * lib/spawn.in.h (posix_spawnattr_t): Consider also the case
15198         HAVE_POSIX_SPAWNATTR_T = 1 && HAVE_POSIX_SPAWN = 0.
15199         (posix_spawn_file_actions_t): Consider also the case
15200         HAVE_POSIX_SPAWN_FILE_ACTIONS_T = 1 && HAVE_POSIX_SPAWN = 0.
15202 2018-05-13  Bruno Haible  <bruno@clisp.org>
15204         tsearch: Move from K&R C to ANSI C.
15205         * lib/tsearch.c (tfind): Convert definition to ANSI C.
15207 2018-05-13  Bruno Haible  <bruno@clisp.org>
15209         tsearch: Fix compilation error on Android.
15210         * lib/search.in.h (twalk): Declare when HAVE_TWALK, not HAVE_TSEARCH,
15211         is 0.
15212         (GNULIB_defined_tsearch, GNULIB_defined_twalk): New macros.
15213         * lib/tsearch.c (tsearch, tfind, tdelete): Define only if
15214         GNULIB_defined_tsearch is true.
15215         (twalk): Define only if GNULIB_defined_twalk is true.
15216         * modules/tsearch (configure.ac): Compile tsearch.c also if HAVE_TWALK
15217         is 0.
15218         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Set HAVE_TWALK.
15219         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize HAVE_TWALK.
15220         * modules/search (Makefile.am): Substitute HAVE_TWALK.
15222 2018-05-13  Bruno Haible  <bruno@clisp.org>
15224         imaxdiv: Fix compilation error on Android.
15225         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Set HAVE_IMAXDIV_T to 0 if imaxdiv_t
15226         is not defined.
15227         * lib/inttypes.in.h (imaxdiv_t): Define if HAVE_IMAXDIV_T, not
15228         HAVE_DECL_IMAXDIV, is 0.
15229         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize HAVE_IMAXDIV_T.
15230         * modules/inttypes-incomplete (Makefile.am): Substitute HAVE_IMAXDIV_T.
15232 2018-05-13  Bruno Haible  <bruno@clisp.org>
15234         Support selective inclusion mechanism of recent mingw.org header files.
15235         Reported by Eli Zaretskii <eliz@gnu.org>.
15236         * lib/sys_types.in.h: On mingw, when __need_off_t, __need___off64_t,
15237         __need_ssize_t, or __need_time_t is defined, just include the system's
15238         <sys/types.h>.
15239         * lib/locale.in.h: On mingw, when __need_locale_t is defined, just
15240         include the system's <locale.h>.
15242 2018-05-13  Bruno Haible  <bruno@clisp.org>
15244         Avoid compilation error due to 'mmap' on Android.
15245         * lib/vma-iter.c (_FILE_OFFSET_BITS): Undefine on Android.
15246         * lib/get-rusage-as.c (_FILE_OFFSET_BITS): Likewise.
15247         * tests/zerosize-ptr.h (_FILE_OFFSET_BITS, __USE_FILE_OFFSET64):
15248         Undefine on Android.
15250 2018-05-13  Bruno Haible  <bruno@clisp.org>
15252         Add cross-compilation guesses for Linux systems without glibc.
15253         * m4/chown.m4 (AC_FUNC_CHOWN): Add cross-compilation guess for Linux.
15254         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
15255         * m4/link.m4 (gl_FUNC_LINK): Likewise.
15256         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
15257         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
15258         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
15259         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
15260         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
15261         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
15262         * m4/readlink.m4 (gl_FUNC_READLINK): Likewise.
15263         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
15264         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
15265         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
15266         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
15267         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
15268         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
15269         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
15270         * m4/utimens.m4 (gl_UTIMENS): Likewise.
15272 2018-05-13  Bruno Haible  <bruno@clisp.org>
15274         getpagesize: Fix compilation error on Android.
15275         * m4/getpagesize.m4 (gl_CHECK_FUNC_GETPAGESIZE): New macro.
15276         (gl_FUNC_GETPAGESIZE): Invoke it instead of AC_CHECK_FUNC.
15277         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Don't invoke
15278         AC_CHECK_FUNC. Instead, invoke gl_CHECK_FUNC_GETPAGESIZE and define
15279         HAVE_GETPAGESIZE accordingly.
15280         * modules/getcwd (Files): Add m4/getpagesize.m4.
15282 2018-05-13  Bruno Haible  <bruno@clisp.org>
15284         tcgetsid: Fix compilation error on Android.
15285         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use AC_LINK_IFELSE instead of
15286         AC_CHECK_FUNC.
15288 2018-05-13  Bruno Haible  <bruno@clisp.org>
15290         getpass: Fix configure test for Android.
15291         * m4/getpass.m4 (gl_PREREQ_GETPASS): Use AC_LINK_IFELSE instead of
15292         AC_CHECK_FUNC.
15294 2018-05-13  Bruno Haible  <bruno@clisp.org>
15296         ffs: Fix compilation error on Android.
15297         * m4/ffs.m4 (gl_FUNC_FFS): Use AC_LINK_IFELSE instead of AC_CHECK_FUNC.
15299 2018-05-13  Bruno Haible  <bruno@clisp.org>
15301         mkfifo: Fix compilation error on Android.
15302         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Use AC_LINK_IFELSE instead of
15303         AC_CHECK_FUNC.
15305 2018-05-13  Bruno Haible  <bruno@clisp.org>
15307         c-strtod: Fix configure test for Android.
15308         * m4/c-strtod.m4 (gl_C_STRTOD): Use AC_LINK_IFELSE instead of
15309         AC_CHECK_FUNC.
15311 2018-05-13  Bruno Haible  <bruno@clisp.org>
15313         random: Fix compilation error on Android.
15314         * m4/random.m4 (gl_FUNC_RANDOM): Use AC_LINK_IFELSE instead of
15315         AC_CHECK_FUNC.
15317 2018-05-13  Bruno Haible  <bruno@clisp.org>
15319         grantpt: Fix compilation error on Android.
15320         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Use AC_LINK_IFELSE instead of
15321         AC_CHECK_FUNC.
15323 2018-05-13  Bruno Haible  <bruno@clisp.org>
15325         stdioext: Fix compilation errors with newer Android headers.
15326         * lib/stdio-impl.h (fp_, fp_ub): Define differently for Android.
15327         (__SLBF, __SNBF, __SRD, __SWR, __SRW, __SEOF, __SERR, __SOFF): Define
15328         fallbacks for Android.
15329         * lib/fpending.c: Update comments.
15330         * lib/fpurge.c: Likewise.
15331         * lib/freadable.h: Likewise.
15332         * lib/freadable.c: Likewise.
15333         * lib/freadahead.c: Likewise.
15334         * lib/freading.h: Likewise.
15335         * lib/freadptr.c: Likewise.
15336         * lib/fseterr.c: Likewise.
15337         * lib/fwritable.h: Likewise.
15338         * lib/fwritable.c: Likewise.
15339         * lib/fwriting.h: Likewise.
15340         * lib/fwriting.c: Likewise.
15342 2018-05-13  Bruno Haible  <bruno@clisp.org>
15344         doc: Add info about Android versions 2.0 to 8.1.
15345         * doc/**/*.texi: Add info about functions in all released versions of
15346         Bionic.
15348 2018-05-12  Bruno Haible  <bruno@clisp.org>
15350         fseeko: On mingw, don't use the hidden function _fseeki64.
15351         Reported by Eli Zaretskii <eliz@gnu.org>.
15352         * m4/fseeko.m4 (gl_PREREQ_FSEEKO): Test whether _fseeki64 is declared.
15353         * lib/fseeko.c (fseeko): Use _fseeki64 only if it is declared.
15355 2018-05-12  Bruno Haible  <bruno@clisp.org>
15357         glob: Choose 'dirent_type' in a way that works better on mingw.
15358         Reported and suggested by Eli Zaretskii <eliz@gnu.org>.
15359         * lib/glob.c (dirent_type): Define as uint_fast32_t.
15361 2018-05-12  Bruno Haible  <bruno@clisp.org>
15363         execute, spawn-pipe: Avoid warning about redefining 'close'.
15364         Reported by Eli Zaretskii <eliz@gnu.org>.
15365         * lib/execute.c: Undefine 'close' before redefining it.
15366         * lib/spawn-pipe.c: Likewise.
15368 2018-05-12  Bruno Haible  <bruno@clisp.org>
15370         nanosleep: Avoid test failure on mingw when it has nanosleep.
15371         Reported by Eli Zaretskii <eliz@gnu.org>.
15372         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check whether alarm() exists.
15373         If it does not exist, use a simpler test program that does not call
15374         alarm().
15376 2018-05-10  Bruno Haible  <bruno@clisp.org>
15378         lock, cond, thread, tls: Use a different symbol as libpthread witness.
15379         Reported by Devin Hussey <husseydevin@gmail.com>.
15380         Based on a patch by Paul Eggert.
15381         * lib/glthread/lock.h (pthread_in_use): Use 'pthread_mutexattr_gettype'
15382         as witness of libpthread.
15383         * lib/glthread/cond.h (pthread_in_use): Likewise.
15384         * lib/glthread/thread.h (pthread_in_use): Likewise.
15385         * lib/glthread/tls.h (pthread_in_use): Likewise.
15387 2018-05-10  Bruno Haible  <bruno@clisp.org>
15389         cond tests: Fix compilation error on Solaris.
15390         * tests/test-cond.c: Include <unistd.h> before defining 'yield' as a
15391         macro.
15393 2018-05-10  Bruno Haible  <bruno@clisp.org>
15395         doc: Add partial info about Android 4.3.
15396         * doc/*-functions/*.texi: Add info about functions that were added
15397         to Bionic between Android 4.3 and Android 9.0.
15399 2018-05-10  Bruno Haible  <bruno@clisp.org>
15401         doc: Add info about Android 9.0.
15402         * doc/**/*.texi: Add info about functions and headers in Bionic from
15403         Android 9.0.
15405 2018-05-09  Paul Eggert  <eggert@cs.ucla.edu>
15407         af_alg: fix my typo in afalg_buffer
15408         * lib/af_alg.c (afalg_buffer): Fix typo I recently introduced.
15409         (afalg_stream): Simplify and avoid the need for a runtime test
15410         at the end.
15412         af_alg: recover better from crypto failures
15413         * lib/af_alg.c (afalg_stream): Recover from crypto failures if the
15414         input stream is seekable, by repositioning the stream back to
15415         where it was, possibly by just calling sendfile with an offset
15416         arg.  This lets us return -EAFNOSUPPORT instead of -EIO in some
15417         cases, which lets our callers try again with user-mode code.
15418         * modules/crypto/af_alg (Depends-on): Depend on fseeko and ftello
15419         instead of on fflush and lseek.
15421         af_alg: distiguish I/O errors better
15422         * lib/af_alg.c (afalg_buffer, afalg_stream): Return -EAFNOSUPPORT,
15423         not -EIO, if it’s OK for the caller to try again with user-mode code.
15424         (afalg_stream) [!_WIN32 || __CYGWIN__]: Return -EIO (not possibly
15425         some other error number) if fflush fails, as the caller should not
15426         try again that case.
15428         af_alg: avoid gotos
15429         * lib/af_alg.c (afalg_buffer, afalg_stream): Rewrite to avoid
15430         gotos, as they were a source of unreliability and made the code a
15431         bit harder to follow.
15433         af_alg: don’t leak file descriptors into children
15434         * lib/af_alg.c (alg_socket): Use SOCK_CLOEXEC when creating sockets.
15435         This code should be compiled only on recent GNU/Linux platforms
15436         so we shouldn’t have to also depend on the accept4 module.
15438         af_alg: coalesce socket creation
15439         * lib/af_alg.c (alg_socket): New function.
15440         (afalg_buffer, afalg_stream): Use it.  This avoids some
15441         code duplication and gotos.
15443         af_alg: fix file descriptor leak
15444         * lib/af_alg.c (afalg_stream): Close leak.
15446         af_alg: Pacify --enable-gcc-warnings on GCC 8
15447         * lib/af_alg.c (afalg_buffer, afalg_stream): Reorder local decls
15448         and checking to pacify gcc -Wjump-misses-init on GCC 8.
15450 2018-05-07  Paul Eggert  <eggert@cs.ucla.edu>
15452         af_alg: Pacify --enable-gcc-warnings
15453         Problem reported by Assaf Gordon in:
15454         https://lists.gnu.org/r/bug-gnulib/2018-05/msg00041.html
15455         * lib/af_alg.c (afalg_buffer): Move local decls to pacify
15456         gcc -Wjump-misses-init.
15457         * lib/sha512.c (shaxxx_stream): Now static.
15459 2018-05-06  Bruno Haible  <bruno@clisp.org>
15461         af_alg: Add ability to use Linux kernel crypto API on data in memory.
15462         * lib/af_alg.h (afalg_buffer): New declaration.
15463         * lib/af_alg.c (afalg_buffer): New function.
15465 2018-05-06  Bruno Haible  <bruno@clisp.org>
15467         af_alg: Avoid warnings.
15468         * lib/af_alg.h (afalg_stream): Mark fallback declaration as inline.
15469         * m4/af_alg.m4 (gl_AF_ALG): Require AC_C_INLINE.
15471 2018-05-06  Bruno Haible  <bruno@clisp.org>
15473         crypto/{md5,sha1,sha256,sha512} tests: Add benchmarks.
15474         * tests/bench-digest.h: New file.
15475         * tests/bench-md5.c: New file.
15476         * tests/bench-sha1.c: New file.
15477         * tests/bench-sha224.c: New file.
15478         * tests/bench-sha256.c: New file.
15479         * tests/bench-sha384.c: New file.
15480         * tests/bench-sha512.c: New file.
15481         * modules/crypto/md5-tests (Files): Add tests/bench-md5.c,
15482         tests/bench-digest.h.
15483         (Depends-on): Add getrusage, gettimeofday.
15484         (Makefile.am): Add variables to build bench-md5.
15485         * modules/crypto/sha1-tests (Files): Add tests/bench-sha1.c,
15486         tests/bench-digest.h.
15487         (Depends-on): Add getrusage, gettimeofday.
15488         (Makefile.am): Add variables to build bench-sha1.
15489         * modules/crypto/sha256-tests (Files): Add tests/bench-sha224.c,
15490         tests/bench-sha256.c, tests/bench-digest.h.
15491         (Depends-on): Add getrusage, gettimeofday.
15492         (Makefile.am): Add variables to build bench-sha224, bench-sha256.
15493         * modules/crypto/sha512-tests (Files): Add tests/bench-sha384.c,
15494         tests/bench-sha512.c, tests/bench-digest.h.
15495         (Depends-on): Add getrusage, gettimeofday.
15496         (Makefile.am): Add variables to build bench-sha384, bench-sha512.
15498 2018-05-06  Bruno Haible  <bruno@clisp.org>
15500         af_alg: Fix a resource leak.
15501         * lib/af_alg.c (afalg_stream): Close socket before returning -EINVAL.
15502         New local variable 'result'.
15504 2018-05-06  Bruno Haible  <bruno@clisp.org>
15506         af_alg: Fix bug with streams that are not at position 0.
15507         * lib/af_alg.c (afalg_stream): Before sendfile, invoke fflush. Don't
15508         assume that the stream is positioned at position 0.
15509         * lib/af_alg.h (afalg_stream): Mention restriction regarding the state
15510         of the stream.
15511         * lib/md5.h (md5_stream): Likewise.
15512         * lib/sha1.h (sha1_stream): Likewise.
15513         * lib/sha256.h (sha256_stream, sha224_stream): Likewise.
15514         * lib/sha512.h (sha512_stream, sha384_stream): Likewise.
15515         * modules/crypto/af_alg (Depends-on): Add fflush, lseek.
15517         crypto/{md5,sha1,sha256,sha512} tests: Enhance test.
15518         * tests/test-digest.h (test_digest_on_files): Add a test with a FILE
15519         stream that is not positioned at the beginning.
15521 2018-05-06  Bruno Haible  <bruno@clisp.org>
15523         af_alg: Add configure option to enable/disable use of Linux crypto API.
15524         Suggested by Assaf Gordon <assafgordon@gmail.com>.
15525         * m4/af_alg.m4 (gl_AF_ALG): Add AC_ARG_WITH invocation. Define C macro
15526         USE_LINUX_CRYPTO_API.
15527         * lib/af_alg.h: Test USE_LINUX_CRYPTO_API, not HAVE_LINUX_IF_ALG_H.
15528         * lib/af_alg.c: Likewise.
15530 2018-05-06  Bruno Haible  <bruno@clisp.org>
15532         Followup to 'af_alg: New module.'.
15533         * modules/crypto/md5 (Depends-on): Remove sys_socket, sys_stat.
15534         * modules/crypto/sha1 (Depends-on): Likewise.
15535         * modules/crypto/sha256 (Depends-on): Likewise.
15536         * modules/crypto/sha512 (Depends-on): Likewise.
15538 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
15540         crypto/{md5,sha1,sha256,sha512}: simplify
15541         * lib/md5.c (md5_stream):
15542         * lib/sha1.c (sha1_stream):
15543         * lib/sha256.c (shaxxx_stream):
15544         Simplify, partly by assuming C99.
15545         * lib/sha256.c (shaxxx_stream):
15546         New function, which implements both sha256 and sha224.
15547         Simplify, partly by assuming C99.
15548         (sha256_stream, sha224_stream):
15549         Use it to avoid code duplication, removing a FIXME.
15550         * lib/sha512.c (shaxxx_stream, sha512_stream, sha384_stream):
15551         Likewise.
15553         af_alg: Improve comments.
15554         * lib/af_alg.h: Use imperatives and tighten up wording.
15556 2018-05-05  Bruno Haible  <bruno@clisp.org>
15558         af_alg: Improve comments.
15559         * lib/af_alg.c (afalg_stream): Improve comment about kernel bug.
15561 2018-05-05  Bruno Haible  <bruno@clisp.org>
15563         af_alg: New module.
15564         * lib/af_alg.h: Test HAVE_* macro through '#if', not '#ifdef'.
15565         * lib/af_alg.c: Include "af_alg.h" before the other header files.
15566         * lib/md5.c: Include "af_alg.h" unconditionally.
15567         (md5_stream): Invoke afalg_stream unconditionally.
15568         * lib/sha1.c: Include "af_alg.h" unconditionally.
15569         (sha1_stream): Invoke afalg_stream unconditionally.
15570         * lib/sha256.c: Include "af_alg.h" unconditionally.
15571         (sha256_stream, sha224_stream): Invoke afalg_stream unconditionally.
15572         * lib/sha512.c: Include "af_alg.h" unconditionally.
15573         (sha512_stream, sha384_stream): Invoke afalg_stream unconditionally.
15574         * m4/af_alg.m4: Renamed from m4/linux-if-alg.m4.
15575         (gl_AF_ALG): Renamed from gl_LINUX_IF_ALG_H.
15576         * modules/crypto/af_alg: New file.
15577         * modules/crypto/md5 (Files): Remove files that are now in the
15578         'crypto/af_alg' module.
15579         (Depends-on): Add crypto/af_alg.
15580         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
15581         (Makefile.am): Don't mention af_alg.c here.
15582         * modules/crypto/sha1 (Files): Remove files that are now in the
15583         'crypto/af_alg' module.
15584         (Depends-on): Add crypto/af_alg.
15585         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
15586         (Makefile.am): Don't mention af_alg.c here.
15587         * modules/crypto/sha256 (Files): Remove files that are now in the
15588         'crypto/af_alg' module.
15589         (Depends-on): Add crypto/af_alg.
15590         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
15591         (Makefile.am): Don't mention af_alg.c here.
15592         * modules/crypto/sha512 (Files): Remove files that are now in the
15593         'crypto/af_alg' module.
15594         (Depends-on): Add crypto/af_alg.
15595         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
15596         (Makefile.am): Don't mention af_alg.c here.
15598 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
15600         crypto tests: pacify GCC
15601         * tests/test-digest.h (test_digest_on_files):
15602         Don’t assume digest size fits in int (!).
15604         af_alg: minor style improvements
15605         * lib/af_alg.c (afalg_stream): Prefer C99 style
15606         decl-after-statement, since we’re already assuming C99.  Clarify
15607         by strengthening the bind test and omit unnecessary assignment.
15609 2018-05-05  Bruno Haible  <bruno@clisp.org>
15611         af_alg: Fix bug on empty files.
15612         * lib/af_alg.c (afalg_stream): Ignore the kernel's result if the input
15613         stream is empty.
15615 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
15617         sys-limits.h: new file for crypto and safe I/O
15618         * lib/af_alg.c: Include sys-limits.h.
15619         (MAX_RW_COUNT): Remove.  Use replaced by SYS_BUFSIZE_MAX.
15620         (afalg_stream): Also reject negative sizes for sendfile; they
15621         should not happen and the code is a bit cleaner and faster this way.
15622         * lib/safe-read.c: Include sys-limits.h.
15623         (BUGGY_READ_MAXIMUM): Remove.  All uses replaced by SYS_BUFSIZE_MAX.
15624         * lib/sys-limits.h: New file, with values and commentary derived
15625         from the old safe-read.c and from GNU Emacs sysdep.c.
15626         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
15627         * modules/crypto/sha512, modules/safe-read, modules/safe-write:
15628         Add lib/sys-limits.h to Files section.
15630 2018-05-05  Bruno Haible  <bruno@clisp.org>
15632         af_alg: Improve function signature.
15633         * lib/af_alg.h (afalg_stream): Swap second and third argument.
15634         * lib/af_alg.c (afalg_stream): Likewise.
15635         * lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c: Callers changed.
15637 2018-05-05  Bruno Haible  <bruno@clisp.org>
15639         crypto/{md5,sha1,sha256,sha512}: Fix compilation error (S_TYPEISTMO).
15640         * modules/crypto/md5 (Depends-on): Add 'sys_stat'.
15641         * modules/crypto/sha1 (Depends-on): Likewise.
15642         * modules/crypto/sha256 (Depends-on): Likewise.
15643         * modules/crypto/sha512 (Depends-on): Likewise.
15645 2018-05-05  Bruno Haible  <bruno@clisp.org>
15647         crypto/{md5,sha1,sha256,sha512}: Fix module description.
15648         * modules/crypto/md5 (Depends-on): Add 'sys_socket'.
15649         * modules/crypto/sha1 (Depends-on): Likewise.
15650         * modules/crypto/sha256 (Depends-on): Likewise.
15651         * modules/crypto/sha512 (Depends-on): Likewise.
15653 2018-05-05  Bruno Haible  <bruno@clisp.org>
15655         af_alg: Add documentation.
15656         * lib/af_alg.h: Add comments.
15658 2018-05-05  Bruno Haible  <bruno@clisp.org>
15660         sha512: Add tests.
15661         * tests/test-sha512.c: New file.
15662         * modules/crypto/sha512-tests: New file.
15664 2018-05-05  Bruno Haible  <bruno@clisp.org>
15666         sha256: Add tests.
15667         * tests/test-sha256.c: New file.
15668         * modules/crypto/sha256-tests: New file.
15670 2018-05-05  Bruno Haible  <bruno@clisp.org>
15672         sha1 tests: Add test for sha1_stream.
15673         * tests/test-sha1.c: Include test-digest.h.
15674         (main): Invoke test_digest_on_files on 'sha1_stream'.
15675         * modules/crypto/sha1-tests (Files): Add tests/test-digest.h.
15677 2018-05-05  Bruno Haible  <bruno@clisp.org>
15679         md5 tests: Add test for md5_stream.
15680         * tests/test-digest.h: New file.
15681         * tests/test-md5.c: Include test-digest.h.
15682         (main): Invoke test_digest_on_files on 'md5_stream'.
15683         * modules/crypto/md5-tests (Files): Add tests/test-digest.h.
15685 2018-04-28  Matteo Croce  <mcroce@redhat.com>
15687         md5sum: Use AF_ALG when available.
15688         * lib/md5.c: Include af_alg.h.
15689         (md5_stream): Use afalg_stream when available.
15690         * modules/crypto/md5 (Files): Add the af_alg files.
15691         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
15692         (Makefile.am): Add af_alg.c.
15694 2018-04-28  Matteo Croce  <mcroce@redhat.com>
15696         sha512sum: Use AF_ALG when available.
15697         * lib/sha512.c: Include af_alg.h.
15698         (sha512_stream, sha384_stream): Use afalg_stream when available.
15699         * modules/crypto/sha512 (Files): Add the af_alg files.
15700         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
15701         (Makefile.am): Add af_alg.c.
15703 2018-04-28  Matteo Croce  <mcroce@redhat.com>
15705         sha256sum: Use AF_ALG when available.
15706         * lib/sha256.c: Include af_alg.h.
15707         (sha256_stream, sha224_stream): Use afalg_stream when available.
15708         * modules/crypto/sha256 (Files): Add the af_alg files.
15709         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
15710         (Makefile.am): Add af_alg.c.
15712 2018-04-28  Matteo Croce  <mcroce@redhat.com>
15714         sha1sum: Use AF_ALG when available.
15715         * lib/af_alg.h: New file.
15716         * lib/af_alg.c: New file.
15717         * lib/sha1.c: Include af_alg.h.
15718         (sha1_stream): Use afalg_stream when available.
15719         * m4/linux-if-alg.m4: New file.
15720         * modules/crypto/sha1 (Files): Add the new files.
15721         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
15722         (Makefile.am): Add af_alg.c.
15724 2018-05-05  Bruno Haible  <bruno@clisp.org>
15726         all: Replace more http URLs by https URLs.
15727         * lib/localename.c: Use https: URL.
15728         * lib/timespec.h: Likewise.
15730 2018-05-03  Paul Eggert  <eggert@cs.ucla.edu>
15732         maint: port more modules to GCC 8
15733         * lib/dirname.h (base_name):
15734         * lib/exclude.h (new_exclude):
15735         * lib/xstrndup.h (xstrndup):
15736         Add malloc attribute.
15737         * lib/readutmp.c: Pacify GCC 8 about safe use of strncpy.
15738         * lib/sig-handler.h (get_handler) [SA_SIGINFO]: Simplify.
15739         This pacifies GCC 8.
15740         * m4/gnulib-common.m4 (gl_COMMON_BODY):
15741         Define _GL_ATTRIBUTE_MALLOC here.  All other definitions removed.
15743 2018-05-03  Bruno Haible  <bruno@clisp.org>
15745         Simplify code. Drop support for Borland C++ on Windows.
15746         Reported by Gisle Vanem <gisle.vanem@gmail.com>.
15747         * lib/accept4.c: Simplify 'defined _WIN32 || defined __WIN32__' to just
15748         'defined _WIN32'.
15749         * lib/canonicalize-lgpl.c: Likewise.
15750         * lib/classpath.c: Likewise.
15751         * lib/clean-temp.c: Likewise.
15752         * lib/csharpexec.c: Likewise.
15753         * lib/ctime.c: Likewise.
15754         * lib/dosname.h: Likewise.
15755         * lib/dup2.c: Likewise.
15756         * lib/errno.in.h: Likewise.
15757         * lib/error.c: Likewise.
15758         * lib/euidaccess.c: Likewise.
15759         * lib/execute.c: Likewise.
15760         * lib/fcntl.in.h: Likewise.
15761         * lib/fcntl.c: Likewise.
15762         * lib/filename.h: Likewise.
15763         * lib/findprog.c: Likewise.
15764         * lib/flock.c: Likewise.
15765         * lib/fopen.c: Likewise.
15766         * lib/freopen.c: Likewise.
15767         * lib/fstat.c: Likewise.
15768         * lib/fsync.c: Likewise.
15769         * lib/gc-gnulib.c: Likewise.
15770         * lib/get-rusage-data.c: Likewise.
15771         * lib/getaddrinfo.c: Likewise.
15772         * lib/getdelim.c: Likewise.
15773         * lib/getdtablesize.c: Likewise.
15774         * lib/gethostname.c: Likewise.
15775         * lib/getlogin.c: Likewise.
15776         * lib/getlogin_r.c: Likewise.
15777         * lib/getopt.c: Likewise.
15778         * lib/getpagesize.c: Likewise.
15779         * lib/getpass.c: Likewise.
15780         * lib/getrusage.c: Likewise.
15781         * lib/gettimeofday.c: Likewise.
15782         * lib/glob.c: Likewise.
15783         * lib/inttypes.in.h: Likewise.
15784         * lib/isapipe.c: Likewise.
15785         * lib/javaexec.c: Likewise.
15786         * lib/link.c: Likewise.
15787         * lib/localcharset.c: Likewise.
15788         * lib/localename.h: Likewise.
15789         * lib/localename.c: Likewise.
15790         * lib/localtime.c: Likewise.
15791         * lib/lseek.c: Likewise.
15792         * lib/mbsinit.c: Likewise.
15793         * lib/mkdir.c: Likewise.
15794         * lib/msvc-nothrow.h: Likewise.
15795         * lib/nanosleep.c: Likewise.
15796         * lib/nl_langinfo.c: Likewise.
15797         * lib/nonblocking.c: Likewise.
15798         * lib/nproc.c: Likewise.
15799         * lib/open.c: Likewise.
15800         * lib/openpty.c: Likewise.
15801         * lib/pathmax.h: Likewise.
15802         * lib/pipe-filter-aux.c: Likewise.
15803         * lib/pipe-filter-gi.c: Likewise.
15804         * lib/pipe-filter-ii.c: Likewise.
15805         * lib/pipe.c: Likewise.
15806         * lib/pipe2.c: Likewise.
15807         * lib/poll.c: Likewise.
15808         * lib/popen.c: Likewise.
15809         * lib/posix_openpt.c: Likewise.
15810         * lib/printf-parse.c: Likewise.
15811         * lib/progreloc.c: Likewise.
15812         * lib/putenv.c: Likewise.
15813         * lib/read.c: Likewise.
15814         * lib/relocatable.c: Likewise.
15815         * lib/rename.c: Likewise.
15816         * lib/same-inode.h: Likewise.
15817         * lib/secure_getenv.c: Likewise.
15818         * lib/select.c: Likewise.
15819         * lib/sethostname.c: Likewise.
15820         * lib/setlocale.c: Likewise.
15821         * lib/sigaction.c: Likewise.
15822         * lib/sigprocmask.c: Likewise.
15823         * lib/sleep.c: Likewise.
15824         * lib/spawn-pipe.h: Likewise.
15825         * lib/spawn-pipe.c: Likewise.
15826         * lib/spawni.c: Likewise.
15827         * lib/stat-time.h: Likewise.
15828         * lib/stat-w32.c: Likewise.
15829         * lib/stat.c: Likewise.
15830         * lib/stdio.in.h: Likewise.
15831         * lib/stdio-impl.h: Likewise.
15832         * lib/stdio-read.c: Likewise.
15833         * lib/stdio-write.c: Likewise.
15834         * lib/stdlib.in.h: Likewise.
15835         * lib/strerror_r.c: Likewise.
15836         * lib/strftime-fixes.c: Likewise.
15837         * lib/sys_stat.in.h: Likewise.
15838         * lib/sys_types.in.h: Likewise.
15839         * lib/sys_wait.in.h : Likewise.
15840         * lib/system-quote.h: Likewise.
15841         * lib/system-quote.c: Likewise.
15842         * lib/tmpdir.c: Likewise.
15843         * lib/tzset.c: Likewise.
15844         * lib/uname.c: Likewise.
15845         * lib/unistd.in.h: Likewise.
15846         * lib/utime.in.h: Likewise.
15847         * lib/utime.c: Likewise.
15848         * lib/utimecmp.c: Likewise.
15849         * lib/utimens.c: Likewise.
15850         * lib/vasnprintf.c: Likewise.
15851         * lib/vma-iter.h: Likewise.
15852         * lib/vma-iter.c: Likewise.
15853         * lib/wait-process.c: Likewise.
15854         * lib/wcsftime.c: Likewise.
15855         * lib/wctype.in.h: Likewise.
15856         * lib/write.c: Likewise.
15857         * tests/nap.h: Likewise.
15858         * tests/test-cloexec.c: Likewise.
15859         * tests/test-dup-safer.c: Likewise.
15860         * tests/test-dup2.c: Likewise.
15861         * tests/test-dup3.c: Likewise.
15862         * tests/test-fcntl.c: Likewise.
15863         * tests/test-get-rusage-data.c: Likewise.
15864         * tests/test-getaddrinfo.c: Likewise.
15865         * tests/test-getlogin.h: Likewise.
15866         * tests/test-isatty.c: Likewise.
15867         * tests/test-localename.c: Likewise.
15868         * tests/test-mbrtowc-w32.c: Likewise.
15869         * tests/test-nonblocking.c: Likewise.
15870         * tests/test-nonblocking-pipe-main.c: Likewise.
15871         * tests/test-nonblocking-socket-main.c: Likewise.
15872         * tests/test-nonblocking-socket.h: Likewise.
15873         * tests/test-pipe.c: Likewise.
15874         * tests/test-pipe2.c: Likewise.
15875         * tests/test-poll.c: Likewise.
15876         * tests/test-pthread_sigmask1.c: Likewise.
15877         * tests/test-select.h: Likewise.
15878         * tests/test-sethostname2.c: Likewise.
15879         * tests/test-sigprocmask.c: Likewise.
15880         * tests/test-spawn-pipe-child.c: Likewise.
15881         * tests/test-stat-time.c: Likewise.
15882         * tests/test-system-quote-main.c: Likewise.
15883         * tests/test-utimens-common.h: Likewise.
15884         * tests/test-wcrtomb-w32.c: Likewise.
15885         * m4/csharpexec.m4 (gt_CSHARPEXEC): Likewise.
15886         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
15887         * m4/javacomp.m4 (gt_JAVACOMP): Likewise.
15888         * m4/javaexec.m4 (gt_JAVAEXEC): Likewise.
15889         * m4/locale-ar.m4 (gt_LOCALE_AR): Likewise.
15890         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
15891         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
15892         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
15893         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
15894         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
15895         * m4/nocrash.m4 (GL_NOCRASH): Likewise.
15896         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET): Likewise.
15897         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Likewise.
15898         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
15899         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Likewise.
15900         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
15902 2018-05-02  Bruno Haible  <bruno@clisp.org>
15904         localename: Fix test failures on mingw.
15905         * lib/localename.c (gl_locale_name_thread): Remove code specific to
15906         native Windows.
15907         (gl_locale_name_posix): Move code specific to native Windows here.
15908         * tests/test-localename.c (test_locale_name, test_locale_name_posix):
15909         Accept result without charset suffix, as it appears on mingw.
15911 2018-04-28  Paul Smith  <psmith@gnu.org>
15913         bootstrap: Avoid gnulib operations if not needed
15914         * build-aux/bootstrap: Remove unused variable gnulib_mk.
15915         Set $gnulib_extra_files early so it can be overridden in .conf.
15916         Remove redundant --import flag from $gnulib_tool_options.
15917         Set $use_gnulib to false if no gnulib modules or files are needed.
15918         If $use_gnulib is false, don't do anything related to gnulib.
15919         A lot of this is just whitespace (indentation) changes.
15921 2018-04-27  Paul Eggert  <eggert@cs.ucla.edu>
15923         manywarnings: port to GCC 8.0
15924         * build-aux/gcc-warning.spec: Add -Wcatch-value,
15925         -Wclass-memaccess, -Wdo-subscript, -Wextra-semi.  Adjust to the
15926         fact that the GCC help message now mentions operands for
15927         -Warray-bounds, -Wformat, -Wformat-overflow, -Wformat-truncation,
15928         -Wimplicit-fallthrough, -Wplacement-new, -Wshift-overflow,
15929         -Wstrict-aliasing, -Wstrict-overflow, -Wstringop-overflow,
15930         and -Wunused-const-variable.
15931         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wattribute-alias,
15932         -Wcast-align=strict, -Wcast-function-type, -Wif-not-aligned,
15933         -Wmissing-attributes, -Wmultistatement-macros,
15934         -Wpacked-not-aligned, -Wsizeof-pointer-div, -Wstringop-truncation,
15935         -Wsuggest-attribute=cold, -Wsuggest-attribute=malloc.
15937 2018-04-24  Bruno Haible  <bruno@clisp.org>
15939         sys_socket: Make SO_REUSEPORT available across platforms.
15940         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15941         * lib/sys_socket.in.h (SO_REUSEPORT): New macro.
15942         * doc/posix-headers/sys_socket.texi: Mention the issue.
15943         * tests/test-poll.c (SO_REUSEPORT): Remove.
15944         * tests/test-select.h: Include <sys/socket.h>.
15945         (SO_REUSEPORT): Remove.
15946         * modules/select-tests (Depends-on): Add 'sys_socket'.
15948 2018-04-21  Benno Schulenberg  <bensberg@telfort.nl>  (tiny change)
15950         localcharset: short-circuit the search for an alias on a Mac
15951         * lib/localcharset.c (get_charset_aliases): Add a tautological
15952         UTF-8 entry to speed up the search for this case.
15953         Most machines default to a UTF-8 locale nowadays, so begin the
15954         list of aliases with a dummy UTF-8 entry so it will be found
15955         immediately and a time-consuming search through the rest of
15956         the list is avoided.
15958 2018-04-11  Paul Eggert  <eggert@cs.ucla.edu>
15960         fts: add comment
15961         * lib/fts.c (fts_build): Explain why ==, not >.
15962         See remark by Bernhard Voelker in:
15963         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00041.html
15965         fts: fix bug in find across filesystems
15966         This fixes a bug I introduced last summer.
15967         Problem reported by Kamil Dudka in:
15968         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00033.html
15969         * lib/fts.c (filesystem_type, dirent_inode_sort_may_be_useful)
15970         (leaf_optimization):
15971         New arg for file descriptor.  All callers changed.
15972         (fts_build): Check for whether inodes should be sorted
15973         before closing the directory.
15975 2018-04-07  Bruno Haible  <bruno@clisp.org>
15977         unicase/u*-context: Fix link errors with libunistring <= 0.9.9.
15978         Reported by Genki Sky <sky@genki.is>.
15979         * modules/unicase/u8-prefix-context (configure.ac): Require libunistring
15980         version 0.9.10 or newer.
15981         * modules/unicase/u8-suffix-context (configure.ac): Likewise.
15982         * modules/unicase/u16-prefix-context (configure.ac): Likewise.
15983         * modules/unicase/u16-suffix-context (configure.ac): Likewise.
15984         * modules/unicase/u32-prefix-context (configure.ac): Likewise.
15985         * modules/unicase/u32-suffix-context (configure.ac): Likewise.
15987 2018-04-07  Bruno Haible  <bruno@clisp.org>
15989         execute: Update comment.
15990         * lib/execute.h (execute): Refer to spawn-pipe.h, not pipe.h.
15992 2018-04-05  Paul Eggert  <eggert@cs.ucla.edu>
15994         fts: treat CIFS like NFS
15995         Problem reported by Kamil Dudka in:
15996         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00015.html
15997         * lib/fts.c (S_MAGIC_CIFS): New macro.
15998         (dirent_inode_sort_may_be_useful, leaf_optimization):
15999         Treat CIFS like NFS.
16001 2018-03-28  Bruno Haible  <bruno@clisp.org>
16003         c-stack: Fix possible build failure on some platforms.
16004         * lib/c-stack.c (die): Define whenever this function is referenced.
16006 2018-03-28  Paul Eggert  <eggert@cs.ucla.edu>
16008         time_rz: fix workaround for Mac OS X 10.6 infloop
16009         Problems reported by Charles A. Roelli (Bug#27736#117).
16010         * m4/time_rz.m4 (gl_TIME_RZ): Use a slightly different timestamp.
16011         Also, discard output, which clutters the 'configure' log.
16013 2018-03-27  Paul Eggert  <eggert@cs.ucla.edu>
16015         havelib: port to Solaris 10 /bin/sh
16016         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Use 'test ! EXPR'
16017         instead of '! test EXPR'.
16019 2018-03-26  Paul Eggert  <eggert@cs.ucla.edu>
16021         time_rz: work around Mac OS X 10.6 infloop
16022         * doc/posix-functions/localtime.texi:
16023         * doc/posix-functions/localtime_r.texi: Mention the bug.
16024         * lib/time_rz.c (localtime_rz): Work around the bug.  It’d be
16025         better to fix localtime and localtime_r instead, but that would be
16026         more work and is not needed to fix the Emacs problem.
16027         * m4/time_rz.m4 (gl_TIME_RZ): Detect the bug.
16029 2018-03-24  Jim Meyering  <meyering@fb.com>
16031         test-version-etc.sh: don't use diff directly: use init.sh's compare
16032         We'd rather not sacrifice readable "diff -u" output even for
16033         "diff -c" output (not supported by busybox) or for even less
16034         readable ed-style "diff" output.  So use init.sh's compare function
16035         * tests/test-version-etc.sh: Source init.sh and add "." to path.
16036         Remove "./" from invocation of test-version-etc, so we use path.
16037         And s/diff/compare/.
16038         * modules/version-etc-tests (Depends-on): Add test-framework-sh,
16039         to get init.sh.
16040         Prompted by Eric Blake's comments in
16041         https://lists.gnu.org/r/sed-devel/2018-03/msg00015.html
16043 2018-03-24  Bruno Haible  <bruno@clisp.org>
16045         javacomp-script, javacomp: Add support for Java 10.
16046         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 10 and
16047         target-version 10.
16048         * lib/javaversion.h: Update comments.
16049         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
16050         source_version_index, get_goodcode_snippet, get_failcode_snippet,
16051         TARGET_VERSION_BOUND, target_version_index,
16052         corresponding_classfile_version): Accept source_version 10 and
16053         target_version 10.
16054         * lib/javacomp.h: Update comments accordingly.
16056 2018-03-24  Bruno Haible  <bruno@clisp.org>
16058         javacomp-script, javacomp: Update comments.
16059         * m4/javacomp.m4: Update comments regarding gcj.
16060         * lib/javacomp.h: Likewise.
16062 2018-03-24  Bruno Haible  <bruno@clisp.org>
16064         javacomp-script, javacomp: Fix support for Java 7, 8, 9.
16065         * lib/javaversion.h: Update comments.
16066         * lib/javacomp.h: Likewise.
16067         * lib/javacomp.c (default_target_version, source_version_index,
16068         get_goodcode_snippet, get_failcode_snippet): Recognize "9" instead of
16069         "1.9".
16070         (TARGET_VERSION_BOUND): Bump to 9.
16071         (target_version_index, corresponding_classfile_version): Recognize "9"
16072         instead of "1.9".
16073         (get_source_version_for_javac): New function.
16074         (is_envjavac_nongcj_usable, is_javac_usable): Add
16075         source_version_for_javac argument.
16076         (compile_java_class): Determine and pass source_version_for_javac.
16077         * m4/javacomp.m4: Recognize version '9' instead of '1.9'. When invoking
16078         $JAVAC or javac, pass '-source 1.6' instead of '-source 1.5' when
16079         appropriate.
16081 2018-03-23  Jim Meyering  <meyering@fb.com>
16083         test-version-etc.sh: port to diff without -c
16084         * tests/test-version-etc.sh: Don't use diff's -c option.
16085         This caused spurious test failure on Alpine Linux, which
16086         uses busybox's diff. Reported by Assaf Gordon in
16087         https://lists.gnu.org/r/sed-devel/2018-03/msg00013.html
16089 2018-03-23  Paul Eggert  <eggert@cs.ucla.edu>
16091         c-stack: port to recent GCC build
16092         Problem reported by The Fireplace (Bug#30913).
16093         * lib/c-stack.c (die): Define only if used.
16095 2018-03-20  Bruno Haible  <bruno@clisp.org>
16097         euidaccess: Port to native Windows.
16098         * lib/euidaccess.c (euidaccess): On native Windows, just use _access().
16099         * posix-modules (exclude_for_mingw): Remove 'euidaccess'.
16101 2018-03-19  Bruno Haible  <bruno@clisp.org>
16103         javacomp: Add support for Java 7, 8, 9.
16104         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
16105         source_version_index, get_goodcode_snippet, get_failcode_snippet,
16106         corresponding_classfile_version): Accept source_version 1,7, 1.8, 1.9
16107         and target_version 1,7, 1.8, 1.9.
16108         * lib/javacomp.h: Update comments accordingly.
16110 2018-03-19  Bruno Haible  <bruno@clisp.org>
16112         javacomp-script: Add support for Java 9.
16113         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 1.9 and
16114         target-version 1.9.
16116 2018-03-16  Bruno Haible  <bruno@clisp.org>
16118         glob: Don't compile replacements on recent glibc systems.
16119         * lib/glob.in.h: Use the usual idiom for the double-inclusion guard. If
16120         REPLACE_GLOB is 0, include the system's <glob.h> and use
16121         _GL_CXXALIAS_SYS.
16122         * m4/glob.m4 (gl_GLOB): Set REPLACE_GLOB instead of GLOB_H. Accept
16123         _GNU_GLOB_INTERFACE_VERSION 2 as well. Delete the file conf$$-globtest
16124         inside the AC_RUN_IFELSE block. Remove GL_GENERATE_GLOB_H conditional.
16125         * modules/glob (Dependencies): Test REPLACE_GLOB instead of GLOB_H.
16126         Remove snippet/warn-on-use.
16127         (configure.ac): Test REPLACE_GLOB instead of GLOB_H.
16128         (Makefile.am): Create glob.h always. Update list of substitutions in
16129         glob.h. Don't depend on $(WARN_ON_USE_H).
16131 2018-03-16  Bruno Haible  <bruno@clisp.org>
16133         glob: Fix link error on native Windows.
16134         * modules/glob (Depends-on): Add 'lstat'.
16136 2018-03-15  Bruno Haible  <bruno@clisp.org>
16138         glob: Fix compilation error in C++ mode.
16139         * lib/glob.in.h (_Restrict_): Define, like in regex.h and spawn.in.h.
16141 2018-03-15  Bruno Haible  <bruno@clisp.org>
16143         host-cpu-c-abi: Support for RISC-V CPU.
16144         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Recognize the various
16145         riscv32 and riscv64 ABIs.
16146         References:
16147         https://github.com/riscv/riscv-toolchain-conventions
16148         https://gcc.gnu.org/onlinedocs/gcc-7.3.0/gcc/RISC-V-Options.html
16149         https://gnu-mcu-eclipse.github.io/toolchain/riscv/
16151 2018-03-08  Paul Eggert  <eggert@cs.ucla.edu>
16153         fflush: be more paranoid about libio.h change
16154         Suggested by Eli Zaretskii in:
16155         https://lists.gnu.org/r/emacs-devel/2018-03/msg00270.html
16156         * lib/fbufmode.c (fbufmode):
16157         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
16158         (disable_seek_optimization, rpl_fflush):
16159         * lib/fpending.c (__fpending):
16160         * lib/fpurge.c (fpurge):
16161         * lib/freadable.c (freadable):
16162         * lib/freadahead.c (freadahead):
16163         * lib/freading.c (freading):
16164         * lib/freadptr.c (freadptr):
16165         * lib/freadseek.c (freadptrinc):
16166         * lib/fseeko.c (fseeko):
16167         * lib/fseterr.c (fseterr):
16168         * lib/fwritable.c (fwritable):
16169         * lib/fwriting.c (fwriting):
16170         Look at _IO_ftrylockfile as well as at _IO_EOF_SEEN.
16172 2018-03-07  Paul Eggert  <eggert@cs.ucla.edu>
16174         maint: write-file-hooks -> before-save-hook
16175         write-file-hooks is obsolete since Emacs 22.1 (released June 2007) and
16176         it's time to use the recommended replacement.
16177         Problem reported by Glenn Morris in:
16178         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00008.html
16179         * build-aux/announce-gen, build-aux/bootstrap:
16180         * build-aux/do-release-commit-and-tag, build-aux/gendocs.sh:
16181         * build-aux/git-version-gen, build-aux/gitlog-to-changelog:
16182         * build-aux/gnu-web-doc-update, build-aux/gnupload:
16183         * build-aux/move-if-change, build-aux/prefix-gnulib-mk:
16184         * build-aux/update-copyright, build-aux/useless-if-before-free:
16185         * build-aux/vc-list-files:
16186         Update hook usage for files where Gnulib is the canonical source.
16188 2018-03-05  Paul Eggert  <eggert@cs.ucla.edu>
16190         binary-io: pacify gcc -Wunused-parameter
16191         Problem reported by Reuben Thomas in:
16192         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00005.html
16193         * lib/binary-io.h (__gl_setmode, __gl_setmode_check):
16194         Use _GL_UNUSED where appropriate.
16196         fflush: adjust to glibc 2.28 libio.h removal
16197         Problem reported by Daniel P. Berrangé in:
16198         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00000.html
16199         * lib/fbufmode.c (fbufmode):
16200         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
16201         (disable_seek_optimization, rpl_fflush):
16202         * lib/fpending.c (__fpending):
16203         * lib/fpurge.c (fpurge):
16204         * lib/freadable.c (freadable):
16205         * lib/freadahead.c (freadahead):
16206         * lib/freading.c (freading):
16207         * lib/freadptr.c (freadptr):
16208         * lib/freadseek.c (freadptrinc):
16209         * lib/fseeko.c (fseeko):
16210         * lib/fseterr.c (fseterr):
16211         * lib/fwritable.c (fwritable):
16212         * lib/fwriting.c (fwriting):
16213         Check _IO_EOF_SEEN instead of _IO_ftrylockfile.
16214         * lib/stdio-impl.h (_IO_IN_BACKUP) [_IO_EOF_SEEN]:
16215         Define if not already defined.
16217 2018-02-27  Paul Eggert  <eggert@cs.ucla.edu>
16219         environ: fix link error on 32-bit Cygwin
16220         Problem reported for GNU Emacs by Ken Brown in:
16221         https://lists.gnu.org/r/emacs-devel/2018-02/msg00765.html
16222         * lib/unistd.in.h (environ) [__i386__]: Do not redeclare.
16224 2018-02-24  Bruno Haible  <bruno@clisp.org>
16226         mbrtowc tests: Fix regression on glibc.
16227         Reported by Bernhard Voelker.
16228         * tests/test-mbrtowc.c (main): Fix expected value of wc.
16230 2018-02-24  Bruno Haible  <bruno@clisp.org>
16232         striconveha, uniconv/*: Avoid test failures on musl libc.
16233         * tests/iconvsupport.c: New file.
16234         * tests/test-striconveha.c (main): Skip autodetect_jp tests if iconv()
16235         does not support the ISO-2022-JP-2 encoding.
16236         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
16237         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
16238         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
16239         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
16240         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
16241         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
16242         * modules/striconveha-tests (Files): Add tests/iconvsupport.c.
16243         (Makefile.am): Link test-striconveha with iconvsupport.o.
16244         * modules/uniconv/u8-conv-from-enc-tests (Files): Add
16245         tests/iconvsupport.c.
16246         (Makefile.am): Link test-u8-conv-from-enc with iconvsupport.o.
16247         * modules/uniconv/u8-strconv-from-enc-tests (Files): Add
16248         tests/iconvsupport.c.
16249         (Makefile.am): Link test-u8-strconv-from-enc with iconvsupport.o.
16250         * modules/uniconv/u16-conv-from-enc-tests (Files): Add
16251         tests/iconvsupport.c.
16252         (Makefile.am): Link test-u16-conv-from-enc with iconvsupport.o.
16253         * modules/uniconv/u16-strconv-from-enc-tests (Files): Add
16254         tests/iconvsupport.c.
16255         (Makefile.am): Link test-u16-strconv-from-enc with iconvsupport.o.
16256         * modules/uniconv/u32-conv-from-enc-tests (Files): Add
16257         tests/iconvsupport.c.
16258         (Makefile.am): Link test-u32-conv-from-enc with iconvsupport.o.
16259         * modules/uniconv/u32-strconv-from-enc-tests (Files): Add
16260         tests/iconvsupport.c.
16261         (Makefile.am): Link test-u32-strconv-from-enc with iconvsupport.o.
16263 2018-02-24  Bruno Haible  <bruno@clisp.org>
16265         localename: Add support for musl libc.
16266         * m4/localename.m4 (gl_LOCALENAME): Check for <langinfo.h>.
16267         * lib/localename.c (gl_locale_name_thread_unsafe): Use NL_LOCALE_NAME
16268         on Linux platforms which define NL_LOCALE_NAME.
16270 2018-02-24  Bruno Haible  <bruno@clisp.org>
16272         mbrtowc tests: Don't make assumptions about the charset the C locale.
16273         * tests/test-mbrtowc.c (main): For bytes >= 0x80, don't assume a
16274         particular mapping in the C locale.
16276 2018-02-24  Bruno Haible  <bruno@clisp.org>
16278         ptsname_r: Don't expect that this function sets errno.
16279         * tests/test-ptsname_r.c (test_errors): Don't test errno after return
16280         from ptsname_r().
16281         * doc/glibc-functions/ptsname_r.texi: Mention the issue.
16283 2018-02-23  Bruno Haible  <bruno@clisp.org>
16285         xmalloca: pacify gcc -Wbad-function-cast
16286         * lib/xmalloca.h (xmalloca): Insert intermediate cast here as well.
16288 2018-02-23  Paul Eggert  <eggert@cs.ucla.edu>
16290         nl_langinfo: pacify gcc -Wunused-function
16291         * lib/nl_langinfo.c (ctype_codeset): Do not define if
16292         REPLACE_NL_LANGINFO && !GNULIB_defined_CODESET, as it is unused in
16293         this case.  Without this change, I got a diagnostic when building
16294         coreutils on Fedora 27 with gcc 7.3.1 20180130.
16296         same: pacify gcc -Wunused-variable
16297         * lib/same.c (same_nameat) [!CHECK_TRUNCATION]:
16298         Omit unused variable.
16300         malloca: pacify gcc -Wbad-function-cast
16301         * lib/malloca.h (malloca): Pacify gcc -Wbad-function-cast
16302         diagnostic that I got on Fedora 27 with gcc 7.3.1 20180130.
16303         To pacify GCC, I had to cast alloca’s result to some type other
16304         than void * before casting that to uintptr_t.
16306 2018-02-20  Paul Eggert  <eggert@cs.ucla.edu>
16308         utimecmp: new function utimecmpat
16309         * lib/utimecmp.c: Include fcntl.h, sys/stat.h and dirname.h.
16310         Do not include utimens.h.
16311         (utimecmpat): New function, generalizing utimecmp.
16312         (utimecmp): Now a thin layer around utimecmpat.
16313         * modules/utimecmp (Depends-on): Depend on dirname-lgpl, fstatat,
16314         utimensat instead of on lstat and utimens.
16316         same: new function same_nameat
16317         * lib/same.c: Include fcntl.h.
16318         * lib/same.c (same_nameat): New function, generalizing same_name.
16319         (same_name): Now a thin layer around same_nameat.
16320         * m4/same.m4 (gl_SAME): Check for fpathconf, not pathconf.
16321         * modules/same (Depends-on): Depend on fstatat, openat.
16323 2018-02-18  Eric Gallager  <egall@gwmail.gwu.edu>  (tiny change)
16325         warnings: Add support for Objective C.
16326         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS(Objective C)): New
16327         macro.
16329 2018-02-17  Bruno Haible  <bruno@clisp.org>
16331         lock: Fix test-once1 crash on FreeBSD11.
16332         * lib/glthread/lock.h: On FreeBSD, test the weak value of the symbol
16333         'pthread_create', not 'pthread_cancel'.
16335 2018-02-17  Bruno Haible  <bruno@clisp.org>
16337         lock: Add test of gl_once.
16338         * tests/test-once.c: New file.
16339         * modules/lock-tests (Files): Add it.
16340         (Makefile.am): Build and test programs 'test-once1' and 'test-once2'.
16342 2018-02-17  Bruno Haible  <bruno@clisp.org>
16344         thread: Fix compilation error on IRIX.
16345         * lib/glthread/thread.h: Include <unistd.h>. Include <signal.h> when
16346         needed; include it outside the C++ extern "C" {} block.
16347         * doc/posix-headers/pthread.texi: Mention the problem with
16348         pthread_atfork on IRIX.
16350 2018-02-04  Bruno Haible  <bruno@clisp.org>
16352         nl_langinfo: Override the system's nl_langinfo() when needed.
16353         Reported by Jim Meyering.
16354         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Set REPLACE_NL_LANGINFO=1
16355         also when HAVE_LANGINFO_T_FMT_AMPM or HAVE_LANGINFO_ALTMON is 0.
16357 2018-02-04  Bruno Haible  <bruno@clisp.org>
16359         signal-h, monetary, strings: Fix build failure in some cases.
16360         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
16361         * modules/signal-h (Makefile.am): In the GNULIB_* substitutions, use '/'
16362         as delimiter in sed command, not '|'.
16363         * modules/monetary (Makefile.am): Likewise.
16364         * modules/strings (Makefile.am): Likewise.
16366 2018-02-03  Jim Meyering  <meyering@fb.com>
16368         maint.mk: exempt "/proc/filesystems" from "file system" syntax check
16369         * top/maint.mk (sc_file_system): Don't complain about
16370         "/proc/filesystems".
16372 2018-02-03  Bruno Haible  <bruno@clisp.org>
16374         stdlib: Fix compilation error on OpenIndiana.
16375         * lib/stdlib.in.h: Before including <sys/loadavg.h>, include
16376         <sys/time.h>.
16377         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
16378         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
16380 2018-02-03  Bruno Haible  <bruno@clisp.org>
16382         host-cpu-c-abi: Avoid use of 'grep -E' on OpenIndiana.
16383         * m4/asm-underscore.m4 (gl_ASM_SYMBOL_PREFIX): Require AC_PROG_EGREP,
16384         and use $EGREP instead of 'grep -E'.
16385         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Use 'grep' instead of
16386         'grep -E'.
16388 2018-02-02  Paul Eggert  <eggert@cs.ucla.edu>
16390         malloca: Add a compile-time verification.
16391         * lib/malloca.c (small_t): Verify that it is wide enough.
16392         * modules/malloca (Depends-on): Add verify.
16394 2018-02-02  Bruno Haible  <bruno@clisp.org>
16396         malloca: Add an argument check.
16397         Suggested by Paul Eggert.
16398         * lib/malloca.c (freea): Check against an invalid argument.
16400 2018-02-02  Bruno Haible  <bruno@clisp.org>
16402         localename: Add support for OpenIndiana.
16403         * lib/localename.c (gl_locale_name_thread_unsafe): Add code for
16404         Solaris 11 variants with uselocale() but without getlocalename_l().
16406 2018-02-02  Bruno Haible  <bruno@clisp.org>
16408         malloca, xmalloca: Make multithread-safe.
16409         Reported by Florian Weimer <fweimer@redhat.com>.
16410         Implements an idea by Ondřej Bílka <neleai@seznam.cz>.
16411         * lib/malloca.h (malloca): In the stack allocation case, return a
16412         pointer that is a multiple of 2 * sa_alignment_max.
16413         (sa_increment): Remove enum item.
16414         * lib/xmalloca.h (xmalloca): In the stack allocation case, return
16415         a pointer that is a multiple of 2 * sa_alignment_max.
16416         * lib/malloca.c (NO_SANITIZE_MEMORY): Remove macro.
16417         (MAGIC_NUMBER, MAGIC_SIZE, preliminary_header, HEADER_SIZE, header,
16418         HASH_TABLE_SIZE, mmalloca_results): Remove.
16419         (small_t): New type.
16420         (mmalloca, free): Rewritten.
16421         * lib/malloca.valgrind: Remove file.
16422         * modules/malloca (Files): Remove it.
16423         (Depends-on): Remove verify.
16425 2018-01-31  Bruno Haible  <bruno@clisp.org>
16427         environ: Fix link error on 64-bit Cygwin.
16428         * lib/unistd.in.h (environ): On Cygwin, redeclare with the
16429         __declspec(dllimport) attribute.
16430         * doc/posix-functions/environ.texi: Mention the Cygwin problem.
16432 2018-01-30  Bruno Haible  <bruno@clisp.org>
16434         get-rusage-data: Add support for Minix 3.
16435         * lib/get-rusage-data.c (get_rusage_data): Return 0 on Minix.
16437 2018-01-30  Bruno Haible  <bruno@clisp.org>
16439         vma-iter: Add support for Minix 3.
16440         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Minix.
16441         * lib/vma-iter.c: On Minix, read /proc/<pid>/map.
16443 2018-01-27  Bruno Haible  <bruno@clisp.org>
16445         Fix malfunction of socket functions on HP-UX in 64-bit mode.
16446         * m4/socketlib.m4 (gl_SOCKETLIB): Add comment.
16447         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define
16448         _HPUX_ALT_XOPEN_SOCKET_API.
16449         * modules/accept (Depends-on): Add 'extensions'.
16450         * modules/getpeername (Depends-on): Likewise.
16451         * modules/getsockname (Depends-on): Likewise.
16452         * modules/getsockopt (Depends-on): Likewise.
16453         * modules/recvfrom (Depends-on): Likewise.
16454         * doc/posix-functions/accept.texi: Mention the HP-UX socklen_t problem.
16455         * doc/posix-functions/getpeername.texi: Likewise.
16456         * doc/posix-functions/getsockname.texi: Likewise.
16457         * doc/posix-functions/getsockopt.texi: Likewise.
16458         * doc/posix-functions/recvfrom.texi: Likewise.
16460 2018-01-27  Bruno Haible  <bruno@clisp.org>
16462         getsockname tests: More tests.
16463         * tests/test-getsockname.c (open_server_socket): New function, mostly
16464         copied from test-poll.c.
16465         (main): Check that getsockname fills in addr.
16466         * modules/getsockname-tests (Depends-on): Add the necessary
16467         dependencies.
16468         (test_getsockname_LDADD): Link with $(INET_PTON_LIB).
16470 2018-01-26  Paul Eggert  <eggert@cs.ucla.edu>
16472         manywarnings: fix maintainer comment
16473         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Fix comment so that
16474         it does not mistakenly think that ‘-1)’ is an option.
16476 2018-01-26  Bruno Haible  <bruno@clisp.org>
16478         langinfo: Fix last commit.
16479         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
16480         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_ALTMON.
16482 2018-01-24  Bruno Haible  <bruno@clisp.org>
16484         langinfo, nl_langinfo: Add support for alternative month names.
16485         * m4/langinfo_h.m4 (gl_LANGINFO_H): Define HAVE_LANGINFO_ALTMON.
16486         * lib/langinfo.in.h (ALTMON_1...ALTMON_12): New macros.
16487         * lib/nl_langinfo.c (rpl_nl_langinfo): Treat ALTMON_i like MON_i.
16488         * tests/test-nl_langinfo.c (main): Test ALTMON_*.
16489         * doc/posix-headers/langinfo.texi: Document support of ALTMON_*.
16490         * doc/posix-functions/nl_langinfo.texi: Likewise.
16492 2018-01-23  Paul Eggert  <eggert@cs.ucla.edu>
16494         Merge strftime.c changes from glibc
16495         This incorporates:
16496         2017-11-14 [BZ #10871] Implement alternative month names
16497         2017-11-14 [BZ #10871] Abbreviated alternative month names (%Ob)
16498         2017-06-20 Use locale_t, not __locale_t, throughout glibc
16499         * lib/nstrftime.c (ABALTMON_1) [!COMPILE_WIDE]: New macro.
16500         (LOCALE_PARAM) [_LIBC && USE_IN_EXTENDED_LOCALE_MODEL]:
16501         Use locale_t, not __locale_t.
16502         (a_altmonth, f_altmonth, aam_len) [_NL_CURRENT]: New macros.
16503         (__strftime_internal): Add support for alternate months.
16505 2018-01-23  Bruno Haible  <bruno@clisp.org>
16507         doc: Mention another prerequisite for using Gnulib.
16508         Reported at <https://stackoverflow.com/questions/48378214/>.
16509         * doc/gnulib-tool.texi (Initial import): Mention requirement to use
16510         AC_CONFIG_HEADERS.
16512 2018-01-22  Mathieu Lirzin  <mthl@gnu.org>
16514         build: GuixSD doesn't have /bin/bash
16515         * Makefile (SHELL): Search 'bash' in the PATH environment variable.
16517 2018-01-21  Bruno Haible  <bruno@clisp.org>
16519         Avoid test failures on Microsoft Windows Subsystem for Linux.
16520         * tests/test-fcntl.c (main): Allow a different errno.
16521         * tests/test-rename.h (test_rename): Likewise.
16522         * tests/test-renameat.c (main): Likewise.
16523         * tests/test-renameat2.c (main): Likewise.
16525 2018-01-14  Paul Eggert  <eggert@cs.ucla.edu>
16527         filenamecat: make base a suffix of result
16528         * lib/filenamecat-lgpl.c (longest_relative_suffix): Remove.
16529         (mfile_name_concat): Always make BASE a suffix of the result, as
16530         cp expects this.  To implement this, separate with '.' instead of
16531         '/' in some rare cases.  Clarify spec to say ./BASE not BASE.
16532         * tests/test-filenamecat.c (main): Adjust tests to match
16533         current behavior.  Check that BASE_IN_RESULT points to
16534         a copy of BASE and is a suffix of the resultk, and that DIR
16535         is a prefix of the result that is no longer than the prefix
16536         indicated by BASE_IN_RESULT.
16538 2018-01-04  Mathieu Lirzin  <mthl@gnu.org>
16540         update-copyright: Handle use of ©
16541         * build-aux/update-copyright ($circle_c_re): Update regex to
16542         handle use of © in headers.
16544 2018-01-04  Tim Rühsen  <tim.ruehsen@gmx.de>
16546         Fix -Wundef warning in user-included header lib/cdefs.h.
16547         * lib/cdefs.h: Check if defined before using __USE_FORTIFY_LEVEL.
16549 2018-01-04  Bruno Haible  <bruno@clisp.org>
16551         pthread_sigmask: Avoid compilation error on mingw.
16552         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
16553         * lib/signal.in.h (pthread_sigmask): Don't declare it it's defined as a
16554         macro.
16556 2018-01-03  Paul Eggert  <eggert@cs.ucla.edu>
16558         test-framework-sh: ‘ps -ef’, not ‘ps ef’
16559         * tests/init.sh (rand_bytes_): Put ‘-’ before new-style ps options.
16560         Suggested by Bob Proulx (Bug#29968).
16561         * build-aux/mktempd (rand_bytes): Make it like tests/init.sh.
16563 2018-01-02  Eric Blake  <eblake@redhat.com>
16565         stat-time: silence -Wunused-parameter regression
16566         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
16567         Prefer attribute over cast-to-void.
16568         (stat_time_normalize): Mark st as potentially unused.
16570 2018-01-02  Paul Eggert  <eggert@cs.ucla.edu>
16572         test-framework-sh: avoid netstat
16573         Problem reported by Kristýna Streitová (Bug#29947).
16574         * tests/init.sh (rand_bytes_): Stop using netstat, as it's
16575         deprecated on SuSE and it's not that important anyway.
16577 2018-01-01  Jim Meyering  <meyering@fb.com>
16579         update-copyright: add code to handle more special cases
16580         After running "make update-copyright" this year, five files
16581         required additional manual changes.  Automate those adjustments
16582         for next year.
16583         * Makefile (_year_and_prev): Define.
16584         (update-copyright): Add perl commands to induce this year's post-
16585         update-copyright adjustments.
16587 2018-01-01  Paul Eggert  <eggert@cs.ucla.edu>
16589         version-etc: new year
16590         * build-aux/gendocs.sh (version):
16591         * doc/gendocs_template:
16592         * doc/gendocs_template_min:
16593         * doc/gnulib.texi:
16594         * lib/version-etc.c (COPYRIGHT_YEAR):
16595         Update copyright dates by hand in templates and the like.
16597         maint: fix 'make update-copyright'
16598         * Makefile (update-copyright): Adjust to 2016-11-23 change
16599         to config/srclist-update, which changed the format of srclist.txt.
16601 2017-12-30  Paul Eggert  <eggert@cs.ucla.edu>
16603         chdir-safer: remove this module
16604         * MODULES.html.sh (func_all_modules): Remove chdir-safer.
16605         * NEWS: Document removal.
16606         * lib/chdir-safer.c, lib/chdir-safer.h, m4/afs.m4, m4/chdir-safer.m4:
16607         * modules/chdir-safer: Remove these files.
16609 2017-12-29  Samuel Thibault  <samuel.thibault@gnu.org>
16611         Add cross-compilation results for GNU/Hurd.
16612         * m4/calloc.m4: Add GNU/Hurd guess.
16613         * m4/cbrtl.m4: Likewise.
16614         * m4/ceil.m4: Likewise.
16615         * m4/ceilf.m4: Likewise.
16616         * m4/ceill.m4: Likewise.
16617         * m4/chown.m4: Likewise.
16618         * m4/duplocale.m4: Likewise.
16619         * m4/exp2l.m4: Likewise.
16620         * m4/expm1.m4: Likewise.
16621         * m4/fchdir.m4: Likewise.
16622         * m4/floor.m4: Likewise.
16623         * m4/floorf.m4: Likewise.
16624         * m4/fmod.m4: Likewise.
16625         * m4/fmodf.m4: Likewise.
16626         * m4/fmodl.m4: Likewise.
16627         * m4/getcwd.m4: Likewise.
16628         * m4/getgroups.m4: Likewise.
16629         * m4/gettimeofday.m4: Likewise.
16630         * m4/hypot.m4: Likewise.
16631         * m4/hypotf.m4: Likewise.
16632         * m4/hypotl.m4: Likewise.
16633         * m4/link-follow.m4: Likewise.
16634         * m4/link.m4: Likewise.
16635         * m4/linkat.m4: Likewise.
16636         * m4/log.m4: Likewise.
16637         * m4/log10.m4: Likewise.
16638         * m4/log10f.m4: Likewise.
16639         * m4/log1p.m4: Likewise.
16640         * m4/log1pf.m4: Likewise.
16641         * m4/log1pl.m4: Likewise.
16642         * m4/log2.m4: Likewise.
16643         * m4/log2f.m4: Likewise.
16644         * m4/logf.m4: Likewise.
16645         * m4/lstat.m4: Likewise.
16646         * m4/malloc.m4: Likewise.
16647         * m4/mbrlen.m4: Likewise.
16648         * m4/mbrtowc.m4: Likewise.
16649         * m4/mkdir.m4: Likewise.
16650         * m4/mkfifo.m4: Likewise.
16651         * m4/mknod.m4: Likewise.
16652         * m4/mkstemp.m4: Likewise.
16653         * m4/modf.m4: Likewise.
16654         * m4/modff.m4: Likewise.
16655         * m4/modfl.m4: Likewise.
16656         * m4/printf.m4: Likewise.
16657         * m4/pselect.m4: Likewise.
16658         * m4/ptsname.m4: Likewise.
16659         * m4/putenv.m4: Likewise.
16660         * m4/readlink.m4: Likewise.
16661         * m4/realloc.m4: Likewise.
16662         * m4/remainder.m4: Likewise.
16663         * m4/remainderf.m4: Likewise.
16664         * m4/remainderl.m4: Likewise.
16665         * m4/rmdir.m4: Likewise.
16666         * m4/round.m4: Likewise.
16667         * m4/roundf.m4: Likewise.
16668         * m4/roundl.m4: Likewise.
16669         * m4/select.m4: Likewise.
16670         * m4/setenv.m4: Likewise.
16671         * m4/signbit.m4: Likewise.
16672         * m4/sleep.m4: Likewise.
16673         * m4/stat.m4: Likewise.
16674         * m4/strerror.m4: Likewise.
16675         * m4/strtok_r.m4: Likewise.
16676         * m4/symlink.m4: Likewise.
16677         * m4/symlinkat.m4: Likewise.
16678         * m4/trunc.m4: Likewise.
16679         * m4/truncf.m4: Likewise.
16680         * m4/truncl.m4: Likewise.
16681         * m4/tzset.m4: Likewise.
16682         * m4/ungetc.m4: Likewise.
16683         * m4/usleep.m4: Likewise.
16684         * m4/wcwidth.m4: Likewise.
16686 2017-12-28  Bruno Haible  <bruno@clisp.org>
16688         gnulib-tool: Make --conditional-dependencies work better.
16689         Reported by Dmitry Selyutin <ghostman.sd@gmail.com>.
16690         * gnulib-tool (Options): Don't reject the combination of
16691         --conditional-dependencies with --with-tests.
16692         (func_emit_autoconf_snippets): Add argument referenceable_modules.
16693         Don't reference $modules.
16694         (func_import, func_create_testdir): Pass it.
16696 2017-12-19  Paul Eggert  <eggert@cs.ucla.edu>
16698         regex: use re_malloc etc. consistently
16699         Problem and original patch reported by Arnold Robbins in:
16700         https://sourceware.org/ml/libc-alpha/2017-12/msg00241.html
16701         * lib/regcomp.c (re_comp):
16702         * lib/regexec.c (push_fail_stack, build_trtable, match_ctx_clean):
16703         Use re_malloc/re_realloc/re_free instead of malloc/realloc/free.
16705 2017-12-15  Tim Rühsen  <tim.ruehsen@gmx.de>
16706             Paul Eggert  <eggert@cs.ucla.edu>
16708         glob: Silence warning about void pointer arithmetic.
16709         * lib/glob.c (glob): Use a 'char *', not a 'void *', in pointer
16710         arithmetic.
16712 2017-12-15  Bruno Haible  <bruno@clisp.org>
16714         spawn-pipe: Silence a clang warning.
16715         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
16716         * lib/spawn-pipe.c: Disable clang -Wconditional-uninitialized warnings
16717         in this file.
16719 2017-12-12  Paul Eggert  <eggert@cs.ucla.edu>
16721         explicit_bzero: port to macOS + Clang 9.0.0
16722         Problem reported by Marcus Johnson (Bug#29658).
16723         * lib/explicit_bzero.c (explicit_bzero) [__clang__]:
16724         Don’t use asm.
16726 2017-12-11  Reuben Thomas  <rrt@sc3d.org>
16728         doc: Improve explanation of supporting relocatable libraries.
16729         * doc/relocatable-maint.texi (Supporting Relocation): Explain
16730         properly how to build the relocatable module for
16731         libraries. (Method and example code from Bruno Haible.)
16733 2017-12-11  Reuben Thomas  <rrt@sc3d.org>
16735         doc: Use better texinfo tags in a few cases.
16736         * doc/gnulib.texi (Extending Gnulib): Use @option or @command
16737         instead of @samp in a few places.
16739 2017-12-11  Bruno Haible  <bruno@clisp.org>
16741         unistr/base: Update comment.
16742         * lib/unistr.in.h: Update comment about u*_mbtouc_unsafe functions.
16744 2017-12-10  Pádraig Brady  <P@draigBrady.com>
16746         test-faccessat.c: unlink temp file to avoid subsequent test failure
16747         * tests/test-faccessat.c: Remove the file to avoid failure
16748         to open the file on subsequent runs due to being created
16749         with no permissions.
16751 2017-12-10  Bruno Haible  <bruno@clisp.org>
16753         doc: New sect. "Modifying the build rules of a Gnulib import directory".
16754         * doc/gnulib-tool.texi (Modified build rules): New node.
16756 2017-12-10  Bruno Haible  <bruno@clisp.org>
16758         doc: Tweak wording.
16759         * doc/gnulib-tool.texi (Multiple instances): Talk about "programs", not
16760         "binaries".
16762 2017-12-05  Sam Steingold  <sds@gnu.org>
16763             Bruno Haible  <bruno@clisp.org>
16765         no-c++: Avoid "egrep: repetition-operator operand invalid" error.
16766         * m4/no-c++.m4 (gt_NO_CXX): Don't use '+' characters nor spaces in the
16767         AC_EGREP_CPP pattern.
16769 2017-12-03  Bruno Haible  <bruno@clisp.org>
16771         all: Replace more http URLs by https URLs.
16772         * lib/sm3.h, lib/sm3.c, tests/test-sm3.c: Use https: URL.
16773         * lib/unigbrk/u-grapheme-breaks.h: Likewise.
16774         * lib/unigbrk/uc-grapheme-breaks.c: Likewise.
16775         * tests/unigbrk/test-uc-grapheme-breaks.c: Likewise.
16777 2017-11-28  Paul Eggert  <eggert@cs.ucla.edu>
16779         Port better to CentOS 5
16780         Problems reported by Tom G. Christensen in:
16781         https://lists.gnu.org/r/bug-gnulib/2017-11/msg00053.html
16782         * doc/glibc-functions/strverscmp.texi (strverscmp):
16783         Document strverscmp bug with glibc 2.9 and earlier.
16784         * doc/posix-functions/tzset.texi (tzset):
16785         Document that TZ with angle brackets is POSIX-2001 and later.
16786         * tests/test-nstrftime.c: Include unistd.h.
16787         (TZ_ANGLE_BRACKETS_SHOULD_WORK): New macro.
16788         (TZ): Use it to skip tests with angle brackets in TZ,
16789         for older systems.
16791         stat: add missing module dependencies
16792         * modules/lstat, modules/stat, modules/utimensat (Depends-on):
16793         Add stat-time.
16795 2017-11-28  Benno Schulenberg  <bensberg@telfort.nl>
16797         stat: fix compilation failure on macOS Sierra
16798         Reported by Marius Schamschula <mschamschula@gmail.com> in:
16799         https://savannah.gnu.org/bugs/?52546
16800         * lib/stat.c: Add missing include of stat-time.h.
16802 2017-11-28  Jim Meyering  <meyering@fb.com>
16804         test-faccessat.c: correct BASE definition to avoid parallel test failure
16805         * tests/test-faccessat.c (BASE): Define using this file's name, not
16806         that of test-lstat.c.  Using the latter caused this test to fail
16807         sometimes when run concurrently with test-lstat.
16809 2017-11-27  Daiki Ueno  <ueno@gnu.org>
16811         unicase: fix VPATH build
16812         * modules/unicase/special-casing (Makefile.am): Ensure that the
16813         base directory is created when generating
16814         unicase/special-casing.h.
16816 2017-11-27  Daiki Ueno  <ueno@gnu.org>
16818         libunistring: update to Unicode 9.0.0
16819         * lib/gen-uni-tables.c (fill_properties): Recognize
16820         Sentence_Terminal and Prepended_Concatenation_Mark.
16821         (is_property_default_ignorable_code_point): Exclude U+08E2.
16822         (fill_arabicshaping): Allow missing whitespace when parsing;
16823         recognize "AFRICAN FEH", "AFRICAN QAF", and "AFRICAN MOON".
16824         (output_blocks): Increase the element size of the level1 table to
16825         accommodate more blocks.
16826         (get_lbp): Recognize ZWJ, E_Base, and E_Modifier characters;
16827         Update each class according to the standard.
16828         (get_wbp): Recognize ZWJ, E_Base, E_Modifier, Glue_After_Zwj, and
16829         E_Base_GAZ characters.
16830         (output_gbp_table): Recognize ZWJ, E_Base, E_Modifier,
16831         Glue_After_Zwj, and E_Base_GAZ characters.
16832         * lib/unictype.in.h (UC_JOINING_GROUP_AFRICAN_FEH)
16833         (UC_JOINING_GROUP_AFRICAN_QAF, UC_JOINING_GROUP_AFRICAN_MOON): New
16834         enum value.
16835         * lib/unilbrk/lbrktables.h (LBP_ZWJ, LBP_EB, LBP_EM): New enum
16836         value.
16837         * lib/unilbrk/lbrktables.c (unilbrk_table): Extend the table with
16838         LBP_ZWJ, LBP_EB, and LBP_EM.
16839         * lib/uniwbrk.in.h (WBP_ZWJ, WBP_EB, WBP_EM, WBP_GAZ, WBP_EBG): New
16840         enum value.
16841         * lib/uniwbrk/u-wordbreaks.h: Implement WB3c, WB15, and WB16.
16842         * lib/uniwbrk/wbrktable.h (uniwbrk_prop_index): New variable
16843         declaration.
16844         * lib/uniwbrk/wbrktable.c (uniwbrk_prop_index): New variable.
16845         (uniwbrk_table): Implement WB14.
16846         * tests/uniwbrk/test-uc-wordbreaks.c (wordbreakproperty_to_string):
16847         Check WBP_ZWJ, WBP_EB, WBP_EM, WBP_GAZ, and WBP_EBG.
16848         * modules/unigbrk/u{32,16,8}-grapheme-breaks: No longer depend on
16849         uc-is-grapheme-break.
16850         * modules/unigbrk/uc-grapheme-breaks: New module.
16851         * modules/unigbrk/uc-grapheme-breaks-tests: New module.
16852         * lib/unigbrk.in.h (GBP_ZWJ, GBP_EB, GBP_EM, GBP_GAZ, GBP_EBG): New
16853         enum value.
16854         (uc_grapheme_breaks): New function, replacing uc_is_grapheme_break.
16855         * lib/unigbrk/u-grapheme-breaks.h: New file.
16856         * lib/unigbrk/u{32,16,8}-grapheme-breaks.c: Rewrite using
16857         u-grapheme-breaks.h instead of uc_is_grapheme_break.
16858         * lib/unigbrk/uc-grapheme-breaks.c: New file.
16859         * lib/unigbrk/uc-is-grapheme-break.c: Partially update to TR29 rev
16860         29.
16861         * tests/unigbrk/test-uc-gbrk-prop.c
16862         (graphemebreakproperty_to_string): Check GBP_ZWJ, GBP_EB, GBP_EM,
16863         GBP_GAZ, and GBP_EBG.
16864         * tests/unigbrk/test-uc-grapheme-breaks.c: New test.
16865         * tests/unigbrk/test-uc-is-grapheme-break.c
16866         (graphemebreakproperty_to_string): Check GBP_ZWJ, GBP_EB, GBP_EM,
16867         GBP_GAZ, and GBP_EBG.
16868         (main): Skip unsupported rules involving 3 or more characters,
16869         namely GB10, GB12, and GB13.
16870         * lib/uniwidth/width.c (nonspacing_table_data): Update.
16871         * all generated files under lib/uni* and tests/uni*: Regenerate.
16872         * all the affected modules: Bump version.
16874 2017-11-26  Bruno Haible  <bruno@clisp.org>
16876         strfmon_l: Fix compilation error with glibc 2.5.
16877         Reported by Tom G. Christensen <tgc@jupiterrise.com>
16878         in <https://lists.gnu.org/r/bug-gnulib/2017-11/msg00051.html>.
16879         * lib/monetary.in.h: Include also <locale.h>.
16881 2017-11-24  Paul Eggert  <eggert@cs.ucla.edu>
16883         posixtm: remove PDS_LEADING_YEAR
16884         This changes the API slightly, in a hopefully-innocuous way.
16885         Without this change the code had undefined behavior when a
16886         caller specified neither PDS_LEADING_YEAR nor PDS_TRAILING_YEAR.
16887         Problem reported by Pádraig Brady in:
16888         https://lists.gnu.org/r/bug-gnulib/2017-11/msg00048.html
16889         * NEWS: Mention this.
16890         * lib/posixtm.c (posix_time_parse): Treat the absence of
16891         PDS_TRAILING_YEAR as if PDS_LEADING_YEAR were present.
16892         * lib/posixtm.h (PDS_LEADING_YEAR): Remove (actually, leave it
16893         present, but define it as zero, for compatibility with existing
16894         source code).  All other PDS_* values moved up.
16895         * tests/test-posixtm.c (LY): New macro.
16896         (T): Use it.  Do not expect a particular numeric encoding
16897         for PDS_CENTURY etc.
16899 2017-11-23  Paul Eggert  <eggert@cs.ucla.edu>
16901         stat: work around Solaris bug with tv_nsec < 0
16902         * doc/posix-functions/fstat.texi (fstat):
16903         * doc/posix-functions/fstatat.texi (fstatat):
16904         * doc/posix-functions/lstat.texi (lstat):
16905         * doc/posix-functions/stat.texi (stat):
16906         Mention Solaris 11 bug.
16907         * lib/fstat.c, lib/fstatat.c, lib/lstat.c: Include stat-time.h.
16908         * lib/fstat.c (rpl_fstat) [!WINDOWS_NATIVE]:
16909         * lib/lstat.c (rpl_lstat):
16910         * lib/stat.c (rpl_stat):
16911         Normalize resulting timestamps.
16912         * lib/fstatat.c (normal_fstatat): New function.
16913         (rpl_fstatat): Use it.
16914         * lib/stat-time.h: Include intprops.h, errno.h, stddef.h.
16915         (stat_time_normalize): New function.
16916         * m4/fstat.m4 (gl_FUNC_FSTAT):
16917         * m4/fstatat.m4 (gl_FUNC_FSTATAT):
16918         * m4/lstat.m4 (gl_FUNC_LSTAT):
16919         * m4/stat.m4 (gl_FUNC_STAT):
16920         Replace on Solaris.
16921         * modules/fstat (Depends-on):
16922         * modules/fstatat (Depends-on):
16923         Add stat-time.
16924         * modules/stat-time (Depends-on): Add errno, intprops.
16926 2017-11-22  Paul Eggert  <eggert@cs.ucla.edu>
16928         regex: merge from glibc
16929         * lib/regcomp.c (init_word_char): Add comments.
16931 2017-11-20  Paul Eggert  <eggert@cs.ucla.edu>
16933         regex: merge from glibc
16934         * lib/regcomp.c (__regcomp, __regfree) [_LIBC]: Now hidden.
16935         * lib/regex_internal.h (internal_function): Remove.
16936         All uses removed.
16938 2017-11-20  Bruno Haible  <bruno@clisp.org>
16940         crypto/gc-sm3: Fix buffer overrun.
16941         * lib/gc-gnulib.c (MAX_DIGEST_SIZE): Bump to 32.
16942         Reported by Coverity.
16944 2017-11-12  Jim Meyering  <meyering@fb.com>
16946         maint: shorten https://lists.gnu.org/archive/html/... links
16947         Each /archive/html/ part can be replace with /r/.
16948         Run this to induce the change:
16949         git grep -l archive/html|xargs perl -pi -e 's,/archive/html/,/r/,g'
16950         * ChangeLog: Perform that substitution.
16951         * Makefile: Likewise.
16952         * STATUS-libposix: Likewise.
16953         * build-aux/bootstrap: Likewise.
16954         * doc/maintain.texi: Likewise.
16955         * gnulib-tool: Likewise.
16956         * lib/allocator.h: Likewise.
16957         * lib/argp-ba.c: Likewise.
16958         * lib/argp-pv.c: Likewise.
16959         * lib/canon-host.c: Likewise.
16960         * lib/canonicalize-lgpl.c: Likewise.
16961         * lib/float.in.h: Likewise.
16962         * lib/fstat.c: Likewise.
16963         * lib/getdelim.c: Likewise.
16964         * lib/getprogname.c: Likewise.
16965         * lib/glthread/thread.h: Likewise.
16966         * lib/intprops.h: Likewise.
16967         * lib/mbsrtowcs-state.c: Likewise.
16968         * lib/safe-read.c: Likewise.
16969         * lib/signal.in.h: Likewise.
16970         * lib/stat.c: Likewise.
16971         * lib/stdbool.in.h: Likewise.
16972         * lib/stdio-impl.h: Likewise.
16973         * lib/stdio.in.h: Likewise.
16974         * lib/sysexits.in.h: Likewise.
16975         * lib/timespec.h: Likewise.
16976         * lib/wcsrtombs-state.c: Likewise.
16977         * m4/alloca.m4: Likewise.
16978         * m4/extern-inline.m4: Likewise.
16979         * m4/fstatat.m4: Likewise.
16980         * m4/gnulib-common.m4: Likewise.
16981         * m4/lib-ignore.m4: Likewise.
16982         * m4/printf.m4: Likewise.
16983         * m4/regex.m4: Likewise.
16984         * m4/stat-size.m4: Likewise.
16985         * m4/std-gnu11.m4: Likewise.
16986         * m4/stdbool.m4: Likewise.
16987         * m4/sys_types_h.m4: Likewise.
16988         * m4/threadlib.m4: Likewise.
16989         * m4/vararrays.m4: Likewise.
16990         * pygnulib/GLImport.py: Likewise.
16991         * tests/test-exp.h: Likewise.
16992         * tests/test-exp2.h: Likewise.
16993         * tests/test-expm1.h: Likewise.
16994         * tests/test-fflush2.c: Likewise.
16995         * tests/test-getopt_long.h: Likewise.
16996         * tests/test-intprops.c: Likewise.
16997         * tests/test-log.h: Likewise.
16998         * tests/test-log10.h: Likewise.
16999         * tests/test-log1p.h: Likewise.
17000         * tests/test-log2.h: Likewise.
17001         * tests/test-printf-posix.h: Likewise.
17002         * tests/test-regex.c: Likewise.
17003         * tests/test-snprintf-posix.h: Likewise.
17004         * tests/test-sprintf-posix.h: Likewise.
17005         * tests/test-stdalign.c: Likewise.
17006         * tests/test-stdbool.c: Likewise.
17007         * tests/test-vasnprintf-posix.c: Likewise.
17008         * tests/test-vasprintf-posix.c: Likewise.
17009         * top/maint.mk: Likewise.
17011 2017-11-12  Bruno Haible  <bruno@clisp.org>
17013         faccessat: Make the last change more robust.
17014         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Require
17015         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Treat "guessing yes" like "yes".
17017 2017-11-11  Paul Eggert  <eggert@cs.ucla.edu>
17019         faccessat: port to macOS (Bug#29231)
17020         macOS faccessat has the same bug that lstat does: if the file
17021         name ends in '/' it ignores the trailing slash.
17022         Problem reported for Emacs by Vincent Zhang.
17023         * doc/posix-functions/faccessat.texi (faccessat): Document this.
17024         * lib/faccessat.c (_GL_INCLUDING_UNISTD_H): Define and undef
17025         around the initial includes.  Include errno.h, string.h, sys/stat.h.
17026         (orig_faccessat) [HAVE_FACCESSAT]: New function.
17027         Include "unistd.h" after defining it.
17028         (rpl_faccessat) [HAVE_FACCESSAT]: New implementation.
17029         * lib/unistd.in.h (faccessat) [REPLACE_FACCESSAT]:
17030         Handle in the usual way.
17031         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Replace faccessat if
17032         lstat dereferences symlinks, since faccessat is likely to
17033         have the same problem.
17034         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Default REPLACE_ACCESSAT.
17035         * modules/faccessat (Depends-on): Add fstatat.
17036         Depend if REPLACE_FACCESSAT is 1, too.
17037         (configure.ac): Link if REPLACE_FACCESSAT is 1.
17038         * modules/faccessat-tests (Depends-on): Add symlink.
17039         * modules/unistd (unistd.h): Substitute REPLACE_FACCESSAT.
17040         * tests/test-faccessat.c (main): Test for the bug.
17042 2017-11-11  Bruno Haible  <bruno@clisp.org>
17044         getprogname: Fix compilation error on IRIX.
17045         * lib/getprogname.c (getprogname) [__sgi]: Fix type of local variable
17046         'namesize'.
17048 2017-11-11  Bruno Haible  <bruno@clisp.org>
17050         year2038: Tweak last patch.
17051         * m4/year2038.m4 (gl_YEAR2038): Correct indentation.
17053 2017-11-06  Paul Eggert  <eggert@cs.ucla.edu>
17055         year2038: be more insistent about 64-bit time_t
17056         Applications requiring access to arbitrary files should not be
17057         built with 32-bit time_t on hosts that have 64-bit timestamps,
17058         as this can lead to real trouble at runtime.
17059         * m4/year2038.m4 (gl_YEAR2038): Do not require AC_CANONICAL_HOST.
17060         Check on all systems, not just MinGW.  Use a heuristic involving
17061         TIME_T_32_BIT_OK, cross_compiling, and the touch command to
17062         output a failure or just a warning, to make it more likely that
17063         builders will select 64-bit time_t.
17065 2017-11-05  Paul Eggert  <eggert@cs.ucla.edu>
17067         havelib: fix typo in previous change
17068         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Fix typo.
17070         Don’t use AC_EGREP_CPP if affected by CFLAGS
17071         * m4/float_h.m4 (gl_FLOAT_H):
17072         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI):
17073         * m4/lib-ld.m4 (AC_LIB_PROG_LD):
17074         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB):
17075         * m4/year2038.m4 (gl_YEAR2038):
17076         Prefer AC_COMPILE_IFELSE to AC_EGREP_CPP when testing conditions
17077         likely to be affected by the choice of CFLAGS, since CFLAGS are
17078         not used by AC_EGREP_CPP.  Without this patch, ‘./configure
17079         CFLAGS="-m32"’ fails on gzip with GNU/Linux x86-64.
17081         fstatat: pacify GCC on unusual platform
17082         * lib/fstatat.c (orig_fstatat) [!HAVE_WORKING_FSTATAT_ZERO_FLAG]:
17083         Omit, as it’s unused in this case.
17085 2017-10-29  Paul Eggert  <eggert@cs.ucla.edu>
17087         timespec: prefer ‘assume’ to ‘assure’
17088         This avoids some runtime tests.  The rest of the module makes
17089         similar assumptions and there is little point to testing here.
17090         * lib/timespec.h: Include verify.h instead of assure.h.
17091         (timespec_cmp): Use ‘assume’, not ‘assure’.
17092         Also, remove an unnecessary cast to ‘int’, as lots of other
17093         code in this module now causes -Wconversion to complain, and
17094         this is a problem with -Wconversion not with the code.
17096         * modules/timespec (Depends-on): Depend on ‘verify’, not ‘assure’.
17098         Port recent gnulib-tool change to Dash
17099         * gnulib-tool (func_create_testdir): Don't assume that the shell
17100         retokenizes after expanding "$@" inside the call to
17101         func_execute_command.  Dash 0.5.8-2.1ubuntu2 does not.
17103 2017-10-27  Jim Meyering  <meyering@fb.com>
17105         timespec.h: use "assure" to avoid a spurious warning
17106         * lib/timespec.h: Include "assure.h" and use it to help
17107         gcc7's -Wstrict-overflow avoid a false positive warning
17108         for a use in coreutils' ls.c.  Suggested by Paul Eggert in
17109         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00007.html
17110         * modules/timespec (Depends-on): Add assure.
17112 2017-10-29  Bruno Haible  <bruno@clisp.org>
17114         Avoid several test failures with traditional locales on Haiku.
17115         * m4/locale-ar.m4 (gt_LOCALE_AR): On BeOS and Haiku, set LOCALE_AR=none.
17116         * m4/locale-fr.m4 (gt_LOCALE_FR): On BeOS and Haiku, set LOCALE_FR=none.
17117         * m4/locale-ja.m4 (gt_LOCALE_JA): On BeOS and Haiku, set LOCALE_JA-none.
17118         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On BeOS and Haiku, set
17119         LOCALE_ZH_CN=none.
17121 2017-10-29  Bruno Haible  <bruno@clisp.org>
17123         strerror_r-posix: Fix behaviour and test failure on Haiku.
17124         * lib/strerror_r.c (strerror_r): Don't assume that valid error numbers
17125         are positive. Work around return value 0 instead of ERANGE on Haiku.
17126         For unknown error numbers, use a format string consistent with perror().
17127         * doc/posix-functions/strerror_r.texi: Mention the Haiku problem.
17128         * tests/test-strerror_r.c (main): Don't assume that valid error numbers
17129         are positive.
17131 2017-10-29  Bruno Haible  <bruno@clisp.org>
17133         get-rusage-data: Avoid crash on Haiku.
17134         * lib/get-rusage-data.c: Avoid the setlimit-based implementation.
17136 2017-10-29  Bruno Haible  <bruno@clisp.org>
17138         get-rusage-as: Avoid crash on Haiku.
17139         * lib/get-rusage-as.c: Avoid the setlimit-based implementation.
17141 2017-10-29  Bruno Haible  <bruno@clisp.org>
17143         ilogbl: Ensure replacement on Haiku.
17144         * m4/ilogbl.m4 (gl_FUNC_ILOGBL): Invoke gl_FUNC_ILOGBL_WORKS and set
17145         REPLACE_ILOGBL if ilogbl does not work.
17146         (gl_FUNC_ILOGBL_WORKS): New macro.
17147         * lib/math.in.h (ilogbl): Replace if REPLACE_ILOGBL is 1.
17148         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ILOGBL.
17149         * modules/math (Makefile.am): Substitute REPLACE_ILOGBL.
17150         * modules/ilogbl (Depends-on, configure.ac): Consider REPLACE_ILOGBL.
17151         * doc/posix-functions/ilogbl.texi: Mention the Haiku problem.
17153 2017-10-29  Bruno Haible  <bruno@clisp.org>
17155         expl: Ensure replacement on Haiku.
17156         * m4/expl.m4 (gl_FUNC_EXPL): Test whether an expl() return value is
17157         zero.
17158         * doc/posix-functions/expl.texi: Mention the Haiku problem.
17160 2017-10-29  Bruno Haible  <bruno@clisp.org>
17162         math: Fix test failure on Haiku.
17163         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Override on Haiku.
17164         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Update accordingly.
17165         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
17166         * doc/posix-headers/math.texi: Mention the Haiku problem.
17168 2017-10-29  Bruno Haible  <bruno@clisp.org>
17170         gnulib-tool: Avoid unnecessary config.h.in remaking in testdirs.
17171         * gnulib-tool (func_create_testdir): Use workaround against 'autoheader'
17172         bug reported at <https://savannah.gnu.org/support/index.php?109406>.
17174 2017-10-29  Bruno Haible  <bruno@clisp.org>
17176         crypto/*: Verify that the header file is self-contained.
17177         * tests/test-gc-*.c: Include the module's header file immediately after
17178         <config.h>.
17179         * tests/test-hmac-*.c: Likewise.
17180         * tests/test-arcfour.c: Likewise.
17181         * tests/test-arctwo.c: Likewise.
17182         * tests/test-des.c: Likewise.
17183         * tests/test-md2.c: Likewise.
17184         * tests/test-md4.c: Likewise.
17185         * tests/test-md5.c: Likewise.
17186         * tests/test-rijndael.c: Likewise.
17187         * tests/test-sha1.c: Likewise.
17188         * tests/test-sm3.c: Likewise.
17190 2017-10-29  Jia Zhang  <qianyue.zj@alibaba-inc.com>
17191             Bruno Haible  <bruno@clisp.org>
17193         crypto/gc: fix build failure with -Werror=suggest-attribute=const
17194         * lib/gc.h (gc_hash_digest_length): Mark with 'const' attribute.
17196 2017-10-29  Jia Zhang  <qianyue.zj@alibaba-inc.com>
17198         New module: crypto/gc-sm3
17199         * lib/gc.h: Declare SM3-related stuffs.
17200         * lib/gc-gnulib.c: Support sm3 in internal functions.
17201         * lib/gc-libgcrypt.c: Support sm3 with libgcrypt.
17202         * m4/gc-sm3.m4: m4 file for gc-sm3 module.
17203         * modules/crypto/gc-sm3: Define gc-sm3 module.
17204         * tests/test-gc-sm3.c: Implement SM3 test case with libgcrypt.
17205         * modules/crypto/gc-sm3-tests: Define gc-sm3 test module.
17206         * MODULES.html.sh: List gc-sm3 module.
17208 2017-10-29  Bruno Haible  <bruno@clisp.org>
17210         random, random_r: Mention different prototypes on Haiku.
17211         * doc/posix-functions/random.texi: Mention different prototype on Haiku.
17212         * doc/glibc-functions/random_r.texi: Likewise.
17213         * doc/glibc-functions/initstate_r.texi: Likewise.
17214         * doc/glibc-functions/setstate_r.texi: Likewise.
17216 2017-10-28  Bruno Haible  <bruno@clisp.org>
17218         posix_spawn: Avoid spurious message in configure output.
17219         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Discard stderr output from
17220         'cmp' command.
17222 2017-10-28  Bruno Haible  <bruno@clisp.org>
17224         inet_ntop, inet_pton: Determine needed library correctly on Haiku.
17225         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Search also in libnetwork.
17226         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
17228 2017-10-28  Bruno Haible  <bruno@clisp.org>
17230         ioctl: Override non-POSIX declaration on Haiku.
17231         * m4/ioctl.m4 (gl_FUNC_IOCTL): Include also <unistd.h>.
17232         * lib/sys_ioctl.in.h: Add comment about Haiku.
17233         * doc/posix-functions/ioctl.texi: Mention Haiku problem.
17234         * doc/glibc-headers/sys_ioctl.texi: Likewise.
17236 2017-10-28  Bruno Haible  <bruno@clisp.org>
17238         crypto/sm3: Add overview documentation to the .h file.
17239         * lib/sm3.h: Add comments.
17241 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
17243         New module: crypto/sm3
17244         This new module can be used to compute SM3 message digest of files or
17245         memory blocks according to the specification GM/T 004-2012
17246         Cryptographic Hash Algorithm SM3, published by State Cryptography
17247         Administration, China.
17248         The official SM3 cryptographic hash algorithm specification is
17249         available at
17250         http://www.sca.gov.cn/sca/xwdt/2010-12/17/content_1002389.shtml
17251         * lib/sm3.h: Declare the APIs of sm3 module.
17252         * lib/sm3.c: Implement SM3 hash algorithm.
17253         * m4/sm3.m4: m4 file for sm3 module.
17254         * modules/crypto/sm3: Define sm3 module.
17255         * tests/test-sm3.c: Implement SM3 test case.
17256         * modules/crypto/sm3-tests: Define sm3 test module.
17257         * MODULES.html.sh: List sm3 module.
17259 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
17261         gc-libgcrypt: fix undefined enum type in switch statement
17262         Resolve the following build failure:
17263         lib/gc-libgcrypt.c: In function 'gc_hash_open':
17264         lib/gc-libgcrypt.c:317:5: error: case value '0' not in enumerated type
17265         'Gc_hash_mode {aka enum Gc_hash_mode}' [-Werror=switch]
17266              case 0:
17267              ^~~~
17268         * lib/gc.h (enum Gc_hash_mode): Add value GC_NULL.
17269         * lib/gc-libgcrypt.c (gc_hash_open): Use this enum value instead of 0.
17271 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
17273         gc-libgcrypt: fix assignment error due to -Werror=pointer-sign
17274         Resolve the following build failure:
17275         lib/gc-libgcrypt.c: In function 'gc_hash_read':
17276         lib/gc-libgcrypt.c:460:14: error: pointer targets in assignment differ
17277         in signedness [-Werror=pointer-sign]
17278             digest = gcry_md_read (ctx->gch, 0);
17279                    ^
17280         * lib/gc-libgcrypt.c (gc_hash_read): Cast result of gcry_md_read.
17282 2017-10-26  Bruno Haible  <bruno@clisp.org>
17284         havelib: Fix value of LD for 32-bit compilation on NetBSD/sparc64.
17285         * m4/lib-ld.m4 (AC_LIB_PROG_LD): On NetBSD/sparc64 with CC="gcc -m32",
17286         set LD to '/usr/bin/ld -m elf32_sparc', not '/usr/bin/ld'.
17288 2017-10-21  Paul Eggert  <eggert@cs.ucla.edu>
17290         glob: fix another heap buffer overflow
17291         Problem reported by Tim Rühsen in:
17292         https://sourceware.org/bugzilla/show_bug.cgi?id=22332
17293         * lib/glob.c (glob): Avoid buffer overrun when unescaping.
17295 2017-10-19  Paul Eggert  <eggert@cs.ucla.edu>
17297         quotearg: pacify compiler re unsigned
17298         * lib/quotearg.c (quotearg_n_options):
17299         Rewrite to avoid diagnostic from overly-picky compiler.
17300         Problem reported by Sami Kerola in:
17301         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00060.html
17303         glob: fix heap buffer overflow
17304         * lib/glob.c (glob): Fix off-by-one error introduced into
17305         glibc in commit dd7d45e838a42b0ed470c44b55901ea98d0c2bab
17306         dated 1997-10-29 20:33:40.  Problem reported by Tim Rühsen in:
17307         https://sourceware.org/bugzilla/show_bug.cgi?id=22320
17308         Fix suggested by Bruno Haible.
17310 2017-10-18  Paul Eggert  <eggert@cs.ucla.edu>
17312         glob: pacify fuzzer for mempcpy
17313         Problem reported by Tim Rühsen in:
17314         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00054.html
17315         * lib/glob.c (glob): Do not pass NULL to mempcpy.
17317 2017-10-12  Bruno Haible  <bruno@clisp.org>
17319         doc: Fix syntax error (regression from 2017-10-03).
17320         * doc/posix-functions/strncpy.texi: Fix syntax error.
17322 2017-10-12  Bruno Haible  <bruno@clisp.org>
17324         doc: Update for Solaris 11.3.
17325         * doc/**/*.texi: For bugs that exist in both Solaris 11.0 and 11.3,
17326         mention Solaris 11.3.
17327         * m4/log2.m4: Fix comments.
17328         * m4/log2f.m4: Likewise.
17329         * m4/printf.m4: Update comments.
17330         * m4/rename.m4: Likewise.
17331         * m4/strncat.m4: Likewise.
17333         all: Write "Solaris 11.0" instead of "Solaris 11 2011-11".
17335 2017-10-10  Bruno Haible  <bruno@clisp.org>
17337         doc: Improve doc about ioctl.
17338         * doc/posix-functions/ioctl.texi: Fix list of platforms with non-POSIX
17339         prototype.
17341 2017-10-09  Bruno Haible  <bruno@clisp.org>
17343         wcwidth: Don't use obsolete syntax of 'test'.
17344         Reported by Eric Blake.
17345         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Don't optimize two 'test'
17346         invocations into one, as POSIX marks '-a' and '-o' as "obsolescent".
17348 2017-10-09  Bruno Haible  <bruno@clisp.org>
17350         getopt-posix: Fix build failure when using ac_cv_header_getopt_h=no.
17351         Reported by Christian Ehrhardt <christian.ehrhardt@canonical.com>
17352         and Daniel P. Berrange <berrange@redhat.com>.
17353         * lib/unistd.in.h (getopt): Don't attempt to avoid namespace pollution
17354         on glibc systems. The getopt-pfx-core.h file declares exactly what
17355         unistd.h needs, nothing more.
17357 2017-10-08  Bruno Haible  <bruno@clisp.org>
17359         vma-iter: Improve support for FreeBSD.
17360         * lib/vma-iter.c (vma_iterate_proc): New function, extracted from
17361         vma_iterate.
17362         (vma_iterate): Use it. For FreeBSD, try vma_iterate_bsd first.
17364 2017-10-08  Bruno Haible  <bruno@clisp.org>
17366         vma-iter: Fix truncated result on NetBSD (regression from 2017-10-07).
17367         * lib/vma-iter.c (MIN_LEFTOVER): Define to 1, not 0.
17369 2017-10-07  KO Myung-Hun  <komh@chollian.net>
17371         test-framework-sh: Fix 'invalid path dir' error.
17372         On OS/2, a path separator is ';' not ':'. And ':' is used as a
17373         separator between a drive letter and directory parts.
17374         As a result, an absolute path such as x:/path/to/dir on OS/2 is
17375         treated as an invalid path dir.
17376         * tests/init.sh (PATH_SEPARATOR): Set at startup.
17377         (path_prepend_): '?:*' is also an absolute path. Use $PATH_SEPARATOR
17378         instead of hard coded ':'.
17380 2017-10-07  Bruno Haible  <bruno@clisp.org>
17382         vma-iter: Fix truncated result on Linux (regression from 2017-09-26).
17383         * lib/vma-iter.c (MIN_LEFTOVER): New macro.
17384         (STACK_ALLOCATED_BUFFER_SIZE): Set to a minimal value if not needed.
17385         (rof_open): On Linux, do multiple read() calls and make sure
17386         MIN_LEFTOVER bytes are left when read() returns.
17388 2017-10-07  Bruno Haible  <bruno@clisp.org>
17390         vma-iter: Improve support for GNU/Hurd.
17391         * lib/vma-iter.c (vma_iterate): On GNU/Hurd, use the Mach vm_region()
17392         API, not the /proc file system.
17394 2017-10-07  Bruno Haible  <bruno@clisp.org>
17396         test-framework-sh: Don't require bash on Windows and OS/2.
17397         Reported by KO Myung-Hun.
17398         * tests/test-init.sh: Use 'shopt' only when running in bash.
17400 2017-10-06  KO Myung-Hun  <komh@chollian.net>
17402         wcwidth: check a macro version of wcwidth () as well
17403         * lib/wchar.in.h: Revert commit from 2016-01-14.
17404         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test if wcwidth is a macro.
17406 2017-10-06  Bruno Haible  <bruno@clisp.org>
17408         getopt-posix: Clarify copyright header.
17409         * lib/getopt.in.h: Don't state that gnulib is under LGPL.
17410         * lib/getopt-pfx-core.h: Likewise.
17411         * lib/getopt-pfx-ext.h: Likewise.
17412         * lib/getopt-cdefs.in.h: Likewise.
17414 2017-10-03  Bruno Haible  <bruno@clisp.org>
17416         Fix warning "`gl_HOST_CPU_C_ABI' was expanded before it was required".
17417         * modules/host-cpu-c-abi (configure.ac): Require, don't invoke
17418         gl_HOST_CPU_C_ABI.
17420 2017-10-03  Bruno Haible  <bruno@clisp.org>
17422         doc: warn about misuse of strncpy and wcsncpy.
17423         * doc/posix-functions/strcpy.texi: Describe requirements on prior
17424         memory allocation.
17425         * doc/posix-functions/wcscpy.texi: Likewise.
17426         * doc/posix-functions/strncpy.texi: Describe what this function is not
17427         useful for.
17428         * doc/posix-functions/wcsncpy.texi: Likewise.
17430 2017-10-02  Paul Eggert  <eggert@cs.ucla.edu>
17432         fsuage: fix typo in previous change
17433         * lib/fsusage.c: Remove stray include of full-read.h.
17434         Problem reported by Sam Steingold for macOS (Bug#28669).
17436 2017-10-01  Paul Eggert  <eggert@cs.ucla.edu>
17438         fsusage: remove SVR2 support
17439         SVR2 was obsolete by 1986 and is no longer supported by anybody,
17440         and its code was getting in the way of use of this module by
17441         Emacs, which has its own ‘read’ function anyway.
17442         * lib/fsusage.c: Do not include sys/filsys.h.
17443         (get_fs_usage): Remove SVR2-specific code.
17444         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE):
17445         Do not test for sys/filsys.h or set STAT_READ_FILSYS.
17446         * modules/fsusage (Depends-on): Do not depend on full-read.
17448         Simplify autoupdate of licenses
17449         * config/srclistvars.sh (GNUWWWLICENSES): Move to a more-typical
17450         place.
17452 2017-10-01  Bruno Haible  <bruno@clisp.org>
17454         vma-iter: Add support for GNU/Hurd.
17455         * lib/vma-iter.c: Treat GNU/Hurd like Linux.
17456         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on GNU/kFreeBSD.
17458 2017-09-30  Bruno Haible  <bruno@clisp.org>
17460         vma-iter: Make it work on 32-bit Solaris with module 'largefile'.
17461         * modules/vma-iter: Don't test for sys/procfs.h, as this test would
17462         fail when module 'largefile' is in use.
17463         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Don't test HAVE_SYS_PROCFS_H.
17464         * lib/vma-iter.c: Undefine _FILE_OFFSET_BITS early.
17465         Don't test HAVE_SYS_PROCFS_H.
17467 2017-09-30  Bruno Haible  <bruno@clisp.org>
17469         havelib: Make it work for CC="gcc -m32" (regression from 2017-02-19).
17470         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Require gl_HOST_CPU_C_ABI.
17471         When $CC produces 32-bit code, set acl_libdirstem to 'lib', not 'lib64'.
17472         * modules/havelib (Depends-on): Add host-cpu-c-abi.
17474 2017-09-30  Bruno Haible  <bruno@clisp.org>
17476         uniname/uniname: Don't assume C99 compiler (regression from 2015-02-16).
17477         * lib/uniname/uniname.c (unicode_name_character): Add braces around
17478         scope of local variables.
17480 2017-09-28  Bruno Haible  <bruno@clisp.org>
17482         string: code style
17483         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Reorder list of
17484         substitutable variables.
17485         * modules/string (Makefile.am): Likewise.
17487 2017-09-26  Bruno Haible  <bruno@clisp.org>
17489         uniname/uniname-tests: Tighten code.
17490         * tests/uniname/test-uninames.c (fill_names, fill_aliases): Merge two
17491         local variables into one.
17493 2017-09-26  Bruno Haible  <bruno@clisp.org>
17495         vma-iter: Improvements for Linux and BSD platforms.
17496         - Add support for DragonFly BSD.
17497         - Make it more reliable on Linux, GNU/kFreeBSD, FreeBSD, NetBSD.
17498         * lib/vma-iter.c (struct rofile, rof_open, rof_peekchar, rof_close):
17499         Read the entire file into memory in a single system call.
17500         (vma_iterate): Update. Read from /proc on DragonFly BSD like on FreeBSD.
17501         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on DragonFly BSD.
17503 2017-09-26  Bruno Haible  <bruno@clisp.org>
17505         vma-iter: Provide the protection flags on FreeBSD.
17506         * lib/vma-iter.c (vma_iterate) [FreeBSD]: When reading from /proc,
17507         skip three fields between the addresses and the protection flags.
17509 2017-09-26  Paul Eggert  <eggert@cs.ucla.edu>
17511         glob: remove bogus extern decl
17512         * lib/glob.c (__glob_pattern_type): Remove now-spurious
17513         extern declaration.  Problem reported by Adhemerval Zanella in:
17514         https://sourceware.org/ml/libc-alpha/2017-09/msg00972.html
17516 2017-09-25  Paul Eggert  <eggert@cs.ucla.edu>
17518         uniname/uniname-tests: integer overflow fix
17519         * tests/uniname/test-uninames.c (fill_names, fill_aliases):
17520         Check for integer overflow.
17522         duplocale-tests: fix unlikely crash
17523         * tests/test-duplocale.c (get_locale_dependent_values):
17524         Don’t crash with absurdly long month names.
17526         maint: fix overflow checking in nap.h
17527         * modules/chown-tests:
17528         * modules/fchownat-tests, modules/fdutimensat-tests:
17529         * modules/futimens-tests, modules/lchown-tests:
17530         * modules/stat-time-tests, modules/utime-tests:
17531         * modules/utimens-tests, modules/utimensat-tests:
17532         Depend on intprops.
17533         * tests/nap.h: Include intprops.h.
17534         (diff_timespec): Handle overflow properly.
17536         sys_types: update URL
17537         * m4/sys_types_h.m4: Use https: URL.
17539         parse-datetime: fix dependency
17540         * modules/parse-datetime (Depends-on): Depend
17541         on nstrftime, not strftime.
17543         parse-datetime, posixtm: avoid uninit access
17544         * lib/parse-datetime.y (parse_datetime2):
17545         * lib/posixtm.c (posixtime):
17546         Do not access uninitialized storage, even though the resulting
17547         value is never used.
17549 2017-09-25  Bruno Haible  <bruno@clisp.org>
17551         vma-iter: Improvements for BSD platforms.
17552         - Add support for GNU/kFreeBSD.
17553         - Make it work on FreeBSD and NetBSD even when /proc is not mounted.
17554         - Speed up on OpenBSD.
17555         * lib/vma-iter.c (struct rofile, rof*): Define also on GNU/kFreeBSD.
17556         (vma_iterate_bsd): New function.
17557         (vma_iterate): Use it as fallback on FreeBSD and NetBSD. Use it as
17558         first choice on OpenBSD. Treat GNU/kFreeBSD like Linux.
17559         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on GNU/kFreeBSD.
17560         * modules/vma-iter (configure.ac): Require AC_C_INLINE.
17562 2017-09-23  Bruno Haible  <bruno@clisp.org>
17564         strfmon_l: New module.
17565         * modules/strfmon_l: New file.
17566         * lib/strfmon_l.c: New file.
17567         * m4/strfmon_l.m4: New file.
17568         * doc/posix-functions/strfmon_l.texi: Mention the new module.
17569         * modules/strfmon_l-tests: New file.
17570         * tests/test-strfmon_l.c: New file.
17572         monetary: New module.
17573         * modules/monetary: New file.
17574         * lib/monetary.in.h: New file.
17575         * m4/monetary_h.m4: New file.
17576         * doc/posix-headers/monetary.texi: Mention the new module.
17577         * modules/monetary-tests: New file.
17578         * tests/test-monetary.c: New file.
17579         * modules/monetary-c++-tests: New file.
17580         * tests/test-monetary-c++.cc: New file.
17581         * modules/duplocale-tests (configure.ac): Use AC_CHECK_HEADERS_ONCE.
17583 2017-09-23  Bruno Haible  <bruno@clisp.org>
17585         duplocale tests: Fix test crash on Linux/x86.
17586         * tests/test-duplocale.c (test_with_uselocale): Disconnect the mixed2
17587         locale from the current thread before freeing it.
17589 2017-09-21  Paul Eggert  <eggert@cs.ucla.edu>
17591         mktime: port to OpenVMS
17592         Problem reported by John E. Malmberg in:
17593         https://lists.gnu.org/r/bug-gnulib/2017-09/msg00100.html
17594         * m4/mktime.m4 (TIME_T_IS_SIGNED): Default to 0.
17596 2017-09-16  Paul Eggert  <eggert@cs.ucla.edu>
17598         manywarnings: port to GCC on 64-bit MS-Windows
17599         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Work better if
17600         LONG_MAX < PTRDIFF_MAX.  Problem reported by Richard Copley in:
17601         https://lists.gnu.org/r/emacs-devel/2017-09/msg00392.html
17603 2017-09-13  Bruno Haible  <bruno@clisp.org>
17605         all: Replace many more http URLs by https URLs. Update stale URLs.
17606         * users.txt: Remove mention of 'newts'.
17607         * lib/localename.c: Update comment about LANG_SOTHO.
17609 2017-09-13  Paul Eggert  <eggert@cs.ucla.edu>
17611         all: Replace many http URLs by https URLs.
17613 2017-09-12  Bruno Haible  <bruno@clisp.org>
17615         doc: Prefer https URLs where possible.
17616         * doc/**/*.texi: Use https URLs instead of http URLs where possible.
17617         * doc/ld-output-def.texi: Remove unavailable URL.
17619 2017-09-12  Paul Eggert  <eggert@cs.ucla.edu>
17621         maintainer-makefile: FTP -> HTTPS
17622         * top/maint.mk (url_dir_list, ftp-gnu): Use HTTPS protocol instead
17623         of FTP, which is planned to be decommissioned on 2017-11-01.
17625 2017-09-12  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
17627         libc-config: Fix __GNUC_PREREQ macro.
17628         * lib/libc-config.h (__GNUC_PREREQ): Use __GNUC_MINOR__, not
17629         __GNUC_MINOR.
17631 2017-09-09  Bruno Haible  <bruno@clisp.org>
17633         gnulib-tool: Simplify commit from 2015-08-20.
17634         * gnulib-tool (func_add_or_update): Remove local variable
17635         is_binary_file.
17637 2017-09-08  Bruno Haible  <bruno@clisp.org>
17639         stddef: Avoid conflict with system-defined max_align_t.
17640         The configure-determined HAVE_MAX_ALIGN_T may not always be accurate.
17641         Reported by Werner Lemberg <wl@gnu.org> in
17642         <https://lists.gnu.org/r/bug-gnulib/2017-08/msg00185.html>.
17643         * lib/stddef.in.h (rpl_max_align_t): Renamed from max_align_t.
17644         (max_align_t): Define as a macro.
17645         (GNULIB_defined_max_align_t): New macro. Guards against multiple
17646         definitions of rpl_max_align_t in different copies of gnulib-generated
17647         <stddef.h>.
17649 2017-09-05  Paul Eggert  <eggert@cs.ucla.edu>
17651         libc-config: port to MSVC
17652         Problems reported by Gisle Vanem in:
17653         http://lists.gnu.org/r/bug-gnulib/2017-09/msg00016.html
17654         * lib/libc-config.h (__inline): Don't define if HAVE___INLINE.
17655         (libc_hidden_proto): Stick to Standard C syntax for varargs macro.
17656         * m4/__inline.m4: New file.
17657         * modules/libc-config (Files): Add it.
17658         (Depends-on): Use it.
17660         glob: Use enum for __glob_pattern_type result
17661         From a patch proposed by Adhemerval Zanella in:
17662         https://sourceware.org/ml/libc-alpha/2017-09/msg00212.html
17663         * lib/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
17664         (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
17665         * lib/glob_internal.h (__glob_pattern_type):
17666         * lib/glob.c (glob):
17667         * lib/glob_pattern_p.c (__glob_pattern_p):
17668         Use them.
17670         glob: fix for use in glibc
17671         Problem reported by Adhemerval Zanella in:
17672         https://sourceware.org/ml/libc-alpha/2017-09/msg00213.html
17673         * lib/glob.c (DT_UNKNOWN, DT_DIR, DT_LINK):
17674         Do not redefine if _LIBC.
17676 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
17678         glob: fix bugs with long login names
17679         Problem reported by Adhemerval Zanella in:
17680         https://sourceware.org/ml/libc-alpha/2017-08/msg00455.html
17681         * lib/glob.c (GET_LOGIN_NAME_MAX): Remove.
17682         (glob): Use the same scratch buffer for both getlogin_r and
17683         getpwnam_r.  Don’t require preallocation of the login name.  This
17684         simplifies storage allocation, and corrects the handling of
17685         long login names.
17687 2017-09-02  Bruno Haible  <bruno@clisp.org>
17689         dirent: Update doc.
17690         * doc/posix-headers/dirent.texi: More concrete list of platforms.
17692 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
17694         glob: fix getpwnam_r errno typo
17695         * lib/glob.c (glob): Fix longstanding misuse of errno after
17696         getpwnam_r, which returns an error number rather than setting
17697         errno.
17699         glob: fix typo in recent change
17700         * lib/glob.c (glob) [!HAVE_GETPWNAM_R && !_LIBC]:
17701         Fix recently-introduced typo.
17703 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
17705         glob: don't save and restore errno unnecessarily
17706         * lib/glob.c (glob): Don't save and restore errno
17707         merely because we have getpwnam_r.
17709         glob: don't assume getpwnam_r
17710         * lib/glob.c (glob): Port recent patches to platforms
17711         lacking getpwnam_r.
17713         scratch_buffer: don’t use private glibc API
17714         Suggested by Florian Weimer in:
17715         http://lists.gnu.org/r/bug-gnulib/2017-09/msg00004.html
17716         * lib/scratch_buffer.h: Rename to lib/malloc/scratch_buffer.h.
17717         * lib/scratch_buffer_grow.c: Rename to
17718         lib/malloc/scratch_buffer_grow.c.
17719         * lib/scratch_buffer_grow_preserve.c: Rename to
17720         lib/malloc/scratch_buffer_grow_preserve.c.
17721         * lib/scratch_buffer_set_array_size.c: Rename to
17722         lib/malloc/scratch_buffer_set_array_size.c.
17723         * lib/scratch_buffer.h: New file.
17724         * modules/scratch_buffer (Files, Makefile.am):
17725         Adjust to source-file renaming.
17727 2017-09-01  Paul Eggert  <eggert@cs.ucla.edu>
17729         glob: use scratch_buffer instead of extend_alloca
17730         Much of the lib/glob.c part of this patch comes from a glibc patch
17731         proposed by Adhemerval Zanella in:
17732         https://sourceware.org/ml/libc-alpha/2017-08/msg00456.html
17733         * lib/glob.c: Do not include <config.h>, since <libc-config.h>,
17734         included via glob.h, does this for us now.
17735         (__set_errno): Remove, as libc-config does this for us now.
17736         Include <scratch_buffer.h>.
17737         (GETPW_R_SIZE_MAX): Remove.
17738         (glob): Use struct scratch_buffer instead of extend_alloca.
17739         * lib/glob.in.h: Include libc-config.h rather than
17740         including <sys/cdefs.h> conditionally.
17741         (__BEGIN_DECLS, __END_DECLS, __THROW, __THROWNL, attribute_hidden)
17742         (__glibc_unlikely, __restrict, weak_alias):
17743         Remove, as libc-config does this for us now.
17744         * m4/glob.m4 (gl_PREREQ_GLOB):
17745         Remove sys/cdefs.h tests; no longer needed.
17746         * modules/glob (Depends-on): Add libc-config, scratch_buffer.
17747         (glob.h): Do not replace HAVE_SYS_CDEFS_H.
17749         scratch_buffer: new module
17750         * lib/scratch_buffer.h, lib/scratch_buffer_grow.c:
17751         * lib/scratch_buffer_grow_preserve.c:
17752         * lib/scratch_buffer_set_array_size.c:
17753         New files, copied from glibc with very minor changes that can be
17754         copied back.
17755         * modules/scratch_buffer: New file.
17757         libc-config: new module
17758         * MODULES.html.sh: Add libc-config.
17759         * lib/cdefs.h: New file, copied from the GNU C Library with very
17760         minor changes that can be copied back.
17761         * lib/libc-config.h, modules/libc-config: New files.
17763 2017-08-31  Paul Eggert  <eggert@cs.ucla.edu>
17765         glob: match dangling symlinks
17766         This fixes a bug I inadvertently introduced to Gnulib when I
17767         merged glibc glob back into gnulib on 2007-10-16.  This fix is
17768         inspired by a patch proposed for glibc by Adhemerval Zanella in:
17769         https://sourceware.org/ml/libc-alpha/2017-08/msg00446.html
17770         * doc/posix-functions/glob.texi: Update list of affected platforms.
17771         * lib/glob.c (__lstat64): New macro.
17772         (is_dir): New function.
17773         (glob, glob_in_dir): Match symlinks even if they are dangling.
17774         (link_stat, link_exists_p): Remove.  All uses removed.
17775         * lib/glob.in.h (__attribute_noinline__): Remove; no longer used.
17776         * m4/glob.m4 (gl_PREREQ_GLOB): Do not check for fstatat.
17777         * modules/glob-tests (Depends-on): Add symlink.
17778         * tests/test-glob.c: Include errno.h, unistd.h.
17779         (BASE): New macro.
17780         (main): Test dangling symlinks, if symlinks are supported.
17782         glob, backupfile: inode 0 is a valid inode number
17783         * doc/posix-functions/readdir.texi (readdir):
17784         * doc/posix-headers/dirent.texi (dirent.h):
17785         Document more readdir portability issues.
17786         * lib/backupfile.c (REAL_DIR_ENTRY): Remove.
17787         (numbered_backup): Don’t treat inode 0 any differently from
17788         other inode values.
17789         * lib/glob.c (struct readdir_result): Remove skip_entry member.
17790         (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
17791         All uses removed.
17792         * modules/glob (Depends-on): Remove d-ino.
17794         glob: simplify symlink detection
17795         * lib/glob.c (dirent_type): New type.  Use uint_fast8_t not
17796         uint8_t, as C99 does not require uint8_t.
17797         (struct readdir_result): Use it.  Do not define skip_entry unless
17798         it is needed; this saves a byte on platforms lacking d_ino.
17799         (readdir_result_type, readdir_result_skip_entry):
17800         New functions, replacing ...
17801         (readdir_result_might_be_symlink, readdir_result_might_be_dir):
17802         ... these functions, which were removed.  This makes the callers
17803         easier to read.  All callers changed.
17804         (D_INO_TO_RESULT): Now empty if there is no d_ino.
17806 2017-08-30  Pádraig Brady  <P@draigBrady.com>
17808         fts-tests: tag as a longrunning-test so not included by default
17809         * modules/fts-tests: This test takes about 20s on current systems,
17810         and uses about 285M of space on ext4.
17812 2017-08-30  Pádraig Brady  <P@draigBrady.com>
17814         renameat2: fix compilation on alpine linux
17815         * m4/renameat.m4: Check for <linux/fs.h> presence.
17816         * lib/renameat2.h: Only include <linux/fs.h> if present.
17817         Reported by Assaf Gordon on Alpine Linux.
17819 2017-08-24  Paul Eggert  <eggert@cs.ucla.edu>
17821         glob: try to port recent changes to MS-Windows
17822         Problem reported by Bruno Haible in:
17823         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00170.html
17824         * lib/glob.c (__glob_pattern_p) [!_LIBC]: Move from here ...
17825         * lib/glob.in.h (__glob_pattern_p): ... to here.
17827 2017-08-24  Eric Blake  <eblake@redhat.com>
17829         warnings: fix compilation with old autoconf
17830         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C))
17831         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++)): Use m4_defun rather than
17832         AC_DEFUN.
17833         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C))
17834         (gl_MANYWARN_ALL_GCC(C++)): Likewise.
17836 2017-08-24  Bruno Haible  <bruno@clisp.org>
17838         glob: Fix compilation error on NetBSD 7.0 and OpenBSD 6.0.
17839         * modules/glob (Depends-on): Add c99.
17841 2017-08-24  Paul Eggert  <eggert@cs.ucla.edu>
17843         glob: fix typo that broke platforms lacking d_ino
17844         This typo also hurt performance on GNU/Linux and similar hosts.
17845         * lib/glob.c (D_INO_TO_RESULT): Fix typo (reversed ifdef)
17846         in previous change.
17848 2017-08-23  Paul Eggert  <eggert@cs.ucla.edu>
17850         glob: merge from glibc with Zanella glob changes
17851         Merge glob from glibc, with changes for glob proposed
17852         by Adhemerval Zanella in the thread starting here:
17853         https://sourceware.org/ml/libc-alpha/2017-08/msg01079.html
17854         plus some fixes for this merge.
17855         * lib/glob_internal.h, lib/glob_pattern_p.c, lib/globfree.c:
17856         New files, ported from glibc.
17857         * lib/glob-libc.h (_Restrict_): Remove.  All uses replaced
17858         with __restrict.
17859         (__size_t): Remove.  All uses replaced by size_t.
17860         (size_t): Define by defining __need_size_t and including <stddef.h>.
17861         This should work even in non-glibc platforms, where any name
17862         pollution is OK.
17863         Use __USE_MISC instead of __USE_BSD || __USE_GNU.
17864         (struct stat64): Don’t worry about __GLOB_GNULIB.
17865         (glob, globfree, glob_pattern_p): Remove macros for
17866         __USE_FILE_OFFSET64 && __GNUC__ < 2 && !defined __GLOB_GNULIB
17867         case.  Remove _GL_ARG_NONNULL as GNU behavior is to accept NULL
17868         but set errno.
17869         * lib/glob.c (_GL_ARG_NONNULL) [!_LIBC]: Remove.  All uses
17870         removed since the glibc behavior works on null pointers.
17871         Do not include stdio.h; old SunOS is irrelevant now.
17872         Do not worry about GLOB_ONLY_P as we now mimic glibc here.
17873         Include glob_internal.h.
17874         (D_INO_TO_RESULT): Depend on (_LIBC || D_INO_IN_DIRENT), not
17875         ((POSIX || WINDOWS32) && !__GNU_LIBRARY__).  The latter probably
17876         worked only coincidentally.
17877         (attribute_hidden, __attribute_noinline__, __glibc_unlikely):
17878         Remove macros; now done in glob.in.h.
17879         (size_add_wrapv): Do not use __builtin_add_overflow if __ICC.
17880         (glob): Properly initialize glob structure with
17881         GLOB_BRACE|GLOB_DOOFFS (bug 20707).
17882         Remove old code using SHELL since Bash no longer
17883         uses this.
17884         (glob, prefix_array): Separate MS code better.
17885         (glob, glob_in_dir): Use C99 decls before statements when glibc
17886         does.
17887         (glob_in_dir): Remove old Amiga and VMS code.
17888         (globfree, __glob_pattern_type, __glob_pattern_p): Move to
17889         separate files.
17890         * lib/glob.in.h (attribute_hidden, __attribute_noinline__)
17891         (__glibc_unlikely):
17892         Move here from glob.c.
17893         (__restrict): New macro here, replacing the _Restrict_ in glob.c.
17894         (weak_alias): New macro.
17895         (__size_t): Remove.  All uses replaced by size_t.
17896         * modules/d-ino (License): Now LGPLv2+, for compatibility with glob.
17897         * modules/glob (Files): Add +lib/glob_internal.h,
17898         lib/glob_pattern_p.c, lib/globfree.c.
17899         (Depends-on): Remove snippet/arg-nonnull.
17901 2017-08-22  Paul Eggert  <eggert@cs.ucla.edu>
17903         glob: port to clang's Undefined Sanitizer
17904         Problem reported by Tim Rühsen in:
17905         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00144.html
17906         * lib/glob.c (FLEXIBLE_ARRAY_MEMBER) [_LIBC]: Define to empty.
17907         (glob_in_dir): Do not rely on undefined behavior in accessing
17908         struct members beyond their bounds.  Use a flexible array member
17909         instead.
17911 2017-08-21  Paul Eggert  <eggert@cs.ucla.edu>
17913         vc-list-files: port to Solaris 10
17914         * build-aux/vc-list-files: Don't assume test -e works.
17916 2017-08-21  Karl Berry  <karl@freefriends.org>
17918         * doc/posix-functions/srandom.texi (srandom): typo }.
17920 2017-08-20  Paul Eggert  <eggert@cs.ucla.edu>
17922         git-version-gen: port to Solaris 10
17923         Problem reported by Dagobert Michelsen in:
17924         http://lists.gnu.org/r/grep-devel/2017-08/msg00002.html
17925         * build-aux/git-version-gen (v_from_git):
17926         Use expr instead of shell substitution.
17928 2017-08-19  Bruno Haible  <bruno@clisp.org>
17930         host-cpu-c-abi: Improve detection of MIPS ABI.
17931         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): For MIPS, test the value of
17932         _MIPS_SIM.
17934 2017-08-17  Bruno Haible  <bruno@clisp.org>
17936         hypot tests: Fix test failure on FreeBSD 11.0/x86.
17937         * tests/test-hypot.h (test_function): Declare z as 'volatile'.
17939 2017-08-17  Bruno Haible  <bruno@clisp.org>
17941         float: Fix LDBL_MIN value on FreeBSD/x86.
17942         * lib/float.in.h (LDBL_MIN) [__FreeBSD__]: Add more precision.
17944 2017-08-17  Bruno Haible  <bruno@clisp.org>
17946         random: Fix test compilation failure on Cygwin 1.5.25.
17947         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_INITSTATE,
17948         HAVE_DECL_SETSTATE.
17949         * m4/random.m4 (gl_FUNC_RANDOM): Test whether initstate and setstate are
17950         declared.
17951         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_INITSTATE,
17952         HAVE_DECL_SETSTATE.
17953         * lib/stdlib.in.h (initstate): Declare also if HAVE_DECL_INITSTATE is 0.
17954         (setstate): Declare also if HAVE_DECL_SETSTATE is 0.
17955         * doc/posix-functions/initstate.texi: Mention the Cygwin 1.5.x problem.
17956         * doc/posix-functions/random.texi: Likewise.
17957         * doc/posix-functions/setstate.texi: Likewise.
17958         * doc/posix-functions/srandom.texi: Likewise.
17960 2017-08-16  Bruno Haible  <bruno@clisp.org>
17962         stdnoreturn: Fix test compilation failure on Cygwin.
17963         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): On Cygwin, use gnulib's
17964         <stdnoreturn.h> replacement.
17965         * lib/stdnoreturn.in.h (noreturn): Treat Cygwin like MSVC.
17966         * doc/posix-headers/stdnoreturn.texi: Mention the Cygwin problem.
17968 2017-08-16  Bruno Haible  <bruno@clisp.org>
17970         thread: Fix conflict with pthread_sigmask module.
17971         * lib/glthread/thread.h (pthread_sigmask): Don't declare it weak if
17972         it's defined as a macro.
17973         * modules/thread (Depends-on): Add pthread_sigmask.
17975 2017-08-16  Paul Eggert  <eggert@cs.ucla.edu>
17977         rename: port better to NetBSD
17978         * doc/posix-functions/rename.texi (rename): NetBSD 7
17979         does not have the link-count bug.
17980         * m4/rename.m4 (gl_FUNC_RENAME): Don’t consider NetBSD to be
17981         broken merely because rename ("a", "b") removes "a" when the two
17982         names are hard links to the same file.
17984 2017-08-16  Bruno Haible  <bruno@clisp.org>
17986         iconv_open, uni*: Add support for VPATH builds with OpenBSD 'make'.
17987         * modules/iconv_open (Makefile.am): In the rules that use gperf, prefix
17988         the target file names with '$(srcdir)/'.
17989         * modules/unicase/locale-language (Makefile.am): Likewise.
17990         * modules/unicase/special-casing (Makefile.am): Likewise.
17991         * modules/unictype/bidiclass-byname (Makefile.am): Likewise.
17992         * modules/unictype/category-byname (Makefile.am): Likewise.
17993         * modules/unictype/combining-class-byname (Makefile.am): Likewise.
17994         * modules/unictype/joininggroup-byname (Makefile.am): Likewise.
17995         * modules/unictype/joiningtype-byname (Makefile.am): Likewise.
17996         * modules/unictype/property-byname (Makefile.am): Likewise.
17997         * modules/unictype/scripts (Makefile.am): Likewise.
17998         * modules/uninorm/composition (Makefile.am): Likewise.
18000 2017-08-16  Bruno Haible  <bruno@clisp.org>
18002         nonblocking-socket tests: Fix failure on OpenBSD 6.0.
18003         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE): Increase
18004         value for OpenBSD.
18006 2017-08-16  Bruno Haible  <bruno@clisp.org>
18008         rename, renameat: Update doc regarding NetBSD.
18009         * doc/posix-functions/rename.texi: Clarify that when using
18010         -D_XOPEN_SOURCE=500 on NetBSD 7.0, the hard link bug is gone.
18011         * doc/posix-functions/renameat.texi: Be more precise about NetBSD
18012         version.
18014 2017-08-15  Paul Eggert  <eggert@cs.ucla.edu>
18016         renameat2: port better to macOS
18017         * lib/renameat2.c (renameat2): Use renameatx_np if available.
18019         futimens: don’t assume struct timespec layout
18020         * m4/futimens.m4 (gl_FUNC_FUTIMENS):
18021         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT):
18022         * tests/test-fdutimensat.c (main):
18023         * tests/test-futimens.h (test_futimens):
18024         * tests/test-lutimens.h (test_lutimens):
18025         * tests/test-utimens.h (test_utimens):
18026         * tests/test-utimensat.c (main):
18027         Don’t assume that struct timespec is a two-member structure in
18028         tv_sec, tv_nsec order.  Although this is true on all platforms we
18029         know about, POSIX does not guarantee it.
18031         rename: document+test NetBSD rename
18032         Test failure reported by Bruno Haible in:
18033         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00104.html
18034         This is an area where NetBSD is better-behaved than POSIX,
18035         so allow the NetBSD behavior in tests.
18036         * doc/posix-functions/rename.texi:
18037         * doc/posix-functions/renameat.texi: Document NetBSD behavior.
18038         * tests/test-rename.h (test_rename): Allow NetBSD behavior.
18040 2017-08-15  Bruno Haible  <bruno@clisp.org>
18042         renameat: Ensure declaration in <stdio.h> on NetBSD.
18043         * lib/stdio.in.h: Include <unistd,h> also on NetBSD.
18044         * doc/posix-functions/renameat.texi: Mention this problem.
18046 2017-08-15  Bruno Haible  <bruno@clisp.org>
18048         duplocale: Work around NetBSD 7.0 bug.
18049         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Test against the NetBSD 7.0 bug.
18050         * lib/duplocale.c: Add comment about NetBSD problem.
18051         * doc/posix-functions/duplocale.texi: Mention the NetBSD problem.
18053 2017-08-15  Bruno Haible  <bruno@clisp.org>
18055         duplocale tests: Verify use with *_l functions.
18056         * modules/duplocale-tests (configure.ac): Test for uselocale and
18057         some *_l functions.
18058         * tests/test-duplocale.c (test_with_uselocale): New function, extracted
18059         from main.
18060         (get_locale_dependent_values_from, test_with_locale_parameter): New
18061         functions.
18062         (main): Test both test_with_uselocale and test_with_locale_parameter.
18064 2017-08-15  Bruno Haible  <bruno@clisp.org>
18066         extensions: Enable NetBSD specific extensions.
18067         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _NETBSD_SOURCE.
18069 2017-08-14  Bruno Haible  <bruno@clisp.org>
18071         open, openat: Update doc about O_CLOEXEC.
18072         * doc/posix-functions/open.texi: More concrete list of platforms.
18073         * doc/posix-functions/openat.texi: Likewise.
18075 2017-08-14  Paul Eggert  <eggert@cs.ucla.edu>
18077         open: support O_CLOEXEC
18078         * NEWS, doc/posix-functions/open.texi:
18079         * doc/posix-functions/openat.texi: Document this.
18080         * lib/fcntl.in.h (O_CLOEXEC): Default to a nonzero value.
18081         (GNULIB_defined_O_CLOEXEC): New symbol.
18082         * lib/open.c: Include cloexec.h.
18083         (open): Support O_CLOEXEC.
18084         * lib/openat.c: Include cloexec.h.
18085         (rpl_openat): Support O_CLOEXEC.
18086         * lib/popen-safer.c: Do not include cloexec.h.
18087         (open_noinherit): Remove.
18088         (popen_safer): Use O_CLOEXEC instead of set_cloexec_flag.
18089         * lib/save-cwd.c: Do not include cloexec.h.
18090         (save_cwd): Use O_CLOEXEC instead of set_cloexec_flag.
18091         * m4/open-cloexec.m4: New file.
18092         * m4/open.m4 (gl_FUNC_OPEN): Require gl_PREPROC_O_CLOEXEC.
18093         Replace 'open' if O_CLOEXEC is not present.
18094         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_PREPROC_O_CLOEXEC.
18095         Replace 'openat' if O_CLOEXEC is not present.
18096         * modules/freopen (Depends-on): Depend on 'open' if replacing freopen.
18097         * modules/open (Files): Add m4/open-cloexec.m4.
18098         (Depends-on): Depend on cloexec if replacing 'open'.
18099         * modules/openat (Files): Add m4/open-cloexec.m4.
18100         (Depends-on): Depend on cloexec if replacing openat.
18101         * modules/popen-safer (Depends-on): Remove cloexec.
18102         * modules/save-cwd (Depends-on): Remove cloexec, and add
18103         fd-safer-flag and 'open'.
18105 2017-08-13  Paul Eggert  <eggert@cs.ucla.edu>
18107         reallocarray: minor fixes
18108         * doc/glibc-functions/reallocarray.texi: Update version numbers.
18109         * m4/reallocarray.m4 (gl_FUNC_REALLOCARRAY): Don't trust _cv_ contents.
18110         * modules/reallocarray (License): Change from GPL to LGPL.
18111         * tests/test-reallocarray.c (main): Fix ENOMEM typo.
18112         Indent properly and don't use tabs.
18114 2017-08-13  Darshit Shah  <darnir@gnu.org>
18116         reallocarray: New module
18117         reallocarray is a new function in glibc 2.26 to safely allocate an array
18118         of memory locations with integer overflow protection.
18119         * MODULES.html.sh: Add reallocarray.
18120         * doc/glibc-functions/reallocarray.texi: Documentation for reallocarray.
18121         * lib/reallocarray.c: New file to implement module reallocarray.
18122         * lib/stdlib.in.h: Add function declarations for reallocarray.
18123         * m4/reallocarray.m4: New file.
18124         * m4/stdlib_h.m4: Declare reallocarray.
18125         * modules/reallocarray: New file.
18126         * modules/reallocarray-test: New file.
18127         * modules/stdlib: Coerce stdlib.h to export reallocarray.
18128         * tests/test-reallocarray.c: New test.
18130 2017-08-12  Paul Eggert  <eggert@cs.ucla.edu>
18132         dirent-safer: fix cloexec race
18133         * lib/opendir-safer.c: Include fcntl.h instead of unistd-safer.h.
18134         (opendir_safer): Use F_DUPFD_CLOEXEC.
18135         * modules/dirent-safer (Depends-on): Add fcntl.  Remove unistd-safer.
18136         * tests/test-dirent-safer.c: Do not include unistd-safer.h,
18137         as it is no longer a prerequisite.  Use F_DUPFD_CLOEXEC
18138         instead of dup_safer.
18140         fts: fix cloexec races
18141         * lib/fts.c [!_LIBC]: Do not include dirent--.h, unistd--.h, cloexec.h.
18142         (opendirat, diropen): Use O_CLOEXEC instead of set_cloexec_flag.
18143         (fts_build): Use F_DUPD_CLOEXEC rinstad of set_cloexec_flag.
18144         (fd_ring_check): Set cloexec flag on new file descriptors.
18145         (fts_build, fd_ring_check): While we’re at it, make sure the
18146         resulting file descriptor is not 0, 1, or 2, since that is easy.
18148 2017-08-11  Bruno Haible  <bruno@clisp.org>
18150         fts tests: Fix link error.
18151         Reported by Tom G. Christensen in
18152         https://lists.gnu.org/r/bug-gnulib/2017-08/msg00078.html
18153         * modules/fts-tests (Makefile.am): Link test-fts against LIBINTL.
18155 2017-08-10  Paul Eggert  <eggert@cs.ucla.edu>
18157         fts: port recent changes to CentOS 6
18158         Problem reported by Tom G. Christensen in:
18159         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00064.html
18160         * lib/fts.c (fsword): New type.
18161         (struct dev_type, filesystem_type): Use it.
18162         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for __fsword_t.
18163         Also, check for f_type only if fstatfs and sys/vfs.h work.
18165 2017-08-09  Paul Eggert  <eggert@cs.ucla.edu>
18167         tempname: do not depend on secure_getenv
18168         Excess dependency noted by Eli Zaretskii (Bug#28023#17).
18169         * lib/tempname.c (__secure_getenv) [!_LIBC]: Remove; unused.
18170         * modules/tempname (Depends-on): Remove secure_getenv.
18172 2017-08-08  Paul Eggert  <eggert@cs.ucla.edu>
18174         extensions: add _OPENBSD_SOURCE
18175         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _OPENBSD_SOURCE.
18177 2017-08-06  Reuben Thomas  <rrt@sc3d.org>
18178             Bruno Haible  <bruno@clisp.org>
18180         manywarnings: Add support for C++.
18181         * build-aux/g++-warning.spec: New file.
18182         * m4/manywarnings-c++.m4: New file.
18183         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C++)): New macro, that
18184         redirects to manywarnings-c++.m4.
18185         * modules/manywarnings (Files): Add m4/manywarnings-c++.m4.
18187 2017-08-06  Paul Eggert  <eggert@cs.ucla.edu>
18189         git-version-gen: another fix for tags with "-"
18190         * build-aux/git-version-gen: Improve fix for tags containing "-".
18191         Suggested by Markus Armbruster in:
18192         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00034.html
18194 2017-08-06  Bruno Haible  <bruno@clisp.org>
18196         warnings, manywarnings: Add support for multiple languages, not just C.
18197         * warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS_IMPL): Renamed from
18198         gl_UNKNOWN_WARNINGS_ARE_ERRORS.
18199         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C)): New macro.
18200         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++)): New macro.
18201         (gl_UNKNOWN_WARNINGS_ARE_ERRORS): Dispatch to
18202         gl_UNKNOWN_WARNINGS_ARE_ERRORS(_AC_LANG).
18203         (gl_WARN_ADD): Require the gl_UNKNOWN_WARNINGS_ARE_ERRORS specialization
18204         of the current language. If C++ is the current language, modify
18205         WARN_CXXFLAGS instead of WARN_CFLAGS.
18206         * manywarnings.m4 (gl_MANYWARN_ALL_GCC(C)): New macro, extracted from
18207         gl_MANYWARN_ALL_GCC.
18208         (gl_MANYWARN_ALL_GCC): Dispatch to gl_MANYWARN_ALL_GCC(_AC_LANG).
18210 2017-08-06  Markus Armbruster  <armbru@pond.sub.org>
18212         git-version-gen: Fix for tags containing '-'
18214         Really old versions of git-describe (before v1.5.0, Feb 2007)
18215         don't have the number of commits in their long format output,
18216         i.e. where modern 'git describe --abbrev=4 --match="v*"' prints
18217         "v0.1-1494-g124b9", they print "v0.1-1494-g124b9".  git-version-gen
18218         recognizes both patterns, and normalizes the old format to the new one.
18220         Unfortunately, this normalization code gets confused when the tag
18221         contains '-'.  Reproducer:
18223             $ git-tag -m test v0.2-rc1
18224             $ build-aux/git-version-gen .tarball-version; echo
18225             build-aux/git-version-gen: WARNING: git rev-list failed
18226             UNKNOWN
18228         We take exact tag "v0.2-rc1" for the old format, extract the presumed
18229         tag "v0.2" from it, then run "git rev-list v0.2..HEAD" to count
18230         commits since tha tag.  Fails, because tag "v0.2" does not exist.
18232         * git-version-gen: We could perhaps drop support for versions from
18233         more than a decade ago.  But tightening the pattern match is easy
18234         enough, so do that.  Still breaks when you use version tags ending in
18235         something matching -g????, but you arguably get what you deserve then.
18237 2017-08-05  Paul Eggert  <eggert@cs.ucla.edu>
18239         valgrind-tests: use ls, and cache
18240         * m4/valgrind-tests.m4: Test ls, not bash.
18241         Problem reported by Reuben Thomas.
18242         Also, cache the result so that it can be overridden.
18244 2017-08-04  Paul Eggert  <eggert@cs.ucla.edu>
18246         manywarnings: port to 64-bit GCC builds of Emacs
18247         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Compute max safe
18248         object size rather than hardwiring 2147483647.  This is needed to
18249         build GNU Emacs, which has one conditional (and used
18250         only-in-theory) call to malloc with a literal greater than
18251         2147483647.
18253 2017-08-04  Bruno Haible  <bruno@clisp.org>
18255         Relax the license of some modules with no runtime code.
18256         * modules/std-gnu11 (License): Set to 'unlimited'.
18257         * modules/c99 (License): Likewise.
18258         Reported by Reuben Thomas <rrt@sc3d.org>.
18259         * modules/d-ino (License): Set to 'LGPL'.
18260         * modules/host-os (License): Likewise.
18261         * modules/longlong (License): Likewise.
18263 2017-08-03  Paul Eggert  <eggert@cs.ucla.edu>
18265         renameat2: port to RHEL 7 + NFS
18266         * lib/renameat2.c (renameat2) [SYS_renameat2]:
18267         Port to RHEL 7 + NFS.  Problem reported by Ted Zlatanov in:
18268         http://lists.gnu.org/r/emacs-devel/2017-08/msg00082.html
18270 2017-08-02  Paul Eggert  <eggert@cs.ucla.edu>
18272         renameat2: port to non-renameat platforms
18273         Problem reported for MSVC-2015 by Gisle Vanem in:
18274         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00001.html
18275         * lib/renameat2.c [!HAVE_RENAMEAT]: Include <sys/stat.h> here too.
18276         (renameat2) [!HAVE_RENAMEAT]: Fix typo in arg passing.
18278 2017-08-01  Paul Eggert  <eggert@cs.ucla.edu>
18280         manywarnings: port to 32-bit GCC bug
18281         Problem reported by Pino Toscano in:
18282         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00150.html
18283         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Use 2**31 - 1,
18284         not 2**63 - 1, to work around the following GCC bug:
18285         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81650
18287 2017-07-30  Paul Eggert  <eggert@cs.ucla.edu>
18289         backupfile: new function to validate backup suffix
18290         * lib/backupfile.c (set_simple_backup_suffix): New function.
18291         (backupfile_internal): Use it.
18293         canonicalize: fix EOVERFLOW commentary
18294         Problem reported by Bruno Haible in:
18295         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00147.html
18296         * lib/canonicalize.c (canonicalize_filename_mode):
18297         * lib/canonicalize-lgpl.c (__realpath): Fix comments.
18299         Don't interpret EOVERFLOW to mean nonexistence
18300         * lib/fts.c (fts_stat): If lstat fails, report its errno, which
18301         may be EOVERFLOW; this is likely more useful than reporting the
18302         stat errno.
18303         * lib/glob.c (link_stat): Rename from link_exists2_p and
18304         return -1/0 instead of 0/1.  Caller changed.
18305         * lib/glob.c (link_exists_p):
18306         * lib/renameat2.c (rename_noreplace, renameat2):
18307         * lib/tempname.c (try_nocreate):
18308         If errno == EOVERFLOW then the directory entry exists, so do not
18309         act as if it does not exist.
18311         backup-rename: new module
18312         It is like backupfile, except it avoids some race conditions,
18313         and it does not output to stderr or exit.
18314         * MODULES.html.sh: Add backup-rename.
18315         * lib/backup-find.c, lib/backup-internal.h, lib/backup-rename.c:
18316         * modules/backup-rename: New files.
18317         * lib/backupfile.c: Turn this into an internals file, which
18318         contains code common to backupfile and backup_rename.  Include
18319         backupfile-internal.h instead of backupfile.h.  Do not include
18320         argmatch.h or xalloc.h: include xalloc-oversized.h.  Include
18321         renameat2.h and fcntl.h.
18322         (BACKUP_NOMEM): New constant.
18323         (numbered_backup): New args BASE_OFFSET and *DIRPP.  Do not exit
18324         on memory exhaustion; just return BACKUP_NOMEM.  Caller changed.
18325         (backupfile_internal): Rename from find_backup_file_name.
18326         Support new arg RENAME.
18327         (backup_args, backup_types, get_version, xget_version):
18328         Move to lib/backup-find.c.
18329         * lib/backupfile.h (backup_file_rename): New decl.
18330         * modules/backupfile (Files): Add lib/backup-internal.h,
18331         lib/backup-find.c.
18332         (Depends-on): Add dirfd, fcntl, renameat2.
18333         (lib_SOURCES): Add backup-find.c.
18335         renameat2: port better to older Solaris
18336         * lib/renameat2.c (renameat2): Set ret_val properly on old Solaris.
18337         Add goto to use a label, to silence picky compilers.
18339         fts-tests: port to gcc -Wwrite-strings
18340         * tests/test-fts.c (base, base_d): New static vars.
18341         (argv, remove_tree, main): Use them.
18343 2017-07-26  Reuben Thomas  <rrt@sc3d.org>
18345         relocatable-lib{,-lgpl}: improve documentation
18346         * doc/relocatable-maint.texi: Document use of relocatable-lib{,-lgpl}.
18347         Various other updates.
18349 2017-07-30  Reuben Thomas  <rrt@sc3d.org>
18350             Bruno Haible  <bruno@clisp.org>
18352         relocatable-lib{,-lgpl}: add Valgrind suppressions
18353         * lib/relocatable.valgrind: New file.
18354         * modules/relocatable-lib (Files): Add relocatable.valgrind.
18355         * modules/relocatable-lib-lgpl: Likewise.
18357 2017-07-26  Reuben Thomas  <rrt@sc3d.org>
18359         relocatable: Make the license on the sources the GPL.
18360         * lib/relocatable.h, lib/relocatable.c: Change the copyright notice from
18361         LGPL, which was a special case so that the relocatable source files
18362         could be used without gnulib-tool, to GPL. They can still be used under
18363         the LGPL, using the --lgpl option to gnulib-tool.
18365 2017-07-30  Bruno Haible  <bruno@clisp.org>
18367         host-cpu-c-abi: Detect ILP32 ABI on IA-64 HP-UX.
18368         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Distinguish ia64-ilp32
18369         from ia64. For arm64, test only __aarch64__, as __ARM_64BIT_STATE and
18370         __ARM_PCS_AAPCS64 are not reliable indicators: they are not defined on
18371         Ubuntu 14.04 (gcc 4.8.4) and Debian 8 (gcc 4.9.2).
18373 2017-07-27  Paul Eggert  <eggert@cs.ucla.edu>
18375         faccessat: document AT_SYMLINK_NOFOLLOW issue
18376         * doc/posix-functions/faccessat.texi: Modernize platform list.
18377         Document AT_SYMLINK_NOFOLLOW limitation.
18379         renameat2: port to Solaris 10
18380         * lib/renameat2.c (rename_noreplace): Use lstat, not faccessat
18381         with AT_SYMLINK_NOFOLLOW (which is not portable).
18382         (renameat): Undef before using, to avoid endless recursion when
18383         the replacement renameat calls renameat2 which calls the
18384         replacement renameat.
18385         (renameat2): Use lstatat, not faccessat with AT_SYMLINK_NOFOLLOW.
18386         * modules/renameat2 (Depends-on): Remove faccessat.
18387         * modules/renameat-tests (test_renameat_LDADD):
18388         * modules/renameat2-tests (test_renameat2_LDADD):
18389         Remove $(LIB_EACCESS).
18391         renameat2: new module
18392         Although the Linux syscall renameat2 is not in glibc (yet?), it is
18393         useful to have access to its RENAME_NOREPLACE flag.
18394         * MODULES.html.sh (func_all_modules): Add renameat2.
18395         * lib/renameat2.c, lib/renameat2.h, modules/renameat2:
18396         * modules/renameat2-tests, tests/test-renameat2.c: New files.
18397         * lib/renameat.c (renameat): Move most of the implementation
18398         to renameat2, and just call renameat2.
18399         * modules/renameat (Files): Remove lib/at-func2.c.
18400         (Depends-on): Depend only on renameat2.
18401         (Include): Remove <fcntl.h>.
18402         * modules/renameat-tests (test_renameat_LDADD): Add $(LIB_EACCESS),
18403         since renameat (via renameat2) might use faccessat.
18405 2017-07-27  Erik Skultety <eskultet@redhat.com>  (tiny change)
18407         vc-list-files: Adjust the script to support git worktrees
18408         * build-aux/vc-list-files: Require existence, not directory.
18410 2017-07-26  Paul Eggert  <eggert@cs.ucla.edu>
18412         doc: bring MODULES.html.sh up to date
18413         Somehow a few months ago we stopped updating MODULES.html.sh.
18414         I don’t recall explicitly deciding this, so I updated it now.
18415         Alternatively I suppose we could remove it.
18416         * MODULES.html.sh: Add builtin-expect, c99, ctime, explicit_bzero,
18417         localtime, localtime-buffer, noreturn, nstrftime, strftime-fixes,
18418         truncate, utime, utime-h, windows-stat-inodes,
18419         windows-stat-override, windows-stat-timespec, year2038.  Sort.
18421 2017-07-26  Jim Meyering  <meyering@fb.com>
18423         fprintftime: fix build-break caused by recent renaming
18424         * lib/fprintftime.c: Include "nstrftime.c", not the now-renamed
18425         "strftime.c".
18426         * modules/fprintftime: Depend directly on nstrftime.
18428 2017-07-26  Paul Eggert  <eggert@cs.ucla.edu>
18430         regex: work with GCC7's -Werror=implicit-fallthrough=
18431         * lib/regex_internal.h (FALLTHROUGH): New macro.
18432         * lib/regcomp.c (peek_token_bracket, parse_expression):
18433         * lib/regexec.c (check_node_accept): Use it.
18435 2017-07-24  Paul Eggert  <eggert@cs.ucla.edu>
18437         fts: simplify fts_build
18438         * lib/fts.c (fts_build): Simplify, and be lazier about
18439         calling leaf_optimization.
18441         fts: three levels of leaf optimization
18442         * lib/fts.c (enum leaf_optimization): New type with three values.
18443         (S_MAGIC_AFS): New macro.  Sort them.
18444         (leaf_optimization): Rename from leaf_optimization_applies, and
18445         return enum leaf_optimization instead of bool.  All uses changed.
18446         Add cases for unknown type and for AFS.
18447         (fts_build): Don’t rely on link counts if NO_LEAF_OPTIMIZATION.
18449         fts: cache dirent_inode_sort_may_be_useful too
18450         * lib/fts.c (struct dev_type): New struct.
18451         (DEV_TYPE_HT_INITIAL_SIZE): New constant.
18452         (dev_type_hash, dev_type_compare, filesystem_type): New functions.
18453         (dirent_inode_sort_may_be_useful, leaf_optimization_applies):
18454         Now takes FTSENT const *, not int.  All uses changed.  Use
18455         filesystem_type to cache.
18456         (link_count_optimize_ok): Remove.  Caller changed to use
18457         leaf_optimization_applies, which now uses shared cache.
18459         fts: introduce MIN_DIR_NLINK
18460         * lib/fts.c (MIN_DIR_NLINK): New constant.
18461         Use it instead of 2, whenever we are talking about link counts.
18463         fts: nlink_t signedness fixups
18464         * lib/fts.c (fts_open): Set rootparent n_dirs_remaining to -1
18465         so that root need not be a special case later.
18466         (fts_read): Remove now-redundant test for fts_level.
18467         Do not assume that nlink_t is signed.
18468         (fts_build): Remove useless decrement of nlinks.
18469         (fts_stat): Avoid unlikely signed integer overflow later, if
18470         nlink_t is signed.
18472         fts-tests: new module
18473         * modules/fts-tests, tests/test-fts.c: New files.
18475 2017-07-23  Bruno Haible  <bruno@clisp.org>
18477         Rename module 'strftime' to 'nstrftime'.
18478         * m4/nstrftime.m4: Renamed from m4/strftime.m4.
18479         * lib/nstrftime.c: Renamed from lib/strftime.c.
18480         * modules/nstrftime: Renamed from modules/strftime.
18481         (Files, Makefile.am): Update.
18482         * tests/test-nstrftime.c: Renamed from tests/test-strftime.c.
18483         Fix comment.
18484         * modules/nstrftime-tests: Renamed from modules/strftime-tests.
18485         (Files, Makefile.am): Update.
18486         * modules/strftime: New file, an obsolete indirection.
18487         * doc/posix-functions/strftime.texi: Update reference.
18488         * config/srclist.txt: Update info.
18489         * NEWS: Mention the change.
18491 2017-07-21  Tim Rühsen  <tim.ruehsen@gmx.de>
18493         malloca: Silence a warning from clang's memory sanitizer.
18494         * lib/malloca.c (NO_SANITIZE_MEMORY): New macro.
18495         (freea): Use it.
18497 2017-07-18  Bruno Haible  <bruno@clisp.org>
18499         host-cpu-c-abi: Fix detection of MIPS ABI.
18500         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): For MIPS, really test the
18501         ABI, not the CPU instruction set.
18503 2017-07-16  Paul Eggert  <eggert@cs.ucla.edu>
18505         explicit_bzero: new module
18506         The explicit_bzero function has been added to glibc.
18507         This module is intended to supports its use in GNU programs.
18508         * doc/glibc-functions/explicit_bzero.texi, lib/explicit_bzero.c:
18509         * m4/explicit_bzero.m4, modules/explicit_bzero:
18510         New files.
18511         * doc/gnulib.texi (Glibc string.h): Link to new doc.
18512         * lib/string.in.h (explicit_bzero): Declare.
18513         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add defaults for it.
18514         * modules/string (string.h): Substitute its vars.
18516 2017-07-16  Bruno Haible  <bruno@clisp.org>
18518         threadlib: Support static linking.
18519         * m4/threadlib.m4 (gl_THREADLIB_BODY): When static linking is in use,
18520         set gl_cv_have_weak to 'no'.
18522 2017-07-16  Bruno Haible  <bruno@clisp.org>
18524         unicase/locale-language: Fix link dependencies.
18525         * modules/unicase/locale-language (Link): New section.
18526         * modules/unicase/locale-language-tests (Makefile.am): Link
18527         test-locale-language program with $(LIBTHREAD).
18529 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
18531         sys_socket: Add support for OpenVMS.
18532         * lib/sys_socket.in.h [__VMS]: Define CMSG_SPACE, CMSG_LEN.
18533         * doc/posix-headers/sys_socket.texi: Mention OpenVMS issues.
18535 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
18537         sys_resource: Add support for OpenVMS.
18538         * lib/resource.in.h [__VMS]: Define RUSAGE_SELF, RUSAGE_CHILDREN.
18539         * doc/posix-headers/sys_resource.texi: Mention OpenVMS issues.
18541 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
18542             Bruno Haible  <bruno@clisp.org>
18544         math: Add support for OpenVMS.
18545         * lib/math.in.h [__VMS]: Include <fp.h>.
18546         * doc/posix-headers/math.texi: Mention OpenVMS issues.
18548 2017-07-15  Bruno Haible  <bruno@clisp.org>
18550         getdtablesize: Add minimal support for OpenVMS.
18551         Reported by John E. Malmberg <wb8tyw@qsl.net>.
18552         * modules/getdtablesize (Description): Fix.
18553         * lib/getdtablesize.c: Fix comment.
18554         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Don't replace the
18555         getdtablesize() function, even though the test fails.
18556         * doc/glibc-functions/getdtablesize.texi: Reference SUSv2. Describe
18557         limitation on OpenVMS.
18559 2017-07-13  Bruno Haible  <bruno@clisp.org>
18561         Revisit cross-compilation guesses.
18562         * m4/wctype_h.m4 (gl_WCTYPE_H): Add comment.
18564 2017-07-13  Bruno Haible  <bruno@clisp.org>
18566         Improve cross-compilation guesses for native Windows.
18567         * m4/btowc.m4 (gl_FUNC_BTOWC): Add cross-compilation guess for native
18568         Windows.
18569         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Likewise.
18570         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Likewise.
18571         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
18572         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): Likewise.
18573         * m4/cbrtl.m4 (gl_FUNC_CBRTL, gl_FUNC_CBRTL_WORKS): Likewise.
18574         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
18575         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
18576         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
18577         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
18578         * m4/dup.m4 (gl_FUNC_DUP): Likewise.
18579         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
18580         * m4/exp2.m4 (gl_FUNC_EXP2_WORKS): Likewise.
18581         * m4/exp2l.m4 (gl_FUNC_EXP2L): Likewise.
18582         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
18583         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): Likewise.
18584         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
18585         * m4/fabsl.m4 (gl_FUNC_FABSL_WORKS): Likewise.
18586         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
18587         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
18588         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
18589         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
18590         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
18591         * m4/fma.m4 (gl_FUNC_FMA_WORKS): Likewise.
18592         * m4/fmaf.m4 (gl_FUNC_FMAF_WORKS): Likewise.
18593         * m4/fmal.m4 (gl_FUNC_FMAL_WORKS): Likewise.
18594         * m4/fmod.m4 (gl_FUNC_FMOD): Likewise.
18595         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
18596         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
18597         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
18598         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): Likewise.
18599         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
18600         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Likewise.
18601         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
18602         * m4/hypotf.m4 (gl_FUNC_HYPOTF, gl_FUNC_HYPOTF_WORKS): Likewise.
18603         * m4/hypotl.m4 (gl_FUNC_HYPOTL, gl_FUNC_HYPOTL_WORKS): Likewise.
18604         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Likewise.
18605         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
18606         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
18607         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
18608         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
18609         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
18610         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
18611         * m4/log.m4 (gl_FUNC_LOG, gl_FUNC_LOG_WORKS): Likewise.
18612         * m4/logf.m4 (gl_FUNC_LOGF, gl_FUNC_LOGF_WORKS): Likewise.
18613         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Likewise.
18614         * m4/log10.m4 (gl_FUNC_LOG10, gl_FUNC_LOG10_WORKS): Likewise.
18615         * m4/log10f.m4 (gl_FUNC_LOG10F, gl_FUNC_LOG10F_WORKS): Likewise.
18616         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): Likewise.
18617         * m4/log1p.m4 (gl_FUNC_LOG1P): Likewise.
18618         * m4/log1pf.m4 (gl_FUNC_LOG1PF, gl_FUNC_LOG1PF_WORKS): Likewise.
18619         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Likewise.
18620         * m4/log2.m4 (gl_FUNC_LOG2, gl_FUNC_LOG2_WORKS): Likewise.
18621         * m4/log2f.m4 (gl_FUNC_LOG2F, gl_FUNC_LOG2F_WORKS): Likewise.
18622         * m4/log2l.m4 (gl_FUNC_LOG2L_WORKS): Likewise.
18623         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): Likewise.
18624         * m4/logbf.m4 (gl_FUNC_LOGBF_WORKS): Likewise.
18625         * m4/logbl.m4 (gl_FUNC_LOGBL_WORKS): Likewise.
18626         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
18627         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT, gl_MBRTOWC_C_LOCALE): Likewise.
18628         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
18629         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
18630         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Likewise.
18631         * m4/modf.m4 (gl_FUNC_MODF): Likewise.
18632         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
18633         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
18634         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
18635         * m4/perror.m4 (gl_FUNC_PERROR): Likewise.
18636         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
18637         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE,
18638         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2,
18639         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): Likewise.
18640         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Likewise.
18641         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
18642         * m4/regex.m4 (gl_REGEX): Likewise.
18643         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
18644         * m4/remainderf.m4 (gl_FUNC_REMAINDERF,
18645         gl_FUNC_REMAINDERF_WORKS): Likewise.
18646         * m4/remainderl.m4 (gl_FUNC_REMAINDERL,
18647         gl_FUNC_REMAINDERL_WORKS): Likewise.
18648         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
18649         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
18650         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
18651         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
18652         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
18653         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
18654         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
18655         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
18656         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): Likewise.
18657         * m4/stdint.m4 (gl_STDINT_H): Likewise.
18658         * m4/strerror.m4 (gl_FUNC_STRERROR_0): Likewise.
18659         * m4/strncat.m4 (gl_FUNC_STRNCAT): Likewise.
18660         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
18661         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
18662         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
18663         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
18664         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
18665         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
18666         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
18667         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
18668         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
18669         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
18670         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
18671         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
18672         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
18673         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
18674         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
18675         Likewise.
18676         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
18677         * m4/chown.m4 (AC_FUNC_CHOWN): Add cross-compilation guess for native
18678         Windows. Enable also on Autoconf 2.70.
18679         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
18680         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
18681         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
18682         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO,
18683         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
18684         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): Add cross-compilation guess
18685         for native Windows.
18686         (gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
18687         gl_VSNPRINTF_ZEROSIZE_C99): Add comment.
18689 2017-07-13  Bruno Haible  <bruno@clisp.org>
18691         Improve cross-compilation guesses for native Windows.
18692         * m4/memchr.m4 (gl_FUNC_MEMCHR): Add cross-compilation guess for native
18693         Windows.
18694         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Don't use internals of
18695         memchr.m4.
18696         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
18698 2017-07-13  Bruno Haible  <bruno@clisp.org>
18700         Improve cross-compilation guesses for native Windows.
18701         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Add cross-compilation guess for
18702         native Windows.
18703         (gl_FUNC_FFLUSH): Update accordingly.
18704         * m4/fclose.m4 (gl_FUNC_FCLOSE): Likewise.
18705         * m4/fseeko.m4 (gl_FUNC_FFLUSH_STDIN): Likewise.
18707 2017-07-11  Bruno Haible  <bruno@clisp.org>
18709         More systematic m4 quoting and indentation.
18710         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Quote systematically.
18711         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
18712         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
18713         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
18714         * m4/host-os.m4 (gl_HOST_OS): Likewise.
18715         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H,
18716         gl_WINSIZE_IN_PTEM): Likewise.
18717         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Likewise.
18718         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
18719         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
18720         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Quote systematically.
18721         Correct indentation.
18722         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
18723         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
18724         * m4/jm-winsz2.m4 (gl_HEADER_TIOCGWINSZ_NEEDS_SYS_IOCTL): Likewise.
18725         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
18726         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
18727         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
18729 2017-07-10  Bruno Haible  <bruno@clisp.org>
18731         round, roundf: Avoid compiler warning in configure test.
18732         * m4/round.m4 (gl_FUNC_ROUND): Use 'return' instead of exit().
18733         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
18735 2017-07-10  Bruno Haible  <bruno@clisp.org>
18737         getlogin tests: Avoid #ifdefs when sharing code between modules.
18738         * modules/getlogin_r-tests (Files): Add tests/test-getlogin.h.
18739         * modules/getlogin-tests (Files): Likewise. Remove
18740         tests/test-getlogin_r.c.
18741         * tests/test-getlogin.h: Extracted from tests/test-getlogin_r.c.
18742         * tests/test-getlogin.c: Extracted from tests/test-getlogin_r.c.
18743         * tests/test-getlogin_r.c: Include test-getlogin.h. Omit code that tests
18744         getlogin().
18746 2017-07-10  Paul Eggert  <eggert@cs.ucla.edu>
18748         getlogin: don’t assume one name per uid
18749         Problem reported by Wolfgang F. Muthmann (Bug#27640).
18750         * modules/getlogin-tests (Files): Add tests/test-getlogin_r.c.
18751         (ttyname): Remove test.
18752         * modules/getlogin_r-tests (ttyname): Remove test.
18753         * tests/test-getlogin.c: Replace this near-clone of test-getlogin_r.c
18754         with ‘#define TEST_LOGIN’ followed by ‘#include "test-getlogin_r.c"’.
18755         * tests/test-getlogin_r.c: If TEST_GETLOGIN is defined, test
18756         getlogin rather than getlogin_r.  This avoids code duplication.
18757         (main): Use isatty and fstat rather than ttyname and stat.
18758         Use getpwnam instead of getpwuid, to be portable to test platforms
18759         that have multiple login names for the same uid.
18761 2017-07-10  Tim Rühsen  <tim.ruehsen@gmx.de>
18762             Bruno Haible  <bruno@clisp.org>
18764         glob: Fix more memory leaks.
18765         * lib/glob.c (glob): Use 'goto out' in order to free dirname before
18766         returning.
18767         Reported by Tim Rühsen.
18769 2017-07-10  Bruno Haible  <bruno@clisp.org>
18771         Make sure $host and $host_os are defined when used.
18772         * m4/argz.m4 (gl_FUNC_ARGZ): Require AC_CANONICAL_HOST.
18773         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Likewise.
18774         * m4/csharpexec.m4 (gt_CSHARPEXEC): Likewise.
18775         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
18776         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
18777         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
18778         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
18779         * m4/opendir.m4 (gl_FUNC_OPENDIR): Likewise.
18780         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
18781         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
18782         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Likewise.
18783         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Likewise.
18784         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
18785         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST outside the
18786         m4_ifdef block.
18788 2017-07-09  Bruno Haible  <bruno@clisp.org>
18790         *printf: Fix cross-compilation guess for Solaris.
18791         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): Fix copy-and-paste mistake from
18792         2010-12-21.
18794 2017-07-07  Paul Eggert  <eggert@cs.ucla.edu>
18795             Bruno Haible  <bruno@clisp.org>
18797         vasnprintf: port to macOS 10.13
18798         Problem reported by comex in:
18799         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00056.html
18800         * lib/vasnprintf.c (VASNPRINTF): Don’t use %n on macOS.
18802 2017-07-06  Bruno Haible  <bruno@clisp.org>
18804         imaxdiv tests: Fix logic.
18805         * tests/test-imaxdiv.c (main): Use == instead of =.
18806         Reported by Coverity.
18808 2017-07-06  Bruno Haible  <bruno@clisp.org>
18810         uninorm/filter: Fix use-after-free bug.
18811         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Maintain
18812         sortbuf == filter->sortbuf invariant.
18813         Reported by Coverity.
18815 2017-07-06  Bruno Haible  <bruno@clisp.org>
18817         glob: Fix more memory leaks.
18818         * lib/glob.c (glob): Free dirname before returning.
18819         Reported by Coverity and Tim Rühsen.
18821 2017-07-06  Paul Eggert  <eggert@cs.ucla.edu>
18823         parse-datetime: fix uninit var bug
18824         Reported by Bruno Haible in:
18825         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00038.html
18826         * lib/parse-datetime.y (parse_datetime2): Do not use
18827         uninitialized.
18829 2017-07-05  Bruno Haible  <bruno@clisp.org>
18831         doc: Update for MSVC 14.
18832         * doc/posix-headers/*.texi: Add info about MSVC 14.
18833         * doc/posix-functions/*.texi: Likewise.
18834         * doc/pastposix-functions/*.texi: Likewise.
18835         * doc/glibc-headers/*.texi: Likewise.
18836         * doc/glibc-functions/*.texi: Likewise.
18838 2017-07-05  Bruno Haible  <bruno@clisp.org>
18840         sched: Fix build failure on native Windows (regression from 2017-06-19).
18841         * m4/sched_h.m4 (gl_SCHED_H): Set HAVE_STRUCT_SCHED_PARAM always.
18843 2017-07-03  John E. Malmberg  <wb8tyw@gmail.com>
18845         stdioext: Port to OpenVMS.
18846         * lib/stdio-impl.h: OpenVMS uses struct _iobuf for FILE information.
18847         * lib/fpending.c (fpending): Remove non-working VMS specific code.
18848         * lib/fbufmode.c (fbufmode): Fix _IOLBF test to use fp_ macro.
18849         * lib/fflush.c (clear_ungetc_buffer): Add OpenVMS to comments.
18850         * lib/fpurge.c (fpurge): Likewise.
18851         * lib/freadable.c (freadable): Likewise.
18852         * lib/freadahead.c (freadahead): Likewise.
18853         * lib/freading.c (freading): Likewise.
18854         * lib/freadptr.c (freadptr): Likewise.
18855         * lib/freadseek.c (freadseek): Likewise.
18856         * lib/fseeko.c (fseeko): Likewise.
18857         * lib/fseterr.c (fseterr): Likewise.
18858         * lib/fwritable.c (fwriteable): Likewise.
18859         * lib/fwriting.c (fwriting): Likewise.
18861 2017-07-01  Benno Schulenberg  <bensberg@telfort.nl>
18863         glob: Declare variables at the very start of their scope.
18864         * lib/glob.c (convert_dirent, convert_dirent64): Give each fragment
18865         its separate scope, so the functions will compile on Haiku.
18867 2017-07-01  Bruno Haible  <bruno@clisp.org>
18869         logbl: Work around a glibc bug on PowerPC64LE.
18870         * m4/logbl.m4 (gl_FUNC_LOGBL_WORKS): Test also negative subnormal
18871         numbers.
18872         * doc/posix-functions/logbl.texi: Update.
18874 2017-06-29  Bruno Haible  <bruno@clisp.org>
18876         stat, fstat: Compile stat-w32.c only on platforms that need it.
18877         Suggested by Paul Eggert.
18878         * modules/stat (configure.ac): Request stat-w32.o only on native
18879         Windows.
18880         * modules/fstat (configure.ac): Likewise.
18882 2017-06-25  Bruno Haible  <bruno@clisp.org>
18884         stat: Improve last change.
18885         * lib/stat-w32.c: Revert last change. Use generic idiom instead.
18887 2017-06-25  Paul Eggert  <eggert@cs.ucla.edu>
18889         stat: port to xlc 12.01
18890         * lib/stat-w32.c: Always include <sys/types.h>.  Otherwise, xlc
18891         12.01 complains "Compilation unit is empty."
18893 2017-06-24  Paul Eggert  <eggert@cs.ucla.edu>
18895         xalloc-oversized: port to icc
18896         * lib/xalloc-oversized.h (xalloc_oversized): Do not use
18897         __builtin_mul_overflow if ICC is defined, as this results in
18898         "undefined reference to `__builtin_mul_overflow'" with icc 17.0.2
18899         20170213.
18901 2017-06-19  Bruno Haible  <bruno@clisp.org>
18903         classpath: Avoid including config.h twice, as it produces warnings.
18904         Reported by John E. Malmberg <wb8tyw@gmail.com>.
18905         * lib/classpath.h: Conditionalize the include of config.h.
18907 2017-06-19  Bruno Haible  <bruno@clisp.org>
18908             John E. Malmberg  <wb8tyw@gmail.com>  (tiny change)
18910         sched: Fix compilation failure on OpenVMS.
18911         * m4/sched_h.m4 (gl_SCHED_H): Require AC_CANONICAL_HOST. On OpenVMS,
18912         test whether <pthread.h> exists and defines struct sched_param.
18913         * lib/sched.in.h: On OpenVMS, include <pthread.h>.
18915 2017-06-17  Paul Eggert  <eggert@cs.ucla.edu>
18917         diffseq: port to GCC 7 with --enable-gcc-warnings
18918         * lib/diffseq.h (diag): Use an if, not an ifdef, for most of the
18919         heuristic check.  This way, GCC 7 with --enable-gcc-warnings does
18920         not complain about big_snake being defined but not used.
18922 2017-06-15  Bruno Haible  <bruno@clisp.org>
18924         gettext-h: Update theoretical condition for use of variable size arrays.
18925         Reported by Paul Eggert.
18926         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Extend comment
18927         to include the theoretical condition for availability of variable size
18928         arrays, if we could trust the value of __STDC_VERSION__.
18930 2017-06-12  Bruno Haible  <bruno@clisp.org>
18932         Relicense some modules under LGPLv2+.
18933         Daiki Ueno's approval is in
18934         https://lists.gnu.org/r/bug-gnulib/2017-06/msg00058.html.
18935         * modules/uniwidth/base (License): Change to LGPLv2+.
18936         * modules/uniwidth/width (License): Likewise.
18938 2017-06-11  Bruno Haible  <bruno@clisp.org>
18940         localename: Fix test failure on DragonFly BSD.
18941         * lib/localename.c (gl_locale_name_thread_unsafe): Treat DragonFly BSD
18942         like FreeBSD.
18944 2017-06-11  Bruno Haible  <bruno@clisp.org>
18946         float: Fix 'float' and 'isinf' failures on DragonFly BSD.
18947         * m4/float_h.m4 (gl_FLOAT_H): Treat DragonFly BSD like FreeBSD.
18948         * lib/float.in.h: Likewise.
18949         * m4/fmal.m4, m4/frexpl.m4, m4/logbl.m4: Update accordingly.
18951 2017-06-11  Bruno Haible  <bruno@clisp.org>
18953         gnulib-tool: Clean up after autotools.
18954         * gnulib-tool (func_create_testdir, func_create_megatestdir): Remove
18955         useless directory left over by the Autotools.
18957 2017-06-11  Paul Eggert  <eggert@cs.ucla.edu>
18959         getopt-posix: port to glibc 2.25.90
18960         Problem reported by Daniel P. Berrange in:
18961         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00003.html
18962         * lib/getopt-pfx-core.h (_GETOPT_CORE_H):
18963         * lib/getopt-pfx-ext.h (_GETOPT_EXT_H):
18964         #undef if __GETOPT_PREFIX is defined.
18966 2017-06-11  Bruno Haible  <bruno@clisp.org>
18968         strtod-obsolete: Fix license.
18969         * modules/strtod-obsolete (License): Change to LGPL.
18971 2017-06-10  Jim Meyering  <meyering@fb.com>
18973         maint: update to work with GCC7's -Werror=implicit-fallthrough=
18974         * lib/savewd.c (FALLTHROUGH): Define.
18975         (savewd_save, savewd_restore): Use this, rather than a comment,
18976         whenever one switch case falls through into the next.
18978 2017-06-08  Bruno Haible  <bruno@clisp.org>
18980         host-cpu-c-abi: Support for aarch64 ILP32 ABI.
18981         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Recognize the aarch64 ILP32
18982         ABI. Set HOST_CPU_C_ABI=arm64-ilp32 and define __arm64_ilp32__ in this
18983         case.
18985 2017-06-08  Paul Eggert  <eggert@cs.ucla.edu>
18987         doc: remove robots, add prereqs
18988         * doc/build-automation.texi, doc/gnulib.texi: Mention prereqs for
18989         builds.  Simon's robot site does not seem to be up, so remove
18990         mentions of it for now.
18992 2017-06-08  Bruno Haible  <bruno@clisp.org>
18994         gnulib-tool: Fix bug in func_symlink_if_changed, from 2006-11-13.
18995         * gnulib-tool (func_symlink_target): New function, extracted from
18996         func_symlink.
18997         (func_symlink, func_symlink_if_changed): Use it.
18999 2017-06-08  Bruno Haible  <bruno@clisp.org>
19001         gnulib-tool: Fix bug in func_ln_s, from 2016-01-15.
19002         * gnulib-tool (func_ln_s): Determine cp_src correctly.
19004 2017-06-07  Bruno Haible  <bruno@clisp.org>
19006         canonicalize-lgpl: Avoid conflict with gnulib 'getcwd' module on VMS.
19007         Reported by John E. Malmberg <wb8tyw@gmail.com> in
19008         <https://lists.gnu.org/r/bug-gnulib/2017-06/msg00029.html>.
19009         * lib/canonicalize-lgpl.c (__getcwd): On VMS, when using gnulib's getcwd
19010         override, pass 2 arguments to getcwd, not 3.
19012 2017-06-04  Paul Eggert  <eggert@cs.ucla.edu>
19014         same-inode: port better to VMS 8.2 and later
19015         Problem reported by John E. Malmberg in:
19016         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00005.html
19017         * lib/same-inode.h (SAME_INODE) [__VMS && 80200000 <= __CRTL_VER]:
19018         Use the usual POSIX definition.
19019         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define _USE_STD_STAT.
19021 2017-06-01  Paul Eggert  <eggert@cs.ucla.edu>
19023         error: fix POSIX violation for va_end
19024         Problem reported by Bruno Haible in:
19025         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00001.html
19026         * lib/error.c (error_tail): Do not call va_end here.
19027         (error, error_at_line): Call it here instead.
19029 2017-05-28  Bruno Haible  <bruno@clisp.org>
19031         c-strtod: Make it usable in C++ mode.
19032         * lib/c-strtod.h: Add 'extern "C"' marker for C++.
19034 2017-05-25  Jim Meyering  <meyering@fb.com>
19036         quotearg: fix compilation failure due to FALLTHROUGH misuse
19037         * lib/quotearg.c (quotearg_buffer_restyled): Revert one FALLTHROUGH
19038         macro back to /* fall through */ comment.  The macro can apply only
19039         to a following case statement.  Reported by Assaf Gordon.
19041 2017-05-25  Paul Eggert  <eggert@cs.ucla.edu>
19043         intprops: port to recent icc
19044         Port to icc (ICC) 17.0.4 20170411, which defines __GNUC__ to be 5
19045         but does not support __builtin_add_overflow etc.
19046         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW) [__ICC]:
19047         Define to 0.
19049 2017-05-23  Karl Berry  <karl@freefriends.org>
19051         * config/srclist.txt (iconv.m4): sync broken, comment out
19052         until (hopefully) the next gettext release.
19054 2017-05-22  Bjarni Ingi Gislason  <bjarniig@rhi.hi.is>
19056         Remove repeated words in comments.
19058 2017-05-22  Bernhard Voelker  <mail@bernhard-voelker.de>
19060         fallthrough: reinstate a FALLTHROUGH instance in quotearg
19061         quotearg.c: Reinstate this instance which is significant
19062         when the if branch is not taken.
19064 2017-05-21  Bruno Haible  <bruno@clisp.org>
19066         gnulib-tool: Add options to create hard links.
19067         * gnulib-tool (func_usage): Document options --hardlink,
19068         --local-hardlink, --more-hardlinks.
19069         (func_symlink): Renamed from func_ln.
19070         (func_symlink_if_changed): Renamed from func_ln_if_changed.
19071         (func_hardlink): New function.
19072         (copymode, lcopymode): New variables.
19073         (symbolic, lsymbolic): Remove variables.
19074         (Options): Implement options --hardlink, --local-hardlink,
19075         --more-hardlinks.
19076         (func_should_link): Renamed from func_should_symlink. Set copyaction.
19077         (func_add_file, func_update_file): Update invocation of
19078         func_should_link. Invoke func_hardlink when appropriate.
19079         (func_import): Update comments.
19080         (func_create_testdir): Update invocation of func_should_link. Invoke
19081         func_hardlink when appropriate.
19082         Finally, invoke 'git update-index --refresh' to mitigate the effects of
19083         the hard links on git.
19085 2017-05-20  Bruno Haible  <bruno@clisp.org>
19087         argp: Simplify bit manipulation.
19088         * lib/argp-parse.c (parser_parse_opt): Use &, |, ~ instead of shifts
19089         on a signed integer type.
19091 2017-05-20  Bruno Haible  <bruno@clisp.org>
19093         Avoid wrong configure results with gcc -fsanitize=address.
19094         This completes the work done on 2016-02-06 on this topic.
19095         * m4/memmem.m4 (gl_FUNC_MEMMEM): Free allocated memory before returning.
19096         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
19097         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
19098         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
19099         * m4/fopen.m4 (gl_FUNC_FOPEN): Close allocated FILE streams before
19100         returning.
19101         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Likewise.
19102         * m4/fpurge.m4 (gl_FUNC_FPURGE): Likewise.
19103         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
19104         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
19105         * m4/signbit.m4 (gl_FLOATTYPE_SIGN_LOCATION): Likewise.
19106         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
19107         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Close allocated FILE streams and
19108         free allocated memory before returning.
19109         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
19110         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Close allocated DIR
19111         objects before returning.
19112         * m4/iconv.m4 (AM_ICONV_LINK): Close allocated iconv_t handles before
19113         returning.
19115 2017-05-20  Bruno Haible  <bruno@clisp.org>
19117         gnulib-tool: Don't create hard links between gnulib and its testdirs.
19118         * gnulib-tool (func_create_testdir): Don't invoke 'ln'.
19120 2017-05-20  Bruno Haible  <bruno@clisp.org>
19122         argp, tsearch tests: Fix file list.
19123         * modules/argp-tests (Files): Add tests/macros.h.
19124         * modules/tsearch-tests (Files): Likewise.
19126 2017-05-20  Bruno Haible  <bruno@clisp.org>
19128         getopt-posix tests: Remove redundant include.
19129         * tests/test-getopt.h: Don't include "macros.h". It's already included
19130         by tests/test-getopt-main.h.
19132 2017-05-19  Jim Meyering  <meyering@fb.com>
19134         dfa: two small simplifications
19135         * lib/dfa.c (build_state): Avoid repeating longer expressions.
19137 2017-05-18  Jim Meyering  <meyering@fb.com>
19139         fallthrough: update for GCC 7/8
19140         * lib/quotearg.c (FALLTHROUGH): New macro.
19141         Use it whenever one switch case falls through into the next,
19142         replacing "/* Fall through */" comments.  This exposed one
19143         instance of an unwarranted "fall through" comment: unwarranted
19144         because it preceded a "goto" label not a case statement.
19145         * lib/freopen-safer.c (freopen_safer): Likewise.
19146         * lib/fts.c (leaf_optimization_applies): Likewise.
19147         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Likewise.
19148         * tests/test-getopt_long.h (getopt_long_loop): Likewise.
19149         * tests/test-tsearch.c (mangle_tree): Likewise.  Also include
19150         tests/macros.h for the definition.
19151         * tests/test-argp.c (group1_parser): Likewise.
19152         * tests/test-getopt.h (getopt_loop): Likewise.
19154 2017-05-19  Paul Eggert  <eggert@cs.ucla.edu>
19156         argp: fix shift bug
19157         * lib/argp-parse.c (parser_parse_opt): Rework to avoid undefined
19158         behavior on shift overflow, caught by gcc -fsanitize=undefined.
19160         argp: fix pointer-subtraction bug
19161         * lib/argp-help.c (hol_append): Don’t subtract pointers to
19162         different arrays, as this can run afoul of -fcheck-pointer-bounds.
19163         See the thread containing Bruno Haible’s report in:
19164         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00171.html
19166 2017-05-19  Bruno Haible  <bruno@clisp.org>
19168         printf-posix tests: Avoid test failure with "gcc --coverage".
19169         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
19170         * tests/test-printf-posix2.c (main): Test a width of 10000000 rather
19171         than 5000000.
19172         * tests/test-fprintf-posix2.c (main): Likewise.
19174 2017-05-19  Paul Eggert  <eggert@cs.ucla.edu>
19176         closeout: don’t close stderr when sanitizing
19177         * NEWS: Document this.
19178         * lib/closeout.c (__has_feature): New macro, if not already defined.
19179         (SANITIZE_ADDRESS): New constant.
19180         (close_stdout): Don’t close stderr if sanitizing addresses.
19182 2017-05-19  Bruno Haible  <bruno@clisp.org>
19184         get-rusage-data tests: Avoid failure on Linux/glibc.
19185         * tests/test-get-rusage-data.c (main): Don't expect a strict increase
19186         on glibc systems.
19188 2017-05-18  Bruno Haible  <bruno@clisp.org>
19190         localename: Include necessary header files on Cygwin.
19191         * lib/localename.c [__CYGWIN__]: Include <langinfo.h>, since this is
19192         where NL_LOCALE_NAME is defined.
19194 2017-05-18  Bruno Haible  <bruno@clisp.org>
19196         gettext: Update macros from gettext git.
19197         * m4/intldir.m4: Require Autoconf >= 2.60.
19198         * m4/progtest.m4: Fix typos in copyright notice.
19200 2017-05-18  Bruno Haible  <bruno@clisp.org>
19202         copy-file tests: Fix link error (regression from 2017-05-01).
19203         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
19204         * modules/copy-file-tests (Makefile.am): Link test-copy-file with
19205         $(LIB_CLOCK_GETTIME).
19207 2017-05-18  Bruno Haible  <bruno@clisp.org>
19209         unicase/special-casing: Fix incompatibility with gperf-3.0.4
19210         (regression from 2017-02-13).
19211         * lib/unicase/special-casing.in.h: Renamed from
19212         lib/unicase/special-casing.h.
19213         * modules/unicase/special-casing (Files): Add
19214         lib/unicase/special-casing.in.h. Remove lib/unicase/special-casing.h.
19215         (Makefile.am): Add rule for generating unicase/special-casing.h.
19216         Update BUILT_SOURCES and MOSTLYCLEANFILES accordingly.
19217         * lib/unicase/special-casing.c: Include "unicase/special-casing.h",
19218         not "special-casing.h".
19219         * lib/unicase/u*.c: Likewise.
19221 2017-05-17  Bruno Haible  <bruno@clisp.org>
19223         README: Don't ask people to read a TeXinfo file.
19224         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
19225         * README: Tell people how to read the HTML formatted manual.
19227 2017-05-16  Tim Rühsen  <tim.ruehsen@gmx.de>
19229         parse-datetime: Fix memleak
19230         * lib/parse-datetime.y (parse_datetime2): Cleanup on
19231         localtime_rz() failure.
19233 2017-05-16  Bruno Haible  <bruno@clisp.org>
19235         javacomp: Fix handle leak.
19236         Found by Coverity.
19237         * lib/javacomp.c (get_classfile_version): Close fd before returning.
19239 2017-05-16  Bruno Haible  <bruno@clisp.org>
19241         relocate: Make it easier to reclaim allocated memory.
19242         * lib/relocatable.h (relocate2): New declaration/macro.
19243         * lib/relocatable.c (relocate2): New function.
19244         * doc/relocatable-maint.texi (Supporting Relocation): Mention the
19245         relocate2 function.
19246         * lib/localcharset.c (relocate2): Define fallback.
19247         (get_charset_aliases): Invoke relocate2 instead of relocate. Free the
19248         allocated memory.
19249         * lib/javaversion.c (relocate2): Define fallback.
19250         (javaexec_version): Invoke relocate2 instead of relocate. Free the
19251         allocated memory.
19253 2017-05-16  Bruno Haible  <bruno@clisp.org>
19255         relocate: Simplify EMX specific code.
19256         * lib/relocatable.c (relocate): Assume pathname is non-NULL. Use
19257         ISSLASH macro consistently. Avoid dangerous string concatenation idiom.
19259 2017-05-16  Bruno Haible  <bruno@clisp.org>
19261         sigpipe tests: Fix file list.
19262         * modules/sigpipe-tests (Files): Add tests/macros.h.
19264 2017-05-16  Paul Eggert  <eggert@cs.ucla.edu>
19266         manywarnings: update for GCC 7
19267         * build-aux/gcc-warning.spec:
19268         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
19269         Add GCC 7 warnings, notably -Wimplicit-fallthrough=5, which
19270         requires a non-comment fallthrough attribute.  This is a bit
19271         cleaner than the comment versions.
19272         * lib/strftime.c, lib/dfa.c, lib/fnmatch.c, lib/mbrtowc.c:
19273         * lib/vasnprintf.c, tests/macros.h (FALLTHROUGH): New macro.
19274         Use it whenever one switch case falls through into the next.
19275         * lib/fnmatch_loop.c, tests/test-mbrtowc.c, tests/test-sigpipe.c:
19276         Use FALLTHROUGH macro.
19278 2017-05-15  Bruno Haible  <bruno@clisp.org>
19280         gnulib-tool: Fix generated code when libtests contains module 'alloca'.
19281         * gnulib-tool (func_emit_tests_Makefile_am): For libtests.a, use
19282         @ALLOCA@, not @LTALLOCA@.
19284 2017-05-15  Bruno Haible  <bruno@clisp.org>
19286         sys_select: Avoid "was expanded before it was required" warning.
19287         * modules/sys_select (configure.ac): Require, not invoke,
19288         gl_HEADER_SYS_SELECT.
19290 2017-05-14  Paul Eggert  <eggert@cs.ucla.edu>
19292         gnulib-tool: improve GNU Make debugging
19293         * gnulib-tool (func_emit_lib_Makefile_am): Omit unnecessary echo.
19294         Report autoconf diagnostics when it fails, in the output makefile.
19296 2017-05-14  Bruno Haible  <bruno@clisp.org>
19298         stat-time tests: Improve comment.
19299         * tests/test-stat-time.c: Add hyperlink, from Paul Eggert.
19301 2017-05-14  Bruno Haible  <bruno@clisp.org>
19303         same-inode: Adapt for windows-stat-inodes.
19304         * lib/same-inode.h: Include <sys/types.h>.
19305         (SAME_INODE) [_GL_WINDOWS_STAT_INODES]: Define specifically.
19306         * modules/same-inode (Depends-on): Add sys_types.
19308 2017-05-14  Bruno Haible  <bruno@clisp.org>
19310         windows-stat-inodes: New module.
19311         * m4/windows-stat-inodes.m4: New file.
19312         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_STAT_INODES.
19313         * modules/sys_types (Makefile.am): Substitute WINDOWS_STAT_INODES.
19314         * lib/sys_types.in.h [WINDOWS_STAT_INODES]: Override dev_t and ino_t.
19315         (_GL_WINDOWS_STAT_INODES): New macro.
19316         * lib/stat-w32.c: Set _WIN32_WINNT. Include <string.h>, verify.h.
19317         (GetFileInformationByHandleExFunc): New variable.
19318         (initialize): Initialize it.
19319         (_gl_fstat_by_handle) [_GL_WINDOWS_STAT_INODES]: Initialize st_dev and
19320         st_ino appropriately.
19321         * lib/stat.c (rpl_stat): Use the directory entry based approach only as
19322         a fallback, because it does not provide st_dev and st_ino values.
19323         * modules/fstat (Depends-on): Add 'verify'.
19324         * modules/windows-stat-inodes: New file.
19325         * doc/windows-stat-inodes.texi: New file.
19326         * doc/gnulib.texi: Include it.
19327         * doc/posix-headers/sys_stat.texi: Mention the new module.
19329 2017-05-14  Bruno Haible  <bruno@clisp.org>
19331         stat-time tests: Workaround for native Windows.
19332         * tests/test-stat-time.c: Include <stdio.h>, <time.h>.
19333         (filename_stamp1, filename_testfile, filename_stamp2, filename_stamp3):
19334         New variables.
19335         (initialize_filenames): New function.
19336         (main): Invoke it.
19337         (cleanup, prepare_test): Update.
19339 2017-05-14  Bruno Haible  <bruno@clisp.org>
19341         stat-time: Adapt for windows-stat-timespec.
19342         * lib/stat-time.h (get_stat_birthtime) [_GL_WINDOWS_STAT_TIMESPEC]: Use
19343         entire st_ctim field.
19345 2017-05-13  Jim Meyering  <meyering@fb.com>
19347         maint.mk: update regex to reflect 2013 addition of "assume" to verify.h
19348         * top/maint.mk (sc_prohibit_verify_without_use): Don't reject a source
19349         file that uses the assume macro, claiming that verify.h is unused.
19351 2017-05-13  Bruno Haible  <bruno@clisp.org>
19353         Use symbolic values for _WIN32_WINNT.
19354         * lib/ftruncate.c (_WIN32_WINNT): Use symbolic value _WIN32_WINNT_WIN2K.
19355         * lib/sethostname.c (_WIN32_WINNT): Likewise.
19357 2017-05-13  Bruno Haible  <bruno@clisp.org>
19359         year2038: New module.
19360         * m4/year2038.m4: New file.
19361         * modules/year2038: New file.
19362         * doc/year2038.texi: New file.
19363         * doc/gnulib.texi: Include it.
19365 2017-05-13  Bruno Haible  <bruno@clisp.org>
19367         largefile: Simplify.
19368         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Remove unused definition
19369         of _GL_WINDOWS_64_BIT_ST_SIZE.
19371 2017-05-13  Bruno Haible  <bruno@clisp.org>
19373         largefile: Improve and document.
19374         * m4/largefile.m4 (gl_LARGEFILE): Set WINDOWS_64_BIT_ST_SIZE to 0 if
19375         the mingw headers already define 'stat' appropriately.
19376         * modules/largefile (Description): Clarify.
19377         * doc/largefile.texi: New file.
19378         * doc/gnulib.texi: Include it.
19379         * doc/posix-headers/sys_types.texi: Update.
19381 2017-05-13  Bruno Haible  <bruno@clisp.org>
19383         truncate: New module.
19384         * lib/unistd.in.h (truncate): New declaration.
19385         * lib/truncate.c: New file.
19386         * m4/truncate.m4: New file.
19387         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'truncate' is declared.
19388         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TRUNCATE, HAVE_TRUNCATE,
19389         REPLACE_TRUNCATE.
19390         * modules/unistd (Makefile.am): Substitute GNULIB_TRUNCATE,
19391         HAVE_TRUNCATE, REPLACE_TRUNCATE.
19392         * modules/truncate: New file.
19393         * tests/test-unistd-c++.cc (truncate): Test signature.
19394         * doc/posix-functions/truncate.texi: Mention the new module.
19396         * tests/test-truncate.c: New file.
19397         * modules/truncate-tests: New file.
19399 2017-05-13  Bruno Haible  <bruno@clisp.org>
19401         windows-stat-timespec: New module.
19402         * modules/windows-stat-timespec: New file.
19403         * m4/windows-stat-timespec.m4: New file.
19404         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_STAT_TIMESPEC.
19405         * modules/sys_stat (Makefile.am): Substitute WINDOWS_STAT_TIMESPEC.
19406         * lib/sys_stat.in.h (struct stat) [WINDOWS_STAT_TIMESPEC]: Declare with
19407         fields st_atim, st_mtim, st_ctim.
19408         (st_atime, st_mtime, st_ctime): Define as macros.
19409         (_GL_WINDOWS_STAT_TIMESPEC): New macro.
19410         * lib/stat-w32.h (_gl_convert_FILETIME_to_timespec)
19411         [_GL_WINDOWS_STAT_TIMESPEC]: New declaration.
19412         * lib/stat-w32.c (_gl_convert_FILETIME_to_timespec)
19413         [_GL_WINDOWS_STAT_TIMESPEC]: New function.
19414         (_gl_convert_FILETIME_to_POSIX): Adjust coding style.
19415         (_gl_fstat_by_handle): If _GL_WINDOWS_STAT_TIMESPEC, convert the
19416         FILETIME to 'struct timespec', not 'time_t'.
19417         * lib/stat.c (rpl_stat): If _GL_WINDOWS_STAT_TIMESPEC, convert the
19418         FILETIME to 'struct timespec', not 'time_t'.
19419         * lib/stat-time.h (STAT_TIMESPEC): Define also if
19420         _GL_WINDOWS_STAT_TIMESPEC.
19421         * doc/windows-stat-timespec.texi: New file.
19422         * doc/gnulib.texi: Include it.
19424 2017-05-13  Bruno Haible  <bruno@clisp.org>
19426         windows-stat-override: New module.
19427         * lib/sys_stat.in.h (stat) [GNULIB_OVERRIDES_STRUCT_STAT]: Provide own
19428         definition. Define GNULIB_defined_struct_stat.
19429         (fstat, fstatat, lstat, stat) [GNULIB_OVERRIDES_STRUCT_STAT]: Provoke
19430         link error if this symbol is used and the corresponding module is not
19431         in use.
19432         (_stat64, _stat32i64, _stati64, _stat32, _stat64i32): Don't redefine if
19433         GNULIB_OVERRIDES_STRUCT_STAT.
19434         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
19435         GNULIB_OVERRIDES_STRUCT_STAT.
19436         * modules/sys_stat (Makefile.am): Substitute
19437         GNULIB_OVERRIDES_STRUCT_STAT.
19438         * modules/windows-stat-override: New file.
19440 2017-05-13  Bruno Haible  <bruno@clisp.org>
19442         fstat: Fix module dependency conditions.
19443         * modules/fstat (Depends-on): Fix typo.
19445 2017-05-13  Bruno Haible  <bruno@clisp.org>
19447         stat, fstat: Complete removal of old native Windows code.
19448         * lib/stat.c: Remove old macrology for WINDOWS_NATIVE.
19449         * lib/fstat.c: Likewise.
19450         * lib/stat-w32.c: Likewise.
19452 2017-05-13  Bruno Haible  <bruno@clisp.org>
19454         stat: Complete removal of REPLACE_FUNC_STAT_DIR code.
19455         * lib/stat.c: Remove all REPLACE_FUNC_STAT_DIR code.
19457 2017-05-11  Paul Eggert  <eggert@cs.ucla.edu>
19459         getopt-posix: port to mingw
19460         * lib/getopt.c (flockfile, funlockfile): Define on mingw.
19461         Problem reported by Daniel P. Berrage in:
19462         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00086.html
19464 2017-05-11  Bruno Haible  <bruno@clisp.org>
19466         gettimeofday: Increase precision on mingw.
19467         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Require AC_CANONICAL_HOST.
19468         Set REPLACE_GETTIMEOFDAY to 1 on mingw.
19469         * lib/gettimeofday.c (gettimeofday): On native Windows, use the
19470         GetSystemTimePreciseAsFileTime based implementation always.
19471         * doc/posix-functions/gettimeofday.texi: Mention precision problem on
19472         mingw.
19474 2017-05-11  Bruno Haible  <bruno@clisp.org>
19476         poll: Fix confusion between SOCKETs and FDs on native Windows.
19477         Fix proposed by Daniel P. Berrange <berrange@redhat.com>.
19478         * lib/poll.c [WINDOWS_NATIVE]: Undefine select.
19480 2017-05-11  Bruno Haible  <bruno@clisp.org>
19482         doc: Clarify doc about socket functions on native Windows.
19483         This reworks doc that was added on 2008-09-29.
19484         * doc/posix-functions/select.texi: Fix copy-and-paste mistake and use
19485         clearer wording.
19486         * doc/posix-functions/accept.texi: Use clearer wording.
19487         * doc/posix-functions/bind.texi: Likewise.
19488         * doc/posix-functions/connect.texi: Likewise.
19489         * doc/posix-functions/getpeername.texi: Likewise.
19490         * doc/posix-functions/getsockname.texi: Likewise.
19491         * doc/posix-functions/getsockopt.texi: Likewise.
19492         * doc/posix-functions/ioctl.texi: Likewise.
19493         * doc/posix-functions/listen.texi: Likewise.
19494         * doc/posix-functions/recv.texi: Likewise.
19495         * doc/posix-functions/recvfrom.texi: Likewise.
19496         * doc/posix-functions/send.texi: Likewise.
19497         * doc/posix-functions/sendto.texi: Likewise.
19498         * doc/posix-functions/setsockopt.texi: Likewise.
19499         * doc/posix-functions/shutdown.texi: Likewise.
19500         * doc/posix-functions/socket.texi: Likewise.
19502 2017-05-10  Bruno Haible  <bruno@clisp.org>
19504         poll: Fix link error on native Windows.
19505         * lib/poll.c [WINDOWS_NATIVE]: Undefine recv.
19507 2017-05-10  Bruno Haible  <bruno@clisp.org>
19509         time: Fix missing initialization of HAVE_TIMEZONE_T.
19510         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEZONE_T
19511         here...
19512         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): ... not here.
19513         * m4/time_rz.m4 (gl_TIME_RZ): Require gl_HEADER_TIME_H_DEFAULTS, not
19514         gl_HEADER_SYS_TIME_H_DEFAULTS.
19515         * modules/time_rz (Depends-on): Add 'time'. Remove useless quoting.
19516         (configure.ac): Remove useless quoting.
19518 2017-05-10  Bruno Haible  <bruno@clisp.org>
19520         Implement a way to opt out from MSVC support, part 2.
19521         * modules/msvc-inval (Include): Document recommended idiom.
19522         * modules/msvc-nothrow (Include): Likewise.
19524         Implement a way to opt out from MSVC support.
19525         This is useful for Emacs.
19526         * modules/msvc-nothrow (configure.ac): Invoke gl_MODULE_INDICATOR.
19527         * lib/accept4.c: Include <io.h> as an alternative to msvc-nothrow.h.
19528         * lib/error.c: Likewise.
19529         * lib/fcntl.c: Likewise.
19530         * lib/flock.c: Likewise.
19531         * lib/fstat.c: Likewise.
19532         * lib/fsync.c: Likewise.
19533         * lib/ioctl.c: Likewise.
19534         * lib/isapipe.c: Likewise.
19535         * lib/lseek.c: Likewise.
19536         * lib/nonblocking.c: Likewise.
19537         * lib/poll.c: Likewise.
19538         * lib/select.c: Likewise.
19539         * lib/sockets.h: Likewise.
19540         * lib/sockets.c: Likewise.
19541         * lib/stdio-read.c: Likewise.
19542         * lib/stdio-write.c: Likewise.
19543         * lib/utimens.c: Likewise.
19544         * lib/w32sock.h: Likewise.
19545         * lib/w32spawn.h: Likewise.
19546         * tests/test-cloexec.c: Likewise.
19547         * tests/test-dup-safer.c: Likewise.
19548         * tests/test-dup2.c: Likewise.
19549         * tests/test-dup3.c: Likewise.
19550         * tests/test-fcntl.c: Likewise.
19551         * tests/test-pipe.c: Likewise.
19552         * tests/test-pipe2.c: Likewise.
19553         * lib/ftruncate.c: Likewise.
19554         (chsize_nothrow): Renamed from chsize.
19555         * lib/msvc-nothrow.c: Don't include msvc-inval.h if
19556         HAVE_MSVC_INVALID_PARAMETER_HANDLER is not defined.
19557         * lib/close.c: Likewise.
19558         * lib/dup.c: Likewise.
19559         * lib/fclose.c: Likewise.
19560         * lib/raise.c: Likewise.
19561         * tests/test-fgetc.c: Likewise.
19562         * tests/test-fputc.c: Likewise.
19563         * tests/test-fread.c: Likewise.
19564         * tests/test-fwrite.c: Likewise.
19565         * lib/getdtablesize.c: Likewise.
19566         (_setmaxstdio_nothrow): Renamed from _setmaxstdio.
19567         * lib/isatty.c: Don't include msvc-inval.h if
19568         HAVE_MSVC_INVALID_PARAMETER_HANDLER is not defined.
19569         Include <io.h> as an alternative to msvc-nothrow.h.
19570         * lib/read.c: Likewise.
19571         * lib/write.c: Likewise.
19572         * lib/dup2.c: Likewise.
19573         (dup2_nothrow): New function.
19574         (ms_windows_dup2): Use it.
19575         * m4/close.m4 (gl_FUNC_CLOSE): Invoke gl_MSVC_INVAL and test
19576         HAVE_MSVC_INVALID_PARAMETER_HANDLER only if gl_MSVC_INVAL is defined.
19577         * m4/dup.m4 (gl_FUNC_DUP): Likewise.
19578         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Likewise.
19579         * m4/raise.m4 (gl_FUNC_RAISE): Likewise.
19580         * m4/read.m4 (gl_FUNC_READ): Likewise.
19581         * m4/write.m4 (gl_FUNC_WRITE): Likewise.
19582         * doc/windows-without-msvc.texi: New file.
19583         * doc/gnulib.texi (Native Windows Support without MSVC Support): New
19584         section.
19586 2017-05-10  Bruno Haible  <bruno@clisp.org>
19588         wait-process: Adjust native Windows support.
19589         * lib/wait-process.c: Use the usual condition for recognizing a native
19590         Windows platform.
19592 2017-05-10  Bruno Haible  <bruno@clisp.org>
19594         doc: New chapter "Native Windows Support".
19595         * doc/gnulib.texi (Native Windows Support): New chapter.
19596         * doc/windows-libtool.texi: Small wording changes.
19597         * doc/windows-sockets.texi: Small wording and formatting changes.
19599 2017-05-10  Bruno Haible  <bruno@clisp.org>
19601         doc: Move section "Library version handling".
19602         * doc/gnulib.texi: Move section "Library version handling"
19603         from chapter "Miscellaneous Notes" to chapter "Particular Modules".
19605 2017-05-10  Bruno Haible  <bruno@clisp.org>
19607         doc: Move section "Running self-tests under valgrind".
19608         * doc/gnulib.texi: Move section "Running self-tests under valgrind"
19609         from chapter "Particular Modules" to chapter "Miscellaneous Notes".
19611 2017-05-10  Bruno Haible  <bruno@clisp.org>
19613         doc: New chapter "Build Infrastructure Modules".
19614         * doc/gnulib.texi (Build Infrastructure Modules): New chapter.
19616 2017-05-10  Bruno Haible  <bruno@clisp.org>
19618         Prepare for reordering sections in the manual.
19619         * doc/gnulib.texi: Move several sections to separate files. Include
19620         these files.
19621         * doc/out-of-memory.texi: New file, extracted from doc/gnulib.texi.
19622         * doc/obsolete.texi: Likewise.
19623         * doc/extra-tests.texi: Likewise.
19624         * doc/transversal.texi: Likewise.
19625         * doc/namespace.texi: Likewise.
19626         * doc/check-version.texi: Likewise.
19627         * doc/windows-sockets.texi: Likewise.
19628         * doc/windows-libtool.texi: Likewise.
19629         * doc/licenses-texi.texi: Likewise.
19630         * doc/build-automation.texi: Likewise.
19631         * doc/c-locale.texi: Likewise.
19633 2017-05-10  Bruno Haible  <bruno@clisp.org>
19635         Fix instructions how to update manual on www.gnu.org.
19636         * doc/README: Add -I option, so that texi2dvi finds texinfo.tex.
19638 2017-05-09  Bruno Haible  <bruno@clisp.org>
19640         tzset: Expand comment about TZ problem on native Windows.
19641         * lib/tzset.c (tzset): Elaborate comment, based on explanations by
19642         Paul Eggert.
19643         * lib/ctime.c (rpl_ctime): Likewise.
19644         * lib/localtime.c (rpl_localtime): Likewise.
19645         * lib/mktime.c (mktime): Likewise.
19646         * lib/strftime-fixes.c (rpl_strftime): Likewise.
19647         * lib/wcsftime.c (rpl_wcsftime): Likewise.
19649 2017-05-08  Paul Eggert  <eggert@cs.ucla.edu>
19651         intprops: don’t depend on ‘verify’
19652         Problem reported by Ævar Arnfjörð Bjarmason in:
19653         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00054.html
19654         * lib/intprops.h: Do not include verify.h, and move compile-time
19655         checks from here ...
19656         * tests/test-intprops.c (main): ... to here, if they’re not here
19657         already.  Check widths of other standard integer types.
19658         * modules/intprops (Depends-on): Remove ‘verify’.
19660 2017-05-07  Bruno Haible  <bruno@clisp.org>
19662         utimens: On native Windows, support 100ns resolution also if fd < 0.
19663         * lib/utime.in.h: Include <time.h>.
19664         (_gl_utimens_windows): New declaration.
19665         * lib/utime.c (_gl_utimens_windows): New function, based on utime.
19666         (utime): Invoke it.
19667         * lib/utimens.c (fdutimens): On native Windows, call _gl_utimens_windows
19668         instead of utime.
19669         * modules/utime (Depends-on): Add 'time'.
19671 2017-05-07  Bruno Haible  <bruno@clisp.org>
19673         utimens: Improve error code on native Windows.
19674         * lib/utimens.c (fdutimens): If fd was not opened with O_RDWR, fail with
19675         error code EACCES, not EINVAL.
19677 2017-05-07  Bruno Haible  <bruno@clisp.org>
19679         utime: Handle more Windows error codes.
19680         * lib/utime.c (utime): Handle ERROR_BAD_NETPATH.
19681         Based on explanations by Billy O'Neal.
19683 2017-05-05  Bruno Haible  <bruno@clisp.org>
19685         crypto/rijndael: Fix "strict-aliasing rules" warnings, alignment issues.
19686         * lib/rijndael-api-fst.c (rijndaelBlockEncrypt): Declare 'block' as a
19687         union.
19688         (rijndaelPadEncrypt, rijndaelBlockDecrypt): Likewise.
19689         (rijndaelPadDecrypt): Likewise. Use local variable 'iv' to cache the
19690         value of cipher->IV.
19692 2017-05-05  Bruno Haible  <bruno@clisp.org>
19694         wctype-h-c++-tests: Update.
19695         * tests/test-wctype-h-c++.cc: Reorder to match lib/wchar.in.h.
19697 2017-05-05  Bruno Haible  <bruno@clisp.org>
19699         wchar-c++-tests: Update.
19700         * tests/test-wchar-c++.cc (wcsftime): Declare, missing since 2017-04-30.
19702 2017-05-05  Bruno Haible  <bruno@clisp.org>
19704         utime-h-c++-tests: New module.
19705         * tests/test-utime-h-c++.cc: New file.
19706         (utime): Declare, missing since 2017-04-30.
19707         * modules/utime-h-c++-tests: New file.
19709 2017-05-05  Bruno Haible  <bruno@clisp.org>
19711         unistd-c++-tests: Update.
19712         * tests/test-unistd-c++.cc (isatty): Declare, missing since 2012-01-03.
19713         (read): Declare, missing since 2011-04-15.
19714         (sethostname): Declare, missing since 2011-12-03.
19716 2017-05-05  Bruno Haible  <bruno@clisp.org>
19718         time-c++-tests: Update.
19719         * tests/test-time-c++.cc (tzset): Declare, missing since 2017-05-01.
19720         (localtime, gmtime): Declare, missing since 2017-04-30.
19721         (ctime): Declare, missing since 2017-04-30.
19722         (strftime): Declare, missing since 2017-04-30.
19723         (tzalloc, tzfree, localtime_rz, mktime_z): Declare, missing since
19724         2015-07-24.
19726 2017-05-05  Bruno Haible  <bruno@clisp.org>
19728         sys_resource-c++-tests: New module.
19729         * tests/test-sys_resource-c++.cc: New file.
19730         (getrusage): Declare, missing since 2012-04-13.
19731         * modules/sys_resource-c++-tests: New file.
19733 2017-05-05  Bruno Haible  <bruno@clisp.org>
19735         strings-c++-tests: New module.
19736         * tests/test-strings-c++.cc: New file.
19737         (ffs): Declare, missing since 2011-07-12.
19738         * modules/strings-c++-tests: New file.
19740 2017-05-05  Bruno Haible  <bruno@clisp.org>
19742         string-c++-tests: Update.
19743         * tests/test-string-c++.cc (ffsl): Declare, missing since 2011-07-15.
19744         (ffsll): Declare, missing since 2011-07-15.
19746 2017-05-05  Bruno Haible  <bruno@clisp.org>
19748         stdlib-c++-tests: Update.
19749         * tests/test-stdlib-c++.cc (posix_openpt): Declare, missing since
19750         2011-10-18.
19751         (ptsname_r): Declare, missing since 2011-11-07.
19752         (qsort_r): Declare, missing since 2014-08-29.
19753         (random, srandom, initstate, setstate): Declare, missing since
19754         2012-01-14.
19755         (secure_getenv): Declare, missing since 2013-02-05.
19757 2017-05-05  Bruno Haible  <bruno@clisp.org>
19759         stdio-c++-tests: Update.
19760         * tests/test-stdio-c++.cc (pclose): Declare, missing since 2011-09-18.
19762 2017-05-05  Bruno Haible  <bruno@clisp.org>
19764         signal-h-c++-tests: Update.
19765         * tests/test-signal-h-c++.cc (raise): Remove redundant declaration.
19767 2017-05-05  Bruno Haible  <bruno@clisp.org>
19769         math-c++-tests: Update.
19770         * tests/test-math-c++.cc (fmaf): Declare, missing since 2011-10-17.
19771         (fma): Declare, missing since 2011-10-17.
19772         (fmal): Declare, missing since 2011-10-17.
19774 2017-05-05  Bruno Haible  <bruno@clisp.org>
19776         locale-c++-tests: Update.
19777         * tests/test-locale-c++.cc (localeconv): Declare, missing since
19778         2012-03-25.
19780 2017-05-05  Bruno Haible  <bruno@clisp.org>
19782         inttypes-c++-tests: New module.
19783         * tests/test-inttypes-c++.cc: New file.
19784         (strtoimax): Declare, missing since 2012-01-05.
19785         (strtoumax): Declare, missing since 2012-01-05.
19786         * modules/inttypes-c++-tests: New file.
19788 2017-05-05  Bruno Haible  <bruno@clisp.org>
19790         dirent-c++-tests: Update.
19791         * tests/test-dirent-c++.cc (readdir): Declare, missing since 2011-09-13.
19792         (rewinddir): Declare, missing since 2011-09-13.
19793         (dirfd): Declare, missing since 2010-03-08.
19795 2017-05-04  Bruno Haible  <bruno@clisp.org>
19797         argp: Fix mistake in 2017-04-23 commit.
19798         * lib/argp-help.c (__argp_failure): If GNULIB_STRERROR_R_POSIX is set,
19799         assume that strerror_r returns 'int', not 'char *'.
19801 2017-05-04  Reuben Thomas  <rrt@sc3d.org>
19803         argp: Fix typo.
19804         * lib/argp-help.c (argp_doc): Fix spelling mistake in comment.
19806 2017-05-02  Paul Eggert  <eggert@cs.ucla.edu>
19808         utimens: port to Emacs + MS-Windows
19809         Skip the new MS-Windows-specific code if Emacs.
19810         * lib/utimens.c [EMACS_CONFIGUATION]:
19811         Avoid new MS-Windows-specific code.
19812         (USE_SETFILETIME): New macro.
19813         (fdutimens): Use it.
19815 2017-05-01  Paul Eggert  <eggert@cs.ucla.edu>
19817         tzset: update doc for TZ problems on MS-Windows
19818         * doc/posix-functions/ctime.texi,  doc/posix-functions/daylight.texi:
19819         * doc/posix-functions/localtime.texi, doc/posix-functions/mktime.texi:
19820         * doc/posix-functions/strftime.texi, doc/posix-functions/timezone.texi:
19821         * doc/posix-functions/tzname.texi, doc/posix-functions/tzset.texi:
19822         * doc/posix-functions/wcsftime.texi:
19823         Mention some issues with TZ under MS-Windows.
19825 2017-05-01  Bruno Haible  <bruno@clisp.org>
19827         copy-file: Fix build error on mingw.
19828         * modules/copy-file (Depends-on): Add 'close'.
19830 2017-05-01  Bruno Haible  <bruno@clisp.org>
19832         tzset: Work around TZ problem on native Windows.
19833         * m4/tzset.m4 (gl_FUNC_TZSET): Require AC_CANONICAL_HOST. On native
19834         Windows, set REPLACE_TZSET to 1.
19835         * lib/tzset.c (tzset): On native Windows, fix TZ if necessary, and
19836         invoke '_tzset' instead of 'tzset'.
19837         * doc/posix-functions/tzset.texi: Mention the native Windows workaround.
19839         * modules/time_rz (Depends-on): Add tzset.
19840         * lib/time_rz.c (tzset): Remove fallback definition.
19841         * m4/time_rz.m4 (gl_TIME_RZ): Don't test for tzset.
19843 2017-05-01  Bruno Haible  <bruno@clisp.org>
19845         mktime: Fix dependencies.
19846         * modules/mktime (Depends-on): Add 'time'.
19848 2017-05-01  Bruno Haible  <bruno@clisp.org>
19850         New module 'localtime-buffer', split off from module 'gettimeofday'.
19851         * lib/localtime-buffer.h: New file.
19852         * lib/localtime-buffer.c: New file, extracted from lib/gettimeofday.c.
19853         * lib/time.in.h (tzset): New declaration.
19854         (localtime, gmtime): Don't test GNULIB_GETTIMEOFDAY.
19855         * lib/tzset.c: New file, extracted from lib/gettimeofday.c.
19856         * lib/gettimeofday.c: Include localtime-buffer.h. Remove code that was
19857         moved to lib/localtime-buffer.c or lib/tzset.c.
19858         * m4/localtime-buffer.m4: New file.
19859         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TZSET,
19860         HAVE_TZSET, REPLACE_TZSET.
19861         * m4/tzset.m4 (gl_FUNC_TZSET): Move code from m4/gettimeofday.m4 to
19862         here, with modifications. Set HAVE_TZSET, REPLACE_TZSET. Invoke
19863         gl_LOCALTIME_BUFFER_NEEDED.
19864         (gl_FUNC_TZSET_CLOBBER): Don't require gl_HEADER_SYS_TIME_H; not needed
19865         since 2007-01-18.
19866         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Remove code that deals with
19867         tzset.
19868         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require gl_LOCALTIME_BUFFER_DEFAULTS.
19869         Invoke gl_LOCALTIME_BUFFER_NEEDED instead of
19870         gl_GETTIMEOFDAY_REPLACE_LOCALTIME.
19871         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Remove macro.
19872         * modules/localtime-buffer: New file.
19873         * modules/time (Depends-on): Remove 'gettimeofday'.
19874         (Makefile.am): Substitute GNULIB_TZSET, HAVE_TZSET,
19875         REPLACE_TZSET. Don't substitute GNULIB_GETTIMEOFDAY.
19876         * modules/tzset (Description): Enable hyperlink to POSIX spec.
19877         (Files): Add lib/tzset.c.
19878         (Depends-on): Remove gettimeofday. Add localtime-buffer, time.
19879         (configure.ac): Arrange to conditionally compile lib/tzset.c. Invoke
19880         gl_TIME_MODULE_INDICATOR.
19881         * modules/gettimeofday (Depends-on): Add localtime-buffer.
19883 2017-05-01  Bruno Haible  <bruno@clisp.org>
19885         copy-file: Preserve sub-second time stamps.
19886         * lib/copy-file.c: Include stat-time.h, utimens.h instead of <utime.h>.
19887         (qcopy_file_preserving): Use 'struct timespec' and utimens() to
19888         transport the time stamps from the original file to the destination
19889         file.
19890         * m4/copy-file.m4 (gl_COPY_FILE): Don't test for utime, utimes.
19891         * modules/copy-file (Depends-on): Add stat-time, utimns instead of
19892         utime-h.
19894 2017-05-01  Bruno Haible  <bruno@clisp.org>
19896         wctype-t: Fix problems if <wchar.h> gets included after <wctype.h>.
19897         * lib/wctype.in.h: Include not only <ctype.h> but also <wchar.h>. Do so
19898         also on MSVC.
19899         Reported by Eli Zaretskii <eliz@gnu.org>.
19901 2017-05-01  Bruno Haible  <bruno@clisp.org>
19903         wchar: Fix compilation error with the original mingw.org mingw.
19904         * lib/wchar.in.h (rpl_wint_t): If <crtdefs.h> does not exist, include
19905         <stddef.h> instead.
19906         * m4/wint_t.m4 (gl_TYPE_WINT_T_PREREQ): New macro, extracted from
19907         gl_WCTYPE_H.
19908         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set HAVE_CRTDEFS_H here; require
19909         gl_TYPE_WINT_T_PREREQ instead.
19910         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_TYPE_WINT_T_PREREQ.
19911         * modules/wchar (Makefile.am): Substitute HAVE_CRTDEFS_H.
19912         Reported by Eli Zaretskii <eliz@gnu.org>.
19914 2017-04-30  Bruno Haible  <bruno@clisp.org>
19916         utimecmp: Add support for native Windows.
19917         * lib/utimecmp.c (SYSCALL_RESOLUTION): Set to 100 on native Windows.
19919 2017-04-30  Bruno Haible  <bruno@clisp.org>
19921         utimens: Add support for native Windows.
19922         * lib/utimens.c: Include <windows.h>, msvc-nothrow.h.
19923         (fdutimens): Provide a native Windows implementation, like utime.c with
19924         added tv_nsec support.
19925         * modules/utimens (Depends-on): Add msvc-nothrow, utime.
19926         Suggested by Tim Rühsen <tim.ruehsen@gmx.de>.
19928 2017-04-30  Bruno Haible  <bruno@clisp.org>
19930         wcsftime: New module.
19931         * lib/wchar.in.h (wcsftime): New declaration.
19932         * lib/wcsftime.c: New file.
19933         * m4/wcsftime.m4: New file.
19934         * m4/wchar_h.m4 (gl_WCHAR_H): Test for wcsftime declaration.
19935         (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_WCSFTIME,
19936         HAVE_WCSFTIME, REPLACE_WCSFTIME.
19937         * modules/wchar (Makefile.am): Substitute GNULIB_WCSFTIME,
19938         HAVE_WCSFTIME, REPLACE_WCSFTIME.
19939         * modules/wcsftime: New file.
19940         * doc/posix-functions/wcsftime.texi: Mention the new module.
19942 2017-04-30  Bruno Haible  <bruno@clisp.org>
19944         strftime-fixes: New module.
19945         * lib/time.in.h (strftime): New declaration.
19946         * lib/strftime-fixes.c: New file.
19947         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Inline gl_FUNC_STRFTIME macro.
19948         (gl_FUNC_STRFTIME): Remove macro.
19949         * m4/strftime-fixes.m4: New file.
19950         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_STRFTIME,
19951         REPLACE_STRFTIME.
19952         * modules/time (Makefile.am): Substitute GNULIB_STRFTIME,
19953         REPLACE_STRFTIME.
19954         * modules/strftime-fixes: New file.
19955         * doc/posix-functions/strftime.texi: Mention the new module.
19957 2017-04-30  Bruno Haible  <bruno@clisp.org>
19959         mktime: Work around TZ problem on native Windows.
19960         * lib/mktime.c: Add #ifs to make the algorithmic workaround independent
19961         from the native Windows workaround.
19962         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): New macro, extracted from
19963         gl_FUNC_MKTIME. If guessing, set gl_cv_func_working_mktime to
19964         'guessing no'.
19965         (gl_FUNC_MKTIME): Require it. Require AC_CANONICAL_HOST.
19966         Set REPLACE_MKTIME to 1 on native Windows. Define NEED_MKTIME_WORKING,
19967         NEED_MKTIME_WINDOWS.
19968         (gl_FUNC_MKTIME_INTERNAL): Require gl_FUNC_MKTIME_WORKS, not
19969         gl_FUNC_MKTIME. Set WANT_MKTIME_INTERNAL, not REPLACE_MKTIME. Define
19970         NEED_MKTIME_INTERNAL.
19971         * m4/timegm.m4 (gl_FUNC_TIMEGM): Require gl_FUNC_MKTIME_WORKS, not
19972         gl_FUNC_MKTIME. Cope with 'guessing yes' value.
19973         * modules/mktime-internal (configure.ac): Test WANT_MKTIME_INTERNAL,
19974         not REPLACE_MKTIME.
19975         * doc/posix-functions/mktime.texi: Mention the native Windows
19976         workaround.
19978 2017-04-30  Bruno Haible  <bruno@clisp.org>
19980         localtime: New module.
19981         * lib/time.in.h (localtime): Declare also if requested by module
19982         'localtime'.
19983         * lib/localtime.c: New file.
19984         * m4/localtime.m4: New file.
19985         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_LOCALTIME.
19986         * modules/time (Makefile.am): Substitute GNULIB_LOCALTIME.
19987         * modules/localtime: New file.
19988         * doc/posix-functions/localtime.texi: Mention the new module.
19990 2017-04-30  Bruno Haible  <bruno@clisp.org>
19992         ctime: New module.
19993         * lib/time.in.h (ctime): New declaration.
19994         * lib/ctime.c: New file.
19995         * m4/ctime.m4: New file.
19996         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_CTIME,
19997         REPLACE_CTIME.
19998         * modules/time (Makefile.am): Substitute GNULIB_CTIME, REPLACE_CTIME.
19999         * modules/ctime: New file.
20000         * doc/posix-functions/ctime.texi: Mention the new module.
20002 2017-04-30  Bruno Haible  <bruno@clisp.org>
20004         gettimeofday: Provide higher resolution on native Windows.
20005         * lib/gettimeofday.c: Don't include <sys/timeb.h>.
20006         (GetSystemTimePreciseAsFileTimeFuncType): New variable.
20007         (initialize): Initialize it.
20008         (gettimeofday) [WINDOWS_NATIVE]: Use it, and convert from FILETIME to
20009         'struct timeval'. Don't use _ftime().
20010         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): Don't test for
20011         <sys/timeb.h> and _ftime.
20013 2017-04-30  Bruno Haible  <bruno@clisp.org>
20015         Document the problem with the Cygwin environment variable TZ.
20016         * doc/posix-functions/tzset.texi: Add note about TZ.
20017         * doc/posix-functions/ctime.texi: Likewise.
20018         * doc/posix-functions/localtime.texi: Likewise.
20019         * doc/posix-functions/mktime.texi: Likewise.
20020         * doc/posix-functions/strftime.texi: Likewise.
20021         * doc/posix-functions/wcsftime.texi: Likewise.
20022         * doc/pastposix-functions/ftime.texi: Likewise.
20024 2017-04-30  Bruno Haible  <bruno@clisp.org>
20026         utime-tests: New module.
20027         * tests/test-utime.c: New file, based on tests/test-utimens.h.
20028         * tests/test-utimens-common.h: Include <sys/stat.h>.
20029         * modules/utime-tests: New file.
20031 2017-04-29  Bruno Haible  <bruno@clisp.org>
20033         utime: New module.
20034         * lib/utime.in.h: Add comment for snippets.
20035         (utime): New declaration.
20036         * lib/utime.c: New file.
20037         * m4/utime.m4: New file.
20038         * m4/utime_h.m4 (gl_UTIME_H): Test for utime declaration.
20039         (gl_UTIME_H_DEFAULTS): Initialize GNULIB_UTIME, HAVE_UTIME,
20040         REPLACE_UTIME.
20041         * modules/utime-h (Depends-on): Add snippets.
20042         (Makefile.am): Substitute GNULIB_UTIME, HAVE_UTIME, REPLACE_UTIME.
20043         Insert snippets.
20044         * modules/utime: New file.
20045         * doc/posix-functions/utime.texi: Mention the new module.
20047 2017-04-29  Bruno Haible  <bruno@clisp.org>
20049         utime-h: Modernize handling of 'struct utimbuf'.
20050         * lib/utime.in.h: Include next <utime.h> if it exists.
20051         (utimbuf): Define to _utimbuf on native Windows.
20052         * m4/utime_h.m4 (gl_UTIME_H): Check for prerequisites of include_next.
20053         Set UTIME_H on native Windows.
20054         (gl_UTIME_MODULE_INDICATOR, gl_HEADER_UTIME_H_DEFAULTS): New macros.
20055         * modules/utime-h (Depends-on): Add include_next.
20056         (Makefile.am): Substitute also HAVE_UTIME_H, INCLUDE_NEXT,
20057         PRAGMA_SYSTEM_HEADER, PRAGMA_COLUMNS, NEXT_UTIME_H.
20059         * lib/utimens.c (utimbuf): Remove fallback definition.
20060         * m4/utimens.m4 (gl_UTIMENS): Don't require
20061         gl_CHECK_TYPE_STRUCT_UTIMBUF.
20062         * m4/utimbuf.m4: Remove file.
20063         * modules/utimens (Files): Remove m4/utimbuf.m4.
20065 2017-04-29  Bruno Haible  <bruno@clisp.org>
20067         Make use of module 'utime-h'.
20068         * modules/copy-file (Depends-on): Add utime-h.
20069         * lib/copy-file.c: Assume that <utime.h> exists.
20070         * m4/copy-file.m4 (gl_COPY_FILE): Don't test for <utime.h>.
20072         * modules/utimens (Depends-on): Add utime-h.
20073         * lib/utimens.c: Assume that <utime.h> exists.
20075 2017-04-29  Bruno Haible  <bruno@clisp.org>
20077         utime-h: New module.
20078         * m4/utime_h.m4: New file.
20079         * lib/utime.in.h: New file.
20080         * modules/utime-h: New file.
20081         * doc/posix-headers/utime.texi: Mention the new module.
20083         * tests/test-utime-h.c: New file.
20084         * modules/utime-h-tests: New file.
20086 2017-04-30  Bruno Haible  <bruno@clisp.org>
20088         Fix a few typos.
20089         * m4/fstat.m4 (gl_FUNC_FSTAT): Require AC_CANONICAL_HOST.
20090         * m4/stat.m4 (gl_FUNC_STAT): Fix comment.
20091         * doc/posix-functions/fstat.texi: Fix a plural typo.
20092         * doc/posix-functions/stat.texi: Likewise.
20093         * m4/include_next.m4: Update comments.
20095 2017-04-29  Bruno Haible  <bruno@clisp.org>
20097         error: Fix mistake in 2017-04-23 commit.
20098         * lib/error.c (print_errno_message): If GNULIB_STRERROR_R_POSIX is set,
20099         assume that strerror_r returns 'int', not 'char *'.
20101 2017-04-29  Bruno Haible  <bruno@clisp.org>
20103         stat: Fix time_t values and other problems on native Windows platforms.
20104         * doc/posix-functions/stat.texi: Mention the problem with the Microsoft
20105         implementations of stat().
20106         * lib/stat.c: Include filename.h instead of dosname.h. Include
20107         malloca.h, stat-w32.h.
20108         (is_unc_root): New function.
20109         (rpl_stat): New implementation for native Windows. Remove
20110         REPLACE_FUNC_STAT_DIR code.
20111         * m4/stat.m4 (gl_FUNC_STAT): On native Windows, set REPLACE_STAT always.
20112         Don't define REPLACE_FUNC_STAT_DIR.
20113         (gl_PREREQ_STAT): Require gl_HEADER_SYS_STAT_H.
20114         * modules/stat (Files): Add lib/stat-w32.h, lib/stat-w32.c.
20115         (Depends-on): Remove dosname. Add filename, malloca.
20116         (configure.ac): Also compile lib/stat-w32.c.
20118 2017-04-29  Bruno Haible  <bruno@clisp.org>
20120         fstat: Fix time_t values on native Windows platforms.
20121         * doc/posix-functions/fstat.texi: Mention the problem with st_*time.
20122         * lib/stat-w32.h: New file.
20123         * lib/stat-w32.c: New file.
20124         * lib/fstat.c: Don't include msvc-inval.h. Include msvc-nothrow.h,
20125         stat-w32.h instead.
20126         (fstat_nothrow): Remove function.
20127         (rpl_fstat): Implement by means of _gl_fstat_by_handle.
20128         * m4/fstat.m4 (gl_FUNC_FSTAT): On native Windows, set REPLACE_FSTAT
20129         always.
20130         (gl_PREREQ_FSTAT): Require gl_HEADER_SYS_STAT_H.
20131         * modules/fstat (Files): Add lib/stat-w32.h, lib/stat-w32.c.
20132         (Depends-on): Remove msvc-inval. Add pathmax, msvc-nothrow.
20133         (configure.ac): Also compile lib/stat-w32.c.
20135 2017-04-29  Paul Eggert  <eggert@cs.ucla.edu>
20137         getopt: port to Solaris 10 with circa-1997 glibc getopt.h
20138         Problem reported by Assaf Gordon and Gavin Smith in:
20139         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00157.html
20140         * lib/getopt-pfx-ext.h (_getopt_internal) [__GETOPT_PREFIX]:
20141         #define this, too.
20143 2017-04-29  Bruno Haible  <bruno@clisp.org>
20145         strerror_r-posix: Fixes for MSVC 14.
20146         * lib/strerror_r.c: Include <stdarg.h>.
20147         (strerror_r): Provide error messages for errno values 100...140.
20148         * doc/posix-functions/strerror_r.texi: Mention the MSVC 14 problem.
20150 2017-04-28  Bruno Haible  <bruno@clisp.org>
20152         noreturn: New module.
20153         * lib/noreturn.h: New file.
20154         * modules/noreturn: New file.
20155         * tests/test-noreturn.c: New file.
20156         * modules/noreturn-tests: New file.
20157         * tests/test-noreturn-c++.cc: New file.
20158         * modules/noreturn-c++-tests: New file.
20160 2017-04-27  Bruno Haible  <bruno@clisp.org>
20162         wctype-h: Fix compilation error with the original mingw.org mingw.
20163         * m4/wctype_h.m4 (gl_WCTYPE_H): Test for <crtdefs.h>. Set
20164         HAVE_CRTDEFS_H.
20165         * modules/wctype-h (Makefile.am): Substitute HAVE_CRTDEFS_H.
20166         * lib/wctype.in.h (rpl_wint_t): If <crtdefs.h> does not exist, include
20167         <stddef.h> instead.
20168         Reported and proposed by Eli Zaretskii <eliz@gnu.org>.
20170 2017-04-26  Pádraig Brady  <P@draigBrady.com>
20172         nap.h: Fix compilation on non windows platforms
20173         * tests/nap.h: Move misplaced endif.
20175 2017-04-26  Pádraig Brady  <P@draigBrady.com>
20176         and Paul Eggert  <eggert@cs.ucla.edu>
20178         time_rz: fix heap buffer overflow vulnerability
20179         Reported and analyzed at https://bugzilla.redhat.com/CVE-2017-7476
20180         * lib/time_rz.c (save_abbr): Rearrange the calculation determining
20181         whether there is enough buffer space available, thus avoiding
20182         the problematic promotion of signed to unsigned causing an invalid
20183         comparison when zone_copy is more than ABBR_SIZE_MIN bytes beyond
20184         the start of the buffer.
20185         * tests/test-parse-datetime.c (main): Add a test case written by
20186         Paul Eggert, which overwrites enough of the heap so that
20187         standard glibc will fail with "free(): invalid pointer"
20188         without the patch applied.
20190 2017-04-26  Paul Eggert  <eggert@cs.ucla.edu>
20192         xalloc: add missing integer overflow check
20193         * lib/xalloc.h (x2nrealloc): Also check for multiplication
20194         overflow when P is null.
20196 2017-04-25  Paul Eggert  <eggert@cs.ucla.edu>
20198         parse-datetime: make it standalone
20199         * lib/parse-datetime.y: Include <stdarg.h>, for va_start etc.
20200         (_GL_ATTRIBUTE_FORMAT): New macro.
20201         These are needed to get './gnulib-tool --test parse-datetime' to work.
20203 2017-04-23  Bruno Haible  <bruno@clisp.org>
20205         nap.h: Port to native Windows.
20206         * tests/nap.h (nap_get_stat): Renamed from get_stat. Remove argument fd;
20207         use nap_fd instead. On native Windows, close and reopen nap_fd.
20208         (nap_works): Don't compare the ctimes, because on native Windows, these
20209         are the creation times.
20210         (nap): Update.
20212 2017-04-23  Bruno Haible  <bruno@clisp.org>
20214         nap.h: Fix logic.
20215         * tests/nap.h (nap): Avoid signed integer overflow in loop.
20217 2017-04-23  Bruno Haible  <bruno@clisp.org>
20219         Fix conflict between strerror_r-posix module and AC_FUNC_STRERROR_R.
20220         * modules/strerror_r-posix (configure.ac): Invoke gl_MODULE_INDICATOR.
20221         * lib/error.c: Test GNULIB_STRERROR_R_POSIX before testing
20222         HAVE_DECL_STRERROR_R, HAVE_STRERROR_R, or STRERROR_R_CHAR_P.
20223         * lib/argp-help.c (__argp_failure): Likewise.
20225 2017-04-23  Bruno Haible  <bruno@clisp.org>
20227         strerror_r-posix: Revert commits from 2016-10-16,2016-11-04,2016-11-14.
20228         * m4/strerror_r.m4: Revert changes since 2016-10-16.
20229         * lib/strerror_r.c: Likewise.
20231 2017-04-23  Paul Eggert  <eggert@cs.ucla.edu>
20233         Target a C99 subset, not a C89 subset
20234         For many years Gnulib has targeted C89 and has resisted using C99
20235         features, as some Gnulib-using programs still wanted to target
20236         C89.  As this no longer seems to be the case, relax the porting
20237         requirements to allow some C99 features.  This is merely a change
20238         to the documentation, to give other Gnulib developers a chance to
20239         weigh in on the topic.
20240         * doc/extern-inline.texi (extern inline):
20241         * doc/gnulib-readme.texi (Portability guidelines):
20242         * doc/gnulib-tool.texi (Initial import):
20243         * doc/gnulib.texi (Header files):
20244         Modernize to talk about C99 and C11 instead of C89 and C99.
20245         * doc/gnulib-readme.texi (Portability guidelines):
20246         Now a section, not merely a subsection, so that it
20247         can be split up.  Modernize a bit.
20248         (C language versions, C99 features assumed)
20249         (C99 features avoided):
20250         New sections.
20252 2017-04-23  Bruno Haible  <bruno@clisp.org>
20254         doc: New section "Modules that modify the way other modules work".
20255         * doc/gnulib.texi (Modules that modify the way other modules work): New
20256         section.
20258 2017-04-23  Bruno Haible  <bruno@clisp.org>
20260         stat-time: Update comments.
20261         * lib/stat-time.h: Fix reference regarding st_ctime on Windows.
20262         * tests/test-utimens-common.h: Add reference regarding st_ctime on
20263         Windows.
20265 2017-04-01  Bruno Haible  <bruno@clisp.org>
20267         glob: Fix more memory leaks.
20268         * lib/glob.c (glob): Free allocated memory before returning.
20269         Reported by Coverity via Tim Rühsen.
20271 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
20273         poll: improve fast check for out-of-range NFD
20274         * lib/poll.c: Do not include intprops.h.
20275         (poll): Compare NFD to INT_MAX, not to TYPE_MAXIMUM (nfds_t) / 2.
20276         * modules/poll (Depends-on): Remove intprops.
20278         ftoastr: cite a newer paper
20279         * lib/ftoastr.c (FTOASTR): In comment, cite Andrysco et al. 2016
20280         instead of Loitsch 2010.
20282 2017-04-22  Bruno Haible  <bruno@clisp.org>
20284         poll: Enable argument check also in the Windows implementation.
20285         * lib/poll.c (poll) [WINDOWS_NATIVE]: Check value of nfd correctly.
20286         Reported by Paul Eggert.
20288 2017-04-22  Bruno Haible  <bruno@clisp.org>
20290         getlogin_r: Work around bug in Mac OS X 10.12.
20291         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test also against the Mac OS X
20292         bug.
20293         * lib/getlogin_r.c (getlogin_r): When getlogin_r returns a string of the
20294         given size minus 1, call getlogin_r a second time, on a larger buffer.
20295         * modules/getlogin_r (Depends-on): Add malloca.
20296         * doc/posix-functions/getlogin_r.texi: Mention the Mac OS X bug.
20298 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
20300         parse-datetime: fix %z and prefer signed int
20301         %z problem reported by Pádraig Brady in:
20302         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00103.html
20303         While fixing it, I decided to prefer signed ints to size_t, as
20304         they are less error-prone (e.g., ubsan catches overflow).
20305         * lib/parse-datetime.y (textint, parser_control, lookup_word, yylex)
20306         (parse_datetime2): Prefer ptrdiff_t to size_t for sizes and object
20307         counts, since signed integers make for better debugging.
20308         (date): Don’t assume %z works in printf formats.
20309         (debug_strfdatetime, debug_strfdate, debug_strftime): Use int for
20310         sizes of buffers known to be small, e.g., because we’re using snprintf.
20311         (parse_datetime2): Simplify call to debug_mktime_not_ok.
20313 2017-04-22  Bruno Haible  <bruno@clisp.org>
20315         *printf: Work around rounding bug on Mac OS X.
20316         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Test for Mac OS X 10.12 bug.
20317         * doc/posix-functions/*printf.texi: Mention the rounding bugs of
20318         Mac OS X and FreeBSD.
20319         * doc/glibc-functions/*printf.texi: Likewise.
20321 2017-04-22  Bruno Haible  <bruno@clisp.org>
20323         vasnprintf tests: Avoid warnings.
20324         * tests/test-vasnprintf-posix3.c (test_function, my_asnprintf,
20325         test_vasnprintf, test_asnprintf): Don't define if there's nothing to
20326         test.
20328 2017-04-22  Bruno Haible  <bruno@clisp.org>
20330         sys_file tests: Avoid warning.
20331         * tests/test-sys_file.c (main): Add a default clause to the switch
20332         statement.
20334 2017-04-22  Bruno Haible  <bruno@clisp.org>
20336         sethostname: Update doc.
20337         * doc/glibc-functions/sethostname.texi: Mention differing prototype on
20338         Mac OS X.
20340 2017-04-22  Bruno Haible  <bruno@clisp.org>
20342         quotearg tests: Avoid warnings.
20343         * tests/test-quotearg.c: Don't include test-quotearg.h if ENABLE_NLS is
20344         false.
20346 2017-04-22  Bruno Haible  <bruno@clisp.org>
20348         poll: Enable argument check.
20349         * lib/poll.c: Include intprops.h.
20350         (poll): Check value of nfd correctly.
20351         * modules/poll (Depends-on): Add intprops.
20353 2017-04-22  Bruno Haible  <bruno@clisp.org>
20355         get-rusage-data: Avoid warnings on Mac OS X.
20356         * lib/get-rusage-data.c: On Mac OS X, don't define
20357         get_rusage_data_via_setrlimit nor get_rusage_data_via_iterator.
20358         (get_rusage_data) [Mac OS X]: Just return 0.
20360 2017-04-22  Bruno Haible  <bruno@clisp.org>
20362         xbinary-io: Fix build error.
20363         * modules/xbinary-io (Depends-on): Add gettext-h.
20364         * lib/xbinary-io.c: Include gettext.h and define _().
20365         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
20366         <https://lists.gnu.org/r/bug-gnulib/2017-04/msg00089.html>.
20368 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
20370         parse-datetime: overflow and debug cleanups
20371         This long patch was triggered by this bug report from Ruediger Meier:
20372         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00028.html
20373         I fixed the bug he noted, then found some others nearby, and then
20374         still others.  Oh my goodness, there were a lot of bugs.  I cleaned
20375         up some of the code to follow GNU standards while I was at it.
20376         * lib/parse-datetime.y (ISDIGIT): Remove; all callers changed to
20377         use c_isdigit.
20378         (EPOCH_YEAR): Remove; unused.
20379         (TM_YEAR_BASE): Now an enum rather than a macro.
20380         (HOUR, debug_strfdatetime): Multiply hour by 3600, not 60, to get
20381         time zone offset, since timezones now are in terms of seconds and
20382         not minutes.
20383         (long_time_t): Remove.  All uses replaced by time_t or intmax_t as
20384         appropriate.  Verify that intmax_t is wide enough.
20385         (time_overflow, time_zone_str): New functions, used to deal
20386         more reliably with overflow.
20387         (dbg_printf): Add printf attribute, to help catch integer width errors.
20388         (textint, relative_time, parser_control, time_zone_hhmm, set_hhmmss)
20389         (%union, to_hour, yylex, parse_datetime2):
20390         Use intmax_t instead of long int and/or long_time_t.
20391         All uses changed.
20392         (DBGBUFSIZE): Move earlier.
20393         (relative_time, set_hhmmss, parser_control):
20394         Just use int for nanoseconds and for time zones; that’s wide enough.
20395         (parser_control): Use bool for members like year_seen that can
20396         be booleans instead of counters.  All uses changed.
20397         Remove debug_default_input_timezone; no longer needed.
20398         All uses removed.
20399         (apply_relative_time): Return a bool overflow flag.
20400         All uses changed to check for overflow.
20401         (apply_relative_time, zone, date, relunit, relunit_snumber)
20402         (signed_seconds, unsigned_seconds, yylex, parse_datetime2):
20403         Check for integer overflow portably.
20404         (str_days): Use just int for N, as it’s wide enough.
20405         Prefer 2D char arrays to arrays of char * when it looks like
20406         2D is a win on typical platforms.
20407         Prefer snprintf to strncpy/strncat, for simplicity;
20408         all buffers are smaller than INT_MAX so this is safe.
20409         (TIME_ZONE_BUFSiZE, TM_YEAR_BUFSIZE): New constants.
20410         (debug_print_current_time): Don’t assume tv_nsec is of type long,
20411         as this is not true on x32.  Output "." before any nanoseconds.
20412         (debug_print_current_time, parse_datetime2):
20413         Output local zones using a more-consistent format.
20414         (debug_print_current_time, date, parse_datetime2):
20415         (main) [TEST]:
20416         Don’t assume time_t is the same width as long.
20417         (print_rel_part): New function, replacing ...
20418         (PRINT_REL_PART): ... this macro, which was removed.  All uses changed.
20419         (debug_print_relative_time): Use bool for boolean.
20420         (local_zone): dsts_seen now counts only tDST instances.
20421         (date): Fix printf of size_t to use %z.  Do not assume numeric
20422         tokens have negative values merely because the context suggests
20423         a syntax with "-" separating tokens.
20424         (time_zone_hhmm): Return bool success indicator, which checks for
20425         overflow.  Store result into PC->time_zone instead.  All callers
20426         changed.
20427         (tm_year_str): New function.  Return a bool success indicator and
20428         store the result into a buffer.  All callers changed.  Output the
20429         numerically correct string even if adding 1900 to the year would
20430         overflow.
20431         (to_tm_year): New function, replacing the old to_year.  All
20432         callers changed.
20433         (tm_diff): Sync with glibc.
20434         (lookup_word): Use to_uchar instead of doing it by hand.
20435         (TZBUFSIZE): Now local to the only function that needs it.
20436         (debug_strfdatetime): Simplify now that time zones are int seconds.
20437         (debug_strfdate): Work even if tm_year + 1900 would overflow.
20438         (get_effective_timezone): Remove.  All uses removed.
20439         (parse_datetime2): Use fprintf in pieces instead of snprintfing
20440         to a fixed-size buffer.  Don’t assume that gmtime succeeds iff
20441         localtime succeeds.  Use tm_gmtoff if available.  Simplify how
20442         ‘goto fail;’ works in conjunction with the ‘ok’ flag.
20443         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Don’t define
20444         TIME_T_FITS_IN_LONG_INT, as it is no longer needed.
20445         * modules/parse-datetime (Depends-on): Add inttypes.
20447 2017-04-21  Bruno Haible  <bruno@clisp.org>
20449         gettext-h: Avoid -Wundef warning.
20450         * lib/gettext.h: Test the value of ENABLE_NLS only if it is defined.
20451         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
20452         <https://lists.gnu.org/r/bug-gnulib/2017-04/msg00022.html>.
20454 2017-04-05  Tim Rühsen  <tim.ruehsen@gmx.de>
20456         error: Avoid "function declaration isn't a prototype" warning.
20457         * lib/error.c (strerror_r): Turn K&R C prototype to an ANSI C prototype.
20459 2017-04-21  Bruno Haible  <bruno@clisp.org>
20461         vasnprintf: Fix for MSVC 14.
20462         * lib/vasnprintf.c (USE_MSVC__SNPRINTF): New macro.
20463         Everywhere, use !HAVE_SNPRINTF_RETVAL_C99 || USE_MSVC__SNPRINTF instead
20464         of !HAVE_SNPRINTF_RETVAL_C99.
20466 2017-04-21  Bruno Haible  <bruno@clisp.org>
20468         mbrtowc tests: Fix test failures on MSVC 14.
20469         * tests/test-mbrtowc-w32.c (test_one_locale): Accept MSVC's conversion
20470         behaviour for invalid input.
20472 2017-04-21  Bruno Haible  <bruno@clisp.org>
20474         mbsinit: Fix for MSVC 14.
20475         * lib/mbsinit.c (mbsinit): If GNULIB_defined_mbstate_t, provide an
20476         implementation that is in sync with mbrtowc.c. On other platforms, use
20477         an adequate ad-hoc implementation.
20479 2017-04-21  Bruno Haible  <bruno@clisp.org>
20481         Fix test-mbrtowc5.sh failure on native Windows.
20482         * lib/setlocale.c (setlocale_unixlike): Accept "POSIX" as an alias for
20483         "C".
20485 2017-04-21  Bruno Haible  <bruno@clisp.org>
20487         Avoid accidental use of native Windows APIs on Cygwin.
20488         * lib/getaddrinfo.c (WINDOWS_NATIVE): Don't define on Cygwin.
20489         * lib/localcharset.c (WINDOWS_NATIVE): Likewise.
20490         * lib/localename.c (WINDOWS_NATIVE): Likewise.
20492 2017-04-20  Bruno Haible  <bruno@clisp.org>
20494         Remove red warnings from the generated MODULES.html.
20495         * modules/fcntl (Description): Disambiguate function references.
20496         * modules/getcwd-lgpl (Description): Likewise.
20497         * modules/hostent (Description): Likewise.
20498         * modules/servent (Description): Likewise.
20499         * modules/tempname (Description): Likewise.
20501 2017-04-20  Bruno Haible  <bruno@clisp.org>
20503         verify tests: Fix spurious failure with parallel make.
20504         * gnulib-tool (func_emit_tests_Makefile_am): Emit initialization of
20505         EXTRA_PROGRAMS.
20506         * tests/test-verify.sh: Build test-verify-try.o, not test-verify.o.
20507         * tests/test-verify-try.c: New file.
20508         * modules/verify-tests (Files): Add it.
20509         (EXTRA_PROGRAMS): Add test-verify-try.
20510         (MOSTLYCLEANFILES): Update accordingly.
20511         Reported by Adam James Stewart <ajstewart@anl.gov>.
20513 2017-04-18  Bruno Haible  <bruno@clisp.org>
20515         vma-iter: Fix compilation error on Solaris 7.
20516         * lib/vma-iter.c (vma_iterate): Treat missing MAP_ANONYMOUS on Solaris
20517         like on IRIX, OSF/1.
20518         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20520 2017-04-18  Bruno Haible  <bruno@clisp.org>
20522         vma-iter: Fix conflict with module 'largefile' on 32-bit Solaris 9.
20523         * modules/vma-iter (configure.ac): Test whether <sys/procfs.h> can be
20524         included.
20525         * lib/vma-iter.c: On Solaris, test HAVE_SYS_PROCFS_H before including
20526         <sys/procfs.h>.
20527         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Don't define on Solaris when
20528         <sys/procfs.h> cannot be included.
20529         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20531 2017-04-18  Bruno Haible  <bruno@clisp.org>
20533         getopt-gnu: Add comments.
20534         * m4/getopt.m4 (gl_FUNC_GETOPT_GNU): Add comments.
20535         * modules/getopt-gnu (configure.ac): Likewise.
20537 2017-04-16  Paul Eggert  <eggert@cs.ucla.edu>
20539         regex: port better to Solaris 10
20540         Solaris 10 <locale.h> includes <libintl.h>, which #defines
20541         gettext, and this causes a double #define.
20542         Problem reported by Gavin Smith in:
20543         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00056.html
20544         * lib/regex_internal.h (gettext): #undef before #defining.
20546 2017-04-15  Paul Eggert  <eggert@Penguin.CS.UCLA.EDU>
20548         intprops: improve comments
20549         * lib/intprops.h: Improve and shorten commentary.
20550         For the record, if we ever run into a pedantic compiler that
20551         behaves differently from GCC when converting an out-of-range value
20552         to a signed integer, we can work around the problem with something
20553         like the following code, where UCT is the signed counterpart of T
20554         (UCT is sometimes narrower than UT) and all callers are changed
20555         accordingly:
20556         #if __SUNPRO_C <= 0x5120
20557         # define _GL_INT_OP_WRAPV_VIA_UNSIGNED(a, b, op, uct, ut, t) \
20558            ((t) ((ut) (a) op (ut) (b)))
20559         #else
20560         # define _GL_INT_OP_WRAPV_VIA_UNSIGNED(a, b, op, uct, ut, t) \
20561            (TYPE_MINIMUM (t) <= (uct) ((ut) (a) op (ut) (b)) \
20562             ? ((t) (uct) (((ut) (a) op (ut) (b)) - TYPE_MINIMUM (t)) \
20563                + TYPE_MINIMUM (t)) \
20564             : (t) (uct) ((ut) (a) op (ut) (b)))
20565         #endif
20567 2017-04-14  Paul Eggert  <eggert@Penguin.CS.UCLA.EDU>
20569         intprops: try to avoid tickling similar bugs
20570         * lib/intprops.h (_GL_INT_OP_CALC): Document that UT no longer
20571         needs to be the same width as T; it can be wider.
20572         Change callers so that UT is at least as wide as unsigned int,
20573         as I suspect that this is less likely to run into compiler bugs.
20575         intprops: port to Oracle Studio 12.3 x86
20576         Problem reported by Gavin Smith in:
20577         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00049.html
20578         * lib/intprops.h (_GL_INT_OP_WRAPV_VIA_UNSIGNED):
20579         Convert unsigned to signed via the usual rather than the standard way,
20580         to avoid a compiler bug in Oracle Studio 12.3 x86.
20582 2017-04-08  Paul Eggert  <eggert@cs.ucla.edu>
20584         getopt: prefer - to _ in new file names
20585         * lib/getopt-cdefs.in.h: Rename from lib/getopt_cdefs.in.h.
20586         * lib/getopt-core.h: Rename from lib/getopt_core.h.
20587         * lib/getopt-ext.h: Rename from lib/getopt_ext.h.
20588         * lib/getopt-pfx-core.h: Rename from lib/getopt_pfx_core.h.
20589         * lib/getopt-pfx-ext.h: Rename from lib/getopt_pfx_ext.h.
20590         All uses changed.
20592         getopt: port recent getopt changes to macOS
20593         Problem reported by Harald Maier (Bug#26398).
20594         The macOS C compiler uses __nonnull for its own purposes and that
20595         clashes with glibc's __nonnull.
20596         * lib/getopt.in.h: Add comment for _GL_ARG_NONNULL snippet.
20597         * lib/getopt_cdefs.in.h (__nonnull): Remove.
20598         * lib/getopt_core.h (getopt):
20599         * lib/getopt_ext.h (getopt_long, getopt_long_only):
20600         Use _GL_ARG_NONNULL, not __nonnull.
20601         * lib/unistd.in.h: Move snippet hooks to before where the getopt
20602         .h files are included, so that _GL_ARG_NONNULL is defined in time.
20603         * modules/getopt-posix (Depends-on): Add snippet/arg-nonnull.
20604         (getopt.h): Interpolate _GL_ARG_NONNULL snippet.
20606 2017-04-06  Paul Eggert  <eggert@cs.ucla.edu>
20608         getopt-gnu: omit some duplicate code
20609         * m4/getopt.m4 (gl_FUNC_GETOPT_GNU): Don’t require
20610         gl_FUNC_GETOPT_POSIX, as the configure.ac code generated by
20611         gnulib-tool already does this.
20612         * modules/getopt-gnu (configure.ac): Omit code duplicated from
20613         getopt-posix, which we depend on.
20615         getopt-posix: use angle-bracket include
20616         * lib/getopt1.c: Include <config.h>, not "config.h".
20618 2017-04-06  Zack Weinberg  <zackw@panix.com>
20620         getopt: annotate files with relationship to glibc
20622         As the final act in this patchset, adjust the message at the top of
20623         each file to indicate which files are synced with glibc.  (This has
20624         already been done for most of the headers.)
20626         * lib/getopt.c, lib/getopt1.c, lib/getopt_int.h:
20627         Mention in top-of-file boilerplate that these files are shared
20628         between glibc and gnulib.
20631         getopt: split up getopt.in.h and eliminate __need_getopt
20633         Over in glibc, all of the __need macros are being phased out in favor
20634         of small headers that declare only the necessary components, as this
20635         is much simpler and less prone to bugs.  As getopt is shared with
20636         glibc, gnulib needs to do the same for __need_getopt.
20638         __need_getopt is misnamed; what it really means is "we want only the
20639         getopt features specified in POSIX, not the GNU extensions".  glibc
20640         placed the "meat" of getopt.h into getopt_core.h and getopt_ext.h;
20641         these files can be shared verbatim with gnulib.  The portability
20642         wrapper, on the other hand, they have renounced altogether; glibc's
20643         getopt.h will no longer be shared with gnulib at all.  In exchange,
20644         certain glibc-specific quirks (having to do with __posix_getopt) no
20645         longer need appear in gnulib's headers at all.
20647         This patch merges getopt_core.h and getopt_ext.h from glibc, and
20648         splits up the current gnulib-side portability wrapper into three
20649         additional headers: getopt_pfx_core.h and getopt_pfx_ext.h handle
20650         __GETOPT_PREFIX for their respective headers, getopt_cdefs.in.h
20651         handles things like __BEGIN_DECLS and __THROW, and getopt.in.h and
20652         unistd.in.h just use them.  All new files are clearly marked with
20653         whether they are shared with glibc.
20655         * lib/getopt.in.h: Eliminate __need_getopt.  Break up into ...
20656         * lib/getopt_core.h, lib/getopt_ext.h: ... these new files shared
20657         with glibc, and ...
20658         * lib/getopt_cdefs.in.h, lib/getopt_pfx_core.h
20659         * lib/getopt_pfx_ext.h: ... these new files not shared with glibc.
20660         * lib/unistd.in.h: Include getopt_cdefs.h and getopt_pfx_core.h,
20661         instead of defining __need_getopt and including the full getopt.h.
20663         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): Check for sys/cdefs.h.
20664         Define substitution variables GETOPT_CDEFS_H and HAVE_SYS_CDEFS_H.
20665         * modules/getopt-posix (Files): Add new headers and sort list.
20666         (Depends-on): No longer need snippet/arg-nonnull.
20667         (Makefile.am): Generate getopt_cdefs.h.
20670         getopt: better handling of ambiguous options
20672         glibc's getopt uses alloca to construct a linked list of possibilities
20673         for an "ambiguous" long option.  In gnulib, malloc should be used
20674         instead.  Providing for both cases complicates things a fair bit.
20676         This patch rewrites ambiguous-option handling to use a boolean vector
20677         instead of a linked list.  There is then only one allocation that
20678         might need freeing; in glibc it can honor __libc_use_alloca as usual,
20679         and in gnulib we define __libc_use_alloca to always be false, so we
20680         don't need ifdefs in the middle of the function.  This should also be
20681         slightly more efficient in the normal case of long options being fully
20682         spelled out -- I think most people aren't even aware they _can_
20683         sometimes abbreviate long options.
20685         One interesting consequence is that the list of possibilities is now
20686         printed in exactly the order they appear in the list of long options,
20687         instead of the first possibility being shuffled to the end.
20689         (The patch looks bigger than it really is because there's a fair bit
20690         of reindentation and code rearrangement.)
20692         * lib/getopt.c: When used standalone, define __libc_use_alloca
20693         as always false and alloca to abort if called.
20694         (process_long_option): Rewrite handling of ambiguous long options
20695         to use a single boolean vector, not a linked list; use
20696         __libc_use_alloca to decide whether to allocate this using alloca.
20699         getopt: refactor long-option handling
20701         There were two copies of the bulk of the code to handle long options.
20702         Now there is only one.
20704         This change temporarily removes the logic to avoid using alloca when
20705         standalone; the next patch in the series will restore it.
20707         * lib/getopt.c (process_long_option): New function split out
20708         from _getopt_internal_r.
20709         (_getopt_internal_r): Replace both copies of the long-option
20710         processing code with calls to process_long_option.
20713         getopt: tidy up _getopt_initialize a bit
20715         _getopt_data.__posixly_correct is completely redundant to
20716         _getopt_data.__ordering, and some work that logically belongs in
20717         _getopt_initialize was being done by _getopt_internal_r, making the
20718         code harder to understand.
20720         As a side effect, getenv will no longer be called if the first
20721         character of the options string is '+' or '-', which is probably a
20722         Good Thing.  (Perhaps we should have a flag character that
20723         specifically asks for the permutation behavior?)
20725         * lib/getopt_int.h (_getopt_data): Remove __posixly_correct field.
20726         * lib/getopt.c (_getopt_internal_r): Move some initialization code...
20727         (_getopt_initialize): ...here. Don't set d->__posixly_correct.
20730         getopt: merge from glibc: repetition reduction
20732         The definitions of the entry point functions 'getopt' and
20733         '__posix_getopt' can be made substantially less repetitive with a
20734         helper macro.
20736         While I was merging the const-correctness changes from gnulib into
20737         glibc I noticed there are still some unnecessary casts in
20738         _getopt_internal_r.
20740         * lib/getopt.c (getopt, __posix_getopt): Eliminate repetition with
20741         a macro.  Consistently cast 'argv' to 'char **' when calling
20742         _getopt_internal.
20743         (_getopt_internal_r): Remove unnecessary casts when calling exchange.
20746         getopt: clean up error reporting
20748         getopt can print a whole bunch of error messages, and when used
20749         standalone (from gnulib) it uses fprintf to do that.  But fprintf is a
20750         cancellation point and getopt isn't, and also applying fprintf to a
20751         stream in wide-character mode is not allowed.  So every single error
20752         reporting case has an #ifdef _LIBC block in which it calls internal
20753         libc functions instead.  The counterpart patch series in glibc makes
20754         it possible to simplify all of that down to a set of #defines at the
20755         top of the file; core code is written as if it is safe to just call
20756         fprintf, flockfile, and funlockfile.  (One caveat: it's *not* safe to
20757         call any *other* stdio functions.)
20759         * lib/getopt.c: When _LIBC is defined, define fprintf to
20760         __fxprintf_nocancel, flockfile to _IO_flockfile, and funlockfile
20761         to _IO_funlockfile.  When neither _LIBC nor
20762         _POSIX_THREAD_SAFE_FUNCTIONS is defined, define flockfile and
20763         funlockfile as no-ops.
20764         (_getopt_internal_r): Remove all internal #ifdef _LIBC blocks; the
20765         standalone error-printing code can now be used for libc as well.
20766         Add an flockfile/funlockfile pair around one case where the error
20767         message is printed in several chunks.  Don't use fputc.
20770         getopt: fix fencepost error in ambiguous-W-option handling
20772         getopt_long contains an undocumented (AFAICT) feature in which, if you
20773         put "W;" in the short-options list, then '-W foo' and '-Wfoo' are
20774         treated as equivalent to '--foo'.  This is implemented with a partial
20775         second copy of the code for handling long options, and that code
20776         increments optind one too many times when recovering from an ambiguous
20777         abbreviated option, which can cause the main loop to walk past the end
20778         of argv and crash.
20780         I discovered this while writing a test case that tries to exercise all
20781         of getopt's error reporting paths; I wouldn't be surprised to learn
20782         that this feature is never used by real applications.
20784         * lib/getopt.c (_getopt_internal_r): Don't increment
20785         d->optind a second time when reporting ambiguous -W options.
20788         getopt: clean up getopt.c and getopt1.c file headers
20790         In getopt.c, there is no need to include wchar.h at all, and it is
20791         safe nowadays to assume that stdlib.h does declare getenv (several
20792         other gnulib modules make this assumption).
20794         In getopt1.c, the #ifdef _LIBC block at the top can be simplified
20795         by using "" inclusions consistently, and there is no actual need to
20796         include stdlib.h (except in the #ifdef TEST block, where it should be
20797         unconditional), nor to provide a backup definition of NULL at all.
20799         * lib/getopt1.c: Simplify #ifdeffage at top of file.
20800         Move inclusion of stdlib.h to #ifdef TEST block and make
20801         unconditional.  Do not define NULL.
20802         * lib/getopt.c: Don't include wchar.h. No need to declare getenv.
20803         * m4/getopt.m4 (gl_PREREQ_GETENV): Delete.
20804         * modules/getopt-gnu, modules/getopt-posix: Don't call
20805         gl_PREREQ_GETENV.
20808         getopt: harmonize comments with glibc
20810         The comments explaining how the behavior of 'getopt' varies depending
20811         on whether it's the standalone version and whether there are special
20812         characters at the beginning of the options string were inconsistent
20813         between gnulib and glibc, and also out of sync with the code.
20815         * lib/getopt.c, lib/getopt_int.h: Harmonize comments with glibc.
20818         getopt: remove USE_NONOPTION_FLAGS
20820         getopt includes code to parse an environment variable named
20821         _XXX_GNU_nonoption_argv_flags_ (where XXX is the current process's PID
20822         in decimal); but all of it has been #ifdefed out since 2001, with no
20823         official way to turn it back on.
20825         According to commentary in glibc's config.h.in, bash version 2.0
20826         set this environment variable to indicate argv elements that were
20827         the result of glob expansion and therefore should not be treated
20828         as options, but the feature was "disabled later" because "it
20829         caused problems".  According to bash's CHANGES file, "later" was
20830         release 2.01; it gives no more detail about what the problems
20831         were.
20833         Version 2.0 of bash was released on the last day of 1996, and version
20834         2.01 in June of 1997.  Twenty years later, I think it is safe to
20835         assume that this environment variable isn't coming back.
20837         * lib/getopt_int.h: Remove all #ifdef USE_NONOPTION_FLAGS blocks.
20838         * lib/getopt.c: Likewise. Also remove SWAP_FLAGS and the
20839         __libc_argc and __libc_argv externs, which were only used by
20840         #ifdef USE_NONOPTION_FLAGS blocks.
20843         getopt: tabify, in preparation for merge with glibc
20845         glibc sticks to the GNU default of indenting with a mix of
20846         8-column tabs and spaces; make the gnulib copy match.
20848         getopt.h is not included because it is *not* going to be merged in its
20849         present form.
20851         * getopt.c, getopt1.c, getopt_int.h: Tabify.
20853 2017-04-02  Bruno Haible  <bruno@clisp.org>
20855         relocatable-lib-lgpl: Fix link error (regression from 2011-06-16).
20856         * modules/relocatable-lib-lgpl (configure.ac): Add AC_LIBOBJ invocation,
20857         like it was done in modules/relocatable-lib on 2011-05-21 and in
20858         modules/relocatable-prog on 2011-08-15.
20859         Reported by Reuben Thomas <rrt@sc3d.org>.
20861 2017-03-31  Bruno Haible  <bruno@clisp.org>
20863         glob: Fix invalid free() call.
20864         * lib/glob.c (glob): Reset malloc_home_dir when assigning a pointer to
20865         static storage to home_dir.
20866         Reported by Coverity via Tim Rühsen.
20868 2017-03-31  Bruno Haible  <bruno@clisp.org>
20870         glob: Fix memory leaks.
20871         * lib/glob.c (glob): Free allocated memory before returning.
20872         Reported by Coverity via Tim Rühsen.
20874 2017-03-31  Bruno Haible  <bruno@clisp.org>
20876         md5, sha1, sha256, sha512: Add comments regarding correctness.
20877         * lib/md5.h (buflen): Add comments regarding range.
20878         * lib/sha1.h (buflen): Likewise.
20879         * lib/sha256.h (buflen): Likewise.
20880         * lib/sha512.h (buflen): Likewise.
20881         * lib/md5.c (md5_process_bytes): Add comment why memmove is not needed.
20882         * lib/sha1.c (sha1_process_bytes): Likewise.
20883         * lib/sha256.c (sha256_process_bytes): Likewise.
20884         * lib/sha512.c (sha512_process_bytes): Likewise.
20885         Reported by Coverity via Tim Rühsen.
20887 2017-03-22  Paul Eggert  <eggert@cs.ucla.edu>
20889         getopt: merge from glibc
20890         This does not change anything substantial; it merely simplifies
20891         hypothetical merges back to glibc.
20892         * lib/getopt.c, lib/getopt.in.h, lib/getopt1.c, lib/getopt_int.h:
20893         Change copyright notice to match what is in glibc.
20894         * lib/getopt.c: Reorder includes to match glibc.  Remove uses of
20895         USE_IN_LIBIO.  Remove 'register'.  In __LIBC code, use
20896         __open_memstream rather than open_memstream and __glibc_likely
20897         instead of __builtin_expect.
20898         * lib/getopt.in.h (__posix_getopt) [!__GETOPT_PREFIX]: New decl.
20900 2017-03-21  Paul Eggert  <eggert@cs.ucla.edu>
20902         dfa: make [0-9] faster in non-C locales
20903         Problem reported by John P. Linderman (Bug#26193).
20904         * lib/dfa.c (parse_bracket_exp): Remove redundant assignment.
20905         If both ends of the range are ASCII digits, do not worry about
20906         multi-character collating sequences and the like.  Be consistent
20907         about using isalpha as a precondition for setbit_case_fold_c.
20909 2017-03-19  Bruno Haible  <bruno@clisp.org>
20911         lock: Fix compilation error with HP-UX IA64 cc.
20912         * lib/glthread/lock.h (pthread_rwlockattr_setkind_np): Don't declare
20913         weak on non-glibc platforms.
20915 2017-03-19  Paul Eggert  <eggert@cs.ucla.edu>
20917         stdalign: tweak version# and test for HP-UX IA64
20918         Problems reported by Bruno Haible in:
20919         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00078.html
20920         * lib/stdalign.in.h (_Alignas):
20921         * m4/stdalign.m4 (gl_STDALIGN_H):
20922         Use octal, not decimal, for __HP_cc version.  Perhaps HP formerly
20923         used octal (as that is how they document it), but it is decimal in
20924         practice now and the ancient implementations no longer matter.
20925         * tests/test-stdalign.c (main) [__HP_cc && __ia64]: Skip test.
20927 2017-03-19  Bruno Haible  <bruno@clisp.org>
20929         vma-iter: Add support for Solaris.
20930         * lib/vma-iter.c (vma_iterate): On Solaris, use the /proc filesystem
20931         approach.
20932         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on Solaris.
20933         * lib/get-rusage-as.c: Update comment about Solaris.
20934         * lib/get-rusage-data.c: Likewise.
20936 2017-03-19  Bruno Haible  <bruno@clisp.org>
20938         vma-iter: Prefer HP-UX specific API on HP-UX.
20939         * lib/vma-iter.c (vma_iterate): Move HP-UX specific implementation up.
20940         * lib/vma-iter.h: Update.
20941         Just in case HP-UX ever implements mquery().
20943 2017-03-18  Paul Eggert  <eggert@cs.ucla.edu>
20945         stdalign: restore previous behavior for HP-UX IA64
20946         See Bruno Haible's email in:
20947         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00066.html
20948         which cites p 150 of a manual saying that 'aligned' works on Itanium.
20949         * lib/stdalign.in.h (_Alignas):
20950         Assume the '061200' applies to Itanium, not to PA-RISC.
20951         * m4/stdalign.m4 (gl_STDALIGN_H): Adjust to match stdalign.in.h.
20953 2017-03-17  Bruno Haible  <bruno@clisp.org>
20955         stat-time, timespec: Support use of the header files in C++ mode.
20956         * lib/stat-time.h: Add "C" linkage declaration.
20957         * lib/timespec.h: Likewise.
20959 2017-03-17  Bruno Haible  <bruno@clisp.org>
20961         stdalign: Make it work with HP-UX cc.
20962         * lib/stdalign.in.h (_Alignas): Don't define for HP-UX cc.
20963         * m4/stdalign.m4 (gl_STDALIGN_H): No need to enable the extra test
20964         for HP-UX cc.
20966 2017-03-17  Paul Eggert  <eggert@cs.ucla.edu>
20968         flexmember: try to detect HP-UX 11.31 cc bug
20969         Problem reported by Bruno Haible in:
20970         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00066.html
20971         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
20972         Attempt to detect bug in HP-UX 11.31 cc.
20974 2017-03-16  Bruno Haible  <bruno@clisp.org>
20976         stdint: Fix test compilation failure with HP-UX 11 cc.
20977         * lib/stdint.in.h (_STDINT_MIN): Remove macro.
20978         (_STDINT_UNSIGNED_MIN, _STDINT_SIGNED_MIN): New macros.
20979         (PTRDIFF_MIN, SIG_ATOMIC_MIN, WCHAR_MIN, WINT_MIN): Define using
20980         _STDINT_UNSIGNED_MIN, _STDINT_SIGNED_MIN.
20982 2017-03-14  Bruno Haible  <bruno@clisp.org>
20984         gnulib-tool: Don't produce a tests directory with only snippet .h files.
20985         * gnulib-tool (func_modules_transitive_closure_separately): If
20986         testsrelated_modules ends up with no "real" modules, aside from
20987         modules with applicability 'all', set it to empty.
20989 2017-03-14  Bruno Haible  <bruno@clisp.org>
20991         vma-iter: Add support for HP-UX.
20992         * modules/vma-iter (configure.ac): Check for 'pstat_getprocvm'.
20993         * lib/vma-iter.c (vma_iterate): On HP-UX, use pstat_getprocvm().
20994         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on HP-UX.
20995         * lib/get-rusage-as.c: Update comment about HP-UX.
20996         * lib/get-rusage-data.c: Likewise.
20997         (get_rusage_data): Use get_rusage_data_via_setrlimit.
20999 2017-03-14  Bruno Haible  <bruno@clisp.org>
21001         limits-h: Make it work with HP-UX cc.
21002         * lib/limits.in.h (LLONG_MIN, LLONG_MAX, ULLONG_MAX): Define if not
21003         defined.
21005 2017-03-14  Bruno Haible  <bruno@clisp.org>
21007         Fix test failures on DragonFlyBSD.
21008         * tests/test-localeconv.c (main): Treat DragonFlyBSD like FreeBSD.
21009         * tests/test-select.h (test_bad_fd): Likewise.
21010         * tests/test-get-rusage-data.c (main): Treat DragonFlyBSD like OpenBSD.
21012 2017-03-14  Bruno Haible  <bruno@clisp.org>
21014         freadahead: Silence warning on DragonFlyBSD.
21015         * lib/freadahead.c (__sreadahead): Declare ourselves.
21017 2017-03-14  Bruno Haible  <bruno@clisp.org>
21019         vma-iter: Add comment about AIX.
21020         * lib/vma-iter.c: Add comment about why this module is not implemented
21021         on AIX.
21023 2017-03-14  Paul Eggert  <eggert@cs.ucla.edu>
21025         snippets: move unadjusted snippet sources to lib
21026         Problem reported by Michal Privoznik in:
21027         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00039.html
21028         * lib/_Noreturn.h: Rename from build-aux/snippet/_Noreturn.h.
21029         * lib/arg-nonnull.h: Rename from build-aux/snippet/arg-nonnull.h.
21030         * lib/c++defs.h: Rename from build-aux/snippet/c++defs.h.
21031         * lib/unused-parameter.h: Rename from
21032         build-aux/snippet/unused-parameter.h.
21033         * lib/warn-on-use.h: Rename from build-aux/snippet/warn-on-use.h.
21034         * modules/snippet/_Noreturn (Files:, _NORETURN_H):
21035         * modules/snippet/arg-nonnull (Files:, ARG_NONNULL_H):
21036         * modules/snippet/c++defs (Files:, CXXDEFS_H):
21037         * modules/snippet/unused-parameter (Files:, UNUSED_PARAMETER_H):
21038         * modules/snippet/warn-on-use (Files: WARN_ON_USE_H):
21039         Adjust to file renamings.
21041 2017-03-14  Mathieu Lirzin  <mthl@gnu.org>
21043         gnulib-tool: don't automatically distribute files from top/
21044         * gnulib-tool (func_get_automake_snippet_unconditional): To be able to
21045         not distribute top/README-release by default, don't distribute files
21046         from top/ unconditionally.
21047         * modules/gnumakefile (Makefile.am): Distribute top/GNUmakefile.
21048         * modules/maintainer-makefile (Makefile.am): Distribute top/maint.mk.
21050 2017-03-14  Paul Eggert  <eggert@cs.ucla.edu>
21052         gnulib-tool: fix typo in comment output
21053         * gnulib-tool (func_import): Fix typo with previous change.
21055         snippets: work around GNU Make 3.82 VPATH
21056         When using 'gnulib-tool --gnu-make' on Emacs, and building
21057         the resulting tarball on Solaris 10 which bundles GNU Make 3.82,
21058         an out-of-source (VPATH) build failed because the sans-copyright
21059         snippet file was not built before the file that used it.
21060         Presumably this is some sort of VPATH thing.  Work around the
21061         problem by using the original snippet, i.e., don’t bother to
21062         remove its copyright notice.
21063         * modules/snippet/_Noreturn, modules/snippet/link-warning:
21064         Don’t assume Automake in comments.  Omit long-incorrect comment.
21065         * modules/snippet/arg-nonnull (BUILT_SOURCES, arg-nonnull.h)
21066         (MOSTLYCLEANFILES):
21067         * modules/snippet/c++defs (BUILT_SOURCES, c++defs.h)
21068         (MOSTLYCLEANFILES):
21069         * modules/snippet/unused-parameter (BUILT_SOURCES, unused-parameter.h)
21070         (MOSTLYCLEANFILES):
21071         * modules/snippet/warn-on-use (BUILT_SOURCES, warn-on-use.h)
21072         (MOSTLYCLEANFILES):
21073         Remove.
21074         * modules/snippet/arg-nonnull (ARG_NONNULL_H):
21075         * modules/snippet/c++defs (CXXDEFS_H):
21076         * modules/snippet/unused-parameter (UNUSED_PARAMETER_H):
21077         * modules/snippet/warn-on-use (WARN_ON_USE_H):
21078         Don’t bother to remove the copyright notice; just use the
21079         original snippet as-is.
21081 2017-03-13  Paul Eggert  <eggert@cs.ucla.edu>
21083         gnulib-tool: minor --gnu-make fixups
21084         * gnulib-tool (func_emit_lib_Makefile_am):
21085         Remove useless code that was a blind alley during implementation.
21086         Problem reported by Thien-Thi Nguyen in:
21087         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00029.html
21088         (func_import): Note the "--gnu-make" option in the output comment.
21090 2017-03-12  Paul Eggert  <eggert@cs.ucla.edu>
21092         gnulib-tool: new option --gnu-make
21093         This is for applications like GNU Emacs that use GNU Make
21094         features instead of Automake.
21095         * doc/gnulib-tool.texi (Initial import): Mention --gnu-make.
21096         * doc/gnulib.texi (Unit test modules, Build robot for gnulib):
21097         Do not assume Automake.
21098         * gnulib-tool (func_determine_path_separator)
21099         (func_modules_transitive_closure, func_update_file)
21100         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
21101         (func_import): Add support for --gnu-make.
21103 2017-03-11  Paul Eggert  <eggert@cs.ucla.edu>
21105         gnulib-common.m4: avoid aclocal.m4 bloat
21106         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB):
21107         Hide AM_PROG_AR from aclocal, so that aclocal does not
21108         install irrelevant macro definitions into aclocal.m4.
21110 2017-03-10  Bruno Haible  <bruno@clisp.org>
21112         vma-iter: Let callers know about error.
21113         * lib/vma-iter.h (vma_iterate): Return 'int', not 'void'.
21114         * lib/vma-iter.c (vma_iterate): Return -1 in case of error.
21116 2017-03-05  Bruno Haible  <bruno@clisp.org>
21118         Fix value of LD for 64-bit compilers on AIX.
21119         * m4/lib-ld.m4 (AC_LIB_PROG_LD): For 64-bit compilers on AIX
21120         ("gcc -maix64" and "xlc -q64"), add option -b64 to $LD.
21122 2017-03-04  Paul Eggert  <eggert@cs.ucla.edu>
21124         dtotimespec: simplify
21125         * lib/dtotimespec.c (dtotimespec): Simplify.
21127 2017-03-04  Bruno Haible  <bruno@clisp.org>
21129         test-calloc-gnu: Reenable test also for GCC 7.
21130         * tests/test-calloc-gnu.c (eight): New function.
21131         (main): Don't skip test; use eight() instead.
21133 2017-03-04  Jim Meyering  <meyering@fb.com>
21135         test-calloc-gnu: port to GCC7
21136         * tests/test-calloc-gnu.c (main) [__GNUC__ >= 7]: Skip a test
21137         that attempts to calloc more than SIZE_MAX bytes, because GCC7
21138         and newer would detect that at compilation time.
21140 2017-03-04  Bruno Haible  <bruno@clisp.org>
21142         tests: Avoid compiler warning about uses of null_ptr.
21143         * tests/null-ptr.h: New file.
21144         * tests/test-canonicalize.c: Include null-ptr.h.
21145         (null_ptr): Remove function.
21146         * tests/test-canonicalize-lgpl.c: Likewise.
21147         * tests/test-memmem.c: Likewise.
21148         * tests/test-ptsname_r.c: Likewise.
21149         * modules/canonicalize-tests (Files): Add tests/null-ptr.h.
21150         * modules/canonicalize-lgpl-tests: Likewise.
21151         * modules/memmem-tests: Likewise.
21152         * modules/ptsname_r-tests: Likewise.
21153         Reported by Jim Meyering.
21155 2017-03-03  Bruno Haible  <bruno@clisp.org>
21157         doc: Mention Mac OS X deficiencies regarding semaphores.
21158         * doc/posix-functions/sem_init.texi: Mention status on Mac OS X.
21159         * doc/posix-functions/sem_destroy.texi: Likewise.
21160         * doc/posix-functions/sem_getvalue.texi: Likewise.
21162 2017-03-03  Bruno Haible  <bruno@clisp.org>
21164         lock tests: Fix test failure on Mac OS X (regression from 2017-01-05).
21165         Reported by Assaf Gordon <assafgordon@gmail.com> via
21166         Pádraig Brady <P@draigBrady.com>.
21167         * tests/test-lock.c: On Mac OS X, use named semaphores, not unnamed
21168         semaphores.
21169         (USE_NAMED_SEMAPHORE, USE_UNNAMED_SEMAPHORE): New macros.
21170         (atomic_int_semaphore): New macro.
21172 2017-02-28  Bruno Haible  <bruno@clisp.org>
21174         perror tests: Tweak for z/OS.
21175         Reported by Daniel Richard G. <skunk@iskunk.org>.
21176         * tests/test-perror.sh: Don't fail z/OS style perror output.
21178 2017-02-26  Bruno Haible  <bruno@clisp.org>
21180         nproc: Refactor large function.
21181         * lib/nproc.c (num_processors_ignoring_omp): New function, extracted
21182         from num_processors.
21183         (num_processors): In this function, only deal with OMP.
21185 2017-02-26  Pádraig Brady  <P@draigBrady.com>
21187         nproc: adjust handling of OpenMP environment variables
21188         to match the return value from omp_get_num_threads(), i.e.:
21189          - honor OMP_THREAD_LIMIT without OMP_NUM_THREADS
21190          - Treat 0 as an invalid value and ignore
21191         Also remove the call to omp_get_num_threads() because
21192         it's ineffective without the omp pragmas in place.
21193         * lib/nproc.c (parse_omp_threads): Return 0 if specified,
21194         so that it can be ignored.
21195         (num_processors): Honor OMP_THREAD_LIMIT even without
21196         OMP_NUM_THREADS being set.  Also fix a typo in the environment
21197         variable being checked, from the previous recent commit.
21199 2017-02-26  Pádraig Brady  <P@draigBrady.com>
21201         nproc: support nested OMP_NUM_THREADS, and OMP_THREAD_LIMIT
21202         * lib/nproc.c (parse_omp_threads): A new function refactored
21203         from num_processors() to support parsing both of the
21204         above environment variables.
21205         (num_processors): Prefer using omp_get_num_threads() with [_OPENMP]
21206         to accurately reflect the current OpenMP nesting level.
21207         Also support the OMP_THREAD_LIMIT environment variable
21208         to limit the max value determined from OMP_NUM_THREADS.
21209         * modules/nproc: Depend on minmax header.
21210         Suggested by Oliver Heimlich.
21212 2017-02-25  Bruno Haible  <bruno@clisp.org>
21214         maintainer-makefile: Fix AC_PROG_SED with autoconf cache.
21215         * m4/gnulib-common.m4 (AC_PROG_SED): Fix AC_CACHE_CHECK invocation.
21217 2017-02-24  Paul Eggert  <eggert@cs.ucla.edu>
21219         ftoastr: port to -Wdouble-promotion
21220         Work around -Wdouble-promotion false alarm in recent GCCs.
21221         * lib/ftoastr.c (PROMOTED_FLOAT): New macro.
21222         (ftoastr_snprintf, FTOASTR): Use it.
21224 2017-02-21  Bruno Haible  <bruno@clisp.org>
21226         lock tests: Fix build failure on GNU/Hurd (regression from 2017-01-05).
21227         Reported by Rene Saavedra <rennes@openmailbox.org> in
21228         https://debbugs.gnu.org/cgi/bugreport.cgi?bug=25821 via Paul Eggert.
21229         * lib/glthread/lock.h: On glibc systems without
21230         PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP, use the fallback
21231         implementation of rwlocks.
21232         * lib/glthread/lock.c: Likewise.
21234 2017-02-20  Bruno Haible  <bruno@clisp.org>
21236         lock tests: Fix build failure on z/OS.
21237         Reported by Daniel Richard G. <skunk@iskunk.org>.
21238         * modules/lock-tests (configure.ac): Test for <semaphore.h>.
21239         * tests/test-lock.c (USE_SEMAPHORE): Don't set if <semaphore.h> does not
21240         exist.
21242 2017-02-19  Bruno Haible  <bruno@clisp.org>
21244         havelib: Prefer the search path of /usr/bin/gcc over the one of $CC.
21245         This helps when CC=clang.
21246         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Prefer the search path
21247         of /usr/bin/gcc.
21249         havelib: Support overriding the result of AC_LIB_PREPARE_MULTILIB.
21250         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Use AC_CACHE_CHECK.
21252 2017-02-19  Bruno Haible  <bruno@clisp.org>
21254         gnulib-tool: Avoid conflict of havelib-tests with --single-configure.
21255         * gnulib_tool (func_create_testdir): Avoid havelib-tests when
21256         --with-tests --single-configure is specified.
21258 2017-02-16  Tim Rühsen  <tim.ruehsen@gmx.de>
21260         users.txt: Update links, use HTTPS where possible
21261         * users.txt: Updated to HTTPS where possible,
21262         fixed some links to new locations.
21264 2017-02-16  Bruno Haible  <bruno@clisp.org>
21266         xbinary-io: Fix inlining.
21267         * lib/xbinary-io.c: Set XBINARY_IO_INLINE, not XSETMODE_INLINE.
21269 2017-02-16  Paul Eggert  <eggert@cs.ucla.edu>
21271         xbinary-io: rename from xsetmode
21272         This patch is taken from suggestions by Bruno Haible in:
21273         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00060.html
21274         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00061.html
21275         * lib/binary-io.c (__gl_setmode_check): Set errno to EINVAL,
21276         not ENOTTY, when it is an inappropriate device.
21277         * lib/binary-io.h (SET_BINARY): Resurrect.
21278         * lib/xbinary-io.c: Rename from lib/xsetmode.c.
21279         (xset_binary_mode_error): Rename from xsetmode_error.
21280         * lib/xbinary-io.h: Rename from lib/xsetmode.h.
21281         (xset_binary_mode): Rename from xsetmode.
21282         All uses changed.
21283         * modules/xbinary-io: Rename from modules/xsetmode.
21284         Update file names.
21285         * tests/test-binary-io.sh (tmpfiles): Remove no-longer-used file name.
21286         * NEWS: Update to match revised behavior.
21288 2017-02-15  Paul Eggert  <eggert@cs.ucla.edu>
21290         tests: Adjust to recent SET_BINARY change
21291         * tests/test-binary-io.c (main):
21292         * tests/test-binary-io.sh: Remove test for SET_BINARY.
21293         * tests/test-closein.c, tests/test-fflush2.c, tests/test-ftell.c:
21294         * tests/test-ftello.c, tests/test-nonblocking-pipe-child.c:
21295         * tests/test-yesno.c: Use set_binary_mode, not SET_BINARY.
21297         xsetmode: new module
21298         This is to fix a problem noted by Eric Blake.
21299         Code was using xfreopen to change files to binary mode, but this
21300         fails for stdout when in append mode.  Such code should use
21301         xsetmode instead.
21302         * NEWS: Document incompatible changes to binary-io module.
21303         * lib/binary-io.c (__gl_setmode_check) [__DJGPP__ || __EMX__]:
21304         New function.
21305         * lib/binary-io.h (__gl_setmode): Rename from set_binary_mode.
21306         (set_binary_mode): New function, which also checks for tty.
21307         * lib/xsetmode.c, lib/xsetmode.h, modules/xsetmode: New files.
21309 2017-02-14  Paul Eggert  <eggert@cs.ucla.edu>
21311         headers: fix begin-end typos
21312         * lib/mbfile.h, lib/se-selinux.in.h: Fix typos by replacing
21313         _GL_INLINE_HEADER_BEGIN with _GL_INLINE_HEADER_END.
21315         selinux-h: port to PGI 16.10
21316         * lib/se-selinux.in.h: Don't assume that include_next skips over
21317         duplicate -I DIR options.
21319         argp: port to PGI 16.10
21320         * lib/argp-pin.c (dummy): Declare as needed to make file nonempty.
21322 2017-02-13  Darshit Shah  <darnir@gnu.org>
21324         unicase: Update function protoype to match definition.
21325         * lib/unicase/special-casing.h (gl_unicase_special_lookup): Gperf 3.1
21326         uses 'size_t' as the datatype for the 'len' parameter in the functions
21327         it generates. Update the prototype specified here to match the newly
21328         generated function.
21330 2017-02-12  Bruno Haible  <bruno@clisp.org>
21332         times test: Avoid gcc warnings on Linux/x32.
21333         * tests/test-times.c (main): Really cast printf arguments from clock_t
21334         to 'long int'.
21336 2017-02-12  Paul Eggert  <eggert@cs.ucla.edu>
21338         glob: port better to emscripten
21339         Problem reported by Bruno Haible in:
21340         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00031.html
21341         * lib/glob.c (glob): Don't assume HAVE_GETPWNAM_R || _LIBC.
21343 2017-02-11  Bruno Haible  <bruno@clisp.org>
21345         host-cpu-c-abi: Support for 64-bit AIX, 32-bit armhf on arm64, hppa64.
21346         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Define also HOST_CPU.
21347         For the x32 ABI on x86_64, set HOST_CPU_C_ABI to 'x86_64-x32' and define
21348         both __x86_64__ and __x86_64_x32__. For the ELFv2 ABI on powerpc64,
21349         define both __powerpc64__ and __powerpc64_elfv2__. Recognize 64-bit
21350         compilation on AIX. Recognize 32-bit compilation on arm64/Linux.
21351         Distinguish hppa64 from hppa.
21353 2017-02-10  Bruno Haible  <bruno@clisp.org>
21355         search: Don't assume that tsearch() exists if 'VISIT' is defined.
21356         * m4/search_h.m4 (gl_SEARCH_H): Determine HAVE_TYPE_VISIT.
21357         * modules/search (Makefile.am): Substitute HAVE_TYPE_VISIT.
21358         * lib/search.in.h (VISIT): Define if HAVE_TYPE_VISIT is 0.
21360 2017-02-09  Bruno Haible  <bruno@clisp.org>
21362         doc: Don't mention obsolete AC_LIBTOOL_WIN32_DLL macro.
21363         * doc/gnulib.texi (Libtool and Windows): Recommend
21364         LT_INIT([win32-dll]) instead of AC_LIBTOOL_WIN32_DLL.
21365         Reported by Reuben Thomas <rrt@sc3d.org>.
21367 2017-02-08  Paul Eggert  <eggert@cs.ucla.edu>
21369         stddef-tests: port to SIZE_MAX <= INT_MAX
21370         * tests/test-stddef.c: Include <limits.h>, for INT_MAX.
21371         Do not assume that INT_MAX < SIZE_MAX.
21373 2017-02-01  Bruno Haible  <bruno@clisp.org>
21375         lock tests: Fix link error.
21376         * modules/lock-tests (test_rwlock1_LDADD): Add @YIELD_LIB@.
21377         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21379 2017-01-31  Bruno Haible  <bruno@clisp.org>
21381         lock: Fix link error (regression from 2017-01-05).
21382         * lib/glthread/lock.h [USE_POSIX_THREADS_WEAK]: Declare also
21383         pthread_rwlockattr_init, pthread_rwlockattr_setkind_np,
21384         pthread_rwlockattr_destroy weak.
21385         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21387 2017-01-30  Paul Eggert  <eggert@cs.ucla.edu>
21389         Port to PGI 16.10 x86-64
21390         This patch fixes one real bug in gl_anylinked_list2.h, along with
21391         some minor glitches that are not bugs.  It does not silence PGI’s
21392         thousands of bogus warnings when compiling test-intprops.c.
21393         Fortunately, the warnings do not cause a failure.
21394         * lib/c-ctype.h (_C_CTYPE_LOWER_A_THRU_F_N, _C_CTYPE_LOWER_N):
21395         Rename parameter to avoid PGI warning about ‘#define f(n) 'n'’.
21396         My goodness, PGI goes back a long ways - this predates C89!
21397         * lib/gl_anylinked_list2.h (ASYNCSAFE): Fix bug caught by PGI.
21398         For example, ASYNCSAFE (const void *) should expand to
21399         ‘const void *volatile’, not to ‘volatile const void *’.
21400         * lib/spawn.in.h (POSIX_SPAWN_USEVFORK): Don't define if already defined.
21401         * lib/verify.h (verify) [!__GNUC__]:
21402         Use shorter albeit meaningless string to bypass silly compiler limits.
21403         * tests/infinity.h (Infinityf, Infinityd, Infinityl) [__PGI]:
21404         * tests/nan.h (NaNf, NaNd, NaNl):
21405         Use static functions to avoid misguided compiler diagnostics.
21406         Is there some reason we don’t use static functions on all platforms?
21408 2017-01-20  Paul Eggert  <eggert@cs.ucla.edu>
21410         parse-datetime: handle timezones reentrantly
21411         This API change was prompted by a report by Pádraig Brady in:
21412         https://bug.debian.org/851934#10
21413         To help fix the bug, make parse_datetime2 more reentrant.
21414         * NEWS: Document this incompatible change.
21415         * lib/parse-datetime.h, lib/parse-datetime.y (parse_datetime2):
21416         Add two arguments, the timezone and the timezone name.
21417         All callers changed.  If TZ="..." is specified, use it for
21418         calculating defaults.
21419         * lib/parse-datetime.y: Don't include xalloc.h or use xmalloc, as
21420         this code should be usable in a library.
21421         (mktime_ok, get_effective_timezone):
21422         Accept timezone arg too.  All callers changed.
21423         (get_tz): Remove.
21424         (get_effective_timezone): Check for failures.
21426 2017-01-20  Eric Blake  <eblake@redhat.com>
21428         localename: port to cygwin 2.6
21429         * lib/localename.c (gl_locale_name_thread_unsafe): Add clause for
21430         Cygwin.
21431         * modules/localename (Depends-on): Add extensions, since
21432         NL_LOCALE_NAME() is not visible without it.
21434 2017-01-17  Pádraig Brady  <P@draigBrady.com>
21436         parse-datetime: fix dependence on AC_PROG_SED
21437         * modules/parse-datetime: Use `sed` directly like all other modules.
21438         Reported by J William Piggott
21440 2017-01-16  Paul Eggert  <eggert@cs.ucla.edu>
21442         intprops: update doc URLs
21443         * doc/intprops.texi (Integer Range Overflow): Update URLs.
21445 2017-01-16  Bruno Haible  <bruno@clisp.org>
21447         host-cpu-c-abi: Add support for armhf, arm64, x32, s390x.
21448         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Require gl_C_ASM. On x86_64
21449         systems, distinguish x86_64 and x32. On arm systems, distinguish arm,
21450         armhf, arm64, and no longer distinguish arm and armel. On s390x systems,
21451         distinguish s390 and s390x.
21452         * modules/host-cpu-c-abi (Files): Add m4/asm-underscore.m4.
21453         * NEWS: Mention the change regarding 'armel'.
21455 2017-01-15  Paul Eggert  <eggert@cs.ucla.edu>
21457         localeinfo: case_folded_counterparts and WEOF
21458         * NEWS: Document this.
21459         * lib/localeinfo.c (case_folded_counterparts):
21460         First arg is now wint_t, not wchar_t.  This generalizes the
21461         function to also work on WEOF, where it returns 0.
21463         dfa: port to gcc -fsanitize=undefined
21464         * lib/dfa.c (copy): Don’t pass NULL with size 0 to memcpy,
21465         as this runs afoul of gcc -fsanitize=undefined.
21467 2017-01-14  Paul Eggert  <eggert@cs.ucla.edu>
21469         strftime: %z is -00 if unknown
21470         * lib/strftime.c (DO_TZ_OFFSET): Omit arg 'negative'; it's now
21471         the caller's responsibility to set 'negative_number'.  All uses changed.
21472         (__strftime_internal): Put '-' before a zero UTC offset if the time
21473         zone abbreviation starts with "-", which is the recently-introduced
21474         tzdb convention for an unknown UTC offset that is arbitrarily set to 0.
21475         * tests/test-strftime.c: Test for this.
21477 2017-01-10  Paul Eggert  <eggert@cs.ucla.edu>
21479         dfa: port to older GCC
21480         Problem reported by Assaf Gordon in:
21481         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00103.html
21482         * modules/c99: New module.  This merely attempts to use the latest
21483         C version, which should be enough to solve this particular problem.
21484         The idea is to document which Gnulib modules assume C99 or later.
21485         * modules/dfa (Depends-on): Add it.
21487 2017-01-10  Bruno Haible  <bruno@clisp.org>
21489         Update DEPENDENCIES.
21490         * DEPENDENCIES: List only https URLs. Update recommended version for
21491         autoconf, automake, gperf.
21493 2017-01-10  Jim Meyering  <meyering@fb.com>
21495         maint.mk: enforce spelling of "timestamp" (i.e., no space)
21496         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
21497         disallow /\btime\s+stamps?\b/.  Prefer "timestamp".
21499 2017-01-10  Paul Eggert  <eggert@cs.ucla.edu>
21501         dfa: minor simplification with emptyset
21502         * lib/dfa.c (build_state): Simplify by using emptyset.
21504 2017-01-09  Paul Eggert  <eggert@cs.ucla.edu>
21506         dfa: shrink constraints from 4 bits to 3
21507         * lib/dfa.c (newline_constraint, letter_constraint)
21508         (other_constraint, prev_newline_dependent)
21509         (prev_letter_dependent, NO_CONSTRAINT, BEGLINE_CONSTRAINT)
21510         (ENDLINE_CONSTRAINT, BEGWORD_CONSTRAINT, ENDWORD_CONSTRAINT)
21511         (LIMWORD_CONSTRAINT, NOTLIMWORD_CONSTRAINT):
21512         Constraints need only 3 bits, not 4.  Using smaller integers
21513         shrinks the code a bit and makes grep a tad faster on x86-64.
21515         dfa: omit unnecessary ptrdiff_t check
21516         * lib/dfa.c (alloc_position_set): Do not worry about ptrdiff_t
21517         overflow, since xnmalloc does that now.
21519         dfa: omit unnecessary allocation
21520         * lib/dfa.c (dfaanalyze): Do not allocate follow set, since
21521         an all-zero follow set works just fine.
21523         dfa: omit unused local
21524         * lib/dfa.c (build_state): Fix up recent change.
21526         maint: remove stray .texi files
21527         Although these were superseded by other files like
21528         doc/posix-functions/ctime.texi, the old files were not removed.
21529         * doc/ctime.texi, doc/inet_ntoa.texi: Remove.
21531 2017-01-08  Paul Eggert  <eggert@cs.ucla.edu>
21533         getprogname: fix port to IRIX
21534         * lib/getprogname.c (getprogname) [__sgi]:
21535         Don't dump core if malloc returns NULL.
21537         dfa: fix reallocation bug when matching newlines
21538         Problem reported for sed by S. Gilles (Bug#25390).
21539         * lib/dfa.c (realloc_trans_if_necessary): Move earlier.
21540         (dfastate): Reallocate before moving any newline transition ...
21541         (build_state): ... instead of reallocating here, where it is too late.
21543 2017-01-07  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
21545         Avoid -Wundef warning about undefined WINDOWS_SOCKETS.
21546         * lib/sockets.h: Test if WINDOWS_SOCKETS is defined.
21548 2017-01-07  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
21550         Avoid -Wundef warning about undefined __USE_FILE_OFFSET64.
21551         * lib/glob-libc.h: Test if __USE_FILE_OFFSET64 is defined.
21553 2017-01-07  Bruno Haible  <bruno@clisp.org>
21555         stdioext: Port to Minix 3.2 and newer.
21556         * lib/stdio-impl.h: Treat __minix like the newest NetBSD.
21557         * lib/fseeko.c (fseeko): Likewise.
21558         Reported by Nelson Beebe via Paul Eggert.
21560 2017-01-06  Paul Eggert  <eggert@cs.ucla.edu>
21562         getprogname: port to IRIX
21563         * lib/getprogname.c (getprogname): Port to IRIX.
21564         Based on an idea by Bastien Roucariès at:
21565         http://lists.gnu.org/r/bug-gnulib/2010-12/msg00096.html
21566         via code from Bruno Haible at:
21567         https://lists.gnu.org/r/bug-gnulib/2010-12/msg00249.html
21569         localename-tests: port to NetBSD 7
21570         Problem reported by Nelson H. F. Beebe.
21571         * tests/test-localename.c:
21572         Test newlocale and uselocale only if both exist.
21574         glob, intprops, xalloc: work around Clang bug
21575         Work around LLVM bug 16404, which is still not fixed.
21576         https://llvm.org/bugs/show_bug.cgi?id=16404
21577         Problem reported by Nelson H. F. Beebe.
21578         * lib/glob.c, lib/intprops.h, lib/xalloc-oversized.h (__has_builtin):
21579         Remove.
21580         * lib/glob.c (size_add_wrapv):
21581         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW, _GL_HAS_BUILTIN_OVERFLOW_P):
21582         * lib/xalloc-oversized.h (xalloc_oversized):
21583         Do not use overflow builtins if Clang.
21585         dfa: fix 'return' typo
21586         Problem reported by Nelson H. F. Beebe.
21587         * lib/dfa.c (merge): Fix typo that Sun compilers rejected.
21589 2017-01-05  Pádraig Brady  <P@draigBrady.com>
21591         parse-datetime: fix generated paths for coverage files
21592         * modules/parse-datetime: Adjust the paths for parse-datetime.y
21593         within parse-datetime.c, so that gcc generates appropriate .gcno
21594         files, allowing lcov to proceed without error.  Previously it
21595         would error trying to find "lib/lib/parse-datetime.y".
21597 2017-01-05  Pádraig Brady  <P@draigBrady.com>
21599         maint.mk: support parallel execution of coverage
21600         * top/maint.mk (coverage): Run dependencies serially,
21601         thus supporting parallel processing of each one,
21602         particularly build-coverage, which builds and runs tests.
21604 2017-01-05  Bruno Haible  <bruno@clisp.org>
21606         lock tests: Prefer semaphore over mutex.
21607         * tests/test-lock.c (USE_SEMAPHORE): New constant.
21608         (struct atomic_int, init_atomic_int, get_atomic_int_value,
21609         set_atomic_int_value) [USE_SEMAPHORE]: Define using a POSIX semaphore.
21610         Suggested by Torvald Riegel <triegel@redhat.com>.
21612 2017-01-05  Bruno Haible  <bruno@clisp.org>
21614         lock: Provide guarantee to avoid writer starvation for rwlocks.
21615         The rationale is: 1) Read-preferring read-write locks are prone to
21616         writer starvation if the number of reader threads multiplied by the
21617         percentage of time they have the lock held is too high. 2) Write-
21618         preferring read-write locks are the only reliable way to avoid this.
21619         3) There have been reports of 'test-lock' hanging on glibc systems
21620         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00009.html,
21621         and glibc indeed implements read-preferring rwlocks by default, see
21622         http://man7.org/linux/man-pages/man3/pthread_rwlockattr_setkind_np.3.html
21623         and https://sourceware.org/bugzilla/show_bug.cgi?id=13701 .
21624         * m4/pthread_rwlock_rdlock.m4: New file.
21625         * m4/lock.m4 (gl_LOCK): Invoke gl_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER.
21626         * lib/glthread/lock.h [USE_POSIX_THREADS]: Test
21627         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER. Use a different implementation
21628         of rwlock initialization on glibc systems without
21629         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER. Use a different implementation
21630         of rwlocks altogether on non-glibc systems without
21631         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER.
21632         [USE_PTH_THREADS]: Use a different implementation of rwlocks altogether.
21633         * lib/glthread/lock.c [USE_POSIX_THREADS]
21634         (glthread_rwlock_init_for_glibc): New function.
21635         [USE_POSIX_THREADS] (glthread_rwlock_rdlock_multithreaded): Update
21636         comment.
21637         [USE_PTH_THREADS]: New implementation of rwlocks.
21638         [USE_WINDOWS_THREADS] (glthread_rwlock_rdlock_func): Prefer writers over
21639         readers.
21640         * modules/lock (Files): Add m4/pthread_rwlock_rdlock.m4.
21641         (Depends-on): Add 'extensions'.
21642         * tests/test-rwlock1.c: New file.
21643         * lock-tests (Files): Add it.
21644         (Depends-on): Add usleep.
21645         (Makefile.am): Add test-rwlock1 to the tests.
21647 2017-01-05  Bruno Haible  <bruno@clisp.org>
21649         thread: Fix pth port.
21650         * lib/glthread/thread.h (pth_init): Declare weak.
21651         (glthread_create, glthread_sigmask, glthread_join, gl_thread_self,
21652         gl_thread_exit): Make sure Pth is initialized before invoking any Pth
21653         function.
21655 2017-01-04  Assaf Gordon  <assafgordon@gmail.com>
21657         parse-datetime: fix debug message on lone year number
21658         Input dates such as
21659           date -d "Apr 11 22:59:00 2011"
21660         are parsed as date (Apr 11, with default year 2016), then time, then a
21661         number (2011). Based on the combination of previously seen tokens,
21662         'digits_to_date_time' determines 2011 to be a year value.
21663         This fixes the debug messages to correctly show the updated year.
21664         Before:
21665             $ date --debug -d 'Apr 11 22:59:00 2011'
21666             date: parsed date part: (Y-M-D) 2016-04-11
21667             date: parsed time part: 22:59:00
21668             date: parsed number part: today/this/now
21669         After:
21670             $ ./src/date --debug -d 'Apr 11 22:59:00 2011'
21671             date: parsed date part: (Y-M-D) 2016-04-11
21672             date: parsed time part: 22:59:00
21673             date: parsed number part: year: 2011
21674         * lib/parse-datetime.y (struct parser_control): Add 'year_seen',
21675         'debug_year_seen' member fields.
21676         (digits_to_date_time): Update 'year_seen' as needed.
21677         (debug_print_current_time): Inform about year updates.
21678         (parse_datetime2): Initialize year_seen,debug_year_seen member fields.
21680         parse-datetime: fix local timezone debug messages
21681         "Local timezones" are strings that affect only DST relative to the
21682         default timezone. The debug messages in parse-datetime.y printed
21683         wrong information when encountering local timezones.
21684         Examples:
21685         Here EET/EEST are time zones ('zone' token, with values +02:00/+03:00):
21686              TZ=Asia/Tokyo ./src/date --debug -d '2011-12-11 EET'
21687              TZ=Asia/Tokyo ./src/date --debug -d '2011-06-11 EEST'
21688         When the default timezone relates to the zone strings, EET/EEST are
21689         parsed as local timezones (tLOCAL_ZONE), and only change the DST
21690         value (0/1, respectively):
21691              TZ=Europe/Helsinki ./src/date --debug -d '2011-12-11 EET'
21692              TZ=Europe/Helsinki ./src/date --debug -d '2011-06-11 EEST'
21693         * lib/parse-datetime.y (debug_print_current_time): If local timezone
21694         was seen, inform about DST change, don't print actual timezone.
21695         (debug_strfdatetime): If local timezone was seen, use default timezone
21696         (and adjust as needed) instead of using incorrect timezone.
21697         (parse_datetime2): Use correct time-zone source string, and adjust
21698         default timezone as needed.
21700         parse-datetime: add debug warning about DST changes
21701         Incorrect date arithmetic due to daylight saving time (DST) are a
21702         common (false) bug report in coreutils.
21703         Detect two such cases and print a warning:
21704         1. year/month/day adjustments (performed on 'struct tm'),
21705            where 'mktime' returns a different isdst value.
21706         2. hour/minute/seconds/ns adjustments (performed on 'time_t'),
21707            where the result of 'localtime(3)' on the value will return a
21708            different isdst value.
21709         Note: DST changes could be harmless or unnoticeable.
21710         Examples (with 'TZ=America/New_York'):
21711         Unnoticeable: result is 2016-Dec-14
21712            $ date -d '2016-06-15 EDT + 6 months' +%b
21713            Dec
21714         Unnoticeable: result is 2016-Dec-15 11:00:00
21715            $ date -d '2016-06-15 12:00:00 EDT + 6 months' +%F
21716            2016-12-15
21717         This is unexpected:
21718            $ date -d '2016-06-01 EDT + 6 months' +%F
21719            2016-11-30
21720         The new debug warnings will show:
21721            $ ./src/date --debug -d '2016-06-01 EDT + 6 months' +%F
21722            ...
21723            date: warning: daylight saving time changed after date adjustment
21724            ...
21725         * lib/parse-datetime.y (parse_datetime2): Detect DST changes, and
21726         print an appropriate warning message.
21728         parse-datetime: add debug warning about date arithmetic
21729         Date arithmetic are done directly on the fields of 'struct tm',
21730         which can result in invalid dates. Normalization with 'mktime(3)'
21731         will then produce a different date - which might cause unexpected
21732         results.
21733         Examples:
21734           '2016-10-31 - 1 month' => 2016-09-31 normalized to 2016-10-01.
21735           '2016-02-29 + 1 year'  => 2017-02-29 normalized to 2017-03-01.
21736         Note that date normalization is not inherently wrong and not rejected,
21737         as it has legitimate uses:
21738           '2016-12-29 + 5 days' => 2016-12-34 noramlized to 2017-01-03.
21739         If the user asked to adjust months but 'mday' changed,
21740         or user asked to adjust years but 'month' changed - warn about it.
21741             $ ./src/date --debug -d '2016-10-31 - 1 month'
21742             ...
21743             date: warning: when adding relative months/years, \
21744                            it is recommended to specify the 15th of the month
21745             ...
21746             date: warning: month/year adjustment resulted in shifted dates:
21747             date:      adjusted Y M D: 2016 09 31
21748             date:    normalized Y M D: 2010 10 01
21749             ...
21750         * lib/parse-datetime.y (parse_datetime2): Detect such cases and print
21751         a warning message. Improve recommendation of when to use 15 of the
21752         month or noon for date arithmetic.
21754         parse-datetime: fix debug message of relative part after timezone
21755         Relative part (e.g '+8 days') after a timezone string was not
21756         reported (was only reported after a timezone number). Due to the
21757         parser's structure, timezone strings with numbers were handled
21758         separately.
21759         before:
21760              # Timezone number + relative part: OK
21761              $ ./src/date --debug +%F -d '2013-10-30 00:00:00 +00:00 -8 days'
21762              ...
21763              date: parsed relative part: -8 day(s)
21764              # Timezone string + relative part: missing
21765              $ ./src/date --debug +%F -d '2013-10-30 00:00:00 UTC -8 days'
21766              [ missing message ]
21767         After: messages are printed in both cases.
21768         * lib/parse-datetime.y ('zone' token): Call debug_print_relative_time.
21770         parse-datetime: fix incorrect debug message on lone number
21771         A lone number is an absolute value, not a relative time part.
21772         before:
21773            $ date --debug -d '20130101'
21774            date: parsed number part: today/this/now
21775         After:
21776            $ ./src/date --debug -d '20130101'
21777            date: parsed number part: (Y-M-D) 2013-01-01
21778         * lib/parse-datetime.y ('item'/'number' tokens): Call
21779         'debug_print_current_time' instead of 'debug_print_relative_time'.
21781 2017-01-02  Paul Eggert  <eggert@cs.ucla.edu>
21783         doc: modernize for C11 etc.
21784         * doc/gnulib-readme.texi (Portability guidelines): Modernize a bit
21785         for C11, MinGW, etc.  This responds to Paul Smith's question in:
21786         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00014.html
21788         dfa: prefer functions to FETCH_WC macro
21789         * lib/dfa.c (FETCH_WC): Remove, replacing with ...
21790         (fetch_wc, bracket_fetch_wc): ... new functions.  These store the
21791         wint_t result into DFA->lex.wctok instead of to a separate arg.
21792         All callers changed.  Move more local decls closer to where
21793         they're used.
21795         dfa: narrow more local var scopes
21796         * lib/dfa.c: Move more local decls to be more local.
21798         dfa: remove duplicate assignment
21799         Problem reported by Bruno Haible in:
21800         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00007.html
21801         * lib/dfa.c (parse_bracket_exp): Simplify.
21803 2017-01-01  Paul Eggert  <eggert@cs.ucla.edu>
21805         dfa: simplify constraint-dependency checking
21806         * lib/dfa.c (prev_newline_constraint, prev_letter_constraint)
21807         (prev_other_constraint): Remove.
21808         (prev_newline_dependent, prev_letter_dependent):
21809         Simplify, to avoid an unnecessary bitwise AND operation.
21811         dfa: prefer functions and constants to macros
21812         * lib/dfa.c: Prefer constants to macros where either will do.
21813         (streq, isasciidigit, newline_constraint)
21814         (letter_constraint, other_constraint, succeeds_in_context)
21815         (prev_newline_constraint, prev_letter_constraint)
21816         (prev_other_constraint, prev_newline_dependent)
21817         (prev_letter_dependent, accepting, accepts_in_context):
21818         Now static functions instead of function-like macros.
21819         Use lower-case names accordingly.  All uses changed.
21821         dfa: narrow more local var scopes
21822         * lib/dfa.c: Move some more local decls down to nearer where
21823         they're needed.
21825 2016-12-31  Jim Meyering  <meyering@fb.com>
21827         dfa: narrow the scope of many local variables
21828         * lib/dfa.c: Now that we are no longer constrained to c89, move
21829         declarations of many variables (often indices) "down" into the
21830         scope(s) where used or to the point of definition.  This is a
21831         no-semantic-change diff.
21833 2017-01-01  Paul Eggert  <eggert@cs.ucla.edu>
21835         version-etc: new year
21836         * build-aux/gendocs.sh (version):
21837         * doc/gendocs_template:
21838         * doc/gendocs_template_min:
21839         * doc/gnulib.texi:
21840         * lib/version-etc.c (COPYRIGHT_YEAR):
21841         Update copyright dates by hand in templates and the like.
21842         * all files: Run 'make update-copyright'.
21844 2016-12-31  Eric Blake  <eblake@redhat.com>
21846         do-release-commit-and-tag: avoid shell syntax error
21847         * build-aux/do-release-commit-and-tag (curr_br): $branch can
21848         contain spaces when rebasing.
21850         maint.mk: hoist gnulib_dir definition earlier
21851         * top/maint.mk (gnulib_dir): Move near top of file.
21853 2016-12-31  Jim Meyering  <meyering@fb.com>
21855         maint.mk: do not always evaluate intprops-related shell
21856         * top/maint.mk (_intprops_names): Change := to just "=" to avoid
21857         using gnulib_dir undefined (gnulib_dir is defined later in the
21858         file, which will be fixed separately), and besides, there is no
21859         need to incur the cost of this shell invocation for every single
21860         use of this .mk file.  Reported by Eric Blake in
21861         https://lists.gnu.org/r/bug-gnulib/2016-12/msg00137.html
21863 2016-12-30  Jim Meyering  <meyering@fb.com>
21865         maint.mk: improve sc_prohibit_intprops_without_use
21866         * top/maint.mk (_intprops_names): Don't hard-code the list of
21867         symbol names.  Instead, derive it on the fly.
21869 2016-12-30  Paul Eggert  <eggert@cs.ucla.edu>
21871         dfa: shorten sbit, success
21872         * lib/dfa.c (struct regex_syntax.sbit):
21873         (struct dfa.success): Use char, not int, for array elements, since
21874         they are all in the range 0..7.
21876         dfa: simplify multibyte_prop etc.
21877         This follows up on a change made when dfa.c was in grep, namely grep
21878         commit c797046c7c13c2647182b919a79a4c5b4ecf82b1
21879         dated 2015-08-12 07:35:03 -0700, which removed unused multibyte support.
21880         That earlier simplification allows for some more simplification
21881         and trimming down here.
21882         * lib/dfa.c (struct mb_char_classes): New member nchars_alloc.
21883         (struct lexer_state): New mamber brack.
21884         (struct dfa, addtok_mb): multibyte_prop elements are now char, not int,
21885         since they must be in the range 0..3 now.
21886         Remove members mbcsets, nmbcsets, mbcsets_alloc, since
21887         the brack member now supersedes them.
21888         (parse_bracket_exp): Update dfa->lex.brack instead of dfa->mbcsets.
21889         (addtok): Use dfa->lex.brack instead of dfa->mbcsets.
21890         (dfaparse): Remove unnecessary initializations of already-0 storage.
21891         (free_mbdata): Free d->lex.brack.chars instead of d->mbcsets.
21892         (dfassbuild): No need to clear sup->mbcsets.
21894         dfa: minor performance tweak
21895         * lib/dfa.c (setbit_wc): Test < 0, not == EOF.
21897         dfa: wrap charclass inside a struct
21898         On my platform (gcc Ubuntu 5.4.0-6ubuntu1~16.04.4 x86-64,
21899         en_US.utf8 locale) this makes 'grep -Fi -f list.txt list.txt >out'
21900         about 5% faster, where list.txt is generated by 'aspell dump
21901         master | head -n 100000 >list.txt'.  See Bug#22239.
21902         * lib/dfa.c (charclass): Wrap inside a struct.  All uses changed.
21903         (CHARCLASS_INIT, tstbit, setbit, clrbit, zeroset, fillset, notset)
21904         (equal, emptyset, charclass_index, setbit_wc, setbit_case_fold_c):
21905         Adjust to this, e.g., by using charclass * rather than charclass.
21906         All callers changed as needed.
21907         (copyset): Remove.  All uses changed to simple assignment.
21908         (parse_bracket_exp): Use zeroset instead of memset.
21910 2016-12-30  Jim Meyering  <meyering@fb.com>
21912         maint.mk: update list of intprops.h symbol names
21913         * top/maint.mk (_intprops_names): Regenerate the list of symbol names.
21914         This avoids a false failure of the sc_prohibit_intprops_without_use
21915         rule in grep.
21917 2016-12-29  Eric Blake  <eblake@redhat.com>
21919         getopt: fix parallel test failure
21920         * tests/test-getopt-posix.c (TEST_GETOPT_TMP_NAME): Set name.
21921         * tests/test-getopt-gnu.c (TEST_GETOPT_TMP_NAME): Likewise.
21922         * tests/test-getopt-main.h (main): Use different file names
21923         in case test-getopt-gnu and test-getopt-posix run in parallel.
21925 2016-12-29  Paul Eggert  <eggert@cs.ucla.edu>
21927         xalloc: x2nrealloc check for ptrdiff_t overflow
21928         * lib/xalloc.h (x2nrealloc): Check for ptrdiff_t overflow, too.
21929         * modules/xalloc, modules/xvasprintf (Depends-on): Add stdint.
21931 2016-12-24  Bruno Haible  <bruno@clisp.org>
21933         lock test: Fix performance problem on multi-core machines.
21934         * tests/test-lock.c (USE_VOLATILE): New macro.
21935         (struct atomic_int): New type.
21936         (init_atomic_int, get_atomic_int_value, set_atomic_int_value): New
21937         functions.
21938         (lock_checker_done, rwlock_checker_done, reclock_checker_done): Define
21939         as 'struct atomic_int'.
21940         (lock_checker_thread, test_lock, rwlock_checker_thread, test_rwlock,
21941         reclock_checker_thread, test_recursive_lock): Use the new functions.
21942         Reported by Eric Blake in
21943         https://www.redhat.com/archives/libvir-list/2012-March/msg00854.html
21944         and by Pádraig Brady in
21945         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00117.html.
21947 2016-12-19  Bruno Haible  <bruno@clisp.org>
21949         vma-iter: Fix endless loop on 64-bit Windows.
21950         * lib/vma-iter.c (vma_iterate): On Windows, use 'uintptr_t' instead of
21951         'unsigned long'.
21953 2016-12-19  Bruno Haible  <bruno@clisp.org>
21955         stdint: Fix WINT_MAX to match the gnulib provided wint_t on minw.
21956         * m4/wint_t.m4 (gt_TYPE_WINT_T): Define GNULIB_OVERRIDES_WINT_T here.
21957         * m4/stdint.m4 (gl_STDINT_H): Don't define GNULIB_OVERRIDES_WINT_T.
21958         Invoke gt_TYPE_WINT_T instead.
21959         (gl_STDINT_TYPE_PROPERTIES): Test GNULIB_OVERRIDES_WINT_T.
21960         * modules/stdint (Files): Add m4/wint_t.m4.
21961         * modules/wchar (Makefile.am): Substitute GNULIB_OVERRIDES_WINT_T.
21962         * modules/wctype-h (Makefile.am): Likewise.
21963         * lib/wchar.in.h (wint_t): Override if GNULIB_OVERRIDES_WINT_T is set,
21964         not only on MSVC.
21965         * lib/wctype.in.h (wint_t): Likewise.
21967 2016-12-19  Paul Eggert  <eggert@cs.ucla.edu>
21969         getopt-posix-tests: fix Makefile typo
21970         * modules/getopt-posix-tests (test_getopt_posix_LDADD):
21971         Fix typo: the last ‘_’ was missing in the name.
21972         I suspect that the typo explains this build failure:
21973         https://buildfarm.opencsw.org/buildbot/builders/ggrep-solaris10-sparc/builds/39
21974         although I can’t reproduce the problem on Solaris 10 sparc.
21976 2016-12-18  Paul Eggert  <eggert@cs.ucla.edu>
21978         dfa: improve worst-case 'replace' performance
21979         See my note in Bug#22357#71.
21980         * lib/dfa.c (insert, delete): Rework to avoid duplicate test.
21981         (merge_constrained): New function, which is like
21982         the old 'merge' function, except with a new argument C2.
21983         Simplify the body by avoiding the need for different sections
21984         of code depending on whether one input is exhausted.
21985         (merge): Use the new function.
21986         (delete): Return the constraint of the deleted position,
21987         not the entire position.  Caller changed.
21988         (replace): Change from O(N*(N + log N)) to O(N log N) algorithm.
21990 2016-12-18  Norihiro Tanaka  <noritnk@kcn.ne.jp>
21992         dfa: performance improvement for removal of epsilon closure
21993         See Bug#22357#32.
21994         * lib/dfa.c (delete): Use binary search to find deleted index.
21995         (replace): New function.  It replaces a position with the followed set.
21996         (epsclosure): Replace it with a new algorithm.  Update caller.
21998 2016-12-18  Bruno Haible  <bruno@clisp.org>
22000         Split tests for getopt-posix and getopt-gnu.
22001         * tests/test-getopt-posix.c: New file.
22002         * tests/test-getopt-gnu.c: New file, with code from test-getopt.c.
22003         * tests/test-getopt-main.h: Renamed from tests/test-getopt.c. Remove
22004         stuff moved to test-getopt-gnu.c. Test TEST_GETOPT_GNU instead of
22005         GNULIB_TEST_GETOPT_GNU.
22006         * modules/getopt-posix-tests (Files): Add test-getopt-posix.c,
22007         test-getopt-main.h. Remove test-getopt.c, test-getopt_long.h.
22008         (Makefile.am): Test test-getopt-posix instead of test-getopt.
22009         * modules/getopt-gnu-tests: New file.
22010         * modules/getopt-gnu (configure.ac): Don't define GNULIB_TEST_GETOPT_GNU.
22012 2016-12-18  Bruno Haible  <bruno@clisp.org>
22014         posix-modules: Add options for specific platforms.
22015         * posix-modules (func_usage): Document options --for-mingw, --for-msvc.
22016         (exclude_for_mingw, exclude_for_msvc, exclude): New variables.
22017         Invoke func_tmpdir. Filter out the excludes.
22019 2016-12-18  Bruno Haible  <bruno@clisp.org>
22021         getopt: Fix link error for users of getopt() in <unistd.h>.
22022         * lib/getopt.in.h (getopt etc.): Do the macro definitions also when
22023         __need_getopt is defined. Undefine all macros before defining them.
22024         * modules/getopt (Include): Clarify that including <unistd.h> is also
22025         OK.
22026         * tests/test-getopt.c: Add comment.
22028 2016-12-17  Bruno Haible  <bruno@clisp.org>
22030         getaddrinfo tests: Avoid compilation error on MSVC.
22031         * tests/test-getaddrinfo.c: Don't check the prototypes of freeaddrinfo,
22032         getaddrinfo on native Windows.
22034 2016-12-17  Bruno Haible  <bruno@clisp.org>
22036         getlogin, getlogin_r: Fix link errors on MSVC.
22037         * m4/getlogin.m4 (gl_LIB_GETLOGIN): New macro.
22038         * modules/getlogin (configure.ac): Require gl_LIB_GETLOGIN.
22039         (Link): New section.
22040         * modules/getlogin_r (Files): Add m4/getlogin.m4.
22041         (configure.ac): Require gl_LIB_GETLOGIN.
22042         (Link): New section.
22043         * NEWS: Mention the new link requirements.
22044         * modules/getlogin-tests (test_getlogin_LDADD): New variable.
22045         * modules/getlogin_r-tests (test_getlogin_r_LDADD): New variable.
22047 2016-12-17  Bruno Haible  <bruno@clisp.org>
22049         Un-deprecate the 'progname' module.
22050         * NEWS: Describe the appropriate use-cases of 'progname' versus
22051         'getprogname'. Based on discussion summary at
22052         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00105.html
22054 2016-12-17  Bruno Haible  <bruno@clisp.org>
22056         Reorganize NEWS a bit.
22057         * NEWS: Move some not so important changes away from section
22058         "Important Notes".
22060 2016-12-17  Bruno Haible  <bruno@clisp.org>
22062         tanhf: Avoid redefinition error on MSVC.
22063         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_TANHF.
22064         * m4/tanhf.m4 (gl_FUNC_TANHF): Set REPLACE_TANHF to 1 if the function
22065         may be defined as an inline function.
22066         * modules/math (Makefile.am): Substitute REPLACE_TANHF.
22067         * lib/math.in.h (tanhf): Override if REPLACE_TANHF is 1.
22069 2016-12-17  Bruno Haible  <bruno@clisp.org>
22071         tanf: Avoid redefinition error on MSVC.
22072         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_TANF.
22073         * m4/tanf.m4 (gl_FUNC_TANF): Set REPLACE_TANF to 1 if the function
22074         may be defined as an inline function.
22075         * modules/math (Makefile.am): Substitute REPLACE_TANF.
22076         * lib/math.in.h (tanf): Override if REPLACE_TANF is 1.
22078 2016-12-17  Bruno Haible  <bruno@clisp.org>
22080         sqrtf: Avoid redefinition error on MSVC.
22081         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SQRTF.
22082         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Set REPLACE_SQRTF to 1 if the function
22083         may be defined as an inline function.
22084         * modules/math (Makefile.am): Substitute REPLACE_SQRTF.
22085         * lib/math.in.h (sqrtf): Override if REPLACE_SQRTF is 1.
22087 2016-12-17  Bruno Haible  <bruno@clisp.org>
22089         sinhf: Avoid redefinition error on MSVC.
22090         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SINHF.
22091         * m4/sinhf.m4 (gl_FUNC_SINHF): Set REPLACE_SINHF to 1 if the function
22092         may be defined as an inline function.
22093         * modules/math (Makefile.am): Substitute REPLACE_SINHF.
22094         * lib/math.in.h (sinhf): Override if REPLACE_SINHF is 1.
22096 2016-12-17  Bruno Haible  <bruno@clisp.org>
22098         sinf: Avoid redefinition error on MSVC.
22099         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SINF.
22100         * m4/sinf.m4 (gl_FUNC_SINF): Set REPLACE_SINF to 1 if the function
22101         may be defined as an inline function.
22102         * modules/math (Makefile.am): Substitute REPLACE_SINF.
22103         * lib/math.in.h (sinf): Override if REPLACE_SINF is 1.
22105 2016-12-17  Bruno Haible  <bruno@clisp.org>
22107         logf: Avoid redefinition error on MSVC.
22108         * m4/logf.m4 (gl_FUNC_LOGF): Set REPLACE_LOGF to 1 if the function
22109         may be defined as an inline function.
22111 2016-12-17  Bruno Haible  <bruno@clisp.org>
22113         log10l: Avoid redefinition error on MSVC.
22114         * m4/log10l.m4 (gl_FUNC_LOG10L): Set REPLACE_LOG10L to 1 if the function
22115         may be defined as an inline function.
22117 2016-12-17  Bruno Haible  <bruno@clisp.org>
22119         log10f: Avoid redefinition error on MSVC.
22120         * m4/log10f.m4 (gl_FUNC_LOG10F): Set REPLACE_LOG10F to 1 if the function
22121         may be defined as an inline function.
22123 2016-12-17  Bruno Haible  <bruno@clisp.org>
22125         hypotl: Avoid redefinition error on MSVC.
22126         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Set REPLACE_HYPOTL to 1 if the function
22127         may be defined as an inline function.
22129 2016-12-17  Bruno Haible  <bruno@clisp.org>
22131         hypotf: Avoid redefinition error on MSVC.
22132         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Set REPLACE_HYPOTF to 1 if the function
22133         may be defined as an inline function.
22135 2016-12-17  Bruno Haible  <bruno@clisp.org>
22137         fmodl: Avoid redefinition error on MSVC.
22138         * m4/fmodl.m4 (gl_FUNC_FMODL): Set REPLACE_FMODL to 1 if the function
22139         may be defined as an inline function.
22141 2016-12-17  Bruno Haible  <bruno@clisp.org>
22143         fmodf: Avoid redefinition error on MSVC.
22144         * m4/fmodf.m4 (gl_FUNC_FMODF): Set REPLACE_FMODF to 1 if the function
22145         may be defined as an inline function.
22147 2016-12-17  Bruno Haible  <bruno@clisp.org>
22149         expf: Avoid redefinition error on MSVC.
22150         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_EXPF.
22151         * m4/expf.m4 (gl_FUNC_EXPF): Set REPLACE_EXPF to 1 if the function
22152         may be defined as an inline function.
22153         * modules/math (Makefile.am): Substitute REPLACE_EXPF.
22154         * lib/math.in.h (expf): Override if REPLACE_EXPF is 1.
22156 2016-12-17  Bruno Haible  <bruno@clisp.org>
22158         coshf: Avoid redefinition error on MSVC.
22159         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_COSHF.
22160         * m4/coshf.m4 (gl_FUNC_COSHF): Set REPLACE_COSHF to 1 if the function
22161         may be defined as an inline function.
22162         * modules/math (Makefile.am): Substitute REPLACE_COSHF.
22163         * lib/math.in.h (coshf): Override if REPLACE_COSHF is 1.
22165 2016-12-17  Bruno Haible  <bruno@clisp.org>
22167         cosf: Avoid redefinition error on MSVC.
22168         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_COSF.
22169         * m4/cosf.m4 (gl_FUNC_COSF): Set REPLACE_COSF to 1 if the function
22170         may be defined as an inline function.
22171         * modules/math (Makefile.am): Substitute REPLACE_COSF.
22172         * lib/math.in.h (cosf): Override if REPLACE_COSF is 1.
22174 2016-12-17  Bruno Haible  <bruno@clisp.org>
22176         atan2f: Avoid redefinition error on MSVC.
22177         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ATAN2F.
22178         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Set REPLACE_ATAN2F to 1 if the function
22179         may be defined as an inline function.
22180         * modules/math (Makefile.am): Substitute REPLACE_ATAN2F.
22181         * lib/math.in.h (atan2f): Override if REPLACE_ATAN2F is 1.
22183 2016-12-17  Bruno Haible  <bruno@clisp.org>
22185         atanf: Avoid redefinition error on MSVC.
22186         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ATANF.
22187         * m4/atanf.m4 (gl_FUNC_ATANF): Set REPLACE_ATANF to 1 if the function
22188         may be defined as an inline function.
22189         * modules/math (Makefile.am): Substitute REPLACE_ATANF.
22190         * lib/math.in.h (atanf): Override if REPLACE_ATANF is 1.
22192 2016-12-17  Bruno Haible  <bruno@clisp.org>
22194         asinf: Avoid redefinition error on MSVC.
22195         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ASINF.
22196         * m4/asinf.m4 (gl_FUNC_ASINF): Set REPLACE_ASINF to 1 if the function
22197         may be defined as an inline function.
22198         * modules/math (Makefile.am): Substitute REPLACE_ASINF.
22199         * lib/math.in.h (asinf): Override if REPLACE_ASINF is 1.
22201 2016-12-17  Bruno Haible  <bruno@clisp.org>
22203         acosf: Avoid redefinition error on MSVC.
22204         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ACOSF.
22205         * m4/acosf.m4 (gl_FUNC_ACOSF): Set REPLACE_ACOSF to 1 if the function
22206         may be defined as an inline function.
22207         * modules/math (Makefile.am): Substitute REPLACE_ACOSF.
22208         * lib/math.in.h (acosf): Override if REPLACE_ACOSF is 1.
22210 2016-12-17  Bruno Haible  <bruno@clisp.org>
22212         Avoid redefinition errors on MSVC.
22213         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): Set REPLACE_SNPRINTF to 1 if
22214         the function may be defined as an inline function.
22215         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): Set REPLACE_VSNPRINTF to 1 if
22216         the function may be defined as an inline function.
22218 2016-12-17  Bruno Haible  <bruno@clisp.org>
22220         Avoid redefinition errors on MSVC.
22221         * lib/stdio.in.h: Include <stdlib.h> and <io.h> when necessary.
22222         * lib/unistd.in.h: Include <stdio.h> when necessary.
22224 2016-12-17  Bruno Haible  <bruno@clisp.org>
22226         stdint: Fix WINT_MAX to match the gnulib provided wint_t on MSVC.
22227         * m4/stdint.m4 (gl_STDINT_H): Define GNULIB_OVERRIDES_WINT_T.
22228         * modules/stdint (Makefile.am): Substitute GNULIB_OVERRIDES_WINT_T.
22229         * lib/stdint.in.h [GNULIB_OVERRIDES_WINT_T]: Redefine WINT_MIN and
22230         WINT_MAX.
22232 2016-12-17  Bruno Haible  <bruno@clisp.org>
22234         Avoid autoconf warning.
22235         * modules/frexpl (configure.ac): Require, not invoke, gl_FUNC_FREXPL.
22236         * modules/frexp (configure.ac): Require, not invoke, gl_FUNC_FREXP.
22238 2016-12-17  Bruno Haible  <bruno@clisp.org>
22240         fpending: Revert workaround against Emacs bug.
22241         * lib/stdio-impl.h [__MINGW32__]: Revert conditional.
22242         The Emacs bug is fixed by Eli Zaretskii in
22243         http://lists.gnu.org/r/emacs-devel/2016-12/msg00715.html
22245 2016-12-17  Bruno Haible  <bruno@clisp.org>
22247         getlogin_r tests: Port to mingw.
22248         * tests/test-getlogin_r.c: Don't include <pwd.h> on native Windows. Fixes
22249         regression introduced on 2014-05-19.
22251 2016-12-17  Bruno Haible  <bruno@clisp.org>
22253         getlogin: Port to newer mingw.
22254         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_GETLOGIN.
22255         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Set HAVE_DECL_GETLOGIN.
22256         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETLOGIN, not
22257         HAVE_GETLOGIN.
22258         * lib/unistd.in.h (getlogin): Test HAVE_DECL_GETLOGIN, not
22259         HAVE_GETLOGIN.
22260         * doc/posix-functions/getlogin.texi: Mention the issue.
22261         * tests/test-getlogin.c: Don't include <pwd.h> on native Windows. Fixes
22262         regression introduced on 2014-05-14.
22264 2016-12-16  Paul Eggert  <eggert@cs.ucla.edu>
22266         builtin-expect: improve port to IBM XL C
22267         Problem reported for z/OS by Daniel Richard G. in:
22268         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00079.html
22269         * m4/builtin-expect.m4 (gl___BUILTIN_EXPECT):
22270         Test for <builtins.h> directly.
22272         builtin-expect: port to IBM XL C
22273         Problem reported for z/OS by Daniel Richard G. in:
22274         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00074.html
22275         * m4/builtin-expect.m4 (gl___BUILTIN_EXPECT):
22276         Also allow __builtin_expect defined via a standard include file.
22278         regex: fix dependency
22279         Problem reported by Bruno Haible in:
22280         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00073.html
22281         * modules/regex: Depend on builtin-expect.
22283         builtin-expect: new module
22284         Fix fnmatch to use it.
22285         Problem reported for z/OS by Daniel Richard G.
22286         * lib/fnmatch.c (__builtin_expect):
22287         * lib/glob.c (__builtin_expect):
22288         * lib/grantpt.c (__builtin_expect) [!_LIBC]:
22289         * lib/memmem.c (__builtin_expect) [!_LIBC]:
22290         * lib/scandir.c (__builtin_expect):
22291         * lib/strstr.c (__builtin_expect) [!_LIBC]:
22292         Remove macro; config.h now does this.
22293         * lib/gl_anytreehash_list1.h (add_to_bucket):
22294         * lib/regex_internal.h (BE):
22295         Assume __builtin_expect.
22296         * m4/builtin-expect.m4, modules/builtin-expect: New files.
22297         * modules/avltreehash-list, modules/fnmatch, modules/glob:
22298         * modules/grantpt, modules/memmem-simple, modules/rbtreehash-list:
22299         * modules/scandir, modules/strstr-simple:
22300         Depend on builtin-expect.
22302 2016-12-15  Bruno Haible  <bruno@clisp.org>
22304         init.sh: Add possibility to not delete temporary files.
22305         * tests/init.sh (remove_tmp_): If the environment variable KEEP is set
22306         to yes, don't erase the temporary directory.
22308 2016-12-16  Paul Eggert  <eggert@cs.ucla.edu>
22310         regex: fix integer-overflow bug in never-used code
22311         Problem reported by Clément Pit–Claudel in:
22312         http://lists.gnu.org/r/emacs-devel/2016-12/msg00654.html
22313         * lib/regex_internal.h: Include intprops.h.
22314         * lib/regexec.c (re_search_2_stub): Use it to avoid undefined
22315         behavior on integer overflow.
22316         * modules/regex (Depends-on): Add intprops.
22318         fpending: fix port to MinGW on Emacs
22319         * lib/stdio-impl.h [__MINGW32__]: Do not include errno.h.
22320         Problem reported by Eli Zaretskii in:
22321         http://lists.gnu.org/r/emacs-devel/2016-12/msg00642.html
22322         Is Plan 9 still a valid porting target, anyway?
22324 2016-12-15  Paul Eggert  <eggert@cs.ucla.edu>
22326         safe-alloc: use xalloc-oversized
22327         * lib/safe-alloc.c: Include xalloc-oversized.h.
22328         (safe_alloc_oversized): Remove.  All uses changed to xalloc_oversized.
22329         * modules/safe-alloc (Depends-on): Add xalloc-oversized.
22331         xalloc: do not exceed PTRDIFF_MAX
22332         * lib/xmalloc.c (xcalloc) [HAVE_GNU_CALLOC]: Do not omit
22333         xalloc_oversized check, since objects larger than PTRDIFF_MAX
22334         bytes have pointer-subtraction problems.
22336         malloca: do not exceed PTRDIFF_MAX
22337         * lib/malloca.h: Include xalloc-oversized.
22338         (nmalloca): Use xalloc_oversized instead of rolling our own.
22339         * modules/malloca (Depends-on):
22340         * modules/relocatable-prog-wrapper (Depends-on):
22341         Add xalloc-oversized.
22343         quotearg: pacify GCC better
22344         * modules/quotearg (Depends-on): Add minmax, stdint.
22345         * lib/quotearg.c: Include minmax.h, stdint.h.
22346         (nslots): Now int, as there seems little point to going to extra
22347         work merely to support the INT_MAX slot, which nobody ever uses.
22348         (quotearg_n_options): Redo size-overflow checks to pacify GCC
22349         and to catch (mostly-theoretical) ptrdiff_t problems too.
22350         This can be done via one comparison.
22352 2016-12-14  Paul Eggert  <eggert@cs.ucla.edu>
22354         xalloc-oversized: check for PTRDIFF_MAX too
22355         This avoids undefined behavior when subtracting pointers to
22356         objects containing more than PTRDIFF_MAX bytes.
22357         * lib/xalloc-oversized.h (__xalloc_oversized, xalloc_oversized):
22358         Also return 1 if the result would exceed PTRDIFF_MAX>
22359         * modules/xalloc-oversized (Depends-on):
22360         Add stdint.
22362         dfa: fix glitches in previous commit
22363         Sorry, I don't know how I managed to commit the wrong version.
22364         * lib/dfa.c (MIN): Move up.
22365         (xpalloc): Now static.
22367         dfa: fix some unlikely integer overflows
22368         I found these while reviewing the recent Coverity-related fix.
22369         This patch changes part of dfa.c to prefer ptrdiff_t instead of
22370         size_t for object counts.  Using ptrdiff_t is the style typically
22371         used in Emacs; although it wastes a sign bit as sizes can never be
22372         negative, it makes -fsanitize=undefined more likely to catch
22373         integer overflows in index calculation, and nowadays the upside is
22374         typically more important than the downside.  Although perhaps the
22375         rest of dfa.c should be changed to prefer ptrdiff_t as well (much
22376         of dfa.c already does, since it uses state_num which is signed),
22377         that is a bigger change and is not needed to fix the bugs I found.
22378         * lib/dfa.c: Include stdint.h and intprops.h.
22379         (TOKEN_MAX): New macro.
22380         (position_set, struct mb_char_classes, struct dfa, maybe_realloc)
22381         (charclass_index, parse_bracket_exp, addtok, insert, merge)
22382         (realloc_trans_if_necessary, free_mbdata):
22383         Use ptrdiff_t instead of size_t for object counts related to xpalloc.
22384         This is safe because xpalloc checks that the sizes do not exceed
22385         either SIZE_MAX or PTRDIFF_MAX.
22386         (xpalloc): New function, mostly taken from Emacs.
22387         (maybe_realloc, copy, realloc_trans_if_necessary): Use it.
22388         (maybe_realloc): Add NITEMS_MAX to signature.  All callers changed.
22389         (charclass_index): Check for integer overflow in computing
22390         charclass index; it must not exceed TOKEN_MAX - CSET, as CSET is
22391         added to it later.
22392         (alloc_position_set): Check for integer overflow.  On typical
22393         platforms this check has zero overhead, since the constant
22394         expression is false.
22395         (realloc_trans_if_necessary):
22396         Remove assertion, which I hope Coverity no longer needs.
22398         * modules/dfa (Depends-on): Add intprops, stdint.
22400 2016-12-12  Jim Meyering  <meyering@fb.com>
22402         dfa: add an assertion to avoid coverity false positive
22403         * lib/dfa.c (realloc_trans_if_necessary): Otherwise, coverity
22404         warned that "newalloc1 - 2" could overflow.
22406 2016-12-13   Arnold D. Robbins  <arnold@skeeve.com>
22408         dfa: remove DFA_CASE_FOLD flag in favor of RE_ICASE
22409         * dfa.h (DFA_CASE_FOLD): Remove.
22410         * dfa.c (dfasyntax): Set dfa->syntax.case_fold based on RE_ICASE.
22412 2016-12-13  John W. Eaton  <gnu@jweaton.org>
22414         link: fix test to declare use of rename()
22415         * m4/link.m4 (gl_FUNC_LINK): Include <stdio.h> needed with
22416         -Werror=implicit-function-declaration
22418 2016-12-12  Bruno Haible  <bruno@clisp.org>
22420         fpending: Port to native Windows with MSVC.
22421         * lib/fpending.c: Include stdio-impl.h.
22422         (__fpending): Include all known implementations. Err out if it's not
22423         ported.
22424         * m4/fpending.m4 (gl_PREREQ_FPENDING): Remove macro.
22425         * modules/fpending (Files): Add lib/stdio-impl.h.
22426         (configure.ac): Don't invoke gl_PREREQ_FPENDING.
22428 2016-12-12  Bruno Haible  <bruno@clisp.org>
22430         stdioext: Port to native Windows with MSVC.
22431         * lib/stdio-impl.h (WINDOWS_OPAQUE_FILE): New macro.
22432         (struct _gl_real_FILE): New type.
22433         (fp_, _IOREAD, _IOWRT, _IORW, _IOEOF, _IOERR): New macros, for native
22434         Windows.
22435         * lib/fbufmode.c (fbufmode): Add code for native Windows.
22436         * lib/fflush.c (clear_ungetc_buffer): Treat native Windows like the
22437         other SystemV derived implementations.
22438         * lib/fpurge.c (fpurge): Likewise.
22439         * lib/freadable.c (freadable): Likewise.
22440         * lib/freadahead.c (freadahead): Likewise.
22441         * lib/freading.c (freading): Likewise.
22442         * lib/freadptr.c (freadptr): Likewise.
22443         * lib/freadseek.c (freadptrinc): Likewise.
22444         * lib/fseeko.c (fseeko): Likewise.
22445         * lib/fseterr.c (fseterr): Likewise.
22446         * lib/fwritable.c (fwritable): Likewise.
22447         * lib/fwriting.c (fwriting): Likewise.
22448         Reported by Gisle Vanem <gvanem@yahoo.no>.
22450 2016-12-11  Jim Meyering  <meyering@fb.com>
22452         non-recursive-gnulib-prefix-hack.m4: remove leading "(" in case stmt
22453         * m4/non-recursive-gnulib-prefix-hack.m4: That leading "(" happens
22454         to work with most shells, but not with the one provided by many
22455         Solaris 10 systems, so running configure with such a /bin/sh evokes
22456         e.g., "./configure: syntax error at line 33602: `(' unexpected".
22457         Reported by Assaf Gordon in
22458         https://lists.gnu.org/r/sed-devel/2016-12/msg00002.html
22460 2016-12-10  Bruno Haible  <bruno@clisp.org>
22462         threadlib: Optimize out runtime test on Solaris >= 10.
22463         * m4/threadlib.m4 (gl_THREADLIB_BODY): Don't set
22464         PTHREAD_IN_USE_DETECTION_HARD if configuring on Solaris 10 or newer.
22465         Reported by Peter Felecan at <https://savannah.gnu.org/bugs/?32087>.
22467 2016-12-10  Bruno Haible  <bruno@clisp.org>
22469         stdint: Update doc about Solaris 9.
22470         * doc/posix-headers/stdint.texi: Add info about Solaris 9.
22472 2016-12-09  Bruno Haible  <bruno@clisp.org>
22474         c-ctype tests: Fix link error on Solaris 9.
22475         * modules/c-ctype-tests (Depends-on): Add 'isblank'.
22476         Reported at <https://savannah.gnu.org/bugs/?46827>.
22478 2016-12-09  Paul Eggert  <eggert@cs.ucla.edu>
22480         dfa: fix performance bug that recomputes trans
22481         * lib/dfa.c (build_state): Fix performance bug introduced in Nov
22482         25 on-demand changes.  The bug caused build_state to reset all
22483         d->trans elements to -2 even when d->trans was already non-null.
22484         Use C99 style decls after statements in this function.
22486         same-inode: port to MinGW
22487         Here st_ino is always 0, so change the definition of SAME_INODE so
22488         that 1 means the two files are the same, 0 with st_ino != 0 means
22489         they differ, and 0 with st_ino == 0 means we don’t know.  Problem
22490         reported by Bruno Haible (Bug#25146).
22491         * doc/posix-headers/sys_stat.texi (sys/stat.h): Update.
22492         * lib/same-inode.h (SAME_INODE): Return 0 on MinGW.
22494 2016-12-04  Bruno Haible  <bruno@clisp.org>
22496         javacomp-script: Support Java 7 and 8.
22497         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 1.7, 1.8 and
22498         target-version 1.7, 1.8.
22500 2016-12-02  Daiki Ueno  <ueno@gnu.org>
22502         * gnulib-tool (func_import): Relax the regex used for "LGPLv3+ or
22503         GPLv2" rewriting.
22505 2016-12-02  Nikos Mavrogiannopoulos  <nmav@gnutls.org>
22507         * gnulib-tool (func_import): Adhere to the license guideline when
22508         rewriting the license text to "LGPLv3+ or GPLv2":
22509         https://www.gnu.org/prep/maintain/maintain.html#Licensing-of-GNU-Packages
22511 2016-12-02  Bruno Haible  <bruno@clisp.org>
22513         localcharset: Avoid theoretical buffer overrun.
22514         * lib/localcharset.c (locale_charset) [WINDOWS_NATIVE]: Don't use the
22515         return value from setlocale if it would lead to a buffer overrun.
22517 2016-12-01  Bruno Haible  <bruno@clisp.org>
22519         Relicense some modules under LGPLv2+.
22520         Kevin Cernekee's approval is in
22521         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00090.html.
22522         * modules/fseterr (License): Change to LGPLv2+.
22523         * modules/mbchar (License): Likewise.
22524         * modules/mbiter (License): Likewise.
22525         * modules/mbsnlen (License): Likewise.
22526         * modules/wcwidth (License): Likewise.
22528 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
22530         scandir: Fix _D_ALLOC_NAMLEN() on OS/2 kLIBC
22531         * lib/scandir.c (_D_ALLOC_NAMLEN): Consider the fields after d_name on
22532         OS/2 kLIBC.
22534 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
22536         alphasort, scandir: Port to OS/2 kLIBC
22537         * lib/alphasort.c (alphasort): Implement according to OS/2 kLIBC
22538         declaration.
22539         * lib/scandir.c (scandir): Add declaration for OS/2 kLIBC.
22541 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
22543         relocatable: Fix that /@unixroot prefix is not working on OS/2 kLIBC
22544         * lib/relocatable.c (relocate): Do not touch pathname if it is started
22545         with '/@unixroot'.
22547 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
22549         sys_socket: typedef sa_family_t correctly on OS/2 kLIBC
22550         * lib/sys_socket.in.h (sa_family_t): Typedef to unsigned char on
22551         OS/2 kLIBC unless TCPV40HDRS is defined.
22553 2016-11-29  Jim Meyering  <meyering@fb.com>
22555         dfa: avoid new infinite loop
22556         This would infloop: echo cx | LC_ALL=C grep -E 'c\b[x ]'
22557         * lib/dfa.c (dfastate): When constructing a new state table, we could
22558         initially declare that we had found a match, and later find that
22559         constraints eliminate that possibility, yet continue to use the
22560         now stale "matched" indicator.  That would lead to an infinite loop.
22561         The solution is to update "matched" when necessary.
22562         Introduced by commit v0.1-983-g403adf1.
22564 2016-11-27  Norihiro Tanaka  <noritnk@kcn.ne.jp>
22566         dfa: avoid match middle in multibyte character
22567         * lib/dfa.c (transit_state): If fails in matching single byte characters
22568         on a state including period expression in non-UTF8 multibyte locales,
22569         skip trailing bytes.
22570         (dfa_supported): Revert previous change.
22572 2016-11-27  Jim Meyering  <meyering@fb.com>
22574         dfa: avoid false match in non-UTF8 multibyte locales
22575         * lib/dfa.c (dfa_supported): Treat any non-UTF8 multibyte locale
22576         as "not supported" so that callers will resort to using regex-based
22577         matcher.  This will surely hurt performance, but correctness trumps
22578         performance here, and the affected locales are less and less relevant,
22579         these days.  See grep's bug report https://bugs.gnu.org/24975.
22581 2016-11-27  Mike Frysinger  <vapier@gentoo.org>
22583         ptsname_r: leverage AC_HEADER_MAJOR to provide major()
22584         * lib/ptsname_r.c: Include the appropriate headers.
22585         [__sun]: Delete sys/sysmacros.h include.
22586         [_AIX || __osf__]: Likewise.
22587         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Depend on AC_HEADER_MAJOR.
22589 2016-11-27  Pádraig Brady  <P@draigBrady.com>
22591         md4,md5,sha*: allow _STRING_INLINE_unaligned enable unaligned operation
22592         * lib/md4.c (md4_process_bytes): The existing define is made internal
22593         in recent versions of glibc, so also use this new public define.
22594         * lib/md5.c (md5_process_bytes): Likewise.
22595         * lib/sha1.c (sha1_process_bytes): Likewise.
22596         * lib/sha256.c (sha256_process_bytes): Likewise.
22597         * lib/sha512.c (sha512_process_bytes): Likewise.
22599 2016-11-27  Pádraig Brady  <P@draigBrady.com>
22601         maint: use a more standard return from mbrtowc test
22602         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): Don't return 1
22603         from the test program as this often indicates an
22604         unhandled case in the test program.
22605         (gl_MBRTOWC_INCOMPLETE_STATE): Likewise.
22606         (gl_MBRTOWC_SANITYCHECK): Likewise.
22607         (gl_MBRTOWC_NULL_ARG2): Likewise.
22608         (gl_MBRTOWC_NUL_RETVAL): Likewise.
22610 2016-11-26  Paul Eggert  <eggert@cs.ucla.edu>
22612         freopen: work around glibc bug with closed fd
22613         Work around glibc bug#15589, where freopen mishandles the case
22614         where stdin etc. are already closed.
22615         * doc/posix-functions/freopen.texi (freopen): Document the bug.
22616         * lib/freopen.c (_GL_ALREADY_INCLUDING_STDIO_H): Define this
22617         instead of __need_FILE, as the latter does not work with glibc.
22618         Include <fcntl.h>, for open flags.
22619         (rpl_freopen): Work around glibc bug.
22620         * m4/freopen.m4 (gl_FUNC_FREOPEN): Check for bug.
22621         * modules/freopen (Depends-on): Add fcntl-h.
22622         * tests/test-freopen.c (main): Test for bug.
22624 2016-11-25  Paul Eggert  <eggert@cs.ucla.edu>
22626         fnmatch: fix typo introduced on 2016-08-17
22627         This fixes the port to non-GCC compilers that lack __builtin_expect.
22628         * lib/fnmatch.c (__builtin_expect): Change A&&B to !A||B.
22630         dfa: simplify with new function fillset
22631         * lib/dfa.c (fillset): New function.
22632         Use it for clarity when applicable.
22634         dfa: fix glitches with on-demand states
22635         Also, adjust commentary to better match new code.
22636         Some of these glitches predate the recent change.
22637         * lib/dfa.c (dfaanalyze): Clear trcount here, so that it counts
22638         only non-initial states.
22639         (dfastate): Rename locals to better match new roles.
22640         Move them into nested scopes if this is easy.
22641         Omit unnecessary calls to zeroset.
22642         Simplify test for whether to throw in the positions of state 0.
22643         Omit C99-ism (decl after statement) since Gawk still wants C89.
22644         (build_state): Omit unnecessary test and assignment.
22645         Fix some confusion that counted transition tables inaccurately
22646         and could cause a memory leak.
22647         (dfaexec_main): Redo to make it clearer to the compiler that
22648         -1 and -2 are the only negative state numbers here.
22650 2016-11-25  Norihiro Tanaka  <noritnk@kcn.ne.jp>
22652         dfa: addition of new state on demand
22653         * src/dfa.c (dfastate): Add argument UC, the current input character.
22654         Fill only a group including the character in transition table.
22655         (realloc_trans_if_necessary): Add the dummy state which means that a
22656         transition table is assigned but the next state is not assigned.
22657         (build_state): Return the next state.  All callers updated.
22658         (transit_state_singlebyte): If we get the dummy state,
22659         fill the transition table.
22660         (dfaexec_main): Handle the dummy state.
22661         (free_mbdata, dfafree): Consider the dummy state.
22663 2016-11-24  Daiki Ueno  <ueno@gnu.org>
22665         srclist: sync with released gettext
22666         * config/srclist.txt: Set "release" option to the files under
22667         $GETTEXT.
22669 2016-11-24  Daiki Ueno  <ueno@gnu.org>
22671         srclist: add "release" option
22672         * config/srclist.txt: Change the format so that the first column
22673         of each line points to the top-level directory of the source
22674         archive.
22675         * config/srclist-update: Accept "release" option that checks files
22676         from the most recently tagged revision in the source archive.
22678 2016-11-21  Bruno Haible  <bruno@clisp.org>
22680         snippet/c++defs: Simplify _GL_CXXALIAS_* macros.
22681         * build-aux/snippet/c++defs.h [__cplusplus && GNULIB_NAMESPACE]
22682         (_GL_CXXALIAS_RPL_1, _GL_CXXALIAS_RPL_CAST_1,
22683         _GL_CXXALIAS_SYS, _GL_CXXALIAS_SYS_CAST, _GL_CXXALIAS_SYS_CAST2):
22684         Inline and remove member function 'rpl ()' of the wrapper struct.
22686 2016-11-20  Paul Eggert  <eggert@cs.ucla.edu>
22688         dfa: fix logic typo
22689         Problem reported by Stephane Chazelas (Bug#24973).
22690         * lib/dfa.c (using_simple_locale): Fix typo that caused some
22691         non-simple locales like fr_FR to be treated as simple.
22693 2016-11-20  Jim Meyering  <meyering@fb.com>
22695         fix test driver leaks: exclude, malloc, realloc
22696         * tests/test-exclude.c (main): Fix trivial leak.
22697         * tests/test-malloc-gnu.c (main): Likewise.
22698         * tests/test-realloc-gnu.c (main): Likewise.
22699         With these changes, grep's tests are now leak free.
22700         I.e., running them with ASAN elicits no failure:
22701           make CFLAGS='-O0 -ggdb3' AM_CFLAGS=-fsanitize=address \
22702             AM_LDFLAGS='-fsanitize=address -static-libasan' check
22704 2016-11-11  Bruno Haible  <bruno@clisp.org>
22706         libunistring: Relicense under dual "LGPLv3+ or GPLv2" license.
22707         * modules/libunistring: (License): Change from LGPL to
22708         "LGPLv3+ or GPLv2".
22709         * modules/libunistring-optional: Likewise.
22710         * modules/unicase/*: Likewise.
22711         * modules/uniconv/*: Likewise.
22712         * modules/unictype/*: Likewise.
22713         * modules/unigbrk/*: Likewise.
22714         * modules/unilbrk/*: Likewise.
22715         * modules/uniname/*: Likewise.
22716         * modules/uninorm/*: Likewise.
22717         * modules/unistdio/*: Likewise.
22718         * modules/unistr/*: Likewise.
22719         * modules/uniwbrk/*: Likewise.
22720         * modules/uniwidth/*: Likewise.
22722 2016-11-12  Bruno Haible  <bruno@clisp.org>
22724         Relicense some modules under LGPLv2+.
22725         Paul Eggert's approval is in
22726         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00037.html.
22727         Eric Blake's approval is in
22728         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00042.html.
22729         Ludovic Courtès's approval is in
22730         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00038.html.
22731         * modules/isnand-nolibm (License): Change to LGPLv2+.
22732         * modules/isnanf-nolibm (License): Likewise.
22733         * modules/isnanl-nolibm (License): Likewise.
22735 2016-11-19  Bruno Haible  <bruno@clisp.org>
22737         Relicense some modules under LGPLv2+.
22738         lib/float+.h is already under LGPLv2+ since 2007-07-13, per
22739         modules/vasnprintf.
22740         Paolo Bonzini's approval for lib/frexp.c and lib/frexpl.c is in
22741         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00074.html.
22742         All other significant changes to the files in lib/ of these modules
22743         are from me.
22744         * modules/memcmp2 (License): Change to LGPLv2+.
22745         * modules/amemxfrm (License): Likewise.
22746         * modules/fpieee (License): Likewise.
22747         * modules/fpucw (License): Likewise.
22748         * modules/frexp-nolibm (License): Likewise.
22749         * modules/frexpl-nolibm (License): Likewise.
22750         * modules/printf-frexp (License): Likewise.
22751         * modules/printf-frexpl (License): Likewise.
22752         * modules/printf-safe (License): Likewise.
22753         * modules/signbit (License): Likewise.
22755 2016-11-17  Bruno Haible  <bruno@clisp.org>
22757         Enable Unicode decoder safety unconditionally.
22758         * lib/unistr.in.h (u32_mbtouc_unsafe): Assume CONFIG_UNICODE_SAFETY.
22759         * lib/unistr/u8-mblen.c (u8_mblen): Likewise.
22760         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
22761         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
22762         * lib/unistr/u8-prev.c (u8_prev): Likewise.
22763         * lib/unistr/u8-strmblen.c (u8_strmblen): Likewise.
22764         * lib/unistr/u8-strmbtouc.c (u8_strmbtouc): Likewise.
22765         * lib/unistr/u16-mblen.c (u16_mblen): Likewise.
22766         * lib/unistr/u16-mbtouc-unsafe.c (u16_mbtouc_unsafe): Likewise.
22767         * lib/unistr/u16-mbtouc-unsafe-aux.c (u16_mbtouc_unsafe_aux): Likewise.
22768         * lib/unistr/u16-prev.c (u16_prev): Likewise.
22769         * lib/unistr/u16-strmblen.c (u16_strmblen): Likewise.
22770         * lib/unistr/u16-strmbtouc.c (u16_strmbtouc): Likewise.
22771         * lib/unistr/u32-mblen.c (u32_mblen): Likewise.
22772         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Likewise.
22773         * lib/unistr/u32-prev.c (u32_prev): Likewise.
22774         * lib/unistr/u32-next.c (u32_next): Likewise.
22775         * lib/unistr/u32-strmblen.c (u32_strmblen): Likewise.
22776         * lib/unistr/u32-strmbtouc.c (u32_strmbtouc): Likewise.
22777         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
22778         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
22779         * tests/unistr/test-u16-prev.c (check_invalid): Enable the
22780         CONFIG_UNICODE_SAFETY tests unconditionally.
22781         * tests/unistr/test-u32-mblen.c (main): Likewise.
22782         * tests/unistr/test-u32-mbtouc.h (test_function): Likewise.
22783         * tests/unistr/test-u32-prev.c (check_invalid): Likewise.
22784         * tests/unistr/test-u32-next.c (main): Likewise.
22785         * tests/unistr/test-u32-strmblen.c (main): Likewise.
22786         * tests/unistr/test-u32-strmbtouc.c (main): Likewise.
22787         * tests/unistr/test-u32-mbtouc.c (FULL_SAFETY): Remove macro.
22788         * lib/unistr/u8-check.c (u8_check): Remove old dead code.
22789         * lib/unistr/u8-mbtouc.c (u8_mbtouc): Likewise.
22790         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
22791         * lib/unistr/u8-mbtoucr.c (u8_mbtoucr): Likewise.
22792         * lib/unistr/u8-uctomb.c (u8_uctomb): Likewise.
22793         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Likewise.
22794         * lib/unistr/u16-check.c (u16_check): Update comment.
22795         * NEWS: Mention the changes that callers should be aware of.
22797 2016-11-19  Bruno Haible  <bruno@clisp.org>
22799         relocatable-prog-wrapper: Fix breakage on Cygwin.
22800         * modules/relocatable-prog-wrapper (Files): Add lib/stat.c, lib/lstat.c.
22801         (Depends-on): Remove intprops.
22802         * lib/relocwrapper.c: Update dependency tree.
22803         (strerror): Undefine.
22804         * build-aux/install-reloc (func_create_wrapper): Do not compile
22805         strerror.c and strerror-override.c. Erase stat.o and lstat.o.
22807 2016-11-19  Bruno Haible  <bruno@clisp.org>
22809         strerror: Make it compile in C++ mode.
22810         * lib/strerror.c (strerror): Ignore the return value of memcpy().
22812 2016-11-15  Pedro Alves  <palves@redhat.com>
22814         sys_time: add gnulib::timeval for C++
22815         * lib/sys_time.in.h [__cplusplus && defined GNULIB_NAMESPACE]:
22816         Define "timeval" in the GNULIB_NAMESPACE namespace, and #undef any
22817         timeval macro.
22819 2016-11-14  Pedro Alves  <palves@redhat.com>
22821         snippet/c++defs: fix real-floating arg functions in C++ mode
22822         Also, define isfinite, isinf, isnan, signbit in the gnulib
22823         namespace instead of in the global namespace.
22824         * build-aux/snippet/c++defs.h (_GL_BEGIN_NAMESPACE)
22825         (_GL_END_NAMESPACE): New.
22826         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_2): Use them.
22827         (isfinite, isinf, isnan, signbit) [__cplusplus &&
22828         GNULIB_NAMESPACE]: Define them in the GNULIB_NAMESPACE namespace
22829         instead of in the global namespace.
22830         * tests/test-math-c++.cc: Check that the isfinite, isinf, isnan,
22831         signbit overloads exist in the GNULIB_NAMESPACE namespace, instead
22832         of in the global namespace.
22834 2016-11-13  Jim Meyering  <meyering@fb.com>
22836         strftime: don't use __THROW
22837         Each use of __THROW would provoke this from gcc-7-to-be:
22839           lib/strftime.c:371:1: warning: '__leaf__' attribute has no effect \
22840             on unit local functions [-Wattributes]
22841           static int iso_week_days (int, int) __THROW;
22842           ^~~~~~
22843         * lib/strftime.c (__THROW): Don't define.
22844         Remove each use of __THROW.
22845         * lib/strftime.c (memcpy_lowcase, memcpy_uppcase): Remove __THROW.
22846         (tm_diff, iso_week_days, __strftime_internal): Likewise.
22848 2016-11-14  Paul Eggert  <eggert@union>
22850         obstack: port to gcc -fcheck-pointer-bounds
22851         Problem found by 'make check' failure on bleeding-edge coreutils
22852         on an MPX-enabled CPU (Intel Core i3-7100U) running GCC (Ubuntu
22853         6.2.0-5ubuntu12), configured via "./configure
22854         --enable-gcc-warnings CFLAGS='-mmpx -fcheck-pointer-bounds -g3
22855         -O2' LDFLAGS='-static-libmpx -static-libmpxwrappers'".
22856         * lib/obstack.h (__FLEXIBLE_ARRAY_MEMBER):
22857         New macro, copied from fts_.h.
22858         (struct _obstack_chunk.contents): Use it.
22860 2016-11-14  Eric Blake  <eblake@redhat.com>
22862         strerror_r-posix: Another fix, for HAVE_DECL_STRERROR_R on mingw.
22863         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R, gl_FUNC_STRERROR_R_WORKS):
22864         Avoid _ONCE variants, which may supply a conflicting AC_DEFINE().
22866 2016-11-14  Pádraig Brady  <P@draigBrady.com>
22868         strptime: fix compile error in recent change
22869         * lib/strptime.c (__strptime_internal): Fix ported code.
22871 2016-11-11  Bruno Haible  <bruno@clisp.org>
22873         gnulib-tool: Support for the dual "LGPLv3+ or GPLv2" license.
22874         * gnulib-tool (--lgpl): Accept value 3orGPLv2.
22875         (func_import): Extend determination of license_incompatibilities.
22876         (func_create_testdir): Extend table of license compatibility. Handle
22877         also the licenses GPLv3+, GPL, LGPLv3+.
22879 2016-11-12  Paul Eggert  <eggert@cs.ucla.edu>
22881         strftime: tune %q
22882         * lib/strftime.c (__strftime_internal): Assume tp->tm_mon is in range.
22884         Merge strftime.c changes from glibc
22885         This incorporates:
22886         2007-10-16 [BZ #5184] Add tzset_called argument
22887         2008-06-13 [BZ #6612] pass reference to tzset_called around
22888         2009-10-30 Implement Burmese language locale for Myanmar
22889         2010-01-09 Add support for XPG7 testing
22890         2015-09-26 [BZ #18985] out of range data to strftime() causes a segfault
22891         2015-10-20 Convert miscellaneous function definitions to prototype style
22892         * lib/strftime.c: Copy glibc license, since gnulib-tool rewrites
22893         it anyway and this lessens the difference between gnulib and glibc.
22894         (USE_IN_EXTENDED_LOCALE_MODEL) [_LIBC]: Define.
22895         (__THROW): Define if standard headers do not.
22896         (LOCALE_PARAM): Rename from LOCALE_PARAM_PROTO.  All uses changed.
22897         (memcpy_locase, memcpy_uppcase, tm_diff, __strftime_internal):
22898         Declare with __THROW.
22899         (__strftime_internal): Rename from strftime_case_. Add arg for
22900         whether tzset is called.  All uses changed.  Call tzset at most
22901         once.  Allow %OC, for Burmese.
22902         (a_wkday, f_wkday, a_month, f_month) [_NL_CURRENT]:
22903         Don't assume values are in range.
22905 2016-11-12  Eric Blake  <eblake@redhat.com>
22907         strerror_r-posix: Fix override of AC_FUNC_STRERROR_R
22908         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): New override.
22909         (gl_FUNC_STRERROR_R): Don't reuse AC_DEFINE() with a potentially
22910         different value.
22912 2006-11-12  Pedro Alves  <palves@redhat.com>
22914         Fix gnulib C++ namespace support and std::frexp
22915         * lib/math.in.h (frexp): Use _GL_CXXALIASWARN1 instead of
22916         _GL_CXXALIASWARN.
22918 2006-11-12  Pedro Alves  <palves@redhat.com>
22920         GNULIB_NAMESPACE::func need not pull in rpl_func
22921         * build-aux/snippet/c++defs.h [__cplusplus && GNULIB_NAMESPACE]
22922         (_GL_CXXALIAS_RPL_1, _GL_CXXALIAS_RPL_CAST_1, _GL_CXXALIAS_SYS)
22923         (_GL_CXXALIAS_SYS_CAST, _GL_CXXALIAS_SYS_CAST2): Define a wrapper
22924         struct instead of a function pointer.
22926 2016-11-09  Frediano Ziglio  <fziglio@redhat.com>
22928         manywarnings: fix -Wno-missing-field-initializers detection
22929         * m4/manywarnings.m4: Fix -Wno-missing-field-initializers detection
22930         to be independent of -Wunused-variable.  I.E. ensure the latter
22931         warning doesn't occur so that detection of the former is accurate.
22933 2016-11-05  Pádraig Brady  <pbrady@fb.com>
22935         strftime,strptime: support %q to represent the quarter
22936         * lib/strftime.c (strftime_case_): Add %q case.
22937         * lib/strptime.c (__strptime_internal): Likewise.
22938         * tests/test-strftime.c (quarter_test): A new test case.
22940 2016-11-03  Eric Blake  <eblake@redhat.com>
22942         bootstrap: Fix get_version() for AIX 5.3
22943         * build-aux/bootstrap (get_version): Factor out sed script, since
22944         indented comments choke AIX 5.3 sed.
22945         Reported-by: Michael Felt <aixtools@gmail.com>
22947 2016-11-03  Paul Eggert  <eggert@cs.ucla.edu>
22949         intprops: port to older XL C
22950         Problem reported by Alexander Samoilov in:
22951         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00166.html
22952         http://savannah.nongnu.org/bugs/?49448
22953         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM__TYPEOF__]:
22954         Define to 1 only for XL C 12.1 or later, since this bug
22955         occurs in XL C for AIX 6.0 but not in 12.1.
22957 2016-11-02  Pádraig Brady  <P@draigBrady.com>
22959         backupfile: initialize default suffix within the implementation
22960         * lib/backupfile.c (find_backup_file_name): Initialize the
22961         global variable here, to simplify usage, and to only call
22962         getenv() when needed.
22964 2016-11-01  Paul Eggert  <eggert@cs.ucla.edu>
22966         futimens: remove FIXME for old Linux kernels
22967         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Belatedy do a "simplify
22968         this in 2012" FIXME, like that for utimensat.
22970         utimensat: remove FIXME for old Linux kernels
22971         * lib/utimensat.c (rpl_utimensat): Update FIXME comment.
22972         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Belatedy do a "simplify
22973         this in 2012" FIXME, by assuming the file system bug is absent
22974         unless demonstrated to be present.  We no longer need to worry
22975         about Linux kernel 2.6.32 when building with newer kernels.
22977 2016-10-16  Bruno Haible  <bruno@clisp.org>
22979         qsort_r: Fix macrology for platforms that lack the function.
22980         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for qsort_r.
22981         (gl_STDLIB_H_DEFAULTS): Initialize HAVE_QSORT_R.
22982         * modules/stdlib (Makefile.am): Substitute HAVE_QSORT_R.
22983         * lib/stdlib.in.h (qsort_r): Provide declaration if the function does
22984         not exist.
22985         * m4/qsort_r.m4 (gl_FUNC_QSORT_R): Use AC_CHECK_FUNCS to test whether
22986         the function exists.
22987         * modules/qsort_r: Add comments.
22989 2016-10-26  Paul Eggert  <eggert@cs.ucla.edu>
22991         sys_types: fix Texinfo typos
22992         * doc/glibc-functions/gnu_dev_major.texi:
22993         * doc/glibc-functions/gnu_dev_makedev.texi:
22994         * doc/glibc-functions/gnu_dev_minor.texi: Fix typos.
22996 2016-10-26  John David Anglin  <dave.anglin@bell.net>
22998         getprogname: port to HP-UX
22999         See Bug#24805.
23000         * lib/getprogname.c (getprogname) [__hpux]: Port.
23001         * tests/test-getprogname.c (STREQ) [__hpux]:
23002         Special-case for HP-UX limitations on program name length.
23004 2016-10-20  Bruno Haible  <bruno@clisp.org>
23006         Update doc about target platforms.
23007         * doc/gnulib-intro.texi (Target Platforms): Update list.
23009 2016-10-15  Bruno Haible  <bruno@clisp.org>
23011         opendir, readdir, closedir: Relicense under LGPLv2+.
23012         * modules/opendir (License): Change to LGPLv2+.
23013         * modules/readdir (License): Likewise.
23014         * modules/closedir (License): Likewise.
23016 2016-10-16  Bruno Haible  <bruno@clisp.org>
23018         Fix conflict between strerror_r-posix module and AC_FUNC_STRERROR_R.
23019         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Override the values set by the
23020         AC_FUNC_STRERROR_R macro. Define HAVE_DECL_STRERROR_R_ORIG.
23021         * lib/strerror_r.c: Use HAVE_DECL_STRERROR_R_ORIG instead of
23022         HAVE_DECL_STRERROR_R.
23024 2016-10-16  Bruno Haible  <bruno@clisp.org>
23026         Make the 'argp' module work without the 'error' module.
23027         * m4/argp.m4 (gl_ARGP): Require AC_FUNC_STRERROR_R.
23029 2016-10-25  Paul Eggert  <eggert@cs.ucla.edu>
23031         diffseq: restore TOO_EXPENSIVE heuristic
23032         * lib/diffseq.h: Problem with diffutils reported by Andreas Schwab
23033         (Bug#24715).  The simplest solution is to restore the
23034         TOO_EXPENSIVE heuristic that I added to GNU diff in 1993, while
23035         using a higher threshold to avoid Bug#16848 on smaller files.
23036         * lib/diffseq.h (struct context): Restore member too_expensive.
23037         (struct partition): Restore members lo_minimal, hi_minimal.
23038         (diag, compareseq): Restore arg find_minimal.  All uses changed.
23039         (diag): Restore the TOO_EXPENSIVE heuristic that I added back in
23040         1993 to make 'diff' run faster (but not as well) on large inputs,
23041         but use a threshold of 4096 instead of the old 256.
23042         * lib/fstrcmp.c (strcmp_bounded):
23043         * lib/git-merge-changelog.c (compute_differences):
23044         Adjust to diffseq.h changes.
23046 2016-10-22  Bruno Haible  <bruno@clisp.org>
23048         iconv: Avoid compilation error when bootstrapping GNU libiconv.
23049         * m4/iconv.m4 (AM_ICONV): When the system does not have an iconv()
23050         declaration yet, define ICONV_CONST to empty.
23052 2016-10-15  Bruno Haible  <bruno@clisp.org>
23054         Avoid gnulib-tool warnings about the dependencies of 'parse-datetime'.
23055         * gnulib-tool (func_get_license): Special-case the 'parse-datetime'
23056         module.
23058 2016-10-16  Bruno Haible  <bruno@clisp.org>
23060         system-quote tests: Avoid compiler warning on AIX.
23061         * tests/test-system-quote-child.c (fopen): Redefine like the system's
23062         <stdio.h> does.
23064 2016-10-16  Bruno Haible  <bruno@clisp.org>
23066         Fix some "gcc -Wall" warnings.
23067         * tests/test-ffsl.c (main): Use variable x, not i.
23068         * tests/test-posix_spawn3.c (parent_main): Consider the return value of
23069         freopen.
23070         * tests/test-sethostname1.c (main): Explicitly ignore the return value
23071         of sethostname.
23073 2016-10-16  Bruno Haible  <bruno@clisp.org>
23075         gnulib-tool: Make --create-testdir on all modules work again.
23076         * gnulib-tool (func_create_testdir): Don't include the
23077         non-recursive-gnulib-prefix-hack module.
23079 2016-10-21  Daiki Ueno  <ueno@gnu.org>
23081         libunistring: change the maintainer to 'all'
23082         * modules/gen-uni-tables, modules/libunistring:
23083         * modules/ucs4-utf16, modules/ucs4-utf8, modules/unicodeio:
23084         * modules/unitypes, modules/utf16-ucs4, modules/utf16-ucs4-unsafe:
23085         * modules/utf8-ucs4, modules/utf8-ucs4-unsafe:
23086         * modules/unicase/*, modules/uniconv/*, modules/unictype/*:
23087         * modules/unilbrk/*, modules/uniname/*, modules/uninorm/*:
23088         * modules/unistdio/*, modules/unistr/*, modules/uniwbrk/*:
23089         * modules/uniwidth/*: Change the maintainer to 'all'.
23091 2016-10-16  Bruno Haible  <bruno@clisp.org>
23093         Simplify "configure: checking ..." messages.
23094         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use AC_MSG_CHECKING instead of
23095         AC_MSG_NOTICE.
23096         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
23098 2016-10-20  Paul Eggert  <eggert@cs.ucla.edu>
23100         quotearg-tests: pacify gcc -Wall
23101         Problem reported by Bruno Haible in:
23102         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00066.html
23103         * tests/test-quotearg-simple.c (use_quote_double_quotes): Move here ...
23104         * tests/test-quotearg.h: ... from here.
23106 2016-10-20  Pádraig Brady  <P@draigBrady.com>
23108         canonicalize-lgpl: fix for missing SIZE_MAX on older systems
23109         * lib/canonicalize-lgpl.c [SIZE_MAX]: Define if needed.
23110         Needed on Centos <= 4.
23112 2016-10-20  Jim Meyering  <meyering@fb.com>
23114         printf.m4: fix a bug in detecting printf %j support
23115         * m4/printf.m4 (gl_PRINTF_SIZES_C99): Fail any system for which
23116         uintmax_t is defined in neither stdint.h nor inttypes.h.
23117         Before, this macro might have mistakenly set
23118         gl_cv_func_printf_sizes_c99=yes on such a system.
23119         Spotted by Zev Weiss.
23121 2016-10-19  Paul Eggert  <eggert@cs.ucla.edu>
23123         sched: substitute HAVE_SYS_CDEFS_H too
23124         Problem reported by Tom G. Christensen in:
23125         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00084.html
23126         * m4/sched_h.m4 (gl_SCHED_H): Set and substitute HAVE_SYS_CDEFS_H.
23127         * modules/sched (Depends-on): Substitute HAVE_SYS_CDEFS_H.
23129 2016-10-19  Pádraig Brady  <P@draigBrady.com>
23131         quotearg: never write beyond the returned length
23132         * lib/quotearg.c (quotearg_buffer_restyled): Switch to a read-only
23133         scan of the string when we initially encounter a single quote when
23134         shell quoting, so that if we then switch to a more concise quoting method
23135         we will not have written beyond that returned length.
23136         This is significant for sh-quote, which has separate routines
23137         to determine the length and do the actual quoting.
23138         * tests/test-quotearg.h: Reinstate the buffer bounds checking
23139         now that we never write more than the returned length.
23141 2016-10-18  Bruno Haible  <bruno@clisp.org>
23143         getprogname tests: Avoid failure in packages that use libtool.
23144         * tests/test-getprogname.c (main): Strip "lt-" prefix.
23145         Based on a patch by Jim Meyering.
23147 2016-10-16  Bruno Haible  <bruno@clisp.org>
23149         getprogname: Fix test failure on Cygwin. Comments.
23150         * lib/getprogname.h: Add comments.
23151         * lib/getprogname.c: Add comments. Fix #elif indentation.
23152         * tests/test-getprogname.c (main): On Cygwin, expect a result without
23153         ".exe" suffix.
23155 2016-10-16  Bruno Haible  <bruno@clisp.org>
23157         Make sure the libunistring detection rejects older versions with a
23158         known bug.
23159         * modules/unistr/u8-strtok (configure.ac): Bump required version.
23160         * modules/unistr/u16-strtok (configure.ac): Likewise.
23161         * modules/unistr/u32-strtok (configure.ac): Likewise.
23163 2016-10-18  Bruno Haible  <bruno@clisp.org>
23165         sh-quote, system-quote: revert regression of unit test.
23166         * tests/test-sh-quote.c (check_one): Do detect buffer overruns.
23167         * tests/test-system-quote-main.c (check_one): Likewise.
23169 2016-10-16  Pádraig Brady  <P@draigBrady.com>
23171         quotearg: fix stale tests
23172         * tests/test-quotearg.c [locale_results]: Add the missing str7
23173         entries to the expected results.
23174         * tests/test-system-quote-main.c (check_one): Don't enforce that we
23175         don't write beyond the returned length, since that's no longer the
23176         case if we switch to a more concise quoting style.
23177         * tests/test-sh-quote.c (check_one): Likewise.
23178         (main): Adjust for the new more concise quoting style.
23179         Reported by Bruno Haible.
23181 2016-10-16  Jim Meyering  <meyering@fb.com>
23183         non-recursive-gnulib-prefix-hack: fix inconsequential typo
23184         * m4/non-recursive-gnulib-prefix-hack.m4: Change a hard-coded "lib"
23185         to "$1".  This macro is always invoked with $1 == lib.
23186         Spotted by Bruno Haible
23188 2016-10-16  Bruno Haible  <bruno@clisp.org>
23190         Fix a test crash.
23191         * tests/test-duplocale.c (main): Skip the test if the 'newlocale' call
23192         fails.
23194 2016-10-16  Pádraig Brady  <P@draigBrady.com>
23196         test-limits-h: suppress -Woverlength-strings
23197         * tests/test-limits-h.c [__GNUC__]: Ignore -Woverlength-strings.
23199 2016-10-15  Bruno Haible  <bruno@clisp.org>
23201         gettime, timespec, utimens: Relicense under LGPL.
23202         * modules/gettime (License): Change to LGPL.
23203         * modules/timespec (License): Likewise.
23204         * modules/utimens (License): Likewise.
23206 2016-10-14  Bruno Haible  <bruno@clisp.org>
23207             Pádraig Brady  <P@draigBrady.com>
23209         canonicalize-lgpl: Support the case path_max > INT_MAX.
23210         * lib/canonicalize-lgpl.c (__realpath): Declare n as ssize_t, not int.
23211         Fix overflow check, for platforms where 'size_t' is larger than 'long'.
23213 2016-10-13  Jim Meyering  <meyering@fb.com>
23215         getprogname: IBM z/OS: avoid NULL-dereference
23216         * lib/getprogname.c (getprogname) [__MVS__]: Don't dereference NULL
23217         upon strdup failure.
23219 2016-10-12  Jim Meyering  <meyering@fb.com>
23221         test-stdint: use _GL_VERIFY rather than "verify" for some tests
23222         * tests/test-stdint.c (verify_width): Implement with _GL_VERIFY
23223         and an abbreviated diagnostic rather than verify with the full one,
23224         because the full-length strings would evoke warnings from gcc with
23225         -Woverlength-strings.
23227 2016-10-13  Paul Eggert  <eggert@cs.ucla.edu>
23229         stdint: port SIZE_MAX to glibc s390
23230         Problem reported by Eric Blake in:
23231         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00031.html
23232         * doc/posix-headers/stdint.texi (stdint.h): Document the fix.
23233         * m4/stdint.m4 (gl_STDINT_H): Check that SIZE_MAX has the
23234         correct type, if possible.
23236 2016-10-13  Daniel Richard G.  <skunk@iSKUNK.ORG>
23238         getprogname: port to IBM z/OS
23239         * lib/getprogname.c (getprogname): Use w_getpsent() to get the name.
23241 2016-10-11  Jim Meyering  <meyering@fb.com>
23243         maint: remove stray space after "." in AC_DEFINE comment.
23244         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Remove space-after-".".
23245         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
23247 2016-10-05  Jim Meyering  <meyering@fb.com>
23249         long-options: avoid new GCC 7 warning from -Wimplicit-fallthrough
23250         * lib/long-options.c (parse_long_options): Add a break statement
23251         to avoid this new warning/failure:
23252         $ CFLAGS='-O -Werror=implicit-fallthrough' ./gnulib-tool \
23253           --create-testdir --dir=/t/x --with-tests --test long-options
23254         ../../gllib/long-options.c: In function 'parse_long_options':
23255         ../../gllib/long-options.c:66:12: error: this statement may \
23256           fall through [-Werror=implicit-fallthrough]
23257                    (*usage_func) (EXIT_SUCCESS);
23258                    ~^~~~~~~~~~~~~~~~~~~~~~~~~~~
23260 2016-10-05  Jim Meyering  <meyering@fb.com>
23262         utimecmp: avoid new GCC 7 warning from -Wbool-operation
23263         Testing this module would fail when using GCC 7 like this:
23264         $ CFLAGS='-O -Werror=bool-operation' ./gnulib-tool --create-testdir \
23265           --dir=/tmp/x --with-tests --test utimecmp
23266         ../../gllib/utimecmp.c: In function ‘utimecmp’:
23267         ../../gllib/utimecmp.c:291:36: error: ‘~’ on a boolean expression \
23268           [-Werror=bool-operation]
23269                          time_t s = src_s & ~ (res == 2 * BILLION);
23270                                             ^
23271         ../../gllib/utimecmp.c:370:16: error: ‘~’ on a boolean expression \
23272           [-Werror=bool-operation]
23273                src_s &= ~ (res == 2 * BILLION);
23274                         ^
23275         * lib/utimecmp.c (utimecmp): Do not apply "~" to a boolean.
23276         Instead, make it explicit that we intend to apply it to 0 or 1.
23278 2016-10-10  Norihiro Tanaka  <noritnk@kcn.ne.jp>
23280         dfa: save memory for states
23281         * src/dfa (dfaexec_main): Beginning of dfa execution, release caches of
23282         states if dfa has a lot of caches.
23284 2016-10-10  Eli Zaretskii  <eliz@gnu.org>
23286         wchar, wctype-h: fix for MinGW 3.22.2
23287         * lib/wchar.in.h [__MINGW32__]: Add one more condition for
23288         special invocation, to fix issues with MinGW 3.22.2 wchar.h
23289         when included from <string.h>.
23290         * lib/wctype.in.h [__MINGW32__]: Add special invocation
23291         convention for MinGW 3.22.2, to solve issues with their
23292         wctype.h when included from <ctype.h>.
23294 2016-10-05  Jim Meyering  <meyering@fb.com>
23296         long-options: avoid new GCC 7 warning from -Wimplicit-fallthrough
23297         * lib/long-options.c (parse_long_options): Add a break statement
23298         to avoid this new warning/failure:
23299         $ CFLAGS='-O -Werror=implicit-fallthrough' ./gnulib-tool \
23300           --create-testdir --dir=/t/x --with-tests --test long-options
23301         ../../gllib/long-options.c: In function ‘parse_long_options’:
23302         ../../gllib/long-options.c:66:12: error: this statement may \
23303           fall through [-Werror=implicit-fallthrough]
23304                    (*usage_func) (EXIT_SUCCESS);
23305                    ~^~~~~~~~~~~~~~~~~~~~~~~~~~~
23307         utimecmp: avoid new GCC 7 warning from -Wbool-operation
23308         Testing this module would fail when using GCC 7 like this:
23309         $ CFLAGS='-O -Werror=bool-operation' ./gnulib-tool --create-testdir \
23310           --dir=/tmp/x --with-tests --test utimecmp
23311         ../../gllib/utimecmp.c: In function ‘utimecmp’:
23312         ../../gllib/utimecmp.c:291:36: error: ‘~’ on a boolean expression \
23313           [-Werror=bool-operation]
23314                          time_t s = src_s & ~ (res == 2 * BILLION);
23315                                             ^
23316         ../../gllib/utimecmp.c:370:16: error: ‘~’ on a boolean expression \
23317           [-Werror=bool-operation]
23318                src_s &= ~ (res == 2 * BILLION);
23319                         ^
23320         * lib/utimecmp.c (utimecmp): Do not apply "~" to a boolean.
23321         Instead, make it explicit that we intend to apply it to 0 or 1.
23323 2016-10-03  Pádraig Brady  <P@draigBrady.com>
23325         quotearg: minimize shell quoting using double quotes
23326         * lib/quotearg.c (quotearg_buffer_restyled): If an ASCII single
23327         quote in encountered then use double quotes (c style quoting)
23328         when possible, as it simplifies the quoting.
23329         * tests/test-quotearg-simple.c: Add test cases.
23330         * tests/test-quotearg.h (use_quotearg_buffer): Adjust to account
23331         for the fact we now may write beyond the returned length.
23333 2016-10-02  Jim Meyering  <meyering@fb.com>
23335         vasnprintf.c: avoid spurious warning from GCC 7
23336         The presence of cpp directives renders this "FALLTHROUGH" comment
23337         ineffective, so does not suppress the -Wimplicit-fallthrough warning
23338         from GCC 7 built from git on 2016-10-02.
23339         * lib/vasnprintf.c (VASNPRINTF): Move comment down past two cpp
23340         directives, so that it takes effect once again.  This is clearly
23341         not a proper change, and I will revert it once this bug is fixed:
23342         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77817
23344 2016-10-01  Jim Meyering  <meyering@fb.com>
23346         getprogname: correct the test for a __progname variable
23347         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): Use AC_CACHE_CHECK
23348         and AC_LINK_IFELSE to check for a global __progname.  If found,
23349         define HAVE_VAR___PROGNAME.
23350         * lib/getprogname.c (getprogname): Reflect the new name of the
23351         feature- checked preprocessor symbol:
23352         s/HAVE_DECL___PROGNAME/HAVE_VAR___PROGNAME/
23354 2016-09-28  Jim Meyering  <meyering@fb.com>
23356         u8-uctomb-aux.c: build: placate GCC 7's new -Wimplicit-fallthrough
23357         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Mark each end of
23358         fall-through case with a /* fallthrough */ comment.
23360         dfa: build: avoid warning from GCC 7's new -Wimplicit-fallthrough
23361         * lib/dfa.c (dfassbuild): Mark the end of this case with a
23362         /* fallthrough */ comment.
23364         getprogname: avoid __progname vs program_invocation_short_name pitfall
23365         I.e., don't let the OpenBSD 5.1 fix induce failure when using newer
23366         glibc.  Would have caused failure with Fedora 25's glibc-2.24-3, but
23367         not with Fedora 24's glibc-2.23.1-10.
23368         * lib/getprogname.c (__progname): Move this declaration down...
23369         (getprogname): ... into the #elif block where used, and make it
23370         explicitly "extern".
23372         getprogname: port to OpenBSD 5.1
23373         * lib/getprogname.c (__progname) [HAVE_DECL___PROGNAME]: Declare.
23374         (getprogname) [HAVE_DECL___PROGNAME]: Return __progname or "?".
23375         * modules/getprogname (configure.ac): Move most of this code...
23376         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): ... to this function,
23377         increment serial number, and add a test for __progname.
23378         https://bugs.gnu.org/24562
23379         Reported by Nelson H. F. Beebe.
23381 2016-09-24  Paul Eggert  <eggert@cs.ucla.edu>
23383         sched: port to GCC 6.2.1 on macOS Sierra
23384         Problem reported by Denis Davydov in:
23385         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00056.html
23386         * lib/sched.in.h [HAVE_SYS_CDEFS_H]:
23387         Include <sys/cdefs.h> before <sched.h>.
23388         * m4/nproc.m4 (gl_PREREQ_NPROC): Include errno.h before sched.h,
23389         so that we needn’t worry about the sched.h include bug here.
23390         * m4/sched_h.m4 (gl_SCHED_H): Check for sys/cdefs.h,
23391         and include it before <sched.h> if it exists, when
23392         checking for <sched.h>.
23394         tests/init.sh: port Alpine fix to AIX 7.1
23395         * tests/init.sh (compare_): When attempting to use diff -U3,
23396         prefer diff -u to -U3 to -c to plain diff.  Do not insist on
23397         diff -u not outputting a space after leading '+', as the users
23398         of 'compare' should not be that picky about its output format.
23399         In the AIX 7.1 case, return with diff exit status (or with 2 if
23400         trouble), instead of some random nonzero exit status.
23401         * tests/test-init.sh (test_compare): Remove space after leading
23402         '+', so that AIX 7.1 'diff' passes the test.
23404 2016-09-22  Paul Eggert  <eggert@cs.ucla.edu>
23406         nl_langinfo: pacify GCC
23407         * lib/nl_langinfo.c (ctype_codeset): Remove unused local.
23408         (rpl_nl_langinfo): Cast string literals to char *, to pacify GCC.
23410         stdint: also set GL_GENERATE_LIMITS_H
23411         Problem reported by Jim Meyering in:
23412         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00052.html
23413         * m4/stdint.m4 (gl_STDINT_H): Also redo the AM_CONDITIONAL.
23415         limits-h, stdint: Don't assume extensions, fix typo
23416         * m4/limits-h.m4 (gl_LIMITS_H):
23417         * m4/stdint.m4 (gl_STDINT_H):
23418         Don't assume AC_USE_SYSTEM_EXTENSIONS.
23419         * m4/stdint.m4 (gl_STDINT_H): Fix typo in setting of LIMITS_H,
23420         reported by Jim Meyering in:
23421         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00050.html
23423 2016-09-21  Jim Meyering  <meyering@fb.com>
23425         getprogname: port to AIX
23426         * lib/getprogname.c (getprogname) [_AIX]: Use getpid, getprocs64
23427         and strdup to obtain a short program name string.  Using code from
23428         Bruno Haible and an idea from Bastien ROUCARIÈS, in
23429         https://lists.gnu.org/r/bug-gnulib/2010-12/msg00249.html
23430         Assaf Gordon reported that this new file would fail to compile on
23431         AIX-7.1 32bit.
23433 2016-09-16  Paul Eggert  <eggert@cs.ucla.edu>
23435         extensions: fix typo in comment
23436         * m4/extensions.m4: Sync from Autoconf master.
23438         stdint: support new _WIDTH macros
23439         * doc/posix-headers/stdint.texi: Document this.
23440         * lib/stdint.in.h: Add support for INTMAX_WIDTH. etc.
23441         * m4/stdint.m4 (gl_STDINT_H): Require gl_LIMITS_H.  Check for
23442         support for INTMAX_WIDTH, etc. as well as for support for just C99.
23443         * modules/stdint (Depends-on): Add limits-h.
23444         (Makefile.am): Substitute HAVE_C99_STDINT_H.
23445         * modules/stdint-tests (Depends-on): Add extensions, so that
23446         INTMAX_MAX etc. are defined.
23447         * tests/test-stdint.c: Verify the new macros.
23449         limits-h: new module
23450         This adds ISO/IEC TS 18661-1:2014 support to limits.h.
23451         * MODULES.html.sh: Add limits-h,and move size_max to stdint section.
23452         * doc/posix-headers/limits.texi: Document new module.
23453         * lib/limits.in.h, m4/limits-h.m4, modules/limits-h:
23454         * modules/limit-h-tests, tests/test-limits-h.c: New files.
23456         stdio: don't redefine __USE_MINGW_ANSI_STDIO
23457         * m4/stdio_h.m4 (gl_STDIO_H): Don't define __USE_MINGW_ANSI_STDIO
23458         if it is already defined.  Apparently GNU Emacs relies on this.  See:
23459         http://lists.gnu.org/r/emacs-devel/2016-09/msg00416.html
23461 2016-09-15  Eric Blake  <eblake@redhat.com>
23463         sys_types: avoid glibc 2.25 warnings about major()
23464         * m4/sys_types_h.m4 (AC_HEADER_MAJOR): Replace broken version in
23465         older autoconf.
23466         * doc/posix-headers/sys_types.texi (sys/types.h): Document fix.
23467         * doc/glibc-functions/gnu_dev_major.texi (gnu_dev_major): Likewise.
23468         * doc/glibc-functions/gnu_dev_makedev.texi (gnu_dev_makedev): Likewise.
23469         * doc/glibc-functions/gnu_dev_minor.texi (gnu_dev_minor): Likewise.
23471         mountlist: include sysmacros.h for glibc
23472         * m4/mountlist.m4 (gl_PREREQ_MOUTLIST_EXTRA): Include
23473         AC_HEADER_MAJOR.
23474         * lib/mountlist.c (includes): Use correct headers.
23476 2016-09-15  Paul Eggert  <eggert@cs.ucla.edu>
23478         extensions: port to more ISO C TSes
23479         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Sync from Autoconf
23480         master, to add support for more recent ISO C TRs and TSes.
23482 2016-09-13  Paul Eggert  <eggert@cs.ucla.edu>
23484         intprops: new macro TYPE_WIDTH
23485         * lib/intprops.h (TYPE_WIDTH): New macro.
23486         (TYPE_MAXIMUM, _GL_SIGNED_INT_MAXIMUM, INT_STRLEN_BOUND):
23487         * lib/ftoastr.h (_GL_FLOAT_DIG_BITS_BOUND):
23488         * lib/parse-datetime.y (parse_datetime2):
23489         Use it.
23491         extensions: port to recent ISO C TRs
23492         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
23493         Sync from Autoconf master, to add support for recent ISO C TRs.
23494         * m4/stdio_h.m4 (gl_STDIO_H): Define __USE_MINGW_ANSI_STDIO here,
23495         since AC_USE_SYSTEM_EXTENSIONS no longer does that as
23496         the MinGW option is not an extension.
23498 2016-09-11  Paul Eggert  <eggert@cs.ucla.edu>
23500         dfa: port to Solaris 9
23501         Problems reported by Tom G. Christensen in:
23502         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00031.html
23503         * modules/dfa (Depends-on): Add isblank.
23504         * modules/dfa-tests (dfa_match_aux_LDADD):
23505         Rename from test_stat_LDADD, to fix typo.
23506         * tests/dfa-match.sh: Don't require 'timeout'; use it if available.
23508 2016-09-10  Jim Meyering  <meyering@fb.com>
23510         strverscmp: avoid link failure on OS X
23511         * lib/strverscmp.c [!weak_alias]: Define __strverscmp to strverscmp.
23512         Reported by Assaf Gordon in https://bugs.gnu.org/24256#26
23514 2016-08-16  Jim Meyering  <meyering@fb.com>
23516         dfa: new module, importing grep's DFA matcher
23517         Since grep's DFA matcher is now being used by two gnulib-enabled
23518         projects, grep and sed, it makes sense to version-control its
23519         sources and unit tests in one place: here.
23520         * modules/dfa: New module.
23521         * modules/dfa-tests: New file.
23522         * lib/dfa.c: New file, from grep.
23523         * lib/dfa.h: Likewise.
23524         * lib/localeinfo.c: Likewise.
23525         * lib/localeinfo.h: Likewise.
23526         * tests/dfa-match-aux.c: Likewise.
23527         * tests/dfa-invalid-char-class.sh: Likewise.
23528         * tests/dfa-match.sh: Likewise, with minor changes.
23529         * MODULES.html.sh (Misc): Add "dfa" to this list.
23531 2016-09-09  Jim Meyering  <meyering@fb.com>
23533         getprogname-tests: don't depend on assert-h
23534         * modules/getprogname-tests (Depends-on): Remove assert-h.
23535         It was not needed, and in fact would cause build failure for
23536         coreutils on some systems.  Reported by Assaf Gordon in https:
23537         //lists.gnu.org/r/coreutils/2016-09/msg00016.html
23539 2016-09-07  Jim Meyering  <meyering@fb.com>
23541         getprogname-tests: work also when EXEEXT is nonempty
23542         * modules/getprogname-tests (Makefile.am): Define EXEEXT.
23543         * tests/test-getprogname.c (main): Use it.
23544         Suggested by Gisle Vanem.
23546 2016-09-07  Gisle Vanem  <gvanem@yahoo.no>
23548         getprogname: fix errors in previous change
23549         * lib/getprogname.c (getprogname) [HAVE_GETEXECNAME]:
23550         s/program_invocation_name/base/
23551         [HAVE_DECL___ARGV]: Handle NULL __argv or __argv[0].
23553 2016-09-08  Pádraig Brady  <P@draigBrady.com>
23555         parse-datetime: restrict debug output to input string
23556         * lib/parse-datetime.y (parse_datetime2): If we parse
23557         all of the input but determine it's invalid, ensure
23558         we don't output the now invalid input pointer.
23559         This issue was seen with `date -d 'now +1'`.
23561 2016-09-07  Paul Eggert  <eggert@cs.ucla.edu>
23563         flexmember: new macro FLEXALIGNOF
23564         * lib/flexmember.h: Include <stddef.h>, for offsetof.
23565         (FLEXALIGNOF): Rename from _GL_XALLOC_ALIGNOF, as Emacs can use
23566         this macro.  Update comments.
23568 2016-09-07  Jim Meyering  <meyering@fb.com>
23570         getprogname: port to systems with __argv (mingw, msvc)
23571         * lib/getprogname.c (getprogname): Include "dirname.h" and use
23572         last_component: more general than open coding it with hard-coded "/".
23573         * lib/getprogname.h (getprogname): Prefer "char const *" consistently.
23574         * modules/getprogname (Depends-on): Add dirname-lgpl.
23575         (configure.ac): Check for __argv in <stdlib.h>.
23576         * modules/getprogname-tests: New file.
23577         * tests/test-getprogname.c: New file.
23578         Suggested by Gisle Vanem in
23579         https://lists.gnu.org/r/bug-gnulib/2016-09/msg00014.html
23581 2016-09-07  Paul Eggert  <eggert@cs.ucla.edu>
23583         flexmember: port better to GCC + valgrind
23584         With a char[] flexible array member in a struct with nontrivial
23585         alignment, GCC-generated code can access past the end of the
23586         array, because GCC assumes there are padding bytes to get the
23587         struct aligned.  So the common idiom of malloc (offsetof (struct
23588         s, m), n) does not properly allocate an n-byte trailing member, as
23589         malloc’s argument should be the next multiple of alignof (struct s).
23590         See GCC Bug#66661: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66661
23591         Although C11 apparently permits this GCC optimization (i.e., there
23592         was a bug in Gnulib not in GCC), possibly this is a defect in C11.
23593         See the thread containing:
23594         https://gcc.gnu.org/ml/gcc-patches/2016-09/msg00317.html
23595         * lib/flexmember.h: New file.
23596         * lib/fnmatch.c, lib/fts.c, lib/glob.c, lib/idcache.c:
23597         * lib/localename.c, lib/time_rz.c:
23598         Include flexmember.h.
23599         * lib/fnmatch_loop.c (struct patternlist):
23600         * lib/localename.c (struct hash_node):
23601         Use FLEXIBLE_ARRAY_MEMBER.
23602         * lib/fnmatch_loop.c (EXT):
23603         * lib/fts.c (fts_alloc):
23604         * lib/glob.c (glob_in_dir):
23605         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
23606         * lib/localename.c (gl_lock_define_initialized):
23607         * lib/time_rz.c (tzalloc):
23608         Use FLEXSIZEOF instead of offsetof.
23609         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
23610         Check that the size of the struct can be taken.
23611         * modules/flexmember (Files): Add lib/flexmember.h.
23612         * modules/fnmatch, modules/glob, modules/localename (Depends-on):
23613         Add flexmember.
23615 2016-09-06  Paul Eggert  <eggert@cs.ucla.edu>
23617         getprogname: port to Solaris 10
23618         * lib/getprogname.c: Include stdlib.h, for getexecname decl.
23619         (getprogname) [HAVE_GETEXECNAME]: Use that, for Solaris 10.
23620         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): Check for getexecname.
23622         stdalign: correct mistake in alignof doc
23623         Problem reported by Joseph Myers in:
23624         https://gcc.gnu.org/ml/gcc-patches/2016-09/msg00340.html
23625         * doc/posix-headers/stdalign.texi: Do not imply that C11 prohibits
23626         alignof(S) where S is a structure containing a flexible array
23627         member.  The Gnulib substitute does not support this, but C11 does.
23629 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
23631         main.mk: remove sc_program_name, since there is no more need to
23632         use set_program_name in tools (getprogname is enough for most
23633         of the cases).
23634         * cfg.mk (local-checks-to-skip): Remove sc_program_name.
23635         * top/maint.mk (sc_program_name): Remove.
23637 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
23639         Port tests away from progname, since modules that need the
23640         program name already depend on getprogname.
23641         * modules/acl-tests (Depends-on): Remove progname.
23642         * modules/argmatch (Depends-on): Likewise.
23643         * modules/argmatch-tests (Depends-on): Likewise.
23644         * modules/argp-tests (Depends-on): Likewise.
23645         * modules/argp-version-etc-tests (Depends-on): Likewise.
23646         * modules/array-list-tests (Depends-on): Likewise.
23647         * modules/array-oset-tests (Depends-on): Likewise.
23648         * modules/avltree-list-tests (Depends-on): Likewise.
23649         * modules/avltree-oset-tests (Depends-on): Likewise.
23650         * modules/avltreehash-list-tests (Depends-on): Likewise.
23651         * modules/carray-list-tests (Depends-on): Likewise.
23652         * modules/copy-file-tests (Depends-on): Likewise.
23653         * modules/exclude-tests (Depends-on): Likewise.
23654         * modules/fchownat-tests (Depends-on): Likewise.
23655         * modules/fdopendir-tests (Depends-on): Likewise.
23656         * modules/filenamecat-tests (Depends-on): Likewise.
23657         * modules/fstatat-tests (Depends-on): Likewise.
23658         * modules/fstrcmp-tests (Depends-on): Likewise.
23659         * modules/linked-list-tests (Depends-on): Likewise.
23660         * modules/linkedhash-list-tests (Depends-on): Likewise.
23661         * modules/mkdirat-tests (Depends-on): Likewise.
23662         * modules/nonblocking-pipe-tests (Depends-on): Likewise.
23663         * modules/nonblocking-socket-tests (Depends-on): Likewise.
23664         * modules/obstack-printf-tests (Depends-on): Likewise.
23665         * modules/openat-tests (Depends-on): Likewise.
23666         * modules/parse-datetime-tests (Depends-on): Likewise.
23667         * modules/pipe-filter-gi-tests (Depends-on): Likewise.
23668         * modules/pipe-filter-ii-tests (Depends-on): Likewise.
23669         * modules/quotearg-simple-tests (Depends-on): Likewise.
23670         * modules/quotearg-tests (Depends-on): Likewise.
23671         * modules/rbtree-list-tests (Depends-on): Likewise.
23672         * modules/rbtree-oset-tests (Depends-on): Likewise.
23673         * modules/rbtreehash-list-tests (Depends-on): Likewise.
23674         * modules/spawn-pipe-tests (Depends-on): Likewise.
23675         * modules/system-quote-tests (Depends-on): Likewise.
23676         * modules/uniname/uniname-tests (Depends-on): Likewise.
23677         * modules/uninorm/nfc-tests (Depends-on): Likewise.
23678         * modules/uninorm/nfd-tests (Depends-on): Likewise.
23679         * modules/uninorm/nfkc-tests (Depends-on): Likewise.
23680         * modules/uninorm/nfkd-tests (Depends-on): Likewise.
23681         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Likewise.
23682         * modules/unistdio/u16-vsprintf-tests (Depends-on): Likewise.
23683         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Likewise.
23684         * modules/unistdio/u32-vsprintf-tests (Depends-on): Likewise.
23685         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Likewise.
23686         * modules/unistdio/u8-vsprintf-tests (Depends-on): Likewise.
23687         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Likewise.
23688         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Likewise.
23689         * modules/unlinkat-tests (Depends-on): Likewise.
23690         * modules/version-etc-tests (Depends-on): Likewise.
23691         * modules/xalloc-die-tests (Depends-on): Likewise.
23692         * modules/xmemdup0-tests (Depends-on): Likewise.
23693         * modules/xprintf-posix-tests (Depends-on): Likewise.
23694         * modules/xvasprintf-tests (Depends-on): Likewise.
23695         * tests/test-argmatch.c: Do not include progname.h.
23696         (main) Stop calling set_program_name.
23697         * tests/test-argp-version-etc.c: Likewise.
23698         * tests/test-argp.c: Likewise.
23699         * tests/test-argv-iter.c: Likewise.
23700         * tests/test-array_list.c: Likewise.
23701         * tests/test-array_oset.c: Likewise.
23702         * tests/test-avltree_list.c: Likewise.
23703         * tests/test-avltree_oset.c: Likewise.
23704         * tests/test-avltreehash_list.c: Likewise.
23705         * tests/test-carray_list.c: Likewise.
23706         * tests/test-copy-acl.c: Likewise.
23707         * tests/test-copy-file.c: Likewise.
23708         * tests/test-exclude.c: Likewise.
23709         * tests/test-fchownat.c: Likewise.
23710         * tests/test-fdopendir.c: Likewise.
23711         * tests/test-filenamecat.c: Likewise.
23712         * tests/test-fstatat.c: Likewise.
23713         * tests/test-fstrcmp.c: Likewise.
23714         * tests/test-linked_list.c: Likewise.
23715         * tests/test-linkedhash_list.c: Likewise.
23716         * tests/test-mkdirat.c: Likewise.
23717         * tests/test-nonblocking-pipe-main.c: Likewise.
23718         * tests/test-nonblocking-socket-main.c: Likewise.
23719         * tests/test-obstack-printf.c: Likewise.
23720         * tests/test-openat.c: Likewise.
23721         * tests/test-parse-datetime.c: Likewise.
23722         * tests/test-pipe-filter-gi1.c: Likewise.
23723         * tests/test-pipe-filter-gi2-main.c: Likewise.
23724         * tests/test-pipe-filter-ii1.c: Likewise.
23725         * tests/test-pipe-filter-ii2-main.c: Likewise.
23726         * tests/test-quotearg-simple.c: Likewise.
23727         * tests/test-quotearg.c: Likewise.
23728         * tests/test-rbtree_list.c: Likewise.
23729         * tests/test-rbtree_oset.c: Likewise.
23730         * tests/test-rbtreehash_list.c: Likewise.
23731         * tests/test-sameacls.c: Likewise.
23732         * tests/test-set-mode-acl.c: Likewise.
23733         * tests/test-spawn-pipe-main.c: Likewise.
23734         * tests/test-system-quote-main.c: Likewise.
23735         * tests/test-unlinkat.c: Likewise.
23736         * tests/test-version-etc.c: Likewise.
23737         * tests/test-xalloc-die.c: Likewise.
23738         * tests/test-xfprintf-posix.c: Likewise.
23739         * tests/test-xmemdup0.c: Likewise.
23740         * tests/test-xprintf-posix.c: Likewise.
23741         * tests/test-xvasprintf.c: Likewise.
23742         * tests/uniname/test-uninames.c: Likewise.
23743         * tests/uninorm/test-u32-nfc-big.c: Likewise.
23744         * tests/uninorm/test-u32-nfd-big.c: Likewise.
23745         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
23746         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
23747         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
23748         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
23749         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
23750         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
23751         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
23752         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
23753         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
23754         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
23755         * tests/test-c-stack.c: (program_name): Do not define.
23756         (main): Do not set program_name.
23757         * tests/test-closein.c: Likewise.
23758         * tests/test-xstrtol.c: Likewise.
23759         * tests/test-yesno.c: Likewise.
23761 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
23763         Port modules to use getprogname explicitly, instead of requiring
23764         progname to be used (or program_name to be provided).
23765         * lib/argmatch.c: Do not include progname.h.
23766         [TEST] (program_name): Do not define.
23767         [TEST] (main): Call getprogname instead of using program_name.
23768         * lib/c-stack.c: Do not include progname.h.
23769         (program_name): Do not define.
23770         (die): Call getprogname instead of using program_name.
23771         * lib/chdir-long.c: Do not include progname.h.
23772         [TEST_CHDIR] (main): Do not set program_name.
23773         * lib/error.c [!_LIBC]: Include progname.h.
23774         [!_LIBC] (program_name): Define using getprogname.
23775         * lib/euidaccess.c: Do not include progname.h.
23776         [TEST] (main): Do not set program_name.
23777         * lib/git-merge-changelog.c: Include getprogname.h instead of
23778         progname.h.
23779         (usage): Call getprogname instead of using program_name.
23780         (main): Likewise.  Stop calling set_program_name.
23781         * lib/group-member.c: Do not include progname.h.
23782         [TEST] (main): Do not set program_name.
23783         * modules/argmatch (Depends-on): Add getprogname.
23784         * modules/c-stack (Depends-on): Likewise.
23785         * modules/error (Depends-on): Likewise.
23786         * modules/git-merge-changelog (Depends-on): Likewise.
23787         Also remove progname.
23789 2016-09-05  Pino Toscano  <ptoscano@redhat.com>
23791         * NEWS: Document the deprecation of the 'progname' module.
23793 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
23795         getprogname: new module
23796         This provides a LGPL module for getting the name of the current
23797         program, using the same API found on *BSD systems.
23798         * lib/getprogname.c, lib/getprogname.h, m4/getprogname.m4:
23799         * modules/getprogname: New files.
23800         * MODULES.html.sh (Misc): Add getprogname.
23802 2016-09-02  Jim Meyering  <meyering@fb.com>
23804         manywarnings: add -fno-common
23805         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -fno-common
23806         to the list.  Quoting the manual, "Compiling with -fno-common is
23807         useful on targets for which it provides better performance, or if
23808         you wish to verify that the program will work on other systems that
23809         always treat uninitialized variable declarations this way [putting
23810         it in the data section]."  If diffutils had been using this sooner,
23811         it would have prevented this duplicate declaration issue:
23812         http://git.sv.gnu.org/cgit/diffutils.git/commit/?id=v3.4-10-gc2dc91f
23814 2016-08-31  Simon Josefsson  <simon@josefsson.org>
23816         parse-datetime: Fix typo.
23817         * lib/parse-datetime.y (parse_datetime2): Fix typo.
23819 2016-08-30  Paul Eggert  <eggert@cs.ucla.edu>
23821         intprops: tune INT_NEGATE_OVERFLOW for GCC 5 and 6
23822         * lib/intprops.h (INT_NEGATE_OVERFLOW): Tune for platforms like
23823         GCC 5 and 6 that have __builtin_sub_overflow but not
23824         __builtin_sub_overflow_p.  With the recent changes, these
23825         platforms are a tiny bit faster with the INT_NEGATE_RANGE_OVERFLOW
23826         implementation than with INT_SUBTRACT_OVERFLOW implementation,
23827         since the former needs just one runtime comparison whereas the
23828         latter needs two.
23830         strverscmp: sync with glibc
23831         Although this doesn't exactly synchronize with glibc
23832         byte-for-byte, it makes the code behave the same as glibc.
23833         * lib/strverscmp.c (S_I, S_F, S_Z): Now masks, not powers of 2.
23834         (ISDIGIT): Remove, as glibc is sticking with isdigit, and the
23835         difference shouldn't matter in practical use.  All uses changed
23836         back to isdigit.
23837         (__strverscmp, strverscmp): Use new glibc method for weak aliases.
23838         (next_state): Now unsigned char array; redo elements.
23839         (result_type): Now signed char array; redo elements.
23840         (__strverscmp): Fix glibc bug 9913 by using new states.
23841         * tests/test-strverscmp.c (main): Test glibc bug 9913.
23843 2016-08-29  Jim Meyering  <meyering@fb.com>
23845         xalloc-oversized.h: port __builtin_mul_overflow change to GCC 6.2.0
23846         * lib/xalloc-oversized.h: Port this change to GCC 6.2.0, too,
23847         similarly to how it was done to intprops.h.
23849 2016-08-29  Paul Eggert  <eggert@cs.ucla.edu>
23851         intprops.h: port recent changes to GCC 6.2.0
23852         * lib/intprops.h (__has_builtin): Move earlier.
23853         (_GL_HAS_BUILTIN_OVERFLOW): Rename from
23854         _GL_HAS_BUILTIN_OVERFLOW_WITH_NULL and don't worry about whether
23855         the last argument can be null.  All uses changed.
23856         (_GL_HAS_BUILTIN_OVERFLOW_P): Also test __has_builtin.
23857         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
23858         Don't try to use 3rd arg null, as this doesn't work on GCC 6.2.0
23859         and it's not clear which GCC versions it works for.
23860         (_GL_INT_OP_WRAPV): Use _GL_HAS_BUILTIN_OVERFLOW instead of
23861         its definiens.
23863         intprops.h: use __typeof__ with GCC 7
23864         * lib/intprops.h (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW)
23865         (_GL_MULTIPLY_OVERFLOW): Use __typeof__ as in the GCC manual.
23866         This avoids computing the expression's value (which might overflow!).
23868 2016-08-29  Jim Meyering  <meyering@fb.com>
23870         intprops.h, xalloc-oversized.h: work with gcc 7
23871         In gcc 6, __builtin_add_overflow, __builtin_sub_overflow and
23872         __builtin_mul_overflow each accept a NULL pointer as the third
23873         argument.  However in gcc 7, that is no longer accepted.
23874         Instead, one must use the "_p"-suffixed names, with which, the
23875         third parameter is no longer a pointer.
23876         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_WITH_NULL): Correct
23877         the definition: not true for gcc 7 and subsequent.
23878         (_GL_HAS_BUILTIN_OVERFLOW_P): Define.
23879         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
23880         Provide new definitions for gcc 7 and subsequent.
23881         * lib/xalloc-oversized.h (xalloc_oversized): Provide a definition
23882         that works with gcc-7.
23884         intprops.h: fix missing-backslash problems
23885         * lib/intprops.h (_GL_ADD_OVERFLOW): Add backslash.
23886         (_GL_SUBTRACT_OVERFLOW,_GL_MULTIPLY_OVERFLOW): Likewise.
23888 2016-08-24  Paul Eggert  <eggert@cs.ucla.edu>
23890         intprops: fix paren typo on old platforms
23891         Problem reported by John E. Malmberg in: https://bugs.gnu.org/24300#13
23892         * lib/intprops.h (_GL_INT_OP_WRAPV_LONGISH)
23893         [__GNUC__ < 5 && !__has_builtin (__builtin_add_overflow)
23894         && (__STDC_VERSION__ < 201112 || _GL__GENERIC_BOGUS)
23895         && !defined LLONG_MAX]:
23896         Remove stray paren.
23898         intprops: port to OpenVMS
23899         Problem reported by John E. Malmberg in: https://bugs.gnu.org/24300
23900         * doc/posix-headers/limits.texi: Document the problem.
23901         * lib/intprops.h (LLONG_MAX, LLONG_MIN) [__INT64_MAX]:
23902         Define if not already defined.
23904 2016-08-19  Assaf Gordon  <assafgordon@gmail.com>
23906         parse-datetime: improve debug implementation
23907         Follow-up to commit 12ad79069 ("add optional debug printing").
23908         Improve parse-datetime's debug implementation: remove macros,
23909         replace global debug flag variable with a function parameter,
23910         use nstrftime for formatting.
23911         See: https://lists.gnu.org/r/bug-gnulib/2016-08/msg00021.html
23912         * lib/parse-datetime.h: (parse_datetime_debug): Remove global extern.
23913         (parse_datetime2): New function, accepts 'flags' parameter, supporting
23914         debug flag. Existing interface 'parse_datetime' left unmodified.
23915         * lib/parse-datetime.c: (parse_datetime_debug): Remove global variable.
23916         (struct parser_control): add 'parse_datetime_debug' member variable.
23917         (parse_datetime): Call new function 'parse_datetime2' without debug.
23918         (parse_datetime2): Adapted from previous 'parse_datetime', initialize
23919         pc.parse_datetime_debug variable as needed.
23920         (to_year): Accept new flags parameter, instead of using global variable.
23921         (debug_print_current_time,debug_print_relative_time,debug_mktime_not_ok):
23922         use struct 'debug' variable instead of global variable.
23923         (DEBUG,DEBUG_PRINT_CURRENT_TIME,DEBUG_PRINT_RELATIVE_TIME,
23924         DEBUG_MKTIME_NOT_OK,PROGRESS,PROGRESS0): Remove macros. Call
23925         correspnding functions directly instead of using macros.
23926         * modules/parse-datetime: Add gnulib's strftime module.
23928 2016-08-19  Daniel Richard G.  <skunk@iSKUNK.ORG>
23930         c-strcase-tests: port to EBCDIC
23931         * tests/test-c-strncasecmp.c: Allow two c_strncasecmp calls
23932         which assume ASCII encoding semantics to run only in ASCII
23933         mode, as they fail in EBCDIC.
23935         sigpipe-tests: fix typo
23936         * tests/test-sigpipe.sh: C, not B.
23938 2016-08-18  Paul Eggert  <eggert@cs.ucla.edu>
23940         canonicalize-lgpl: fix errno after malloca fails
23941         This fixes a typo I recently introduced.  Suggested by Bruno Haible in:
23942         http://lists.gnu.org/r/bug-gnulib/2016-08/msg00039.html
23943         * lib/canonicalize-lgpl.c (__realpath):
23944         Don't assume malloca sets errno on failure.
23946 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
23948         strtod: port errno handling to z/OS
23949         * lib/strtod.c (strtod): Save and restore errno more reliably.
23951 2016-08-17  Daniel Richard G.  <skunk@iSKUNK.ORG>
23953         strtod: port to z/OS
23954         * lib/strtod.c (strtod): Address a couple quirks in the z/OS
23955         implementation.
23957 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
23959         strtod: port to z/OS
23960         * lib/strtod.c (strtod): Address a couple quirks in the z/OS
23961         implementation.
23963         regex, string: rename to avoid '__string'
23964         * lib/regex.h, lib/string.in.h: Do not use the identifier
23965         '__string', as it is effectively reserved by string.h on z/OS.
23967         c-strcase-tests, wcwidth-tests: depend on c-ctype
23968         * modules/c-strcase-tests, modules/wcwidth-tests (Depends-on):
23969         Add c-ctype.
23971 2016-08-17  Daniel Richard G.  <skunk@iSKUNK.ORG>
23973         thread: port to z/OS
23974         * lib/glthread/thread.c, lib/glthread/thread.h:
23975         Rudimentary gl_thread support for z/OS.
23977         maint: port tests to z/OS errno behavior
23978         * tests/test-nonblocking-reader.h:
23979         * tests/test-nonblocking-writer.h:
23980         Accommodate z/OS errno code preferences. (I believe this should
23981         still be within spec; IBM is good at following the letter if not
23982         the spirit of such things.)
23984         maint: preprocessor changes to support z/OS
23985         * lib/alloca.in.h, lib/fnmatch.c, lib/get-rusage-as.c:
23986         * lib/glob.c, lib/math.in.h, lib/ptsname_r.c:
23987         * tests/infinity.h, tests/nan.h, tests/test-canonicalize-lgpl.c:
23988         * tests/test-nonblocking-pipe.h:
23990         fclose, strstr-simple, wchar: port to z/OS
23991         * m4/fclose.m4, m4/strstr.m4, m4/wchar_h.m4:
23992         Changes to the Autoconf M4 code to support z/OS.  Note that
23993         fclose() is broken in a different way on z/OS than it is on other
23994         systems, thus the special-case in fclose.m4.
23996         iconv_open-utf-tests, iconv-tests: port to EBCDIC
23997         * tests/test-iconv-utf.c, tests/test-iconv.c:
23998         Added appropriately conditional #pragmas so that the test strings
23999         in test-iconv-utf.c are correctly interpreted in ASCII instead of
24000         EBCDIC (i.e. 'J' == 0x4A and not 0xD1). This issue could be
24001         addressed in a more portable way by simply rewriting all the ASCII
24002         literal characters as octal escapes, but then you would lose the
24003         partial readability that the strings have now. Also, iconv_open()
24004         on z/OS does not recognize "ISO-8859-1", but "ISO8859-1" works.
24006         c-strcase-tests, wcwidth-tests: port to EBCDIC
24007         * tests/test-c-strcasecmp.c: Include c-ctype.h.
24008         (main) [!C_CTYPE_ASCII]: Skip tests that assume ASCII.
24009         * tests/test-wcwidth.c: Likewise.
24011 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
24013         stdbool: don't require _Bool for C++
24014         Problem reported by David Seifert in:
24015         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00005.html
24016         * NEWS, doc/posix-headers/stdbool.texi (stdbool.h): Document this.
24017         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Make the check
24018         more-forgiving for C++, in that it requires only 'bool'.  Be a bit
24019         stricter about checking that bool and _Bool are compatible in C.
24021 2016-08-16  Paul Eggert  <eggert@cs.ucla.edu>
24023         getdelim: remove dependency on realloc-posix
24024         * lib/canonicalize-lgpl.c (alloc_failed)
24025         [!FUNC_REALPATH_WORKS || defined _LIBC]: New function,
24026         (__realpath) [!FUNC_REALPATH_WORKS || defined _LIBC]: Use it.
24027         Use __set_errno where needed, for consistency.
24028         * lib/getdelim.c (alloc_failed): New function.
24029         (getdelim): Use it.
24031 2016-08-09  Assaf Gordon  <assafgordon@gmail.com>
24033         parse-datetime: add optional debug printing
24034         Print parsing information, warnings, and errors to stderr.
24035         * lib/parse-datetime.h (parse_datetimte_debug): New global variable.
24036         * lib/parse-datetime.y:
24037         (DEBUG_*):  Macros calling debug functions if debugging is enabled.
24038         (PROGRESS*): Same as DEBUG, for progress reporting.
24039         (dbg_printf): Print message to stderr, with 'date' prefix.
24040         (struct parser_control): Add 'debug_*_seen' variables.
24041         (str_days): Converts day ordinal/number to string (e.g. 'last wed').
24042         (debug_print_current_time, debug_print_relateive_time): Prints the
24043         current/relative date/time value of parser_control.
24044         (YACC parser syntax): Print parsed parts with DEBUG_* macros.
24045         (to_year): Warn about 2-digit year parsing.
24046         (yylex):   Warn about unrecognized words.
24047         (get_effective_timezone): Returns current timezone in minutes.
24048         (debug_strf{time,date,datetime}): Convert 'struct tm' to string as
24049         clearly and unambigiously as possible.
24050         (debug_mktime_not_ok): Print detailed information about failed
24051         date/time values.
24052         (parse_datetime): Add DEBUG messages for failures, warnings. Add
24053         PROGRESS messages for status messages.
24054         * modules/parse-datetime: Add 'timegm', 'gettext-h' dependencies.
24056 2016-08-06  Jim Meyering  <meyering@fb.com>
24058         tests/init.sh: exclude dash with bad "local" semantics
24059         * tests/init.sh (gl_shell_test_script_): Add a function to
24060         eliminate a shell like "dash" (unlike bash, zsh) that has
24061         surprising/risky "local var='...'" semantics.  Inspired by
24062         the problem and discussion in https://bugs.gnu.org/24116#11.
24064 2016-08-02  Ján Tomko  <jtomko@redhat.com>
24066         maint.mk: expand the prohibit_doubled_word regex
24067         This check has a static list of words that are checked for
24068         repetitions.  Expand it before running the perl script to
24069         avoid using expensive captures.  This decreases the cost
24070         for libvirt from 1.66s to 0.66s.
24071         * top/maint.mk (prohibit_doubled_word_expanded_): Define.
24072         (sc_prohibit_doubled_word): Use it.
24074 2016-07-26  Ján Tomko  <jtomko@redhat.com>
24076         useless-if-before-free: skip non-matching lines early
24077         * build-aux/useless-if-before-free: First match each line with the
24078         simple/quick /\bif\b/ and reject if there is no match. This often
24079         saves the cost of the much more involved regular expression.
24080         For libvirt, this decreases the cost from 1.44s to 1.02s.
24082 2016-07-26  Ján Tomko  <jtomko@redhat.com>
24084         maint.mk: speed up sc_po_check
24085         sc_po_check would skip files based on their names, or on the
24086         existence of files with derived names. Rewrite it to use perl
24087         instead of shell to make the check faster.
24088         * top/maint.mk (perl_translatable_files_list_): Define.
24089         (sc_po_check): Use it.
24091 2016-07-30  Ján Tomko  <jtomko@redhat.com>
24093         maint.mk: speed up require_config_h_first
24094         Instead of spawning three processes per file,
24095         rewrite the check in perl and run it once for all the files.
24096         * top/maint.mk (perl_config_h_first_): Define.
24097         (sc_require_config_h_first): Use it in place of shell code.
24099 2016-07-26  Ján Tomko  <jtomko@redhat.com>
24101         maint.mk: speed up sc_po_check
24102         sc_po_check would skip files based on their names, or on the
24103         existence of files with derived names. Rewrite it to use perl
24104         instead of shell to make the check faster.
24105         * top/maint.mk (perl_translatable_files_list_): Define.
24106         (sc_po_check): Use it.
24108 2016-07-15  Paul Eggert  <eggert@cs.ucla.edu>
24110         obstack: pacify GCC 6 with -Wnull-dereference
24111         Problem reported by Assaf Gordon in:
24112         http://lists.gnu.org/r/bug-gnulib/2016-07/msg00028.html
24113         * lib/obstack.c, lib/obstack.h (obstack_alloc_failed_handler):
24114         Declare with __attribute_noreturn__.
24115         * lib/obstack.h (__attribute_noreturn__): New macro.
24117 2016-07-13  Eric Blake  <eblake@redhat.com>
24119         doc: mention glibc, OS X, Cygwin [S]SIZE_MAX buglet
24120         * doc/posix-headers/stdint.texi (stdint.h): Document the bugs.
24121         * doc/posix-headers/limits.texi (limits.h): Document the bugs.
24123 2016-07-13  Paul Eggert  <eggert@cs.ucla.edu>
24125         doc: mention glibc SSIZE_MAX buglet
24126         * doc/posix-headers/limits.texi (limits.h): Document the bug.
24128 2016-07-04  Martin Kletzander  <mkletzan@redhat.com>
24130         printf-posix: Fix mingw build
24131         Commit 54615b95ff238e235e806855efc46a9abad09f2e changed the regular
24132         expression for detecting C symbol prefixes but forgot to qoute square
24133         brackets in the command line arguments for grep.  That way when
24134         building with mingw the condition was false although it ought to be
24135         true instead.  In particular scenarios this led to the following
24136         compile error:
24138             Cannot export rpl_printf: symbol not found
24139             Cannot export rpl_scanf: symbol not found
24140             collect2: error: ld returned 1 exit status
24142         Fix this by properly quoting square brackets.
24144 2016-07-03  Paul Eggert  <eggert@cs.ucla.edu>
24146         mktime: call tzset as per POSIX
24147         Problem reported by Ludovic Courtès in:
24148         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00068.html
24149         * lib/mktime.c (mktime) [!_LIBC && HAVE_TZSET]: Call tzset.
24150         * m4/mktime.m4 (gl_FUNC_MKTIME): Check for tzset.
24152 2016-06-26  Pádraig Brady  <P@draigBrady.com>
24154         fts: handle readdir() errors
24155         * lib/fts.c (fts_build): readdir(3) returns NULL when finished,
24156         but also upon error when it will also set errno.  Therefore
24157         flag the error case from readdir().  We treat the case where
24158         no items are read the same as if the dir can't be accessed,
24159         i.e. by setting fts_errno to FTS_DNR.
24161 2016-06-24  Paul Eggert  <eggert@cs.ucla.edu>
24163         intprops: port better to GCC 7
24164         GCC 7 __builtin_add_overflow supports a new usage form, where the
24165         last argument is a null pointer, and which merely returns 1 if an
24166         overflow would occur.  This is a constant expression if all
24167         arguments are constants, and should generate faster code when code
24168         needs to be generated.
24169         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_WITH_NULL): New macro.
24170         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
24171         Use builtin operations if available.
24172         (INT_NEGATE_OVERFLOW): Prefer INT_SUBTRACT_OVERFLOW if builtin
24173         operations are available, as it's almost surely faster.
24175 2016-06-23  Paul Eggert  <eggert@cs.ucla.edu>
24177         intprops-test: port to GCC 6
24178         * tests/test-intprops.c: Ignore -Woverflow if any GCC version,
24179         since the bug is not fixed in GCC 6.1.
24181 2016-06-13  Paul Eggert  <eggert@cs.ucla.edu>
24183         xalloc-oversized: port to GCC 7; fewer warnings
24184         GCC 7 will have a better way to deal with integer overflow.
24185         Plus, fix a warnings problem reported by Tim Ruehsen in:
24186         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00022.html
24187         * lib/xalloc-oversized.h (__xalloc_oversized): New macro.
24188         (xalloc_oversized): Use plain __builtin_mul_overflow if GCC 7 or later.
24189         For GCC 5, use __xalloc_oversized if both args are constants,
24190         or if pedantic.
24192 2016-06-08  Paul Eggert  <eggert@cs.ucla.edu>
24194         regex: port to Sun C
24195         Reported by Daiki Ueno.
24196         * lib/regcomp.c (regcomp, regerror): Use _Restrict_, not
24197         __restrict, in prototype.  This fixes a problem I introduced in
24198         the 2016-02-19 merge from glibc.
24200 2016-05-31  Paul Eggert  <eggert@cs.ucla.edu>
24202         stdbool: Restore __bool_true_false_are_defined check
24203         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL):
24204         __bool_true_false_are_defined is still defined, even with C++11.
24206 2016-05-31  David Seifert  <soap@gentoo.org>  (tiny change)
24208         stdbool: Port AC_CHECK_HEADER_STDBOOL to C++11
24209         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Port to C++11.
24211 2016-05-30  Paul Eggert  <eggert@cs.ucla.edu>
24213         Use GCC_LINT, not lint
24214         FreeBSD and Cygwin #define _Noreturn to empty if 'lint' is defined.
24215         Problem reported by Ken Brown in: http://bugs.gnu.org/23640
24216         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
24217         Document problem with lint and _Noreturn.
24218         * lib/diffseq.h (IF_LINT, IF_LINT2):
24219         * lib/fts.c (sccsid):
24220         * lib/getndelim2.c (IF_LINT):
24221         * lib/gl_anylinked_list2.h (gl_linked_iterator)
24222         (gl_linked_iterator_from_to):
24223         * lib/gl_anytree_list2.h (gl_tree_iterator)
24224         (gl_tree_iterator_from_to):
24225         * lib/gl_anytree_oset.h (gl_tree_iterator):
24226         * lib/gl_array_list.c (gl_array_iterator)
24227         (gl_array_iterator_from_to):
24228         * lib/gl_array_oset.c (gl_array_iterator):
24229         * lib/gl_carray_list.c (gl_carray_iterator)
24230         (gl_carray_iterator_from_to):
24231         * lib/idcache.c:
24232         * lib/inet_ntop.c (IF_LINT):
24233         * lib/regcomp.c (build_charclass_op, create_tree):
24234         * lib/regex_internal.c (re_acquire_state)
24235         (re_acquire_state_context):
24236         * lib/trigl.c (rcsid):
24237         * lib/trim.c (IF_LINT):
24238         * lib/vasnprintf.c (IF_LINT):
24239         * lib/verify.h (assume):
24240         Treat GCC_LINT like lint.
24242 2016-05-29  Bruno Haible  <bruno@clisp.org>
24244         secure_getenv: Port to many more platforms.
24245         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV): Also check for get*id
24246         functions.
24247         * lib/secure_getenv.c (secure_getenv): Add alternate implementations
24248         for non-BSD Unix platforms and for native Windows.
24249         * doc/glibc-functions/secure_getenv.texi: Remove known issue.
24250         Prompted by a request from Nikos Mavrogiannopoulos.
24252 2016-05-27  Eric Blake  <eblake@redhat.com>
24254         canonicalize: Fix broken probe for realpath.
24255         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Fix regression
24256         in logic introduced in 54615b95.
24258 2016-05-26  Eric Blake  <eblake@redhat.com>
24260         unsetenv: relax to LGPLv2+
24261         * modules/unsetenv (License): Match setenv license.
24263 2016-05-20  Ludovic Courtès  <ludo@gnu.org>
24265         gendocs.sh: Set default TOP_NODE_UP_URL in HTML output.
24266         Suggested by Gavin Smith <gavinsmith0123@gmail.com>.
24267         Reported by myglc2 <myglc2@gmail.com> in <http://bugs.gnu.org/22651>.
24268         * build-aux/gendocs.sh (MANUAL_TITLE, PACKAGE, EMAIL)
24269         (commonarg, dirargs, dirs, infoarg, generate_ascii)
24270         (generate_html, generate_info, generate_tex, outdir)
24271         (source_extra, split, srcfile, texarg): Move above 'version'.
24272         (htmlarg): Likewise, and add "-c TOP_NODE_UP_URL=/manual".
24274 2016-05-17  Paul Eggert  <eggert@cs.ucla.edu>
24276         manywarnings: update for GCC 6.1
24277         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
24278         Add GCC 6.1 options that apply to C.
24279         * build-aux/gcc-warning.spec: Add GCC 6.1 options that
24280         do not apply to C, are obsolescent, etc.
24282 2016-05-12  Paul Eggert  <eggert@cs.ucla.edu>
24284         glob: size_t overflow checks
24285         * lib/glob.c (__has_builtin): New macro.
24286         (size_add_wrapv, glob_use_alloca): New static functions.
24287         (glob, glob_in_dir): Check for size_t overflow in several places,
24288         and fix some size_t checks that were not quite right.
24290         glob: don't assume INT_MAX < SIZE_MAX
24291         * lib/glob.c (glob): Prefer SIZE_MAX to ~((size_t) 0), as the
24292         latter is not portable to (probably theoretical) hosts where
24293         SIZE_MAX <= INT_MAX.
24295 2016-05-09  Bruno Haible  <bruno@clisp.org>
24297         Fix undefined behaviour in gettext.h.
24298         * lib/gettext.h (dcpgettext_expr, dcnpgettext_expr): Avoid accessing a
24299         pointer's value after the storage it points to has been freed.
24300         Reported by Michael Pyne in https://savannah.gnu.org/bugs/?47847.
24301         Spotted by Coverity.
24303 2016-05-08  Paul Eggert  <eggert@cs.ucla.edu>
24305         git-version-gen: avoid undefined shift
24306         Problem reported by Mosè Giordano in:
24307         http://lists.gnu.org/r/bug-gnulib/2016-05/msg00012.html
24308         * build-aux/git-version-gen: Avoid undefined behavior if invoked
24309         with --prefix or --fallback but without a later argument.  While
24310         we're at it, omit unnecessary quotes.
24312 2016-05-04  Paul Eggert  <eggert@cs.ucla.edu>
24314         glob: merge glibc changes into lib/glob.c
24315         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c,
24316         dated 2016-05-04 12:09:35 2016 +0200.  Here are the changes:
24317         2016-05-04 CVE-2016-1234: glob: Do not copy d_name field of
24318           struct dirent [BZ #19779]
24319         2016-04-29 glob: Simplify the interface for the GLOB_ALTDIRFUNC
24320           callback gl_readdir
24321         2015-10-20 Convert miscellaneous function definitions to prototype style
24322         2015-10-20 Convert 113 more function definitions to prototype style
24323           (files with assertions)
24324         2015-06-12 Fix getlogin_r namespace (bug 18527).
24325         2014-02-10 Use glibc_likely instead __builtin_expect.
24326         2013-10-20 When glob pattern contains a trailing slash match only
24327           directories. Fixes bug 10278.
24328         2013-09-04 glob: silence -Wattribute warnings
24329         2013-06-07 Avoid use of "register" as optimization hint.
24330         2012-09-25 Use size_t instead of int for internal variables in glob
24331           (bug 14621)
24332         2011-07-20 Check for overflows in expressions
24333         2011-05-28 Remove unused variable
24334         2011-05-22 Add a few more alloca size checks
24335         2010-03-27 Whitespace fixes
24336         2010-03-27 Fix one more issue with the glob patch
24337         2010-03-24 Fix glob with empty pattern
24338         2008-05-27 Remove useless more "if" tests before "free"
24339         * modules/glob (Depends-on): Add stdint.
24341 2016-05-01  Paul Eggert  <eggert@cs.ucla.edu>
24343         mktime: port to stricter signed overflow checking
24344         * lib/mktime.c: Omit 'pragma GCC optimize ("wrapv")'.
24345         (long_int): Require width for INT_MAX * 3 * (seconds per year),
24346         instead of merely for INT_MAX * 2.  In practice platforms that
24347         do the latter also do the former.
24348         (TIME_T_MIN, TIME_T_MAX, TIME_T_MIDPOINT, SHR): Remove.
24349         (shr): New static function, replacing SHR.  All uses changed.
24350         (mktime_min, mktime_max): New constants, replacing TIME_T_MIN
24351         and TIME_T_MAX.  All uses changed.
24352         (ydhms_diff, guess_time_tm, ranged_convert, __mktime_internal):
24353         Use long_int, not time_t.
24354         (long_int_avg): New static function, replacing time_t_avg.
24355         All uses changed.  Round toward positive infinity, as that
24356         generates slightly better code.
24357         (time_t_add_ok, time_t_int_add_ok): Remove.  All uses replaced
24358         by INT_ADD_WRAPV.
24359         (guess_time_tm): Accept time, not a pointer to it.  All uses changed.
24360         (convert_time): New static function.
24361         (ranged_convert): Use it
24362         (ranged_convert): Check for *T out of [mktime_min, mktime_max] range.
24363         Use simpler test for loop exit.
24364         (__mktime_internal): Store negative of guessed offset, to simplify
24365         overflow checking.  Remove no-longer-needed test for small time_t
24366         overflows.
24368         mktime: speed up DEBUG_MKTIME benchmarks
24369         Call tzset just once, at the start, rather than for every test
24370         case.  This lets us measure the CPU cost of mktime as opposed to
24371         that of tzset.  This is relevant when TZ is not set and glibc is
24372         being used.  This speeds up tests by a factor of 40 on my Fedora
24373         23 x86-64 platform.
24374         * lib/mktime.c (main) [DEBUG_MKTIME]: Call localtime at the start,
24375         to call tzset and as a sanity check.  Later on, use localtime_r
24376         instead of localtime.
24378         mktime: resurrect DEBUG_MKTIME testing
24379         * lib/mktime.c [DEBUG_MKTIME]: Do not include <config.h>.
24380         Include <string.h>, for strcmp.
24382         mktime: simplify DEBUG_MKTIME
24383         * lib/mktime.c (DEBUG_MKTIME): Define to 0 if not defined.
24384         Simplify later usage accordingly.
24386         Port mktime_internal offset to unsigned time_t
24387         This avoids some assumptions about wraparound arithmetic on
24388         signed integer overflow.
24389         * lib/mktime-internal.h (mktime_offset_t): New type.
24390         (mktime_internal): Use it in decl.
24391         * lib/mktime.c, lib/timegm.c (mktime_offset_t) [_LIBC]: New type.
24393         * lib/mktime.c (__mktime_internal, localtime_offset):
24394         * lib/timegm.c (timegm): Use it.
24395         * m4/mktime.m4 (gl_TIME_T_IS_SIGNED): New macro.
24396         (gl_FUNC_MKTIME): Require it.
24398 2016-04-27  Paul Eggert  <eggert@cs.ucla.edu>
24400         xstrtol: prohibit monstrosities like "1bB"
24401         Problem reported by Young Mo Kang in: http://bugs.gnu.org/23388
24402         * lib/xstrtol.c (__xstrtol): Allow trailing second suffixes like
24403         "B" only if the first suffix needs a base.
24404         * tests/test-xstrtol.sh: Test this.
24406 2016-04-21  Pádraig Brady  <P@draigBrady.com>
24408         xstrtod: reinstate setting of *result upon ERANGE
24409         * lib/xstrtod.c (XSTRTOD): The user may decide to use
24410         the returned limits upon ERANGE, so allow and document that.
24412 2016-04-20  Tino Calancha  <f92capac@gmail.com>  (tiny change)
24414         xstrtod: modify *result only if no errors
24415         * lib/xstrtod.c (XSTRTOD).
24417 2016-04-19  Paul Eggert  <eggert@cs.ucla.edu>
24419         btowc: document problems in C locale
24420         * doc/posix-functions/btowc.texi (btowc): Mention incompatibility
24421         with mbrtowc.  See: http://bugs.gnu.org/23269#32
24423 2016-04-13  Paul Eggert  <eggert@cs.ucla.edu>
24425         mktime: improve integer overflow checking
24426         * lib/mktime.c: Include stdbool.h, intprops.h, verify.h.
24427         (WRAPV): Remove; no longer needed.
24428         (verify): Remove.  Replace all uses with call to verify.h 'verify'.
24429         (TYPE_IS_INTEGER, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
24430         Remove.  Use intprops.h defns instead.
24431         (leapyear, isdst_differ, time_t_add_ok, time_t_int_ok):
24432         Use bool for Boolean, for clarity.
24433         (time_t_add_ok, time_t_int_add_ok): Use INT_ADD_WRAPV to
24434         detect integer overflow.
24435         * modules/mktime (Depends-on): Add intprops, stdbool, verify.
24437         intprops: check two's complement assumption
24438         Suggested by Eric Blake in:
24439         http://lists.gnu.org/r/bug-gnulib/2016-04/msg00016.html
24440         * lib/intprops.h: Include <verify.h>.  Verify that signed char,
24441         short, int, long, and (if available) long long are two's complement.
24442         * modules/intprops (Depends-on): Add 'verify'.
24444         intprops, mktime, strtol: assume two's complement
24445         These macros were not portable to every conforming C11 ones'
24446         complement platform.  It's not worth the hassle of porting to some
24447         platforms that use ones' complement or signed magnitude, as such
24448         platforms are almost purely theoretical nowadays and porting even
24449         to some of them makes the code harder to review for little
24450         practical benefit.  Problem reported by Florian Weimer in:
24451         https://sourceware.org/ml/libc-alpha/2016-04/msg00295.html
24452         * lib/intprops.h (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT)
24453         (TYPE_SIGNED_MAGNITUDE, _GL_INT_TWOS_COMPLEMENT):
24454         * lib/mktime.c (TYPE_TWOS_COMPLEMENT):
24455         * lib/strtol.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT)
24456         (TYPE_SIGNED_MAGNITUDE):
24457         Remove.  All uses rewritten to assume two's complement, which is
24458         all we can reasonably test nowadays anyway.
24459         * top/maint.mk (_intprops_names): Remove the removed macros.
24461 2016-04-11  Paul Eggert  <eggert@cs.ucla.edu>
24463         stdint: port to strict C11 left shift
24464         * lib/stdint.in.h (_STDINT_MIN, _STDINT_MAX):
24465         Pacify clang -Wshift-negative-value, which should be an issue only
24466         on clang setups where stdint.h does not conform to C11 or to C++11.
24467         Problem reported by Philipp Stephani in: http://bugs.gnu.org/23261
24469 2016-04-09  Paul Eggert  <eggert@penguin.cs.ucla.edu>
24471         mbrtowc: work around glibc bug#19932
24472         Fix mbrtowc so that it never returns -1 in the C locale,
24473         as this conflicts with a future version of POSIX
24474         http://austingroupbugs.net/view.php?id=663#c2738
24475         and causes problems with GNU grep: http://bugs.gnu.org/23234
24476         See glibc bug 19932:
24477         https://sourceware.org/bugzilla/show_bug.cgi?id=19932
24478         * doc/posix-functions/mbrlen.texi (mbrlen):
24479         * doc/posix-functions/mbrtowc.texi (mbrtowc):
24480         Document the glibc bug.
24481         * lib/mbrtowc.c [C_LOCALE_MAYBE_EILSEQ]:
24482         Include hard-locale.h, locale.h.
24483         (rpl_mbrtowc): Work around the C_LOCALE_MAYBE_EILSEQ bug,
24484         if the bug is possible.
24485         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): New macro.
24486         (gl_FUNC_MBRTOWC): Use it, and define C_LOCALE_MAYBE_EILSEQ as needed.
24487         * modules/hard-locale (License): Now LGPLv2+, for mbrtowc.
24488         * modules/mbrtowc (Depends-on): Add hard-locale.
24489         * modules/mbrtowc-tests (Files, TESTS): Add tests/test-mbrtowc5.sh.
24490         * tests/test-mbrtowc.c (main): Test for bug fix if arg is '5'.
24491         * tests/test-mbrtowc5.sh: New file.
24493 2016-04-03  Pedro Alves  <palves@redhat.com>
24495         stdint: detect good enough pre-C++11 stdint.h in C++ mode
24496         When gnulib is configured in C++ mode for a system with a working C99
24497         implementation of stdint.h that predates C++11, gnulib ends up
24498         substituting stdint.h anyway.  This works on most targets, but on e.g.,
24499         64-bit MinGW, it doesn't, as gnulib's substitute assumes LP64, while
24500         MinGW is LLP64.  Instead of trying to detect the right types, detect
24501         good-enough-pre-C++11 stdint.h and in such case define
24502         __STDC_CONSTANT_MACROS/__STDC_LIMIT_MACROS in config.h.
24503         * m4/stdint.m4 (gl_STDINT_H): Always define __STDC_CONSTANT_MACROS
24504         / __STDC_LIMIT_MACROS while checking whether the system stdint.h
24505         conforms to C99.  If it does, check whether it hides symbols
24506         behind the __STDC_{CONSTANT|LIMIT}_MACROS macros.  Then if it
24507         does, define those macros in config.h.
24509 2016-04-03  Paul Eggert  <eggert@cs.ucla.edu>
24511         argp: merge changes from glibc
24512         Among other things, this should fix problems found by a Coverity
24513         scan and reported by Andrei Borzenkov:
24514         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00015.html
24515         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00016.html
24516         * lib/argp-ba.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h:
24517         * lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h:
24518         * lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c:
24519         * lib/argp.h:
24520         Merge changes from glibc.
24521         * tests/test-argp-2.sh: Adjust to match new behavior.
24523 2016-04-01  Paul Eggert  <eggert@cs.ucla.edu>
24525         stddef: support configuring with g++
24526         Problem reported by Ángel González in:
24527         http://lists.gnu.org/r/bug-gnulib/2016-04/msg00003.html
24528         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS, max_align_t):
24529         Do not define if _GCC_MAX_ALIGN_T is defined.
24531 2016-03-25  Paul Eggert  <eggert@cs.ucla.edu>
24533         test-framework-sh: minor cleanups
24534         * tests/init.sh (testdir_prefix_): Output a trailing newline,
24535         since strictly speaking POSIX requires this.
24536         (setup_): Do not use the variable 'fail', as that makes the
24537         trace output harder to read ('fail' is typically used by
24538         tests to mean the test failed).  Treat // portably.
24539         Check that new directory is not merely a sibling of the tmp dir.
24540         Avoid unnecessary invocation of tr.
24542         test-framework-sh: revert port to NetBSD 7.0
24543         It was a false alarm; I misinterpreted Assaf Gordon's report.
24544         * tests/init.sh (testdir_prefix_, pfx_, template_length_):
24545         Restore.
24546         (test_dir_): Adjust to mktempd_ change.
24547         (mktempd_): Restore 2nd arg.  Use -t again.
24548         (base_template_, template_, nx_): Resurrect old code.
24550         Port better to Alpine Linux
24551         Its diff implementation does not support -c, but does support -U3.
24552         Problem reported by Assaf Gordon in: http://bugs.gnu.org/23107#13
24553         * tests/init.sh (diff_opt_): New var.
24554         (compare_): Prefer diff -U3 to diff -c to plain diff.
24556 2016-03-24  Paul Eggert  <eggert@cs.ucla.edu>
24558         test-framework-sh: port to NetBSD 7.0
24559         Problem reported by Assaf Gordon in: http://bugs.gnu.org/23107#13
24560         * tests/init.sh (testdir_prefix_, pfx_, template_length_):
24561         Remove.  All uses removed.
24562         (test_dir_): Adjust to mktempd_ change.
24563         (mktempd_): Omit 2nd arg.  Stop using -t, as it is not portable.
24564         (base_template_, template_, nx_): Simplify by hardcoding.
24566 2016-03-22  Paul Eggert  <eggert@cs.ucla.edu>
24568         gitlog-to-changelog: suppress ignored chatter
24569         * build-aux/gitlog-to-changelog: Do not warn about skipping
24570         an SHA if it would have been ignored anyway.
24572 2016-03-22  Geert Janssens  <janssens-geert@telenet.be>
24574         setlocale: add "sv" to Windows language table
24575         * lib/setlocale.c (language_table) [W32]: Add "sv".
24576         Reported in <https://savannah.gnu.org/bugs/?44588>.
24578 2016-03-21  Paul Eggert  <eggert@cs.ucla.edu>
24580         sys_select: port to new Cygwin
24581         Problem reported by Ken Brown in:
24582         https://lists.gnu.org/r/bug-gnulib/2016-03/msg00054.html
24583         * lib/sys_select.in.h [__CYGWIN__]: Avoid "unknown type name"
24584         diagnostics.
24586 2016-03-17  Jim Meyering  <meyering@fb.com>
24588         test-userspec.c: do not trigger gcc's new -Wmisleading-indentation
24589         * tests/test-userspec.c (main): Remove unnecessary braces and fix
24590         misleading indentation. Here is the diagnostic gcc-6.0-to-be issued:
24591           test-userspec.c:176:9: error: statement is indented as if it were \
24592             guarded by... [-Werror=misleading-indentation]
24593                    {
24594                    ^
24595           test-userspec.c:173:7: note: ...this 'if' clause, but it is not
24596                  if (!diag && !T[i].result)
24597                  ^~
24599 2016-03-15  Paul Eggert  <eggert@cs.ucla.edu>
24601         time_rz: port to clang -Wunused-const-variable
24602         * lib/time_rz.c (TZ): Remove.  All uses removed.
24604         std-gnu11: improve clang support
24605         * m4/std-gnu11.m4: Sync with autoconf, incorporating:
24606         2016-03-15 Also try clang
24607         2016-03-15 Port C11 and C++11 testing to clang
24609         select: port more to Intel 2016.1.150 compiler
24610         Problem reported by Balázs Hajgató in:
24611         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00036.html
24612         * m4/select.m4 (gl_FUNC_SELECT): Require AC_C_RESTRICT.
24614 2016-03-14  Paul Eggert  <eggert@cs.ucla.edu>
24616         select: try to port to 2016.1.150 compiler
24617         Problem reported by Balázs Hajgató in:
24618         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00026.html
24619         * lib/sys_select.in.h (select): Use 'restrict' on arguments where
24620         POSIX specifies 'restrict'.
24622 2016-03-13  Paul Eggert  <eggert@cs.ucla.edu>
24624         localename-tests: memory allocation fixes
24625         * tests/test-localename.c (test_locale_name)
24626         (test_locale_name_thread): Don't call freelocale on a locale
24627         that was the base of a successful newlocale, as that
24628         results in a double free.  Problem reported by Assaf Gordon.
24629         (test_locale_name_thread): Free saved names after use, to pacify
24630         gcc -fsanitize=address.
24632 2016-03-08  Paul Eggert  <eggert@cs.ucla.edu>
24634         intprops: make .h file license match module
24635         * lib/intprops.h: Change the license wording to match glibc format.
24636         This is what is in modules/intprops anyway.  See:
24637         https://sourceware.org/bugzilla/show_bug.cgi?id=19738#c8
24639 2016-03-08  Eric Blake  <eblake@redhat.com>
24641         acl: fix missing return on Cygwin
24642         * lib/set-permissions.c (set_acls) [HAVE_FACL && GETACL]: Don't
24643         fall off end of function. Fixes http://bugs.gnu.org/22949
24645 2016-03-05  Bruno Haible  <bruno@clisp.org>
24647         extern-inline: port to PGI CC
24648         * m4/extern-inline.m4 (gl_EXTERN_INLINE): For PGI CC, don't use the
24649         keyword 'inline'.
24650         Reported by Adam James Stewart in:
24651         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00006.html
24653 2016-02-20  Paul Eggert  <eggert@cs.ucla.edu>
24655         signbit: port back to pre-C++11 GCC
24656         * lib/math.in.h (signbit): Do previous change only if
24657         __cplusplus < 201103.  See Jonathan Wakely in:
24658         https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/UY3VX3W7XEXYTUKHG5BALU4ACUD7ZLGE/
24660 2016-02-19  Kamil Dudka  <kdudka@redhat.com>
24662         mountlist: recognize autofs-mounted remote file systems, too
24663         Originally reported at: https://bugzilla.redhat.com/1309247
24664         * lib/mountlist.c (ME_REMOTE): Return true if a file system is named
24665         "-hosts" because it is used by autofs to mount remote file systems.
24667 2016-02-19  Paul Eggert  <eggert@cs.ucla.edu>
24669         signbit: port to C++ with GCC 6
24670         * lib/math.in.h (signbit) [__cplusplus]:
24671         Do not replace with GCC builtin.  Reported by Orion Poplawski in:
24672         http://lists.gnu.org/r/bug-gnulib/2016-02/msg00005.html
24674         * lib/regex_internal.h (IDX_MAX) [_REGEX_LARGE_OFFSETS]: Now SSIZE_MAX.
24676         regex: make it closer to libc
24677         Make Idx a signed type, rather than possibly unsigned.
24678         The unsignedness was not really buying us anything, since the code
24679         overflows for other reasons before getting to PTRDIFF_MAX.  Making
24680         it signed allows us to use -1 and -2 with abandon, like libc does,
24681         thus lessening the number of differences between gnulib and libc.
24682         Also, it should help avoid gratuitous warnings like the one
24683         reported by Nelson H. F. Beebe in: http://bugs.gnu.org/22702
24684         * lib/regex.h (__re_idx_t): Remove.  All uses changed to regoff_t.
24687         regex: merge patches from libc
24689         2015-10-21  Joseph Myers  <joseph@codesourcery.com>
24690         2015-10-20  Joseph Myers  <joseph@codesourcery.com>
24691         Convert miscellaneous function definitions to prototype style.
24692         * lib/regcomp.c (re_compile_pattern, re_set_syntax)
24693         (re_compile_fastmap, regcomp, regerror, regfree, re_comp):
24694         * lib/regexec.c (regexec, re_match, re_search, re_match_2, re_search_2)
24695         (re_search_2_stub, re_search_stub, re_set_registers, re_exec)
24696         (re_search_internal):
24697         Convert to prototype-style function definition.
24698         Use internal_function for internal functions.
24700 2016-02-10  Paul Eggert  <eggert@cs.ucla.edu>
24702         stdalign: port to older HP and IBM cc
24703         * lib/stdalign.in.h (_Alignas): Port better to older HP and IBM
24704         C compilers, by checking their version numbers.  These version
24705         numbers appear in MariaDB and in Qt code that dates way back and
24706         that conditiionally uses the 'aligned' attribute.
24708 2016-02-09  Paul Eggert  <eggert@cs.ucla.edu>
24710         stdalign: port to clang 3.7.0
24711         Problem reported by Herbert J. Skuhra in:
24712         http://lists.gnu.org/r/emacs-devel/2016-02/msg00476.html
24713         * lib/stdalign.in.h (alignas): Fix typo that prevented 'alignas'
24714         from being defined on clang 3.7.0, which has a buggy stdalign.h.  See:
24715         https://llvm.org/bugs/show_bug.cgi?id=26547
24717 2016-02-08  Paul Eggert  <eggert@cs.ucla.edu>
24719         readdir_r: now obsolescent
24720         * doc/posix-functions/readdir_r.texi (readdir_r): Now obsolescent.
24721         * lib/mountlist.c (read_file_system_list): Add a FIXME.
24723 2016-02-06  Paul Eggert  <eggert@cs.ucla.edu>
24725         misc: port better to gcc -fsanitize=address
24726         Without these patches, ./configure CFLAGS='-fsanitize=address'
24727         would compute incorrect values.  This patch fixes some (but not all)
24728         test failures with recent glibc, with this configuration.
24729         * m4/acl.m4 (gl_ACL_GET_FILE):
24730         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF):
24731         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS):
24732         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO):
24733         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE):
24734         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
24735         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
24736         * m4/getgroups.m4 (gl_FUNC_GETGROUPS):
24737         * m4/getline.m4 (gl_FUNC_GETLINE):
24738         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF):
24739         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF):
24740         * m4/regex.m4 (gl_REGEX):
24741         * m4/strndup.m4 (gl_FUNC_STRNDUP):
24742         * tests/test-calloc-gnu.c (main):
24743         * tests/test-duplocale.c (main):
24744         * tests/test-getgroups.c (main):
24745         * tests/test-getline.c (main):
24746         * tests/test-inttostr.c (main):
24747         * tests/test-localename.c (test_locale_name)
24748         (test_locale_name_thread, test_locale_name_environ)
24749         (test_locale_name_default):
24750         * tests/test-regex.c (main):
24751         * tests/test-setlocale1.c (main):
24752         * tests/test-stat.h (test_stat_func):
24753         Free heap-allocated storage before exiting.
24754         * m4/asm-underscore.m4 (gl_ASM_SYMBOL_PREFIX):
24755         Don't match *_foo symbols inserted by AddressSanitizer.
24756         * tests/test-regex.c, tests/test-stat.c: Include stdlib.h, for 'free'.
24758 2016-02-02  Jim Meyering  <meyering@fb.com>
24760         verify-tests: also remove stray test-verify.Tpo
24761         * modules/verify-tests (Makefile.am): Arrange for "make clean"
24762         to remove the test-verify.Tpo file that is left behind by
24763         the automake-generated rule upon compilation failure.
24764         Otherwise, that .Tpo file would cause a failed "make distcheck"
24765         at least for grep.
24767 2016-02-02  Paul Eggert  <eggert@cs.ucla.edu>
24769         std-gnu11: new module
24770         This makes it easier for applications to prefer C11 and C++11
24771         to older variants, when compiling C and C++ code.
24772         Unlike most m4/*.m4 files, m4/std-gnu11.m4 is GPLed, as it copies
24773         a nontrivial chunk of GPLed Autoconf source code.
24774         * COPYING: Mention the m4/*.m4 copyright situation.
24775         * MODULES.html.sh (std-gnu11): New module.
24776         * m4/std-gnu11.m4, modules/std-gnu11: New files.
24778 2016-01-25  Paul Eggert  <eggert@cs.ucla.edu>
24780         get-permissions, strftime: fix grammar in comments
24781         * lib/get-permissions.c, lib/strftime.c: Merge into the comments
24782         some grammar fixes Alan Mackenzie made to GNU Emacs.
24784 2016-01-25  Daiki Ueno  <ueno@gnu.org>
24786         gettext: mark as obsolete
24787         Suggested by Paul Eggert in:
24788         https://lists.gnu.org/r/bug-gnulib/2016-01/msg00101.html
24789         * modules/gettext (Status): Mark as obsolete.
24790         (Notice): Suggest to use 'gettext-h' instead.
24791         * modules/gettext-h (Description): Suggest GNU gettext, instead of
24792         the 'gettext' module.
24794 2016-01-24  Paul Eggert  <eggert@cs.ucla.edu>
24796         gnulib-tool: don't give up on ln -s so easily
24797         * gnulib-tool (func_ln_s): Don't give up on a later ln -s merely
24798         because an earlier one failed.  The targets could be on different
24799         file systems.  Problem reported by KO Myung-Hun in:
24800         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00081.html
24802         closedir: fix OS/2-related typos
24803         Problem reported by KO Myung-Hun in:
24804         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00107.html
24805         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Fix a couple of typos
24806         in the last couple of changes.
24808 2016-01-24  KO Myung-Hun  <komh78@gmail.com>
24810         openat_proc_name: fix that last '/' is overwritten on OS/2 kLIBC
24811         * lib/openat-proc.c (openat_proc_name): Increase dirlen by 1 after
24812         copying a directory.
24814 2016-01-24  Paul Eggert  <eggert@cs.ucla.edu>
24816         regex: treat [x] as x if x is a unibyte encoding error
24817         Problem reported by Aharon Robbins in:
24818         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00091.html
24819         * lib/regcomp.c (parse_byte) [!_LIBC && RE_ENABLE_I18N]: New function.
24820         (build_range_exp) [!_LIBC && RE_ENABLE_I18N]: Use it.
24822         closedir, dirfd, opendir: port to OpenSolaris 5.10
24823         * m4/closedir.m4 (gl_FUNC_CLOSEDIR):
24824         * m4/dirfd.m4 (gl_FUNC_DIRFD):
24825         * m4/opendir.m4 (gl_FUNC_OPENDIR):
24826         Don't use ${word##pat} substitution, as it doesn't work in
24827         OpenSolaris 5.10 /bin/sh.  Problem reported by Assaf Gordon in:
24828         http://bugs.gnu.org/22443#11
24830 2016-01-23  Paul Eggert  <eggert@cs.ucla.edu>
24832         bootstrap: use American spelling
24833         * build-aux/bootstrap: Honor American spelling.
24835 2016-01-22  Karl Berry  <karl@freefriends.org>
24837         * doc/posix-functions/localtime.texi,
24838         * doc/posix-functions/localtime_r.texi: @item needed for @itemize text.
24840 2016-01-21  Bruno Haible  <bruno@clisp.org>
24842         hash-pjw-bare: fix comment
24843         * lib/hash-pjw-bare.h (hash_pjw_bare): Fix comment.
24845         wcwidth: Replace also on OpenBSD 5.8
24846         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check the value of wcwidth(0xFF1A).
24847         * doc/posix-functions/wcwidth.texi: Update.
24849 2016-01-20  Pádraig Brady  <P@draigBrady.com>
24851         gnu-web-doc-update: fix addition of new files
24852         If there were already added (emnpty) dirs,
24853         then cvs aborts the add with the message:
24854           cvs [add aborted]: there is a version in <./dirname> already
24855         * build-aux/gnu-web-doc-update: Add directories separately
24856         to the addition of files, to avoid the above issue
24857         impacting the addition of files.
24859 2016-01-19  Daiki Ueno  <ueno@gnu.org>
24861         utimens-tests: avoid pulling gettext .m4 files
24862         Although this is not the right fix to the original problem:
24863         http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html
24864         it makes it possible again for consumer projects to use arbitrary
24865         version of gettext, through the steps described at:
24866         http://www.gnu.org/software/gnulib/manual/html_node/gettextize-and-autopoint.html
24867         See here for details:
24868         https://lists.gnu.org/r/bug-gnulib/2016-01/msg00079.html
24869         * modules/futimens-tests (Depends-on): Add 'gettext-h' in place of
24870         'gettext'.
24871         * modules/utimens-tests (Depends-on): Add 'gettext-h' in place of
24872         'gettext'.
24874 2016-01-18  Paul Eggert  <eggert@cs.ucla.edu>
24876         regex: pacify static checkers
24877         Problem and draft fix reported by Aharon Robbins in:
24878         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
24879         * lib/regcomp.c (build_charclass_op, create_tree) [lint]:
24880         Clear memory to pacify static checkers.
24882         regex: fix [ diagnostic
24883         Problem and fix reported by Aharon Robbins in:
24884         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
24885         * lib/regcomp.c (REG_EBRACK_IDX): Fix misleading diagnostic about [.
24887         regex: fix memory leaks
24888         Problem and draft fix reported by Aharon Robbins in:
24889         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
24890         * lib/regcomp.c (build_range_exp, build_charclass_op)
24891         * lib/regex_internal.c (re_dfa_add_node):
24892         Fix memory leak on failure.
24894 2016-01-18  Pádraig Brady  <P@draigBrady.com>
24896         fts: don't unconditionally use leaf optimization for NFS
24897         NFS st_nlink are not accurate on all implementations,
24898         leading to aborts() if that assumption is made.
24899         See <https://bugzilla.redhat.com/1299169>
24900         * lib/fts.c (leaf_optimization_applies): Remove NFS from
24901         the white list, and document the issue.
24903 2016-01-15  Paul Eggert  <eggert@cs.ucla.edu>
24904             KO Myung-Hun  <komh@chollian.net>
24906         gnulib-tool: don't assume ln -s works
24907         * gnulib-tool (func_ln_s): New function.
24908         (func_ln): Use it.
24910 2016-01-15  KO Myung-Hun  <komh@chollian.net>
24912         utimes: detect utimes() correctly on OS/2 kLIBC
24913         utimes() of OS/2 kLIBC has some limitations.
24914         1. OS/2 itself supports a file date since 1980 year in local time.
24915         2. OS/2 itself supports only even seconds for a file time.
24916         3. utimes() of OS/2 kLIBC does not work on an opened file.
24917         * m4/utimes.m4: Detect utimes() correctly on OS/2 kLIBC.
24918         * doc/posix-functions/utimes.texi: Document the above limitations of
24919         utimes() on OS/2 kLIBC.
24921 2016-01-15  Paul Eggert  <eggert@cs.ucla.edu>
24922             KO Myung-Hun  <komh@chollian.net>
24924         openat_proc_name: port to OS/2 kLIBC
24925         OS/2 kLIBC provides a function to retrive a path from a fd. Use it
24926         instead of /proc/self/fd.
24927         * lib/openat-proc.c (openat_proc_name):
24928         Don't assume file name length is less than INT_MAX.
24929         Port to OS/2 kLIBC with __libc_Back_ioFHToPath().
24931 2016-01-14  KO Myung-Hun  <komh@chollian.net>
24933         stdint: check _INTPTR_T_DECLARED for intptr_t etc.
24934         OS/2 kLIBC's stdint.h defines _INTPTR_T_DECLARED and needs its own
24935         definitions of intptr_t and uintptr_t (which use int and unsigned)
24936         to avoid clashes with declarations of system functions like sbrk.
24937         * lib/stdint.in.h (intptr_t, uintptr_t): Check
24938         _INTPTR_T_DECLARED before defining them.
24940         opendir, closedir, dirfd, fdopendir: port to OS/2 kLIBC
24941         * lib/closedir.c (closedir): Unregister fd if closedir() succeeds.
24942         * lib/dirent.in.h (_gl_register_dirp_fd, _gl_unregister_dirp_fd):
24943         Declare on kLIBC.
24944         * lib/dirfd.c (struct dirp_fd_list): New. Structures to keep track of
24945         fd associated with dirp.
24946         (_gl_register_dirp_fd): New. Register fd associated with dirp to
24947         dirp_fd_list.
24948         (_gl_unregister_dirp_fd): New. Unregister fd with closing it.
24949         (dirfd): Implemented for kLIBC.
24950         * lib/fdopendir.c (fdopendir): Implemented for kLIBC.
24951         * lib/opendir.c (opendir): New. Register fd and dirp pair if open()
24952         succeeds.
24953         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Replace if OS/2.
24954         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
24955         (REPLACE_DIRFD): Define to 1 if replaced.
24956         * m4/opendir.m4 (gl_FUNC_OPENDIR): Likewise.
24957         * modules/closedir (Depends-on): Add dirfd.
24958         * modules/dirfd (Depends-on): Add 'test $REPLACE_DIRFD = 1' to errno
24959         condition.
24960         (configure.ac): Add dirfd to LIBOBJS if $REPLACE_DIRFD = 1 as well.
24961         * modules/opendir (Depends-on): Add dirfd.
24963         dup, dup2, fcntl: support a directory fd on OS/2 kLIBC
24964         On OS/2 kLIBC, dup(), dup2() and fcntl() do not work on a directory fd.
24965         * lib/dup.c (dup_nothrow): New.
24966         * lib/dup2.c (klibc_dup2dirfd): New. dup2() for a directory fd.
24967         (klibc_dup2): New.
24968         * lib/fcntl.c (klibc_fcntl): New.
24969         * m4/dup.m4 (gl_FUNC_DUP): Check if dup() works on a directory fd.
24970         * m4/dup2.m4 (gl_FUNC_DUP2): Check if dup2() works on a directory fd.
24971         * m4/fcntl.m4 (gl_FUNC_FCNTL): Check if F_DUPFD works on a directory
24972         fd.
24974         pipe_filter_ii_execute: port to OS/2 kLIBC
24975         Pipes on kLIBC do not support O_NONBLOCK like Win32.
24976         * lib/pipe-filter-ii.c (start_wrapper, _beginthreadex, CloseHandle,
24977         WaiForSingleObject, WaitForMultipleObjects): New on OS/2 kLIBC.
24978         Reuse Win32 code on OS/2 kLIBC.
24979         * lib/spawn-pipe.c: Reuse Win32 code on OS/2 kLIBC.
24980         * lib/w32spawn.h: Do not include windows.h on OS/2 kLIBC.
24982         wchar: fix "conflicting types" error for __wcwidth on OS/2 kLIBC
24983         On OS/2 kLIBC, wcwidth is a macro that expands to the name of a
24984         static inline function.  The implementation of wcwidth in wcwidth.c
24985         causes a "conflicting types" error.
24986         * lib/wchar.in.h: Undefine wcwidth on OS/2 kLIBC.
24988         w32spawn: clear SHELL_SPECIAL_CHARS and SHELL_SPACE_CHAR on OS/2 kLIBC
24989         spawn() on OS/2 kLIBC is not silly like one on Windows
24990         * libc/w32spawn.h (SHELL_SPECIAL_CHARS, SHELL_SPACE_CHAR): Set both to
24991         empty string on OS/2 kLIBC.
24993         pipe-filter-aux: undefine HAVE_SELECT on KLIBC
24994         On OS/2 kLIBC, select() works only on sockets.
24995         * lib/pipe-filter-aux.h (HAVE_SELECT): Undefine on OS/2 kLIBC.
24997         binary-io: don't put fd in binary mode if it is a console on EMX
24998         * lib/binary-io.h (SET_BINARY): Don't put fd in binary mode if it is
24999         a console on EMX.
25001 2016-01-15  Pádraig Brady  <P@draigBrady.com>
25003         doc: mention unfixed issues with unsupported localtime() values
25004         * doc/posix-functions/localtime.texi: Mention that FreeBSD 10
25005         returns nonsense for localtime(2^56).
25006         * doc/posix-functions/localtime_r.texi: Likewise.
25008 2016-01-14  Pádraig Brady  <P@draigBrady.com>
25010         doc: mention setlocale() issues on OpenBSD
25011         * doc/posix-functions/setlocale.texi: Mention setlocale(LC_ALL,"")
25012         never fails, and the need to check categories individually.
25014 2016-01-14  Pádraig Brady  <P@draigBrady.com>
25016         sig2str: list all signals on FreeBSD >= 7
25017         FreeBSD >= 7 is contravening POSIX by not defining NSIG
25018         to the maximal statically defined signal value.
25019         It does define _SIG_MAXSIG though, so base SIGNUM_BOUND on that.
25020         * lib/sig2str.h (SIGNUM_BOUND): Define to (_SIG_MAXSIG - 2)
25021         where available, even when NSIG is defined.
25023 2016-01-13  Paul Eggert  <eggert@cs.ucla.edu>
25025         acl-permissions: port to USE_ACL==0 platforms
25026         I ran into this problem when building bleeding-edge GNU Emacs
25027         with gcc -fsanitize=address on Fedora 23.  On this platform
25028         the ACL library does not pass the 'configure' test and Emacs
25029         then does not build due in part to what appear to be typos in the
25030         ACL part of Gnulib.
25031         * lib/acl-internal.c (free_permission_context):
25032         * lib/acl-internal.h (struct permission_context):
25033         Test whether USE_ACL is nonzero, not whether it is defined.
25035 2016-01-12  Martin Sebor  <msebor@redhat.com>
25037         mktime: rename macro to avoid glibc clash
25038         * lib/mktime.c [DEBUG] (DEBUG): Rename to DEBUG_MKTIME.  See:
25039         https://sourceware.org/ml/libc-alpha/2016-01/msg00267.html
25041 2016-01-12  Paul Eggert  <eggert@cs.ucla.edu>
25043         Port "$@" to OpenIndiana ksh93
25044         In http://lists.gnu.org/r/bug-autoconf/2015-12/msg00000.html
25045         Pavel Raiskup reports that ${1+"$@"} runs afoul of a bug in /bin/sh
25046         (derived from ksh 93t+ 2010-03-05).  ${1+"$@"} works around an ancient
25047         bug long-dead shells, so remove the workaround.
25048         * build-aux/announce-gen, build-aux/do-release-commit-and-tag:
25049         * build-aux/gitlog-to-changelog, build-aux/gnu-web-doc-update:
25050         * build-aux/prefix-gnulib-mk, build-aux/update-copyright:
25051         * build-aux/useless-if-before-free, tests/test-update-copyright.sh:
25052         Use "$@" instead of ${1+"$@"}.
25054         Port Universal Time settings to strict POSIX
25055         * build-aux/announce-gen, build-aux/bootstrap:
25056         * build-aux/do-release-commit-and-tag, build-aux/git-version-gen:
25057         * build-aux/gitlog-to-changelog, build-aux/gnu-web-doc-update:
25058         * build-aux/gnupload, build-aux/mkinstalldirs:
25059         * build-aux/move-if-change, build-aux/prefix-gnulib-mk:
25060         * build-aux/update-copyright, build-aux/useless-if-before-free:
25061         * build-aux/vc-list-files, tests/test-strftime.c:
25062         Use TZ="UTC0", not TZ="UTC".  Either works on GNU platforms,
25063         but POSIX says the behavior of TZ="UTC" is undefined.
25065 2016-01-02  Paul Eggert  <eggert@cs.ucla.edu>
25067         msvc-inval: fix problem with unset shell var
25068         Problem reported by Karl Berry in:
25069         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00004.html
25070         * modules/msvc-inval (Depends-on):
25071         AC_REQUIRE gl_MSVC_INVAL instead of merely calling it.
25072         * modules/msvc-nothrow (Depends-on): Likewise for gl_MSVC_NOTHROW.
25074 2016-01-01  Pádraig Brady  <P@draigBrady.com>
25076         tests: for compare_(), use cmp -s where available
25077         * tests/init.sh (compare_): Only fall back to cmp without
25078         the POSIX defined -s option, where this is not available.
25080 2016-01-01  Paul Eggert  <eggert@cs.ucla.edu>
25082         version-etc: new year
25083         * build-aux/gendocs.sh (version):
25084         * doc/gendocs_template:
25085         * doc/gendocs_template_min:
25086         * doc/gnulib.texi:
25087         * lib/version-etc.c (COPYRIGHT_YEAR):
25088         Update copyright dates by hand in templates and the like.
25089         * all files: Run 'make update-copyright'.
25091 2015-12-31  Paul Eggert  <eggert@cs.ucla.edu>
25093         human: fix output buffer overrun by 1
25094         * lib/human.c (human_readable): Fix off-by-one typo in buffer
25095         calculation that could lead to a one-byte buffer overrun.
25097 2015-12-28  Daiki Ueno  <ueno@gnu.org>
25099         maint: fix operator precedence in mbrtowc test
25100         This is a fix for test breakage introduced by commit 45228d96; the
25101         equality expression must be parenthesized when negated with '!',
25102         otherwise we always get:
25104           test-mbrtowc.c:49: assertion 'ret == (size_t)(-2)' failed
25106         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): Negate the entire expression.
25107         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): Likewise.
25109 2015-12-23  James Youngman  <jay@gnu.org>
25111         regexprops-generic: update from regex.h
25112         * doc/regexprops-generic.texi: update by running the regexprops binary
25113         from findutils (the command line is 'regexprops "Regular Expressions"
25114         generic').  The recent (ish) change (5a5a9388) to regex.h aligning
25115         gnulib with GNU grep had made this document out-of-date.
25117 2015-12-23  Pádraig Brady  <P@draigBrady.com>
25119         strftime-tests: avoid false failure on OS X
25120         * tests/test-strftime.c (struct localtime_rz_test): Add an
25121         ahistorical member which is used to warn rather than fail
25122         when tm_isdst isn't set for such entries.  This is the case for
25123         "1970-01-01 13:00:00 +1300 (NZDT)" on Darwin 13/14 at least.
25125 2015-12-20  Kamil Dudka  <kdudka@redhat.com>
25127         fts: ensure leaf optimization is used for NFS
25128         NFS provides usable dirent.d_type but not necessarily for all entries
25129         of large directories.  See <https://bugzilla.redhat.com/1252549>
25130         * lib/fts.c (leaf_optimization_applies): Append NFS on the white list.
25132 2015-12-20  Pádraig Brady  <P@draigBrady.com>
25134         fts: enable leaf optimization for XFS
25135         XFS provides usable dirent.d_type only for DT_DIR,
25136         but the noleaf optimization still applies.
25137         * lib/fts.c (leaf_optimization_applies): Add XFS to the white list.
25139 2015-12-17  Paul Eggert  <eggert@cs.ucla.edu>
25141         intprops: comment fix
25142         * lib/intprops.h: Fix comment.  Reported by Pádraig Brady in:
25143         http://lists.gnu.org/r/bug-gnulib/2015-12/msg00013.html
25145         intprops-test: work around GCC bug 68971
25146         Problem reported by Pádraig Brady in:
25147         http://lists.gnu.org/r/bug-gnulib/2015-12/msg00011.html
25148         * tests/test-intprops.c: Ignore -Woverflow in GCC 6 and earlier.
25149         (main): Add a case that better tests 64-bit long in this area.
25151 2015-12-09  Pavel Raiskup  <praiskup@redhat.com>
25153         gnulib-tool: allow multiple --local-dir usage
25154         * gnulib-tool: Use --local-dir to construct compound
25155         $local_gnulib_path path instead of $local_gnulib_dir.  Determine
25156         PATH_SEPARATOR early.
25157         (local_gnulib_dir): Rename into $local_gnulib_path everywhere.
25158         (func_gnulib_dir): Cut out PATH_SEPARATOR detection code into
25159         func_determine_path_separator because that needs to be detected
25160         earlier now.
25161         (func_determine_path_separator): New function.
25162         (func_path_foreach, func_path_foreach_inner): New functions.
25163         (func_path_prepend, func_path_append): Likewise.
25164         (func_lookup_local_file, func_lookup_local_file_cb): Likewise.
25165         (func_lookup_file, func_all_modules): Use new functions to work
25166         with local_gnulib_path.
25167         (func_modules_in_dir, func_exists_module): New callbacks for
25168         func_path_foreach.
25169         (func_exists_module, func_get_tests_module): Likewise.
25170         (func_is_local_file, func_should_symlink): New helper methods.
25171         (func_add_file, func_update_file): Use new func_should_symlink
25172         instead, DRY.
25173         (func_reconstruct_cached_local_gnulib_path): New helper.
25174         (func_reconstruct_cached_dir): New callback.
25175         (func_import): The cached_local_gnulib_dir renamed to
25176         cached_local_gnulib_path similarly to local_gnulib_dir.
25177         Use new func_reconstruct_cached_local_gnulib_path.
25178         (func_count_relative_local_gnulib_path): New sub-method.
25179         (func_create_testdir): Use func_should_symlink, DRY.
25180         (func_create_megatestdir): Use new functions to work with
25181         local_gnulib_path correctly.
25182         (func_append_local_dir): New helper.
25184 2015-12-08  Pádraig Brady  <P@draigBrady.com>
25186         fix freadptr to work with ungetc on all uClibc configs
25187         Reported at https://bugs.busybox.net/show_bug.cgi?id=4099
25188         where GNU coreutils cut(1) generates invalid output on uClibc
25189         when __UCLIBC_HAS_STDIO_GETC_MACRO__ is not defined.
25190         * lib/freadptr.c (freadptr): Return NULL if there are
25191         ungotten chars.  In this case freadseek() will iterate
25192         again to process the ungotten character.
25194 2015-11-13  Paul Eggert  <eggert@cs.ucla.edu>
25196         xalloc-oversized: improve performance with GCC 5
25197         * lib/xalloc-oversized.h (xalloc_oversized):
25198         Improve performance with GCC 5 by using __builtin_mul_overflow.
25200 2015-11-10  Paul Eggert  <eggert@cs.ucla.edu>
25202         intprops: new public macro EXPR_SIGNED
25203         Emacs can use this macro, so make it public.
25204         * doc/intprops.texi (Arithmetic Type Properties): Rename from
25205         'Integer Type Determination', since some of these macros apply
25206         to non-integer types.  Clarify what kinds of constant expressions
25207         these macros return.  Say when the arguments can be non-integers.
25208         Mention newly published macro EXPR_SIGNED.
25209         * lib/intprops.h (EXPR_SIGNED): Rename from _GL_INT_SIGNED, to
25210         make it public.  All uses changed.
25212         intprops: fix typo in clang port
25213         * lib/intprops.h (_GL_INT_OP_WRAPV): Fix misspelling of
25214         '__builtin_add_overflow' that is not caught by compiler.
25216 2015-11-05  Paul Eggert  <eggert@cs.ucla.edu>
25218         test-timespec: fix typo in previous change
25219         * tests/test-timespec.c (main): Fix typo that reduced test quality.
25221         timespec-sub: fix overflow bug; add tests
25222         * lib/timespec-add.c (timespec_add):
25223         * lib/timespec-sub.c (timespec_sub):
25224         Work even if time_t is narrower than int (a theoretical
25225         possibility).  Redo code for a bit more clarity.
25226         * lib/timespec-sub.c (timespec_sub):
25227         Fix off-by-2 bug if a.tv_sec == TYPE_MINIMUM (time_t) and 0 < b.tv_sec.
25228         * modules/timespec-tests, tests/test-timespec.c: New files.
25230         intprops-test: suppress -Woverlength-strings
25231         Problem reported by Pádraig Brady in:
25232         http://lists.gnu.org/r/bug-gnulib/2015-11/msg00008.html
25233         It is not worth the hassle to port this test to compilers that
25234         cannot handle long strings in diagnostics.
25235         * tests/test-intprops.c [__GNUC__]: Ignore -Woverlength-strings.
25237 2015-11-03  Pádraig Brady  <P@draigBrady.com>
25239         quotearg: add quotearg_n_style_colon()
25240         This quotes with default options of the specified style,
25241         but with quoting enabled for instances of ':'.
25242         * lib/quotearg.h (quotearg_n_style_colon): Description and declaration.
25243         * lib/quotearg.c (quotearg_n_style_colon): New function implementation.
25245 2015-11-04  Paul Eggert  <eggert@cs.ucla.edu>
25247         intprops: revise _WRAPV macros, revert _OVERFLOW
25248         The incompatible changes to the _OVERFLOW macros were too much of
25249         a hassle in practice, so revert them.  Instead, change the new
25250         _WRAPV macros to make them closer in behavior to GCC 5's new
25251         builtin_add_overflow etc. functions.  No other software was using
25252         these newly-added macros yet, so this should be OK.
25253         * NEWS: Revert previous change, since the incompatible change
25254         has been reverted, and nobody used the incompatible version.
25255         * doc/intprops.texi (Wraparound Arithmetic, Integer Type Overflow):
25256         Document revised behavior.
25257         (Integer Range Overflow): Adjust example to match above revisions.
25258         * lib/intprops.h (INT_ADD_OVERFLOW, INT_SUBTRACT_OVERFLOW)
25259         (INT_MULTIPLY_OVERFLOW): Revert previous change, so that
25260         these can be used in integer constant expressions again.
25261         (INT_CONST_ADD_OVERFLOW, INT_CONST_SUBTRACT_OVERFLOW)
25262         (INT_CONST_MULTIPLY_OVERFLOW): Remove, as these are no longer
25263         needed.
25264         (INT_CONST_ADD_WRAPV, INT_CONST_SUBTRACT_WRAPV)
25265         (INT_NEGATE_WRAPV, INT_CONST_MULTIPLY_WRAPV, INT_DIVIDE_WRAPV)
25266         (INT_REMAINDER_WRAPV, INT_LEFT_SHIFT_WRAPV):
25267         Remove, as they did not seem that useful.
25268         (INT_ADD_WRAPV, INT_SUBTRACT_WRAPV, INT_MULTIPLY_WRAPV)
25269         (_GL_INT_OP_WRAPV, _GL_INT_OP_WRAPV_LONGISH)
25270         (_GL_INT_OP_WRAPV_VIA_UNSIGNED):
25271         Support new semantics.
25272         (__has_builtin): New macro, if not alreay defined.
25273         (_GL__GENERIC_BOGUS, _GL_INT_OP_CALC, _GL_INT_OP_CALC1): New macros.
25274         * tests/test-intprops.c (INT_CONST_DIVIDE_OVERFLOW)
25275         (INT_CONST_REMAINDER_OVERFLOW, INT_CONST_LEFT_SHIFT_OVERFLOW)
25276         (INT_CONST_DIVIDE_WRAPV, INT_CONST_REMAINDER_WRAPV)
25277         (INT_CONST_LEFT_SHIFT_WRAPV): Remove.
25278         (CHECK_SBINOP, CHECK_SSUM, CHECK_SUM1, CHECK_SSUM1)
25279         (CHECK_SDIFFERENCE, CHECK_SPRODUCT, CHECK_PRODUCT1, CHECK_SPRODUCT1):
25280         New macros.
25281         (CHECK_BINOP, CHECK_UNOP, main, CHECK_SUM): Test new behavior.
25283 2015-11-03  Jim Meyering  <meyering@fb.com>
25285         intprops: add parentheses for when OP has precedence lower than "-"
25286         * lib/intprops.h (_GL_INT_OP_WRAPV_VIA_UNSIGNED): In "a OP b - c",
25287         "a OP b" must be parenthesized for when OP is like "<<", which has
25288         lower precedence than the following "-". Reported by Pádraig Brady.
25290 2015-11-03  Pádraig Brady  <P@draigBrady.com>
25292         quotearg: constify get_quoting_style parameters
25293         * lib/quotearg.h (get_quoting_style): Mark parameter as const.
25294         * lib/quotearg.c (get_quoting_style): Likewise.
25296 2015-11-02  Pádraig Brady  <P@draigBrady.com>
25298         quotearg: add support for $'' shell escaping
25299         * lib/quotearg.h: Add "shell-escape" and "shell-escape-always"
25300         items and descriptions.
25301         * lib/quotearg.c (quotearg_buffer_restyled): Add support for the
25302         above types by quoting like "shell", but using $'...' syntax
25303         for non printable characters, which should provide unambiguous
25304         printable output for any input.
25305         * tests/test-quotearg-simple.c: Update accordingly.
25307 2015-11-02  Pádraig Brady  <P@draigBrady.com>
25309         maint: use a more standard return from mbrtowc test
25310         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): Don't return 1
25311         from the test program as this is non standard and often
25312         indicates an unhandled case in the test program.
25313         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): Likewise.
25315 2015-10-30  Paul Eggert  <eggert@cs.ucla.edu>
25317         intprops: add WRAPV and const flavors for GCC 5
25318         If available, use GCC 5's builtin functions for efficient integer
25319         overflow checking.  Also, add macros like INT_ADD_WRAPV efficently
25320         and safely compute the low-order bits of the correct answer.
25321         A downside of these efficient functions is that they cannot be
25322         used in constant expressions, so add macros like INT_CONST_ADD_OVERFLOW
25323         and INT_CONST_ADD_WRAPV that can be used even in constant expressions.
25324         * NEWS: Document the incompatible changes to INT_ADD_OVERFLOW etc.
25325         * doc/intprops.texi (Integer Properties, Integer Type Overflow):
25326         Document the changes.
25327         (Wraparound Arithmetic): New section.
25328         (Integer Range Overflow):
25329         Put this subsection last, since it's least useful.
25330         * lib/intprops.h (INT_CONST_ADD_OVERFLOW)
25331         (INT_CONST_SUBTRACT_OVERFLOW, INT_CONST_MULTIPLY_OVERFLOW):
25332         New macros, with the meaning that INT_ADD_OVERFLOW etc. used to have.
25333         (INT_CONST_ADD_WRAPV, INT_CONST_SUBTRACT_WRAPV)
25334         (INT_NEGATE_WRAPV, INT_CONST_MULTIPLY_WRAPV, INT_DIVIDE_WRAPV)
25335         (INT_REMAINDER_WRAPV, _GL_INT_OP_WRAPV, _GL_EXPR_CAST)
25336         (_GL_INT_OP_WRAPV_LONGISH, INT_ADD_WRAPV, INT_SUBTRACT_WRAPV)
25337         (INT_MULTIPLY_WRAPV, _GL_OP_OVERFLOW, _GL_OP_WRAPV, _GL_OP_WRAPV_GENSYM):
25338         New macros.
25339         (INT_ADD_OVERFLOW, INT_SUBTRACT_OVERFLOW, INT_MULTIPLY_OVERFLOW):
25340         Generate calls to GCC builtins if available, for speed.
25341         * tests/test-intprops.c (INT_CONST_DIVIDE_OVERFLOW)
25342         (INT_CONST_REMAINDER_OVERFLOW, INT_CONST_LEFT_SHIFT_OVERFLOW)
25343         (INT_CONST_DIVIDE_WRAPV, INT_CONST_REMAINDER_WRAPV)
25344         (INT_CONST_LEFT_SHIFT_WRAPV): New macros.
25345         (main, CHECK_BINOP, CHECK_UNOP, CHECK_SUM, CHECK_PRODUCT)
25346         (CHECK_QUOTIENT, CHECK_REMAINDER):
25347         Test WRAPV and CONST flavors (when available) too.
25349 2015-10-30  Pádraig Brady  <P@draigBrady.com>
25351         doc: use extended timezone format in iso-8601 example
25352         * doc/parse-datetime.texi: The standard states that extended format
25353         is to be used consistently throughout.
25354         Note that lib/parse-datetime.y can handle either tz format.
25356 2015-10-25  Paul Eggert  <eggert@cs.ucla.edu>
25358         stdalign: port to Sun C 5.9
25359         * doc/posix-headers/stdalign.texi: Document this.
25360         * lib/stdalign.in.h (_Alignas): Sun C 5.9 also supports
25361         __attribute__ ((__aligned__ (...))).
25363 2015-10-20  Paul Eggert  <eggert@cs.ucla.edu>
25365         time_rz: fix comment about tzalloc
25366         * lib/time_rz.c (tzalloc): Fix comment.
25368 2015-10-18  Paul Eggert  <eggert@cs.ucla.edu>
25370         stdalign: work around pre-4.9 GCC x86 bug
25371         * lib/stdalign.in.h (_Alignof): Work around bug in pre-4.9 GCC on
25372         x86, when -std=gnu11 is used.  Problem reported by Jim Meyering in:
25373         http://lists.gnu.org/r/bug-gnulib/2015-10/msg00038.html
25375 2015-10-18  Pádraig Brady  <P@draigBrady.com>
25377         maint.mk: sc_tight_scope: remove extraneous expressions
25378         * top/maint.mk (tight_scope): This is not really required since
25379         commit 3ef58f46 as sed_wrap ensures we don't get an empty expression
25380         that matches all nm entries.  But it does remove extraneous entries
25381         that may be confusing or cause issue in future maintenance.
25383 2015-10-18  Paul Eggert  <eggert@cs.ucla.edu>
25385         time_rz: return NULL if localtime_r fails
25386         * lib/time_rz.c (localtime_rz): Return NULL if localtime_r fails,
25387         while still attempting to pacify bleeding-edge GCC.
25389         fts: port to C11 alignof
25390         * doc/posix-headers/stdalign.texi (stdalign.h):
25391         Document the C11 restriction.
25392         * lib/fts.c: Include stddef.h, for max_align_t.
25393         (fts_alloc): Align using max_align_t, not FTSENT.
25394         * modules/fts (Depends-on): Add stddef.
25396 2015-10-18  Jim Meyering  <meyering@fb.com>
25398         time_rz: avoid warning from bleeding-edge gcc's -Wnonnull
25399         Compiling with gcc version 6.0.0 20151017 (experimental) (GCC), I
25400         would see this:
25402         lib/time_rz.c: In function 'localtime_rz':
25403         lib/time_rz.c:292:15: error: nonnull argument 'tm' compared to NULL \
25404           [-Werror=nonnull]
25405                    if (tm && !save_abbr (tz, tm))
25406                        ^
25408         That was complaining about "tm" because it is a parameter that was
25409         declared with the __nonnull__ attribute.
25410         * lib/time_rz.c (localtime_rz): Don't bother setting "tm" to the
25411         result of localtime_r.
25413 2015-10-17  Jim Meyering  <meyering@fb.com>
25415         maint.mk: _gl_TS_function_match: fix "extern" name extracting regexp
25416         * top/maint.mk (_gl_TS_function_match): This heuristic extern-function-
25417         name-extraction regexp mistakenly used \S+, and would mistakenly
25418         extract "*F" from "extern int *F()" rather than the desired "F".
25419         Use \w+ instead.
25421 2015-10-17  Jim Meyering  <meyering@fb.com>
25423         maint.mk: sc_tight_scope: factor and support OS X
25424         * top/maint.mk (_gl_tight_scope): Address three issues:
25425         - factor out four instances of code that wraps a string in "^...$"
25426         - allow nm-reported symbol names to have an optional leading "_"
25427         - add "main" to the list of ignored variable names, because on os x,
25428         "main" has nm-reported type "S" in the variable-checking section.
25430 2015-10-16  Dmitry Smirnov  <onlyjob@member.fsf.org>
25432         safe-alloc-tests: fix typo in license header
25433         * tests/test-safe-alloc.c: Mention LGPL 2.1, not 3.1
25435 2015-10-15  Simon Reinhardt  <simon@keinstein.org>
25437         copy-file: fix mem leak in error case
25438         * lib/copy-file.c (qcopy_file_preserving): Free the 32KiB buffer
25439         upon error opening or performing I/O to the src and dest files.
25441 2015-10-15  Mike Frysinger  <vapier@chromium.org>
25443         localename: control langinfo.h inclusion
25444         This header is only used to work around buggy behavior in old
25445         versions of glibc, so do not include it all the time.  Otherwise
25446         we get build failures on systems that do not provide langinfo.h.
25447         * lib/localename.c: Wrap langinfo.h include with same ifdefs used
25448         in the source later on.
25449         The patch was originally submitted to gettext as:
25450         https://lists.gnu.org/r/bug-gettext/2015-10/msg00011.html
25452 2015-10-13  Paul Eggert  <eggert@cs.ucla.edu>
25454         binary-io, math, pthread, sys_socket, u64, unistd: port to strict C
25455         * lib/binary-io.c, lib/math.c, lib/pthread.c, lib/sys_socket.c:
25456         * lib/u64.c, lib/unistd.c:
25457         Append 'typedef int dummy;', to pacify compilers that are picky
25458         about empty translation units.
25460 2015-10-12  Pino Toscano  <ptoscano@redhat.com>
25462         accept4-tests: fix to avoid non portable flags
25463         * tests/test-accept4.c (main): Pass only SOCK_* flags to accept4(),
25464         as they are the only documented ones, and passing others may trigger
25465         EINVAL (seen on FreeBSD 10.1-RELEASE).
25466         * doc/glibc-functions/accept4.texi: Mention that we don't provide
25467         the SOCK_CLOEXEC or SOCK_NONBLOCK defines.
25469 2015-10-06  Pavel Raiskup  <praiskup@redhat.com>
25471         gnulib-tool: fix tests of 'extensions' module
25472         This complements f8fe25fab60e3c687a124 commit.
25473         * gnulib-tool (func_emit_pre_early_macros): New function, it wraps
25474         emitting of initial gl_EARLY macros.
25475         (func_import, func_create_testdir): All dumps of gl_PROG_AR_RANLIB
25476         replaced with func_emit_pre_early_macros call.
25478 2015-10-06  Paul Eggert  <eggert@cs.ucla.edu>
25480         unicase/locale-language: fix typo in utf-8 cookie
25481         * lib/unicase/locale-languages.gperf: Fix gperf input file format.
25482         Problem reported by Zbigniew Jędrzejewski-Szmek.
25484 2015-10-02  Paul Eggert  <eggert@cs.ucla.edu>
25486         xalloc: do not worry about GCC 5 warning on 32 bit
25487         * lib/xalloc.h: Revert previous change.
25488         I found a better way to fix this in coreutils.
25490 2015-10-02  Pádraig Brady  <P@draigBrady.com>
25492         xalloc: avoid GCC 5.1 warning on 32 bit
25493         * lib/xalloc.h: Disable -Wstrict-overflow for uses of
25494         xalloc_oversized(), which was seen to give this warning
25495         on GCC 5.1 on 32 bit: "assuming signed overflow does not occur
25496         when simplifying conditional".
25498 2015-10-02  Daiki Ueno  <ueno@gnu.org>
25500         uniname/uniname-tests: avoid compiler warnings
25501         * tests/uniname/test-uninames.c (fill_names, fill_aliases): Remove
25502         unused local variables.
25503         (test_alias_lookup): Fix alias name display in failure cases.
25505 2015-09-26  Paul Eggert  <eggert@cs.ucla.edu>
25507         c-ctype: do not worry about EBCDIC + char signed
25508         Drop support for EBCDIC with char being signed, as this breaks too
25509         many programs.  Problem reported by Ben Pfaff in:
25510         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00053.html
25511         * lib/c-ctype.h: Verify that we are not using EBCDIC with
25512         char being signed.
25513         (_C_CTYPE_LOWER_A_THRU_F_N): New macro.
25514         (_C_CTYPE_LOWER_N, _C_CTYPE_A_THRU_F): Use it.
25515         (_C_CTYPE_DIGIT, _C_CTYPE_LOWER, _C_CTYPE_PUNCT, _C_CTYPE_UPPER):
25516         (c_isascii, c_isgraph, c_isprint, c_ispunct, c_tolower, c_toupper):
25517         * tests/test-c-ctype.c (test_all):
25518         Simplify by assuming standard char values cannot be negative.
25519         * tests/test-c-ctype.c (NCHARS, to_char): Remove; all uses removed.
25521 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
25523         c-ctype: port better to z/OS EBCDIC
25524         Problems reported by Daniel Richard G. in:
25525         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00050.html
25526         * lib/c-ctype.h (_C_CTYPE_CNTRL): Rewrite in terms of
25527         the C standard escapes and _C_CTYPE_OTHER_CNTRL.
25528         (_C_CTYPE_OTHER_CNTRL): New macro.
25529         * tests/test-c-ctype.c (test_all): Test from CHAR_MIN, not
25530         from SCHAR_MIN, as the functions are defined only from values
25531         promoted from char or from unsigned char, not necessarily from
25532         signed char.
25534 2015-09-25  Pavel Raiskup  <praiskup@redhat.com>
25536         gnulib-common.m4: fix gl_PROG_AR_RANLIB/AM_PROG_AR clash
25538         The gl_PROG_AR_RANLIB (it is always called by gl_EARLY) sets AR
25539         and ARFLAGS variables.  Doing this unconditionally could break
25540         later Automake's AM_PROG_AR invocation (at least it's
25541         AC_CHECK_TOOLS call to detect correct 'ar' binary).
25543         Original purpose of the gl_PROG_AR_RANLIB was only to handle the
25544         Amsterdam Compiler Kit, so make the previous code to have effects
25545         only on ACK, and rather automatically call the Automake's
25546         AM_PROG_AR as soon as possible to decide other cases.
25548         References:
25549         http://lists.gnu.org/r/bug-gnulib/2015-07/msg00001.html
25551         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): AC_BEFORE AM_PROG_AR.
25552         Set the AR/ARFLAGS to ACK defaults OR call AM_PROG_AR.  If neither
25553         is possible, keep setting AR/ARFLAGS to reasonable defaults.
25554         * gnulib-tool (func_import): Put the gl_USE_SYSTEM_EXTENSIONS
25555         right before gl_PROG_AR_RANLIB into gnulib-comp.m4 (if the
25556         'extensions' module is used.
25557         * modules/extensions (configure.ac-early): Remove as this snippet
25558         is added to gnulib-comp.m4 earlier anyway.
25560 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
25562         sockets: MS Windows initalization fixes
25563         Problem reported by Test User in:
25564         http://lists.gnu.org/r/help-shishi/2015-09/msg00001.html
25565         * lib/sockets.h (SOCKETS_1_0, SOCKETS_2_0, SOCKETS_2_1):
25566         Correct the endianness.
25567         * lib/sockets.c (gl_sockets_startup): Return 2 on any version
25568         number mismatch, not just on <.  Cleanup before any such failure.
25570 2015-09-25  Mats Erik Andersson  <gnu@gisladisker.se>
25572         gc: fix detection of installed libgcrypt version
25573         * m4/gc.m4: Use AM_PATH_LIBCRYPT to test for libcrypt versions
25574         at least as recent as 1.4.4.  The previously used macro is not
25575         available now, since modules were removed in version 1.6.0.
25577 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
25579         c-ctype: rewrite to use inline functions
25580         This simplifies maintenance, since it makes for just one
25581         implementation of each function, letting the compiler have the fun
25582         of optimization.  In practice this works well nowadays with GCC.
25583         E.g., c_isascii might need only three instructions even though the
25584         source code lists every ASCII character individually in a large
25585         switch statement.
25586         Also, fix some z/OS porting bugs reported by Daniel Richard G. in:
25587         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00037.html
25588         * NEWS: Document the API change.
25589         * lib/c-ctype.c: Drastically simplify, since this now just expands
25590         inline functions.
25591         * lib/c-ctype.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
25592         (C_CTYPE_INLINE): New macro.
25593         (C_CTYPE_CONSECUTIVE_DIGITS, C_CTYPE_CONSECUTIVE_LOWERCASE)
25594         (C_CTYPE_CONSECUTIVE_UPPERCASE): Remove.
25595         Verify that either ASCII or EBCDIC is being used.
25596         (_C_CTYPE_SIGNED_EBCDIC, _C_CTYPE_CNTRL, _C_CTYPE_A_THRU_F_N)
25597         (_C_CTYPE_DIGIT_N, _C_CTYPE_LOWER_N, _C_CTYPE_UPPER_N)
25598         (_C_CTYPE_CASES, _C_CTYPE_A_THRU_F, _C_CTYPE_DIGIT, _C_CTYPE_LOWER)
25599         (_C_CTYPE_UPPER, _C_CTYPE_PUNCT_PLAIN):
25600         New private macros.
25601         (_C_CTYPE_CNTRL): In EBCDIC, '\x07' is a control, not '\xff'.
25602         (c_isalnum, c_isalpha, c_isascii, c_isblank, c_iscntrl, c_isdigit)
25603         (c_isgraph, c_islower, c_isprint, c_ispunct, c_isspace, c_isupper)
25604         (c_isxdigit, c_tolower, c_toupper): Now inline functions.
25605         (c_tolower, c_toupper): When converting, return the unsigned char,
25606         as that is what z/OS does.
25607         * lib/c-strcaseeq.h (CASEEQ): Simplify in the light of the removal
25608         of some c-ctype.h macros.
25609         * modules/c-ctype (Depends-on): Add extern-inline; remove verify.
25610         * tests/test-c-ctype.c (test_all): Fix test for c_toupper and
25611         c_tolower promotion to be compatible with z/OS.
25613 2015-09-24  Pavel Raiskup  <praiskup@redhat.com>
25615         gitlog-to-changelog: trim only trailing whitespaces
25616         This is fix for --format regression introduced by commit
25617         2b93079a5d1baa4d;  it caused that --format='%s%n%n%b%n' (see the
25618         doubled %n string) had no effect anymore.  This format
25619         specification has been used e.g. by GNU paxuitils (commit
25620         edfd8bcc3).
25622         * build-aux/gitlog-to-changelog (main): Stop squashing multiple
25623         newlines in commmit messages.
25625 2015-09-23  Paul Eggert  <eggert@cs.ucla.edu>
25627         Test that c_iscntrl agrees with iscntrl, etc.
25628         Suggested by Daniel Richard G. in:
25629         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00034.html
25630         * modules/c-ctype-tests (Depends-on): Add ctype.
25631         * tests/test-c-ctype.c: Include <ctype.h>.
25632         (NCHARS): New constant.
25633         (test_agree_with_C_locale): New function.
25634         (main): Use it.
25635         (test_all): Use named constants.
25637         c-ctype: improve c_isascii testing
25638         * tests/test-c-ctype.c (test_all): Port c_isascii test to EBCDIC.
25639         Add a test to count the number of ASCII characters.
25641 2015-09-22  Paul Eggert  <eggert@cs.ucla.edu>
25643         savewd: remove SAVEWD_CHDIR_READABLE
25644         It was problematic in the light of file systems that ignore umask.
25645         Problem reported by Sebastian Unger in: http://bugs.gnu.org/21534
25646         * NEWS: Document this.
25647         * lib/mkancesdirs.c (mkancesdirs): MAKE_DIR now returns 0 if
25648         successful, -1 (setting errno) on failure, rather than something
25649         more complicated than that.
25650         * lib/mkdir-p.c (make_dir_parents):
25651         Do not use SAVEWD_CHDIR_READABLE.
25652         * lib/savewd.c (savewd_chdir):
25653         Remove support for SAVEWD_CHDIR_READABLE.
25654         * lib/savewd.h (SAVEWD_CHDIR_READABLE): Remove.
25656         c-ctype: port better to EBCDIC
25657         Problems reported by Daniel Richard G. in
25658         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00020.html
25659         * lib/c-ctype.c: Include <limits.h>, for CHAR_MIN and CHAR_MAX.
25660         Include "verify.h".
25661         (C_CTYPE_ASCII, C_CTYPE_CONSECUTIVE_DIGITS)
25662         (C_CTYPE_CONSECUTIVE_LOWERCASE, C_CTYPE_CONSECUTIVE_UPPERCASE):
25663         Define as enum constants with value false, if not defined, so that
25664         code can use 'if' instead of 'ifdef'.  Using 'if' helps make the
25665         code more portable, as both branches of the 'if' are compiled on
25666         all platforms.
25667         (C_CTYPE_EBCDIC): New constant.
25668         Verify that the character set is either ASCII or EBCDIC.
25669         (to_char): New static function.
25670         (c_isascii, c_iscntrl):
25671         Assume standard control-character assignments for EBCDIC.
25672         (c_isalnum, c_isalpha, c_isdigit, c_islower, c_isgraph, c_isprint)
25673         (c_ispunct, c_isupper, c_isxdigit, c_tolower, c_toupper):
25674         Rewrite to use 'if' instead of 'ifdef'.
25675         Use to_char if non-ASCII.  Prefer <= to >=.
25676         Prefer true and false to 1 and 0, for booleans.
25677         (c_iscntrl): Use 'if', not 'ifdef'.
25678         * modules/c-ctype (Depends-on): Add verify.
25679         * tests/test-c-ctype.c: Include <limits.h>, for CHAR_MIN
25680         (to_char): New function.
25681         (test_all): Port to EBCDIC.  Add some more tests, e.g., for c_ispunct.
25683 2015-09-21  Pádraig Brady  <P@draigBrady.com>
25685         nanosleep: fix return code for interrupted replacement
25686         * lib/nanosleep.c (nanosleep): In the replaced nanosleep, ensure
25687         that we return -1 in the case the call is interrupted by a signal,
25688         rather than the current value of 1.
25689         Diagnosed and tested by Daniel Richard G.
25691 2015-09-19  Paul Eggert  <eggert@cs.ucla.edu>
25693         Diagnose ERE '()|\1'
25694         Problem reported by Hanno Böck in: http://bugs.gnu.org/21513
25695         * lib/regcomp.c (parse_reg_exp): While parsing alternatives, keep
25696         track of the set of previously-completed subexpressions available
25697         before the first alternative, and restore this set just before
25698         parsing each subsequent alternative.  This lets us diagnose the
25699         invalid back-reference in the ERE '()|\1'.
25701         regex: merge patches from libc
25703         2015-09-08  Joseph Myers  <joseph@codesourcery.com>
25704         Move bits/libc-lock.h and bits/libc-lockP.h out of bits/ (bug 14912).
25705         * lib/regex_internal.h:
25706         Include <libc-lock.h> instead of <bits/libc-lock.h>.
25708         2015-06-09  Joseph Myers  <joseph@codesourcery.com>
25709         Fix regcomp wcscoll, wcscmp namespace (bug 18497).
25710         * lib/regcomp.c (build_range_exp): Call __wcscoll instead of
25711         wcscoll.
25712         * lib/regexec.c (check_node_accept_bytes): Likewise.
25714         2015-06-05  Joseph Myers  <joseph@codesourcery.com>
25715         Fix regex wcrtomb namespace (bug 18496).
25716         * lib/regex_internal.c (build_wcs_upper_buffer): Call __wcrtomb
25717         instead of wcrtomb.
25719         2015-06-05  Joseph Myers  <joseph@codesourcery.com>
25720         Fix regex wctype namespace (bug 18495).
25721         * lib/regcomp.c (re_compile_fastmap_iter): Call __towlower
25722         instead of towlower.
25723         * lib/regex_internal.c (build_wcs_upper_buffer): Call __iswlower
25724         instead of iswlower.  Call __towupper instead of towupper.
25725         * lib/regex_internal.h (IS_WIDE_WORD_CHAR): Call __iswalnum
25726         instead of iswalnum.
25728         2015-01-07  Chris Metcalf  <cmetcalf@ezchip.com>
25729         * lib/regcomp.c (parse_bracket_exp): Initialize type to
25730         COLL_SYM in a couple of places to avoid uninitialized variable
25731         wanings on tilegx gcc 4.8.2.
25733         2014-11-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
25734         * lib/regex_internal.h: Remove NOT_IN_libc.
25736         2014-11-17  Andreas Schwab  <schwab@suse.de>
25737         * lib/regex_internal.h: Don't include <locale/elem-hash.h>.
25739         2014-09-11  Roland McGrath  <roland@hack.frob.com>
25740         Move findidx nested functions to top-level.
25741         * lib/regcomp.c [_LIBC]: #include <locale/weight.h>.
25742         (build_equiv_class) [_LIBC]: Don't #include it inside the function.
25743         Pass new arguments to findidx.
25744         * lib/regexec.c [RE_ENABLE_I18N] [_LIBC]: #include <locale/weight.h>.
25745         [RE_ENABLE_I18N] (check_node_accept_bytes) [_LIBC]:
25746         Don't #include it inside the function.  Pass new arguments to findidx.
25747         * lib/regex_internal.h:
25748         [!NOT_IN_libc] [_LIBC]: #include <locale/weight.h>.
25749         (re_string_elem_size_at): Don't #include it inside the function.
25750         Pass new arguments to findidx.
25752         2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
25753         Check if DEBUG is defined in regex_internal.c
25754         * lib/regex_internal.c: Check if DEBUG is defined and is set.
25756 2015-09-08   Assaf Gordon  <assafgordon@gmail.com>
25758         ceill: detect buggy OpenBSD implementation
25759         * m4/ceill.m4 (gl_FUNC_CEILL): Detect buggy openBSD implementation
25760         which returns zero for small values.  Discussed here:
25761         http://lists.gnu.org/r/bug-gnulib/2015-08/msg00010.html
25763 2015-09-08  Dave Chiluk  <chiluk@canonical.com>
25765         mountlist: add me_mntroot field on Linux machines
25766         * lib/mountlist.c (read_file_system_list): Populate me_mntroot in
25767         mount_entry so Linux machines based on /proc/self/mountinfo can
25768         distinguish between bind mounts and original mounts.  In reality bind
25769         mounts aren't treated differently than mountroot=/ mounts by the
25770         kernel, but the user often wants these bind mounts distinguished.
25771         * lib/mountlist.h (struct mount_entry): Add me_mntroot element.
25772         More details at https://pad.lv/1432871
25774 2015-09-08  Christian Egli  <christian.egli@sbs.ch>
25776         doc: Describe to use multiple instances of gnulib
25777         * doc/gnulib-tool.texi: Add a section to the manual outlining how two
25778         instances of gnulib with different modules can be used, for example one
25779         for a lib and another one for associated tools.
25781 2015-09-01  Pádraig Brady  <P@draigBrady.com>
25783         base32: mark function as __attribute__ const
25784         * lib/base32.h (isbase32): Mark __attribute__ const as
25785         suggested by GCC, and consistent with the base64 module.
25787 2015-08-20  Daiki Ueno  <ueno@gnu.org>
25789         gnulib-tool: don't transform binary files with sed
25790         * gnulib-tool (func_add_or_update): Don't apply sed_transform_* to
25791         .mo and .class files.
25792         Reported by Denis Denisov.
25794 2015-08-10  Daiki Ueno  <ueno@gnu.org>
25796         gperf: respect silent rules
25797         * modules/gperf (Makefile.am): Define V_GPERF, V_GPERF_, and
25798         V_GPERF_0 for silent rules.
25799         * modules/iconv_open (Makefile.am): Use V_GPERF.
25800         * modules/unicase/locale-language (Makefile.am): Likewise.
25801         * modules/unicase/special-casing (Makefile.am): Likewise.
25802         * modules/unictype/category-byname (Makefile.am): Likewise.
25803         * modules/unictype/combining-class-byname (Makefile.am): Likewise.
25804         * modules/unictype/joininggroup-byname (Makefile.am): Likewise.
25805         * modules/unictype/joiningtype-byname (Makefile.am): Likewise.
25806         * modules/unictype/property-byname (Makefile.am): Likewise.
25807         * modules/unictype/scripts (Makefile.am): Likewise.
25808         * modules/uninorm/composition (Makefile.am): Likewise.
25810 2015-08-03  Paul Eggert  <eggert@cs.ucla.edu>
25812         Improve port of stdalign to C++11
25813         Problem reported by Sundaram in:
25814         http://lists.gnu.org/r/bug-gnulib/2015-08/msg00003.html
25815         * lib/stdalign.in.h (alignof, alignas): Don't define if C++11 or newer.
25816         (__alignas_is_defined): Define if C++11 or newer.
25818 2015-08-01  Assaf Gordon  <assafgordon@gmail.com>  (tiny change)
25820         pmccabe2html: fix gawk regex escaping
25821         * build-aux/pmccabe2html: Add one more backslash to properly
25822         escape the gsub replacement value.  Fixes this error:
25823         gawk: ./build-aux/pmccabe2html:425: \
25824         warning: escape sequence `\&' treated as plain `&'
25826 2015-07-29  Paul Eggert  <eggert@cs.ucla.edu>
25828         time_rz: port to pedantic memcpy
25829         * lib/time_rz.c (tzalloc): Pacify pedantic memcpy implementations
25830         that reject memcpy (..., NULL, 0).
25832 2015-07-27  Paul Eggert  <eggert@cs.ucla.edu>
25834         time_rz: port better to MinGW
25835         Don't change tzname, as this makes MinGW dump core (Bug#21020).
25836         Instead, store the tzname copy in the struct tm_zone object.
25837         Problem reported by Eli Zaretskii in: http://bugs.gnu.org/21020#48
25838         * lib/strftime.c [!_LIBC]:
25839         * lib/time_rz.c: Include time-internal.h.
25840         * lib/strftime.c (strftime_case_) [!HAVE_TM_ZONE]: Infer the zone
25841         name from *TZ rather than from TZNAME, doable because *TZ now has
25842         a tzname_copy member.
25843         * lib/time-internal.h: New file, with contents taken from
25844         lib/time_rz.c.  It's separate because strftime.c now accesses
25845         struct tm_zone members.
25846         (struct tm_zone) [HAVE_TZNAME && !HAVE_TM_ZONE]:
25847         New member tzname_copy.
25848         * lib/time_rz.c (struct tm_zone): Move to time-internal.h.
25849         (tzalloc) [HAVE_TZNAME && !HAVE_TM_ZONE]:
25850         Initialize tzname_copy member.
25851         (save_abbr) [HAVE_TZNAME && !HAVE_TM_ZONE]: Save abbreviation
25852         in tzname_copy member.
25853         (revert_tz) [HAVE_TZNAME]: Remove no-longer-needed tzname saving.
25854         (restore_tzname): Remove; no longer needed.  All calls removed.
25855         * modules/time_rz (Files): Add lib/time-internal.h.
25857         time: port __need_time_t to MinGW
25858         * lib/time.in.h (__need_time_t): Do not treat specially on MinGW.
25859         Fix reported by Eli Zaretskii in: http://bugs.gnu.org/21020#36
25861 2015-07-25  Paul Eggert  <eggert@cs.ucla.edu>
25863         strftime: fix newly-introduced bug on Solaris
25864         * lib/strftime.c (strftime_case_): Set the local variable 'zone'
25865         consistently at the start, rather than doing some of the setup at
25866         the start and some in the %Z format spec.  This is cleaner, and
25867         works better with time_rz on platforms like Solaris where struct
25868         tm lacks a tm_zone member, as when !HAVE_TM_GMTOFF %z's calls to
25869         mktime_z and localtime_rz can mess up the tzname cache.
25871         test-strftime: test for Solaris bug
25872         * modules/strftime-tests (Depends-on): Add strerror.
25873         * tests/test-strftime.c: Include <errno.h>.
25874         (posixtm_test): New function, containing the old 'main'.
25875         (struct tzalloc_test, struct localtime_rz_test): New types.
25876         (TZ, LT): New static vars.
25877         (tzalloc_test): New function.
25878         (main): Rewrite in terms of posixtm_test and tzalloc_test.
25880         time_rz: port to Solaris etc.
25881         Works around a tzname problem on platforms like Solaris that have
25882         tzname but not tm_zone, by setting tzname at the appropriate time
25883         and restoring it later.
25884         * lib/time_rz.c (tzname_address, tzname_value) [HAVE_TZNAME]:
25885         New static vars.
25886         (save_abbr) [HAVE_TZNAME]: Set them.
25887         (revert_tz) [HAVE_TZNAME]: Clear or use them.
25888         (restore_tzname): New function.
25889         (localtime_rz, mktime_z): Use it.
25891         time_rz: now LGPL
25892         * modules/time_rz (License): Now LGPL, because strftime depends on it.
25894         time_rz: make a constant 'const'
25895         * lib/time_rz.c (local_tz): Now const.
25897         time_rz: fix off-by-one typo
25898         * lib/time_rz.c (extend_abbrs): Fix off-by-one typo.
25900 2015-07-23  Paul Eggert  <eggert@cs.ucla.edu>
25902         fprintftime, strftime: use timezone_t args
25903         * NEWS: Document the change.
25904         * lib/fprintftime.h (fprintftime):
25905         * lib/strftime.c (extra_args) [my_strftime]:
25906         * lib/strftime.h (nstrftime):
25907         Time zone arg is now of type timezone_t, not int.
25908         * lib/strftime.c (mktime_z) [_LIBC]: New macro.
25909         (__gmtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: Remove; no longer used.
25910         (my_strftime) [emacs && !my_strftime]:
25911         (emacs_strftimeu) [emacs && !FPRINTFTIME]:
25912         Remove; Emacs doesn't need this any more.
25913         (HAVE_TZSET) [my_strftime]: Unset, since we no longer want
25914         fprintftime and nstrftime to call tzset.
25915         (ut) [!my_strftime]: Remove, replacing with ...
25916         (tz) [!my_stftime]: ... this new macro.  All uses changed.
25917         (strftime_case_): Use localtime_rz and mktime_z instead
25918         of localtime_r and mktime.
25919         * modules/fprintftime (Depends-on): Add time_rz.
25920         * modules/strftime (Depends-on): Add time_rz.  Remove time_r.
25921         * tests/test-strftime.c (main): Adjust to new nstrftime API.
25923         time_rz: new module
25924         * MODULES.html.sh: Add time_rz.
25925         * lib/time_rz.c, m4/time_rz.m4, modules/time_rz: New files.
25926         * lib/time.in.h (timezone_t, tzalloc, tzfree, localtime_rz, mktime_z):
25927         New decls if _GNU_SOURCE && @GNULIB_TIME_RZ@ && ! @HAVE_TIMEZONE_T@.
25928         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS):
25929         New var HAVE_TIMEZONE_T (default 0).
25930         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
25931         New var GNULIB_TIME_RZ (default 0).
25932         * modules/time (time.h): Substitute the new vars.
25934         flexmember: license is now unlimited
25935         * modules/flexmember (License): Change to unlimited,
25936         since its only source file gives an unlimited license.
25938 2015-07-15  Eric Blake  <eblake@redhat.com>
25940         maint: update copyright paper procedures
25941         * config/srclist.txt: Drop outdated files.
25942         * doc/Copyright/conditions.txt: Update to latest.
25943         * doc/Copyright/assign.changes.manual: Delete.
25944         * doc/Copyright/assign.future.manual: Likewise.
25945         * doc/Copyright/assign.manual: Likewise.
25946         * doc/Copyright/assign.translation.manual: Likewise.
25947         * doc/Copyright/disclaim.changes.manual: Likewise.
25948         * doc/Copyright/disclaim.manual: Likewise.
25949         * doc/Copyright/disclaim.program: Likewise.
25951 2015-07-07  Daiki Ueno  <ueno@gnu.org>
25953         localename: fix link error on Illumos
25954         Illumos defines __sun, but does not have getlocalename_l nor the
25955         equivalent.  This partially reverts commit 387c214.
25956         * m4/localename.m4 (gl_LOCALENAME): Check if getlocalename_l is
25957         available, as well as uselocale.
25958         * lib/localename.c [HAVE_USELOCALE && __sun]: Don't fallback to
25959         use getlocalename_l if it is not available.
25961 2015-07-07  Daiki Ueno  <ueno@gnu.org>
25963         unistr/uN-strtok-tests: avoid a trivial leak
25964         * tests/unistr/test-u-strtok.h (test_u_strtok): Untabify.  Free
25965         input and delim after the multibyte delimiter tests.
25967 2015-07-04  Paul Eggert  <eggert@cs.ucla.edu>
25969         file-has-acl, acl-permissions: fix HP-UX typos
25970         Problem reported by John David Anglin in: http://bugs.gnu.org/20979
25971         * lib/file-has-acl.c (file_has_acl):
25972         * lib/set-permissions.c (context_acl_from_mode)
25973         (context_aclv_from_mode, set_acls):
25974         Fix some obvious typos when HAVE_GETCL /* HP-UX */.
25975         They were introduced by the recent ACL changes.
25977         regex: match current GNU grep behavior
25978         These symbols have not matched GNU grep behavior for quite some time.
25979         Fix prompted by Balazs Kezes bug report at: http://bugs.gnu.org/20974
25980         * lib/regex.h (RE_SYNTAX_GREP, RE_SYNTAX_EGREP):
25981         Change to match current GNU behavior.
25982         Simplify by expressing it as differences from POSIX BREs and EREs.
25983         (RE_SYNTAX_POSIX_EGREP): No longer differs from GNU behavior.
25985 2015-07-03  Jim Meyering  <meyering@fb.com>
25987         set-permissions.c: adjust acl_from_mode's cpp guard
25988         * lib/set-permissions.c (acl_from_mode): Guard with #ifdef
25989         directives identical to those guarding the sole use.
25990         Otherwise, on some systems, we'd get a warning about
25991         the function being defined but not used.
25992         Also, filter through cppi to correct misleading indentation
25993         of cpp directives.
25995 2015-07-03  Pádraig Brady  <P@draigBrady.com>
25997         tests: restrict shells to those that support 'local'
25998         The local keyword is very widely supported and used
25999         in tests in coreutils and grep at least.  Therefore
26000         restrict to testing with shells that support it.
26001         This mainly excludes /bin/sh on Solaris.
26002         * tests/init.sh (gl_shell_test_script_): Add a test for 'local'.
26004 2015-07-03  Seiya Kawashima  <skawashima@uchicago.edu>  (tiny change)
26005         and Daiki Ueno  <ueno@gnu.org>
26007         unistr/uN-strtok: handle multibyte delimiters
26008         Previously, uN_strtok moved PTR to the next unit to the token end.
26009         When DELIM contained a multibyte character, the new position could
26010         be a middle of a multibyte character.
26011         * lib/unistr/u-strtok.h (FUNC): Place PTR at the next character
26012         after the token.
26013         * lib/unistr/u8-strtok.c (U_STRMBLEN): New macro.
26014         * lib/unistr/u16-strtok.c (U_STRMBLEN): New macro.
26015         * lib/unistr/u32-strtok.c (U_STRMBLEN): New macro.
26016         * modules/unistr/u8-strtok (Depends-on): Depend on
26017         unistr/u8-strmblen.
26018         * modules/unistr/u16-strtok (Depends-on): Depend on
26019         unistr/u16-strmblen.
26020         * modules/unistr/u32-strtok (Depends-on): Depend on
26021         unistr/u32-strmblen.
26022         * tests/unistr/test-u-strtok.h: New file.
26023         * tests/unistr/test-u8-strtok.c: New file.
26024         * tests/unistr/test-u16-strtok.c: New file.
26025         * tests/unistr/test-u32-strtok.c: New file.
26026         * modules/unistr/u8-strtok-tests: New file.
26027         * modules/unistr/u32-strtok-tests: New file.
26028         * modules/unistr/u16-strtok-tests: New file.
26030 2015-07-02  Friedrich Haubensak  <hsk@fli-leibniz.de>
26032         update-copyright: fix test failure with perl >= 5.22 (trivial)
26033         * build-aux/update-copyright: Escape a literal left curly bracket,
26034         required with perl >= 5.22
26036 2015-07-02  Daiki Ueno  <ueno@gnu.org>
26038         u{16,32}-strstr-tests: relax timeout condition
26039         On slower platforms (e.g., Solaris 10/SPARC), u{16,32}-strstr
26040         tests can take longer than 5 seconds to complete.
26041         Reported by Dagobert Michelsen in:
26042         https://lists.gnu.org/r/bug-libunistring/2015-06/msg00006.html
26043         * tests/unistr/test-u16-strstr.c (main): Increase timeout from 5
26044         seconds to 10 seconds.
26045         * tests/unistr/test-u32-strstr.c (main): Likewise.
26047 2015-07-01  Pavel Raiskup  <praiskup@redhat.com>
26049         gnulib-common.m4: change the ARFLAGS default to 'cr'
26050         In some GNU/Linux distributions people started to compile 'ar'
26051         binary with --enable-deterministic-archives (binutils project).
26052         That, however, in combination with previous autotools long time
26053         working default AR{_,}FLAGS=cru causes warnings on such
26054         installations:
26055         ar: `u' modifier ignored since `D' is the default (see `U')
26056         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Set ARFLAGS='cr' if not
26057         set already.
26059 2015-07-01  Pavel Raiskup  <praiskup@redhat.com>
26061         selinux-h: avoid double free after *getfilecon()
26062         Originally reported by Ben Shelton on bug-tar:
26063         http://lists.gnu.org/r/bug-tar/2015-04/msg00009.html
26064         * lib/getfilecon.c (map_to_failure): Set the already freed '*con'
26065         pointer to NULL.  Man getfilecon(3) says that any non-NULL '*con'
26066         param should be freed by freecon(3) (regardless the return value).
26068 2015-07-01  Pavel Fedin  <p.fedin@samsung.com>
26070         fix pty related tests issues on Windows (trivial)
26071         * lib/grantpt.c (grantpt): grantpt.c seems to be never used on Windows,
26072         however it's still present in tests/ subdirectory of the final project.
26073         Therefore avoid it to pass `make check`.
26074         * tests/test-openpty.c (main): Windows has no PTYs and gnulib's openpty()
26075         will just return -ENOSYS, so avoid this non applicable test allowing
26076         the build to proceed.
26078 2015-07-01  Pádraig Brady  <P@draigBrady.com>
26080         acl: fix definition of acl_from_mode on FreeBSD
26081         This was causing basic coreutils copy operations to fail
26082         with ENOTSUP or ENOENT error messages.
26083         * lib/acl-internal.h (acl_from_mode): Only define when
26084         ! defined HAVE_ACL_FROM_TEXT.  That allows the version
26085         of acl_from_mode() defined in lib/set-permissions.c to
26086         be used on FreeBSD at least.
26087         * lib/set-permissions.c: Fix up comment spelling,
26088         and a redundant variable assignment; noticed in passing.
26090 2015-06-30  Pádraig Brady  <P@draigBrady.com>
26092         readutmp: port to FreeBSD >= 9
26093         * lib/readutmp.h: Map utmpxname() to setutxdb().
26094         With that coreutils who(1) and pinky(1) tests pass.
26096 2015-06-30  Paul Eggert  <eggert@cs.ucla.edu>
26098         mgetgroups: port to strict OS X
26099         The previous fix wasn't working, so use a bigger hammer (Bug#20923).
26100         * lib/mgetgroups.c: Ignore -Wpointer-sign diagnostics.
26101         (getgrouplist_gids) [HAVE_GETGROUPLIST]: Remove.  All uses removed.
26102         * m4/mgetgroups.m4 (gl_MGETGROUPS): Revert recent changes.
26104 2015-06-29  Paul Eggert  <eggert@cs.ucla.edu>
26106         mgetgroups: port to strict OS X
26107         * doc/glibc-functions/getgrouplist.texi (getgrouplist):
26108         Document the getgrouplist problem.
26109         * lib/mgetgroups.c (getgrouplist_gids) [HAVE_GETGROUPLIST]:
26110         New macro.
26111         (mgetgroups): Use it.
26112         * m4/mgetgroups.m4 (gl_MGETGROUPS):
26113         Check for OS X signature for getgrouplist.
26115 2015-06-29  Jim Meyering  <meyering@fb.com>
26117         linkat: fix invalid definition of LINKAT_SYMLINK_NOTSUP on OS X
26118         It started like this when building coreutils' latest on OS X,
26119         invoking ./configure with a nonempty --cache=.cache:
26121           lib/linkat.c:46:42: error: operator '||' has no right operand
26122           lib/linkat.c: In function 'rpl_linkat':
26123           lib/linkat.c:330:27: error: #if with no expression
26125         Here's linkat.c's line 46:
26127           #if !HAVE_LINKAT || LINKAT_SYMLINK_NOTSUP
26129         Here's some context:
26131           $ grep linkat_nofoll .cache
26132           gl_cv_func_linkat_nofollow=${gl_cv_func_linkat_nofollow=no}
26133           $ grep LINKAT_SYM lib/config.h
26134           #define LINKAT_SYMLINK_NOTSUP
26136         The problem is that m4/linkat.m4's gl_FUNC_LINKAT
26137         uses AC_CACHE_CHECK to set LINKAT_SYMLINK_NOTSUP,
26138         but that violates a tenet of AC_CACHE_CHECK: it must
26139         have no side effect other than setting its cache variable.
26141         What happens is that when the cache is set, we'd skip the
26142         code in that AC_CACHE_CHECK call, and leave LINKAT_SYMLINK_NOTSUP
26143         defined to whatever value it happened to have in configure's
26144         environment.  In my case, it was not defined, so this later code:
26146           AC_DEFINE_UNQUOTED([LINKAT_SYMLINK_NOTSUP], [$LINKAT_SYMLINK_NOTSUP],
26147             [Define to 1 if linkat can create hardlinks to symlinks])
26149         would emit code with an empty RHS.
26151         * m4/linkat.m4 (gl_FUNC_LINKAT): Move the setting of
26152         $LINKAT_SYMLINK_NOTSUP out of the AC_CACHE_CHECK code block.
26154 2015-06-28  Jim Meyering  <meyering@fb.com>
26156         mountlist: avoid an unused-label warning on OS X
26157         * lib/mountlist.c (read_file_system_list) [MOUNTED_GETMNTINFO]:
26158         Building on OS X, I saw a warning about the "free_then_fail" label
26159         being unused.  Give it the _GL_UNUSED_LABEL attribute.
26161         error.c: correct printf-style format: %d -> %u
26162         * lib/error.c (error_at_line): Correct __fxprintf format to use %u,
26163         rather than %d, to match the type of "line_number", unsigned int.
26165 2015-06-25  Pádraig Brady  <P@draigBrady.com>
26167         fts: avoid reading beyond the heap allocation
26168         GCC 5.1.1 with -O2 and -fsanitize=address reports
26169         a read of size 4 from a heap object of size 3 is indeed invalid,
26170         though this may be due to incorrect padding assumptions by GCC, see:
26171         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66661
26172         * lib/fts.c (fts_alloc): Increase allocation to alignof(FTSENT).
26173         * modules/fts: Depend on stdalign.
26175 2015-06-24  Pádraig Brady  <P@draigBrady.com>
26177         savedir: avoid undefined behavior in qsort call
26178         GCC 5.1.1 -fsanitize=undefined with glibc 2.21 is returning:
26179         "runtime error: null pointer passed as argument 1,
26180          which is declared to never be null"
26181         * lib/savedir.c (streamsavedir): Avoid the call with no entries.
26183 2015-06-24  Pádraig Brady  <P@draigBrady.com>
26185         userspec: avoid undefined behavior in gettext call
26186         GCC 5.1.1 -fsanitize=undefined with glibc 2.21 is returning:
26187         "runtime error: null pointer passed as argument 2,
26188          which is declared to never be null"
26189         * lib/userspec.c (parse_with_separator): Avoid passing NULL to gettext()
26191 2015-06-20  Glenn Morris  <rgm@gnu.org>
26193         gitlog-to-changelog: improve gitmerge.el commits
26194         Let the Emacs ChangeLog generation process exclude "skipped"
26195         messages from merge commits (Bug#20717).
26196         * build-aux/gitlog-to-changelog: Handle gitmerge.el skipped commits.
26198 2015-06-20  Paul Eggert  <eggert@cs.ucla.edu>
26200         wchar: fix MinGW compilation warnings
26201         This lets Texinfo compile cleanly.  See Eli Zaretskii in:
26202         http://lists.gnu.org/r/bug-gnulib/2015-06/msg00050.html
26203         * lib/wchar.in.h: Do not use special invocation convention on MinGW.
26205 2015-06-20  Daiki Ueno  <ueno@gnu.org>
26207         uniname/uniname-tests: use pristine data files
26208         For copyright and maintenance reasons, use the data files from UCD
26209         without modification.
26210         * tests/uniname/test-uninames.c (FIELDLEN): Remove.
26211         (getfield): Remove.
26212         (aliases_count): New global variable.
26213         (fill_names): Skip comments and empty lines in the input.  Don't
26214         use getfield.
26215         (fill_aliases): Likewise.
26216         (main): Change the expected command line arguments to:
26217         NAMES... ["--" ALIASES...].
26218         * tests/uniname/test-uninames.sh: Adjust to the change in
26219         test-uninames.c.
26220         * tests/uniname/UnicodeDataNames.txt: Remove.
26221         * tests/uniname/UnicodeData.txt: New file, from Unicode 8.0.0.
26222         * tests/uniname/NameAliases.txt: Use the pristine copy of the data
26223         file from Unicode 8.0.0.
26225 2015-06-19  Pádraig Brady  <P@draigBrady.com>
26227         linked-list, linkedhash-list: avoid compiler warnings
26228         * lib/gl_anytree_list2.h: Add _GL_ATTRIBUTE_PURE to avoid
26229         -Werror=suggest-attribute=pure (from GCC 5.1.1).
26231 2015-06-19  Daiki Ueno  <ueno@gnu.org>
26233         libunistring: bump minimum version to 0.9.6
26234         * all modules depending on updated Unicode data: Regenerate.
26235         The modules are listed by a script that does:
26236         - for each file listed by: git show --oneline --name-only 705f4efc
26237           - deduce the containing modules, based on "Files:"
26238         - deduce the modules which depend on the containing modules, based
26239           on "Depends-on:"
26241 2015-06-18  Daiki Ueno  <ueno@gnu.org>
26243         uniname/uniname: update to Unicode 8.0.0
26244         * lib/uniname/uninames.h: Regenerate.
26245         * tests/uniname/NameAliases.txt: Update from Unicode 8.0.0.
26246         * tests/uniname/UnicodeDataNames.txt: Update from Unicode 8.0.0.
26248 2015-06-18  Daiki Ueno  <ueno@gnu.org>
26250         libunistring: update to Unicode 8.0.0
26251         * lib/gen-uni-tables.c (SIZEOF): New macro.
26252         (output_numeric): Increase the maximum number of fractions from
26253         128 to 160.  Increase the level3 value width from 7 bits to 8
26254         bits.  Use SIZEOF instead of a hard-coded integer.
26255         (output_blocks): Decrease the cut-off threshold from 0x30000 to
26256         0x28000.
26257         (fill_blocks): Increase the maximum number of blocks from 256 to
26258         384.  Use SIZEOF instead of a hard-coded integer.
26259         (get_lbp): Adjust to new characters added in Unicode 8.0.0.
26260         * lib/unictype/numeric.c (uc_numeric_value): Adjust the level3
26261         value width.
26262         * lib/unilbrk/lbrktables.c (unilbrk_table): Implement LBP21b and
26263         a new case added to LBP22.
26264         * lib/uniwidth/width.c (nonspacing_table_data): Add U+08E3,
26265         U+A69E, U+FE2E..U+FE2F, U+111CA..U+111CC, U+11300,
26266         U+115DC..U+115DD, U+1171D..U+1171F, U+11722..U+11725,
26267         U+11727..U+1172B, U+1DA00..U+1DA36, U+1DA3B..U+1DA6C, U+1DA75,
26268         U+1DA84, U+1DA9B..U+1DA9F, and U+1DAA1..U+1DAAF.
26269         * tests/uniwidth/test-uc_width2.sh: Same updates as in
26270         lib/uniwidth/width.c.
26271         * all generated files under lib/uni* and tests/uni*: Regenerate.
26273 2015-06-16  Pádraig Brady  <P@draigBrady.com>
26275         gnu-web-doc-update: add --mirror to remove stale files
26276         * build-aux/gnu-web-doc-update: Add a --mirror option to remove
26277         out of date files from the CVS server.  Since this is usually
26278         appropriate, a prompt is given when the option is not specified,
26279         along with the `cvs remove` command that would be run.
26281 2015-06-06  Paul Eggert  <eggert@cs.ucla.edu>
26283         acl-permissions: pacify -Wsuggest-attribute=const
26284         Problem reported by Masanari Iida in: http://bugs.gnu.org/20753
26285         * lib/acl-internal.h (free_permission_context):
26286         Declare with attribute const if ! (defined USE_ACL &&
26287         (HAVE_ACL_GET_FILE || defined GETACL)).
26289         fsync: document AIX misbehavior
26290         * doc/posix-functions/fsync.texi (fsync):
26291         Document failure on AIX with read-only file descriptor.
26293 2015-06-05  Jonathan Perkin  <jperkin@joyent.com>  (tiny change)
26295         stdio: Don't redefine gets when using C++
26296         * lib/stdio.in.h (gets): Disable warning on C++.
26298 2015-06-05  Paul Eggert  <eggert@cs.ucla.edu>
26300         acl-permissions: port to AIX, C89 HP-UX
26301         Problems reported by Michael Felt.
26302         * lib/file-has-acl.c (file_has_acl) [HAVE_STATACL]:
26303         * lib/get-permissions.c (get_permissions) [USE_ACL && HAVE_STATACL]:
26304         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]:
26305         * lib/set-permissions.c (set_acls) [HAVE_ACLX_GET && ACL_AIX_WIP]:
26306         Add cast for AIX, whose system calls are declared to accept
26307         char * even though the arguments are really char const *.
26308         * lib/get-permissions.c (get_permissions):
26309         If USE_ACL && HAVE_GETACL /* HP-UX */, don't assume C99.
26310         If USE_ACL && HAVE_STATACL /* older AIX */, add missing decl
26311         that broke a build.
26312         * lib/mountlist.c (read_file_system_list) [MOUNTED_VMOUNT]:
26313         Rework types to pacify xlc.
26315 2015-06-03  Pádraig Brady  <P@draigBrady.com>
26317         vasprintf-posix: avoid compiling vasnprintf where possible
26318         * modules/vasprintf-posix: Avoid compiling the large vasnprintf
26319         module where not required.  For example on a GNU/Linux system
26320         when gnulib-tool is run with the --conditional-dependencies option.
26322 2015-06-02  Pádraig Brady  <P@draigBrady.com>
26324         file-has-acl: fix build on Mac OS X 10
26325         This reverts commit f1b37e3a which doesn't work on Mac OS X >= 10.4
26326         which has an incompatible 6 parameter getxattr() call.
26327         * doc/glibc-functions/getxattr.texi: Mention the divergent getxattr()
26328         call on Mac OS X >= 10.4.
26329         * doc/glibc-functions/fgetxattr.texi: Likewise.
26330         * lib/file-has-acl.c: Revert to more complete combined check.
26331         * m4/acl.m4 (gl_FILE_HAS_ACL): Likewise.
26332         Reported by Jack Howarth.
26334 2015-06-02  Pádraig Brady  <P@draigBrady.com>
26336         prefix-gnulib-mk: remove no longer needed special case
26337         * build-aux/prefix-gnulib-mk (prefix): Since commit e3704b9c,
26338         continued lib_SOURCES lines are no longer present,
26339         so special case handling of such entries is not required.
26341 2015-06-01  Pádraig Brady  <P@draigBrady.com>
26343         acl: don't depend on the deprecated qacl module
26344         * modules/acl (Depends-on): Use q{copy,set}-acl instead.
26346 2015-06-01  Pádraig Brady  <P@draigBrady.com>
26348         gnulib-tool: concatenate lib_SOURCES to a single line
26349         * gnulib-tool: Refactor the line merging sed logic,
26350         and use that to output a single lib_SOURCES line for each module.
26351         gnulib using projects often postprocess this output to prepend
26352         subdir paths to each item, and having a single line simplifies this
26353         processing allowing better decoupling from the gnulib-tool output.
26355 2015-06-01  Pavel Fedin  <p.fedin@samsung.com>
26357         pthread_sigmask: discount system version if a simple macro (trivial)
26358         MinGW64 has: #define pthread_sigmask(H, S1, S2) 0
26359         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Call the
26360         function to ensure it's available.
26362 2015-05-31  Pádraig Brady  <P@draigBrady.com>
26364         readlinkat: avoid OS X 10.10 trailing slash bug
26365         * doc/posix-functions/readlink.texi: Mention that OS X 10.10
26366         has this bug.
26367         * doc/posix-functions/readlinkat.texi: Likewise.  Also mention
26368         that OS X 10.10 has this function.
26369         * lib/readlinkat.c (rpl_readlinkat): Handle the trailing slash bug,
26370         as done for readlink().
26371         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Check for the readlink()
26372         trailing slash bug, and assume readlinkat() has the same issue.
26373         Also fix a typo where $gl_cv_decl_readlink_works was tested,
26374         rather than the correct $gl_cv_decl_readlinkat_works.
26376 2015-05-29  Andreas Gruenbacher  <andreas.gruenbacher@gmail.com>
26378         acl-permissions: Fix build on Mac OS X and older AIX (Bug#20681)
26379         * lib/set-permissions.c (set_acls): Fix more errors introduced in the acl
26380         module rewrite.
26382         acl-permissions: Fix build on Solaris and Cygwin
26383         Reported by Tom G. Christensen <tgc@jupiterrise.com>:
26384         * lib/set-permissions.c (set_acls): The count, entries, ace_count, and
26385         ace_entries variables have moved into struct permission_context but
26386         they were still accessed as local variables here.
26388 2015-05-29  Pádraig Brady  <P@draigBrady.com>
26390         linkat: avoid OS X 10.10 trailing slash with symlink bug
26391         On Darwin 14.3.0 linkat(,"path1",,"dangling_symlink/",)
26392         causes the symlink to be dereferenced, and if it points
26393         to a non existent file, that file will be created as
26394         a hard link to "path1".
26395         This fixes a test failure in test-linkat.c.
26396         * m4/linkat.m4 (gl_FUNC_LINKAT): Augment the test with
26397         this case.  The existing workaround in linkat.c for
26398         trailing slash issues, suffices for this case.
26399         * doc/posix-functions/linkat.texi: Add OS X 10.10 to
26400         the list of platforms with trailing slash issues.
26402 2015-05-28  Pádraig Brady  <P@draigBrady.com>
26404         unlinkat: handle ignoring of ".." on Darwin 14
26405         * lib/unlinkat.c: unlinkat() has the same bug as unlink()
26406         on Mac OS X 10.10, where it ignores paths with a trailing "..",
26407         so handle in the same manner.
26408         * m4/unlinkat.m4: Comment on this Darwin issue.
26409         * doc/posix-functions/unlink.texi: Update the latest version
26410         where the issue was seen.
26411         * doc/posix-functions/unlinkat.texi: Mention this issue.
26412         Fixes a test failure in test-unlinkat.c.
26414 2015-05-27  Paul Eggert  <eggert@cs.ucla.edu>
26416         qacl: split into qcopy-acl and qset-acl
26417         Emacs needs the former, but not the latter.
26418         * modules/acl-permissions: New file, containing most of the old qacl.
26419         * modules/file-has-acl (Depends-on): Depend on acl-permissions, not qacl.
26420         * modules/qacl: Now merely depends on qcopy-acl and qset-acl.
26421         * modules/qcopy-acl, modules/qset-acl: New files.
26422         * MODULES.html.sh (File system functions):
26423         Mention the new modules, and mention qacl while we're at it.
26425 2015-05-27  Glenn Morris  <rgm@gnu.org>
26427         gitlog-to-changelog: new option --ignore-line
26428         (This patch is imported from the GNU Emacs master.)
26429         This option ignores individual commit lines matching a pattern.
26430         * build-aux/gitlog-to-changelog: Add --ignore-line option.
26432 2015-05-27  Andreas Gruenbacher  <agruenba@redhat.com>
26434         qacl: Reimplement qset_acl and qcopy_acl (Bug#20666)
26435         Implement get_permissions and set_permissions primitives for getting all
26436         the permissions of a file, storing them, and later setting them. (In the
26437         minimal case, the permissions consist only of a file mode.) Reimplement
26438         qset_acl and qcopy_acl based on these new primitives: this avoids code
26439         duplication and makes error handling more consistent.
26440         The Solaris and Cygwin code still uses duplicate code paths for setting
26441         a file mode while making sure that no acls exist and setting an explicit
26442         acl; this is no worse than before, but could be cleaned up.  The AIX
26443         code still doesn't read ACLs, it only makes sure that acls don't get in
26444         the way when setting a file mode.
26445         * lib/acl-internal.h (struct permission_context): New data structure.
26446         (get_permissions, set_permissions, free_permission_context): Declare.
26447         * lib/acl-internal.c (free_permission_context): New helper function.
26448         * lib/get-permissions.c (get_permissions): New helper function split off
26449         from qcopy_acl.
26450         * lib/set-permissions.c: (set_acls_from_mode): On Solaris, Cygwin, and
26451         AIX, set a file's permissions based only on a file mode.
26452         (acl_from_mode, context_acl_from_mode, context_aclv_from_mode): All
26453         other platforms construct a temporary acl from the file mode and set
26454         that acl in the same way as setting an acl read from the source file.
26455         This should help avoid code duplication and inconsistent / buggy
26456         behavior.
26457         (set_acls): New helper function Split off from qcopy_acl.
26458         (chmod_or_fchmod): Moved here from qset-acl.c.
26459         (set_permissions): New helper function.
26460         * lib/qcopy-acl.c (qcopy_acl): Rewrite using get_permissions and
26461         set_permissions.
26462         * lib/qset-acl.c (qset_acl): Rewrite using set_permissions.
26463         * modules/qacl: Add get-permissions.c and set-permissions.c.
26465         file-has-acl: Split feature tests again (Bug#20667)
26466         * lib/file-has-acl.c: Instead of testing for
26467         XATTR_NAME_POSIX_ACL_ACCESS and XATTR_NAME_POSIX_ACL_DEFAULT,
26468         define them when needed.
26469         * m4/acl.m4 (gl_FILE_HAS_ACL): With that, Paul's
26470         GETXATTR_WITH_POSIX_ACLS change shouldn't be needed anymore.
26472 2015-05-27  Pádraig Brady  <P@draigBrady.com>
26474         string: fix build failure on BSD/OSX with FORTIFY_SOURCE
26475         This avoids a conflict with "FORTIFY_SOURCE" variants
26476         of the string functions when they're replaced on NetBSD-6.0.1
26477         and Darwin-14.3.0 at least.
26478         * lib/string.in.h: Avoid including our "lib/string.h" while
26479         including the system <string.h>.
26481 2015-05-26  Eric Blake  <eblake@redhat.com>
26483         stdio: limit __gnu_printf__ witness to gcc 4.4+
26484         * lib/error.h (_GL_ATTRIBUTE_SPEC_PRINTF): Move gcc version probe...
26485         * m4/stdio_h.m4 (gl_STDIO_H): ...here.
26487         error: use correct printf attributes on mingw
26488         * lib/stdio.in.h (_GL_ATTRIBUTE_SPEC_PRINTF): New define.
26490         inttypes: force correct mingw PRIdMAX even without <stdio.h>
26491         * modules/inttypes (Depends-on): Require extensions, so that mingw
26492         always uses GNU style inttypes.
26493         * lib/inttypes.in.h: On mingw, include <stdio.h>.
26495         stdio: fix probe on mingw under gcc 5.1
26496         * m4/stdio_h.m4 (gl_STDIO_H): Change to compile test, to work
26497         around new gcc preprocessor rules.
26499 2015-05-07  Glenn Morris  <rgm@gnu.org>
26501         gitlog-to-changelog: parse "Tiny-change"
26502         * build-aux/gitlog-to-changelog: Treat "Tiny-change" like
26503         "Copyright-paperwork-exempt".  (Bug#20324)
26505 2015-05-06  Pádraig Brady  <P@draigBrady.com>
26507         doc: document glibc posix_fallocate() issues
26508         * doc/posix-functions/posix_fallocate.texi: Mention the
26509         glibc efficiency problems and issues with NFS.
26511 2015-05-05  Karl Berry  <karl@freefriends.org>
26513         * build-aux/gendocs.sh (usage): document new css default
26514         for HTML (--htmlarg).
26516 2015-04-29  Paul Eggert  <eggert@cs.ucla.edu>
26518         extern-inline: no need for workaround in GCC 5.1
26519         * doc/extern-inline.texi (extern inline):
26520         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
26521         GCC bugs 54113 and 63877 are fixed in GCC 5.1, so don't work
26522         around these bugs in GCC 5.1 and later.  Maybe in a decade or
26523         two we can remove these workarounds.
26525 2015-04-28  Pádraig Brady  <P@draigBrady.com>
26527         eealloc, pagealign_alloc, xalloc: avoid clang warnings
26528         Avoid [-Wunknown-attributes] warnings like:
26529         warning: unknown attribute '__alloc_size__' ignored
26530         * lib/xalloc.h: Don't use the __alloc_size__  attribute
26531         with clang, as support has been fully removed as of clang 3.5:
26532         https://github.com/llvm-mirror/clang/commit/c047507a
26533         * lib/eealloc.h: Likewise.
26534         * lib/pagealign_alloc.h: Likewise.
26536 2015-04-27  Paul Eggert  <eggert@cs.ucla.edu>
26538         tests: pacify GCC 5.1's stricter printf checking
26539         * tests/test-dirname.c (main):
26540         * tests/test-getaddrinfo.c (simple):
26541         * tests/test-getlogin.c (main):
26542         * tests/test-getndelim2.c (main):
26543         * tests/test-inttostr.c (CK):
26544         * tests/test-md5.c (main):
26545         * tests/test-read-file.c (main):
26546         * tests/test-sha1.c (main):
26547         Fix mismatches between printf format and value signedness.
26548         * tests/test-inttostr.c (FMT, CAST_VAL, V_min, V_max):
26549         Remove, as CAST_VAL always returned a value of type uintmax_t.
26551         fts: port to GCC 5.1 with --enable-gcc-warnings
26552         Without this fix, GCC 5.1 (correctly) warns about a subscript
26553         error on the fts_name component of FTSENT.  It's actually a
26554         flexible member, so define it that way on C99 or later hosts.
26555         * lib/fts.c (fts_alloc): Use offsetof, not sizeof, for a
26556         structure that now has a flexible array member.
26557         * lib/fts_.h (__FLEXIBLE_ARRAY_MEMBER): New macro.
26558         (FTSENT): fts_name is now flexible on C99-or-later platforms.
26559         * modules/fts (Depends-on): Add flexmember.
26561 2015-04-26  Paul Eggert  <eggert@cs.ucla.edu>
26563         file-has-acl: port to CentOS 6
26564         Problem reported by Tom G. Christensen in:
26565         http://lists.gnu.org/r/bug-gnulib/2015-04/msg00074.html
26566         * lib/file-has-acl.c: Use GETXATTR_WITH_POSIX_ACLS instead of a
26567         combination of HAVE_SYS_XATTR_H, HAVE_LINUX_XATTR_H, and
26568         HAVE_GETXATTR.
26569         * m4/acl.m4 (gl_FILE_HAS_ACL): Test fot the entire combination of
26570         linux/xattr.h, sys/xattr.h, getxattr, XATTR_NAME_POSIX_ACL_ACCESS,
26571         and XATTR_NAME_POSIX_ACL_DEFAULT, since that's what
26572         file-has-acl.c actually needs.
26574 2015-04-26  Pádraig Brady  <P@draigBrady.com>
26576         file-has-acl: always return false when ACLs aren't supported
26577         * lib/file-has-acl.c (file_has_acl): Consistent with other paths,
26578         change the GNU/Linux getxattr path, to transform "not supported"
26579         errors to a false return rather than an error.  This is handled
26580         within file_has_acl() due to the platform specific tests to
26581         determine if ACLs are not supported.
26583 2015-04-25  Paul Eggert  <eggert@cs.ucla.edu>
26585         gettext: propagate po/Makefile.in.in too
26586         * build-aux/po/Makefile.in.in: Copy from latest gettext.
26587         * config/srclist.txt: In build-aux/po, copy Makefile.in.in and
26588         remove-potcdate.sin from $GETTEXT.  This fixes a version mismatch
26589         between Makefile.in.in and the gettext-runtime m4 files.
26591 2015-04-24  Paul Eggert  <eggert@cs.ucla.edu>
26593         file-has-acl: new module, split from acl
26594         And add a new module file-has-acl-tests to match.
26595         I ran into a problem with the recent changes to the acl module,
26596         as they introduced a typo 'test use_xattrs = 0' into 'configure'.
26597         When using the fixed version with Emacs, I discovered that
26598         file-has-acl wasn't separated out well enough for Emacs (e.g., it
26599         had multiple libraries, but needed only one), so I fixed that too.
26600         * NEWS: Document this incompatible change.
26601         * modules/file-has-acl, modules/file-has-acl-tests: New files.
26602         * m4/acl.m4 (gl_FUNC_ACL_ARG): New macro, split from gl_FUNC_ACL.
26603         Initialize gl_need_lib_has_acl.
26604         (gl_FUNC_ACL): Require it.
26605         Simplify use of 'test'.  Set LIB_HAS_ACL if gl_need_lib_has_acl.
26606         Move the file-has-acl.c-relevant stuff to ...
26607         (gl_FILE_HAS_ACL): ... this new macro.  Rewrite to fix 'test
26608         use_xattrs = 0' typo, and omit some needless work.  Set
26609         gl_need_lib_has_acl=1 if we'll need LIB_HAS_ACL to be set
26610         when gl_FUNC_ACL is called.
26611         * modules/acl (Files, lib_SOURCES): Remove lib/file-has-acl.c.
26612         (Link): Remove $(LIB_HAS_ACL).
26613         * modules/acl-tests (Files, Depends-on, configure.ac, TESTS)
26614         (check_PROGRAMS): Move stuff relevant to file-has-acl to
26615         modules/file-has-acl-tests.
26616         (test_file_has_acl_LDADD): Move to modules/file-has-acl-tests.
26618         manywarnings: add GCC 5.1 warnings
26619         * build-aux/gcc-warning.spec: Add -Wabi=, -Warray-bounds,
26620         -Warray-bounds=, -Wc++14-compat, -Wc90-c99-compat,
26621         -Wc99-c11-compat, -Wshadow-ivar, -Wsized-deallocation,
26622         -Wsuggest-override, -Wuse-without-only.  Change
26623         -Wnormalized=... operands to match 5.1.
26624         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wbool-compare,
26625         -Wchkp, -Wdesignated-init, -Wdiscarded-array-qualifiers,
26626         -Wdiscarded-qualifiers, -Wformat-signedness,
26627         -Wincompatible-pointer-types, -Wint-conversion,
26628         -Wlogical-not-parentheses, -Wmemset-transposed-args, -Wodr,
26629         -Wshift-count-negative, -Wshift-count-overflow,
26630         -Wsizeof-array-argument, -Wsuggest-final-methods,
26631         -Wsuggest-final-types, -Wswitch-bool.  Remove -Warray-bounds,
26632         and add -Warray-bounds=2 as a special case.
26634 2015-04-21  Simon Josefsson  <simon@josefsson.org>
26636         doc: update FDL template to match FDL examples.
26637         * doc/alloca-opt.texi:
26638         * doc/alloca.texi:
26639         * doc/c-ctype.texi:
26640         * doc/c-strcase.texi:
26641         * doc/c-strcaseeq.texi:
26642         * doc/c-strcasestr.texi:
26643         * doc/c-strstr.texi:
26644         * doc/c-strtod.texi:
26645         * doc/c-strtold.texi:
26646         * doc/ctime.texi:
26647         * doc/error.texi:
26648         * doc/gcd.texi:
26649         * doc/gnulib-tool.texi:
26650         * doc/inet_ntoa.texi:
26651         * doc/intprops.texi:
26652         * doc/lib-symbol-visibility.texi:
26653         * doc/maintain.texi:
26654         * doc/parse-datetime.texi:
26655         * doc/quote.texi:
26656         * doc/regexprops-generic.texi:
26657         * doc/standards.texi: Remove spurious 'with' in FDL license
26658         template.
26660 2015-04-21  Paul Eggert  <eggert@cs.ucla.edu>
26662         lstat: fix cross-compilation 'ln -s' problem
26663         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
26664         Have the test program call 'symlink' rather than a separate
26665         script run 'ln -s'; this is more likely to work in
26666         cross-compilation environments.  Reported by Pavel Fedin in:
26667         http://lists.gnu.org/r/bug-gnulib/2015-04/msg00060.html
26669 2015-04-16  Ludovic Courtès  <ludo@gnu.org>
26671         gendocs.sh: default to a common CSS style sheet for HTML output
26672         * build-aux/gendocs.sh (htmlarg): Change default value.
26674 2015-04-15  Mats Erik Andersson  <gnu@gisladisker.se>
26676         gnulib-tool: output bold attribute more portably
26677         * gnulib-tool (func_show_module_list): Change hexadecimal
26678         numbers to octal in BOLD_ON and BOLD_OFF.  The use of hex
26679         encoded numbers as arguments to `printf' is not portable,
26680         and is not claimed by POSIX.  This is the case with FreeBSD.
26682 2015-04-15  Andreas Gruenbacher  <andreas.gruenbacher@gmail.com>
26684         qacl: Simplify HP-UX acl_nontrivial check
26685         * lib/acl-internal.c: Remove struct stat parameter from HP-UX's version of
26686         acl_nontrivial. Check if the acl has at most three entries instead (it must
26687         have exactly three entries according to the HP-UX documentation). Ignore
26688         uids and gids as long as an entry is either for a user (i.e., the owner),
26689         a group (i.e., the owning group), or others.
26690         * lib/acl-internal.h: Change HP-UX's acl_nontrivial prototype.
26691         * lib/qcopy-acl.c (qcopy_acl): With that, we no longer need to stat the file.
26693 2015-04-15  Andreas Gruenbacher   <andreas.gruenbacher@gmail.com>
26695         acl: On Linux, check for acls without libacl
26696         On Linux, use the getxattr syscall instead of the acl_extended_file libacl
26697         library function to check for the presence of acls, avoiding a library.
26698         * lib/file-has-acl.c: Include xattr headers if we have them.
26699         (file_has_acl): On Linux, use getxattr().
26700         * m4/acl.m4 (gl_FUNC_ACL): Define LIB_HAS_ACL as the libraries to link with for
26701         file_has_acl(). Check for xattr headers and getxattr().
26703 2015-04-14  Ángel González  <keisial@gmail.com>
26705         tempname: avoid unused parameter warnings (trivial)
26706         * lib/tempname.c (try_dir): Tag with __GL_UNUSED.
26707         (try_nocreate): Likewise.
26709 2015-04-14  HIRAMATSU Yoshifumi  <hiramatu@boreas.dti.ne.jp>
26711         fseeko: fix build failure on NetBSD >= 6 (trivial)
26712         * lib/fseeko.c (feeko): NetBSD 6 changed the definition of _offset
26713         from 'fpos_t struct' to __off_t, which is a typedef of __int64_t.
26715 2015-04-09  Paul Eggert  <eggert@cs.ucla.edu>
26717         gitlog-to-changelog: port to MS-Windows
26718         * build-aux/gitlog-to-changelog (git_dir_option):
26719         Use strftime with "%Y-%m-%d", not "%F", to avoid a bug in
26720         MS-Windows Perl.  Reported by Eli Zaretskii in:
26721         http://lists.gnu.org/r/emacs-devel/2015-04/msg00504.html
26723 2015-04-07  Karl Berry  <karl@gnu.org>
26725         gendocs: new option --tex for passing args to texi2dvi.
26726         * build-aux/gendocs.sh: new option --tex, default -t @finalout.
26727         (TEXI2DVI): cut to just command name.
26728         (usage): mention new option, and update copyright.
26729         <generate_tex>: use it.
26731 2015-04-07  Karl Berry  <karl@gnu.org>
26733         * config/srclistvars.sh (GETTEXT): new definition.
26734         * config/srclist.txt: use it for gettext .m4 files.
26735         Thread starting at http://lists.gnu.org/r/bug-gnulib/201
26736         and confirmed at http://lists.gnu.org/r/bug-gnulib/2015-02/msg00146.html
26737         and continuing into April.
26739 2015-04-07  Daiki Ueno  <ueno@gnu.org>
26741         uniname/uniname-tests: fix failure due to alias
26742         Reported by Jack Howarth in:
26743         <https://lists.gnu.org/r/bug-libunistring/2015-04/msg00000.html>.
26744         * tests/uniname/test-uninames.c (name_has_alias): New function.
26745         (test_inverse_lookup): Exclude character name with valid alias,
26746         from randomly generated character names.
26747         (main): Fill unicode_aliases before calling test functions.
26749 2015-04-03  Giuseppe Scrivano  <gscrivan@redhat.com>
26751         hash: remove deprecated hash_insert0 function
26752         * lib/hash.h (hash_insert0): Remove deprecated function.
26753         * lib/hash.c (hash_insert0): Likewise.
26755 2015-04-02  Pádraig Brady  <P@draigBrady.com>
26757         mountlist: remove dependency on libmount
26758         * lib/mountlist.c (read_file_system_list): Parse /proc/self/mountinfo
26759         directly, rather than depending on libmount, which has many
26760         dependencies due to its dependence on libselinux, as detailed at:
26761         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00063.html
26762         Note we restrict this to __linux__ as that's probably where this
26763         interface will remain.  If ever porting, it would be best
26764         to first pull the makedev() wrapper from coreutils to a gnulib module.
26765         Note also we don't add a getline dependency to the mountlist module,
26766         as all Linux versions are sufficient.
26768 2015-04-02  Paul Eggert  <eggert@cs.ucla.edu>
26770         stddef: port to pre-C11 GCC on x86
26771         On this platform, max_align_t should have an alignment of 8 even
26772         though the storage alignments of double, long, etc. max out at 4.
26773         Inspired by a comment of Andreas Schwab's here:
26774         https://sourceware.org/ml/libc-alpha/2015-04/msg00017.html
26775         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS) [!HAVE_MAX_ALIGN_T]: New macro.
26776         (max_align_t) [!HAVE_MAX_ALIGN_T]: Use it.
26777         * tests/test-stddef.c: Test __alignof__ too, if available.
26779 2015-03-24  Pádraig Brady  <P@draigBrady.com>
26781         quotearg-simple-tests: add missing gl_FUNC_MMAP_ANON dependency
26782         * modules/quotearg-simple-tests: Reference m4/mmap-anon.m4
26784 2015-03-24  Tobias Stoeckmann  <tobias@stoeckmann.org>
26786         yesno: make EOL optional in ENABLE_NLS case also (trival)
26787         * lib/yesno.c (yesno): Check for EOL before replacing.
26788         * tests/test-yesno.sh: Add a test case (test along with gettext).
26790 2015-03-22  Paul Eggert  <eggert@cs.ucla.edu>
26792         fdopendir-tests: test it does not close its arg
26793         * tests/test-fdopendir.c (main): Test that fdopendir does not
26794         close its argument.  From a suggestion by David Grayson in:
26795         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00039.html
26797 2015-03-20  Paul Eggert  <eggert@cs.ucla.edu>
26799         gitlog-to-changelog: trim trailing white space
26800         * build-aux/gitlog-to-changelog (main):
26801         Trim trailing white space from commit message lines.
26802         This is helpful for processing the GNU Emacs repository,
26803         which dates back to 1985 and contains a lot of such lines.
26805         gitlog-to-changelog: new option --ignore-matching
26806         * build-aux/gitlog-to-changelog (usage, git_dir_option, main):
26807         Support new option --ignore-matching=PAT, which ignores all
26808         commit messages whose first line matches PAT.
26810 2015-03-19  Paul Eggert  <eggert@cs.ucla.edu>
26812         fdopendir: port better to MinGW
26813         * lib/fdopendir.c (fd_clone_opendir) [REPLACE_FCHDIR]:
26814         Use 'dup' if dirfd fails.  Suggested by Eli Zaretskii in:
26815         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00033.html
26816         * modules/fdopendir (Depends-on): Add dirfd.
26818 2015-03-18  Paul Eggert  <eggert@cs.ucla.edu>
26820         fdopendir: fix typo in comment
26821         * lib/fdopendir.c (fdopendir_with_dup): REPLACE_FCHDIR was misspelled.
26823 2015-03-09  Eric Blake  <eblake@redhat.com>
26825         error: document all entry points provided
26826         * doc/glibc-functions/error_print_progname.texi
26827         (error_print_progname): Mention the error module.
26828         * doc/glibc-functions/error_at_line.texi (error_at_line):
26829         Likewise.
26830         * doc/glibc-functions/error_message_count.texi
26831         (error_message_count): Likewise.
26832         * doc/glibc-functions/error_one_per_line.texi
26833         (error_one_per_line): Likewise.
26835 2015-03-03  Paul Eggert  <eggert@cs.ucla.edu>
26837         vasnprintf: pacify clang 3.5.0
26838         Problem reported by Werner Lemberg in:
26839         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00000.html
26840         * lib/vasnprintf.c (VASNPRINTF): Omit casts that clang objects to.
26841         The casts aren't needed, since the characters in question are ASCII.
26843 2015-02-24  Paul Eggert  <eggert@cs.ucla.edu>
26845         glob, etc.: port to MSVC v18 on MS-Windows 8.1
26846         * lib/dirent--.h (GNULIB_defined_opendir):
26847         * lib/dirent.in.h (GNULIB_defined_opendir)
26848         (GNULIB_defined_closedir):
26849         * lib/getcwd.c, lib/glob.c, lib/mountlist.c (opendir, closedir):
26850         #undef only if Gnulib defined it.
26852         poll: port to MSVC v18 on MS-Windows 8.1
26853         Problem reported by Gisle Vanem in:
26854         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00139.html
26855         * lib/poll.c: Always include <sys/select.h> and <sys/socket.h>.
26856         * modules/poll (Depends-on) [!HAVE_POLL || REPLACE_POLL]:
26857         Add sys_socket.
26859 2015-02-24  Pádraig Brady  <P@draigBrady.com>
26861         tests: support stderr verification with returns_()
26862         * tests/init.sh (returns_): Disable tracing for this wrapper
26863         function, so that stderr of the wrapped command is unchanged,
26864         allowing for verification of the contents.
26866 2015-02-24  Pavel Hrdina  <phrdina@redhat.com>
26868         passfd: avoid valgrind uninitalised data warning
26869         * lib/passfd.c (sendfd): Reset the msg_controllen of msghdr,
26870         to include just the fd we've initialized, rather than including
26871         the extra space used for alignment.
26873 2015-02-23  Paul Eggert  <eggert@cs.ucla.edu>
26875         uniwbrk/u32-wordbreaks-tests: fix copyright
26876         * tests/uniwbrk/test-uc-wordbreaks.c: Fix copyright date.
26878         dup2: doc and test for Android bug
26879         Reported by Kevin Cernekee in:
26880         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00125.html
26881         * doc/posix-functions/dup2.texi (dup2): Document the bug.
26882         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the bug.
26884 2015-02-23  Kevin Cernekee  <cernekee@google.com>
26886         Replace dup2() on Android
26887         * m4/dup2.m4 (gl_FUNC_DUP2): Android implements dup2() using dup3().
26888         Since dup3(fd, fd) fails but dup2(fd, fd) should pass, test-dup2
26889         fails.  Using rpl_dup2() fixes this because it has an explicit test
26890         for this condition.
26892 2015-02-22  Paul Eggert  <eggert@cs.ucla.edu>
26894         Android doesn't define RLIM_SAVED_*
26895         Portability problem reported by Kevin Cernekee in:
26896         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00122.html
26897         * doc/posix-headers/sys_resource.texi (sys/resource.h):
26898         Mention the portability problem.
26899         * lib/getdtablesize.c (RLIM_SAVED_CUR, RLIM_SAVED_MAX):
26900         Define if not defined.
26901         * m4/dup2.m4 (gl_FUNC_DUP2):
26902         * m4/fcntl.m4 (gl_FUNC_FCNTL):
26903         Likewise.
26905 2015-02-21  Paul Eggert  <eggert@cs.ucla.edu>
26907         vasnprintf-posix-tests: use consistent test
26908         * tests/test-vasnprintf-posix.c (test_function):
26909         Use "<" in assert instead of "<=", for consistency with other tests.
26911 2015-02-20  Paul Eggert  <eggert@cs.ucla.edu>
26913         printf, isinf, etc.: noncanonical != NaN
26914         Do not require that isinf, printf, etc. treat noncanonical
26915         values as NaNs.  Instead, require only that they do not crash.
26916         Problem reported by Joseph Myers in:
26917         https://sourceware.org/ml/libc-alpha/2015-02/msg00244.html
26918         * doc/posix-functions/dprintf.texi (dprintf):
26919         * doc/posix-functions/fprintf.texi (fprintf):
26920         * doc/posix-functions/isfinite.texi (isfinite):
26921         * doc/posix-functions/isinf.texi (isinf):
26922         * doc/posix-functions/isnan.texi (isnan):
26923         * doc/posix-functions/printf.texi (printf):
26924         * doc/posix-functions/snprintf.texi (snprintf):
26925         * doc/posix-functions/sprintf.texi (sprintf):
26926         * doc/posix-functions/vdprintf.texi (vdprintf):
26927         * doc/posix-functions/vfprintf.texi (vfprintf):
26928         * doc/posix-functions/vprintf.texi (vprintf):
26929         * doc/posix-functions/vsnprintf.texi (vsnprintf):
26930         * doc/posix-functions/vsprintf.texi (vsprintf):
26931         Document this.
26932         * m4/isfinite.m4 (gl_ISFINITEL_WORKS):
26933         * m4/isinf.m4 (gl_ISINFL_WORKS):
26934         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS):
26935         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE):
26936         * tests/test-isfinite.c (test_isfinitel):
26937         * tests/test-isinf.c (test_isinfl):
26938         * tests/test-isnan.c (test_long_double):
26939         * tests/test-isnanl.h (main):
26940         * tests/test-snprintf-posix.h (test_function):
26941         * tests/test-sprintf-posix.h (test_function):
26942         * tests/test-vasnprintf-posix.c (test_function):
26943         * tests/test-vasprintf-posix.c (test_function):
26944         Test only that noncanonical values do not cause crashes, not that
26945         they are treated as NaNs.  In some cases this means a larger
26946         output buffer is needed.
26948 2015-02-20  Jaroslav Skarvada  <jskarvad@redhat.com>
26950         fts: remove redundant close() (trivial)
26951         * lib/fts.c (fts_read): Remove redundant call to close().
26952         Spotted by coverity.
26954 2015-02-20  Paul Eggert  <eggert@cs.ucla.edu>
26956         getdtablesize: port better for Android
26957         Problem reported by Kevin Cernekee in:
26958         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00112.html
26959         * doc/glibc-functions/getdtablesize.texi (getdtablesize): Mention bug.
26960         * lib/getdtablesize.c (getdtablesize): Don't fall back on _SC_OPEN_MAX.
26961         Instead, just use getrlimit, taking care to avoid Cygwin bug.
26963         poll: fixes for large fds
26964         * lib/poll.c (poll): Don't check directly for NFD too large.
26965         Don't rely on undefined behavior in FD_SET when an arg exceeds
26966         FD_SETSIZE.  Always set revents afterwards, even if to zero.
26967         * tests/test-poll.c (poll1): Set revents to -1 instead of 0,
26968         as that makes the test a bit stricter.
26970 2015-02-19  Kevin Cernekee  <cernekee@google.com>
26972         fcntl: Fix cross compiling
26973         * m4/fcntl.m4 (gl_FUNC_FCNTL): Assign the guessed result to the
26974         correct variable name (gl_cv_func_fcntl_f_dupfd_works).
26976 2015-02-18  Paul Eggert  <eggert@cs.ucla.edu>
26978         dup2, fcntl: cross-compile better for Android
26979         Problem reported by Kevin Cernekee in:
26980         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00109.html
26981         * m4/dup2.m4 (gl_FUNC_DUP2): Don't guess no when cross-compiling
26982         for a Linux kernel.  That kernel bug was fixed on 2009-05-11, and
26983         there's little need to cross-compile for older kernels nowadays.
26984         * m4/fcntl.m4 (gl_FUNC_FCNTL): When cross-compiling, guess no only
26985         for systems where the bug is known to occur (AIX, Cygwin, Haiku).
26987 2015-02-18  Pádraig Brady  <P@draigBrady.com>
26989         getopt: don't crash on memory exhaustion
26990         * lib/getopt.c (_getopt_internal_r): Use degraded diagnostics on
26991         memory exhaustion.  In the _LIBC case we use alloca() as is
26992         already done in glibc, so we don't need to consider the separate
26993         error path in that awkward case.  Also fix a memory leak when
26994         ambiguous options are present.
26995         Reported by Tobias Stoeckmann
26997 2015-02-17  Mike Miller  <mtmiller@ieee.org>
26999         tempname: allow compilation with C++ (trivial)
27000         * lib/tempname.h [C++]: Specify extern "C" linkage.
27001         * lib/tempname.h (try_tempname):
27002         * lib/tempname.c (__try_tempname, __gen_tempname):
27003         Rename 'try' to 'tryfunc'.
27005 2015-02-17  Paul Eggert  <eggert@cs.ucla.edu>
27007         dup2, fcntl: port to AIX
27008         * m4/dup2.m4 (gl_FUNC_DUP2):
27009         * m4/fcntl.m4 (gl_FUNC_FCNTL):
27010         Prefer getrusage (RLIM_NOFILE ...)/rlim_cur to sysconf (_SC_OPEN_MAX).
27011         The former works on AIX 7.1 but the latter does not.
27012         Also, this may work better with Android; see:
27013         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00100.html
27015 2015-02-16  Paul Eggert  <eggert@cs.ucla.edu>
27017         getdtablesize, dup2, fcntl: port to Android
27018         Problem reported by Kevin Cernekee in:
27019         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00092.html
27020         * doc/glibc-functions/getdtablesize.texi (getdtablesize):
27021         Mention that getdtablesize doesn't work on Android.
27022         * lib/getdtablesize.c: Use getrlimit substitute only if
27023         getdtablesize is declared.  This should suffice for Cygwin
27024         while not breaking Android.
27025         * m4/dup2.m4 (gl_FUNC_DUP2):
27026         * m4/fcntl.m4 (gl_FUNC_FCNTL):
27027         Prefer sysconf (_SC_OPEN_MAX) to getdtablesize, as the former is
27028         standardized but the latter is not, and sysconf works on Android.
27029         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE):
27030         Also check that getdtablesize is declared.
27031         This removes the need for a special case for Android.
27033 2015-02-16  Kevin Cernekee  <cernekee@google.com>
27035         localename: Implement gl_locale_name_thread_unsafe for Android
27036         * lib/localename.c: Android API level >= 21 supports two hardcoded
27037         locales: C (POSIX) and C.UTF-8.  Distinguish them by checking
27038         the internal __locale_t struct.
27040 2015-02-16  Kamil Dudka  <kdudka@redhat.com>
27042         fts: avoid crash when a cycle is added while traversing
27043         This could be triggered by auto-mounting a recursive bind mount.
27044         Reported by Michael Chapman in: https://bugzilla.redhat.com/1188498
27045         * lib/fts.c (fts_read): Avoid removing the original hash table item
27046         when leaving a directory that caused a cycle, and preserve the FTS_DC
27047         flag.
27049 2015-02-16  Daiki Ueno  <ueno@gnu.org>
27051         uniname/uniname: support character alias
27052         * lib/uniname/gen-uninames.lisp (main): New argument ALIASFILE.
27053         Generate one-way mapping from aliases to codepoints in the
27054         generated tables.  Special case variation selectors to reduce
27055         table size.
27056         * lib/uniname/uniname.c (unicode_character_name): Special case
27057         variation selectors.
27058         (unicode_name_character): Special case variation selectors and
27059         their aliases.
27060         * lib/uniname/uninames.h: Regenerate.
27061         * tests/uniname/NameAliases.txt: New file, taken from UCD 7.0.0.
27062         * modules/uniname/uniname-tests (Files): Add
27063         tests/uniname/NameAliases.txt.
27064         * tests/uniname/test-uninames.c: Mark as static.
27065         (ALIASLEN): Define.
27066         (struct unicode_alias): New struct.
27067         (unicode_aliases): New variable.
27068         (fill_aliases): New function.
27069         (test_alias_lookup): New test function.
27070         (main): Run the 'test_alias_lookup' test if the second argument is
27071         given.
27072         * tests/uniname/test-uninames.sh: Supply NameAliases.txt as the
27073         second argument.
27075 2015-02-11  Kevin Cernekee  <cernekee@google.com>
27077         Fix FILE struct compatibility with Android API level >= 21
27078         * lib/stdio-impl.h: Test explicitly for __ANDROID__ instead of
27079         __sferror.  Recent versions of Bionic's stdio.h no longer define
27080         __sferror.
27081         * lib/fbufmode.c: Likewise.
27082         * lib/fflush.c: Likewise.
27083         * lib/fpurge.c: Likewise.
27084         * lib/freadable.c: Likewise.
27085         * lib/freadahead.c: Likewise.
27086         * lib/freading.c: Likewise.
27087         * lib/freadptr.c: Likewise.
27088         * lib/freadseek.c: Likewise.
27089         * lib/fseeko.c: Likewise.
27090         * lib/fseterr.c: Likewise.
27091         * lib/fwritable.c: Likewise.
27093         Assume unbroken ungetc() on Android
27094         * m4/ungetc.m4: Add Android case to host OS check.  The ungetc()
27095         test case passed when running on an Android host, and the code
27096         hasn't really changed since 2009.
27098         getdtablesize: Fix Android build
27099         * m4/getdtablesize.m4: Add Android case to host OS check.  Recent NDK
27100         versions have this symbol in the .so library (at least 32-bit
27101         platforms) but are missing the declaration in the header file,
27102         causing the m4 logic to guess incorrectly.
27104         localename: Fix Android build
27105         * modules/localename (Depends-on): Add langinfo.
27107         getugroups: Fix Android build
27108         * lib/getugroups.c: Don't reference unsupported {get,set,end}grent
27109         functions.
27111         euidaccess: Fix Android build
27112         * modules/euidaccess (Depends-on): Add fcntl-h to ensure that
27113         AT_EACCESS gets declared.
27115         linkat_nofollow: Add fallback case for cross compiling
27116         * m4/linkat.m4: Guess no for Darwin, yes otherwise.
27118         net_if: Handle content-free <net/if.h> system headers
27119         * m4/net_if_h.m4: Check to make sure <net/if.h> actually defines
27120         struct if_nameindex.  If not, enable the replacement header.
27122         signal_h: Fix Android build
27123         * lib/signal.in.h: Add Android to the list of platforms that declare
27124         pthread_sigmask() in <pthread.h> instead of <signal.h>.
27126         duplocale: Fix Android build of duplocale-tests
27127         * modules/duplocale-tests (Depends-on): Add langinfo, as the header
27128         is included by test-duplocale.c (but not by duplocale.c).
27129         * modules/duplocale-tests (configure.ac): Check for monetary.h.
27130         * tests/test-duplocale.c: Skip test if monetary.h is absent.
27131         * doc/posix-headers/monetary.texi: Add Android to the list of
27132         platforms missing monetary.h.
27134 2015-02-11  Pádraig Brady  <P@draigBrady.com>
27136         tests: avoid recent -Werror=unused-variable regression in test-locale
27137         * tests/test-locale.c (main): Reference the variable to avoid the
27138         "unused variable" warning.
27140 2015-02-11  Pádraig Brady  <P@draigBrady.com>
27142         maint: various whitespace cleanups in tempname
27143         * lib/tempname.c: Normalize spacing and line length.
27144         * lib/tempname.h: Likewise.
27145         * modules/tempname: Likewise.
27147 2015-02-11  Pádraig Brady  <P@draigBrady.com>
27149         tests: provide returns_() to simplify exit status checking
27150         * tests/init.sh (returns_): A new function for use in tests,
27151         to allow for easier checking of return values, where you expect
27152         a command to exit with failure status.  By checking for a particular
27153         exit code, you don't hide any crashes for example.
27155 2015-02-11  Pádraig Brady  <P@draigBrady.com>
27157         mountlist: only use libmount when specified
27158         There are currently many shared libs dependencies introduced by
27159         libmount with associated runtime and virt mem overhead.
27160         Therefore don't enable by default.
27161         * m4/ls-mntd-fs.m4: Use --with-libmount to enable at build time.
27163 2015-02-08  Daiki Ueno  <ueno@gnu.org>
27165         uniname/unimame-tests: don't link with -lunistring
27166         * modules/uniname/uniname-tests (Makefile.am): Don't link against
27167         $(LIBUNISTRING).  Document the rationale why we need to
27168         conditionalize the test.
27170 2015-02-07  Paul Eggert  <eggert@cs.ucla.edu>
27172         fstrcmp: don't assume strlen < INT_MAX
27173         * lib/fstrcmp.c: Include stddef.h and stdint.h.
27174         (uintptr_t): Remove, as we're now assuming stdint.
27175         (OFFSET, EXTRA_CONTEXT_FIELDS, fstrcmp_bounded):
27176         Prefer ptrdiff_t to int when the value could exceed INT_MAX
27177         if the input string is long.
27178         (fstrcmp_bounded): Check for size-calculation overflow.  Prefer
27179         uintptr_t to size_t when the underlying value is a pointer casted
27180         to an unsigned integer.  Avoid unnecessary 'buffer != NULL' test.
27181         * modules/fstrcmp (Depends-on): Add stdint.
27183         diffseq: prefer ptrdiff_t to ssize_t
27184         * lib/diffseq.h: In commentary, prefer ptrdiff_t to ssize_t.
27185         ptrdiff_t is the natural type for signed indexes.
27186         On a few older platforms, ssize_t is narrower than size_t.
27188         xalloc: fix typo that suppressed warnings
27189         * lib/xalloc.h: Add missing _GL_INLINE_HEADER_END.
27190         This typo, introduced a couple of years ago, mistakenly suppressed
27191         some -Wsuggest-attribute=const, -Wmissing-prototypes, and
27192         -Wmissing-declarations warnings.
27194         full-read: fix license notice typo
27195         * lib/full-read.h: Remove a stray line in the license notice.
27196         Reported by Sam Ellis in: http://bugs.gnu.org/19808
27198         crypto/gc: fix a -Wswitch warning
27199         Reported by Bruce Korb in:
27200         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00046.html
27201         * lib/gc-gnulib.c (gc_hash_open): Fail faster if MODE is nonzero.
27203 2015-02-03  Pádraig Brady  <P@draigBrady.com>
27205         gnulib-tool: fix handling of patch(1) diagnostics
27206         * gnulib-tool: Send diagnostics from patch(1) to stderr,
27207         as otherwise gnulib-tool will reparse that output and attempt
27208         to lookup modules.
27210 2015-02-03  Pádraig Brady  <P@draigBrady.com>
27212         bootstrap: exit immediately upon gnulib-tool failure
27213         * build-aux/bootstrap: Exit immediately if gnulib-tool fails.
27214         This was noticed when gnulib-tool exited early due to failure
27215         to apply a patch in coreutils at http://hydra.nixos.org/eval/1172233,
27216         but various confusing errors were then given as the build proceeded.
27218 2015-02-02  Andreas Gruenbacher  <agruen@gnu.org>
27220         symlinkat: include all required header files
27221         * lib/symlinkat.c (HAVE_SYMLINK_AT): Add <sys/stat.h> for fstatat(),
27222         and string.h for strlen(), required at least on OS X 10.10 (Yosemite).
27223         Reported at https://savannah.gnu.org/bugs/index.php?44151
27224         and by Jack Howarth.
27226 2015-01-29  Pádraig Brady  <P@draigBrady.com>
27228         localename: support Solaris 12 and illumos
27229         * lib/localename.c (gl_locale_name_thread_unsafe): call
27230         getlocalename_l() on newer __sun platforms.
27231         Reported by Alexander Pyhalov.
27232         Fix suggested by Rich Burridge.
27234 2015-01-29  Alexander Pyhalov  <alp@rsu.ru>
27236         locale: fix tests on illumos (trivial)
27237         * tests/test-locale.c: LC_GLOBAL_LOCALE is a function call on illumos,
27238         so move from global scope to main().
27240 2015-01-24  Daiki Ueno  <ueno@gnu.org>
27242         unictype: avoid undefined left-shift behavior
27243         * lib/unictype/bidi_of.c (uc_bidi_class): Building libunistring with
27244         gcc's -fsanitize=shift and running its tests triggered:
27245           unictype/bidi_of.c:43:60: runtime error: left shift of 40167 by 16 \
27246             places cannot be represented in type 'int'
27247         Cast LHS to 'unsigned int' after integer promotion.
27248         * lib/unictype/categ_of.c (lookup_withtable): Likewise.
27249         * lib/unictype/joininggroup_of.c (uc_joining_group): Likewise.
27251 2015-01-20  Daiki Ueno  <ueno@gnu.org>
27253         libunistring: bump version of unitypes dependants
27254         Due to the header file search order, all the headers which depend
27255         on unitypes.h need to be generated, when the preinstalled
27256         libunistring is older.
27257         * modules/unicase/base (configure.ac): Bump minimum version to
27258         0.9.4.
27259         * modules/uniconv/base (configure.ac): Likewise.
27260         * modules/unilbrk/base (configure.ac): Likewise.
27261         * modules/uninorm/base (configure.ac): Likewise.
27262         * modules/unistdio/base (configure.ac): Likewise.
27263         * modules/unistr/base (configure.ac): Likewise.
27264         * modules/uniwbrk/base (configure.ac): Likewise.
27265         * modules/uniwidth/base (configure.ac): Likewise.
27267 2015-01-20  Daiki Ueno  <ueno@gnu.org>
27269         unictype/category-none: fix link with libunistring
27270         Since _UC_CATEGORY_NONE is not a public symbol, it will be
27271         prefixed with "libstring_" when compiled as part of libunistring.
27272         To avoid undefined symbol at link time, increase the minimum
27273         version when the dependant modules are updated.
27274         * modules/unictype/category-none (configure.ac): Bump minimum
27275         version to 0.9.5.
27277 2015-01-20  Daiki Ueno  <ueno@gnu.org>
27279         unitypes: fix build with installed libunistring
27280         The minimum version has not bumped after _UC_ATTRIBUTE_CONST and
27281         _UC_ATTRIBUTE_PURE were added to unitypes.in.h.
27282         * modules/unitypes (configure.ac): Bump minimum version to 0.9.4.
27284 2015-01-15  Paul Eggert  <eggert@cs.ucla.edu>
27286         time: port to MinGW32 3.21
27287         Problem reported by Eli Zaretskii in:
27288         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00042.html
27289         * lib/time.in.h:
27290         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC):
27291         * modules/time (Depends-on):
27292         Fall back on unistd.h if the other include files don't define
27293         struct timespec.
27295         update-copyright: apply to self
27296         * build-aux/update-copyright: Fix copyright date.  How ironic!
27298 2015-01-15  Daiki Ueno  <ueno@gnu.org>
27300         libunistring: update to Unicode 7.0.0
27301         * lib/unictype/joininggroup_byname.gperf: Add Straight Waw and
27302         Manichaean names.
27303         * lib/unictype/joininggroup_name.h: Likewise.
27304         * lib/unictype.in.h (UC_JOINING_GROUP_STRAIGHT_WAW)
27305         (UC_JOINING_GROUP_MANICHAEAN_ALEPH): New enumeration values.
27306         * lib/gen-uni-tables.c (UC_JOINING_GROUP_STRAIGHT_WAW)
27307         (UC_JOINING_GROUP_MANICHAEAN_*): New enumeration values.
27308         (fill_arabicshaping, joining_group_as_c_identifier): Support those
27309         enum values.
27310         (is_property_alphabetic): Accept newly added characters to
27311         cuneiform numeric signs.
27312         (is_property_default_ignorable_code_point): Reject U+0605.
27313         (FIELDLEN): Increase from 120 to 160.
27314         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0605,
27315         U+08FF, U+0C00, U+0C81, U+0D01, U+1AB0..U+1ABE, U+1BAC..U+1BAD,
27316         U+1CF8..U+1CF9, U+1DE7..U+1DF5, U+A9E5, U+AA7C, U+FE27..U+FE2D,
27317         U+102E0, U+10376..U+1037A, U+10AE5..U+10AE6, U+1107F, U+11173,
27318         U+1122F..U+11231, U+11234, U+11236..U+11237, U+112DF,
27319         U+112E3..U+112EA, U+11301, U+1133C, U+11340, U+11366..U+1136C,
27320         U+11370..U+11374, U+114B3..U+114B8, U+114BA, U+114BF..U+114C0,
27321         U+114C2..U+114C3, U+115B2..U+115B5, U+115BC..U+115C0,
27322         U+11633..U+1163A, U+1163D, U+1163F..U+11640, U+16AF0..U+16AF4,
27323         U+16B30..U+16B36, U+1BC9D..U+1BC9E, U+1BCA0..U+1BCA3, and
27324         U+1E8D0..U+1E8D6.
27325         (uc_width): Adjust nonspacing_table_ind boundary from 240 to 248.
27326         * tests/uniwidth/test-uc_width2.sh: Same updates as in
27327         lib/uniwidth/width.c.
27328         * all generated files under lib/uni* and tests/uni*: Regenerate.
27330 2015-01-14  Daiki Ueno  <ueno@gnu.org>
27332         libunistring: update to Unicode 6.3.0
27333         * lib/uniwbrk.in.h (WBP_DQ, WBP_SQ, WBP_HL): New enumeration values.
27334         * lib/uniwbrk/u-wordbreaks.h (FUNC): Support WB7a, WB7b, and WB7c.
27335         Update WB5, WB6, WB7, WB9, WB11, WB12, WB13a, and WB13b.
27336         * lib/uniwbrk/wbrktable.h (uniwbrk_table): Adjust table size.
27337         * lib/uniwbrk/wbrktable.c (uniwbrk_table): Support rule WB7a.
27338         Update WB5, WB9, WB10, WB13a, and WB13b.
27339         * tests/uniwbrk/test-uc-wordbreaks.c
27340         (wordbreakproperty_to_string): Support WBP_DQ, WBP_SQ, and WBP_HL.
27341         * lib/gen-uni-tables.c (UC_BIDI_LRI, UC_BIDI_RLI, UC_BIDI_FSI)
27342         (UC_BIDI_PDI): New enumeration values.
27343         (bidi_category_byname): Support those enum values.
27344         (is_WBP_MIDNUMLET): Exclude 0x0027 (SINGLE QUOTE), which is now a
27345         dedicated property assigned.
27346         (is_property_case_ignorable): Check 0x0027.
27347         (WBP_DQ, WBP_SQ, WBP_HL): New enumeration values.
27348         (get_wbp, debug_output_wbp, fill_org_wbp, debug_output_org_wbp)
27349         (output_wbp): Support those enum values.
27350         * lib/unictype.in.h (UC_BIDI_LRI, UC_BIDI_RLI, UC_BIDI_FSI)
27351         (UC_BIDI_PDI): New enumeration values.
27352         * lib/unictype/bidi_byname.gperf: Add those property names.
27353         * lib/uniwidth/width.c (nonspacing_table_data): Add U+061C,
27354         U+180E, U+1A1B, and U+2066..U+2069.
27355         * tests/uniwidth/test-uc_width2.sh: Same updates as in
27356         lib/uniwidth/width.c.
27357         * all generated files under lib/uni* and tests/uni*: Regenerate.
27359 2015-01-14  Daiki Ueno  <ueno@gnu.org>
27361         libunistring: update to Unicode 6.2.0
27362         * lib/unilbrk/lbrktables.h (LBP_RI): New enumeration value.
27363         (unilbrk_table): Adjust table size.
27364         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column
27365         for LBP_RI.
27366         * lib/uniwbrk.in.h (WBP_RI): New enumeration value.
27367         * lib/uniwbrk/u-wordbreaks.h (FUNC): Support rule WB13c.
27368         Normalize table index skipping ignored properties.
27369         * lib/uniwbrk/wbrktable.c (uniwbrk_table): Support WBP_RI.  Remove
27370         WBP_EXTEND and WBP_FORMAT, which are now computed without using
27371         the table.
27372         * lib/uniwbrk/wbrktable.h: Adjust table size.
27373         * lib/unigbrk.in.h (GBP_RI): New enumeration value.
27374         * lib/unigbrk/uc-is-grapheme-break.c (UC_IS_GRAPHEME_BREAK):
27375         Support rule GB8a.
27376         (UC_GRAPHEME_BREAKS_FOR, gb_table): Support GBP_RI.
27377         * tests/unigbrk/test-uc-is-grapheme-break.c
27378         (graphemebreakproperty_to_string): Support GBP_RI.
27379         * tests/uniwbrk/test-uc-wordbreaks.c
27380         (wordbreakproperty_to_string): Support WBP_RI.
27381         * lib/gen-uni-tables.c (LBP_RI): New enumeration value.
27382         (get_lbp, debug_output_lbp, fill_org_lbp, debug_output_org_lbp)
27383         (output_lbp): Support LBP_RI.  Adjust some characters changed from
27384         LBP_AL to LBP_ID.
27385         (output_lbp): Support LBP_RI.
27386         (WBP_RI): New enumeration value.
27387         (debug_output_wbp, fill_org_wbp, debug_output_org_wbp)
27388         (output_wbp): Support WBP_RI.
27389         (GBP_RI): New enumeration value.
27390         (output_gbp_test, fill_org_gbp): Support GBP_RI.
27391         * all generated files under lib/uni* and tests/uni*: Regenerate.
27393 2015-01-14  Daiki Ueno  <ueno@gnu.org>
27395         libunistring: update to Unicode 6.1.0
27396         * lib/gen-uni-tables.c (output_joining_group): Switch to
27397         3-level table to accommodate joining groups defined with higher
27398         codepoint value.  Since there are only 88 groups defined in
27399         Unicode 7.0.0, use 7-bit packed format for level3 entries.
27400         (get_lbp): Update for Unicode 6.1.0.
27401         * lib/unictype/joininggroup_of.c (uc_joining_group): Adjust to use
27402         3-level table.
27403         * lib/unictype/joininggroup_byname.gperf: Add Rohingya Yeh
27404         joining group name.
27405         * lib/unictype/joininggroup_name.h: Likewise.
27406         * lib/unilbrk/lbrktables.h (LBP_HL): New enumeration value.
27407         (unilbrk_table): Adjust table size.
27408         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column
27409         for LBP_HL.
27410         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0604,
27411         U+08E4..U+08FE, U+1BAB, U+1CF4, U+A674..U+A67B, U+A69F,
27412         U+AAEC..U+AAED, U+AAF6, U+11100..U+11102, U+11127..U+1112B,
27413         U+1112D..U+11134, U+11180..U+11181, U+111B6..U+111BE, U+116AB,
27414         U+116AD, U+116B0..U+116B5, U+116B7, U+16F8F..U+16F92.  Remove
27415         U+302E..U+302F.
27416         * tests/uniwidth/test-uc_width2.sh: Same updates as in
27417         lib/uniwidth/width.c.
27418         * all generated files under lib/uni* and tests/uni*: Regenerate.
27419         * modules/uni*/* (configure.ac): Bump minimum version to 0.9.5.
27421 2015-01-15  Daiki Ueno  <ueno@gnu.org>
27423         uniwbrk/u32-wordbreaks-tests: add conformance test
27424         * modules/uniwbrk/u32-wordbreaks-tests (Files): Add
27425         tests/uniwbrk/test-uc-wordbreaks.c,
27426         tests/uniwbrk/test-uc-wordbreaks.sh, and
27427         tests/uniwbrk/WordBreakTest.txt.
27428         (Makefile.am): Add uniwbrk/test-uc-wordbreaks.sh to $(TESTS), add
27429         test-uc-wordbreaks to $(check_PROGRAMS), and define
27430         test_uc_wordbreaks_SOURCES and test_uc_wordbreaks_LDADD.
27431         * tests/uniwbrk/test-uc-wordbreaks.sh: New file.
27432         * tests/uniwbrk/test-uc-wordbreaks.c: New file.
27434 2015-01-15  Daiki Ueno  <ueno@gnu.org>
27436         uniwbrk: ignore Extended/Format characters at BOL not BOS
27437         * lib/uniwbrk/u-wordbreaks.h (FUNC): Ignore Extend and Format
27438         characters if the previous character property is one of
27439         WBP_NEWLINE, WBP_CR, and WBP_LF.
27441 2015-01-11  Jim Meyering  <meyering@fb.com>
27443         test-strstr.c: avoid a trivial leak
27444         * tests/test-strstr.c (main): Free haystack.
27446         update-copyright: recognize groff's \(co marker
27447         * build-aux/update-copyright (circle_c_re): Also accept
27448         uses of \(co, as found in gzip.1.
27450 2015-01-08  Pádraig Brady  <P@draigBrady.com>
27452         maint.mk: fix compatibility with OS X nm
27453         * top/maint.mk (_gl_tight_scope): Use the -g option to
27454         show exported items rather than the -e option which is
27455         ignored on all platforms except OS X where it gives an error.
27456         Reported by Assaf Gordon.
27458 2015-01-07  KO Myung-Hun  <komh@chollian.net>
27460         localcharset: improve charset detection on OS/2
27461         Use system codepage when appropriate.  Map OS/2 codepages to
27462         GNU canonical charset names if possible.
27463         * lib/config.charset: Don't output aliases if "$os" is os2*.
27464         * lib/localcharset.c (get_charset_aliases) [OS2]: Hardcode the
27465         result for OS/2.
27466         (locale_charset) [OS2]: Use system codepage if codeset is omitted
27467         from the locale name which is neither "C" nor "POSIX".
27469 2015-01-06  Paul Eggert  <eggert@cs.ucla.edu>
27471         count-leading-zeros: use 64-bit intrinsics on 32-bit Windows
27472         This reverts the last patch but one, as it shouldn't be needed now
27473         that the typo is fixed.
27474         * lib/count-leading-zeros.h (count_leading_zeros_ll):
27475         * lib/count-trailing-zeros.h:
27476         * lib/count-one-bits.h:
27477         Go back to using 64-bit intrinsics.
27479         count-leading-zeros: fix pragma typos
27480         * lib/count-leading-zeros.h (_BitScanReverse, _BitScanReverse64):
27481         Fix typos in declaration of intrinsics when _MSC_VER.
27483 2015-01-06  Pádraig Brady  <P@draigBrady.com>
27485         count-leading-zeros: avoid 64-bit intrinsics on 32-bit Windows
27486         * lib/count-leading-zeros.h (count_leading_zeros_ll): Use 32 bit
27487         intrinsics in this case.
27488         * lib/count-trailing-zeros.h: Likewise.
27489         * lib/count-one-bits.h: Likewise.
27491 2015-01-06  Daiki Ueno  <ueno@gnu.org>
27493         uniname/uniname: update to Unicode 7.0.0
27494         To accommodate new characters added since Unicode 5.1.0, this
27495         changes the internal representation of codepoint ranges.
27496         Previously, we grouped codepoint ranges by manually assigned 4-bit
27497         tag, which only allowed 16 groups.  This removes the limitation by
27498         switching to binary search on a table.  For the detail rationale
27499         and the benchmark results, see:
27500         https://lists.gnu.org/r/bug-libunistring/2014-06/msg00001.html
27501         * lib/uniname/gen-uninames.lisp (unicode-char): Rename CODE member
27502         to INDEX, as it no longer represents a codepoint.
27503         (range): New struct.
27504         (main): Switch to intervals list from a bit-pattern based
27505         classification.
27506         * lib/uniname/uninames.h: Regenerate.
27507         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 7.0.0.
27508         * modules/uniname/base (configure.ac): Bump minimum version to
27509         0.9.5.
27510         * modules/uniname/uniname (configure.ac): Bump minimum version to
27511         0.9.5.
27513 2015-01-05  Eric Blake  <eblake@redhat.com>
27515         doc: update INSTALL from autoconf
27516         * doc/install.texi: Resync from autoconf.
27517         * doc/INSTALL: Reflect recent autoconf update.
27518         * doc/INSTALL.ISO: Likewise.
27519         * doc/INSTALL.UTF-8: Likewise.
27521         stdio: fix use of PRIdMAX on modern mingw
27522         * m4/stdio_h.m4 (gl_STDIO_H): Probe for printf flavor via inttypes.
27523         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): Use result
27524         to work with modern mingw.
27526 2015-01-05  Daniel P. Berrange  <berrange@redhat.com>  (tiny change)
27528         pthread: detect git mingw builds with only partial pollution
27529         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for additional
27530         pollution, as seen temporarily in Fedora 21.
27532 2015-01-04  Paul Eggert  <eggert@cs.ucla.edu>
27534         lib-symbol-versions: cache script check
27535         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT):
27536         Cache the check for linker version scripts.
27537         From a suggestion by Christophe Curis in:
27538         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00011.html
27540 2015-01-04  Benno Schulenberg  <bensberg@justemail.net>
27542         maint: fix grammar nits in propername (trivial change)
27543         * lib/propername.h: Remove a mistaken comma and a duplicate "from",
27544         and use an adequate verb and tense.
27546 2015-01-02  Ludovic Courtès  <ludo@gnu.org>
27548         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
27549         * module/gendocs: Add 'doc/gendocs_template_min'.
27551         * build-aux/gendocs.sh: Change email addresses and upstream URLs
27552         from to Gnulib's.
27553         (scripturl, templateurl): Adjust accordingly.
27555 2015-01-01  Paul Eggert  <eggert@cs.ucla.edu>
27557         gendocs: copyright date and version fix
27558         Reported by Karl Berry in:
27559         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00002.html
27560         * build-aux/gendocs.sh, doc/gendocs_template, doc/gendocs_template_min:
27561         Fix copyright date.
27562         * build-aux/gendocs.sh (scriptversion): Update.
27564 2015-01-01  Karl Berry  <karl@gnu.org>
27566         * doc/install.texi,
27567         * build-aux/mdate-sh,
27568         * build-aux/depcomp,
27569         * build-aux/config.guess,
27570         * build-aux/config.sub,
27571         * build-aux/ar-lib,
27572         * build-aux/compile: revert copyright updates (some from last
27573         year) in slaved files.
27575 2015-01-01  Paul Eggert  <eggert@cs.ucla.edu>
27577         version-etc: new year
27578         * doc/gnulib.texi:
27579         * lib/version-etc.c (COPYRIGHT_YEAR): Update copyright date.
27580         * all files: Run 'make update-copyright'.
27582 2014-12-30  Pádraig Brady  <P@draigBrady.com>
27584         xstrtol: ensure errno is reset
27585         Since commit 3bf75404, on 26-09-1998, errno may not have been reset.
27586         Noticed with a spurious coreutils test failure on Darwin 14.0.0.
27588         * lib/xstrtol.c (__xstrtol): Always reset errno before returning.
27590 2014-12-28  Paul Eggert  <eggert@cs.ucla.edu>
27592         utimens: fix dependency typo
27593         * modules/utimens (Depends-on): Remove 'assure'.
27594         This bug was introduced in the recent 'assure' patch.
27596 2014-12-22  Eric Blake  <eblake@redhat.com>
27598         docs: mention why libgen.h is bad
27599         * doc/posix-headers/libgen.texi (libgen.h): Refer to dirname module.
27601 2014-12-20  Paul Eggert  <eggert@cs.ucla.edu>
27603         assure: new module
27604         This works better than 'assert' when compiling with -DNDEBUG,
27605         as it avoids some compiler diagnostics in that case.
27606         Reported by Norihiro Tanaka in:
27607         http://lists.gnu.org/r/bug-gnulib/2014-12/msg00215.html
27608         * MODULES.html.sh (func_all_modules): Add 'assure'.
27609         * lib/assure.h, modules/assure: New files.
27610         * lib/chdir-long.c, lib/cycle-check.c, lib/fchdir.c, lib/fts.c:
27611         * lib/poll.c, lib/savewd.c, lib/xstrtol.c:
27612         Prefer 'assure' to 'assert'.
27613         * lib/utimens.c: Stop using 'assert'; it wasn't helpful.
27614         * modules/chdir-long, modules/cycle-check, modules/fchdir:
27615         * modules/poll, modules/savewd, modules/utimens, modules/xstrtol:
27616         Depend on 'assure'.
27618 2014-12-16  Paul Eggert  <eggert@cs.ucla.edu>
27620         stdalign: port better to HP compilers
27621         * m4/stdalign.m4 (gl_STDALIGN_H): Try the test if __HP_cc or
27622         __HP_aCC are nonzero, to be consistent with the 2014-01-20 patch.
27624         stdalign: work around Apple GCC 4.0 bug
27625         Reported by David Fang in:
27626         http://lists.gnu.org/r/bug-gnulib/2014-12/msg00194.html
27627         * lib/stdalign.in.h (_Alignas):
27628         * m4/stdalign.m4 (gl_STDALIGN_H):
27629         Do not use aligned attribute with GCC 4.0 on Apple.
27631 2014-12-16  Pádraig Brady  <P@draigBrady.com>
27633         getcwd: fix test failure on OS X 10.9
27634         * m4/getcwd-path-max.m4: Avoid the replacement if it
27635         won't be effective due to the PATH_MAX limitation of lstat().
27636         (gl_cv_func_getcwd_path_max): Adjust to indicate this case.
27637         * m4/getcwd.m4 (gl_FUNC_GETCWD): Define HAVE_GETCWD_SHORTER
27638         for this case for use in tests, and also exclude this
27639         case when setting REPLACE_GETCWD.
27640         * tests/test-getcwd.c (test_long_name): Restrict the
27641         tested path length so that lstat() will not be passed
27642         a path greater than PATH_MAX.
27643         Also key a test condition on HAVE_OPENAT_SUPPORT rather
27644         than AT_FDCWD, since the latter is set unconditionally
27645         since Sep 2009 in commit 52c658e9.
27647 2014-12-14  Tim Rühsen  <tim.ruehsen@gmx.de>
27649         parse-datetime: avoid a compiler warning with byacc (trivial)
27650         * lib/parse-datetime.y (yylex): Use the same prototype in the
27651         function definition as the declaration, to avoid a -Wstrict-prototypes
27652         warning seen when using byacc.
27654 2014-12-12  Daiki Ueno  <ueno@gnu.org>
27656         unicase/locale-language-tests: fix LOCALE_FR test
27657         * tests/unicase/test-locale-language.sh: Really use $LOCALE_FR for
27658         a French locale with traditional encoding.
27659         Reported by umerqayam in:
27660         http://lists.gnu.org/r/bug-libunistring/2014-12/msg00000.html
27662 2014-12-12  Paul Eggert  <eggert@cs.ucla.edu>
27664         stddef: support C11's max_align_t
27665         * doc/posix-headers/stddef.texi (stddef.h): Document max_align_t.
27666         * lib/stddef.in.h (_@GUARD_PREFIX@_STDDEF_H) [__need_wint_t]:
27667         Do not undef, as that might cause max_align_t to be defined twice.
27668         Instead, change use to check for _GL_STDDEF_WINT_T too.
27669         (max_align_t) [!HAVE_MAX_ALIGN_T]: New decl.
27670         * m4/stddef_h.m4 (gl_STDDEF_H, gl_STDDEF_H_DEFAULTS):
27671         Check for max_align_t.
27672         * modules/stddef (stddef.h): Substitute HAVE_MAX_ALIGN_T.
27673         * modules/stddef-tests (Depends-on): Add stdalign.
27674         * tests/test-stddef.c: Test max_align_t.
27676 2014-12-11  Daiki Ueno  <ueno@gnu.org>
27678         unistd: fix iOS check conditional
27679         On Mac OS X 10.8, the TARGET_* macros are unconditonally defined
27680         as 0 or 1 in <TargetConditionals.h>, and the previous check always
27681         yielded true on non-iOS environment.
27682         * lib/unistd.in.h (environ) [__APPLE__]: Check the values of
27683         TARGET_OS_IPHONE and TARGET_IPHONE_SIMULATOR, instead of whether
27684         they are defined.
27686 2014-12-09  Paul Eggert  <eggert@cs.ucla.edu>
27688         posixtm: avoid compiler warning in a better way
27689         * lib/posixtm.c (IF_LINT): Remove.
27690         (year, posix_time_parse):
27691         Return true (not 0) if successful.  All callers changed.
27692         (posix_time_parse): Simplify to pacify GCC without need for IF_LINT.
27694 2014-12-08  KO Myung-Hun  <komh78@gmail.com>
27696         * lib/relocatable.c (relocate): Prepend $UNIXROOT to pathname if it is
27697         started with '/' on EMX.
27699 2014-12-08  KO Myung-Hun  <komh78@gmail.com>
27701         freopen: workaround freopen() on OS/2 kLIBC
27702         * lib/freopen.c (rpl_freopen): Workaround.
27703         * m4/freopen.m4: Add os2* case.
27705         get_shared_library_fullname: port to EMX
27706         * lib/relocatable.c: Define strcmp and strncmp to stricmp and strnicmp
27707         on EMX, respectively.
27708         (_DLL_InitTerm): New on EMX.
27709         (get_shared_library_fullname): Implement on EMX.
27711         find_executable: port to EMX
27712         * lib/progreloc.c (find_executable): Implement on EMX.
27714         sched: check struct sched_param in spawn.h as well
27715         * lib/sched.in.h: Include spawn.h on kLIBC.
27716         * lib/sched_h.m4: Check struct sched_param in spawn.h as well.
27718 2014-12-08  Martin Kletzander  <mkletzan@redhat.com>  (tiny change)
27720         bootstrap: Allow perl modules in $buildreq
27721         * build-aux/bootstrap: Add case for perl modules.
27723 2014-12-08  Pádraig Brady  <P@draigBrady.com>
27725         apply _GL_ATTRIBUTE_PURE to some inline functions
27726         clang 3.4.2 flagged these inline functions as pure
27727         * lib/savewd.h (savewd_errno): Set _GL_ATTRIBUTE_PURE.
27728         * lib/sig-handler.h (get_handler): Likewise.
27729         * lib/stat-time.h (get_stat_{a,c,m,birth}time{,_ns}): Likewise.
27730         * lib/timespec.h (timespec_cmp, timespec_sign): Likewise.
27732 2014-12-06  Pádraig Brady  <P@draigBrady.com>
27734         vasnprintf: fix potential use after free
27735         * lib/vasnprintf.c (VASNPRINTF): Fix free-memory read,
27736         flagged by clang-analyzer 3.4.2.
27738 2014-12-05  Pádraig Brady  <P@draigBrady.com>
27740         filevercmp, posixtm: avoid compiler warnings with -O3
27741         * lib/filevercmp.h (filevercmp): Tag with _GL_ATTRIBUTE_PURE
27742         * lib/posixtm.c: (IF_LINT): Define.
27743         (posix_time_parse): Use it to void a "may be used uninitialized"
27744         warning, seen only with -O3.
27746 2014-12-05  Bruno Haible  <bruno@clisp.org>
27748         Fix LDBL80_WORDS macro on big endian platforms.
27749         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Add missing parenthesis in
27750         LDBL80_WORDS macro.
27751         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
27752         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
27753         * tests/test-isfinite.c (test_isfinitel): Likewise.
27754         * tests/test-isinf.c (test_isinfl): Likewise.
27755         * tests/test-isnan.c (test_long_double): Likewise.
27756         * tests/test-isnanl.h (main): Likewise.
27757         * tests/test-snprintf-posix.h (LDBL80_WORDS): Add missing parenthesis.
27758         * tests/test-sprintf-posix.h (LDBL80_WORDS): Likewise.
27759         * tests/test-vasnprintf-posix.c (LDBL80_WORDS): Likewise.
27760         * tests/test-vasprintf-posix.c (LDBL80_WORDS): Likewise.
27761         Reported by Pádraig Brady.
27763 2014-12-02  KO Myung-Hun  <komh78@gmail.com>
27765         git-version-gen: do not print new line characters
27766         * build-aux/git-version-gen: Use printf instead of echo and tr.
27768         gnulib-tool: recognize x:* as an absolute path
27769         * gnulib-tool (func_gnulib_dir): Add ?:* case.
27770         (func_relconcat): Likewise.
27772 2014-12-02  Andrei Borzenkov  <arvidjaar@gmail.com>
27774         argp: avoid extraneous translation and mem leak with empty pre doc
27775         * lib/argp-help.c (argp_doc): Never translate the empty string,
27776         when "\v" is the first or last character of the string, as that
27777         has a reserved meaning to return the header info from a po file.
27778         This also fixes a small memory leak in the !post case.
27779         The issue can be seen with this command for example:
27780         LC_MESSAGES=en_US grub2-mknetdir --help
27782 2014-11-27  Daiki Ueno  <ueno@gnu.org>
27784         uniname/uniname-tests: skip if system's libunistring is used
27785         * modules/uniname/uniname-tests (Makefile.am): Skip test if
27786         uniname/uniname module is not compiled.
27788 2014-11-27  Pádraig Brady  <P@draigBrady.com>
27790         printf: fix configure check on big endian systems
27791         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Add missing bracket.
27793 2014-11-22  Daiki Ueno  <ueno@gnu.org>
27795         pipe-filter-gi, pipe-filter-ii: port to AIX
27796         On AIX 7.1, 'select' is defined as static and cannot be referred
27797         to from inline function.
27798         * lib/pipe-filter-aux.h (nointr_select): Remove, manually expand
27799         the definition...
27800         * lib/pipe-filter-gi.c (filter_loop): ...here, and...
27801         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): ...here.
27803 2014-11-20  Paul Eggert  <eggert@cs.ucla.edu>
27805         gitlog-to-changelog: add --until
27806         * build-aux/gitlog-to-changelog: Support new --until option.
27807         Need described by Eli Zaretskii in: http://bugs.gnu.org/19113
27809 2014-11-14  Paul Eggert  <eggert@cs.ucla.edu>
27811         extern-inline: update commentary about GCC bugs
27812         * m4/extern-inline.m4: Add another GCC bug number to comments.
27814 2014-11-13  Daiki Ueno  <ueno@gnu.org>
27816         gen-uni-tables: untabify
27817         * lib/gen-uni-tables.c: Untabify.
27819 2014-11-13  Daiki Ueno  <ueno@gnu.org>
27821         gen-uni-tables: check out-of-range values added to 3-level tables
27822         * lib/gen-uni-tables.c (output_category, output_bidi_category)
27823         (output_joining_type, output_ident_category): Check out-of-range
27824         values added to 3-level tables.
27826 2014-11-13  Daiki Ueno  <ueno@gnu.org>
27828         gen-uni-tables: utilize 'assert'
27829         * lib/gen-uni-tables.c: Include <assert.h>.
27830         (output_category, output_combclass, output_decimal_digit_test)
27831         (output_decimal_digit, output_digit_test, output_digit)
27832         (output_numeric, get_mirror_value, fill_properties)
27833         (fill_property30, is_property_alphabetic)
27834         (is_property_default_ignorable_code_point)
27835         (is_property_uppercase, is_property_lowercase)
27836         (is_property_cased, is_property_case_ignorable)
27837         (is_property_changes_when_lowercased, is_property_iso_control)
27838         (is_property_math, fill_arabicshaping, output_joining_group)
27839         (fill_scripts, fill_blocks, output_lbp, fill_org_wbp)
27840         (output_wbp, fill_org_gbp, get_decomposition)
27841         (output_decomposition, fill_composition_exclusions)
27842         (debug_output_composition_tables, output_composition_tables)
27843         (redistribute_casefolding_rules, output_casing_rules): Use
27844         'assert (EXPR);' instead of 'if (!EXPR) abort ();' for better error
27845         reporting.
27847 2014-11-13  Daiki Ueno  <ueno@gnu.org>
27849         gen-uni-tables: cosmetic improvements
27850         * lib/gen-uni-tables.c: Escape newlines in the Emacs file local
27851         variables specification.
27852         (is_outdigit): Remove unused function.
27854 2014-11-12  Jeroen Roovers  <jer@gentoo.org>  (tiny change)
27856         fcntl-h-tests: port to PA-RISC GNU/Linux
27857         * tests/test-fcntl-h.c (main): Check O_SYNC is different from O_DSYNC.
27859 2014-11-10  Paul Eggert  <eggert@cs.ucla.edu>
27861         fts: port to C89
27862         Problem reported for MSVC 16 by Gisle Vanem in:
27863         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00027.html
27864         * lib/fts.c (fts_build): Avoid declaration before statement.
27866 2014-11-06  Paul Eggert  <eggert@cs.ucla.edu>
27868         unistd: port to iOS
27869         Problem reported by André Klitzing in:
27870         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00013.html
27871         * lib/unistd.in.h (environ): Do not include crt_externs.h on iOS.
27873 2014-11-05  Paul Eggert  <eggert@cs.ucla.edu>
27875         obstack: do not reject malloc-style obstack_chunkfun, obstack_freefun
27876         Problem reported by Alan Modra in:
27877         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00007.html
27878         * lib/obstack.h (obstack_chunkfun, obstack_freefun):
27879         Always cast the function arg, reverting this part of the previous
27880         change.
27882 2014-11-04  Paul Eggert  <eggert@cs.ucla.edu>
27884         obstack: avoid potentially-nonportable function casts
27885         * lib/obstack.c (CALL_CHUNKFUN, CALL_FREEFUN):
27886         Remove, replacing with ...
27887         (call_chunkfun, call_freefun): New static functions.
27888         All uses changed.  Avoid potentially-nonportable casts.
27889         (chunkfun_type, freefun_type): Remove typedefs; no longer used.
27890         (_obstack_begin_worker): Omit last two args, since they
27891         rely on potentially-nonportable casts.  All callers changed.
27892         * lib/obstack.h (_OBSTACK_CAST): New macro.
27893         Use it everywhere the old API used a potentially-nonportable cast.
27894         The new API doesn't cast.
27895         (struct obstack): Use unions rather than requiring
27896         potentially-nonportable casts.
27897         (obstack_chunkfun, obstack_freefun): Return void.
27899 2014-11-03  Alan Modra  <amodra@gmail.com>
27901         obstack: fix macro return values
27902         * lib/obstack.h (obstack_next_free): Return void *.
27903         (obstack_1grow_fast, obstack_blank_fast): Return void.
27904         For __GNUC__ macros:
27905         (obstack_1grow, obstack_blank): Remove now unnecessary (void) 0.
27906         For !__GNUC__ macros:
27907         (obstack_make_room, obstack_grow, obstack_grow0)
27908         (obstack_ptr_grow_fast, obstack_int_grow_fast): Return void.
27910 2014-11-03  Paul Eggert  <eggert@cs.ucla.edu>
27912         obstack: do not assume system-supplied obstack is size_t safe
27913         * m4/obstack.m4: New file.
27914         * modules/obstack (Files): Add it.
27916         obstack: port to platforms that #define __alignof__
27917         * lib/obstack.c: Include <alignof.h> if !defined __alignof__,
27918         not if !_LIBC.  We don't know of any platforms that #define
27919         __alignof__, but it might be useful in tests.  Conversely,
27920         glibc assumes GCC.
27922 2014-11-03  Pádraig Brady  <P@draigBrady.com>
27924         linkat: don't unconditionally replace on GNU/Linux
27925         * m4/linkat.m4 (gl_FUNC_LINKAT): The compile check for AT_SYMLINK_FOLLOW
27926         was redundant for a few reasons.  It was present to support compiling
27927         on new systems but running on the old narrow window of Linux 2.6.1[67].
27928         It setup and cleaned up test files which weren't actually used.
27929         On non __linux__ it compile tested AT_SYMLINK_FOLLOW, but that is
27930         implicit in the following check.
27932 2014-11-03  Pádraig Brady  <P@draigBrady.com>
27934         linkat: wrap to handle symlinks on OS X 10.10
27935         * m4/linkat.m4 (gl_FUNC_LINKAT): linkat() is available on Yosemite
27936         but not usable because it doesn't support creating hardlinks
27937         to symlinks.  Therefore add a generic test for this capability
27938         and fallback to our emulation if linkat() fails with ENOTSUP.
27940 2014-11-02  Paul Eggert  <eggert@cs.ucla.edu>
27942         open, openat: document nonstandard FreeBSD, NetBSD O_NOFOLLOW errno
27943         * doc/posix-functions/open.texi (open):
27944         * doc/posix-functions/openat.texi (openat):
27945         Document that these functions do not set errno to ELOOP when
27946         a symlink is opened with O_NOFOLLOW.
27948 2014-10-31  Paul Eggert  <eggert@cs.ucla.edu>
27950         obstack: add NEWS entry for recent incompatible changes
27951         * NEWS: Describe recent changes.
27953 2014-10-30  Pádraig Brady  <P@draigBrady.com>
27955         mountlist: don't use libmount to decide on dummy/remote
27956         * lib/mountlist.c (read_file_system_list): Don't use the libmount
27957         routines to determine whether a file system is dummy or remote,
27958         as they're not currently compatible.  For example the remoteness
27959         is determined on file system type (for which the list seems incomplete),
27960         rather than simply checking for a ':' in the device name.
27961         Also libmount currently determines that 'tmpfs' is a dummy file system
27962         even though it has associated storage.
27964 2014-10-29  Paul Eggert  <eggert@cs.ucla.edu>
27966         obstack: prefer __alignof__ to alignof
27967         This is for portability to pre-4.7 GCC when compiling glibc.
27968         See Joseph S. Myers in:
27969         http://sourceware.org/ml/libc-alpha/2014-10/msg00703.html
27970         * lib/obstack.c (__alignof__) [!_LIBC && !__GNUC__]:
27971         New macro, defined by including and using <alignof.h>.
27972         (MAX): New macro.
27973         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Redefine in terms of these.
27974         Do not use enums as they are not portable to some broken compilers.
27975         * modules/obstack (Depends-on): Depend on alignof, not stdalign.
27977         obstack: prefer alignof to calculating alignments by hand
27978         * lib/obstack.c: Include <stdalign.h>.
27979         (struct fooalign): Remove.
27980         (DEFAULT_ALIGNMENT): Use alignof rather than the old offsetof hack.
27981         * modules/obstack (Depends-on): Add stdalign.
27983 2014-10-28  Paul Eggert  <eggert@cs.ucla.edu>
27985         obstack: use size_t alignments and check for overflow
27986         * lib/obstack.c, lib/obstack.h (_obstack_begin, _obstack_begin_1):
27987         * lib/obstack.c (_obstack_begin_worker, _obstack_newchunk):
27988         * lib/obstack.h (struct obstack.alignment_mask):
27989         Use _OBSTACK_SIZE_T, not int, for alignments.
27990         * lib/obstack.c (_obstack_newchunk): Fail if the size calculation
27991         overflows, e.g., when adding the alignment.
27993 2014-10-29  Alan Modra  <amodra@gmail.com>
27995         obstack: 64-bit obstack support, part 3
27996         This finally enables full 64-bit obstack support.  The glibc
27997         shared library specific code is removed from obstack.c too, and
27998         the error handling code conditionally compiled under control of
27999         another macro, _OBSTACK_NO_ERROR_HANDLER.
28000         * lib/obstack.h: Include string.h earlier.
28001         (_OBSTACK_INTERFACE_VERSION): Define.
28002         (_OBSTACK_SIZE_T, _CHUNK_SIZE_T): Define as size_t for version 2.
28003         * lib/obstack.c: Don't include shlib-compat.h.
28004         (OBSTACK_INTERFACE_VERSION): Delete.
28005         (_OBSTACK_ELIDE_CODE): Rename from ELIDE_CODE.  Define when version 1
28006         glibc code is compatible with version 2.  Don't include stdio.h for
28007         __GNU_LIBRARY.
28008         (obstack_exit_failure, print_and_abort, obstack_alloc_failed_handler):
28009         Omit when _OBSTACK_NO_ERROR_HANDLER defined.  Include stdio.h here.
28010         (_obstack_compat, _obstack, _obstack_newchunk, obstack_free): Delete
28011         glibc shared library specific source.
28013         obstack: 64-bit obstack support, part 2
28014         This gets us 4G obstack support, without changing ABI
28015         compatibility, apart from possibly introducing some
28016         signed/unsigned comparison warnings in code that uses obstack.h.
28017         a) Replace "int" size parameters, return values, and macro local vars
28018            with _OBSTACK_SIZE_T, an "unsigned int" for now.
28019         b) Make obstack.chunk_size a _CHUNK_SIZE_T, an "unsigned long" for now.
28020         c) Make all obstack macros checking available room use obstack_room.
28021            "next_free + desired > chunk_limit" may wrap the lhs for chunks
28022            allocated near the top of memory.
28023         d) Use unsigned comparisons, and macro locals to support >2G on 32-bit.
28024         * lib/obstack.h (_OBSTACK_SIZE_T): Define.  Use throughout
28025         in place of "int" size parameters, return values and local vars.
28026         (_CHUNK_SIZE_T): Define.
28027         (struct obstack): Make chunk_size a _CHUNK_SIZE_T.  Make temp
28028         union use an _OBSTACK_SIZE_T integer type.
28029         For __GNUC__ versions of the following macros...
28030         (obstack_room): Rename local var.
28031         (obstack_make_room): Use obstack_room.
28032         (obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
28033         obstack_int_grow, obstack_blank): Likewise.
28034         (obstack_finish): Use unsigned comparison when comparing aligned
28035         next_free against chunk_limit.
28036         (obstack_free): Cast OBJ to remove possible const qualifier.
28037         For !__GNUC__ versions of the following macros...
28038         (obstack_make_room): Use obstack_room.
28039         (obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
28040         obstack_int_grow, obstack_blank): Likewise.
28041         (obstack_finish): Use unsigned comparision when comparing aligned
28042         next_free against chunk_limit.
28043         (obstack_free): Use temp.p and same comparisons as __GNUC__ version.
28044         * lib/obstack.c (_obstack_begin_worker): Make "size" parameter
28045         _OBSTACK_SIZE_T.
28046         (_obstack_begin, _obstack_begin_1): Likewise.
28047         (_obstack_newchunk): Likewise for length parameter.  Use size_t locals.
28048         (_obstack_memory_used): Return and use _OBSTACK_SIZE_T local.
28050         obstack: 64-bit obstack support, part 1
28051         a) Correct calls to alloc function, to use a size_t arg.  "long" is
28052            just wrong on targets like x86_64-mingw64 where "long" is 32 bits
28053            and "size_t" 64 bits.
28054         b) Consolidate _obstack_begin and _obstack_begin1 code.
28055         * lib/obstack.h (struct obstack <chunkfun>): Correct prototype to
28056         use "size_t" rather than "long".
28057         (_obstack_begin, _obstack_begin1): Likewise.
28058         (obstack_init, obstack_begin, obstack_specify_allocation_with_arg,
28059         obstack_chunkfun): Update alloc function casts.
28060         * lib/obstack.c (CALL_CHUNKFUN): Update chunkfun cast.
28061         (chunkfun_type, freefun_type): New typdefs.
28062         (_obstack_begin_worker): Split out from ..
28063         (_obstack_begin, _obstack_begin_1): ..here.
28065         obstack: tidy part 2
28066         a) Don't be concerned about "not polluting the namespace with stddef.h
28067            symbols" in obstack.h, since gnulib string.h includes stddef.h
28068            anyway, and it seems unlikely that anyone would care.
28069         b) Don't roll our own slow memcpy in _obstack_newchunk.
28070         c) Rename obstack_free to _obstack_free.  This makes the naming
28071            consistent with other obstack functions and obviates the need for
28072            __obstack_free.  Ancient obstack.c defined both obstack_free and
28073            _obstack_free.  We continue to do that for _LIBC via an alias.
28074         d) Miscellaneous macro fixes.  The expression used to test for gcc-2.8
28075            is clever, but nowadays gcc warns on undefined macros.  You'll get
28076            an undefined macro warning if simulating an old gcc with -U__GNUC__
28077            -U__GNUC_MINOR__ -D__GNUC__=1.
28078         * lib/obstack.h: Include stddef.h unconditionally.  Formatting fixes.
28079         (PTR_INT_TYPE): Delete, replace with ptrdiff_t.
28080         (__obstack_free): Delete, update refs.
28081         (_obstack_free): Rename from obstack_free.
28082         (__extension__): Avoid undefined macro warning for __GNUC_MINOR__.
28083         (obstack_object_size, obstack_room): Parenthesise !__GNUC__ versions.
28084         * lib/obstack.c: Don't include stddef.h.
28085         (COPYING_UNIT): Delete.
28086         (_obstack_begin): Formatting fix.
28087         (_obstack_newchunk): Use memcpy to move existing object to new chunk.
28088         (_obstack_free): Rename from __obstack_free, update alias.  Move
28089         undef of obstack_free to where it is needed.
28091         obstack: tidy part 1
28092         a) Rename temp fields.  temp.tempint and temp.tempptr just looks ugly
28093            to me, and result in overlong lines after later patches.
28094         b) Move error handling code, to avoid a forward declaration and to
28095            simplify later patches in this series.
28096         * lib/obstack.h (struct obstack <temp>): Rename fields of union
28097         and update all uses.
28098         * lib/obstack.c: Include stdlib.h earlier.
28099         (obstack_exit_failure, obstack_alloc_failed_handler): Move later
28100         in file.
28101         (print_and_abort): Remove now redundant forward declaration.
28103 2014-10-24  Paul Eggert  <eggert@cs.ucla.edu>
28105         socketlib, sockets, sys_socket: Use AC_REQUIRE to pacify autoconf.
28106         Without this change, in bleeding-edge fileutils Autoconf complains
28107         that gl_SOCKETLIB etc. are AC_REQUIREd after being invoked.
28108         * modules/socketlib (configure.ac): AC_REQUIRE gl_SOCKETLIB.
28109         * modules/sockets (configure.ac): AC_REQUIRE gl_SOCKETS.
28110         * modules/sys_socket (configure.ac): AC_REQUIRE gl_HEADER_SYS_SOCKET.
28112 2014-10-24  Daiki Ueno  <ueno@gnu.org>
28114         iconv: avoid false detection of non-working iconv
28115         The INBUF arguments of iconv can be either 'const char **'
28116         or 'char **'.  If CC is g++, the difference causes a compile error
28117         and thus leads to a false detection of non-working iconv.
28118         Reported by Eli Zaretskii and Werner LEMBERG in:
28119         <https://lists.gnu.org/r/bug-gnulib/2014-10/msg00023.html>.
28120         * m4/iconv.m4 (AM_ICONV_LINK): Try all possible argument types of
28121         iconv.  Bump serial number.
28123 2014-10-23  Pádraig Brady  <P@draigBrady.com>
28125         bootstrap: print more diagnostics for missing programs
28126         * build-aux/bootstrap: only suppress stderr when checking for
28127         alternative program names.  This supports programs issuing non
28128         standard error messages.
28130 2014-10-23  Pádraig Brady  <P@draigBrady.com>
28132         bootstrap: only update the gnulib submodule
28133         * build-aux/bootstrap: Restrict the "submodule update" command
28134         to the gnulib path.
28136 2014-10-18  Paul Eggert  <eggert@cs.ucla.edu>
28138         symlinkat: port to AIX 7.1
28139         * doc/posix-functions/symlinkat.texi (symlinkat):
28140         Mention AIX porting problem.
28141         * lib/symlinkat.c: Always include errno.h.
28142         (rpl_symlinkat) [HAVE_SYMLINKAT]: New function.
28143         * lib/unistd.in.h (symlinkat): Add replacement machinery.
28144         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Check symlinkat behavior.
28145         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_SYMLINKAT.
28146         * modules/symlinkat (Depends-on): Add fstatat if REPLACE_SYMLINKAT.
28147         (configure.ac): Also compile replacement if REPLACE_SYMLINKAT.
28148         * modules/unistd (unistd.h): Substitute REPLACE_SYMLINKAT.
28150         readlinkat: port to AIX 7.1
28151         * doc/posix-functions/readlink.texi (readlink):
28152         * doc/posix-functions/readlinkat.texi (readlinkat):
28153         Mention AIX porting problem.
28154         * lib/readlinkat.c (rpl_readlinkat) [HAVE_READLINKAT]:
28155         New function.
28156         * lib/unistd.in.h (readlinkat): Add replacement machinery.
28157         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Check readlinkat signature.
28158         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_READLINKAT.
28159         * modules/readlinkat (configure.ac): Also compile replacement
28160         if REPLACE_READLINKAT.
28161         * modules/unistd (unistd.h): Substitute REPLACE_READLINKAT.
28163 2014-10-12  Karl Berry  <karl@gnu.org>
28165         * doc/posix-functions/dirname.texi: remove spurious {.
28167 2014-09-28  Ben Pfaff  <blp@cs.stanford.edu>
28169         basename, dirname: Improve documentation.
28170         * doc/posix-functions/basename.texi: Mention dirname module and
28171         base_name() function.
28172         * doc/posix-functions/dirname.texi: Mention dir_name() and
28173         mdir_name() functions.
28174         Suggested by Werner LEMBERG <wl@gnu.org>.
28176 2014-09-24  Jim Meyering  <meyering@fb.com>
28178         exclude: declare exclude_patopts static
28179         * lib/exclude.c (exclude_patopts): Declare static,
28180         to avoid triggering a -Wmissing-prototypes warning.
28181         The alternative (declaring it in the .h file) would
28182         require publicizing the private "struct patopts".
28184 2014-09-21  Werner Lemberg  <wl@gnu.org>
28186         dirname: support compilation with C++
28187         * lib/dirname.h: Add necessary C linkage declarations.
28189 2014-09-16  Paul Eggert  <eggert@cs.ucla.edu>
28191         qsort_r: include <config.h>
28192         Problem reported by Tom G. Christensen in:
28193         http://lists.gnu.org/r/bug-gnulib/2014-09/msg00071.html
28194         * lib/qsort.c [!_LIBC]: Include <config.h> first.
28196 2014-09-16  Dylan Cali  <calid1984@gmail.com>
28198         avltree-list: avoid compiler warnings (trivial)
28199         * lib/gl_anytree_list2.h: Add _GL_ATTRIBUTE_PURE to avoid
28200         -Werror=suggest-attribute=pure.
28201         * lib/gl_array_list.c: Likewise.
28202         * lib/gl_avltree_list.c (gl_avltree_list_check_invariants): Add extern
28203         declaration to avoid -Werror=missing-prototypes.  This is not added
28204         to a header as only exported for tests.  Add (void) to the
28205         check_invariants() call to indicate we're discarding the result
28206         in this context which avoids -Werror=unused-value.  Note we don't
28207         use ignore_value here to avoid a dependency as we know we'll not
28208         be adding __attribute__((warn_unused_result)) to check_invariants().
28209         Add _GL_ATTRIBUTE_CONST to avoid -Werror=suggest-attribute=const.
28211 2014-09-15  Paul Eggert  <eggert@cs.ucla.edu>
28213         qsort_r: new module, for GNU-style qsort_r
28214         * m4/qsort_r.m4: New file.  Forgot to add this earlier.
28216 2014-09-15  Werner LEMBERG  <wl@gnu.org>
28218         strerror_r-posix: support compilation with C++
28219         * lib/strerror_r.c: Add necessary C linkage declarations.
28221 2014-09-11  Johannes Zarl  <johannes.zarl@jku.at>
28223         fcntl-h: fix compilation with Intel C++ compiler (trivial)
28224         * lib/fcntl.in.h: ICC has the same issue as GCC <= 4.2.
28226 2014-09-09  Fridolin Pokorny  <fpokorny@redhat.com>
28228         mountlist: use /proc/self/mountinfo when available
28229         Use libmount to propagate device IDs provided by Linux in
28230         /proc/self/mountinfo.  This will give more accurate output when
28231         using df in chroot'ed environments as the device IDs are not
28232         determined by stat() which may be inaccurate within the chroot.
28233         * lib/mountlist.c (read_file_system_list): Use the libmount routines
28234         from util-linux to parse "/proc/self/mountinfo" or fall back to
28235         standard getmntent() processing.
28236         * m4/ls-mntd-fs.m4: Check for libmount only when 1-argument
28237         getmntent() is used, as is the case on GNU/Linux.
28239 2014-09-07  Eric Wong  <normalperson@yhbt.net>
28241         users.txt: add cmogstored
28242         cmogstored has used gnulib since the beginning in 2012 to support
28243         GNU/Linux, FreeBSD, and GNU/kFreeBSD.
28245 2014-09-05  Mathieu Anquetin  <mathieu@anquetin.eu>
28247         Trivial change.
28248         * gnulib-tool: Use same options as build-aux/bootstrap to download
28249         PO files.
28251 2014-09-05  Mathieu Anquetin  <mathieu@anquetin.eu>
28253         Trivial change.
28254         * gnulib-tool: Fallback to wget when rsync of PO files fails.
28256 2014-09-04  Eric Blake  <eblake@redhat.com>
28258         maintainer-makefile: add syntax check for useless ';;'
28259         * top/maint.mk (sc_prohibit_double_semicolon): New rule.
28261 2014-09-04  Paul Eggert  <eggert@cs.ucla.edu>
28263         pthread, pthread_sigmask, threadlib: port to Ubuntu 14.04
28264         Problem reported by Assaf Gordon in:
28265         http://lists.gnu.org/r/bug-gnulib/2014-09/msg00023.html
28266         Apparently Ubuntu is doing some fancy link-time optimization
28267         that doesn't work with -lpthread but does work with -pthread.
28268         Work around the bug by preferring -pthread to -lpthread.
28269         * m4/pthread.m4 (gl_PTHREAD_CHECK):
28270         * m4/threadlib.m4 (gl_THREADLIB_BODY): Prefer -pthread to -lpthread.
28271         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
28272         Treat -pthread like -lpthread.
28274 2014-09-04  Eric Blake  <eblake@redhat.com>
28276         error: drop spurious semicolon
28277         * lib/error.c (__error_at_line): Fix ';;'.
28279 2014-09-02  Paul Eggert  <eggert@cs.ucla.edu>
28281         gnulib-common.m4: port to GCC 4.2.1 and Sun Studio 12 C++
28282         * m4/gnulib-common.m4 (AC_C_RESTRICT):
28283         Override AC_C_RESTRICT unconditionally.
28284         Update from autoconf, incorporating:
28285         2014-09-02 autoconf: port 'restrict' to GCC 4.2.1
28286         2009-01-28 Fix AC_C_RESTRICT for Sun Studio 12 C++.
28288 2014-09-01  Paul Eggert  <eggert@cs.ucla.edu>
28290         manywarnings: add GCC 4.9 warnings
28291         Also, make it easier to maintain this in the future.
28292         * build-aux/gcc-warning.spec: Add -Wabi-tag,
28293         -Wconditionally-supported, -Wdelete-incomplete,
28294         -Winherited-variadic-ctor, -Wvirtual-move-assign, -Wzerotrip.
28295         Remove duplicates.  Use tabs uniformly, as that's what 'cut' wants.
28296         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wdate-time,
28297         -Wopenmp-simd.  Use -fdiagnostics-show-option and -funit-at-a-time
28298         only for older GCC versions that need them.  Handle
28299         -Wnormalized=nfc specially, so that the 'comm' command used
28300         for maintenance doesn't get confused.
28302 2014-08-31  Paul Eggert  <eggert@cs.ucla.edu>
28304         vasnprintf: fix bugs in width computation
28305         * lib/vasnprintf.c (VASNPRINTF):
28306         Rework previous change, which introduced a bug,
28307         to avoid the warning in a different way.
28308         Avoid undefined behavior if the width arg is less than -INT_MAX.
28309         Avoid unnecessary use of HAS_WIDTH local.
28311 2014-08-31  Thien-Thi Nguyen  <ttn@gnu.org>  (tiny change)
28313         vasnprintf: Avoid signed/unsigned comparison warning.
28314         * lib/vasnprintf.c (VASNPRINTF): To calculate padding,
28315         compare end addr of generated string w/ maximum end addr.
28317 2013-08-30  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
28319         parse-datetime: Avoid pointer difference.
28320         * lib/parse-datetime.y (yylex): Compare pointer to end of buffer,
28321         instead of calculating difference of pointers.  This removes an
28322         annoying warning, devoid of any use.
28324 2014-08-29  Paul Eggert  <eggert@cs.ucla.edu>
28326         qsort_r: new module, for GNU-style qsort_r
28327         This works even on FreeBSD, which has an incompatible qsort_r API.
28328         * MODULES.html.sh: Add it.
28329         * doc/glibc-functions/qsort_r.texi: It's now supported.
28330         * lib/qsort.c: New file, taken from glibc with minor changes
28331         inside "#ifndef _LIBC" and with an unnecessary "#include <alloca.h>"
28332         removed.
28333         * lib/qsort_r.c: New file, compiled only on FreeBSD.
28334         * lib/stdlib.in.h (qsort_r): Declare in the usual way.
28335         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS):
28336         * modules/qsort_r, modules/qsort_r-tests: New files.
28337         * modules/stdlib (Makefile): Set up its defaults.
28338         * tests/test-qsort_r.c: New file.
28340 2014-08-08  Paul Eggert  <eggert@cs.ucla.edu>
28342         vla: new module
28343         GNU RCS can use this, mostly for documentation I expect.  See:
28344         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00025.html
28345         * MODULES.html.sh: Add vla.
28346         * lib/vla.h, modules/vla: New files.
28348 2014-08-07  Daiki Ueno  <ueno@gnu.org>
28350         localename: make gl_locale_name_thread really thread-safe on Windows
28351         * lib/localename.c [WINDOWS_NATIVE && !IN_LIBINTL]: Include
28352         "glthread/lock.h".
28353         (get_lcid_lock) [WINDOWS_NATIVE]: New variable.
28354         (get_lcid) [WINDOWS_NATIVE]: Lock while looking for an LCID.
28356 2014-08-07  Paul Eggert  <eggert@cs.ucla.edu>
28358         getpass: don't assume struct termios
28359         Problem report and trivial fix by Jonas 'Sortie' Termansen in:
28360         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00015.html
28361         * lib/getpass.c (getpass): Port to systems lacking struct termios.
28363         getdtablesize: fall back on sysconf (_SC_OPEN_MAX)
28364         Problem reported by Jonas 'Sortie' Termansen in:
28365         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00023.html
28366         * lib/getdtablesize.c (getdtablesize) [_SC_OPEN_MAX]:
28367         Implement via sysconf for platforms that lack getdtablesize.
28369         vararrays: modernize AC_C_VARARRAYS for C11
28370         This backports a change I recently made to Autoconf.
28371         * m4/vararrays.m4 (AC_C_VARARRAYS): Define __STDC_NO_VLA__ if
28372         VLAs are not supported, as this is what C11 does.  The old macro
28373         HAVE_C_VARARRAYS is still defined if they are supported, but is
28374         now obsolescent.  Also, check for VLA bug in GCC 3.4.3.
28376 2014-08-07  Alessandro Degano  <degano@cern.ch>  (tiny change)
28378         relocatable-prog-wrapper: port gettext to OS X 10.8 + GCC 4.8.1
28379         * build-aux/install-reloc (func_create_wrapper): Also wrap
28380         strerror-override, stat, stat.
28382 2014-08-05  Paul Eggert  <eggert@cs.ucla.edu>
28384         sys_select: fix FD_ZERO problem on Solaris 10
28385         * lib/sys_select.in.h: Fix Solaris 10 bug where "#include
28386         <sys/time.h>" followed by "#include <sys/select.h>" caused FD_ZERO
28387         to expand to an expression that invoked memset without necessarily
28388         including <string.h>.  The problem was that the first include
28389         defined _SYS_TIME_H, causing the second include to short-circuit.
28390         Fix a similar problem with <sys/types.h> followed by <sys/select.h>.
28391         Also, fix what appears to be a cut-and-paste typo, by replacing
28392         _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H with
28393         _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TYPES_H.
28395         accept: document Solaris 10 type glitch
28396         * doc/posix-functions/accept.texi (accept): Mention that
28397         Solaris 10 'accept' takes void * last arg, not socklen_t *.
28399 2014-08-04  Paul Eggert  <eggert@cs.ucla.edu>
28401         extern-inline: port to FreeBSD, DragonFly
28402         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Also assume the bug
28403         is present if either __DragonFly__ or __FreeBSD__ is defined.
28404         FreeBSD problem reported by Andrey Borzenkov in:
28405         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00104.html
28406         Also, worry about __APPLE__ only if __MACH__ is also defined,
28407         as this is more consistent with the rest of gnulib.
28408         (_GL_EXTERN_INLINE_STDHEADER_BUG): Rename this internal macro from
28409         _GL_EXTERN_INLINE_APPLE_BUG, since the bug is not limited to Apple.
28411 2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
28413         regex: Make #if/#ifdef usage consistent for DEBUG
28414         * lib/regex_internal.c: Use "#if defined DEBUG && DEBUG" instead
28415         of the inconsistent usage of #if and #ifdef as that works with
28416         both Glibc and Gnulib's style.
28418 2014-07-31  Eric Blake  <eblake@redhat.com>
28420         openat-die: use _Noreturn markup
28421         * modules/openat-die (Depends-on): Add snippet/_Noreturn.
28422         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Mark
28423         _Noreturn.
28425 2014-07-30  Eric Blake  <eblake@redhat.com>
28427         test-open: port to cygwin, which lacks Fortify
28428         * tests/test-open.h (ALWAYS_INLINE): New macro.
28429         (__always_inline): Don't abuse internal symbol on non-glibc.
28431 2014-07-19  Eli Zaretskii  <eliz@gnu.org>
28433         localename: Enforce declarations before statements.
28434         * localename.c (gl_locale_name_thread): Declare 'lcid' before the
28435         first statement.
28437 2014-07-18  Jim Meyering  <meyering@fb.com>
28439         test-userspec: don't look up numeric user names
28440         * tests/test-userspec.c: I found a system for which getpwnam("0")
28441         returned a pointer to a non-root user's entry, and that made the
28442         test fail.
28443         (T): Prefix each numeric input with "+", to inhibit lookup.
28445 2014-07-15  Eli Zaretskii  <eliz@gnu.org>
28447         localcharset, localename: MS-Windows support for non-default locales
28448         * lib/localcharset.c (locale_charset) [WINDOWS_NATIVE]: Before
28449         falling back on the default system codepage, try extracting
28450         the codepage from what 'setlocale' returns.  This allows to
28451         take into account changes of the codeset due to non-default
28452         locale set by a previous call to 'setlocale'.
28453         * lib/localename.c (LOCALE_NAME_MAX_LENGTH) [WINDOWS_NATIVE]:
28454         Define if not already defined.
28455         (enum_locales_fn, get_lcid) [WINDOWS_NATIVE]: New functions.
28456         (gl_locale_name_thread) [WINDOWS_NATIVE]: Produce the
28457         current locale by calling 'setlocale', then converting the
28458         locale name into LCID by calling 'get_lcid'.  This allows to
28459         take into account changes in the current locale from the
28460         default one, in contrast to GetThreadLocale.
28462 2014-07-14  Daiki Ueno  <ueno@gnu.org>
28464         announce-gen: avoid failure when Digest::SHA is installed
28465         When Digest::SHA is available, Digest::SHA1 is not loaded and thus
28466         Digest::SHA1->new in print_checksums fails.
28467         * build-aux/announce-gen (digest_classes): New associative array
28468         for available message digest implementations.
28469         (print_locations): Use it.
28471 2014-07-13  Pádraig Brady  <P@draigBrady.com>
28473         gettext: revert "update macros to version 0.19"
28474         This reverts commit 9b9370ca, as it currently requires that
28475         developers of any project that explicitly uses the gettext module
28476         or implicitly uses it through the utimens-tests or
28477         futimens-tests modules, use gettext >= 0.19.
28478         However there are some stability and availablity issues with
28479         that version at present.  We can reinstate this soon, when stability
28480         is addressed and packages are more readily available.
28482 2014-07-12  Jim Meyering  <meyering@fb.com>
28484         regex: don't deref NULL upon heap allocation failure
28485         * lib/regcomp.c (parse_dup_op): Handle duplicate_tree
28486         failure in one more place.
28487         To trigger the segfault, configure grep -with-included-regex,
28488         build it, and run these commands:
28489         ( ulimit -v 300000; echo a|src/grep -E a+++++++++++++++++++++ )
28490         I discovered this while replying to a private report from
28491         Jens Schleusener about excessive memory consumption by grep
28492         when using a regular expression like the one above.
28494 2014-07-11  Paul Eggert  <eggert@cs.ucla.edu>
28496         regex: fix memory leak in compiler
28497         Fix by Andreas Schwab in:
28498         https://sourceware.org/ml/libc-alpha/2014-06/msg00503.html
28499         * lib/regcomp.c (parse_reg_exp): Deallocate partially
28500         constructed tree before returning error.
28502 2014-07-10  Assaf Gordon  <assafgordon@gmail.com>
28504         announce-gen: avoid perl warnings
28505         * build-aux/announce-gen: add two minor checks to avoid
28506         "use of uninitialized value" warnings when command-line parameters are
28507         missing.
28509 2014-07-10  Assaf Gordon  <assafgordon@gmail.com>
28511         localename: avoid -Wsuggest-attribute={const,pure} warnings
28512         * lib/localename.c (string_has): Tag internal function as pure.
28513         * lib/localename.h (gl_locale_name_default): Tag extern declaration
28514         as const when appropriate.
28516 2014-07-10  Eli Zaretskii  <eliz@gnu.org>
28518         nl_langinfo: Fix last change.
28519         * lib/nl_langinfo.c (includes): Drop redundant include.
28521 2014-07-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
28523         error: Fix -Wundef warnings in glibc
28524         * lib/error.c [_LIBC]: Define default macros for
28525         glibc.
28526         (print_errno_message) [defined HAVE_STRERROR_R || _LIBC]:
28527         Check _LIBC before STRERROR_R_CHAR_P.
28529         error: Sync from glibc master
28530         * lib/error.c [_LIBC]: Remove INTUSE usage.
28531         (error_tail): Remove unused macro ALLOCA_LIMIT.
28532         Fix potential buffer overflow.  Fix potential NULL dereference
28533         in strcmp.
28535 2014-07-09  Pavel Hrdina  <phrdina@redhat.com> (tiny change)
28537         nl_langinfo: fix build under mingw
28538         * lib/nl_langinfo.c (includes): Pick up <windows.h> for GetACP().
28540 2014-07-09  Andrew D Warshall  <warshall@99main.com>
28542         mountlist: do not classify a bind-mounted dir entry as "dummy"
28543         * m4/ls-mntd-fs.m4: Check for hasmntopt() on platforms with
28544         1-argument getmntent() (instead of assuming absence).
28546 2014-07-08  Eric Blake  <eblake@redhat.com>
28548         maint.mk: less syntax-check noise when SIGPIPE is ignored
28549         * top/maint.mk (_sc_header_without_use)
28550         (sc_require_config_h_first): Parse full list.
28552 2014-07-07  Eli Zaretskii  <eliz@gnu.org>
28553             Paul Eggert  <eggert@cs.ucla.edu>
28555         nl_langinfo: CODESET on MS-Windows and more items from localeconv
28556         * lib/langinfo.in.h (DECIMAL_POINT, THOUSANDS_SEP, GROUPING)
28557         (CURRENCY_SYMBOL, INT_CURR_SYMBOL, MON_DECIMAL_POINT)
28558         (MON_THOUSANDS_SEP, MON_GROUPING, POSITIVE_SIGN, NEGATIVE_SIGN)
28559         (FRAC_DIGITS, INT_FRAC_DIGITS, P_CS_PRECEDES, N_CS_PRECEDES)
28560         (P_SEP_BY_SPACE, N_SEP_BY_SPACE, P_SIGN_POSN, N_SIGN_POSN): Define.
28561         * lib/nl_langinfo.c: Include <locale.h> and <string.h> early.
28562         Include <stdio.h> if Microsoft Windows.
28563         Include <time.h> if !REPLACE_NL_LANGINFO.
28564         (ctype_codeset): New function, taken from rpl_nl_langinfo,
28565         and with improvements for Microsoft Windows.
28566         (rpl_nl_langinfo): Use it.
28567         (nl_langinfo) [!REPLACE_NL_LANGINFO]: Likewise.
28568         Compute the values of RADIXCHAR, THOUSEP, GROUPING, CRNCYSTR,
28569         INT_CURR_SYMBOL, MON_DECIMAL_POINT, MON_THOUSANDS_SEP,
28570         MON_GROUPING, POSITIVE_SIGN, NEGATIVE_SIGN, FRAC_DIGITS,
28571         INT_FRAC_DIGITS, P_CS_PRECEDES, N_CS_PRECEDES, P_SEP_BY_SPACE,
28572         N_SEP_BY_SPACE, P_SIGN_POSN, and N_SIGN_POSN from the
28573         corresponding values returned by 'localeconv'.  Compute the values
28574         of AM_STR, PM_STR, DAY_n, ABDAY_n, MON_n, and ABMON_n by calling
28575         'strftime' with a suitable struct tm value.
28577 2014-07-05  Paul Eggert  <eggert@cs.ucla.edu>
28579         Bruno Haible has stepped down as maintainer.
28580         See Karl Berry in:
28581         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00004.html
28582         Daiki Ueno has volunteered to maintain libunistring; see:
28583         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00005.html
28584         * modules/gen-uni-tables, modules/libunistring:
28585         * modules/libunistring-optional, modules/ucs4-utf16, modules/ucs4-utf8:
28586         * modules/unicase/base, modules/unicase/cased:
28587         * modules/unicase/empty-prefix-context:
28588         * modules/unicase/empty-suffix-context, modules/unicase/ignorable:
28589         * modules/unicase/locale-language, modules/unicase/special-casing:
28590         * modules/unicase/tocasefold, modules/unicase/tolower:
28591         * modules/unicase/totitle, modules/unicase/toupper:
28592         * modules/unicase/u16-casecmp, modules/unicase/u16-casecoll:
28593         * modules/unicase/u16-casefold, modules/unicase/u16-casemap:
28594         * modules/unicase/u16-casexfrm, modules/unicase/u16-ct-casefold:
28595         * modules/unicase/u16-ct-tolower, modules/unicase/u16-ct-totitle:
28596         * modules/unicase/u16-ct-toupper, modules/unicase/u16-is-cased:
28597         * modules/unicase/u16-is-casefolded, modules/unicase/u16-is-invariant:
28598         * modules/unicase/u16-is-lowercase, modules/unicase/u16-is-titlecase:
28599         * modules/unicase/u16-is-uppercase, modules/unicase/u16-prefix-context:
28600         * modules/unicase/u16-suffix-context, modules/unicase/u16-tolower:
28601         * modules/unicase/u16-totitle, modules/unicase/u16-toupper:
28602         * modules/unicase/u32-casecmp, modules/unicase/u32-casecoll:
28603         * modules/unicase/u32-casefold, modules/unicase/u32-casemap:
28604         * modules/unicase/u32-casexfrm, modules/unicase/u32-ct-casefold:
28605         * modules/unicase/u32-ct-tolower, modules/unicase/u32-ct-totitle:
28606         * modules/unicase/u32-ct-toupper, modules/unicase/u32-is-cased:
28607         * modules/unicase/u32-is-casefolded, modules/unicase/u32-is-invariant:
28608         * modules/unicase/u32-is-lowercase, modules/unicase/u32-is-titlecase:
28609         * modules/unicase/u32-is-uppercase, modules/unicase/u32-prefix-context:
28610         * modules/unicase/u32-suffix-context, modules/unicase/u32-tolower:
28611         * modules/unicase/u32-totitle, modules/unicase/u32-toupper:
28612         * modules/unicase/u8-casecmp, modules/unicase/u8-casecoll:
28613         * modules/unicase/u8-casefold, modules/unicase/u8-casemap:
28614         * modules/unicase/u8-casexfrm, modules/unicase/u8-ct-casefold:
28615         * modules/unicase/u8-ct-tolower, modules/unicase/u8-ct-totitle:
28616         * modules/unicase/u8-ct-toupper, modules/unicase/u8-is-cased:
28617         * modules/unicase/u8-is-casefolded, modules/unicase/u8-is-invariant:
28618         * modules/unicase/u8-is-lowercase, modules/unicase/u8-is-titlecase:
28619         * modules/unicase/u8-is-uppercase, modules/unicase/u8-prefix-context:
28620         * modules/unicase/u8-suffix-context, modules/unicase/u8-tolower:
28621         * modules/unicase/u8-totitle, modules/unicase/u8-toupper:
28622         * modules/unicase/ulc-casecmp, modules/unicase/ulc-casecoll:
28623         * modules/unicase/ulc-casexfrm, modules/unicodeio:
28624         * modules/uniconv/base, modules/uniconv/u16-conv-from-enc:
28625         * modules/uniconv/u16-conv-to-enc:
28626         * modules/uniconv/u16-strconv-from-enc:
28627         * modules/uniconv/u16-strconv-from-locale:
28628         * modules/uniconv/u16-strconv-to-enc:
28629         * modules/uniconv/u16-strconv-to-locale:
28630         * modules/uniconv/u32-conv-from-enc, modules/uniconv/u32-conv-to-enc:
28631         * modules/uniconv/u32-strconv-from-enc:
28632         * modules/uniconv/u32-strconv-from-locale:
28633         * modules/uniconv/u32-strconv-to-enc:
28634         * modules/uniconv/u32-strconv-to-locale:
28635         * modules/uniconv/u8-conv-from-enc, modules/uniconv/u8-conv-to-enc:
28636         * modules/uniconv/u8-strconv-from-enc:
28637         * modules/uniconv/u8-strconv-from-locale:
28638         * modules/uniconv/u8-strconv-to-enc:
28639         * modules/uniconv/u8-strconv-to-locale, modules/unictype/base:
28640         * modules/unictype/bidicategory-all:
28641         * modules/unictype/bidicategory-byname:
28642         * modules/unictype/bidicategory-name, modules/unictype/bidicategory-of:
28643         * modules/unictype/bidicategory-test, modules/unictype/bidiclass-all:
28644         * modules/unictype/bidiclass-byname:
28645         * modules/unictype/bidiclass-longname, modules/unictype/bidiclass-name:
28646         * modules/unictype/bidiclass-of, modules/unictype/bidiclass-test:
28647         * modules/unictype/block-all, modules/unictype/block-list:
28648         * modules/unictype/block-of, modules/unictype/block-test:
28649         * modules/unictype/category-C, modules/unictype/category-Cc:
28650         * modules/unictype/category-Cf, modules/unictype/category-Cn:
28651         * modules/unictype/category-Co, modules/unictype/category-Cs:
28652         * modules/unictype/category-L, modules/unictype/category-LC:
28653         * modules/unictype/category-Ll, modules/unictype/category-Lm:
28654         * modules/unictype/category-Lo, modules/unictype/category-Lt:
28655         * modules/unictype/category-Lu, modules/unictype/category-M:
28656         * modules/unictype/category-Mc, modules/unictype/category-Me:
28657         * modules/unictype/category-Mn, modules/unictype/category-N:
28658         * modules/unictype/category-Nd, modules/unictype/category-Nl:
28659         * modules/unictype/category-No, modules/unictype/category-P:
28660         * modules/unictype/category-Pc, modules/unictype/category-Pd:
28661         * modules/unictype/category-Pe, modules/unictype/category-Pf:
28662         * modules/unictype/category-Pi, modules/unictype/category-Po:
28663         * modules/unictype/category-Ps, modules/unictype/category-S:
28664         * modules/unictype/category-Sc, modules/unictype/category-Sk:
28665         * modules/unictype/category-Sm, modules/unictype/category-So:
28666         * modules/unictype/category-Z, modules/unictype/category-Zl:
28667         * modules/unictype/category-Zp, modules/unictype/category-Zs:
28668         * modules/unictype/category-all, modules/unictype/category-and:
28669         * modules/unictype/category-and-not, modules/unictype/category-byname:
28670         * modules/unictype/category-longname, modules/unictype/category-name:
28671         * modules/unictype/category-none, modules/unictype/category-of:
28672         * modules/unictype/category-or, modules/unictype/category-test:
28673         * modules/unictype/category-test-withtable:
28674         * modules/unictype/combining-class:
28675         * modules/unictype/combining-class-all:
28676         * modules/unictype/combining-class-byname:
28677         * modules/unictype/combining-class-longname:
28678         * modules/unictype/combining-class-name, modules/unictype/ctype-alnum:
28679         * modules/unictype/ctype-alpha, modules/unictype/ctype-blank:
28680         * modules/unictype/ctype-cntrl, modules/unictype/ctype-digit:
28681         * modules/unictype/ctype-graph, modules/unictype/ctype-lower:
28682         * modules/unictype/ctype-print, modules/unictype/ctype-punct:
28683         * modules/unictype/ctype-space, modules/unictype/ctype-upper:
28684         * modules/unictype/ctype-xdigit, modules/unictype/decimal-digit:
28685         * modules/unictype/digit, modules/unictype/joininggroup-all:
28686         * modules/unictype/joininggroup-byname:
28687         * modules/unictype/joininggroup-name, modules/unictype/joininggroup-of:
28688         * modules/unictype/joiningtype-all:
28689         * modules/unictype/joiningtype-byname:
28690         * modules/unictype/joiningtype-longname:
28691         * modules/unictype/joiningtype-name, modules/unictype/joiningtype-of:
28692         * modules/unictype/mirror, modules/unictype/numeric:
28693         * modules/unictype/property-all, modules/unictype/property-alphabetic:
28694         * modules/unictype/property-ascii-hex-digit:
28695         * modules/unictype/property-bidi-arabic-digit:
28696         * modules/unictype/property-bidi-arabic-right-to-left:
28697         * modules/unictype/property-bidi-block-separator:
28698         * modules/unictype/property-bidi-boundary-neutral:
28699         * modules/unictype/property-bidi-common-separator:
28700         * modules/unictype/property-bidi-control:
28701         * modules/unictype/property-bidi-embedding-or-override:
28702         * modules/unictype/property-bidi-eur-num-separator:
28703         * modules/unictype/property-bidi-eur-num-terminator:
28704         * modules/unictype/property-bidi-european-digit:
28705         * modules/unictype/property-bidi-hebrew-right-to-left:
28706         * modules/unictype/property-bidi-left-to-right:
28707         * modules/unictype/property-bidi-non-spacing-mark:
28708         * modules/unictype/property-bidi-other-neutral:
28709         * modules/unictype/property-bidi-pdf:
28710         * modules/unictype/property-bidi-segment-separator:
28711         * modules/unictype/property-bidi-whitespace:
28712         * modules/unictype/property-byname:
28713         * modules/unictype/property-case-ignorable:
28714         * modules/unictype/property-cased:
28715         * modules/unictype/property-changes-when-casefolded:
28716         * modules/unictype/property-changes-when-casemapped:
28717         * modules/unictype/property-changes-when-lowercased:
28718         * modules/unictype/property-changes-when-titlecased:
28719         * modules/unictype/property-changes-when-uppercased:
28720         * modules/unictype/property-combining:
28721         * modules/unictype/property-composite:
28722         * modules/unictype/property-currency-symbol:
28723         * modules/unictype/property-dash:
28724         * modules/unictype/property-decimal-digit:
28725         * modules/unictype/property-default-ignorable-code-point:
28726         * modules/unictype/property-deprecated:
28727         * modules/unictype/property-diacritic:
28728         * modules/unictype/property-extender:
28729         * modules/unictype/property-format-control:
28730         * modules/unictype/property-grapheme-base:
28731         * modules/unictype/property-grapheme-extend:
28732         * modules/unictype/property-grapheme-link:
28733         * modules/unictype/property-hex-digit:
28734         * modules/unictype/property-hyphen:
28735         * modules/unictype/property-id-continue:
28736         * modules/unictype/property-id-start:
28737         * modules/unictype/property-ideographic:
28738         * modules/unictype/property-ids-binary-operator:
28739         * modules/unictype/property-ids-trinary-operator:
28740         * modules/unictype/property-ignorable-control:
28741         * modules/unictype/property-iso-control:
28742         * modules/unictype/property-join-control:
28743         * modules/unictype/property-left-of-pair:
28744         * modules/unictype/property-line-separator:
28745         * modules/unictype/property-logical-order-exception:
28746         * modules/unictype/property-lowercase, modules/unictype/property-math:
28747         * modules/unictype/property-non-break:
28748         * modules/unictype/property-not-a-character:
28749         * modules/unictype/property-numeric:
28750         * modules/unictype/property-other-alphabetic:
28751         * modules/unictype/property-other-default-ignorable-code-point:
28752         * modules/unictype/property-other-grapheme-extend:
28753         * modules/unictype/property-other-id-continue:
28754         * modules/unictype/property-other-id-start:
28755         * modules/unictype/property-other-lowercase:
28756         * modules/unictype/property-other-math:
28757         * modules/unictype/property-other-uppercase:
28758         * modules/unictype/property-paired-punctuation:
28759         * modules/unictype/property-paragraph-separator:
28760         * modules/unictype/property-pattern-syntax:
28761         * modules/unictype/property-pattern-white-space:
28762         * modules/unictype/property-private-use:
28763         * modules/unictype/property-punctuation:
28764         * modules/unictype/property-quotation-mark:
28765         * modules/unictype/property-radical:
28766         * modules/unictype/property-sentence-terminal:
28767         * modules/unictype/property-soft-dotted:
28768         * modules/unictype/property-space:
28769         * modules/unictype/property-terminal-punctuation:
28770         * modules/unictype/property-test, modules/unictype/property-titlecase:
28771         * modules/unictype/property-unassigned-code-value:
28772         * modules/unictype/property-unified-ideograph:
28773         * modules/unictype/property-uppercase:
28774         * modules/unictype/property-variation-selector:
28775         * modules/unictype/property-white-space:
28776         * modules/unictype/property-xid-continue:
28777         * modules/unictype/property-xid-start:
28778         * modules/unictype/property-zero-width, modules/unictype/scripts:
28779         * modules/unictype/scripts-all, modules/unictype/syntax-c-ident:
28780         * modules/unictype/syntax-c-whitespace:
28781         * modules/unictype/syntax-java-ident:
28782         * modules/unictype/syntax-java-whitespace, modules/unigbrk/base:
28783         * modules/unigbrk/u16-grapheme-breaks:
28784         * modules/unigbrk/u16-grapheme-next, modules/unigbrk/u16-grapheme-prev:
28785         * modules/unigbrk/u32-grapheme-breaks:
28786         * modules/unigbrk/u32-grapheme-next, modules/unigbrk/u32-grapheme-prev:
28787         * modules/unigbrk/u8-grapheme-breaks, modules/unigbrk/u8-grapheme-next:
28788         * modules/unigbrk/u8-grapheme-prev, modules/unigbrk/uc-gbrk-prop:
28789         * modules/unigbrk/uc-is-grapheme-break:
28790         * modules/unigbrk/ulc-grapheme-breaks, modules/unilbrk/base:
28791         * modules/unilbrk/tables, modules/unilbrk/u16-possible-linebreaks:
28792         * modules/unilbrk/u16-width-linebreaks:
28793         * modules/unilbrk/u32-possible-linebreaks:
28794         * modules/unilbrk/u32-width-linebreaks:
28795         * modules/unilbrk/u8-possible-linebreaks:
28796         * modules/unilbrk/u8-width-linebreaks, modules/unilbrk/ulc-common:
28797         * modules/unilbrk/ulc-possible-linebreaks:
28798         * modules/unilbrk/ulc-width-linebreaks, modules/uniname/base:
28799         * modules/uniname/uniname, modules/uninorm/base:
28800         * modules/uninorm/canonical-decomposition:
28801         * modules/uninorm/compat-decomposition, modules/uninorm/composition:
28802         * modules/uninorm/decompose-internal, modules/uninorm/decomposing-form:
28803         * modules/uninorm/decomposition, modules/uninorm/decomposition-table:
28804         * modules/uninorm/filter, modules/uninorm/nfc, modules/uninorm/nfd:
28805         * modules/uninorm/nfkc, modules/uninorm/nfkd:
28806         * modules/uninorm/u16-normalize, modules/uninorm/u16-normcmp:
28807         * modules/uninorm/u16-normcoll, modules/uninorm/u16-normxfrm:
28808         * modules/uninorm/u32-normalize, modules/uninorm/u32-normcmp:
28809         * modules/uninorm/u32-normcoll, modules/uninorm/u32-normxfrm:
28810         * modules/uninorm/u8-normalize, modules/uninorm/u8-normcmp:
28811         * modules/uninorm/u8-normcoll, modules/uninorm/u8-normxfrm:
28812         * modules/unistdio/base, modules/unistdio/u-printf-args:
28813         * modules/unistdio/u16-asnprintf, modules/unistdio/u16-asprintf:
28814         * modules/unistdio/u16-printf-parse, modules/unistdio/u16-snprintf:
28815         * modules/unistdio/u16-sprintf, modules/unistdio/u16-u16-asnprintf:
28816         * modules/unistdio/u16-u16-asprintf, modules/unistdio/u16-u16-snprintf:
28817         * modules/unistdio/u16-u16-sprintf:
28818         * modules/unistdio/u16-u16-vasnprintf:
28819         * modules/unistdio/u16-u16-vasprintf:
28820         * modules/unistdio/u16-u16-vsnprintf:
28821         * modules/unistdio/u16-u16-vsprintf, modules/unistdio/u16-vasnprintf:
28822         * modules/unistdio/u16-vasprintf, modules/unistdio/u16-vsnprintf:
28823         * modules/unistdio/u16-vsprintf, modules/unistdio/u32-asnprintf:
28824         * modules/unistdio/u32-asprintf, modules/unistdio/u32-printf-parse:
28825         * modules/unistdio/u32-snprintf, modules/unistdio/u32-sprintf:
28826         * modules/unistdio/u32-u32-asnprintf:
28827         * modules/unistdio/u32-u32-asprintf, modules/unistdio/u32-u32-snprintf:
28828         * modules/unistdio/u32-u32-sprintf:
28829         * modules/unistdio/u32-u32-vasnprintf:
28830         * modules/unistdio/u32-u32-vasprintf:
28831         * modules/unistdio/u32-u32-vsnprintf:
28832         * modules/unistdio/u32-u32-vsprintf, modules/unistdio/u32-vasnprintf:
28833         * modules/unistdio/u32-vasprintf, modules/unistdio/u32-vsnprintf:
28834         * modules/unistdio/u32-vsprintf, modules/unistdio/u8-asnprintf:
28835         * modules/unistdio/u8-asprintf, modules/unistdio/u8-printf-parse:
28836         * modules/unistdio/u8-snprintf, modules/unistdio/u8-sprintf:
28837         * modules/unistdio/u8-u8-asnprintf, modules/unistdio/u8-u8-asprintf:
28838         * modules/unistdio/u8-u8-snprintf, modules/unistdio/u8-u8-sprintf:
28839         * modules/unistdio/u8-u8-vasnprintf, modules/unistdio/u8-u8-vasprintf:
28840         * modules/unistdio/u8-u8-vsnprintf, modules/unistdio/u8-u8-vsprintf:
28841         * modules/unistdio/u8-vasnprintf, modules/unistdio/u8-vasprintf:
28842         * modules/unistdio/u8-vsnprintf, modules/unistdio/u8-vsprintf:
28843         * modules/unistdio/ulc-asnprintf, modules/unistdio/ulc-asprintf:
28844         * modules/unistdio/ulc-fprintf, modules/unistdio/ulc-printf-parse:
28845         * modules/unistdio/ulc-snprintf, modules/unistdio/ulc-sprintf:
28846         * modules/unistdio/ulc-vasnprintf, modules/unistdio/ulc-vasprintf:
28847         * modules/unistdio/ulc-vfprintf, modules/unistdio/ulc-vsnprintf:
28848         * modules/unistdio/ulc-vsprintf, modules/unistr/base:
28849         * modules/unistr/u16-check, modules/unistr/u16-chr:
28850         * modules/unistr/u16-cmp, modules/unistr/u16-cmp2:
28851         * modules/unistr/u16-cpy, modules/unistr/u16-cpy-alloc:
28852         * modules/unistr/u16-endswith, modules/unistr/u16-mblen:
28853         * modules/unistr/u16-mbsnlen, modules/unistr/u16-mbtouc:
28854         * modules/unistr/u16-mbtouc-unsafe, modules/unistr/u16-mbtoucr:
28855         * modules/unistr/u16-move, modules/unistr/u16-next:
28856         * modules/unistr/u16-prev, modules/unistr/u16-set:
28857         * modules/unistr/u16-startswith, modules/unistr/u16-stpcpy:
28858         * modules/unistr/u16-stpncpy, modules/unistr/u16-strcat:
28859         * modules/unistr/u16-strchr, modules/unistr/u16-strcmp:
28860         * modules/unistr/u16-strcoll, modules/unistr/u16-strcpy:
28861         * modules/unistr/u16-strcspn, modules/unistr/u16-strdup:
28862         * modules/unistr/u16-strlen, modules/unistr/u16-strmblen:
28863         * modules/unistr/u16-strmbtouc, modules/unistr/u16-strncat:
28864         * modules/unistr/u16-strncmp, modules/unistr/u16-strncpy:
28865         * modules/unistr/u16-strnlen, modules/unistr/u16-strpbrk:
28866         * modules/unistr/u16-strrchr, modules/unistr/u16-strspn:
28867         * modules/unistr/u16-strstr, modules/unistr/u16-strtok:
28868         * modules/unistr/u16-to-u32, modules/unistr/u16-to-u8:
28869         * modules/unistr/u16-uctomb, modules/unistr/u32-check:
28870         * modules/unistr/u32-chr, modules/unistr/u32-cmp:
28871         * modules/unistr/u32-cmp2, modules/unistr/u32-cpy:
28872         * modules/unistr/u32-cpy-alloc, modules/unistr/u32-endswith:
28873         * modules/unistr/u32-mblen, modules/unistr/u32-mbsnlen:
28874         * modules/unistr/u32-mbtouc, modules/unistr/u32-mbtouc-unsafe:
28875         * modules/unistr/u32-mbtoucr, modules/unistr/u32-move:
28876         * modules/unistr/u32-next, modules/unistr/u32-prev:
28877         * modules/unistr/u32-set, modules/unistr/u32-startswith:
28878         * modules/unistr/u32-stpcpy, modules/unistr/u32-stpncpy:
28879         * modules/unistr/u32-strcat, modules/unistr/u32-strchr:
28880         * modules/unistr/u32-strcmp, modules/unistr/u32-strcoll:
28881         * modules/unistr/u32-strcpy, modules/unistr/u32-strcspn:
28882         * modules/unistr/u32-strdup, modules/unistr/u32-strlen:
28883         * modules/unistr/u32-strmblen, modules/unistr/u32-strmbtouc:
28884         * modules/unistr/u32-strncat, modules/unistr/u32-strncmp:
28885         * modules/unistr/u32-strncpy, modules/unistr/u32-strnlen:
28886         * modules/unistr/u32-strpbrk, modules/unistr/u32-strrchr:
28887         * modules/unistr/u32-strspn, modules/unistr/u32-strstr:
28888         * modules/unistr/u32-strtok, modules/unistr/u32-to-u16:
28889         * modules/unistr/u32-to-u8, modules/unistr/u32-uctomb:
28890         * modules/unistr/u8-check, modules/unistr/u8-chr:
28891         * modules/unistr/u8-cmp, modules/unistr/u8-cmp2, modules/unistr/u8-cpy:
28892         * modules/unistr/u8-cpy-alloc, modules/unistr/u8-endswith:
28893         * modules/unistr/u8-mblen, modules/unistr/u8-mbsnlen:
28894         * modules/unistr/u8-mbtouc, modules/unistr/u8-mbtouc-unsafe:
28895         * modules/unistr/u8-mbtoucr, modules/unistr/u8-move:
28896         * modules/unistr/u8-next, modules/unistr/u8-prev:
28897         * modules/unistr/u8-set, modules/unistr/u8-startswith:
28898         * modules/unistr/u8-stpcpy, modules/unistr/u8-stpncpy:
28899         * modules/unistr/u8-strcat, modules/unistr/u8-strchr:
28900         * modules/unistr/u8-strcmp, modules/unistr/u8-strcoll:
28901         * modules/unistr/u8-strcpy, modules/unistr/u8-strcspn:
28902         * modules/unistr/u8-strdup, modules/unistr/u8-strlen:
28903         * modules/unistr/u8-strmblen, modules/unistr/u8-strmbtouc:
28904         * modules/unistr/u8-strncat, modules/unistr/u8-strncmp:
28905         * modules/unistr/u8-strncpy, modules/unistr/u8-strnlen:
28906         * modules/unistr/u8-strpbrk, modules/unistr/u8-strrchr:
28907         * modules/unistr/u8-strspn, modules/unistr/u8-strstr:
28908         * modules/unistr/u8-strtok, modules/unistr/u8-to-u16:
28909         * modules/unistr/u8-to-u32, modules/unistr/u8-uctomb, modules/unitypes:
28910         * modules/uniwbrk/base, modules/uniwbrk/table:
28911         * modules/uniwbrk/u16-wordbreaks, modules/uniwbrk/u32-wordbreaks:
28912         * modules/uniwbrk/u8-wordbreaks, modules/uniwbrk/ulc-wordbreaks:
28913         * modules/uniwbrk/wordbreak-property, modules/uniwidth/base:
28914         * modules/uniwidth/u16-strwidth, modules/uniwidth/u16-width:
28915         * modules/uniwidth/u32-strwidth, modules/uniwidth/u32-width:
28916         * modules/uniwidth/u8-strwidth, modules/uniwidth/u8-width:
28917         * modules/uniwidth/width, modules/utf16-ucs4:
28918         * modules/utf16-ucs4-unsafe, modules/utf8-ucs4:
28919         * modules/utf8-ucs4-unsafe:
28920         Change maintainer from Bruno Haible to Daiki Ueno.
28921         This is my guess at the libunistring modules; please feel free
28922         to fix if I guessed incorrectly.
28923         * modules/accept4, modules/acl, modules/acos, modules/acosf:
28924         * modules/alignof, modules/amemxfrm, modules/ansi-c++-opt:
28925         * modules/areadlink, modules/array-list, modules/array-mergesort:
28926         * modules/array-oset, modules/asin, modules/asinf, modules/astrxfrm:
28927         * modules/atan, modules/atan2, modules/atan2f, modules/atanf:
28928         * modules/avltree-list, modules/avltree-oset, modules/avltreehash-list:
28929         * modules/binary-io, modules/bison-i18n, modules/btowc:
28930         * modules/c-ctype, modules/c-strcase, modules/c-strcaseeq:
28931         * modules/c-strcasestr, modules/c-strstr, modules/calloc-posix:
28932         * modules/canonicalize-lgpl, modules/careadlinkat, modules/carray-list:
28933         * modules/cbrt, modules/cbrt-ieee, modules/cbrtf, modules/cbrtf-ieee:
28934         * modules/cbrtl, modules/cbrtl-ieee, modules/ceil, modules/ceil-ieee:
28935         * modules/ceilf, modules/ceilf-ieee, modules/ceill, modules/ceill-ieee:
28936         * modules/chdir, modules/classpath, modules/clean-temp, modules/close:
28937         * modules/closedir, modules/concat-filename, modules/copy-file:
28938         * modules/copysign, modules/copysignf, modules/copysignl, modules/cos:
28939         * modules/cosf, modules/cosh, modules/coshf, modules/csharpcomp:
28940         * modules/csharpcomp-script, modules/csharpexec:
28941         * modules/csharpexec-script, modules/ctype, modules/diffseq:
28942         * modules/dprintf, modules/dprintf-posix, modules/dup:
28943         * modules/dup2-obsolete, modules/dup3, modules/duplocale:
28944         * modules/eealloc, modules/environ, modules/erf, modules/erfc:
28945         * modules/errno, modules/execute, modules/exp, modules/exp-ieee:
28946         * modules/exp2, modules/exp2-ieee, modules/exp2f, modules/exp2f-ieee:
28947         * modules/exp2l, modules/exp2l-ieee, modules/expf, modules/expf-ieee:
28948         * modules/expl, modules/expl-ieee, modules/expm1, modules/expm1-ieee:
28949         * modules/expm1f, modules/expm1f-ieee, modules/expm1l:
28950         * modules/expm1l-ieee, modules/fabs, modules/fabs-ieee, modules/fabsf:
28951         * modules/fabsf-ieee, modules/fabsl, modules/fabsl-ieee:
28952         * modules/fatal-signal, modules/fbufmode, modules/fchdir:
28953         * modules/fclose, modules/fd-hook, modules/fdopen, modules/filename:
28954         * modules/findprog, modules/findprog-lgpl, modules/floor:
28955         * modules/floor-ieee, modules/floorf, modules/floorf-ieee:
28956         * modules/floorl, modules/floorl-ieee, modules/fma, modules/fma-ieee:
28957         * modules/fmaf, modules/fmaf-ieee, modules/fmal, modules/fmal-ieee:
28958         * modules/fmod, modules/fmod-ieee, modules/fmodf, modules/fmodf-ieee:
28959         * modules/fmodl, modules/fmodl-ieee, modules/fopen, modules/fpieee:
28960         * modules/fprintf-posix, modules/fpucw, modules/fpurge:
28961         * modules/freadable, modules/freadahead, modules/freadptr:
28962         * modules/freadseek, modules/freopen, modules/frexp:
28963         * modules/frexp-ieee, modules/frexp-nolibm, modules/frexpf:
28964         * modules/frexpf-ieee, modules/frexpl, modules/frexpl-ieee:
28965         * modules/frexpl-nolibm, modules/fseek, modules/fseeko:
28966         * modules/fseterr, modules/fstat, modules/fstrcmp, modules/ftell:
28967         * modules/ftello, modules/full-read, modules/full-write:
28968         * modules/fwritable, modules/fwriteerror, modules/gcd:
28969         * modules/get-rusage-as, modules/get-rusage-data:
28970         * modules/getdtablesize, modules/getrusage, modules/gettext:
28971         * modules/gettext-h, modules/git-merge-changelog, modules/gperf:
28972         * modules/grantpt, modules/havelib, modules/host-cpu-c-abi:
28973         * modules/hostent, modules/hypot, modules/hypot-ieee, modules/hypotf:
28974         * modules/hypotf-ieee, modules/hypotl, modules/hypotl-ieee:
28975         * modules/iconv, modules/iconv-h, modules/iconv_open:
28976         * modules/iconv_open-utf, modules/idpriv-drop, modules/idpriv-droptemp:
28977         * modules/ilogb, modules/ilogbf, modules/ilogbl, modules/imaxabs:
28978         * modules/imaxdiv, modules/integer_length, modules/integer_length_l:
28979         * modules/integer_length_ll, modules/ioctl, modules/isatty:
28980         * modules/isblank, modules/isnand, modules/isnand-nolibm:
28981         * modules/isnanf, modules/isnanf-nolibm, modules/isnanl:
28982         * modules/isnanl-nolibm, modules/iswblank, modules/iswctype:
28983         * modules/j0, modules/j1, modules/javacomp, modules/javacomp-script:
28984         * modules/javaexec, modules/javaexec-script, modules/javaversion:
28985         * modules/jn, modules/langinfo, modules/ldd, modules/ldexp:
28986         * modules/ldexp-ieee, modules/ldexpf, modules/ldexpf-ieee:
28987         * modules/ldexpl, modules/ldexpl-ieee, modules/lgamma:
28988         * modules/lib-symbol-visibility, modules/libsigsegv:
28989         * modules/linked-list, modules/linkedhash-list, modules/list:
28990         * modules/localcharset, modules/locale, modules/localeconv:
28991         * modules/localename, modules/lock, modules/log, modules/log-ieee:
28992         * modules/log10, modules/log10-ieee, modules/log10f:
28993         * modules/log10f-ieee, modules/log10l, modules/log10l-ieee:
28994         * modules/log1p, modules/log1p-ieee, modules/log1pf:
28995         * modules/log1pf-ieee, modules/log1pl, modules/log1pl-ieee:
28996         * modules/log2, modules/log2-ieee, modules/log2f, modules/log2f-ieee:
28997         * modules/log2l, modules/log2l-ieee, modules/logb, modules/logb-ieee:
28998         * modules/logbf, modules/logbf-ieee, modules/logbl, modules/logbl-ieee:
28999         * modules/logf, modules/logf-ieee, modules/login_tty:
29000         * modules/logl-ieee, modules/malloc-posix, modules/malloca:
29001         * modules/mbchar, modules/mbfile, modules/mbiter, modules/mbmemcasecmp:
29002         * modules/mbmemcasecoll, modules/mbrlen, modules/mbrtowc:
29003         * modules/mbscasecmp, modules/mbscasestr, modules/mbschr:
29004         * modules/mbscspn, modules/mbsinit, modules/mbslen:
29005         * modules/mbsncasecmp, modules/mbsnlen, modules/mbsnrtowcs:
29006         * modules/mbspbrk, modules/mbspcasecmp, modules/mbsrchr:
29007         * modules/mbsrtowcs, modules/mbssep, modules/mbsspn, modules/mbsstr:
29008         * modules/mbstok_r, modules/mbswidth, modules/mbtowc, modules/mbuiter:
29009         * modules/memchr-obsolete, modules/memcmp2, modules/minmax:
29010         * modules/mkdtemp, modules/mkostemp, modules/mktime-internal:
29011         * modules/modf, modules/modf-ieee, modules/modff, modules/modff-ieee:
29012         * modules/modfl, modules/modfl-ieee, modules/msvc-inval:
29013         * modules/msvc-nothrow, modules/multiarch, modules/nextafter:
29014         * modules/nl_langinfo, modules/no-c++, modules/nocrash:
29015         * modules/nonblocking, modules/open, modules/opendir, modules/openmp:
29016         * modules/oset, modules/pclose, modules/pipe, modules/pipe-filter-gi:
29017         * modules/pipe-filter-ii, modules/pipe2, modules/poll-h:
29018         * modules/posix_spawn, modules/posix_spawn-internal:
29019         * modules/posix_spawn_file_actions_addclose:
29020         * modules/posix_spawn_file_actions_adddup2:
29021         * modules/posix_spawn_file_actions_addopen:
29022         * modules/posix_spawn_file_actions_destroy:
29023         * modules/posix_spawn_file_actions_init:
29024         * modules/posix_spawnattr_destroy, modules/posix_spawnattr_getflags:
29025         * modules/posix_spawnattr_getpgroup:
29026         * modules/posix_spawnattr_getschedparam:
29027         * modules/posix_spawnattr_getschedpolicy:
29028         * modules/posix_spawnattr_getsigdefault:
29029         * modules/posix_spawnattr_getsigmask, modules/posix_spawnattr_init:
29030         * modules/posix_spawnattr_setflags, modules/posix_spawnattr_setpgroup:
29031         * modules/posix_spawnattr_setschedparam:
29032         * modules/posix_spawnattr_setschedpolicy:
29033         * modules/posix_spawnattr_setsigdefault:
29034         * modules/posix_spawnattr_setsigmask, modules/posix_spawnp:
29035         * modules/pow, modules/powf, modules/printf-frexp:
29036         * modules/printf-frexpl, modules/printf-posix, modules/printf-safe:
29037         * modules/progname, modules/propername, modules/pselect:
29038         * modules/pthread_sigmask, modules/ptsname, modules/ptsname_r:
29039         * modules/qacl, modules/quotearg-simple, modules/raise, modules/random:
29040         * modules/rbtree-list, modules/rbtree-oset, modules/rbtreehash-list:
29041         * modules/read, modules/readdir, modules/readlink:
29042         * modules/realloc-posix, modules/regex-quote, modules/relocatable-lib:
29043         * modules/relocatable-lib-lgpl, modules/relocatable-perl:
29044         * modules/relocatable-prog, modules/relocatable-prog-wrapper:
29045         * modules/relocatable-script, modules/remainder:
29046         * modules/remainder-ieee, modules/remainderf, modules/remainderf-ieee:
29047         * modules/remainderl, modules/remainderl-ieee, modules/rewinddir:
29048         * modules/rint, modules/rint-ieee, modules/rintf, modules/rintf-ieee:
29049         * modules/rintl, modules/rintl-ieee, modules/round-ieee:
29050         * modules/roundf-ieee, modules/roundl-ieee, modules/safe-read:
29051         * modules/safe-write, modules/sched, modules/servent, modules/setenv:
29052         * modules/setlocale, modules/sh-quote, modules/shutdown:
29053         * modules/signal, modules/signbit, modules/sigpipe:
29054         * modules/sigpipe-die, modules/sigprocmask, modules/sin, modules/sinf:
29055         * modules/sinh, modules/sinhf, modules/size_max, modules/sleep:
29056         * modules/snippet/arg-nonnull, modules/snippet/c++defs:
29057         * modules/snippet/link-warning, modules/snippet/unused-parameter:
29058         * modules/snprintf, modules/snprintf-posix, modules/spawn:
29059         * modules/spawn-pipe, modules/sprintf-posix, modules/sqrt:
29060         * modules/sqrt-ieee, modules/sqrtf, modules/sqrtf-ieee:
29061         * modules/sqrtl-ieee, modules/stdalign, modules/stdarg:
29062         * modules/stdbool, modules/stpcpy, modules/stpncpy, modules/strcase:
29063         * modules/strcasestr, modules/strcasestr-simple, modules/strcspn:
29064         * modules/streq, modules/strerror_r-posix, modules/striconv:
29065         * modules/striconveh, modules/striconveha, modules/strncat:
29066         * modules/strnlen1, modules/strpbrk, modules/strtod-obsolete:
29067         * modules/sublist, modules/sys_resource, modules/sys_utsname:
29068         * modules/sys_wait, modules/system-posix, modules/system-quote:
29069         * modules/tan, modules/tanf, modules/tanh, modules/tanhf:
29070         * modules/tcgetsid, modules/termios, modules/threadlib, modules/tls:
29071         * modules/tmpdir, modules/towctrans, modules/trunc, modules/trunc-ieee:
29072         * modules/truncf, modules/truncf-ieee, modules/truncl:
29073         * modules/truncl-ieee, modules/ttyname_r, modules/uname:
29074         * modules/unlockpt, modules/unsetenv, modules/vasnprintf:
29075         * modules/vasnprintf-posix, modules/vasprintf, modules/vasprintf-posix:
29076         * modules/vdprintf, modules/vdprintf-posix, modules/vfprintf-posix:
29077         * modules/vfscanf, modules/vma-iter, modules/vprintf-posix:
29078         * modules/vscanf, modules/vsnprintf-posix, modules/vsprintf-posix:
29079         * modules/wait-process, modules/waitpid, modules/wcpcpy:
29080         * modules/wcpncpy, modules/wcrtomb, modules/wcscasecmp, modules/wcscat:
29081         * modules/wcschr, modules/wcscmp, modules/wcscoll, modules/wcscpy:
29082         * modules/wcscspn, modules/wcsdup, modules/wcslen, modules/wcsncasecmp:
29083         * modules/wcsncat, modules/wcsncmp, modules/wcsncpy, modules/wcsnlen:
29084         * modules/wcsnrtombs, modules/wcspbrk, modules/wcsrchr:
29085         * modules/wcsrtombs, modules/wcsspn, modules/wcsstr, modules/wcstok:
29086         * modules/wcswidth, modules/wcsxfrm, modules/wctob, modules/wctomb:
29087         * modules/wctrans, modules/wctype, modules/wcwidth, modules/wmemchr:
29088         * modules/wmemcmp, modules/wmemcpy, modules/wmemmove, modules/wmemset:
29089         * modules/write, modules/xconcat-filename, modules/xlist:
29090         * modules/xmalloca, modules/xoset, modules/xprintf-posix:
29091         * modules/xreadlink, modules/xsetenv, modules/xsize, modules/xstriconv:
29092         * modules/xstriconveh, modules/xsublist, modules/xvasprintf-posix:
29093         * modules/y0, modules/y1, modules/yn:
29094         Remove Bruno Haible as maintainer; if he's the sole maintainer,
29095         change the maintainer to 'all'.  Let's hope someone volunteers.
29097 2014-06-27  Paul Eggert  <eggert@cs.ucla.edu>
29099         mktime: merge #if/#ifdef usage from glibc
29100         * lib/mktime.c: Use "#if defined DEBUG && DEBUG", not "#if DEBUG",
29101         as that works with both Glibc's and Gnulib's style.
29102         See thread starting at Siddhesh Poyarekar's bug report at:
29103         http://lists.gnu.org/r/bug-gnulib/2014-06/msg00102.html
29105 2014-06-20  Alfred M. Szmidt  <ams@gnu.org>
29107         git-version-gen: improve option descriptions
29108         * build-aux/git-version-gen: Mention that --prefix and --fallback
29109         have a mandatory argument.
29111 2014-06-19  Paul Eggert  <eggert@penguin.cs.ucla.edu>
29113         regex: fix memory leak in compiler
29114         Fix by Andreas Schwab in:
29115         https://sourceware.org/ml/libc-alpha/2014-06/msg00462.html
29116         * lib/regcomp.c (parse_expression): Deallocate partially
29117         constructed tree before returning error.
29119         regex: merge patch from libc
29120         2014-02-12  Joseph Myers  <joseph@codesourcery.com>
29121         Combine __USE_BSD and __USE_SVID into __USE_MISC.
29122         * lib/regex.h [__USE_BSD]: Change condition to [__USE_MISC].
29124 2014-06-17  Paul Eggert  <eggert@cs.ucla.edu>
29126         acl: port to gcc -Wredundant-decls
29127         From a request by Dmitry Antipov in:
29128         http://lists.gnu.org/r/emacs-devel/2014-06/msg00263.html
29129         * lib/acl.h (_GL_ACL_H): New macro.  Protect entire contents with
29130         "#ifndef _GL_ACL_H".
29132 2014-06-11  Bruce Korb  <bkorb@gnu.org>
29133         Jim Meyering  <meyering@fb.com>
29135         parse-duration: eliminate 68-year duration limit
29136         * lib/parse-duration.c: Include "intprops.h".
29137         (TIME_MAX): Rename to MAX_DURATION and define to
29138         TYPE_MAXIMUM(time_t).
29139         * modules/parse-duration (Depends-on): Add intprops.
29140         Reported by Jonas 'Sortie' Termansen.
29142 2014-06-14  Paul Eggert  <eggert@cs.ucla.edu>
29144         pthread: don't assume AC_CANONICAL_HOST, port better to Solaris, etc.
29145         * modules/pthread (Depends-on): Add 'extensions', as it defines
29146         _POSIX_PTHREAD_SEMANTICS, which is needed on Solaris.
29147         (configure.ac-early): New section.
29148         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, as
29149         it is no longer needed.
29151 2014-06-14  Pádraig Brady  <P@draigBrady.com>
29153         pthread: define thread-safe macros on some platforms
29154         * m4/pthread.m4 (gl_PTHREAD_CHECK): Define macros needed
29155         for thread-safe operation on some platforms.
29157 2014-06-13  Paul Eggert  <eggert@cs.ucla.edu>
29159         regex: don't be multithreaded if USE_UNLOCKED_IO.
29160         Problem reported by Michael Felt in: http://bugs.gnu.org/17773
29161         * lib/regex_internal.h: Do not use multithreaded version if
29162         USE_UNLOCKED_IO is defined.  This is a hack, but it works
29163         around a porting bug with coreutils 8.22 on AIX 7.1.
29165 2014-06-11  Daiki Ueno  <ueno@gnu.org>
29167         gettext: update macros to version 0.19
29168         * m4/intl.m4, m4/po.m4: Update from gettext-0.19.  In particular,
29169         depend on gl_EXTERN_INLINE and drop support for older Bison
29170         versions.
29172 2014-06-10  Pádraig Brady  <P@draigBrady.com>
29174         select,poll: fix console handle check on windows 8
29175         lib/poll.c (IsConsoleHandle): Change from testing the lower
29176         2 bits of the handle to the more expensive but accurate syscall.
29177         lib/select.c: Likewise.
29179 2014-06-10  Eli Zaretskii  <eliz@gnu.org>
29181         select: fix waiting on anonymous pipes on MS-Windows
29182         * lib/select.c (rpl_select): Fall back to polling when select()
29183         indicates there is nothing to check, while due to the timeout not
29184         expiring, activity is indicated on one of the handles.
29185         Also clear the TIMEOUT argument if the timer does expire.
29187 2014-06-10  Eli Zaretskii  <eliz@gnu.org>
29189         times: fix to return non constant value on MS-Windows
29190         * lib/times.c (times): Don't use the process creation time,
29191         rather clock() which on windows returns the number of
29192         clock ticks since the process started.
29194 2014-06-09  Michael Goffioul  <michael.goffioul@gmail.com>
29196         isatty: fix to work on windows 8
29197         * lib/isatty.c (IsConsoleHandle): Change from testing the lower
29198         2 bits of the handle to the more expensive but accurate syscall.
29200 2014-06-07  Paul Eggert  <eggert@cs.ucla.edu>
29202         maint: fix typo in fdl.texi
29203         * doc/fdl.texi: Fix typo (missing '@').
29204         Somehow this was in fdl.texi but not fdl-1.3.texi.
29206 2014-06-06  Ben Walton  <bdwalton@gmail.com>
29208         mountlist: avoid hasmntopt const type warning on solaris
29209         * lib/mountlist.c: Solaris defines the OPT param of hasmntopt()
29210         with char * instead of const char *.  Passing the constant string
29211         "ignore" generates a compiler warning.  For Solaris cast MNT_IGNORE
29212         to avoid the warning.
29214 2014-06-04  Eric Blake  <eblake@redhat.com>
29216         maintainer-makefile: delete obsolete code
29217         * top/maint.mk (build_aux): Drop old code, as threatened.
29219         maintainer-makefile: avoid spurious error messages
29220         * top/maint.mk (syntax-check): Guard definition and use of
29221         $(shell) by whether Makefile is present.
29223 2014-06-03  Ben Walton  <bdwalton@gmail.com>
29225         rename: avoid unused-but-set-variable compiler warning
29226         * lib/rename.c (rpl_rename):  In the non-Win32 variant of rpl_rename,
29227         it is possible that dst_exists may be set but not used.  Mark it with
29228         the unused attribute to avoid compiler warnings.
29230 2014-06-02  Ben Walton  <bdwalton@gmail.com>
29232         rename: mark a label as potentially unused
29233         * lib/rename.c (rpl_rename): Avoid compiler warnings seen on Solaris,
29234         by marking the out label as potentially unused.
29235         * m4/gnulib-common.m4: Mention the need for the trailing ; for C++.
29237 2014-06-01  Paul Eggert  <eggert@cs.ucla.edu>
29239         gnulib-common.m4: Fix typo in _GL_UNUSED_LABEL.
29240         * m4/gnulib-common.m4 (_GL_UNUSED_LABEL): Omit trailing semicolon.
29242 2014-06-02  Ben Walton  <bdwalton@gmail.com>
29244         acl: apply pure attribute to two functions
29245         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial):
29246         Mark as "pure" as flagged by gcc 4.9 on Solaris 10.
29248 2014-06-01  Pádraig Brady  <P@draigBrady.com>
29250         gnulib-common.m4: add _GL_UNUSED_LABEL
29251         * m4/gnulib-common.m4: Add _GL_UNUSED_LABEL which is similar to
29252         _GL_UNUSED, but handles g++ < 4.5 not supporting this syntax.
29254 2014-05-31  Paul Eggert  <eggert@cs.ucla.edu>
29256         dup2, fcntl, fcntl-h: port to AIX 7.1
29257         This fixes some porting problems discovered when testing the latest
29258         grep snapshot on AIX 7.1.  I don't think if fixes any bugs
29259         in grep but it could be important for other applications.
29260         * doc/posix-functions/dup2.texi:
29261         * doc/posix-functions/fcntl.texi:
29262         * doc/posix-headers/fcntl.texi:
29263         Document AIX bugs.
29264         * lib/fcntl.in.h (O_CLOEXEC, O_NOFOLLOW, O_TTY_INIT) [_AIX]:
29265         Define to 0 if outside 'int' range.
29266         * m4/dup2.m4 (gl_FUNC_DUP2):
29267         * m4/fcntl.m4 (gl_FUNC_FCNTL):
29268         Check for getdtablesize.  If it's available, test a value just
29269         outside its range instead of testing 1000000.  When cross-compiling,
29270         guess that AIX will fail this improved test.
29272 2014-05-30  Paul Eggert  <eggert@cs.ucla.edu>
29274         printf, config.rpath: Port to FreeBSD 10.
29275         Problem reported by Tijl Coosemans in:
29276         http://lists.gnu.org/r/bug-gnulib/2014-05/msg00078.html
29277         * build-aux/config.rpath (hardcode_libdir_flag_spec)
29278         (hardcode_direct): Simplify FreeBSD configuration.
29279         (library_names_spec): Don't mishandle FreeBSD 10+.
29280         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE)
29281         (gl_PRINTF_INFINITE_LONG_DOUBLE, gl_PRINTF_DIRECTIVE_F)
29282         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99)
29283         (gl_SNPRINTF_DIRECTIVE_N, gl_VSNPRINTF_ZEROSIZE_C99):
29284         Don't mishandle FreeBSD 10+ when cross-compiling.
29286         ftoastr: work around compiler bug in IBM xlc 12.1
29287         * lib/ftoastr.h (_GL_FLT_PREC_BOUND, _GL_DBL_PREC_BOUND)
29288         (_GL_LDBL_PREC_BOUND): Make these macros, not enums, to work
29289         around a compiler bug in IBM xlc 12.1.0.0: it complains
29290         '"ftoastr.c", line 80.37: 1506-045 (S) Undeclared identifier
29291         _GL_FLT_PREC_BOUND.'
29293 2014-05-30  Kieran Colford  <colfordk@gmail.com>
29295         valgrind-tests: fixed misleading help message
29296         * m4/valgrind-tests.m4: The help message generated by configure
29297         implied that valgrind was disabled by default, which it wasn't.
29298         Adjusted the help message using s/enable/disable/ to clarify.
29300 2014-05-30  Ulrich Weigand  <uweigand@de.ibm.com>
29302         isfinite, isinf, isnan tests: fix for little-endian PowerPC
29303         * tests/test-isfinite.c (test_isfinitel): Only manipulate the
29304         first double of a PowerPC "double double" pair.
29305         * tests/test-isinf.c (test_isinfl): Likewise.
29306         * tests/test-isnan.c (test_long_double): Likewise.
29307         * tests/test-isnanl.h (main): Likewise.
29308         * tests/test-signbit.c (test_signbitl): Likewise.
29310 2014-05-29  Paul Eggert  <eggert@cs.ucla.edu>
29312         exclude-tests: port to AIX 7.1
29313         * modules/exclude-tests (test_exclude_LDADD): Add $(LIBTHREAD).
29314         Needed on AIX 7.1 with xlc V12.1, otherwise it won't link because
29315         the regex code uses locks.
29317 2014-05-28  Paul Eggert  <eggert@cs.ucla.edu>
29319         pthread_sigmask, timer-time: use gl_THREADLIB only if needed
29320         Without this fix, Emacs would sometimes call sigprocmask instead
29321         of pthread_sigmask, which is a no-no in multithreaded applications.
29322         Problem reported by Jorgen Schaefer in <http://bugs.gnu.org/17561>.
29323         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
29324         Suppress check for pthread_sigmask working without -lpthread if
29325         the application always links with -lpthread.  Do not link with
29326         $LIBMULTITHREAD if gl_THREADLIB is not defined.
29327         * m4/timer_time.m4 (gl_TIMER_TIME):
29328         Require gl_THREADLIB only if it is defined.  Do not append
29329         $LIBMULTITHREAD to LIB_TIMER_TIME if gl_THREADLIB is not defined.
29331 2014-05-27  Sylvain Beucler  <beuc@beuc.net>.
29333         gnulib-tool: wget translations using --no-verbose rather than --quiet
29334         This allows the user to see error messages if any (--quiet hides them)
29335         * gnulib-tool: Invoke wget with --no-verbose, rather than --quiet.
29337 2014-05-27  Sylvain Beucler  <beuc@beuc.net>
29339         gnulib-tool: adjust translation wget to avoid a https redirection
29340         Context: http://translationproject.org/latest/gnulib redirects to
29341            https://translationproject.org/latest/gnulib/
29342         Rationale: if the user falls back to wget, she doesn't have rsync and
29343         is probably in a minimal build environment, where packages such as
29344         'ca-certificates' are missing as well, resulting in a failed (and
29345         difficult to detect since ignored) translation initial fetch.
29346         Consequently let's avoid https if possible, and add the missing
29347         trailing slash.  This also avoids an unnecessary 302 redirection.
29348         * gnulib-tool: Add trailing slash to gnulib URL.
29350 2014-05-22  Pádraig Brady  <P@draigBrady.com>
29352         getlogin_r-tests: check return value rather than errno
29353         * tests/test-getlogin_r.c (main): As per POSIX we should be
29354         verifying the return value from getlogin_r() rather than errno.
29356 2014-05-22  Pádraig Brady  <P@draigBrady.com>
29358         getlogin_r-tests: fix various issues in recent change
29359         * tests/test-getlogin_r.c: Include required headers that were
29360         missed in recent commit eec20b4e.
29361         Also consistently check the errno rather than the return value from
29362         getlogin_r as POSIX only specifies that non zero is returned on error.
29363         * modules/getlogin_r-tests (configure.ac): Add the check for ttyname().
29365 2014-05-21  Paul Eggert  <eggert@cs.ucla.edu>
29367         fchdir: port 'open' and 'close' redefinitions to AIX 7.1
29368         * lib/chown.c, lib/clean-temp.c, lib/copy-file.c, lib/execute.c:
29369         * lib/fsusage.c, lib/gc-gnulib.c, lib/javacomp.c, lib/mountlist.c:
29370         * lib/openat-proc.c, lib/pagealign_alloc.c, lib/progreloc.c:
29371         * lib/spawn-pipe.c:
29372         Do not #undef 'open' and 'close'.  AIX 7 does '#define open open64'
29373         and then 'int open64(const char *, int, ...);', which means the
29374         declaration for 'open' gets lost if we later '#undef open'.
29375         Discovered while building grep pretest 2.18.151-1c770 on AIX 7.1,
29376         where the compilation reported the non-fatal error "In function
29377         'openat_proc_name' ... warning: implicit declaration of function
29378         'open'".  In this case the error is relatively harmless, but in
29379         other cases it might not be so minor.
29381 2014-05-20  Paul Eggert  <eggert@cs.ucla.edu>
29383         xalloc: don't potentially generate invalid code for xmemdup calls
29384         * lib/xalloc.h (xmemdup): Do not mark with _GL_ATTRIBUTE_ALLOC, as
29385         this function can initialize the newly-allocated storage with new
29386         pointers, which means this function is not malloc-like.  See:
29387         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56955
29389 2014-05-19  Pádraig Brady  <P@draigBrady.com>
29391         getlogin_r-tests: avoid false failure under sudo/ssh etc.
29392         * tests/test-getlogin_r.c (main): Sync up with test-getlogin.c
29393         changes from commit 97249cf29 to not depend on environment variables.
29395 2014-05-18  Pádraig Brady  <P@draigBrady.com>
29397         getlogin-tests: avoid false failure under cron
29398         * tests/test-getlogin.c (main): Avoid verifying errnos from ttyname()
29399         since that's not what's under test.  Centos 6 was seen to return
29400         EINVAL for ttyname() when run from cron.
29402 2014-05-16  Jim Meyering  <meyering@fb.com>
29404         mbrtowc.m4: fix a comment typo
29405         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Fix typo s/2/-2/ in
29406         emitted documentation string.
29408 2014-05-16  Paul Eggert  <eggert@cs.ucla.edu>
29410         mbrlen, mbrtowc: fix bug with empty input
29411         * lib/mbrtowc.c (rpl_mbrtowc) [MBRTOWC_EMPTY_INPUT_BUG]: Fix the bug.
29412         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): New macro.  It's not used,
29413         so this is mainly for documentation.
29414         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): New macro.
29415         (gl_FUNC_MBRTOWC): Use it.
29416         * tests/test-mbrtowc.c (main): Test for the bug.
29418 2014-05-15  Paul Eggert  <eggert@cs.ucla.edu>
29420         doc: document mbrtowc and mbrlen problem with empty input
29421         * doc/posix-functions/mbrlen.texi (mbrlen):
29422         * doc/posix-functions/mbrtowc.texi (mbrtowc):
29423         Document portability problem when the input string is empty.  See:
29424         https://sourceware.org/bugzilla/show_bug.cgi?id=16950
29426         doc: document exec* = spawn+exit bug with non-Cygwin Windows platforms
29427         Problem reported by Eli Zaretskii in:
29428         http://lists.gnu.org/r/bug-grep/2014-05/msg00118.html
29429         * doc/posix-functions/execl.texi (execl):
29430         * doc/posix-functions/execle.texi (execle):
29431         * doc/posix-functions/execlp.texi (execlp):
29432         * doc/posix-functions/execv.texi (execv):
29433         * doc/posix-functions/execve.texi (execve):
29434         * doc/posix-functions/execvp.texi (execvp):
29435         Mention spawn+exit problem on non-Cygwin Windows platforms.
29437 2014-05-14  Guilherme de Almeida Suckevicz  <guito.linux@gmail.com>
29439         getlogin-tests: avoid false failure under sudo/ssh etc.
29440         * modules/getlogin-tests (configure.ac): Check for ttyname().
29441         * tests/test-getlogin.c (main): Don't depend on environment variables
29442         to correlate with getlogin(), since sudo and ssh etc. can tamper
29443         with the LOGNAME and USER env vars.  Instead lookup the name from
29444         the uid associated with the stdin tty.
29446 2014-05-11  Paul Eggert  <eggert@cs.ucla.edu>
29448         mbsstr, quotearg, xstrtol: pacify IRIX 6.5 cc
29449         These were found when building the latest grep snapshot on IRIX 6.5.
29450         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Break "a=b=c;" into
29451         "b=c; a=b;", since IRIX 6.5 cc complains about the former if b is
29452         never used later.
29453         * lib/quotearg.c (quoting_options_from_style):
29454         * lib/xstrtol.c (__xstrtol):
29455         Use enum instead of 0, to pacify IRIX 6.5 cc.
29457 2014-04-18  Pádraig Brady  <P@draigBrady.com>
29459         gitlog-to-changelog: revert inclusion of git-log-fix file
29460         * build-aux/git-log-fix: Delete dummy file.
29461         * modules/gitlog-to-changelog: Don't reference (overwrite)
29462         the project specific git-log-fix file.
29464 2014-04-18  Assaf Gordon  <agordon@wi.mit.edu>
29466         maint.mk: Relax the copyright check to cater for non FSF projects
29467         * top/maint.mk (sc_copyright_check): Relax the check for $PACKAGE.texi
29468         to not require the "Free" suffix after the copyright years.
29470 2014-04-18  Natanael Copa  <ncopa@alpinelinux.org>
29472         physmem: use sysinfo on linux-gnu if _SC_PHYS_PAGES unavailable
29473         * lib/physmem.c (physmem_total): Some systems like musl libc don't yet
29474         support _SC_PHYS_PAGES.  Use the linux syscall sysinfo as fallback
29475         if _SC_PHYS_PAGES or _SC_PAGESIZE fails.
29476         (physmem_available): Likewise for _SC_AVPHYS_PAGES.
29478 2014-04-18  Paul Eggert  <eggert@cs.ucla.edu>
29480         exclude: port to strict C99
29481         Strict C does not allow converting a function pointer to void *
29482         and vice versa.  Pass a pointer to a function pointer instead.
29483         * lib/exclude.c (add_exclude_file):
29484         Pass the address of the function pointer.
29485         (call_addfn): And deference the address here, to match.
29487 2014-04-17  Paul Eggert  <eggert@cs.ucla.edu>
29489         regex: do not depend on malloc-gnu
29490         * modules/regex (Depends-on): Remove malloc-gnu.
29491         It's no longer needed, because of the 2012-12-29 patch
29492         "regex: port to hosts where malloc (0) == NULL".
29493         Reported by Nathan Kennedy in:
29494         http://lists.gnu.org/r/bug-gnulib/2014-04/msg00026.html
29496 2014-04-16  Assaf Gordon  <agordon@wi.mit.edu>
29498         expl: avoid incorrect expl(small_value) on OpenBSD 5.4
29499         * m4/expl.m4 (gl_FUNC_EXPL): Add a check for this condition.
29500         * doc/posix-functions/expl.texi: Mention the workaround.
29502 2014-04-12  Paul Eggert  <eggert@cs.ucla.edu>
29504         xalloc: allow x2nrealloc (P, PN, S) where P && !*PN
29505         * lib/xalloc.h (x2nrealloc): Extend slightly, to allow the current
29506         size to be zero even when the pointer is nonnull.  This
29507         accommodates the use case where P is malloc (0) and *PN is 0 on a
29508         host where malloc (0) yields nonnull.
29510 2014-04-09  Eric Blake  <eblake@redhat.com>
29512         fts: avoid unnecessary strlen calls
29513         * lib/fts.c (_D_EXACT_NAMLEN): Restore definition when needed.
29515 2014-04-09  Paul Eggert  <eggert@cs.ucla.edu>
29517         fts: avoid unnecessary strlen calls
29518         * lib/fts.c (fts_build): Go back to using _D_EXECT_NAMLEN
29519         when that can be faster than strlen.
29521 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
29523         fts: avoid unnecessary strlen calls
29524         * lib/fts.c (_D_EXACT_NAMLEN): Remove macro.
29525         (fts_build): Store the length of the dp->d_name entry in a local variable
29526         instead of calling strlen() several times via the above, removed macro.
29527         For 'rm -rf some-dir' with e.g. 1M directory entries, this speeds up the
29528         run by ~4%, yet this reduces the execution time by about a third if run
29529         via "ltrace -c rm -rf some-dir".
29531 2014-03-27  Paul Eggert  <eggert@cs.ucla.edu>
29533         obstack: Remove ancient NeXTSTEP gcc support conditional
29534         This change will ease merging with glibc.  The "#if ... __NEXT__"
29535         causes a warning with -Wundef which glibc now enables by default.
29536         Problem reported by Will Newton in
29537         <http://lists.gnu.org/r/bug-gnulib/2014-03/msg00032.html>.
29538         glibc <sys/cdefs.h> now uses __extension__ for GCC 2.8 or later,
29539         so go with that.
29540         * lib/obstack.h (__extension__):
29542 2014-03-27  Paul Eggert  <eggert@cs.ucla.edu>
29544         obstack: merge with glibc changes
29545         * lib/obstack.c, lib/obstack.h: Merge from glibc.
29546         This is mostly indenting and commentary changes.
29547         Instances of 'register' have been removed.
29549 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
29551         strftime: wrap macros in "do {...} while(0)"
29552         * lib/strftime.c (DO_NUMBER): Wrap multi-statement code block of
29553         this macro in "do {...} while(0)" to prevent false use as a
29554         single statement, e.g., in an un-braced "{}" else-block.
29555         (DO_SIGNED_NUMBER, DO_TZ_OFFSET, DO_NUMBER_SPACEPAD): Likewise.
29556         (strftime_case_): Remove 'else' after 'goto' - which was the
29557         only non-fatal, un-braced use of one of the above macros.
29558         Spotted by coverity (NESTING_INDENT_MISMATCH).
29560 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
29562         modechange: avoid memory leaks for invalid octal modes
29563         * lib/modechange.c (mode_compile): During the parsing of
29564         notations like +40, free the 'mc' buffer for invalid mode
29565         strings like +17777 (greater than the maximum octal mode),
29566         =18 (bad octal mode characters) or u=1 ('affected' with
29567         octal modes).
29568         Reproducer, e.g.:
29569             $ valgrind --leak-check=full chmod +17777 file
29570         Introduced via the 2012-03-09 commit, 4730c3e3, "modechange:
29571         add notations +40, 00440, etc.".
29572         Spotted by coverity (RESOURCE_LEAK).
29574 2014-03-24  Paul Eggert  <eggert@cs.ucla.edu>
29576         gitlog-to-changelog: include a dummy git-log-fix file
29577         Problem reported by Nathan Stratton Treadway in:
29578         http://lists.gnu.org/r/bug-tar/2014-03/msg00082.html
29579         * build-aux/git-log-fix: New file.
29581 2014-03-13  Jim Meyering  <meyering@fb.com>
29583         gitlog-to-changelog: also include the file, git-log-fix
29584         * modules/gitlog-to-changelog (Files): Add git-log-fix.
29585         Reported by Assaf Gordon.
29587 2014-03-06  Paul Eggert  <eggert@cs.ucla.edu>
29589         regex: port to OS X 10.8.5 en_US.UTF-8 locale
29590         This fixes a bug when ignoring case and when comparing the
29591         titlecase letter 'Lj' (U+01C8 LATIN CAPITAL LETTER L WITH SMALL
29592         LETTER J) to the corresponding uppercase letter 'LJ' (U+01C7 LATIN
29593         CAPITAL LETTER LJ).  In the OS X 10.8.5 en_US.UTF-8 locale, the
29594         titlecase letter is neither lowercase nor uppercase, but
29595         uppercasing the titlecase letter (via towupper) yields the
29596         uppercase letter, so the two letters should match when ignoring case.
29597         Problem reported by Jim Meyering in <http://debbugs.gnu.org/16911#16>.
29598         * lib/regex_internal.c (build_wcs_upper_buffer, build_upper_buffer):
29599         Don't test whether a character is lowercase before uppercasing it.
29601 2014-03-04  Kevin Cernekee  <cernekee@gmail.com>
29603         stdint, read-file: fix missing SIZE_MAX on Android (tiny change)
29604         This is basically one of the options Bruno Haible proposed in:
29605         http://lists.gnu.org/r/bug-gnulib/2012-01/msg00282.html
29606         * lib/sys_types.in.h (_GL_INCLUDING_UNISTD_H): New macro.
29607         * lib/stdint.in.h: Use it.
29608         * modules/stdint (Depends-on): Add sys_types.
29610 2014-02-26  Pádraig Brady  <P@draigBrady.com>
29612         parse-datetime: fix crash or infloop in TZ="" parsing
29613         * lib/parse-datetime.y (parse_datetime): Break out of the
29614         TZ="" parsing loop once the second significant " is found.
29615         Also skip over any subsequent whitespace to be consistent
29616         with the non TZ= case.
29617         * tests/test-parse-datetime.c: Add test cases for TZ="" parsing.
29619 2014-02-26  Paul Eggert  <eggert@cs.ucla.edu>
29621         savedir: new symbol for fast-read version
29622         * lib/savedir.h (SAVEDIR_SORT_FASTREAD): New symbol, for programs
29623         like GNU cp that want to use SAVEDIR_SORT_INODE if available,
29624         SAVEDIR_SORT_NONE otherwise.  Problem reported by Bernhard Voelker in:
29625         http://lists.gnu.org/r/coreutils/2014-02/msg00037.html
29627 2014-02-25  Paul Eggert  <eggert@penguin.cs.ucla.edu>
29629         unistd: port readlink to Mac OS X 10.3.9
29630         * lib/unistd.in.h (_GL_INCLUDING_UNISTD_H): New macro, to work
29631         around self-include problem in Mac OS X 10.3.9 when combined with
29632         readlink module.  Problem reported by Klaus Zietler in
29633         <http://bugs.gnu.org/16825>.
29635 2014-02-23  Paul Eggert  <eggert@cs.ucla.edu>
29637         diffseq: remove TOO_EXPENSIVE heuristic
29638         Problem with diffutils reported by Vincent Lefevre in
29639         <http://bugs.gnu.org/16848>.  The simplest solution is to remove
29640         the TOO_EXPENSIVE heuristic that I added to GNU diff in 1993.
29641         Although appropriate for circa-1993 hardware, these days the heuristic
29642         seems to be more trouble than it's worth.
29643         * lib/diffseq.h: Modernize citations.
29644         (struct context): Remove member too_expensive.
29645         All uses changed.
29646         (struct partition): Remove members lo_minimal, hi_minimal.
29647         All uses changed.
29648         (diag, compareseq): Remove arg find_minimal.  All uses changed.
29649         (diag): Remove the TOO_EXPENSIVE heuristic that I added back in
29650         1993 to make 'diff' run faster (but not as well) on large inputs.
29651         These days, computers are fast enough that it's typically better
29652         to run slower but more accurately.
29653         * lib/fstrcmp.c: Remove duplicate comment.
29654         * lib/fstrcmp.c (strcmp_bounded):
29655         * lib/git-merge-changelog.c (compute_differences):
29656         Adjust to diffseq.h changes.
29657         * NEWS: Document the change.
29659         savedir: simplify by using stpcpy
29660         * lib/savedir.c (direntry_t): Remove size member.  All uses removed.
29661         (streamsavedir): Use stpcpy instead.
29662         * modules/savedir (Depends-on): Add stpcpy.
29664 2014-02-21  Pádraig Brady  <P@draigBrady.com>
29666         spawn: fix link error on uclibc
29667         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): use AC_SEARCH_LIBS,
29668         to incorporate -lrt if needed (on uclibc for example).
29669         * modules/posix_spawn: Reference the substituted LIB.
29671 2014-02-21  Thomas Petazzoni  <thomas.petazzoni@free-electrons.com>  (tiny change)
29672         timer: fix uClibc detection of threading
29673         * m4/time_time.m4 (gl_TIMER_TIME): Detect whether threads are
29674         enabled in uClibc.
29676 2014-02-21  Eric Blake  <eblake@redhat.com>
29678         maintainer-makefiles: provide AC_PROG_SED for older autoconf
29679         * m4/gnulib-common.m4 (AC_PROG_SED): Copy from newer autoconf.
29681 2014-02-21  Sergey Poznyakoff  <gray@gnu.org.ua>
29683         exclude: add support for posix regexps
29685         This commit adds support for POSIX extended regular expressions
29686         and fixes a long-standing memory leak (pattern buffer was never
29687         freed).  It also implements a new interface function to read
29688         exclude patterns from a FILE, which passes an additional parameter
29689         to its callback function, thereby allowing to preserve its state
29690         between invocations.
29692         * lib/exclude.c (struct patopts): Pack regex and pattern into union.
29693         (pattern_buffer): New struct.
29694         (exclude): New member patbuf.
29695         (exclude_add_pattern_buffer): New function.
29696         (free_exclude_segment): Free regexps.
29697         (free_exclude): Free allocated pattern buffers.
29698         (exclude_patopts): New function.
29699         (file_pattern_matches): Use exclude_patopts.
29700         (add_exclude): support regexps.
29701         (add_exclude_fp): New function.
29702         (add_exclude_file): Rewrite using add_exclude_fp.
29703         (fnmatch_pattern_has_wildcards): Support posix extended regexps.
29704         * lib/exclude.h (EXCLUDE_REGEX, EXCLUDE_ALLOC): New flags.
29705         (add_exclude_fp)
29706         (add_exclude_file): Rewrite using add_exclude_fp.
29707         (fnmatch_pattern_has_wildcards): Support posix extended regexps.
29708         * lib/exclude.h (EXCLUDE_REGEX, EXCLUDE_ALLOC): New flags.
29709         (add_exclude_fp)
29710         (exclude_add_pattern_buffer): New prototypes.
29711         * modules/exclude: Depends on regex and filename.
29713 2014-02-20  Eric Blake  <eblake@redhat.com>
29715         maintainer-makefiles: use $(SED) for syntax check
29716         * modules/maintainer-makefile (configure.ac): Check for sane sed.
29717         * top/maint.mk: Change sed to $(SED).
29719 2014-02-11  Sergey Poznyakoff  <gray@gnu.org.ua>
29720             Paul Eggert  <eggert@cs.ucla.edu>
29722         savedir: add sorting arg to savedir, streamsavedir; remove fdsavedir
29723         Patch based on an idea by Dick Streefland in
29724         <https://savannah.gnu.org/patch/?7892>.
29725         * NEWS: Document this.
29726         * lib/savedir.c (NAME_SIZE_DEFAULT): Remove.
29727         (direntry_t, comparison_function): New types.
29728         (direntry_cmp_name): New function.
29729         (direntry_cmp_inode) [D_INO_IN_DIRENT]: New function.
29730         (streamsavedir, savedir): New arg OPTION.
29731         (streamsavedir): Simplify memory allocation.
29732         (fdsavedir): Remove.
29733         * lib/savedir.h (enum savedir_option): New type.
29734         (streamsavedir, savedir): New arg OPTION.
29735         (fdsavedir): Remove.
29737 2014-02-05  Paul Eggert  <eggert@cs.ucla.edu>
29739         file-type: add support for doors and other less-common file types
29740         Problem with S_ISDOOR reported by Rich Burridge.
29741         * lib/file-type.c (file_type): Do S_ISLNK early too.  Do S_TYPEIS*
29742         macros before the rest.  Add S_ISCTG, S_ISDOOR, S_ISMPB, S_ISMPC,
29743         S_ISMPX, S_ISNAM, S_ISNWK, S_ISOFD, S_ISOFL, S_ISPORT, S_ISWHT.
29745 2014-01-23  Eric Blake  <eblake@redhat.com>
29747         pthread: work around winpthread header pollution on mingw
29748         * lib/time.in.h: Move pthread workarounds...
29749         * lib/pthread.in.h: ...here.
29750         * m4/pthread.m4 (gl_PTHREAD_CHECK): Also build pthread.h when we
29751         detect macro pollution on mingw.
29752         * doc/posix-headers/pthread.texi (pthread.h): Document the problems.
29754 2014-01-22  Paul Eggert  <eggert@cs.ucla.edu>
29756         qacl: check for fchmod
29757         * m4/acl.m4 (gl_FUNC_ACL): Check for fchmod, since acl-internal.h
29758         and qset-acl.c both use HAVE_FCHMOD.
29760 2014-01-20  Paul Eggert  <eggert@cs.ucla.edu>
29762         fdopen-tests: port to Tru64
29763         * tests/test-fdopen.c (main): Don't invoke fdopen on a file
29764         descriptor that is not open, as POSIX doesn't specify the
29765         resulting behavior and the test does not work on Tru64.
29766         Problem reported by Steven M. Schweda in:
29767         http://lists.gnu.org/r/bug-gnulib/2014-01/msg00079.html
29769         stdalign: port to HP-UX compilers
29770         * lib/stdalign.in.h (_Alignas): Use __attribute__ (__aligned__ (x))
29771         if __HP_cc or __HP_aCC are nonzero.
29773 2014-01-16  Paul Eggert  <eggert@cs.ucla.edu>
29775         strtoimax: port to platforms lacking 'long long'
29776         VMS's pre-C99 compiler lacks 'long long', so 'configure' doesn't
29777         check whether strtoll is declared, which causes the C file to
29778         wrongly report an error.  Problem reported by Steven M. Schweda in:
29779         http://lists.gnu.org/r/bug-diffutils/2014-01/msg00003.html
29780         * lib/strtoimax.c (strtoull):
29781         Declare only if HAVE_UNSIGNED_LONG_LONG_INT.
29782         (strtoll): Declare only if HAVE_LONG_LONG_INT.
29784 2014-01-16  Daniel Albers  <daniel@lbe.rs>  (tiny change)
29786         relocatable-perl: fix texi syntax
29787         * doc/relocatable-maint.texi: Escape braces.
29789 2014-01-09  Reuben Thomas  <rrt@sc3d.org>
29791         relocatable-perl: like relocatable-script, but for Perl scripts
29792         * build-aux/relocatable.pl.in: Add.
29793         * doc/relocatable-maint.texi: Add documentation.
29794         * modules/relocatable-perl: Add.
29796 2014-01-07  Paul Eggert  <eggert@cs.ucla.edu>
29798         tests: fix export bug in previous patch
29799         Problem reported by Jim Meyering.
29800         * tests/init.sh (re_shell): New var, which is exported instead of
29801         re_shell_.
29803         tests: simplify porting to Solaris 10 /bin/sh
29804         Some test cases in 'grep' need a shell that groks '$(';
29805         export re_shell_ for their benefit.  Problem reported for 'grep'
29806         by Dagobert Michelsen in <http://bugs.gnu.org/16380>.
29807         * tests/init.sh (re_shell_): Export if it's used.
29809 2014-01-06  Eric Blake  <eblake@redhat.com>
29811         md5, sha1, sha256, sha512: support older autoconf
29812         * m4/00gnulib.m4 (m4_divert_push): Wrap diversion stack
29813         for autoconf < 2.63b.
29815         include_next: port to autoconf 2.63
29816         * m4/gnulib-common.m4 (AS_VAR_COPY): Define if missing.
29818 2014-01-04  Jim Meyering  <meyering@fb.com>
29820         maint: add a gnulib-local rule to keep non-ascii out of .texi files
29821         * cfg.mk (sc_keep_gnulib_texi_files_mostly_ascii): New rule,
29822         so that "make sc_maint" will ding anyone who puts non-ascii
29823         in any of gnulib's .texi files.
29825 2014-01-03  Jim Meyering  <meyering@fb.com>
29827         freadable, fwritable, fwriting: declare with the "pure" attribute
29828         * lib/freadable.h (freadable): Declare with the "pure" attribute.
29829         * lib/fwritable.h (fwritable): Likewise.
29830         * lib/fwriting.h (fwriting): Likewise.
29831         Suggested by Bruno Haible.
29833         maint.mk: adapt openat.h-include-without-use test
29834         * top/maint.mk (sc_prohibit_openat_without_use): Also check for
29835         FCHMODAT_INLINE, FCHOWNAT_INLINE and STATAT_INLINE, to avoid
29836         failing on gnulib's own lib/{chmod,chown,stat}at.c files.
29837         With this change, running "make sc_maint" in gnulib's top-level
29838         directory now passes for me.
29840 2014-01-03  Paul Eggert  <eggert@cs.ucla.edu>
29842         doc: use ASCII in .texi files where UTF-8 isn't needed
29843         * doc/posix-functions/crypt.texi, doc/posix-functions/encrypt.texi:
29844         * doc/posix-functions/setkey.texi, doc/regex.texi:
29845         Use ASCII input, not UTF-8.
29847 2014-01-02  Jim Meyering  <meyering@fb.com>
29849         freading: declare with the "pure" attribute
29850         * lib/freading.h (freading): Declare with the "pure" attribute.
29852         manywarnings: remove -Wmudflap
29853         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove -Wmudflap, since
29854         it is no longer supported in gcc-4.9-to-be.
29856 2014-01-01  Paul Eggert  <eggert@cs.ucla.edu>
29858         relocatable-script: remove unused code
29859         Problem reported by Reuben Thomas in:
29860         http://lists.gnu.org/r/bug-gnulib/2013-12/msg00117.html
29861         * build-aux/relocatable.sh.in (func_tmpdir): Remove unused function.
29863 2014-01-01  Jim Meyering  <meyering@fb.com>
29865         maint: fix public-submodule-commit to work with newer git
29866         * top/maint.mk (public-submodule-commit): Remove excess quoting.
29867         We were over-quoting the test arguments, and somewhere prior to
29868         version 1.8.5.2.229, git stopped removing those excess quotes,
29869         which made the test fail, since the unexpanded strings would
29870         always differ; using GIT_TRACE=1 confirmed that the git merge-base
29871         command wasn't even being run.
29873 2014-01-01  Paul Eggert  <eggert@cs.ucla.edu>
29875         doc: update main copyright year
29876         * doc/gnulib.texi: Update copyright date.
29878 2014-01-01  Eric Blake  <eblake@redhat.com>
29880         version-etc: new year
29881         * lib/version-etc.c (COPYRIGHT_YEAR): Bump to 2014.
29882         * all files: run 'make update-copyright'
29884 2013-12-24  Eric Blake  <eblake@redhat.com>
29886         passfd: give nicer error for recvfd at eof
29887         * lib/passfd.c (recvfd): Fake ENOTCONN if other end closes early.
29888         * tests/test-passfd.c (main): Enhance test to cover this.
29890 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
29892         gettimeofday: port recent C++ fix to Emacs
29893         Without this further patch, Emacs won't build due to
29894         the portcheck failing.  Also, this simplifies the patch a bit.
29895         * lib/time.in.h (localtime, gmtime): Don't replace unless
29896         GNULIB_GETTIMEOFDAY.  Treat them more like mktime.
29897         * lib/time.in.h (localtime, gmtime):
29898         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME):
29899         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
29900         * modules/time (time.h):
29901         Don't worry about the possibility of localtime and gmtime
29902         being absent; they're present in all C libraries we know about.
29903         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
29904         Don't assume sys_time is present and has been initialized.
29905         Instead, use a hack that should work even if it hasn't been.
29906         Don't use a portcheck for gmtime or localtime; this supports
29907         the hack.
29908         * modules/time (time.h): Substitute GNULIB_GETTIMEOFDAY.
29910 2013-12-17  John W. Eaton  <jwe@gnu.org>
29912         gettimeofday: fix C++ crosscompilation
29914         Never replace gmtime and localtime by macros when compiling with
29915         C++, this prevents <ctime> from being included.
29917         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Do not
29918         define gmtime and localtime as preprocessor macros.  Instead
29919         define some HAVE_GMTIME, HAVE_LOCALTIME, REPLACE_GMTIME, and
29920         REPLACE_LOCALTIME substitutions.
29921         * lib/time.in.h: Declare gmtime and localtime when needed.
29922         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): AC_SUBST HAVE_GMTIME,
29923         HAVE_LOCALTIME, REPLACE_GMTIME, and REPLACE_LOCALTIME.
29924         * modules/time: Depend on gettimeofday, and substitute the above
29925         variables in time.h.
29927 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
29929         qacl: port to Windows better
29930         See Eli Zaretskii in
29931         <http://lists.gnu.org/r/emacs-devel/2013-12/msg00593.html>.
29932         * lib/file-has-acl.c (acl_access_nontrivial):
29933         Return -1 and set errno if !HAVE_ACL_FIRST_ENTRY &&
29934         !HAVE_ACL_TO_SHORT_TEXT && !HAVE_ACL_FREE_TEXT.
29936 2013-12-12  Alexander V. Lukyanov  <lav@netis.ru>
29938         md5, sha1, sha256, sha512: fix (trivial) compile error in c++ mode.
29939         * lib/gl_openssl.h: Cast void pointers to a specific type.
29941 2013-12-07  Pádraig Brady  <P@draigBrady.com>
29943         open-tests: fix build failure with -Werror=old-style-declaration
29944         * tests/test-open.h: Reorder the inline to avoid the issue.
29946 2013-12-07  Pádraig Brady  <P@draigBrady.com>
29948         md5, sha1, sha256, sha512: fix link error with partial libcrypto
29949         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Only clear LIB_CRYPTO at
29950         init time, so that if early checks find crypto routines,
29951         while the last does not, then @LIB_CRYPTO@ is replaced correctly,
29952         avoiding link failures.
29954 2013-12-07  Paul Eggert  <eggert@cs.ucla.edu>
29956         md5, sha1, sha256, sha512: add gl_SET_CRYPTO_CHECK_DEFAULT
29957         This provides a new way to specify the default for
29958         gl_CRYPTO_CHECK, one that is reflected in the --help message.
29959         Emacs uses this, as well as the old way.
29960         This attempts to implement a suggestion by Pádraig Brady in
29961         <http://lists.gnu.org/r/coreutils/2013-12/msg00080.html>.
29962         * m4/gl-openssl.m4(gl_SET_CRYPTO_CHECK_DEFAULT): New macro.
29963         (gl_CRYPTO_CHECK): Use it.  Mention the default in --help output.
29965         md5, sha1, sha256, sha512: add 'auto', and a way to specify default
29966         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK):
29967         Add support for a new option, --with-openssl=auto, which causes
29968         the library to be used if available and silently ignored if not.
29969         Add support to allow configure.ac to specify its own
29970         default, by setting with_openssl_default before invoking gl_INIT.
29972 2013-12-05  Paul Eggert  <eggert@cs.ucla.edu>
29974         open-tests: port to glibc with _FORTIFY_SOURCE and -O1
29975         Problem reported by Daiki Ueno in:
29976         http://lists.gnu.org/r/bug-gnulib/2013-06/msg00052.html
29977         * tests/test-open.h (__always_inline):
29978         New macro, if not already defined.
29979         (test_open): Use it.
29981 2013-12-04  Eric Blake  <eblake@redhat.com>
29983         include_next: minimize code duplication
29984         * modules/include_next (Depends-on): Add absolute-header.
29985         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Reuse
29986         gl_ABSOLUTE_HEADER_ONE instead of open-coding it.
29988 2013-12-04  Pádraig Brady  <P@draigBrady.com>
29990         getcwd: fix compile error in configure check
29991         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Include errno.h
29993 2013-12-04  Pádraig Brady  <P@draigBrady.com>
29995         regex: suppress core dumps from detection code
29996         * m4/regex.m4 (gl_REGEX): Catch the SIGABRT and convert to SIGTERM
29997         to suppress core dumps that may well occur on glibc systems.
29998         These core dumps might not be cleaned up automatically, or could
29999         trigger some system core dump handling logic.
30001 2013-12-03  Pádraig Brady  <P@draigBrady.com>
30003         md5, sha1, sha256, sha512: support mandating use of openssl
30004         * m4/gl-openssl.m4 (gl_crypto_check): Adjust the --with-openssl
30005         description, to list the now 3 separate options.  also don't
30006         mention the default=no, since this is implicit given the option
30007         is described as --with-openssl rather than --without-openssl.
30008         If projects change the default they're free to document that.
30009         with --with-openssl[=yes] we now error out when the specified
30010         hash algorithm is not available in libcrypto.
30012 2013-12-03  Ivailo  <xakepa10@gmail.com>
30014         test-xvasprintf: (trivial) fix to disable some -Wformat-security diags
30015         * tests/test-xvasprintf.c: Disable -Wformat-zero-length and
30016         -Wformat-nonliteral checks, as these edge cases are part of the test.
30018 2013-12-03  Eric Blake  <eblake@redhat.com>
30020         regex: avoid glibc deadlock during configure
30021         * m4/regex.m4 (gl_REGEX): Avoid recursive malloc deadlock when
30022         glibc bug 15078 in turn triggers bug 16159.
30023         Reported by Michal Privoznik.
30025 2013-12-02  Pádraig Brady  <P@draigBrady.com>
30027         md5, sha1, sha256, sha512: use openssl routines if available.
30028         --with-openssl the libcrypto md5, sha1, sha224, sha256, sha384, sha256
30029         routines will be used if available, requiring apps to link @LIB_CRYPTO@
30030         * lib/gl_openssl.h: Provide wrappers for specified openssl hash.
30031         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): New function to lookup libcrypto
30032         in the standard system location.
30033         * m4/sha1.m4: Call gl_CRYPTO_CHECK() for SHA1.
30034         * m4/sha256.m4: Likewise with SHA256.
30035         * m4/sha512.m4: Likewise with SHA512.
30036         * m4/md5.m4: Likewise with MD5.
30037         * m4/gc.m4: Ensure @LIB_CRYPTO@ set for tests.
30038         * lib/sha1.h: Include wrappers if HAVE_OPENSSL_SHA1.
30039         * lib/sha256.h: Likewise with SHA256.
30040         * lib/sha512.h: Likewise with SHA512.
30041         * lib/md5.h: Likewise with MD5.
30042         * lib/sha1.c: Exlude functionality if HAVE_OPENSSL_SHA1.
30043         * lib/sha256.c: Likewise with SHA256.
30044         * lib/sha512.c: Likewise with SHA512.
30045         * lib/md5.c: Likewise with MD5.
30046         * modules/crypto/sha1 (Link:): Add the new optional lib.
30047         (Depends-on:): Add dependency on extern-inline.
30048         * modules/crypto/sha256: Likewise.
30049         * modules/crypto/sha512: Likewise.
30050         * modules/crypto/md5: Likewise.
30051         * modules/crypto/sha1-tests: Reference the lib here too.
30052         * modules/crypto/md5-tests: Likewise.
30053         * modules/crypto/gc-des-tests: Likewise.
30054         * modules/crypto/gc-hmac-md5-tests: Likewise.
30055         * modules/crypto/gc-hmac-sha1-tests: Likewise.
30056         * modules/crypto/gc-hmac-sha256-tests: Likewise.
30057         * modules/crypto/gc-hmac-sha512-tests: Likewise.
30058         * modules/crypto/gc-md5-tests: Likewise.
30059         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
30060         * modules/crypto/gc-sha1-tests: Likewise.
30061         * modules/crypto/gc-tests: Likewise.
30062         * modules/crypto/hmac-md5-tests: Likewise.
30063         * modules/crypto/hmac-sha1-tests: Likewise.
30064         * modules/crypto/hmac-sha256-tests: Likewise.
30065         * modules/crypto/hmac-sha512-tests: Likewise.
30067 2013-11-29  RV1971  <rv1971@web.de>
30069         base64: (trivial) fix compilation regression on some compilers
30070         * lib/base64.c: Don't return the void function,
30071         instead split to a separate return statement.
30073 2013-11-28  Paul Eggert  <eggert@cs.ucla.edu>
30075         ignore-value: revert previous code change
30076         * lib/ignore-value.h (ignore_value): Use __extension__ and
30077         __typeof__ only for GCC 3.4 and later.  Reported by Eric Blake in
30078         <http://lists.gnu.org/r/bug-gnulib/2013-11/msg00102.html>.
30079         Change the comment to try to explain this better.
30081 2013-11-27  Pádraig Brady  <P@draigBrady.com>
30083         selinux-h: improve stub types and add more stub functions
30085         * lib/se-selinux.in.h: Change security_context_t to a typedef
30086         rather than a define, as it's a pointer type and so is better
30087         as a typedef to avoid issues declaring multiple variables
30088         with the comma operator.  Also add stub for string_to_security_class().
30089         * lib/se-context.in.h: Add stub functions for
30090         context_{type,range,role,user}_get().
30092 2013-11-27  Paul Eggert  <eggert@cs.ucla.edu>
30094         ignore-value: prefer GCC version back through 2.0
30095         The code didn't match the comments, so I did a bit of software
30096         archaeology.  GCC 2.0 seems to support __extension__ and
30097         __typeof__, so fix both code and comments to use 2.0.
30098         * lib/ignore-value.h (ignore_value): Use __extension__ and
30099         __typeof__ for GCC 2.0 through 3.3, too.
30101 2013-11-25  Mats Erik Andersson  <gnu@gisladisker.se>
30103         pty: Activate the signature wrapper of forkpty.
30104         The intended preprocessor macro HAVE_FORKPTY is
30105         never defined, yet `lib/forkpty.c' depends on it.
30107         * m4/pty.m4 (gl_FUNC_FORKPTY): At completed analysis,
30108         apply AC_DEFINE_UNQUOTED to HAVE_FORKPTY with value
30109         $HAVE_FORKPTY for access to wrapper in `lib/forkpty.c'.
30111 2013-11-18  Jim Meyering  <meyering@fb.com>
30112         and Paul Eggert  <eggert@cs.ucla.edu>
30114         quotearg: don't attempt to store 1 << 31 into an "int"
30115         * lib/quotearg.c (quotearg_buffer_restyled): Building coreutils with
30116         gcc's new -fsanitize=undefined and running its tests triggered some
30117         new test failures due to undefined behavior, all with this diagnostic:
30118           lib/quotearg.c:629:62: runtime error: left shift of 1 by 31 places \
30119             cannot be represented in type int
30120         Rather than shifting "1" left to form a mask, shift the bits right and
30121         simply use "1" as the mask.
30123 2013-11-21  Paul Eggert  <eggert@cs.ucla.edu>
30125         error: depend on stdio
30126         Problem reported by Nikos Mavrogiannopoulos in
30127         <http://lists.gnu.org/r/bug-gnulib/2013-11/msg00084.html>
30128         * modules/error (Depends-on): Add stdio.
30130 2013-11-18  Ben Pfaff  <blp@cs.stanford.edu>
30132         * doc/relocatable-maint.texi (Supporting Relocation): Improve
30133         wording.
30134         Reported by Reuben Thomas <rrt@sc3d.org>.
30136 2013-11-13  Paul Eggert  <eggert@cs.ucla.edu>
30138         * lib/getgroups.c (posix_getgroups, getgroups) [__APPLE__]:
30139         New function and macro, to work around _DARWIN_C_SOURCE problem.
30140         Reported by Jack Howarth in <http://bugs.gnu.org/14463>.
30142 2013-11-11  Pádraig Brady  <P@draigBrady.com>
30144         base64: provide a fast path for encoding well sized buffers
30145         Avoid conditionals in the base64 encoding loop,
30146         which was seen to give 60% better throughput.
30147         * lib/base64.c (base64_encode_fast): A new function to be called
30148         when we don't want to NUL terminate, and we have enough space
30149         in the output to encode the given input.
30150         (base64_encode): Call the _fast() version when appropriate.
30151         Also remove a redundant mask with 0x3F on the first encoded byte.
30153 2013-11-08  Paul Eggert  <eggert@cs.ucla.edu>
30155         extern-inline: port better to OS X 10.9
30156         * m4/extern-inline.m4: Omit serial number; this file doesn't use them.
30157         (gl_EXTERN_INLINE): Do not suppress the use of extern inline on
30158         OS X 10.9, except for g++ where the bug is still present.
30159         See <http://trac.macports.org/ticket/41033>.
30161 2013-11-08  Eric Blake  <eblake@redhat.com>
30163         fpending: fix regression on DragonFly BSD
30164         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for declaration.
30165         * lib/fpending.h (__fpending): Don't declare twice.
30166         Reported by GW in
30167         <https://lists.gnu.org/r/bug-m4/2013-11/msg00000.html>
30169 2013-11-05  Jim Meyering  <meyering@fb.com>
30171         hash: relax license to LGPLv2+, for libguestfs
30172         * modules/hash (License): Change from GPL to LGPLv2+.
30174 2013-11-03  Paul Eggert  <eggert@cs.ucla.edu>
30176         intprops: port to Oracle Studio c99
30177         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__SUNPRO_C && __STDC__]:
30178         Define to 0, to avoid diagnostics when Oracle Studio is pedantic.
30180 2013-10-31  Paul Eggert  <eggert@cs.ucla.edu>
30182         obstack: pacify HP C
30183         * lib/obstack.h (obstack_free) [!__GNUC__]: Rewrite to avoid
30184         warning "conversion from pointer to smaller integer" from HP
30185         C-ANSI-C - cc version B9007AA/B3910B A.06.26.  It's safe to assume
30186         C89 or later nowadays, so cast to void instead of int.  Privately
30187         reported by H.Merijn Brand.  Also, change header to match glibc's,
30188         to make checking against glibc easier.
30190 2013-10-29  Jim Meyering  <meyering@fb.com>
30192         maint.mk: prefer gpgv2 over gpgv
30193         * top/maint.mk (gpgv): Use gpgv2 if present, else gpgv.
30194         (gpg_key_ID): Use $(gpgv), rather than hard-coding "gpgv".
30195         Reported by Gary Vaughan.
30197 2013-10-30  Paul Eggert  <eggert@cs.ucla.edu>
30199         isnan: port to VAX
30200         Reported by John Klos for NetBSD-5/VAX in
30201         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00133.html>.
30202         * lib/isnan.c (IEEE_FLOATING_POINT): New macro, stolen from Emacs.
30203         (FUNC): Use it.
30205 2013-10-28  Jim Meyering  <meyering@fb.com>
30207         gnulib-tool: protect against CDPATH
30208         * gnulib-tool: Many "cd" built-in functions print a directory name
30209         to stdout when CDPATH is set, e.g.,
30210           $ bash -c 'CDPATH=/; cd tmp'
30211           /tmp
30212         Unset it, when possible.  Prompted by a comment from Bruce Korb.
30214         maint.mk: restore functionality removed by recent change...
30215         Sunday's change, v0.0-8062-g6b24f60, may have appeared correct from
30216         the context of a shallow-cloned gnulib repository: "git describe"
30217         would fail in such a directory.  However, that change made it so
30218         the reported gnulib revision no longer includes the version number
30219         or a commit count, even when run from a full clone.
30220         * top/maint.mk (gnulib-version): Use the full "git describe"
30221         output when possible, e.g., the form above, rather than the
30222         abbreviated, no-tag, no-commit-count string, and fall back to
30223         using a 10-byte hash, rather than the default minimal-length
30224         hash prefix, since while the minimal-length one may be fine today,
30225         it is likely not to be unique for very long.
30227 2013-10-26  Jim Meyering  <meyering@fb.com>
30229         maint.mk: fix "release" target to build _version
30230         This fixes a bug in README-release whereby following the outlined
30231         steps, one would publish a tarball whose programs would report
30232         --version output not consistent with the package version number.
30233         This bug caused grep-2.15 to produce a grep program whose
30234         --version option made it print 2.14.56-1e3d rather than 2.15.
30235         * top/maint.mk (release): Making this target build "_version"
30236         ensures that the new version number is reflected in configure.
30238 2013-10-21  Ben Pfaff  <blp@cs.stanford.edu>
30240         install-reloc: Support multi-binary installation.
30241         * build-aux/install-reloc: Support installing multiple programs in
30242         one invocation, as done by Automake starting with commit
30243         4295fe33eb23f (Multi-file install for PROGRAMS.).  From Bruno
30244         Haible <bruno@clisp.org>, archived at
30245         http://lists.debian.org/debian-bsd/2012/05/msg00032.html.
30246         Reported by Sylvain <beuc@gnu.org>.
30248 2013-10-21  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
30250         selinux-h: Really build without selinux when library is missing.
30251         * m4/selinux-selinux-h.m4: When the selinux library is missing, really
30252         continue without selinux, as already told in the warning message.
30254 2013-10-21  Jim Meyering  <meyering@fb.com>
30256         regex: also remove dependency on HAVE_WCSCOLL
30257         * lib/regex_internal.h: Remove final vestige of the wcscoll dependency.
30259 2013-10-21  Reuben Thomas  <rrt@sc3d.org>
30261         xfreopen: Fix typo. s/frepoen/freopen/
30262         * lib/xfreopen.c: Fix description.
30263         * modules/xfreopen: Likewise.
30265 2013-10-21  Jim Meyering  <meyering@fb.com>
30267         regex: don't depend on wcscoll
30268         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wcscoll.
30269         It is no longer used.
30271 2013-10-20  Jim Meyering  <meyering@fb.com>
30273         error: add the printf attribute to a static function
30274         * lib/error.c (error_tail): Add the printf attribute, to placate
30275         gcc's -Werror=suggest-attribute=format option.
30277 2013-09-30  Jim Meyering  <meyering@fb.com>
30279         fpending, obstack, strerror-override: use pure+const function attrs
30280         * lib/fpending.h (__fpending): Declare with the "pure" attribute.
30281         * lib/obstack.c (_obstack_allocated_p): Likewise.
30282         * lib/obstack.h (_obstack_memory_used): Likewise.
30283         (_obstack_memory_used): Likewise.
30284         * lib/strerror-override.h (strerror_override): Declare with
30285         the "const" attribute.
30287 2013-10-18  Eric Blake  <eblake@redhat.com>
30289         extern-inline: make safe for -Wundef usage
30290         Reported by Vladimir 'phcoder' Serbinenko in
30291         https://lists.gnu.org/r/bug-gnulib/2013-10/msg00078.html
30292         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Port to older gcc.
30294 2013-10-16  Paul Eggert  <eggert@cs.ucla.edu>
30296         mkfifo-tests, etc.: allow HP-UX 11.11 bug
30297         Problem reported by Daniel Richard G. in
30298         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00068.html>.
30299         * doc/posix-functions/mkfifo.texi (mkfifo):
30300         * doc/posix-functions/mkfifoat.texi (mkfifoat):
30301         * doc/posix-functions/mknod.texi (mknod):
30302         * doc/posix-functions/mknodat.texi (mknodat):
30303         Document the HP-UX 11.11 bug.
30304         * tests/test-mkfifo.h (test_mkfifo):
30305         Allow the HP-UX 11.11 bug.
30307 2013-10-14  Paul Eggert  <eggert@cs.ucla.edu>
30309         acl: allow cross-compilation to Gentoo
30310         Problem reported by Gabriel Marcano in
30311         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00058.html>.
30312         * m4/acl.m4 (gl_ACL_GET_FILE): When cross-compiling,
30313         test only whether it links.
30315 2013-10-13  Paul Eggert  <eggert@cs.ucla.edu>
30317         mgetgroups: remove dependency on realloc-gnu
30318         The dependency violates the comment in realloc-gnu, which
30319         says that tests can't depend on realloc-gnu; some tests depend
30320         on mgetgroups, so mgetgroups can't depend on realloc-gnu.
30321         Problem reported by Daniel Richard G. in
30322         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00056.html>.
30323         * lib/mgetgroups.c (mgetgroups): Don't call realloc (NULL, 0).
30324         * modules/mgetgroups (Depends-on): Depend on realloc-posix,
30325         not realloc-gnu.
30327 2013-10-12  Paul Eggert  <eggert@cs.ucla.edu>
30329         regex-tests: port to HP-UX 11.11
30330         Problem reported by Daniel Richard G. in
30331         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00052.html>.
30332         * modules/regex-tests (test_regex_LDADD): Add LIBTHREAD, LIB_PTHREAD.
30334 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
30336         verify: document some 'assume' pitfalls
30337         * doc/verify.texi (Compile-time Assertions):
30338         Mention that 'assume (E)' can sometimes slow things down.
30339         Use CHAR_MAX + 1, not UCHAR_MAX + 1.
30341 2013-10-10  Eric Blake  <eblake@redhat.com>
30343         strtoumax: fix typo in previous commit.
30344         * modules/strtoumax (Depends-on): Fix typo.
30345         * modules/strtoimax (Depends-on): Likewise.
30347 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
30349         strtoumax: port to Solaris 8
30350         This problem was introduced in the recent HP-UX patch.
30351         Reported by Tom G. Christensen in
30352         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00037.html>.
30353         * modules/strtoumax (Depends-on): Test HAVE_STRTOUMAX
30354         and REPLACE_STRTOUMAX rather than ac_cv_func_strtoumax.
30356 2013-10-09  Paul Eggert  <eggert@cs.ucla.edu>
30358         strtoimax, strtoumax: port to HP-UX 11.11
30359         Problem reported by Daniel Richard G. in
30360         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00023.html>.
30361         * lib/inttypes.in.h (strtoumax): Replace strtoumax if
30362         REPLACE_STRTOUMAX, thus treating it consistently with strtoimax.
30363         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Add default for
30364         REPLACE_STRTOUMAX.
30365         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX):
30366         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX):
30367         Replace the function if defined as a macro but not as a function.
30368         * modules/inttypes-incomplete (inttypes.h): Substitute
30369         REPLACE_STRTOUMAX.
30370         * modules/strtoumax (configure.ac): Replace strtoumax if
30371         REPLACE_STRTOUMAX.
30373 2013-10-08  Paul Eggert  <eggert@cs.ucla.edu>
30375         strtoimax: port to HP-UX 11.11
30376         Problem reported by Daniel Richard G.
30377         * lib/strtoimax.c (Strtoimax, Strtol, Strtoll): New macros.
30378         (strtoimax, strtol, strtoll) [UNSIGNED]: Remove, since
30379         they might clash with inttypes.h.
30381 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
30383         New module 'count-trailing-zeros'.
30384         * MODULES.html.sh: Mention it.
30385         * lib/count-trailing-zeros.c, lib/count-trailing-zeros.h:
30386         * m4/count-trailing-zeros.m4, modules/count-trailing-zeros:
30387         * modules/count-trailing-zeros-tests:
30388         * tests/test-count-trailing-zeros.c:
30389         New files.
30391         count-leading-zeros: port to MSC; support types wider than 64 bits
30392         The ideas behind the MSC port are stolen from Emacs.
30393         * lib/count-leading-zeros.h:
30394         Don't include verify.h: it's no longer needed, as types wider than
30395         64 bits are now supported.
30396         (COUNT_LEADING_ZEROS): New arg MSC_BUILTIN, for better
30397         performance with MSC.  All uses changed.  Do not assume that TYPE
30398         has at most 64 bits.
30399         (count_leading_zeros_32): Assume 0 < X < 2**32, for speed.
30400         All uses changed.  Fold the subtraction from 31 into the table.
30402         count-one-bits: port to MSC; support types wider than 64 bits
30403         The ideas behind the MSC port are stolen from Emacs.
30404         * lib/count-one-bits.c (popcount_support) [_MSC_VER]: New variable.
30405         * lib/count-one-bits.h: Include limits.h, for CHAR_BIT.
30406         Don't include verify.h: it's no longer needed, as types wider than
30407         64 bits are now supported.
30408         (COUNT_ONE_BITS_GENERIC): New macro.
30409         (popcount_supported) [_MSC_VER]: New inline function.
30410         (COUNT_ONE_BITS): Use it.  New arg MSC_BUILTIN, for better
30411         performance with MSC.  All uses changed.  Do not assume that TYPE
30412         has at most 64 bits.
30413         * modules/count-one-bits (Depends-on): Do not depend on 'verify'.
30415 2013-10-06  Andrew Borodin  <aborodin@vmail.ru>
30417         mountlist: fix resource leak with MOUNTED_INTERIX_STATVFS
30418         * lib/mountlist.c (read_file_system_list): fix leak of directory
30419         streams in case of #ifdef MOUNTED_INTERIX_STATVFS.
30421 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
30423         tests: improve diagnostic when an assertion fails
30424         * tests/macros.h (ASSERT): Report the assertion that failed.
30426 2013-10-02  Paul Eggert  <eggert@cs.ucla.edu>
30428         verify: new macro 'assume'
30429         This is taken from Emacs, and should be generally useful.
30430         * doc/verify.texi (assume): Document it.
30431         * lib/verify.h (assume): New macro.
30432         (__has_builtin): Expand to 0 if not defined.
30434 2013-09-26  Eric Blake  <eblake@redhat.com>
30436         dup2, dup3: work around another cygwin crasher
30437         * m4/dup2.m4 (gl_FUNC_DUP2): Expose the bug.
30438         * m4/dup3.m4 (gl_FUNC_DUP3): Likewise.
30439         * tests/test-dup2.c (main): Likewise.
30440         * lib/dup2.c (rpl_dup2): Use setdtablesize to avoid it.
30441         * lib/dup3.c (dup3): Likewise.
30442         * doc/posix-functions/dup2.texi (dup2): Document it.
30443         * doc/glibc-functions/dup3.texi (dup3): Likewise.
30445         getdtablesize: work around cygwin issue
30446         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Detect problem.
30447         * modules/getdtablesize (configure.ac): Build replacement.
30448         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set up a witness.
30449         * modules/unistd (Makefile.am): Expose the witness.
30450         * lib/unistd.in.h (getdtablesize): Declare replacement.
30451         * lib/getdtablesize.c (rpl_getdtablesize): Work around it.
30452         * tests/test-getdtablesize.c (main): Test it.
30453         * doc/glibc-functions/getdtablesize.texi (getdtablesize): Document it.
30455 2013-09-25  Mats Erik Andersson  <gnu@gisladisker.se>
30457         pmccabe2html: escaping of special characters
30458         Escape all '<', '>', and '&' in HTML output.
30459         * build-aux/pmccabe2html (html_fnc): Call gsub()
30460         instead of sub() to capture all '<', '>', and '&'.
30461         Neither of '<' and '>' is special in a regexp,
30462         so first arguments to gsub() are corrected. Also,
30463         in replacement strings, ampersand must be escaped.
30464         Finally, '&' must be handled first, then '<' and '>'.
30466 2013-09-24  Eric Blake  <eblake@redhat.com>
30468         manywarnings: enable nicer gcc warning messages
30469         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Older gcc requires
30470         some -f options for optimal warnings.
30472 2013-09-21  Jim Meyering  <meyering@fb.com>
30474         timespec: use the new TIMESPEC_RESOLUTION in a few more places
30475         * lib/timespec-add.c (timespec_add): Also replace 999999999
30476         with TIMESPEC_RESOLUTION - 1.
30477         * lib/timespec-sub.c (timespec_sub): Likewise.
30479 2013-09-23  Paul Eggert  <eggert@cs.ucla.edu>
30481         warnings: port --enable-gcc-warnings to Solaris Studio 12.3
30482         Problem reported by Dagobert Michelsen via Eric Blake in
30483         <http://lists.gnu.org/r/bug-gnulib/2013-09/msg00052.html>.
30484         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use AC_LINK_IFELSE,
30485         not AC_COMPILE_IFELSE.
30487 2013-09-23  Eric Blake  <eblake@redhat.com>
30489         configmake: support new --runstatedir option
30490         * m4/configmake.m4 (gl_CONFIGMAKE_PREP): Substitute runstatedir
30491         even if autoconf was too old to provide the command line option.
30492         * modules/configmake (Makefile.am): Propagate it to .h file.
30494 2013-09-22  Paul Eggert  <eggert@cs.ucla.edu>
30496         ctype, string: depend on extern-inline
30497         This is needed to complete the recent OS X fixes.
30498         Also, fix related documentation as suggested by Eric Blake.
30499         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
30500         * doc/posix-functions/isascii.texi, doc/posix-functions/iscntrl.texi:
30501         * doc/posix-functions/isdigit.texi, doc/posix-functions/isgraph.texi:
30502         * doc/posix-functions/islower.texi, doc/posix-functions/isprint.texi:
30503         * doc/posix-functions/ispunct.texi, doc/posix-functions/isspace.texi:
30504         * doc/posix-functions/isupper.texi, doc/posix-functions/isxdigit.texi:
30505         * doc/posix-functions/toascii.texi, doc/posix-functions/tolower.texi:
30506         * doc/posix-functions/toupper.texi:
30507         List the 'ctype' gnulib module.
30508         * doc/posix-functions/strcat.texi, doc/posix-functions/strcpy.texi:
30509         * doc/posix-functions/strncpy.texi:
30510         List the 'string' gnulib module.
30511         * modules/memcpy, modules/memmove, modules/memset (Depends-on):
30512         Add string.
30513         * modules/ctype, modules/string (Depends-on): Add extern-inline.
30515 2013-09-19  Pádraig Brady  <P@draigBrady.com>
30517         userspec: support optional parameters to parse_user_spec()
30518         * lib/userspec.c (parse_user_spec): If the GID param is NULL,
30519         then avoid group processing and treat the full spec as a user.
30520         (parse_with_separator): Allow the USERNAME and GROUPNAME to
30521         be optional params (NULL), in which case they're ignored.
30523 2013-09-19  Paul Eggert  <eggert@cs.ucla.edu>
30525         timespec: new function make_timespec, and new constants
30526         * lib/timespec.h: Incorporate recent changes on the Emacs trunk.
30527         (TIMESPEC_RESOLUTION, LOG10_TIMESPEC_RESOLUTION): New constants.
30528         (make_timespec): New function.
30529         * lib/dtotimespec.c (dtotimespec):
30530         * lib/timespec-add.c (timespec_add):
30531         * lib/timespec-sub.c (timespec_sub):
30532         * lib/utimens.c (validate_timespec):
30533         * lib/utimensat.c (rpl_utimensat):
30534         Use these new constants and functions.
30536         stdio: OS X port of putc_unlocked + extern inline
30537         * lib/stdio.in.h (putc_unlocked): #undef on problematic Apple platforms.
30538         * doc/posix-functions/putc_unlocked.texi:
30539         * doc/posix-functions/putchar_unlocked.texi:
30540         Document this portability problem.
30542         signal: OS X port of sigaddset etc. + extern inline
30543         * lib/signal.in.h (sigaddset, sigdelset, sigemptyset, sigfillset)
30544         (sigismember): #undef on problematic Apple platforms.
30545         * doc/posix-functions/sigaddset.texi:
30546         * doc/posix-functions/sigdelset.texi:
30547         * doc/posix-functions/sigemptyset.texi:
30548         * doc/posix-functions/sigfillset.texi:
30549         * doc/posix-functions/sigismember.texi:
30550         Document this portability problem.
30552         extern-inline: do not always suppress extern inline on OS X
30553         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Suppress the use of
30554         extern inline on Apple only if the particular compile-time
30555         configuration is known to have the problem.
30556         (_GL_EXTERN_INLINE_APPLE_BUG): New private macro, to implement this.
30557         (_GL_EXTERN_INLINE_IN_USE): New macro, intended for use by
30558         other Gnulib modules.
30560         extern-inline: document fixes for ctype and wctype macros
30561         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
30562         * doc/posix-functions/isascii.texi, doc/posix-functions/isblank.texi:
30563         * doc/posix-functions/iscntrl.texi, doc/posix-functions/isdigit.texi:
30564         * doc/posix-functions/isgraph.texi, doc/posix-functions/islower.texi:
30565         * doc/posix-functions/isprint.texi, doc/posix-functions/ispunct.texi:
30566         * doc/posix-functions/isspace.texi, doc/posix-functions/isupper.texi:
30567         * doc/posix-functions/iswalnum.texi, doc/posix-functions/iswalpha.texi:
30568         * doc/posix-functions/iswcntrl.texi, doc/posix-functions/iswctype.texi:
30569         * doc/posix-functions/iswdigit.texi, doc/posix-functions/iswgraph.texi:
30570         * doc/posix-functions/iswlower.texi, doc/posix-functions/iswprint.texi:
30571         * doc/posix-functions/iswpunct.texi, doc/posix-functions/iswspace.texi:
30572         * doc/posix-functions/iswupper.texi, doc/posix-functions/iswxdigit.texi:
30573         * doc/posix-functions/isxdigit.texi, doc/posix-functions/toascii.texi:
30574         * doc/posix-functions/memcpy.texi, doc/posix-functions/memmove.texi:
30575         * doc/posix-functions/memset.texi, doc/posix-functions/stpcpy.texi:
30576         * doc/posix-functions/stpncpy.texi, doc/posix-functions/strcat.texi:
30577         * doc/posix-functions/strcpy.texi, doc/posix-functions/strncat.texi:
30578         * doc/posix-functions/strncpy.texi:
30579         * doc/posix-functions/tolower.texi, doc/posix-functions/toupper.texi:
30580         * doc/posix-functions/towlower.texi, doc/posix-functions/towupper.texi:
30581         Document that Gnulib fixes portability problems with these
30582         functions on OS X 10.8 and earlier when called from plain inline
30583         or extern inline functions.
30585 2013-09-17  Kevin Cernekee  <cernekee@gmail.com>
30587         fflush, freadahead, fseeko: Fix for Android
30588         Suggested by Bruno Haible in:
30589         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00306.html>
30590         * lib/stdio-impl.h: Use local __sfileext definition.
30592 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>
30594         pmccabe2html: Portability to other awk versions.
30595         The functions systime() and strftime() are available
30596         in Gawk only.  Properly close two HTML-tags 'style'
30597         and 'span'.
30598         * build-aux/pmccabe2html (BEGIN): Store timing
30599         strings in EPOCH_TIME and CHRONOS_TIME.  Replace
30600         systime() in HTML_COMMENT.
30601         (html_header): Correctly close tag 'style'.
30602         (END): Replace strftime() by CHRONOS_TIME.  Close
30603         tag 'span' correctly, not as 'div'.
30605 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
30607         getgroups: statement without effect
30608         * lib/getgroups.c (rpl_getgroups) [HAVE_GETGROUPS]:
30609         Change equality conditional to expected assignment.
30611 2013-09-09  Eric Blake  <eblake@redhat.com>
30613         glob: fix compilation
30614         * lib/glob.in.h (__THROW): Fix missing line in previous commit.
30616 2013-09-07  Eric Blake  <eblake@redhat.com>
30618         glob: fix build for platforms without __THROW
30619         * lib/glob.in.h (__THROW): Add definition again.
30621 2013-09-04  Anton Ovchinnikov  <revolver112@gmail.com>  (tiny change)
30623         regex-quote: fix buffer access out of bounds
30624         http://lists.gnu.org/r/bug-gnulib/2013-09/msg00001.html
30625         * lib/regex-quote.c (regex_quote_spec_pcre):
30626         Fix typo that resulted in an out-of-bounds read.
30628 2013-09-04  Eric Blake  <eblake@redhat.com>
30630         glob: avoid -Wattribute warnings on glibc
30631         * lib/glob.c (next_brace_sub, prefix_array, collated_compare): Use
30632         __THROWNL, not __THROW, on static functions.
30633         * lib/glob.in.h (__THROW): Adjust...
30634         (__THROWNL): ...accordingly.
30636 2013-08-28  Paul Eggert  <eggert@cs.ucla.edu>
30638         headers: check that _GL_INLINE_HEADER_BEGIN is defined
30639         Suggested by Bruce Korb in:
30640         http://lists.gnu.org/r/bug-gnulib/2013-08/msg00070.html
30641         * doc/extern-inline.texi (extern inline):
30642         Suggest checking that _GL_INLINE_HEADER_BEGIN is defined.
30643         * lib/acl-internal.h, lib/argp-fmtstream.h, lib/argp.h:
30644         * lib/binary-io.h, lib/bitrotate.h, lib/count-leading-zeros.h:
30645         * lib/count-one-bits.h, lib/eealloc.h, lib/execinfo.in.h:
30646         * lib/gethrxtime.h, lib/gl_list.h, lib/gl_oset.h, lib/gl_xlist.h:
30647         * lib/gl_xoset.h, lib/gl_xsublist.h, lib/glthread/cond.h:
30648         * lib/glthread/thread.h, lib/math.in.h, lib/mbchar.h, lib/mbfile.h:
30649         * lib/mbiter.h, lib/mbuiter.h, lib/openat.h, lib/pipe-filter-aux.h:
30650         * lib/priv-set.h, lib/pthread.in.h, lib/savewd.h, lib/se-context.in.h:
30651         * lib/se-selinux.in.h, lib/sig-handler.h, lib/stat-time.h:
30652         * lib/sys_socket.in.h, lib/timespec.h, lib/u64.h, lib/unistd.in.h:
30653         * lib/utimens.h, lib/wctype.in.h, lib/xalloc.h, lib/xsize.h:
30654         * lib/xtime.h:
30655         Check that _GL_INLINE_HEADER_BEGIN is defined.
30657 2013-08-29  Pádraig Brady  <P@draigBrady.com>
30659         bootstrap: remove the --version requirement from ancillary tools
30660         * build-aux/bootstrap (check_exists): A new refactored function to
30661         determine if a command exists.
30662         (find_tool): Use the new function which does not require the
30663         --version option to be supported.
30664         (check_versions): Use the new function.
30666 2013-08-26  Simon Josefsson  <simon@josefsson.org>
30668         gc: support HMAC-SHA256 and HMAC-SHA512.
30669         * lib/gc.h: Add gc_hmac_sha256 and gc_hmac_sha512.
30670         * lib/gc-libgcrypt.c (gc_hmac_sha256, gc_hmac_sha512): New
30671         functions.
30672         (gc_hmac_md5): Use symbolic constant.
30673         * lib/gc-gnulib.c: Include hmac.h for HMAC-SHA256/512 too.
30674         (gc_hmac_sha256, gc_hmac_sha512): New functions.
30675         * lib/hmac.h: Add hmac_sha256 and hmac_sha512 prototypes.
30676         * m4/sha256.m4: Protect against empty expansion.
30677         * m4/sha512.m4: Likewise.
30678         * lib/hmac-sha256.c: New file.
30679         * lib/hmac-sha512.c: Likewise.
30680         * m4/gc-hmac-sha256.m4: Likewise.
30681         * m4/gc-hmac-sha512.m4: Likewise.
30682         * m4/gc-sha256.m4: Likewise.
30683         * m4/gc-sha512.m4: Likewise.
30684         * modules/crypto/gc-hmac-sha256: Likewise.
30685         * modules/crypto/gc-hmac-sha256-tests: Likewise.
30686         * modules/crypto/gc-hmac-sha512: Likewise.
30687         * modules/crypto/gc-hmac-sha512-tests: Likewise.
30688         * modules/crypto/hmac-sha256: Likewise.
30689         * modules/crypto/hmac-sha256-tests: Likewise.
30690         * modules/crypto/hmac-sha512: Likewise.
30691         * modules/crypto/hmac-sha512-tests: Likewise.
30692         * tests/test-gc-hmac-sha256.c: Likewise.
30693         * tests/test-gc-hmac-sha512.c: Likewise
30694         * tests/test-hmac-sha256.c: Likewise.
30695         * tests/test-hmac-sha512.c: Likewise
30697 2013-08-24  Daiki Ueno  <ueno@gnu.org>
30699         * m4/intl.m4: Update from gettext-0.18.3.1, which fixes a misuse
30700         of AC_CHECK_DECLS.
30702 2013-08-23  Paul Eggert  <eggert@cs.ucla.edu>
30704         selinux-at: omit unnecessary include
30705         * lib/selinux-at.c: Don't include dosname.h; not needed, since
30706         this source file doesn't use its macros, and subsidiary files that
30707         use the macros already include it.
30709 2013-08-21  Eric Blake  <eblake@redhat.com>
30711         d-ino: avoid false negative on symlink
30712         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use lstat.
30713         Reported by Stephane Chazelas.
30715 2013-08-12  Mike Miller  <mtmiller@ieee.org>  (tiny change)
30717         bootstrap: port to OpenBSD sed
30718         * build-aux/bootstrap (insert_if_absent): Port to OpenBSD sed which
30719         does not interpret `-' as a file argument to mean stdin.
30721 2013-08-15  Eric Blake  <eblake@redhat.com>
30723         warnings: minor optimization
30724         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use fewer processes.
30726         warnings: check -Wfoo rather than -Wno-foo
30727         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): If name begins with
30728         -Wno-, test if the compiler recognizes the positive form instead.
30730 2013-08-15  Karl Berry  <karl@gnu.org>
30732         * config/srclist-update: add option "doclicense" to placate
30733         pulling *.texi files from Emacs.  Write terse usage
30734         documentation at the top.
30736 2013-08-13  Paul Eggert  <eggert@cs.ucla.edu>
30738         xvasprintf-tests: port to GCC with hardening flags
30739         * tests/test-xvasprintf.c (test_xasprintf): Pass another arg to
30740         xasprintf, to pacify GCC.  Reported by Santiago Vila in:
30741         http://lists.gnu.org/r/bug-diffutils/2013-08/msg00002.html
30743 2013-08-11  Paul Eggert  <eggert@cs.ucla.edu>
30745         fpending: port to recent Cygwin change to stdio_ext.h
30746         Reported by LRN in
30747         <http://lists.gnu.org/r/bug-gnulib/2013-08/msg00028.html>.
30748         * lib/fpending.h: Don't worry about HAVE_DECL___FPENDING;
30749         just declare __fpending unless it's a macro.
30750         A duplicate decl shouldn't hurt.
30751         * m4/fpending.m4 (gl_FUNC_FPENDING): Check that an __fpending
30752         call compiles and links, instead of separately checking for
30753         decl and lib function.
30754         * modules/fpending (configure-ac):
30755         Adjust to fpending.m4's renaming of shell variable.
30757 2013-08-10  Paul Eggert  <eggert@cs.ucla.edu>
30759         sys_time: port to OpenBSD
30760         * lib/sys_time.in.h: Simply delegate to the system's header
30761         in the BSDish cases as well.  Problem reported by Mike Miller in
30762         <http://lists.gnu.org/r/bug-gnulib/2013-08/msg00016.html>.
30763         * tests/test-sys_select.c, tests/test-sys_time.c (verify_tv_sec_type):
30764         Allow platforms like 64-bit OpenBSD where timeval's tv_sec is
30765         wider than time_t.
30767 2013-08-09  Pádraig Brady  <P@draigBrady.com>
30769         bootstrap: support checksum utils having -c but not --status
30770         * build-aux/bootstrap: Only look for sha1sum if updating po files.
30771         Add sha1 to the list of supported checksum utils since it's now
30772         supported through adjustments below.
30773         (update_po_files): Remove the use of --status
30774         in a way that will suppress all error messages, but since this is
30775         only used to minimize updates, it shouldn't cause an issue.
30776         Exit early if there is a problem updating the po file checksums.
30777         (find_tool): Remove the check for --version support as this
30778         is optional as per commit 86186b17.  Don't even check for the
30779         presence of the command as if that is needed, it's supported
30780         through configuring prerequisites in bootstrap.conf.
30781         Prompt that when a tool isn't found, one can define an environment
30782         variable to add to the hardcoded search list.
30784 2013-08-05  Jim Meyering  <meyering@fb.com>
30786         regex: port to non-glibc/lock-using systems
30787         Since 29-05-2013 commit, 55ba71f4, compilation on a non-glibc
30788         system with GNULIB_LOCK would fail due to absence of the
30789         included "glthread/lock.h".  This would affect any package
30790         for which the "lock" module is used only by the regex module,
30791         and not explicitly used.
30792         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_GLIBC21.
30793         * modules/regex (Depends-on) [!GLIBC && $ac_use_included_regex]:
30794         Add a dependency on the "lock" module.
30796 2013-07-20  Daiki Ueno  <ueno@gnu.org>
30798         localecharset: make locale_charset thread-safe on Mac OS X
30799         * lib/localcharset.c (locale_charset) [DARWIN7]: Use MB_CUR_MAX_L
30800         instead of MB_CUR_MAX.
30802 2013-07-20  Daiki Ueno  <ueno@gnu.org>
30804         gettext: update to version 0.18.3
30805         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.3.  In particular,
30806         require AC_PROG_SED to allow user to specify custom sed command when
30807         generating en@quot PO file.
30809 2013-07-18  Werner Lemberg  <wl@gnu.org>  (tiny change)
30811         bootstrap: use correct source when copying build-aux files
30812         * build-aux/bootstrap (gnulib_extra_files): This variable is
30813         relative to upstream gnulib layout, not downstream.
30815 2013-07-17  Paul Eggert  <eggert@cs.ucla.edu>
30817         tmpdir: fix bug in VMS port
30818         * lib/tmpdir.c (path_search) [__VMS]: Never add slash.
30819         See Steven M. Schweda in
30820         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00026.html>.
30822 2013-07-15  Paul Eggert  <eggert@cs.ucla.edu>
30824         tmpdir: port to VMS, to // != /, and to long dirs
30825         * lib/tmpdir.c (__libc_secure_getenv) [!_LIBC]: Rename from
30826         __secure_getenv, so that we're more like the glibc version.
30827         All uses changed.
30828         (path_search): Don't put slash after directory if __VMS.
30829         Problem reported by Steven M. Schweda in
30830         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00019.html>.
30831         Simplify code to add slash; no need for a loop.
30832         Do not remove trailing slash from "//".
30833         Do not assume dlen <= INT_MAX.
30835 2013-07-09  Paul Eggert  <eggert@cs.ucla.edu>
30837         regex: port to --with-included-regex --enable-gcc-warnings non-threaded
30838         * lib/regex_internal.h (lock_fini, lock_lock): Rework to avoid
30839         gcc warnings in the non-threaded case.  Reported by Charlie Brown in
30840         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00015.html>.
30842         accept4, dup3, pipe2: port to Cygwin
30843         Problem reported for Emacs by Ken Brown in <http://bugs.gnu.org/14821>.
30844         * lib/accept4.c (accept4) [O_BINARY]:
30845         * lib/dup3.c (dup3) [O_BINARY]:
30846         * lib/pipe2.c (pipe2) [O_BINARY]:
30847         Use set_binary_mode, not setmode.
30848         * lib/pipe2.c [!GNULIB_BINARY_IO]: Include binary-io.h.
30849         * modules/binary-io (Depends-on): Remove module indicator.
30850         These last two bits undo the previous change to pipe2 and binary-io.
30852 2013-07-09  Pádraig Brady  <P@draigBrady.com>
30854         mountlist: add support for deallocating returned list entries
30855         * lib/mountlist.c (free_mount_entry): A new exported function
30856         to deallocate a mount list entry.
30857         (read_file_system_list): Refactor to use the new deallocation function.
30858         Suggested by Anton Ovchinnikov.
30860 2013-07-07  Paul Eggert  <eggert@cs.ucla.edu>
30862         stdalign, verify: port to FreeBSD 9.1, to C11, and to C++11
30863         Problem reported by Ulrich Mueller in <http://bugs.gnu.org/14812>.
30864         * lib/stdalign.in.h (_Alignas, _Alignof):
30865         Port to FreeBSD 9.1, and to C11 and C++11.
30866         (_Alignas): Also support ICC.
30867         * lib/verify.h (_Static_assert): Undef if <stddef.h> defines it.
30868         * m4/stdalign.m4 (gl_STDALIGN_H): Port to ICC and to C++11.
30870 2013-07-06  Paul Eggert  <eggert@cs.ucla.edu>
30872         fnmatch: don't goto over declaration
30873         * lib/fnmatch_loop.c (FCT): Hoist local up one level, to avoid
30874         undefined behavior for goto over a declaration.
30875         Problem reported by Charlie Brown in
30876         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00009.html>.
30878         pipe2: decouple from binary-io a bit
30879         This is for Emacs, which needs pipe2 but not binary-io.
30880         * lib/pipe2.c [!GNULIB_BINARY_IO]: Don't include binary-io.h.
30881         * modules/binary-io (Depends-on): Add module indicator.
30883 2013-07-03  Eric Blake  <eblake@redhat.com>
30885         mgetgroups: relax license to LGPLv2+
30886         * modules/getugroups (License): Change from GPLv3+.
30887         * modules/mgetgroups (License): Likewise.
30888         * modules/getgroups (License): Change from LGPLv3+.
30890         xalloc-oversized: relax license to LGPLv2+
30891         * modules/xalloc-oversized (License): Change from GPLv3+.
30893         nproc: relax license to LGPLv2+
30894         * modules/nproc (License): Change from LGPLv3+.
30896         bootstrap: honor --no-git
30897         * build-aux/bootstrap: Don't even try to use git when user is
30898         pointing to a static checkout.
30900 2013-06-23  Paul Eggert  <eggert@cs.ucla.edu>
30902         ignore-value: port to gcc -pedantic
30903         * lib/ignore-value.h (ignore_value):
30904         Port to gcc -pedantic, by using __extension__.
30905         Reindent as per usual gnulib style nowadays.
30906         Simplify GCC version check.
30908 2013-06-21  Paul Eggert  <eggert@cs.ucla.edu>
30910         extern-inline: port to gcc -std=c89
30911         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
30912         Do not use __gnu_inline__ if pedantic and pre-C99.
30914 2013-06-18  Paul Eggert  <eggert@cs.ucla.edu>
30916         doc: document extern-inline
30917         * doc/extern-inline.texi: New file.
30918         * doc/gnulib.texi (alloca-opt): Include it.
30919         * m4/extern-inline.m4: Move some comments to documentation,
30920         and others closer to what they describe.
30922         doc: chatter less
30923         * doc/Makefile (NEWEST_GNULIB_TEXI_FILE): New macro.
30924         (updated-stamp): Use it.  This causes 'make' to output just
30925         one file name rather than zillions.
30927         fflush, fseeko: port to musl cross-compiles
30928         * lib/fseeko.c (fseeko): Assume that fflushing stdin works if
30929         on some implementation that (1) is not known to be buggy,
30930         (2) claims conformance to POSIX.1-2008 or later, and (3) is being
30931         cross-compiled to so we can't easily check for lack of
30932         conformance.  This is for cross-compiling to musl.
30933         Reported by Rich Felker in
30934         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00043.html>.
30935         * m4/fclose.m4 (gl_FUNC_FCLOSE):
30936         * m4/fflush.m4 (gl_FUNC_FFLUSH):
30937         * m4/fseeko.m4 (gl_FUNC_FSEEKO):
30938         Adjust to above change.
30939         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Set gl_cv_func_fflush_stdin
30940         to 'cross', not to 'no', when cross-compiling.  AC_DEFINE
30941         FUNC_FFLUSH_STDIN to 1, 0, -1 if fflushing stdin is known to work,
30942         known not to work, or unknown.
30944 2013-06-15  Paul Eggert  <eggert@cs.ucla.edu>
30946         msvc-inval: port to mingw-w64
30947         * lib/msvc-inval.c (gl_msvc_invalid_parameter_handler):
30948         Use __cdecl, not cdecl, for mingw-w64.  Reported by LRN in
30949         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00039.html>.
30951 2013-06-11  Paul Eggert  <eggert@cs.ucla.edu>
30953         getcwd-lgpl: port to Tru64
30954         * lib/getcwd-lgpl.c: Include <stdlib.h>, for malloc etc.
30955         Problem reported by Steven M. Schweda in
30956         <http://lists.gnu.org/r/bug-gzip/2013-06/msg00010.html>.
30958         tests: port large-fd POSIX spawn tests to OS X
30959         Problem reported by Daiki Ueno in
30960         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00031.html>.
30961         * tests/test-posix_spawn_file_actions_addclose.c:
30962         * tests/test-posix_spawn_file_actions_adddup2.c:
30963         * tests/test-posix_spawn_file_actions_addopen.c:
30964         Include <limits.h>, for OPEN_MAX, if available.
30965         (big_fd): New static function.
30966         (main): Use it.
30968 2013-06-04  Bernhard Voelker  <mail@bernhard-voelker.de>
30970         tests/nap.h: use an adaptive delay to avoid ctime update issues
30971         The recent change in nap.h (5191133e) decreased the probability of lost
30972         races to about a third, however such problems could still be observed
30973         in virtual machines and openSUSE's OBS.
30974         Before, nap() detected the needed time once empirically and then used
30975         that delay (together with a small correction multiplier) in further
30976         calls.  This problem has been reported and discussed several times,
30977         including guesses about possible kernel issues:
30978         https://lists.gnu.org/r/bug-gnulib/2013-04/msg00071.html
30979         http://lists.gnu.org/r/coreutils/2012-03/msg00088.html
30980         https://lists.gnu.org/r/bug-gnulib/2011-11/msg00226.html
30981         http://bugs.gnu.org/12820
30982         https://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html
30983         https://lists.gnu.org/r/bug-gnulib/2009-11/msg00007.html
30984         Now, nap() avoids the race alltogether by verifying on a reference
30985         file whether a timestamp difference has happened.
30986         * tests/nap.h (nap_fd): Define file descriptor variable for the
30987         witness file.
30988         (nap_works): Change return value to bool.  Change passing
30989         the old file's status by value instead of by reference as this function
30990         does no longer update that timestamp; rename the function argument from
30991         st to old_st.  Remove the local variables cdiff and mdiff because that
30992         function now returns true/false instead of the precise delay.
30993         (guess_delay): Remove function.
30994         (clear_tmp_file): Add new function to close and unlink the witness file.
30995         (nap): Instead of re-using the delay which has been calculated during
30996         the first call, avoid the race by actually verifying that a timestamp
30997         difference can be observed on the current file system.  Use an adaptive
30998         approach for the delay to minimize execution time.  Assert that the
30999         maximum delay is <= ~2 seconds, more precisely sum(2^n) from 0 to 30
31000         = 2^31 - 1 = 2.1s.
31001         Use atexit to call clear_tmp_file when the process terminates.
31003 2013-06-02  Paul Eggert  <eggert@cs.ucla.edu>
31005         sig2str: port to C++
31006         * lib/sig2str.h (sig2str, str2sig): Declare as extern "C".
31007         Reported by Daniel J Sebald in
31008         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00000.html>.
31010 2013-05-30  Eric Blake  <eblake@redhat.com>
31012         docs: mention cygwin shortcoming in <sys/un.h>
31013         * doc/posix-headers/sys_un.texi (sys/un.h): Mention problem.
31015         vasnprintf: silence mingw compiler warning
31016         * lib/vasnprintf.c (VASNPRINTF): Avoid unused variable warning.
31018 2013-05-29  Paul Eggert  <eggert@cs.ucla.edu>
31020         c-ctype, regex, verify: port to gcc -std=c90 -pedantic
31021         Avoid constructions that are rejected by gcc -std=c90 -pedantic.
31022         This fixes a porting bug I recently reintroduced in regex, and
31023         some other instances that I discovered while testing the fix.
31024         * lib/c-ctype.h [__STRICT_ANSI__]: Avoid ({ ... }).
31025         * lib/regcomp.c (utf8_sb_map) [__STRICT_ANSI__]: Avoid [0 ... N] = E.
31026         * lib/regex_internal.h [!_LIBC && GNULIB_LOCK]: Do not use a macro
31027         with an empty argument if this is a pedantic pre-C99 GCC.
31028         * lib/verify.h: Do not use _Static_assert if this is a pedantic
31029         pre-C11 GCC.
31031         regex: adapt to locking regime instead of depending on pthread
31032         Instead of depending on pthread, adapt to whatever thread
31033         modules are in use.  Problem reported by Ludovic Courtès in
31034         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00082.html>
31035         and by Mats Erik Andersson in
31036         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00100.html>.
31037         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
31038         Support either the 'lock' module, or the 'pthread' module, or
31039         no module.
31040         (lock_lock, lock_unlock): New macros.
31041         * lib/regexec.c (regexec, re_search_stub): Use the new macros.
31042         * modules/lock, modules/pthread (configure.ac): Add module indicator.
31043         * modules/regex (Depends-on): Remove pthread.
31045 2013-05-22  Eric Blake  <eblake@redhat.com>
31047         getgroups: document portability issues
31048         * doc/glibc-functions/initgroups.texi (initgroups): Mention
31049         multithread safety.
31050         * doc/posix-functions/getpwuid.texi (getpwuid): Likewise.
31051         * doc/posix-functions/getpwuid_r.texi (getpwuid_r): Likewise.
31052         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Mention
31053         getugroups.
31054         * doc/posix-functions/getgroups.texi (getgroups): Mention
31055         multithread safety and mgetgroups.
31057 2013-05-22  Bernhard Voelker  <mail@bernhard-voelker.de>
31059         test-lchown, test-chown: also skip test if chown fails with EPERM
31060         * tests/test-lchown.h (test_lchown): Add EPERM to the condition to
31061         skip this test, to handle FAT file systems.
31062         * tests/test-chown.h (test_chown): Likewise.
31064 2013-05-19  Paul Eggert  <eggert@cs.ucla.edu>
31066         regex: fix dfa race in multithreaded uses
31067         Problem reported by Ludovic Courtès in
31068         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00058.html>.
31069         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
31070         New macros.  All uses of __libc_lock_define, __libc_lock_init
31071         changed to use the first two of these.
31072         (__libc_lock_lock, __libc_lock_unlock): New macros, for
31073         non-glibc platforms.
31074         (struct re_dfa_t): Define the lock unconditionally.
31075         * lib/regexec.c (regexec, re_search_stub): Remove some now-incorrect
31076         '#ifdef _LIBC"s.
31077         * modules/regex (Depends-on): Add pthread, if we use the
31078         included regex.
31080         * lib/regcomp.c: Do actions that are not needed for glibc,
31081         but may be needed elsewhere.
31082         (regfree, re_compile_internal): Destroy the lock.
31083         (re_compile_internal): Check for lock-initialization failure.
31085         malloca: port to compilers that reject size-zero arrays
31086         This fixes a bug introduced in my previous patch.
31087         * lib/malloca.c (struct preliminary_header): Use an int
31088         rather than a character array of size int; that's simpler.
31089         (struct header): Remove, replacing with ...
31090         (union header): New type.  This avoids the need for declaring a
31091         character array of size zero, which is not allowed on some platforms.
31092         All uses changed.
31094 2013-05-18  Paul Eggert  <eggert@cs.ucla.edu>
31096         parse-datetime, tests: don't use "string" + int
31097         Recent versions of 'clang' complain about C source code that
31098         uses expressions of the form '"string literal" + integer',
31099         I guess on the theory that it's confusing for readers who are
31100         used to C++.  On those grounds I suppose it's OK to make this
31101         minor style change.
31102         * lib/parse-datetime.y (parse_datetime):
31103         * tests/test-fchdir.c (main):
31104         * tests/test-snprintf-posix.h (test_function):
31105         * tests/test-snprintf.c (main):
31106         * tests/test-vasnprintf-posix.c (test_function):
31107         * tests/test-vasnprintf.c (test_function):
31108         * tests/test-vsnprintf.c (main):
31109         * tests/unistdio/test-ulc-asnprintf1.h (test_function):
31110         Rewrite '"str" + E' to '&"str"[E]'.
31112 2013-05-17  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
31114         argmatch: port to C++
31115         * lib/argmatch.h [__cplusplus]: Add extern "C".
31117         argp: typo fix
31118         * lib/argp-help.c: Typo in comment.
31120 2013-05-15  Paul Eggert  <eggert@cs.ucla.edu>
31122         manywarnings: update for GCC 4.8.0
31123         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
31124         Add -Waggressive-loop-optimizations, -Wreturn-local-addr, which
31125         are new to GCC 4.8.  Remove -Wformat=2, -Wmissing-format-attribute,
31126         -Wmissing-noreturn, as they are duplicates of other warnings.
31127         Remove -Wunreachable-code, as it is removed in GCC 4.8 and
31128         was documented to be flaky in earlier versions of GCC.
31130         spawn-tests, sys_socket-tests, sys_wait-tests: port to clang
31131         * tests/test-spawn.c (main):
31132         * tests/test-sys_socket.c (main):
31133         * tests/test-sys_wait.c (main):
31134         Don't have a switch value that isn't covered by a case.
31136         getaddrinfo-tests: port --enable-gcc-warnings to clang
31137         * tests/test-getaddrinfo.c (simple):
31138         Avoid casts from looser to stricter-aligned pointers.
31140         thread: port --enable-gcc-warnings to clang
31141         * lib/glthread/thread.h [__clang__ && USE_POSIX_THREADS_WEAK]:
31142         Include <signal.h>, to pacify a warning about pthread_sigmask.
31144         stdio: use __REDIRECT for fwrite, fwrite_unlocked
31145         * lib/stdio.in.h (fwrite):
31146         When working around bug 11959, use __REDIRECT rather than '#define
31147         fwrite(...) ... fwrite (...) ...'.  This is a more-targeted way to
31148         fix the -Wunused-value issue with clang, and it works with GCC too.
31149         Problem with targeting reported by Eric Blake in
31150         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00067.html>.
31151         (fwrite_unlocked): Treat like fwrite.  I ran into this issue while
31152         debugging the fwrite issue.
31154         stdio: port --enable-gcc-warnings to clang
31155         * lib/stdio.in.h (fwrite) [__clang__]: Ignore -Wunused-value entirely,
31156         since the GCC workaround for fwrite does not pacify clang.
31158         sig2str: port --enable-gcc-warnings to clang
31159         * lib/sig2str.c (sig2str): Avoid warning about unused printf argument.
31161         obstack: port --enable-gcc-warnings to clang
31162         * lib/obstack.h (obstack_ptr_grow_fast, obstack_int_grow_fast):
31163         Avoid casts from looser to stricter-aligned pointers.
31165         memchr2: port --enable-gcc-warnings to clang
31166         * lib/memchr2.c (memchr2):
31167         Avoid casts from looser to stricter-aligned pointers.
31169         mbsstr: port --enable-gcc-warnings to clang
31170         * lib/mbsstr.c (knuth_morris_pratt_multibyte):
31171         Avoid casts from looser to stricter-aligned pointers.
31173         malloca: port --enable-gcc-warnings to clang
31174         * lib/malloca.c (struct header): New member 'magic', to avoid casts.
31175         (mmalloca): Avoid casts from looser to stricter-aligned pointers.
31177         inttostr: port --enable-gcc-warnings to clang
31178         * lib/anytostr.c [__clang__]: Ignore -Wtautological-compare.
31180         warnings: port to clang
31181         Problem reported by Daniel P. Berrange via Eric Blake in
31182         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00055.html>.
31183         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS): New macro.
31184         (gl_WARN_ADD): Use it.
31186 2013-05-11  Jim Meyering  <meyering@fb.com>
31188         quotearg: do not read beyond end of buffer
31189         * lib/quotearg.c (quotearg_buffer_restyled): Do not read beyond the
31190         end of an ARG for which no length was specified.  With an N-byte
31191         quote string, (e.g., N is 3 in the fr_FR.UTF-8 locale), this function
31192         would read N-2 bytes beyond ARG's trailing NUL.  This was triggered
31193         via coreutils' misc/sort-debug-keys.sh test and detected by running
31194         the test against a binary compiled with gcc-4.8.0's -fsanitize=address.
31195         * tests/test-quotearg-simple.c (main): Add a test to trigger the bug.
31196         * modules/quotearg-simple-tests (Files): Add tests/zerosize-ptr.h.
31197         Introduced via the 2000-01-15 commit, c4b7f3f8, "Quote multibyte
31198         characters correctly."
31200 2013-05-11  Daiki Ueno  <ueno@gnu.org>
31202         lock: work around pthread recursive mutexes bug in Mac OS X 10.6
31203         * m4/lock.m4: Don't define HAVE_PTHREAD_MUTEX_RECURSIVE if the
31204         compilation target is Mac OS X 10.6.
31205         Problem reported by parafin and Andoni Morales in
31206         <http://savannah.gnu.org/bugs/?37844> and
31207         <http://lists.gnu.org/r/bug-gettext/2013-05/msg00007.html>.
31209 2013-05-11  Paul Eggert  <eggert@cs.ucla.edu>
31211         mkdir-p: remove assumptions about umask and mode
31212         * lib/mkdir-p.c (make_dir_parents): Do not assume that the current
31213         umask is 0, or that MODE is a subset of MODE_BITS.
31215 2013-05-10  Eric Blake  <eblake@redhat.com>
31217         maint.mk: catch more abuse of HAVE_DECL in syntax-check
31218         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Relax regex.
31220 2013-05-10  Stefano Lattarini  <stefano.lattarini@gmail.com>
31222         deps: require Automake >= 1.9.6 in generated Makefile fragments
31224         That is the same minimal version required in the DEPENDENCIES file.
31225         Moreover, the old code generated a requirement of Automake >= 1.5,
31226         and that is an insanely outdated version.
31228         * gnulib-tool: Bump minimal version requirement in AUTOMAKE_OPTIONS.
31229         * tests/havelib/rpathlx/Makefile.am: Likewise.
31230         * tests/havelib/rpathly/Makefile.am: Likewise.
31231         * tests/havelib/rpathlyx/Makefile.am: Likewise.
31232         * tests/havelib/rpathlz/Makefile.am: Likewise.
31233         * tests/havelib/rpathlzyx/Makefile.am: Likewise.
31234         * tests/havelib/rpathx/Makefile.am: Likewise.
31235         * tests/havelib/rpathy/Makefile.am: Likewise.
31236         * tests/havelib/rpathz/Makefile.am: Likewise.
31238 2013-05-08  Eric Blake  <eblake@redhat.com>
31240         bootstrap: AC_INIT may have more than four parameters
31241         * build-aux/bootstrap (extract_package_name): Correctly extract
31242         non-empty tarname field.  Avoid range in regex.
31243         Based on a report by Sami Kerola <kerolasa@iki.fi>.
31245 2013-05-07  Paul Eggert  <eggert@cs.ucla.edu>
31247         qacl: port to MS-Windows port of GNU Emacs
31248         * lib/acl-errno-valid.c (acl_errno_valid) [ENOTSUP == ENOSYS]:
31249         Omit the duplicate ENOTSUP case.  Needed for the MS-Windows
31250         port of GNU Emacs.  Problem reported by Eli Zaretskii in
31251         <http://bugs.gnu.org/14295#14>.
31253 2013-05-07  Mike Frysinger  <vapier@gentoo.org>
31255         acl: include quote.h
31256         * lib/copy-acl.c: Include quote.h.
31257         * lib/set-acl.c: Likewise.
31259 2013-05-06  Mike Frysinger  <vapier@gentoo.org>
31261         fchownat, renameat, unlinkat: update statat dependencies
31262         These modules use statat and lstatat, not fstatat; so depend on
31263         the statat module, which was split out recently from fstatat.
31264         * modules/fchownat, modules/unlinkat: Change fstatat to statat.
31265         * modules/renameat: Likewise.  Also delete fstat.
31266         URL: http://bugs.gentoo.org/468790
31268 2013-05-04  Stefano Lattarini  <stefano.lattarini@gmail.com>
31270         Assume gnulib is checked out from Git, not CVS
31272         In fact, access to the gnulib repository through CVS has been
31273         disabled, or more precisely, got broken and was never restored; see:
31274         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00008.html>
31276         Note that support for CVS is not removed completely and unthinkingly
31277         by this change: only support for CVS checkouts of gnulib itself is
31278         removed.  For example, the 'bootstrap' script still cater to .cvsingore
31279         files and CVS directories, for the benefit of those poor gnulib clients
31280         still stuck with CVS.  Ditto for the 'gnulib-tool' script itself.
31282         * gnulib-tool: Simplify accordingly.
31283         * posix-modules: Likewise.
31284         * MODULES.html.sh: Likewise.
31285         * doc/gnulib.texi: No longer mention the decommissioned CVS gnulib
31286         repository.
31287         * doc/gnulib-intro.texi: Likewise.
31288         * doc/gnulib-readme.texi: Likewise.
31289         * doc/gnulib-tool.texi: In the examples and explanations, refer to a
31290         sample '.gitignore' file rather than a sample '.cvsignore'.
31291         * NEWS: Update.
31292         * m4/extensions.m4: While at it, remove a comment mistakenly referring
31293         to "CVS Autoconf" rather than "git Autoconf".
31295 2013-04-30  Paul Eggert  <eggert@cs.ucla.edu>
31297         utimensat-tests, etc.: try to fix some races
31298         Problem reported by Bernhard Voelker in
31299         <http://lists.gnu.org/r/bug-gnulib/2013-04/msg00071.html>.
31300         I don't know whether this patch fixes that race condition, but it
31301         fixes *some* race conditions, so it should be a win.
31302         * modules/chown-tests (Depends-on):
31303         * modules/fchownat-tests (Depends-on):
31304         * modules/fdutimensat-tests (Depends-on):
31305         * modules/futimens-tests (Depends-on):
31306         * modules/lchown-tests (Depends-on):
31307         * modules/stat-time-tests (Depends-on):
31308         * modules/utimens-tests (Depends-on):
31309         * modules/utimensat-tests (Depends-on):
31310         Depend on nanosleep, not usleep.
31311         * modules/chown-tests (test_chown_LDADD):
31312         * modules/lchown-tests (test_lchown_LDADD):
31313         * modules/stat-time-tests (test_stat_time_LDADD):
31314         New macro.
31315         * modules/fchownat-tests (test_fchownat_LDADD):
31316         * modules/fdutimensat-tests (test_fdutimensat_LDADD):
31317         * modules/futimens-tests (test_futimens_LDADD):
31318         * modules/utimens-tests (test_utimens_LDADD):
31319         * modules/utimensat-tests (test_utimensat_LDADD):
31320         Add $(LIB_NANOSLEEP).
31321         * modules/stat-time-tests (Files): Add tests/nap.h.
31322         * tests/nap.h: Include <limits.h>, for INT_MAX.
31323         (lt_mtime): Remove.
31324         (diff_timespec): New function.
31325         (get_stat): Rename from get_mtime.  All callers changed.
31326         (nap_works): Determine the needed delay by inspecting the
31327         file system's timestamp jumps; this should be more reliable.
31328         Look at both mtime and ctime, and take the maximum of the two jumps.
31329         (nap_works, guess_delay):
31330         Return a nanosecond count, not a microsecond count.
31331         All callers changed.
31332         (nap_works, nap): Use nanosleep, not usleep.  Check for nanosleep
31333         failure.
31334         (nap): Multiply the guess by 1.125, to accommodate the case where
31335         the file system's clock is a bit slower than nanosleep's clock.
31336         * tests/test-stat-time.c (BASE): New macro.
31337         Include nap.h.
31338         (nap): Remove; nap.h now defines this.  This removes a duplicate
31339         implementation of 'nap'.
31341         utimens, utimensat: work around Solaris UTIME_OMIT bug
31342         Solaris 11.1 and Solaris 10 have the same UTIME_OMIT bug that
31343         Linux kernel 2.6.32 does.  Work around it in the same way.
31344         * doc/posix-functions/futimens.texi (futimens):
31345         * doc/posix-functions/utimensat.texi (utimensat): Document the bug.
31346         * lib/utimens.c (fdutimens, lutimens):
31347         * lib/utimensat.c (rpl_utimensat): Work around the bug.
31349         gettext: now it's your responsibility to add -I$(top_builddir)/intl
31350         Formerly, it was your responsibility to do this for all Makefile.ams
31351         other than Gnulib's.  Now it's your responsibility to do it for
31352         Gnulib's Makefile.am, too.
31353         * NEWS: Document this.
31354         * modules/gettext (AM_CPPFLAGS): Don't append -$(top_builddir)/intl.
31356         acl: include errno.h to get errno
31357         Reported by Daiki Ueno in
31358         <http://lists.gnu.org/r/bug-gnulib/2013-04/msg00073.html>.
31359         * lib/copy-acl.c, lib/set-acl.c: Include errno.h.
31361 2013-04-29  Paul Eggert  <eggert@cs.ucla.edu>
31363         tests: don't assume getdtablesize () <= 10000000
31364         * modules/cloexec-tests:
31365         * modules/dup2-tests:
31366         * modules/dup3-tests:
31367         * modules/nonblocking-tests:
31368         * modules/posix_spawn_file_actions_addclose-tests:
31369         * modules/posix_spawn_file_actions_adddup2-tests:
31370         * modules/posix_spawn_file_actions_addopen-tests:
31371         * modules/unistd-safer-tests:
31372         Depend on the getdtablesize module.
31373         * tests/test-cloexec.c:
31374         * tests/test-dup-safer.c:
31375         * tests/test-dup2.c:
31376         * tests/test-dup3.c:
31377         * tests/test-fcntl.c:
31378         * tests/test-nonblocking.c:
31379         * tests/test-posix_spawn_file_actions_addclose.c:
31380         * tests/test-posix_spawn_file_actions_adddup2.c:
31381         * tests/test-posix_spawn_file_actions_addopen.c:
31382         Don't assume getdtablesize () <= 10000000.
31384 2013-04-28  Paul Eggert  <eggert@cs.ucla.edu>
31386         extern-inline: work around bug in Sun c99
31387         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
31388         Work around bug in Sun C 5.12 c99's implementation of 'inline'.
31390 2013-04-27  Paul Eggert  <eggert@cs.ucla.edu>
31392         qacl: new module, broken out from the acl module
31393         This is for GNU Emacs, which wants the acl functions but does
31394         not want 'error' invoked when they fail.
31395         * lib/acl-internal.h: Do not include error.h, quote.h.
31396         (ENOSYS, ENOTSUP): Remove; no longer needed.
31397         (ACL_NOT_WELL_SUPPORTED): Remove; replaced by acl_errno_valid.
31398         * lib/acl.h: Include <stdbool.h>.
31399         (acl_errno_valid): New function.
31400         * lib/copy-acl.c, lib/set-acl.c: Include errno,h, not acl-internal.h.
31401         * lib/copy-acl.c (qcopy_acl): Move to lib/qcopy-acl.c.
31402         * lib/set-acl.c: Rename from lib/set-mode-acl.c.
31403         (chmod_or_fchmod, qset_acl): Move to lib/qset-acl.c.
31404         (ACL_INTERNAL_INLINE): Remove; no longer needed.
31405         * lib/file-has-acl.c (file_has_acl):
31406         * lib/qcopy-acl.c (qcopy_acl):
31407         * lib/qset-acl.c (qset_acl):
31408         Use acl_errno_valid instead of ACL_NOT_WELL_SUPPORTED.
31409         * modules/acl (Files): Move lib/acl.h, lib/acl-internal.h,
31410         lib/acl_entries.c, lib/set-mode-acl.c (renamed to lib/set-acl.c),
31411         lib/file-has-acl.c, m4/acl.m4 to qacl module.
31412         Add lib/set-acl.c.
31413         (Depends-on): Move extern-inline, fstat, sys_stat to qacl module.
31414         Add qacl.
31415         (configure.ac): Move gl_FUNC_ACL to qacl module.
31416         (lib_SOURCES): Remove file-has-acl.c (moved to qacl module).
31417         Rename set-mode-acl.c to set-acl.c.
31418         * lib/acl-errno-valid.c: New file.
31419         * lib/qcopy-acl.c: New file, moved from the old lib/copy-acl.c; the
31420         copy_acl function remains in copy-acl.c.
31421         * lib/qcopy-acl.c, lib/qset-acl.c: Do not include gettext.h.
31422         (_): Remove; not needed.
31423         * lib/qset-acl.c: New file, moved from the old lib/set-mode-acl.c; the
31424         set_acl function remains in set-acl.c (renamed from set-mode-acl.c).
31425         * modules/qacl: New file, moved from the old modules/acl.
31426         (Files, lib_SOURCES): Add acl-errno-valid.c, qcopy-acl.c, qset-acl.c.
31427         Remove set-mode-acl.c, copy-acl.c.
31428         (Depends-on): Remove error, gettext-h, quote.  Add stdbool.
31430         alignof, intprops, malloca: port better to IBM's C compiler
31431         * lib/alignof.h (alignof_type) [__IBM_ALIGNOF__]: Use __alignof__.
31432         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM_TYPEOF__]: Now 1.
31433         * lib/malloca.h (sa_alignof): [__IBM_ALIGNOF__]: Use __alignof__.
31435 2013-04-25  Daiki Ueno  <ueno@gnu.org>
31437         wctype-h: fix gettext link error on mingw
31438         Reported by Josue Andrade Gomes and Takayuki Tsunakawa in
31439         <https://lists.gnu.org/r/bug-gettext/2013-03/msg00086.html>.
31440         * lib/wctype.in.h [__MINGW32__]: Include <ctype.h> before defining
31441         rpl_towupper and rpl_towupper.
31443 2013-04-11  Dmitry V. Levin  <ldv@altlinux.org>
31445         regex-tests, regex: allow glibc re_search behavior
31446         * tests/test-regex.c (main): In test for glibc bug 15078, reformat
31447         re_search input data to make the multi-character collating element
31448         in it clearly visible, and treat re_search return code 0 as valid.
31449         * m4/regex.m4 (gl_REGEX): Likewise.
31451 2013-03-30  Paul Eggert  <eggert@cs.ucla.edu>
31453         stdalign: doc fix
31454         * doc/posix-headers/stdalign.texi (stdalign.h):
31455         Gnulib doesn't support '_Alignof expr'.
31457 2013-03-29  Paul Eggert  <eggert@cs.ucla.edu>
31459         stdalign: port to stricter ISO C11
31460         ISO C11 says that _Alignof's operand must be a parenthesized type.
31461         Problem reported by Eli Zaretskii in
31462         <http://lists.gnu.org/r/emacs-devel/2013-03/msg00960.html>.
31463         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
31464         * m4/stdalign.m4 (gl_STDALIGN_H): Don't use _Alignof (expr).
31466 2013-03-21  Paul Eggert  <eggert@cs.ucla.edu>
31468         sys_select, sys_time: port 2013-01-30 Solaris 2.6 fix to Cygwin
31469         Problem reported by Marco Atzeri in
31470         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00000.html>.
31471         * lib/sys_select.in.h [HAVE_SYS_SELECT_H && _CYGWIN_SYS_TIME_H]:
31472         Simply delegate to the system <sys/select.h> in this case too.
31473         Also, pay attention to _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H only
31474         if OSF/1, since otherwise Cygwin breaks, and it doesn't seem to
31475         be needed on Solaris either.
31476         * lib/sys_time.in.h [_CYGWIN_SYS_TIME_H]:
31477         Simply delegate to the system <sys/time.h> in this case.
31479 2013-03-19  Karl Berry  <karl@gnu.org>
31481         * build-aux/gnupload: check for erroneous (with gnupload) use of
31482         ftp-upload.gnu.org, tweak help.
31484 2013-03-19  Paul Eggert  <eggert@cs.ucla.edu>
31486         copy-file, rpmatch: fix problems found by cppcheck
31487         Reported by Arno Onken in
31488         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00069.html>.
31489         * lib/rpmatch.c (try): Fix memory leak.
31490         * lib/copy-file.c: Include "ignore-value.h".
31491         (qcopy_file_preserving): Ignore chown value.
31492         * modules/copy-file (Depends-on): Add ignore-value.
31494 2013-01-27  Jim Meyering  <jim@meyering.net>
31496         prefix-gnulib-mk: give better diagnostics
31497         * build-aux/prefix-gnulib-mk: Don't just "die".
31498         Give better diagnostics upon failure.
31500 2013-03-13  Paul Eggert  <eggert@cs.ucla.edu>
31502         putenv: port to Solaris 10
31503         * lib/putenv.c (_unsetenv, putenv): Use HAVE_DECL__PUTENV, not
31504         HAVE__PUTENV.  Solaris 10 has a _putenv that's not declared and
31505         is not what is wanted here.
31506         * m4/putenv.m4 (gl_PREREQ_PUTENV): Check for _putenv's
31507         declaration, not for its existence.
31509 2013-03-12  Paul Eggert  <eggert@cs.ucla.edu>
31511         mktime: fix configure typo
31512         * m4/mktime.m4 (gl_FUNC_MKTIME): Fix typo in previous change.
31514 2013-03-12  Eric Blake  <eblake@redhat.com>
31516         regex-tests: skip UTF-8 test on mingw
31517         * modules/regex-tests (Depends-on): Add localcharset.
31518         * tests/test-regex.c (main): Use it to skip test on mingw.
31520 2013-03-11  Eric Blake  <eblake@redhat.com>
31522         tests: make it easier to bypass alarm time in debugger
31523         * tests/test-file-has-acl.c (main): Allow gdb to override alarm.
31524         * tests/test-memmem.c (main): Likewise.
31525         * tests/test-passfd.c (main): Likewise.
31526         * tests/test-ptsname.c (main): Likewise.
31527         * tests/test-ptsname_r.c (main): Likewise.
31528         * tests/test-strcasestr.c (main): Likewise.
31529         * tests/test-strstr.c (main): Likewise.
31531         regex: port to mingw's recent addition of undeclared alarm
31532         * doc/posix-functions/alarm.texi (alarm): Document that alarm
31533         exists but still doesn't work in newer mingw.
31534         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm declaration,
31535         not existence.  Ensure SIGALRM is not trapped.
31536         * m4/mktime.m4 (gl_FUNC_MKTIME): Likewise.
31537         * m4/regex.m4 (gl_REGEX): Likewise.
31538         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): Likewise.
31539         * tests/test-regex.c (main): Use correct probe for alarm.
31541         putenv: avoid compilation warning on mingw
31542         * lib/putenv.c (_unsetenv): Protect variable declaration.
31543         (putenv): Fix indentation.
31545 2013-03-11  Gary V. Vaughan  <gary@gnu.org>
31547         unistd: don't prevent Tru64 Unix from using gnulib strtod.
31548         * lib/unistd.in.h: be careful not to include un-needed system
31549         stdlib.h from here, because that prevents gnulib stdlib.h from
31550         defining rpl_strtod correctly.
31552 2013-03-09  Gary V. Vaughan  <gary@gnu.org>
31554         vasprintf-posix-tests: allow rounding 1.51 to 1, per the previous
31555         changesets, but for the 'precision 0' test.
31556         * tests/test-vasprintf-posix.c (test_function): Don't insist on
31557         round-to-even, since POSIX says rounding is implementation-defined
31558         and OS X 10.8.2 rounds 1.51 to 1 here.
31560         vasprintf-posix-tests: allow rounding 1.5 to 1, per the previous
31561         changeset.
31562         * tests/test-vasprintf-posix.c (test_function): Don't insist on
31563         round-to-even, since POSIX says rounding is implementation-defined
31564         and OS X 10.8.2 rounds 1.5 to 1 here.
31566 2013-03-08  Paul Eggert  <eggert@cs.ucla.edu>
31568         vasnprintf-posix-tests: allow rounding 1.5 to 1
31569         * tests/test-vasnprintf-posix.c (test_function): Don't insist on
31570         round-to-even, since POSIX says rounding is implementation-defined
31571         and OS X 10.8.2 rounds 1.5 to 1 here.  Reported by Gary V. Vaughan in
31572         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00019.html>.
31574         bootstrap: port to FreeBSD
31575         * build-aux/bootstrap (bootstrap_sync): Port sh -c usage to shells
31576         that treat '--' differently.  Reported by Mats Erik Andersson in
31577         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00012.html>.
31579 2013-03-08  Gary V. Vaughan  <gary@gnu.org>
31581         regex: rename remaining __attribute calls to __attribute__.
31582         2012-02-25 changed definition of __attribute, but left some uses
31583         unchanged, preventing compilation of regex module on most non-gcc
31584         environments.
31585         * lib/regcomp.c (re_set_fastmap, seek_collating_symbol_entry)
31586         (lookup_collation_sequence_value, build_range_exp)
31587         (build_collating_symbol): Set attributes with newly renamed
31588         __attribute__ decorator.
31589         * lib/regex_internal.c (re_string_peek_byte_case)
31590         (re_node_set_compare, re_node_set_contains): Likewise.
31591         * lib/regexec.c (acquire_init_state_context): Likewise.
31593 2013-03-06  Bruno Haible  <bruno@clisp.org>
31595         execute: Revert last change, but use a different condition.
31596         * lib/execute.c (nonintr_close, nonintr_open): Reintroduce, but only
31597         on Windows.
31599 2013-03-05  Eric Blake  <eblake@redhat.com>
31601         execute: drop dead code
31602         * lib/execute.c (nonintr_close, nonintr_open): Delete.
31604 2013-03-04  Paul Eggert  <eggert@cs.ucla.edu>
31606         non-recursive-gnulib-prefix-hack: port coreutils 8.21 to HP NonStop
31607         * m4/non-recursive-gnulib-prefix-hack.m4
31608         (gl_NON_RECURSIVE_GNULIB_PREFIX_HACK): Don't mess with ALLOCA.
31609         Problem reported for HP NonStop + coreutils 8.21 by Joachim Schmitz in
31610         <http://bugs.gnu.org/10305#237>.
31612 2013-03-04  Eric Blake  <eblake@redhat.com>
31614         test-getsockopt: avoid compiler warning
31615         * tests/test-getsockopt.c (includes): Ensure close is declared.
31617 2013-03-02  Bruno Haible  <bruno@clisp.org>
31619         sys_types: Avoid autoconf warning about gl_SYS_TYPES_H.
31620         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define through AC_DEFUN_ONCE.
31622 2013-03-02  Bruno Haible  <bruno@clisp.org>
31624         gettext: Update to version 0.18.2.
31625         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.2. In particular:
31626         2012-12-07  Stefano Lattarini  <stefano.lattarini@gmailcom>
31627                 * intl.m4, po.m4: Bump requirement in AC_PREREQ to 2.60.
31629 2013-02-25  Paul Eggert  <eggert@cs.ucla.edu>
31631         regex: merge patches from libc
31633         2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
31634         * lib/regex_internal.h (__attribute__): Rename from __attribute.
31635         All uses changed.
31636         (bitset_not, bitset_merge, bitset_mask, re_string_char_size_at)
31637         (re_string_wchar_at, re_string_elem_size_at):
31638         Mark function as possibly unused.
31640         2013-02-12  Andreas Schwab  <schwab@suse.de>  [BZ #11561]
31641         * lib/regcomp.c (parse_bracket_exp) [_LIBC]: When looking up collating
31642         elements compare against the byte sequence of it, not its name.
31644 2013-02-21  Paul Eggert  <eggert@cs.ucla.edu>
31646         putenv: port better to native Windows
31647         * lib/putenv.c [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
31648         Define WIN32_LEAN_AND_MEAN and include <windows.h>.
31649         (_unsetenv): Use _putenv if available.
31650         (putenv): Temporarily set NAME=' ' rather than NAME='x' as that's
31651         a bit less likely to cause damage.
31652         (putenv) [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
31653         Fix the wrong value with SetEnvironmentVariable.
31654         (putenv) [!HAVE__PUTENV]: Simplify and match the HAVE__PUTENV
31655         code better.
31657 2013-02-20  Paul Eggert  <eggert@cs.ucla.edu>
31659         regex: ignore old-style-definition warnings
31660         * lib/regex.c: Add pragma to ignore these warnings.
31661         Problem reported for GNU tar by Pavel Raiskup.
31663 2013-02-19  Paul Eggert  <eggert@cs.ucla.edu>
31665         getcwd: support coreutils better
31666         Like strtod, getcwd incorrectly referred to HAVE_RAW_DECL_GETCWD,
31667         but this might not be correct in coreutils, which disables
31668         the raw decl checks.  Problem reported by Nagendra in
31669         <http://bugs.gnu.org/10305#192>.
31670         * lib/getcwd.c (__getcwd): Do not depend on HAVE_RAW_DECL_GETCWD.
31671         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
31672         Test the getcwd function, not any macro, since getcwd.c wants the
31673         function.
31674         * m4/getcwd.m4 (gl_FUNC_GETCWD):
31675         Don't define HAVE_MINIMALLY_WORKING_GETCWD if the code doesn't
31676         compile, as might happen if there's a macro but no function.
31678         strtod: support coreutils better
31679         * lib/strtod.c (underlying_strtod): Just invoke the underlying strtod.
31680         HAVE_RAW_DECL_STRTOD might not be correct in coreutils, which
31681         disables the raw decl checks.  This assumes there is an underlying
31682         strtod, but that's a safe assumption these days.
31683         (HAVE_RAW_DECL_STRTOD): Remove; no longer used.
31685         mountlist: port to HP NonStop
31686         Reported by Joachim Schmitz in
31687         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00084.html>.
31688         * lib/mountlist.c (hasmntopt) [!HAVE_HASMNTOPT]: New function.
31689         (MNT_IGNORE) [MNTOPT_IGNORE]: Use it.
31691 2013-02-18  Paul Eggert  <eggert@cs.ucla.edu>
31693         extern-inline: avoid compilation error with HP-UX cc
31694         Reported by Richard Lloyd in
31695         <http://lists.gnu.org/r/bug-texinfo/2013-02/msg00030.html>.
31696         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
31697         Suppress extern inline with HP-UX cc.  This should be safe,
31698         though it may hurt performance.  Perhaps someone with some HP-UX
31699         experience can come up with a higher-performance fix.
31701 2013-02-14  Paul Eggert  <eggert@cs.ucla.edu>
31703         putenv: fix heap corruption with mixed putenv/_putenv
31704         Problem reported by Michael Goffioul in
31705         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00061.html>.
31706         * lib/putenv.c (putenv) [HAVE__PUTENV]:
31707         Rely on _putenv to allocate the new environment.
31708         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
31709         * modules/putenv (configure.ac): Use it.
31711 2013-02-11  Paul Eggert  <eggert@cs.ucla.edu>
31713         unsetenv etc.: port to Solaris 11 + GNU Emacs
31714         * lib/canonicalize-lgpl.c, lib/getaddrinfo.c, lib/getdelim.c:
31715         * lib/glob.c, lib/random_r.c, lib/setenv.c, lib/tsearch.c:
31716         * lib/unsetenv.c (_GL_ARG_NONNULL): Define before including <config.h>.
31717         GNU Emacs's <config.h> includes <stdlib.h> (which is not a great
31718         idea but is too painful to fix right now), and without this gnulib
31719         change <stdlib.h> was defining _GL_ARG_NONNULL incorrectly when
31720         compiling unsetenv.c on Solaris 11.  Fix the problem for
31721         unsetenv.c, and fix other similar occurrences.
31723 2013-02-09  Paul Eggert  <eggert@cs.ucla.edu>
31725         secure_getenv: fix C++ declaration typo
31726         * lib/stdlib.in.h (secure_getenv): Fix typo with return type
31727         in _GL_CXXALIAS_SYS macro.  Reported by John W. Eaton in
31728         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00057.html>.
31730 2013-02-08  Paul Eggert  <eggert@cs.ucla.edu>
31732         careadlinkat: stop exporting careadlinkatcwd
31733         Only Emacs used it directly, and Emacs no longer needs it.
31734         * NEWS: Document this simplification.
31735         * lib/areadlink.c (careadlinkatcwd): Move here from careadlinkat.c,
31736         and make it static.  Include <stdlib.h>, for abort, and unistd.h,
31737         for readlink.
31738         * lib/careadlinkat.c (careadlinkatcwd): Move to areadlink.c.
31739         Don't include stdlib.h; no longer needed.
31740         * lib/careadlinkat.h (careadlinkatcwd): Remove decl.
31741         * lib/relocwrapper.c: Adjust comment to match new dependencies.
31742         * modules/areadlink (Depends-on): Add readlink.
31743         (Maintainer): Add self.
31744         * modules/careadlinkat (Depends-on): Remove readlink.
31746         extensions: port better to HP-UX
31747         This is merged from git Autoconf.
31748         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
31749         On hosts that need _XOPEN_SOURCE, define it when configuring, too,
31750         so that it's compatible with the value used when compiling.
31752         openpty: fix bug where HAVE_OPENPTY is mistakenly 1
31753         Problem reported by Mats Erik Andersson in
31754         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00051.html>.
31755         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
31756         openpty function exists, not merely when we intend to replace it.
31757         This corrects the 2013-01-31 patch, which mistakenly defined
31758         HAVE_OPENPTY even on hosts that lacked it.
31760 2013-02-07  Paul Eggert  <eggert@cs.ucla.edu>
31762         secure_getenv: fix include typo
31763         * lib/secure_getenv.c: Include config.h.  Somehow I forgot!
31765         secure_getenv: port better to FreeBSD and Solaris
31766         * lib/secure_getenv.c [!HAVE___SECURE_GETENV]:
31767         Include unistd.h if HAVE_ISSETUGID, otherwise define a dummy issetugid.
31768         (secure_getenv) [!HAVE___SECURE_GETENV]: Use getenv if not issetugid.
31769         This works better on BSDish platforms.
31770         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV):
31771         Test for issetugid if __secure_getenv is missing.
31773 2013-02-06  Paul Eggert  <eggert@cs.ucla.edu>
31775         extensions: port better to MINIX 3, HP-UX, autoheader 2.62
31776         Some of these changes are merged in from git Autoconf.
31777         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
31778         When deciding whether to define _XOPEN_SOURCE, inspect the
31779         preprocessor macro __hpux instead of the more-heavyweight
31780         operation of requiring AC_CANONICAL_HOST.  Define _NETBSD_HOST on
31781         MINIX, for MINIX 3.  Use USE_SYSTEM_EXTENSIONS, not __EXTENSIONS__,
31782         as the key for __EXTENSIONS__.
31784         unistd: avoid namespace pollution on non-glibc systems
31785         * lib/unistd.in.h: #define __need_getopt before including <getopt.h>.
31786         This avoids namespace pollution on non-glibc systems, by causing
31787         gnulib unistd.h to behave more like glibc unistd.h.  I also hope
31788         that this fixes a bug on FreeBSD, reported by Mats Erik Andersson in
31789         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00027.html>.
31791 2013-02-04  Paul Eggert  <eggert@cs.ucla.edu>
31793         tmpdir: use secure_getenv
31794         * lib/tmpdir.c (__secure_getenv) [!LIBC]:
31795         Define to secure_getenv, not getenv.
31796         * m4/tmpdir.m4 (gt_TMPDIR): Don't check for __secure_getenv,
31797         as that's now secure_getenv's job.
31798         * modules/tmpdir (Depends-on): Add secure_getenv.
31800         tempname: use secure_getenv
31801         * lib/tempname.c (__secure_getenv) [!_LIBC]:
31802         Define to secure_getenv, not getenv.
31803         * modules/tempname (Depends-on):
31804         Add secure_getenv.
31806         secure_getenv: new module
31807         * MODULES.html.sh (Extra functions based on ANSI C 89):
31808         Add secure_getenv.
31809         * doc/glibc-functions/secure_getenv.texi: New file.
31810         * doc/gnulib.texi: Include it.
31811         * lib/secure_getenv.c, m4/secure_getenv.m4, modules/secure_getenv:
31812         New files.
31813         * lib/stdlib.in.h (secure_getenv): New decl.
31814         * m4/stdlib_h.m4 (gl_STDLIB_H, gl_STDLIB_H_DEFAULTS):
31815         * modules/stdlib (stdlib.h):
31816         Add secure_getenv checks.
31818 2013-02-03  Paul Eggert  <eggert@cs.ucla.edu>
31820         getcwd: break fdopendir + save_cwd recursive loop (Bug#13516)
31821         Reported for OS X 10.8.2 by Assaf Gordon in
31822         <http://bugs.gnu.org/13516>.
31823         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Do not define if
31824         !HAVE_OPENAT && !HAVE_FDOPENDIR.
31825         * m4/getcwd-abort-bug.m4: Reformat to match test-getcwd.c
31826         so that they can be kept in sync more easily.  Avoid PATH_MAX
31827         test on the Hurd.  Sync from test-getcwd.c for errno tests after
31828         mkdir or chdir failure.
31829         * tests/test-getcwd.c (HAVE_OPENAT_SUPPORT): New macro, from
31830         lib/getcwd.c.
31831         (test_abort_bug): Do not test for the deep directory bug unless we
31832         have openat support.  Avoid PATH_MAX test on the Hurd.
31834         regex-tests, regex: fix bug: memset undeclared
31835         * tests/test-regex.c: Don't include regex.h twice.  Include
31836         string.h, to declare memset.  Christensen's report also mentioned
31837         this issue.
31838         * m4/regex.m4 (gl_REGEX): Keep test program more in sync with
31839         test-regex.c, to avoid future problems like this.  Remove
31840         AC_INCLUDES_DEFAULT.  Include <string.h>.  Don't include <regex.h>
31841         twice.
31843         regex-tests: fix link errors on older Solaris
31844         These need to link with @LIBINTL@ to get libintl_gettext.
31845         Problem reported by Tom G. Christensen in
31846         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00003.html>.
31847         * modules/regex-tests (test_regex_LDADD): New macro.
31849 2013-01-31  Paul Eggert  <eggert@cs.ucla.edu>
31851         regex-tests: new module
31852         * modules/regex-tests, tests/test-regex.c: New files.
31854         regex: fix off-by-one error in configure test
31855         * m4/regex.m4 (gl_REGEX): Test should return 21, not 20.
31857 2013-01-31  Eric Blake  <eblake@redhat.com>
31859         regex: avoid infinite configure test
31860         * m4/regex.m4 (gl_REGEX): Add an alarm escape hatch.
31862 2013-01-31  Reuben Thomas  <rrt@sc3d.org>
31864         openpty: fix bug where HAVE_OPENPTY wasn't defined
31865         See the thread starting at:
31866         http://lists.gnu.org/r/bug-gnulib/2013-01/msg00185.html
31867         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
31868         openpty function exists, not merely when we intend to replace it.
31870 2013-01-30  Paul Eggert  <eggert@cs.ucla.edu>
31872         sys_time: port to Solaris 2.6
31873         There is a circularity problem on Solaris 2.6, where <time.h> includes
31874         <sys/time.h> for struct timespec.  The include nesting is gnulib
31875         <time.h>, system <time.h>, gnulib <sys/time.h>, system
31876         <sys/time.h>, gnulib <sys/types.h>, system <sys/types.h>, gnulib
31877         <sys/select.h>, gnulib <signal.h>, system <sys/signal.h>, system
31878         <sys/siginfo.h>; the last, innermost file needs struct
31879         timestruc_t, which is defined in <sys/time.h>, which has not been
31880         fully parsed.  Problem reported by Tom G. Christensen in
31881         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00113.html>.
31882         * lib/sys_select.in.h: Treat Solaris 2.6's problem with
31883         <sys/time.h> and <sys/types.h> like OSF/1's similar problem.
31884         * lib/sys_time.in.h: Redo to resemble sys_select.in.h, which
31885         uses split double-inclusion guards.
31887 2013-01-29  Paul Eggert  <eggert@cs.ucla.edu>
31889         regex: test for buffer overrun
31890         * m4/regex.m4 (gl_REGEX): Add test case, by Andreas Schwab,
31891         for the just-fixed regex bug.
31893 2013-01-29  Andreas Schwab  <schwab@suse.de>
31895         regex: fix buffer overrun in regexp matcher [BZ #15078]
31896         * lib/regexec.c (extend_buffers): Add parameter min_len.
31897         (check_matching): Pass minimum needed length.
31898         (clean_state_log_if_needed): Likewise.
31899         (get_subexp): Likewise.
31901 2013-01-28  Pádraig Brady  <P@draigBrady.com>
31903         mountlist: don't consider "devtmpfs" as dummy
31904         * lib/mountlist.c (ME_DUMMY_0): Remove "devtmpfs"
31905         as there is storage associcated with it.
31907 2013-01-27  Paul Eggert  <eggert@cs.ucla.edu>
31909         futimens-tests, utimens-tests: Depend on gettext.
31910         This works around a problem introduced in my 2013-01-12 patch,
31911         which added @LIBINTL@ to these modules.
31912         * modules/futimens-tests (Depends-on):
31913         * modules/utimens-tests (Depends-on): Add gettext.
31915 2013-01-26  Eric Blake  <eblake@redhat.com>
31917         test-getpeername: fix typo
31918         * tests/test-getpeername.c: Fix typo introduced in fd cleanup.
31920 2013-01-20  Bernhard Voelker  <mail@bernhard-voelker.de>
31922         bootstrap: remove the need for a sorted .gitignore file
31923         * build-aux/bootstrap (insert_sorted_if_absent): Adjust and
31924         rename to insert_if_absent(), so that we don't need or generate
31925         a sorted .gitignore file.  We do require a .gitignore with no
31926         existing duplicate entries and enforce that.
31927         (sort_patterns): Remove this function as we now use the simpler
31928         technigue of inserting blacklist entries at the top of the file,
31929         assuming gnulib won't be inserting !whitelist entries.
31931 2013-01-23  Paul Eggert  <eggert@cs.ucla.edu>
31933         readlinkat: don't depend on gl_FUNC_OPENAT
31934         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Don't require gl_FUNC_OPENAT.
31935         Perhaps a similar change needs to be made for linkat.m4, mkfifoat.m4,
31936         renameat.m4, symlinkat.m4; but one thing at a time.
31938         statat: new module, split out from fstatat
31939         GNU Emacs needs the POSIX-specified fstatat, but not the
31940         gnulib-specified statat and lstat.  Split the latter two into a
31941         new module 'statat'.
31942         * lib/openat.h: Depend on GNULIB_STATAT, not GNULIB_FSTATAT.
31943         * lib/openat.h, lib/statat.c (STATAT_INLINE):
31944         Rename from FSTATAT_INLINE. All uses changed.
31945         * modules/fstatat (Files): Remove lib/statat.c.
31946         (gl_MODULE_INDICATOR([fstatat])): Remove.
31947         (lib_SOURCES): Remove.
31948         (Maintainer): Add self.
31949         * modules/statat, modules/statat-tests, tests/test-statat.c: New files.
31950         * tests/test-fstatat.c (BASE): Don't define if already defined.
31951         (do_stat, do_lstat) [!TEST_STATAT]: Test fstatat instead.
31953 2013-01-22  Paul Eggert  <eggert@cs.ucla.edu>
31955         tests: don't assume fd 99 is closed
31956         * tests/test-accept.c, tests/test-accept4.c, tests/test-bind.c:
31957         * tests/test-close.c, tests/test-connect.c, tests/test-dprintf.c:
31958         * tests/test-dup.c, tests/test-dup2.c, tests/test-faccessat.c:
31959         * tests/test-fchdir.c, tests/test-fchmod.c, tests/test-fchmodat.c:
31960         * tests/test-fchown.c, tests/test-fchownat.c, tests/test-fclose.c:
31961         * tests/test-fdatasync.c, tests/test-fdopen.c, tests/test-fdopendir.c:
31962         * tests/test-fflush.c, tests/test-fgetc.c, tests/test-fputc.c:
31963         * tests/test-fread.c, tests/test-freopen.c, tests/test-fseeko4.c:
31964         * tests/test-fstat.c, tests/test-fstatat.c, tests/test-fsync.c:
31965         * tests/test-ftello4.c, tests/test-ftruncate.c, tests/test-futimens.h:
31966         * tests/test-fwrite.c, tests/test-getpeername.c:
31967         * tests/test-getsockname.c, tests/test-getsockopt.c:
31968         * tests/test-grantpt.c, tests/test-ioctl.c, tests/test-isatty.c:
31969         * tests/test-linkat.c, tests/test-listen.c, tests/test-lseek.c:
31970         * tests/test-mkdirat.c, tests/test-mkfifoat.c, tests/test-openat.c:
31971         * tests/test-pread.c, tests/test-pwrite.c, tests/test-read.c:
31972         * tests/test-readlinkat.c, tests/test-recv.c, tests/test-recvfrom.c:
31973         * tests/test-renameat.c, tests/test-select.h, tests/test-send.c:
31974         * tests/test-sendto.c, tests/test-setsockopt.c, tests/test-shutdown.c:
31975         * tests/test-symlinkat.c, tests/test-ttyname_r.c:
31976         * tests/test-unlinkat.c, tests/test-unlockpt.c:
31977         * tests/test-utimensat.c, tests/test-vdprintf.c, tests/test-write.c:
31978         Close file descriptor 99, instead of assuming it's already closed.
31980 2013-01-21  Paul Eggert  <eggert@cs.ucla.edu>
31982         stpncpy: port to OS X 10.8
31983         * lib/stpncpy.c (__stpncpy): Parenthesize name when defining function.
31984         Problem reported by Assaf Gordon in <http://bugs.gnu.org/13495>.
31986 2013-01-16  Paul Eggert  <eggert@cs.ucla.edu>
31988         unistd: port to recent mingw
31989         * lib/unistd.in.h: Remove special invocation convention for mingw,
31990         which breaks for the latest mingw version.  See John W. Eaton in
31991         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00100.html>.
31993         largefile: port better to Mac OS X 10.5
31994         This patch is backported from Autoconf git.
31995         * m4/largefile.m4 (AC_SYS_LARGEFILE): Use AC_DEFINE, not
31996         AH_VERBATIM, to define _DARWIN_USE_64_BIT_INODE, to avoid problems
31997         with ino_t size being different for configuration time versus
31998         build/run time.  Problem reported by PHO in
31999         <http://lists.gnu.org/r/bug-autoconf/2013-01/msg00040.html>.
32001 2013-01-15  Paul Eggert  <eggert@cs.ucla.edu>
32003         doc: clarify -Werror
32004         * doc/warnings.texi (warnings): -Werror is not always a bad idea;
32005         clarify that it's intended for developers, not for ordinary builds,
32006         and mention --enable-gcc-warnings as one possible use.
32008 2013-01-15  Andoni Morales Alastruey  <ylatuya@gmail.com>  (tiny change)
32010         stdint: fix build with Android's Bionic fox x86
32011         * lib/stdint.in.h: fix check to test if included-fixed/sys/types.h
32012         was already included as _SSIZE_T_DEFINED_ might also be defined
32013         in include/machine/_types.h, which is included by stdio.h
32015 2013-01-13  Paul Eggert  <eggert@cs.ucla.edu>
32017         net_if-tests: port to Solaris 7 + GCC 3.4.6
32018         Problem reported by Tom G. Christensen in
32019         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00091.html>.
32020         * tests/test-net_if.c (ni): Move to next the code that uses it,
32021         so that it's declared only if needed.
32023 2013-01-12  Paul Eggert  <eggert@cs.ucla.edu>
32025         net_if-tests: port to older Solaris
32026         Problem reported by Tom G. Christensen in
32027         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
32028         * modules/net_if-tests (NET_IF_LIB): New substitution.
32029         (test_net_if_LDADD): New makefile macro, which uses NET_IF_LIB.
32030         (HAVE_IF_NAMEINDEX): New C macro.
32031         * tests/test-net_if.c: Bypass most of the test if !HAVE_IF_NAMEINDEX.
32033         system-quote-tests: port to older Solaris
32034         Problem reported by Tom G. Christensen in
32035         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
32036         * tests/test-system-quote-child.c (fopen, fread): Undef.
32038         c-xvasprintf etc.: fix link errors on older Solaris
32039         These need to link with @LIBINTL@ to get libintl_gettext.
32040         Problem reported by Tom G. Christensen in
32041         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
32042         * modules/c-xvasprintf-tests (test_c_xvasprintf_LDADD):
32043         * modules/readtokens-tests (test_readtokens_LDADD): New macros.
32044         * modules/futimens-tests (test_futimens_LDADD):
32045         * modules/utimens-tests (test_utimens_LDADD): Add @LIBINTL@.
32047 2013-01-10  Paul Eggert  <eggert@cs.ucla.edu>
32049         locale: port to Solaris 2.6 and 7 + GNU gettext
32050         * lib/locale.in.h: Just include_next <locale.h> when
32051         being invoked recursively.  This prevents problems on Solaris 2.6 and 7
32052         when combining the localename module with GNU gettext 0.18.2.
32053         Problem reported by Tom G. Christensen in
32054         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00084.html>.
32056 2013-01-09  Paul Eggert  <eggert@cs.ucla.edu>
32058         stdlib: port to Solaris 2.6
32059         Also, the code worked on Solaris 7 through 9 only by accident.
32060         Problem reported by Tom G. Christensen in
32061         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00059.html>.
32062         * lib/stdlib.in.h: If __need_system_stdlib_h is defined,
32063         simply include the system stdlib.h.
32064         * lib/getopt.in.h (__need_system_stdlib_h):
32065         * lib/pthread.in.h (__need_system_stdlib_h):
32066         * lib/unistd.in.h (__need_system_stdlib_h) [!__GLIBC__]:
32067         Define when including <stdlib.h>, to avoid problems at least for
32068         the pthread case on Solaris 2.6 and 7.  These .h files can get by
32069         with the system stdlib.h.
32071 2013-01-06  Paul Eggert  <eggert@cs.ucla.edu>
32073         doc: update main copyright year
32074         * doc/gnulib.texi: Update copyright date.
32076         doc: improve ISO 8601 discussion
32077         * doc/parse-datetime.texi (Combined date and time of day items):
32078         Specify more carefully what formats are supported and what is
32079         done with excess precision.
32081 2013-01-05  Paul Eggert  <eggert@cs.ucla.edu>
32083         doc: avoid small caps
32084         * doc/parse-datetime.texi, doc/regex.texi: Don't use small caps;
32085         they're more trouble than they're worth.  Suggested by Karl Berry
32086         in <http://bugs.gnu.org/13360>.
32088         regex: conform to strict C
32089         * lib/regcomp.c (parse_bracket_exp): Add cast to conform to strict C.
32090         From Aharon Robbins.
32092         gnulib-tool: fix incompatibility with autopoint 0.18.2
32093         * gnulib-tool: Don't indent AM_GNU_GETTEXT_VERSION line.
32094         Problem reported by Tom G. Christensen in
32095         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00053.html>.
32097 2013-01-04  Paul Eggert  <eggert@cs.ucla.edu>
32099         fprintftime: bring back and reword fwrite comment
32100         * lib/strftime.c (cpy) [FPRINTFTIME]: Re-add reworded comment.
32102         stdio: remove now-unnecessary stdio.c
32103         Since stdio.in.h no longer uses inline functions, we no longer
32104         need to compile the extern versions.
32105         * lib/stdio.c: Remove.
32106         * modules/stdio (Files): Remove lib/stdio.c.
32107         (lib_SOURCES): Remove.
32109         unicodeio: depend on stdio, not ignore-value
32110         * lib/unicodeio.c: Do not include ignore-value.h.
32111         (fwrite_success_callback): Use plain fwrite, not ignore_value + fwrite.
32112         * modules/unicodeio (Depends-on): Depend on stdio, not ignore-value.
32114         fprintftime: depend on stdio, not ignore-value
32115         * lib/strftime.c [FPRINTFTIME]: Do not include ignore-value.h.
32116         (cpy) [FPRINTFTIME]: Use plain fwrite, not ignore_value of fwrite,
32117         since the stdio module arranges to silence that warning now.
32118         * modules/fprintftime (Depends-on): Depend on stdio, not ignore-value.
32120 2012-10-04  Simon Josefsson  <simon@josefsson.org>
32122         stdint-tests: Fix expanded-before-required-warning.
32123         * modules/stdint-tests (Depends-on): Use AC_REQUIRE.
32125 2013-01-03  Paul Eggert  <eggert@cs.ucla.edu>
32127         fwrite: silence __wur only for older glibc versions
32128         * lib/stdio.in.h (fwrite): Limit workaround to glibc 2.4 through 2.15.
32129         This will help us remove this workaround some time in the far future.
32131 2013-01-03  Eric Blake  <eblake@redhat.com>
32133         fwrite: silence __wur without using inline
32134         * lib/stdio.in.h (fwrite): Limit warn_unused_result workaround to
32135         just gcc, and in a way that avoids inline issues.
32136         * modules/stdio (Depends-on): Drop extern-inline.
32138 2013-01-03  Jim Meyering  <jim@meyering.net>
32140         update-copyright: avoid copyright notice date corruption
32141         Given a sequence of copyright year numbers in which the final
32142         one was a two-digit number that happened to be a substring of
32143         a preceding four-digit year number, we would mistakenly update
32144         the substring (from two- to four-digit) rather than the two-digit
32145         number at the end, which, combined with the addition of the current
32146         4-digit year number would yield two 5-digit year numbers, e.g.,
32147         here, it would convert the first "99" to "1999, 2013" rather than
32148         the final one:
32149           1991, 99
32150           11999, 20131, 1999
32151         * build-aux/update-copyright: Tighten a regexp.
32152         * tests/test-update-copyright.sh: Add a test case to trigger the bug.
32153         Reported by Joseph Myers in
32154         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/32281
32156 2013-01-01  Paul Eggert  <eggert@cs.ucla.edu>
32158         regex: omit needless signed-pointer casts
32159         * lib/regcomp.c (build_charclass, build_charclass_op):
32160         Use char *, not unsigned char *, for class name and extra.
32161         The char values are always nonnegative so there's no need to
32162         insist on unsigned char * here, and using char * removes the need
32163         for casts.  Reported by Aharon Robbins in
32164         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
32166         regex: support Gawk, which never uses alloca
32167         * lib/regex_internal.h [!_LIBC && !HAVE_ALLOCA]:
32168         Do not include in this case.  Gawk doesn't supply a substitute
32169         alloca.h and doesn't need one.
32171         regex: port __libc_lock_define usage to C89
32172         * lib/regex_internal.h (__libc_lock_define) [!_LIBC]: Remove.
32173         (struct re_dfa_t): Use #ifdef instead.  '__libc_lock_define (, lock)'
32174         does not conform to C89, as it has an empty macro argument.
32175         Reported by Aharon Robbins in
32176         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
32178 2013-01-01  Eric Blake  <eblake@redhat.com>
32180         maint: update all copyright year number ranges
32181         Run "make update-copyright".
32183         version-etc: bump copyright year reported in --version
32184         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2013.
32186 2012-12-31  Eric Blake  <eblake@redhat.com>
32188         sigprocmask-tests: skip test if pid is unexpectedly large
32189         * tests/test-sigprocmask.c (main): Add range check.
32191         git-version-gen: avoid test -z portability glitch
32192         * build-aux/git-version-gen: Prefer portable test spelling, since
32193         git-version-gen is run on more than just developer machines.
32195 2012-12-31  Peter Rosin  <peda@lysator.liu.se>  (tiny change)
32197         git-version-gen: add --fallback option to use if git is not present
32198         * build-aux/git-version-gen: Add support for the new option --fallback,
32199         which comes into play when there is no $tarball_version_file and
32200         git is not working.
32201         (scriptversion): Update.
32203         maint.mk: handle missing git with more grace
32204         * top/maint.mk (no-submodule-changes, public-submodule-commit):
32205         Quietly proceed if git is not present.
32207 2012-12-31  Eric Blake  <eblake@redhat.com>
32209         dup2: work around cygwin bug
32210         * m4/dup2.m4 (gl_FUNC_DUP2): Flush out cygwin core dump.
32211         * lib/dup2.c (rpl_dup2): Work around it.
32212         * doc/posix-functions/dup2.texi (dup2): Document it.
32214 2012-12-30  Paul Eggert  <eggert@cs.ucla.edu>
32216         regex: remove unnecessary dependency on localcharset.h
32217         * lib/regex_internal.h [!_LIBC]: Don't include localcharset.h;
32218         hasn't been needed for years.
32219         * modules/regex (Depends-on): Remove localcharset.
32221         regex: revert single-byte change
32222         * lib/regexec.c (check_node_accept_bytes): Revert previous change
32223         to this function.  This was alredy fixed in a different way, at
32224         bdb56bacd57070eced9998569ffe3f3c37ef5964 in the glibc git; see
32225         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=510219> and
32226         <http://sourceware.org/bugzilla/show_bug.cgi?id=9697>.
32228         regex: simplify based on Gawk version
32229         * lib/regex_internal.c (re_dfa_add_node): Simplify.
32230         Reported by Aharon Robbins in
32231         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
32233 2012-12-29  Paul Eggert  <eggert@cs.ucla.edu>
32235         regex: check that pattern char is single-byte
32236         Reported by Aharon Robbins in
32237         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
32238         * lib/regexec.c (check_node_accept_bytes):
32239         Return 0 if the pattern string has a multibyte character here.
32241         regex: implement rational ranges
32242         Reported by Aharon Robbins in
32243         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
32244         * lib/regcomp.c (build_range_exp) [!_LIBC]:
32245         * lib/regexec.c (check_node_accept_bytes) [!_LIBC]:
32246         Implement rational ranges.
32248         regex: avoid redefining __wctype
32249         Reported by Aharon Robbins in
32250         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
32251         * lib/regex_internal.h (__wctype, __iswctype) [!_LIBC]:
32252         #undef before defining.
32254         regex: port to hosts where malloc (0) == NULL
32255         Reported by Aharon Robbins in
32256         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
32257         * lib/regex_internal.c (re_node_set_alloc):
32258         Don't assume that malloc (0) yields nonnull.
32259         * lib/regex_internal.h (MALLOC_0_IS_NONNULL): New macro.
32260         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_EEMALLOC.
32261         * modules/regex (Files): Add m4/eealloc.m4.
32263         regex: port to C89
32264         Reported by Aharon Robbins in
32265         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
32266         * lib/regcomp.c (init_word_char): Declaration before statement.
32268         regex: merge glibc changes
32269         Also, copy the license wording from glibc.  This simplifies
32270         merging changes.  gnulib-tool will change the wording to GPL as
32271         appropriate, when importing it to other packages.  The only
32272         glibc change made since the last merge, which needs merging, is:
32273         2012-05-24 Andreas Schwab <schwab@linux-m68k.org>
32274         * lib/regex_internal.h (gettext): Remove use of INTUSE.
32276         * users.txt: Add Emacs.
32278         doc: omit mention of version when not needed
32279         * doc/gnulib-intro.texi (Portability and Application Code):
32280         * doc/gnulib.texi (Brief Overview, Legacy Function Substitutes):
32281         Don't mention particular dates or versions when not necessary, so
32282         that the documentation won't go out of date so quickly.
32284         * doc/intprops.texi (Integer Properties): Fix Texinfo typo.
32286 2012-12-28  Akim Demaille  <akim@lrde.epita.fr>
32288         bootstrap: pass --force to autoreconf.
32289         * build-aux/bootstrap (AUTORECONFFLAGS): New.
32290         Add "--force" so that Automake's ylwrap and other such tools
32291         be updated at each bootstrap invocation.
32292         Use it.
32294 2012-12-27  Paul Eggert  <eggert@cs.ucla.edu>
32296         argp: fix port of port new 'inline' approach to Sun C 5.12 + Solaris 10
32297         The earlier patch forgot to update one of the #if conditions, causing
32298         a problem on Debian testing i386 reported by Mats Erik Andersson
32299         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00124.html>.
32300         * lib/argp-fmtstream.h (__argp_fmtstream_putc, argp_fmtstream_putc)
32301         (__argp_fmtstream_puts, argp_fmtstream_puts)
32302         (__argp_fmtstream_write, argp_fmtstream_write)
32303         [!_LIBC && !__OPTIMIZE__]: Declare as ARGP_FS_EI, not as extern.
32305         * doc/gnulib-readme.texi: Minor fixups.
32306         (Portability guidelines): Modernize URLs.  Remove some repetition.
32307         (Indent with spaces not TABs): Reword to avoid too-long lines.
32308         Remove some '@ifset standalone' stuff that isn't used.
32310         * doc/gnulib-readme.texi (Portability guidelines):
32311         ctype.h, not ctime.h.
32313         Correct name of POSIX.1-2001.
32314         * doc/posix-functions/fgetc.texi (fgetc):
32315         * doc/posix-functions/fgets.texi (fgets):
32316         * doc/posix-functions/fread.texi (fread):
32317         * doc/posix-functions/fscanf.texi (fscanf):
32318         * doc/posix-functions/getc.texi (getc):
32319         * doc/posix-functions/getchar.texi (getchar):
32320         * doc/posix-functions/scanf.texi (scanf):
32321         POSIX.1-2001, not POSIX-2001.
32323         doc: move README into manual
32324         * README: Move contents to new file doc/gnulib-readme.texi.
32325         Replace with a one-line summary.
32326         * doc/gnulib.texi (Brief Overview): New section,
32327         with old intro preface.  Include gnulib-readme.texi for contents.
32328         (Philosophy): Rename from "Introduction", since this
32329         section no longer introduces the rest.  Write a new preface.
32330         * doc/gnulib-readme.texi: New file, with the old contents of
32331         README texinfo-ized.  This way, the README info appears
32332         in the online and printed manual.
32334 2012-12-25  Ben Pfaff  <blp@cs.stanford.edu>
32336         c-xvasprintf: Fix "implicit declaration of function" GCC warning.
32337         * lib/c-xvasprintf.c: Add missing #include "c-vasprintf.h", for
32338         c_vasprintf() prototype.
32340 2012-12-24  Ben Pfaff  <blp@cs.stanford.edu>
32342         c-vasprintf: Fix "empty declaration" warning reported by GCC.
32343         * lib/c-vasprintf.h: Remove stray semicolon.
32345 2012-12-23  Paul Eggert  <eggert@cs.ucla.edu>
32347         gettext: avoid obsolete macro AM_PROG_MKDIR_P
32348         It is obsolete and is planned to be removed from Automake 1.14; see
32349         <http://lists.gnu.org/r/automake/2012-12/msg00029.html>.
32350         * build-aux/po/Makefile.in.in (install-data, install-data-yes)
32351         (installdirs-data, installdirs-data-yes):
32352         Use $(MKDIR_P), not $(mkdir_p).
32353         * m4/intl.m4 (AM_INTL_SUBDIR):
32354         * m4/po.m4 (AM_PO_SUBDIRS):
32355         Require AC_PROG_MKDIR_P, not AM_PROG_MKDIR_P.
32357 2012-12-22  Paul Eggert  <eggert@cs.ucla.edu>
32359         argp: port new 'inline' approach to Sun C 5.12 + Solaris 10
32360         On this platform, we are not optimizing but we are using
32361         the substitute for extern inlines, so compile as if
32362         C99-style extern inline, or a substitute, is available.
32363         * lib/argp-fmtstream.h (argp_fmtstream_set_lmargin)
32364         (__argp_fmtstream_set_lmargin, argp_fmtstream_set_rmargin)
32365         (__argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin)
32366         (__argp_fmtstream_set_wmargin, argp_fmtstream_point)
32367         (__argp_fmtstream_point) [!_LIBC && !__OPTIMIZE__]:
32368         Declare as ARGP_FS_EI, not as extern.
32369         * lib/argp.h (argp_usage, __argp_usage, _option_is_short)
32370         (__option_is_short, _option_is_end, __option_is_end)
32371         [!_LIBC && __USE_EXTERN_INLINES]:
32372         Declare as ARGP_EI, not as extern.
32374 2012-12-21  Paul Eggert  <eggert@cs.ucla.edu>
32376         AC_PROG_MKDIR_P: port workaround to pre-2.62 Autoconf
32377         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P, AC_C_RESTRICT):
32378         Use m4_ifndef([AC_AUTOCONF_VERSION], ...), not
32379         m4_if(m4_version_compare(m4_defn([AC_AUTOCONF_VERSION]),[2.62]),[-1],
32380         ...), as the latter is fatal with older Autoconfs.
32381         Problem reported and fix suggested by Eric Blake in thread starting at
32382         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00097.html>.
32384 2012-12-20  Paul Eggert  <eggert@cs.ucla.edu>
32386         AC_PROG_MKDIR_P: don't workaround if not buggy
32387         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P):
32388         Define only for Autoconf versions before 2.62.
32389         (AC_C_RESTRICT): Use documented AC_AUTOCONF_VERSION, not
32390         undocumented m4_PACKAGE_VERSION, for consistency with the
32391         abovementioned change to AC_PROG_MKDIR_P.  This should suffice
32392         since we're checking for 2.62 or later, and AC_AUTOCONF_VERSION
32393         was introduced in 2.62.
32395 2012-12-15  Ben Pfaff  <blp@cs.stanford.edu>
32397         New 'c-*printf' modules for formatted output in C locale.
32399         New module 'c-vasnprintf'.
32400         * modules/c-vasnprintf: New file.
32401         * lib/c-vasnprintf.c: New file.
32402         * lib/c-vasnprintf.h: New file.
32404         New module 'c-snprintf'.
32405         * modules/c-snprintf: New file.
32406         * modules/c-snprintf-tests: New file.
32407         * lib/c-snprintf.c: New file.
32408         * lib/c-snprintf.h: New file.
32409         * tests/test-c-snprintf.c: New file.
32410         * tests/test-c-snprintf.sh: New file.
32412         New module 'c-vsnprintf'.
32413         * modules/c-vsnprintf: New file.
32414         * modules/c-vsnprintf-tests: New file.
32415         * lib/c-vsnprintf.c: New file.
32416         * lib/c-vsnprintf.h: New file.
32417         * tests/test-c-vsnprintf.c: New file.
32418         * tests/test-c-vsnprintf.sh: New file.
32420         New module 'c-vasprintf'.
32421         * modules/c-vasprintf: New file.
32422         * modules/c-vasprintf-tests: New file.
32423         * lib/c-asprintf.c: New file.
32424         * lib/c-vasprintf.c: New file.
32425         * lib/c-vasprintf.h: New file.
32426         * tests/test-c-vasprintf.c  +: New file.
32427         * tests/test-c-vasprintf.sh: New file.
32429         New module 'c-xvasprintf'.
32430         * modules/c-xvasprintf: New file.
32431         * modules/c-xvasprintf-tests: New file.
32432         * lib/c-xasprintf.c: New file.
32433         * lib/c-xvasprintf.c: New file.
32434         * lib/c-xvasprintf.h: New file.
32435         * tests/test-c-xvasprintf.c: New file.
32436         * tests/test-c-xvasprintf.sh: New file.
32438 2012-12-18  Paul Eggert  <eggert@cs.ucla.edu>
32440         argp: better 'inline'
32441         Use extern-inline module to declare extern inline functions.
32442         This avoids some bogus warning diagnostics.  Problem discovered
32443         when modifying GNU tar to use the manywarnings module.
32444         * lib/argp.h, lib/argp-xinl.c (ARGP_EI) [!_LIBC]:
32445         * lib/argp-fmtstream.h, lib/argp-fs-xinl.c (ARGP_FS_EI) [!_LIBC]:
32446         Define based on extern-inline.
32447         * modules/argp (Depends-on): Add extern-inline.
32449 2012-12-17  Paul Eggert  <eggert@cs.ucla.edu>
32451         filemode, sys_stat: Handle MPX files a la AIX.
32452         * lib/filemode.c (ftypelet): Report 'm' for MPX files.
32453         * lib/sys_stat.in.h (S_ISMPX): New macro.
32454         * tests/test-sys_stat.c: Add tests for MPX files.
32456 2012-12-16  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
32458         x-to-1: honor $PERL
32459         * build-aux/x-to-1.in: Run $HELP2MAN via $PERL so that the user gets
32460         a chance to use his preferred version of Perl.  This is typically
32461         required by Darwin users whose default /usr/bin/perl does not have all
32462         the libraries required by help2man, and who need to use their MacPorts
32463         installation of Perl instead.
32465 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
32467         gnu-web-doc-update: add all the new files, even in new directories
32468         See http://lists.gnu.org/r/bug-gnulib/2012-12/msg00057.html
32469         * build-aux/gnu-web-doc-update (--dry-run, $dryrun): New.
32470         Use it.
32471         (main): Don't use cvsutils to get the list of unknown files,
32472         just add all the existing files and directories.
32474 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
32476         gnu-web-doc-update: improve --help
32477         * build-aux/gnu-web-doc-update: Move comments into --help.
32479 2012-12-07  Eric Wong  <normalperson@yhbt.net>
32481         mountlist: recognize more "dummy" file systems
32482         * lib/mountlist.c (ME_DUMMY_0):
32483         Add these dummy FS names to the list:
32484         - "debugfs" virtual filesystem for kernel debugging
32485         - "devpts" PTY slave filesystem
32486         - "devtmpfs" device filesystem on top of tmpfs/ramfs
32487         - "fusectl" control filesystem for FUSE
32488         - "mqueue" enumerates POSIX message queues
32489         - "rpc_pipefs" kernel <-> userspace bridge for NFS
32490         - "sysfs" is for exporting kernel objects
32491         - "devfs" device filesystem for Linux 2.4 and FreeBSD
32493 2012-12-11  Paul Eggert  <eggert@cs.ucla.edu>
32495         extern-inline: avoid incompatibility with Darwin Libc
32496         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE): Do not use
32497         extern inline if __APPLE__.  Use _GL_UNUSED in the non-inline branch.
32498         Problem reported by Akim Demaille in
32499         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00023.html>.
32501 2012-12-11  Simon Josefsson  <simon@josefsson.org>
32503         gnupload: Work with GnuPG using gpg-agent (for smartcards).
32504         * build-aux/gnupload: If GnuPG is configured to use gpg-agent,
32505         let it handle password prompting.
32507 2012-12-10  Eli Zaretskii  <eliz@gnu.org>
32509         canonicalize, canonicalize-lgpl: Microsoft Windows prefix fixes
32510         * lib/canonicalize.c (canonicalize_filename_mode):
32511         * lib/canonicalize-lgpl.c (__realpath): Recompute prefix_len after
32512         fetching the current directory.  Don't overrun the beginning of
32513         rpath if there's no slashes after the MS-Windows drive letter.
32515 2012-12-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
32517         maint.mk: avoid extra forks
32518         * top/maint.mk (_cfg_mk): The GNU make manual documents that
32519         "$(wildcard FILE)" expands to empty if FILE doesn't exist.
32520         So use that instead of "$(shell test -f FILE && echo FILE)".
32522 2012-12-07  Paul Eggert  <eggert@cs.ucla.edu>
32524         vasnprintf: fix ASCII_ONLY typo
32525         * lib/unistdio/u8-vasnprintf.c (FCHAR_T_ONLY_ASCII):
32526         * lib/unistdio/u16-vasnprintf.c (FCHAR_T_ONLY_ASCII):
32527         * lib/unistdio/u32-vasnprintf.c (FCHAR_T_ONLY_ASCII):
32528         New macro, replacing ASCII_ONLY.  This fixes a typo.  See thread at
32529         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00021.html>.
32531 2012-12-05  Paul Eggert  <eggert@cs.ucla.edu>
32533         list, oset, xlist, xoset: fix extern inline issue with C99
32534         This was introduced by my recent changes for 'inline'.
32535         Problem reported for gettext by Daiki Ueno in
32536         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00000.html>.
32537         * lib/gl_list.h (gl_list_nx_create_empty, gl_list_create)
32538         (gl_list_nx_create, gl_list_size, gl_list_node_value)
32539         (gl_list_node_set_value, gl_list_node_nx_set_value, gl_list_next_node)
32540         (gl_list_previous_node, gl_list_get_at)
32541         (gl_list_nx_set_at, gl_list_search, gl_list_search_from)
32542         (gl_list_search_from_to, gl_list_indexof, gl_list_indexof_from)
32543         (gl_list_indexof_from_to, gl_list_nx_add_first, gl_list_nx_add_last)
32544         (gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at)
32545         (gl_list_remove_node, gl_list_remove_at, gl_list_remove, gl_list_free)
32546         (gl_list_iterator, gl_list_iterator_from_to, gl_list_iterator_next)
32547         (gl_list_iterator_free, gl_sortedlist_search)
32548         (gl_sortedlist_search_from_to, gl_sortedlist_indexof)
32549         (gl_sortedlist_indexof_from_to, gl_sortedlist_add, gl_sortedlist_nx_add)
32550         (gl_sortedlist_remove):
32551         * lib/gl_oset.h (go_oset_nx_create_empty, gl_oset_size, gl_oset_search)
32552         (gl_oset_search_atleast, gl_oset_nx_add, gl_oset_remove, gl_oset_free)
32553         (gl_oset_iterator, gl_oset_iterator_next, gl_oset_iterator_free):
32554         * lib/gl_xlist.h (gl_list_create_empty, gl_list_create)
32555         (gl_list_node_set_value, gl_list_set_at, gl_list_add_first)
32556         (gl_list_add_last, gl_list_add_before, gl_list_add_after)
32557         (gl_list_add_at, gl_sortedlist_add):
32558         * lib/gl_xoset.h (gl_oset_create_empty, gl_oset_add):
32559         Wrap these extern decls inside "#if 0", because they are implemented
32560         as inline functions, and extern inline is not what's wanted here.
32561         It would simplify these .h files to remove the extern decls entirely,
32562         although a downside would be less-clear separation between
32563         specification and implementation.
32565 2012-11-29  Paul Eggert  <eggert@cs.ucla.edu>
32567         sys_stat: no 'static inline'
32568         * lib/sys_stat.in.h (rpl_mkdir): Now static, not static inline.
32569         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Do not require AC_C_INLINE.
32571         extern-inline: no 'static inline'
32572         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
32573         Do not require AC_C_INLINE.
32574         (_GL_INLINE, _GL_EXTERN_INLINE): Define as 'static', not as
32575         'static inline', for older compilers.
32577         snippet/warn-on-use: no 'static inline'
32578         * build-aux/snippet/warn-on-use.h:
32579         Remove unnecessary 'inline' in comment.
32581         rbtree-list, rbtreehash-list: no 'static inline'
32582         * lib/gl_anyrbtree_list2.h (rotate_left, rotate_right):
32583         * lib/gl_anytree_list2.h (node_at):
32584         * lib/gl_anytreehash_list1.h (hash_resize_after_add)
32585         (gl_oset_first, add_nodes_to_buckets):
32586         Now static, not static inline.
32588         regex: no 'static inline'
32589         * lib/regex_internal.c (calc_state_hash):
32590         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain)
32591         (bitset_empty, bitset_set_all, bitset_copy, bitset_not, bitset_merge)
32592         (bitset_mask, re_string_char_size_at, re_string_wchar_at):
32593         Now static, not static inline.
32594         (inline) [__GNUC__ < 3 && _LIBC]:
32595         Remove macro; no longer needed.
32597         xvasprintf: no 'static inline'
32598         * lib/xvasprintf.c (xstrcat):
32599         Now static, not static inline.
32600         * m4/xvasprintf.m4 (gl_XVASPRINTF):
32601         Do not require AC_C_INLINE.
32603         parse-datetime, parse-duration: no 'static inline'
32604         * lib/parse-datetime.y (to_uchar):
32605         * lib/parse-duration.c (str_const_to_ul, str_const_to_l)
32606         (scale_n_add):
32607         Now static, not static inline.
32608         * m4/parse-datetime.m4 (gl_PARSE_DATETIME):
32609         * modules/parse-duration (configure.ac):
32610         Do not require AC_C_INLINE.
32612         getaddrinfo: no 'static inline'
32613         * lib/getaddrinfo.c (validate_family):
32614         Now static, not static inline.
32615         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO):
32616         Do not require AC_C_INLINE.
32618         ftruncate, fts, lstat, openat, raise: no 'static inline'
32619         * lib/ftruncate.c (chsize_nothrow):
32620         * lib/fts.c (opendirat, diropen):
32621         * lib/lstat.c (orig_lstat):
32622         * lib/openat.c (orig_openat):
32623         * lib/raise.c (raise_nothrow):
32624         Now static, not static inline.
32625         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE):
32626         * m4/fts.m4 (gl_FUNC_FTS_CORE):
32627         * m4/lstat.m4 (gl_PREREQ_LSTAT):
32628         * m4/openat.m4 (gl_PREREQ_OPENAT):
32629         * m4/raise.m4 (gl_PREREQ_RAISE):
32630         Do not require AC_C_INLINE.
32632         fflush, stat: no 'static inline'
32633         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
32634         (clear_ungetc_buffer, disable_seek_optimization)
32635         (restore_seek_optimization, update_fpos_cache):
32636         * lib/stat.c (orig_stat):
32637         Now static, not static inline.
32638         * lib/fflush.c (disable_seek_optimization, restore_seek_optimization)
32639         (update_fpos_cache):
32640         Define only if ! (defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1).
32641         * m4/fflush.m4 (gl_PREREQ_FFLUSH):
32642         * m4/stat.m4 (gl_PREREQ_STAT):
32643         Do not require AC_C_INLINE.
32645         error, filevercmp: no 'static inline'
32646         * lib/error.c (is_open, flush_stdout):
32647         * lib/filevercmp.c (order):
32648         Now static, not static inline.
32649         * m4/error.m4 (gl_PREREQ_ERROR):
32650         * modules/filevercmp (configure.ac):
32651         Do not require AC_C_INLINE.
32653         dup, execute, fatal-signal, etc.: no 'static inline'
32654         * lib/dup.c (dup_nothrow):
32655         * lib/execute.c (nonintr_close, nonintr_open):
32656         * lib/fatal-signal.c (uninstall_handlers, install_handlers):
32657         * lib/fopen.c (orig_fopen):
32658         * lib/freadseek.c (freadptrinc):
32659         * lib/freopen.c (orig_freopen):
32660         * lib/fstat.c (orig_fstat, fstat_nothrow):
32661         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit)
32662         (get_rusage_as_via_iterator):
32663         * lib/get-rusage-data.c (get_rusage_data_via_setrlimit):
32664         * lib/getdtablesize.c (_setmaxstdio_nothrow):
32665         * lib/isatty.c (_isatty_nothrow):
32666         * lib/open.c (orig_open):
32667         * lib/read.c (read_nothrow):
32668         * lib/sigprocmask.c (signal_nothrow):
32669         * lib/spawn-pipe.c (nonintr_close, nonintr_open):
32670         * lib/vasnprintf.c (MAX_ROOM_NEEDED):
32671         * lib/wait-process.c (unregister_slave_subprocess):
32672         * lib/write.c (write_nothrow):
32673         Now static, not static inline.
32674         * lib/spawn-pipe.c (nonintr_open): Define only if
32675         (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__.
32676         * m4/dup.m4 (gl_PREREQ_DUP):
32677         * m4/execute.m4 (gl_EXECUTE):
32678         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL):
32679         * m4/fopen.m4 (gl_PREREQ_FOPEN):
32680         * m4/freadseek.m4 (gl_FUNC_FREADSEEK):
32681         * m4/freopen.m4 (gl_PREREQ_FREOPEN):
32682         * m4/fstat.m4 (gl_PREREQ_FSTAT):
32683         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE):
32684         * m4/isatty.m4 (gl_PREREQ_ISATTY):
32685         * m4/open.m4 (gl_PREREQ_OPEN):
32686         * m4/read.m4 (gl_PREREQ_READ):
32687         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK):
32688         * m4/spawn-pipe.m4 (gl_SPAWN_PIPE):
32689         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF):
32690         * m4/wait-process.m4 (gl_WAIT_PROCESS):
32691         * m4/write.m4 (gl_PREREQ_WRITE):
32692         * modules/get-rusage-as, modules/get-rusage-data (configure.ac):
32693         Do not require AC_C_INLINE.
32695         c-strtod, memcoll, readutmp: no 'static inline'
32696         * lib/c-strtod.c (c_locale):
32697         * lib/memcoll.c (strcoll_loop):
32698         * lib/readutmp.c (desirable_utmp_entry):
32699         Now static, not static inline.
32700         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD):
32701         * m4/memcoll.m4 (gl_MEMCOLL):
32702         * m4/readutmp.m4 (gl_READUTMP):
32703         Do not require AC_C_INLINE.
32705         arctwo, md4, md5, sha1, sha256, sha512: no 'static inline'
32706         * lib/arctwo.c (to_uchar):
32707         * lib/md4.c (set_uint32):
32708         * lib/md5.c (set_uint32):
32709         * lib/sha1.c (set_uint32):
32710         * lib/sha256.c (set_uint32):
32711         * lib/sha512.c (set_uint64):
32712         Now static, not static inline.  This is a bit simpler, and doesn't
32713         affect performance with GCC and default optimization.
32714         * m4/arctwo.m4 (gl_ARCTWO):
32715         * m4/md4.m4 (gl_MD4):
32716         * m4/md5.m4 (gl_MD5):
32717         * m4/sha1.m4 (gl_SHA1):
32718         * m4/sha256.m4 (gl_SHA256):
32719         * m4/sha512.m4 (gl_SHA512):
32720         Do not require AC_C_INLINE.
32722         cond, lock, thread: better 'inline'
32723         * lib/glthread/cond.c, lib/glthread/cond.h (_GLTHREAD_COND_INLINE):
32724         * lib/glthread/thread.c, lib/glthread/thread.h (_GLTHREAD_THREAD_INLINE):
32725         New macros.  Use them instead of static inline, for header functions.
32726         * lib/glthread/cond.c (gl_waitqueue_init, gl_waitqueue_remove)
32727         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
32728         * lib/glthread/lock.c (gl_waitqueue_init)
32729         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
32730         * lib/glthread/thread.c (get_current_thread_handle):
32731         Change 'static inline' to 'inline'.
32732         * lib/glthread/cond.h, lib/glthread/thread.h:
32733         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
32734         * m4/cond.m4 (gl_COND):
32735         * m4/lock.m4 (gl_PREREQ_LOCK):
32736         * m4/thread.m4 (gl_THREAD):
32737         Do not require AC_C_INLINE.
32738         * modules/cond, modules/thread (Depends-on): Add extern-inline.
32740         chdir-long, cycle-check, savewd: better 'inline'
32741         * lib/chdir-long.c (cdb_init, cdb_fchdir, cdb_free)
32742         (find_non_slash):
32743         * lib/cycle-check.c (is_zero_or_power_of_two):
32744         * lib/savewd.c (savewd_delegating):
32745         Change 'static inline' to 'inline'.
32746         * lib/savewd.c, lib/savewd.h (SAVEWD_INLINE): New macro.
32747         Replace all remaining uses of 'static inline' with it.
32748         * lib/savewd.h:
32749         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
32750         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG):
32751         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
32752         * m4/savewd.m4 (gl_SAVEWD):
32753         Do not require AC_C_INLINE.
32754         * modules/savewd (Depends-on): Add extern-inline.
32756         base32, base64: no need for 'inline'
32757         * lib/base32.c (to_uchar, get_8, decode_8):
32758         * lib/base64.c (to_uchar, get_4, decode_4):
32759         Change 'static inline' to 'inline'.
32760         * m4/base32.m4 (gl_PREREQ_BASE32):
32761         * m4/base64.m4 (gl_PREREQ_BASE64):
32762         Do not require AC_C_INLINE.
32764         array-oset, linkedhash-list, rbtree-oset: no need for 'inline'
32765         * lib/gl_array_oset.c (gl_array_nx_add_at):
32766         (gl_array_remove_at):
32767         * lib/gl_linkedhash_list.c (hash_resize_after_add)
32768         (add_to_bucket, remove_from_bucket):
32769         * lib/gl_rbtree_oset.c (rotate_left, rotate_right):
32770         Change 'static inline' to 'static', as it's simpler to omit
32771         'inline' unless there's a significant performance advantage.
32773         list, oset, xlist, xoset, xsublist: simplify via extern inline
32774         * lib/gl_list.h, lib/gl_list.c (GL_LIST_INLINE):
32775         * lib/gl_oset.c, lib/gl_oset.h (GL_OSET_INLINE):
32776         * lib/gl_xlist.c, lib/gl_xlist.h (GL_XLIST_INLINE):
32777         * lib/gl_xoset.c, lib/gl_xoset.h (GL_XOSET_INLINE):
32778         * lib/gl_xsublist.c, lib/gl_xsublist.h (GL_XSUBLIST_INLINE):
32779         New macro.  Replace all uses of 'static inline' with it.
32780         [HAVE_INLINE]: Implement functions as *_INLINE functions,
32781         instead of as macros FOO that are defined to static inline
32782         functions FOO_inline.
32783         * lib/gl_list.c, lib/gl_oset.c, lib/gl_xlist.c, lib/gl_xoset.c:
32784         * lib/gl_xsublist.c:
32785         Reimplement from scratch, by defining the corresponding *_INLINE
32786         macro and including the corresponding .h file.  This is simpler.
32787         * modules/list, modules/oset, modules/xlist, modules/xoset:
32788         (Files): Remove m4/gl_list.m4.
32789         (configure.ac): Remove gl_LIST.
32790         * m4/gl_list.m4: Remove.
32791         * modules/list, modules/oset, modules/xlist, modules/xoset:
32792         * modules/xsublist:
32793         (Depends-on): Depend on extern-inline, not inline.
32795         xalloc: better 'inline'
32796         * lib/xmalloc.c, lib/xalloc.h (XALLOC_INLINE):
32797         New macro.  Replace all uses of 'static inline' with it.
32798         (static_inline): Remove.
32799         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
32800         Let 'extern inline' do the work automatically, instead of doing
32801         it by hand.
32802         * m4/xalloc.m4 (gl_PREREQ_XALLOC, gl_PREREQ_XMALLOC):
32803         Remove.  All uses removed.
32804         * modules/xalloc (Depends-on): Remove 'inline'.  Add 'extern-inline'.
32806         gethrxtime: better 'inline'
32807         * lib/xtime.c: New file.
32808         * lib/gethrxtime.c, lib/gethrxtime.h (GETHRXTIME_INLINE):
32809         * lib/xtime.h (XTIME_INCLUDE):
32810         New macros.  Replace all uses of 'static inline' with them.
32811         * lib/gethrxtime.c (gethrxtime): Define only if
32812         ! (HAVE_ARITHMETIC_HRTIME_T && HAVE_DECL_GETHRTIME), since
32813         this source file is now always compiled, because of the extern inline.
32814         * lib/gethrxtime.h, lib/xtime.h:
32815         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
32816         * m4/gethrxtime.m4 (gl_GETHRXTIME): Do not check for clock macros
32817         if gethrtime works, as they're not needed in that case.
32818         (gl_XTIME): Do not require AC_C_INLINE.
32819         (gl_PREREQ_GETHRXTIME): Remove; all uses removed, as it's always
32820         compiled now.  Move the check into gl_GETHRXTIME.
32821         * modules/gethrxtime (Files, lib_SOURCES): Add lib/xtime.c.
32822         (Depends-on): Add extern-inline.
32823         (configure.ac): gethrxtime is always compiled now.
32824         (lib_SOURCES): Add gethrxtime.c.
32826         wctype-h: better 'inline'
32827         * lib/wctype-h.c: New file.
32828         * lib/wctype.in.h (_GL_WCTYPE_INLINE):
32829         New macro.  Replace all uses of 'static inline' with it.
32830         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
32831         * m4/wctype_h.m4 (gl_WCTYPE_H): Do not require AC_C_INLINE.
32832         * modules/wctype-h (Files, lib_SOURCES): Add lib/wctype-h.c.
32833         (Depends-on): Add extern-inline.
32835         unistd: better 'inline'
32836         * lib/unistd.c: New file.
32837         * lib/unistd.in.h (_GL_UNISTD_INLINE):
32838         New macro.  Replace all uses of 'static inline' with it.
32839         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
32840         * m4/unistd_h.m4 (gl_UNISTD_H): Do not require AC_C_INLINE.
32841         * modules/unistd (Files, lib_SOURCES): Add lib/unistd.c.
32842         (Depends-on): Add extern-inline.
32844         sys_socket: better 'inline'
32845         * lib/sys_socket.c: New file.
32846         * lib/sys_socket.in.h (_GL_SYS_SOCKET_INLINE):
32847         New macro.  Replace all uses of 'static inline' with it.
32848         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
32849         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Do not require AC_C_INLINE.
32850         * modules/sys_socket (Files, lib_SOURCES): Add lib/sys_socket.c.
32851         (Depends-on): Add extern-inline.
32853         stdio: better 'inline'
32854         * lib/stdio.c: New file.
32855         * lib/stdio.in.h (_GL_STDIO_INLINE):
32856         New macro.  Replace all uses of 'static inline' with it.
32857         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
32858         * m4/stdio_h.m4 (gl_STDIO_H): Do not require AC_C_INLINE.
32859         * modules/stdio (Files, lib_SOURCES): Add lib/stdio.c.
32860         (Depends-on): Add extern-inline.
32862         sigaction: better 'inline'
32863         * lib/sig-handler.c: New file.
32864         * lib/sig-handler.h (SIG_HANDLER_INLINE):
32865         New macro.  Replace all uses of 'static inline' with it.
32866         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
32867         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): Do not require AC_C_INLINE.
32868         * modules/sigaction (Files, lib_SOURCES): Add lib/sig-handler.c.
32869         (Depends-on): Add extern-inline.
32871         selinux-h: better 'inline'
32872         * lib/se-context.c, lib/se-selinux.c: New files.
32873         * lib/getfilecon.c (map_to_failure): Omit 'inline' for static function.
32874         * lib/se-context.in.h (SE_CONTEXT_INLINE):
32875         New macro.  Replace all uses of 'static inline' with it.
32876         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
32877         * lib/se-selinux.in.h (SE_SELINUX_INLINE):
32878         New macro.  Replace all uses of 'static inline' with it.
32879         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
32880         * modules/selinux-h (Files, lib_SOURCES):
32881         Add lib/se-context.c, lib/se-selinux.c.
32882         (Depends-on): Add extern-inline.
32883         (configure.ac): Do not require AC_C_INLINE.
32885         pthread: better 'inline'
32886         * lib/pthread.c: New file.
32887         * lib/pthread.in.h (_GL_PTHREAD_INLINE):
32888         New macro.  Replace all uses of 'static inline' with it.
32889         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
32890         * m4/pthread.m4 (gl_PTHREAD_CHECK):
32891         Add AC_LIBOBJ([pthread]).  Do not require AC_C_INLINE.
32892         * modules/pthread (Files): Add lib/pthread.c.
32893         (Depends-on): Add extern-inline.
32895         math: better 'inline'
32896         * lib/math.c: New file.
32897         * lib/math.in.h (_GL_MATH_INLINE):
32898         New macro.  Replace all uses of 'static inline' with it.
32899         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
32900         * m4/math_h.m4 (gl_MATH_H):
32901         Do not require AC_C_INLINE.
32902         * modules/math (Files, lib_SOURCES):
32903         Add lib/math.c.
32904         (Depends-on): Add extern-inline.
32906         count-one-bits: better 'inline'
32907         * lib/count-one-bits.c: New file.
32908         * lib/count-one-bits.h (COUNT_ONE_BITS_INLINE):
32909         New macro.  Replace all uses of 'static inline' with it.
32910         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
32911         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS):
32912         Do not require AC_C_INLINE.
32913         * modules/count-one-bits (Files, lib_SOURCES):
32914         Add lib/count-one-bits.c.
32915         (Depends-on): Add extern-inline.
32917         count-leading-zeros: better 'inline'
32918         * lib/count-leading-zeros.c: New file.
32919         * lib/count-leading-zeros.h (COUNT_LEADING_ZEROS_INLINE):
32920         New macro.  Replace all uses of 'static inline' with it.
32921         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
32922         * m4/count-leading-zeros.m4 (gl_COUNT_LEADING_ZEROS):
32923         Do not require AC_C_INLINE.
32924         * modules/count-leading-zeros (Files, lib_SOURCES):
32925         Add lib/count-leading-zeros.c.
32926         (Depends-on): Add extern-inline.
32928         bitrotate: better 'inline'
32929         * lib/bitrotate.c: New file.
32930         * lib/bitrotate.h (BITROTATE_INLINE):
32931         New macros.
32932         Replace all uses of 'static inline' with them.
32933         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
32934         * modules/bitrotate (Files, lib_SOURCES): Add lib/bitrotate.c.
32935         (Depends-on): Add extern-inline.
32936         (configure.ac): Do not require AC_C_INLINE.
32938 2012-11-20  Theophile Ranquet  <ranquet@lrde.epita.fr>
32940         maint.mk: avoid gratuitous failure
32941         Reported by Stefano Lattarini in
32942         <http://lists.gnu.org/r/bug-bison/2012-11/msg00022.html>
32943         * top/maint.mk (public-submodule-commit): Quote more safely.
32945 2012-11-20  Eli Zaretskii  <eliz@gnu.org>
32947         canonicalize, canonicalize-lgpl: support MS-Windows file names
32948         See <http://lists.gnu.org/r/bug-gnulib/2012-11/msg00074.html>
32949         for test cases, which it'd be nice to add at some point.
32950         * lib/canonicalize.c, lib/canonicalize-lgpl.c: Include dosname.h.
32951         * lib/canonicalize.c (canonicalize_filename_mode):
32952         * lib/canonicalize-lgpl.c (__realpath):
32953         Use FILE_SYSTEM_PREFIX_LEN instead of assuming that the first
32954         slash is at the beginning of the file name.  Use ISSLASH, instead
32955         of a literal '/'.  Use IS_ABSOLUTE_FILE_NAME instead of comparing
32956         the first character with '/'.  Test for
32957         DOUBLE_SLASH_IS_DISTINCT_ROOT only if the file name does not begin
32958         with a drive letter.
32959         * lib/canonicalize.c (SLASHES): New macro.
32960         (canonicalize_filename_mode): Use SLASHES instead of a literal "/".
32962 2012-11-17  Dmitry V. Levin  <ldv@altlinux.org>
32964         fts: introduce FTS_VERBATIM
32965         * lib/fts_.h (FTS_VERBATIM): New bit flag.
32966         (FTS_OPTIONMASK, FTS_NAMEONLY, FTS_STOP): Adjust.
32967         * lib/fts.c (fts_open): Honor it.
32969 2012-11-09  Pádraig Brady  <P@draigBrady.com>
32971         getlogin-tests: allow errno == ENXIO
32972         * tests/test-getlogin.c (main): Skip tests if getlogin fails
32973         with errno == ENXIO (No controlling tty).
32974         getlogin_r-tests: Likewise. Also allow errno == ENOENT
32975         * tests/test-getlogin_r.c (main): Skip tests if getlogin_r fails
32976         with errno == ENOENT.  This was reported to happen in various
32977         situations on GNU/Linux.
32979 2012-11-09  Paul Eggert  <eggert@cs.ucla.edu>
32981         getlogin-tests: allow errno == ENOENT
32982         * tests/test-getlogin.c (main): Skip tests if getlogin fails
32983         with errno == ENOENT.  This happened to me on Ubuntu 12.04.1 x86,
32984         when running a test in an Emacs shell buffer.
32986 2012-11-08  Jim Meyering  <jim@meyering.net>
32988         tests/nap.h: avoid warning about unused variable
32989         * tests/nap.h (nap_works): Remove now-unused declaration of "result".
32991         prefix-gnulib-mk: avoid overzealous "lib/"-prefix addition
32992         * build-aux/prefix-gnulib-mk (prefix): Tighten a regexp to require
32993         white space before each of the special-cased file names, to avoid
32994         adding "lib/" after $(libdir)/.  Reported by Matias A. fonzo
32995         in http://bugs.gnu.org/12830.
32997 2012-11-08  Paul Eggert  <eggert@cs.ucla.edu>
32999         fcntl-h: default O_SEARCH, O_EXEC back to O_RDONLY
33000         O_PATH doesn't work with Linux kernel 3.6.5, as fchmod (fd, ...)
33001         fails with errno == EBADF when fd is opened with O_PATH.
33002         Reported by Jim Meyering in
33003         <http://lists.gnu.org/r/bug-gnulib/2012-11/msg00026.html>.
33004         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
33005         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default back to O_RDONLY.
33007 2012-11-07  Paul Eggert  <eggert@cs.ucla.edu>
33009         test-utimens: speed up by taking shorter naps
33010         * tests/nap.h (lt_mtime, get_mtime, nap_works, guess_delay):
33011         New functions.
33012         (nap): Use them, to do a better job of guessing the delay.
33013         On Fedora 17 with ext4 atop md atop hard disks, this made
33014         test-utimens run 10x faster, because the test napped for
33015         1 ms at a time rather than 20 ms.  Reported by Stefano Lattarini in
33016         <http://bugs.gnu.org/12820#11>.
33018 2012-11-07  Jim Meyering  <jim@meyering.net>
33020         mountlist.c: fix a compilation failure
33021         * lib/mountlist.c (read_file_system_list): Fix a compilation failure
33022         I introduced while transforming commit v0.0-7683-g613bcb6
33024 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
33026         errno: port to LynxOS 178 2.2.2
33027         Problem reported by Joel Brobecker in
33028         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00088.html>.
33029         * doc/posix-headers/errno.texi (errno.h): Document this.
33030         * lib/errno.in.h (EILSEQ, GNULIB_defined_EILSEQ) [!EILSEQ]: New macros.
33031         * lib/strerror-override.c, lib/strerror-override.h (strerror_override):
33032         Supply a string for EILSEQ.
33033         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Check for EILSEQ.
33035 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
33037         fcntl-h: default O_SEARCH, O_EXEC to O_PATH if available
33038         Linux kernel 2.6.39 introduced O_PATH (see
33039         <http://lwn.net/Articles/433854/>) and this is a better fallback
33040         for O_SEARCH and O_EXEC than O_RDONLY, if O_PATH is available.
33041         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
33042         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default to O_PATH.
33043         * lib/fcntl.in.h (O_ACCMODE):
33044         * tests/test-fcntl-h.c (main):
33045         Do not reject O_ACCMODE merely because it has more than the
33046         minimal number of bits, as POSIX allows extensions here.
33048 2012-11-04  Andrew Warshall  <warshall@99main.com>  (tiny change)
33050         mountlist: do not classify a bind-mounted dir entry as "dummy"
33051         * lib/mountlist.c (ME_DUMMY_0): Rename from ME_DUMMY, but omit
33052         the "none"-testing clause.
33053         (ME_DUMMY) [MOUNTED_GETMNTENT1]: New macro to encapsulate the
33054         exception for bind-mounted directories.
33056 2012-11-01  Akim Demaille  <akim@lrde.epita.fr>
33058         quote: provide a means to escape strings with nul characters
33059         * lib/quote.h, lib/quotearg.c (quote_mem, quote_n_mem): New functions.
33060         (quote, quote_n): Rename formal arguments for consistency with
33061         quotearg.
33063 2012-10-30  Paul Eggert  <eggert@cs.ucla.edu>
33065         test-raise: don't assume 199 is an invalid signal
33066         * tests/test-raise.c (main): Don't assume 199 is not a signal number.
33068         sh-quote-tests: port to Solaris 9
33069         * modules/sh-quote-tests (test_sh_quote_LDADD): Add @LIBINTL@.
33070         Problem reported by Dagobert Michelsen in
33071         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00114.html>.
33073 2012-10-28  Jim Meyering  <jim@meyering.net>
33075         maint.mk: rename a new configurable variable
33076         * top/maint.mk (_gl_translatable_string_re): Rename from
33077         translation-markers: _gl_ prefix to insulate from user Makefile code,
33078         and the _re suffix to inform that it's a regular expression.
33080 2012-10-26  Eric Blake  <eblake@redhat.com>
33082         maint.mk: let packages tweak sc_po_check pattern
33083         * top/maint.mk (sc_po_check): Add translation-markers, to allow
33084         finding files with other translation markers.
33086 2012-10-16  Paul Eggert  <eggert@cs.ucla.edu>
33088         euidaccess: speed up 'configure' on GNU hosts
33089         * m4/euidaccess.m4 (gl_FUNC_NONREENTRANT_EUIDACCESS):
33090         Check for setregid here, not in gl_PREREQ_EUIDACCESS, since
33091         it's needed only in this case.  Use AC_CHECK_DECLS, not
33092         AC_CHECK_DECLS_ONCE.
33093         (gl_PREREQ_EUIDACCESS): Do not use AC_CHECK_HEADERS_ONCE libgen.h
33094         or AC_REQUIRE for AC_FUNC_GETGROUPS.
33096         * lib/regexec.c (re_search_internal): Fix grammar in comment.
33098 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
33100         fchmodat, fchownat, fstatat: port to non-inlining compilers
33101         Problem reported for FreeBSD 9 by Jim Meyering in
33102         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00070.html>.
33103         * lib/chmodat.c, lib/chownat.c, lib/statat.c:
33104         New files, which define FCHMODAT_INLINE etc.
33105         * lib/fchmodat.c (FCHMODAT_INLINE):
33106         * lib/fchownat.c (FCHOWNAT_INLINE):
33107         * lib/fstatat.c (FSTATAT_INLINE):
33108         Remove, as chmodat.c etc. now do this.
33109         * modules/fchmodat (Files): Add lib/chmodat.c.
33110         * modules/fchownat (Files): Add lib/chownat.c.
33111         * modules/fstatat (Files): Add lib/statat.c.
33113 2012-10-15  Jim Meyering  <jim@meyering.net>
33115         fchmodat.c, fchownat.c: compile-impeding typos
33116         * lib/fchmodat.c (FCHMODAT_INLINE): Fix typo: s/#include/#define/
33117         * lib/fchownat.c (FCHOWNAT_INLINE): Likewise.
33118         Introduced in commit v0.0-7636-gd202279.
33120 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
33122         fcntl-h: support GNU flags like O_IGNORE_CTTY
33123         * doc/posix-headers/fcntl.texi (fcntl.h): Support O_IGNORE_CTTY,
33124         O_NOLINK, and O_NOTRANS.  These flags are nonzero on GNU/Hurd
33125         systems.  Discovered when using fcntl-h with GNU Emacs, which uses
33126         O_IGNORE_CTTY.  Fix misspelling of F_SETLKW.
33127         * lib/fcntl.in.h (O_IGNORE_CTTY, O_NOLINK, O_NOTRANS):
33128         Define to 0 if not already defined.
33129         * tests/test-fcntl-h.c: Test these new flags.
33131 2012-10-14  Paul Eggert  <eggert@cs.ucla.edu>
33133         faccessat, etc.: support AT_FDCWD-only use
33134         * lib/at-func.c: If GNULIB_SUPPORT_ONLY_AT_FDCWD, then support
33135         this function only if its first argument is AT_FDCWD.
33136         Emacs wants faccessat for AT_EACCESS but not for any first-arg
33137         values other than AT_FDCWD, so it doesn't want all the openat
33138         machinery with fchdir etc.
33139         * modules/faccessat, modules/fchmodat, modules/fchownat (Files):
33140         * modules/fstatat, modules/mkdirat, modules/openat (Files):
33141         * modules/unlinkat (Files):
33142         Remove lib/openat-priv.h, as at-internal supplies this file.
33143         Removing this file here allows us to support programs like Emacs
33144         that avoid at-internal.
33146         faccessat: speed up 'configure' on mainstream hosts
33147         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT):
33148         Use AT_CHECK_FUNCS for 'access', not AC_CHECK_FUNCS_ONCE,
33149         since it's only on unusual platforms that we need to check for
33150         'access', and it's better not to slow 'configure' down on all
33151         platforms.
33153         faccessat: port to Solaris 10
33154         * lib/faccessat.c: Include <fcntl.h>, for AT_EACCESS.
33155         Needed on Solaris 10, which doesn't have AT_EACCESS,
33156         so we need the Gnulib fcntl.h, which defines it.
33158 2012-10-14  Pádraig Brady  <P@draigBrady.com>
33159         canonicalize: fix C89 compilation
33160         * lib/canonicalize.c (canonicalize_filename_mode): Swap order of
33161         declarations so C89 is supported.  Also remove the comment
33162         referencing memorty allocation as the suggested feature could
33163         not be implemented as suggested.
33164         Reported by Michael Goffioul.
33166 2012-10-12  Paul Eggert  <eggert@cs.ucla.edu>
33168         group-member: omit unnecessary dependencies
33169         This is for Emacs, which has its own allocator and where we
33170         don't want to use xalloc.
33171         * lib/group-member.c: Include xalloc-oversized.h, not xalloc.h,
33172         since we no longer use xmalloc.  Do not include stdbool.h, since
33173         the changes below happen to remove the only use of bool.
33174         (GROUPBUF_SIZE): New constant.
33175         (struct group_info): Remove n_groups member.  Add groupbuf member.
33176         This lets us get the groups without using malloc, usually.
33177         (free_group_info, get_group_info): Adjust to this.
33178         (get_group_info): Return the number of groups found, or -1 on error.
33179         Use plain malloc not xmalloc, and treat its failure as if there
33180         are no groups, as the user already loses in case of error.
33181         (group_member): Simplify, based on changes to get_group_info.
33182         * modules/group-member (Depends-on): Remove dependencies on
33183         xalloc and stdbool.  Add dependency on xalloc-oversized.
33185 2012-10-08  Alexandre Duret-Lutz  <adl@lrde.epita.fr>  (tiny change)
33187         gethrxtime: port to C++
33188         * lib/gethrxtime.h, lib/xtime.h [__cplusplus]: Add extern "C".
33190 2012-10-04  Paul Eggert  <eggert@cs.ucla.edu>
33192         ptsname: fix macro-name typo
33193         * lib/stdlib.in.h (ptsname): Fix misspelling of GNULIB_NAMESPACE.
33195 2012-10-03  Simon Josefsson  <simon@josefsson.org>
33197         inttostr: Relax license.
33198         * modules/inttostr (License): Change from LGPL to LGPLv2+.
33200 2012-10-03  Eric Blake  <eblake@redhat.com>
33202         ptsname_r: support ptys returned by FreeBSD posix_openpt
33203         * lib/ptsname_r.c (__ptsname_r): Don't munge name if it already
33204         lives in /dev/pts/.
33206 2012-10-02  Eric Blake  <eblake@redhat.com>
33208         pselect: reject invalid file descriptors
33209         * m4/pselect.m4 (gl_FUNC_PSELECT): Probe for FreeBSD bug.
33210         * lib/pselect.c (rpl_pselect) [!win32]: Work around it.
33211         * modules/pselect (Depends-on): Add dup2.
33212         * doc/posix-functions/pselect.texi (pselect): Document this.
33214         select: reject invalid file descriptors
33215         * m4/select.m4 (gl_FUNC_SELECT): Probe for FreeBSD bug.
33216         * lib/select.c (rpl_select) [!win32]: Work around it.
33217         * modules/select (Depends-on): Add dup2.
33218         * doc/posix-functions/select.texi (select): Document this.
33220         select: enhance test
33221         * tests/test-select.h (do_select_bad_nfd_nowait, test_bad_nfd):
33222         New functions.
33223         (test_function): Enhance test.
33224         (do_select_bad_fd): Avoid any stale errno values.
33226         ptsname: reject invalid file descriptors
33227         http://www.austingroupbugs.net/view.php?id=503
33228         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Probe for FreeBSD bug.
33229         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add new witness.
33230         * modules/stdlib (Makefile.am): Replace witness.
33231         * lib/stdlib.in.h (ptsname): Allow for replacement.
33232         * modules/ptsname (configure.ac): Trigger replacement.
33233         * doc/posix-functions/ptsname.texi (ptsname): Document this.
33235 2012-10-02:  Nikos Mavrogiannopoulos  <nmav@gnutls.org>  (tiny change)
33237         hash-pjw-bare: new module
33238         * lib/hash-pjw-bare.c: New file, very much like hash-pjw.c.
33239         * lib/hash-pjw-bare.h: Likewise.
33240         * modules/hash-pjw-bare: New file.
33241         * MODULES.html.sh (Misc): Add it.
33243 2012-10-02  Eric Blake  <eblake@redhat.com>
33245         manywarnings: cater to more gcc infelicities
33246         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add test for
33247         -Wuninitialized without -O.
33249 2012-10-01  Ed Maste  <emaste@freebsd.org>  (tiny change)
33251         select, poll tests: Make setsockopt invocation effective.
33252         * tests/test-poll.c (open_server_socket): Move setsockopt() call before
33253         the bind() call.
33254         * tests/test-select.h (open_server_socket): Likewise.
33256 2012-09-30  Paul Eggert  <eggert@cs.ucla.edu>
33258         sockets, sys_stat: restore AC_C_INLINE
33259         This undoes the 2012-09-22 patch.
33260         * m4/sockets.m4 (gl_SOCKETS):
33261         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
33262         Restore AC_C_INLINE, since MSVC requires __inline or _inline
33263         and does not support plain 'inline'.  Reported by Bruno Haible in
33264         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00183.html>.
33266 2012-09-30  Bruno Haible  <bruno@clisp.org>
33268         localeconv tests: Avoid test failure on OpenIndiana.
33269         * tests/test-localeconv.c (main): On OpenIndiana (a Solaris 11 variant)
33270         skip the 'grouping' and 'mon_grouping' tests.
33271         Reported by Jim Meyering.
33273 2012-09-30  Bruno Haible  <bruno@clisp.org>
33275         havelib: Follow libtool developments.
33276         * m4/lib-ld.m4: Rebase on libtool.m4 from libtool-2.4.
33277         Suggested by Simon Josefsson.
33279 2012-09-29  Jim Meyering  <meyering@redhat.com>
33281         fstatat.c: fix a compile-impeding typo
33282         * lib/fstatat.c (FSTATAT_INLINE): Fix typo: s/#include/#define/
33283         Introduced in commit v0.0-7636-gd202279.
33284         Mats Erik Andersson reported the resulting OpenBSD compilation failure.
33286 2012-09-28  Akim Demaille  <akim@lrde.epita.fr>
33288         extern-inline: provide a -Wundef safe config.h
33289         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Protect
33290         "#if __GNUC_STDC_INLINE__" with "defined __GNUC_STDC_INLINE__"
33291         to produce a -Wundef warning free config.h.
33293 2012-09-26  Paul Eggert  <eggert@cs.ucla.edu>
33295         hash-pjw: relax license to LGPLv2+
33296         * modules/hash-pjw (License): Relax, with consent of author.
33298 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
33300         maint.mk: fix strict vs. lazy variable issues with RELEASE
33301         * top/maint.mk (_equal): New function.
33302         (member_check): Strip the result to avoid spurious spaces.
33303         (url_dir_list): Do not use ifeq, which is strict, as it will
33304         require RELEASE_TYPE to be defined.
33305         (announcement_Cc_, announcement_mail_headers_): Likewise: instead
33306         of relying on ifeq, use $(release_type) to dispatch (lazily) onto...
33307         (announcement_Cc_alpha,announcement_mail_headers_alpha)
33308         (announcement_Cc_beta,announcement_mail_headers_beta)
33309         (announcement_Cc_stable,announcement_mail_headers_stable): these.
33310         (release): Do not depend on $(release-type), as it forces its
33311         evaluation.  Bounce to it.
33313 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
33315         maint.mk: formatting changes
33316         * top/maint.mk: Indent bodies of if's.
33318 2012-09-21  Akim Demaille  <akim@lrde.epita.fr>
33320         maint.mk: factor the validation of RELEASE_TYPE
33321         With help from Jim Meyering.
33322         http://lists.gnu.org/r/bug-gnulib/2012-09/msg00132.html
33323         * top/maint.mk (_empty, _sp): Move their definition earlier.
33324         (member-check, release-type): New.
33325         Use the latter instead of $(RELEASE_TYPE).
33326         Remove now useless local checks.
33328 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
33330         maint.mk: provide "make upload" to ease uploading
33331         See
33332         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00028.html>.
33333         Do not depend simply on the current $(VERSION), as there may have been
33334         new commits since the tarball generation.  Rather, rely on $(RELEASE),
33335         as "make release-commit" already does.
33337         For consistency, add "make release RELEASE='X.Y TYPE'" as an alias for
33338         "make TYPE".
33340         * top/maint.mk (upload_command, upload, release): New.
33341         (RELEASE_TYPE): If undefined, default to the second word of $(RELEASE).
33342         (VERSION): first word of $(RELEASE) is always right.
33343         (emit_upload_commands): Adjust.
33344         * top/README-release: Update.
33346 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
33348         maint.mk: silent rules
33349         With help from Stefano Lattarini.
33350         * top/maint.mk (writable-files): Use $(AM_V_GEN).
33351         (announcement): Use $(AM_V_at).
33353 2012-09-24  Paul Eggert  <eggert@cs.ucla.edu>
33355         localename: port gl_locale_name_thread_unsafe to FreeBSD
33356         * lib/localename.c (gl_locale_name_thread_unsafe): Port to FreeBSD,
33357         and use the simpler FreeBSD implementation on Mac OS X as well.
33358         Original idea suggested by Ed Maste in
33359         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00094.html>.
33361 2012-09-22  Paul Eggert  <eggert@cs.ucla.edu>
33363         binary-io, eealloc, mbfile, mbiter, mbutil, xsize: better 'inline'
33364         * lib/binary-io.c, lib/eealloc.c, lib/mbfile.c, lib/mbiter.c:
33365         * lib/mbuiter.c, lib/xsize.c: New files.
33366         * lib/binary-io.h (BINARY_IO_INLINE):
33367         * lib/eealloc.h (EEALLOC_INLINE):
33368         * lib/mbfile.h (MBFILE_INLINE):
33369         * lib/mbiter.h (MBITER_INLINE):
33370         * lib/mbuiter.h (MBUITER_INLINE):
33371         * lib/xsize.h (XSIZE_INLINE):
33372         New macros.
33373         Replace all uses of 'static inline' with them.
33374         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
33375         * m4/eealloc.m4 (gl_EEALLOC):
33376         * m4/mbfile.m4 (gl_MBFILE):
33377         * m4/mbiter.m4 (gl_MBITER):
33378         * m4/xsize.m4 (gl_XSIZE):
33379         Do not require AC_C_INLINE.
33380         * modules/binary-io (Files, lib_SOURCES): Add lib/binary-io.c
33381         * modules/eealloc (Files, lib_SOURCES): Add lib/eealloc.c.
33382         * modules/mbfile (Files, lib_SOURCES): Add lib/mbfile.c.
33383         * modules/mbiter (Files, lib_SOURCES): Add lib/mbiter.c.
33384         * modules/mbuiter (Files, lib_SOURCES): Add lib/mbuiter.c.
33385         * modules/xsize (Files, lib_SOURCES): Add lib/xsize.c.
33386         * modules/binary-io, modules/eealloc, modules/mbfile:
33387         * modules/mbiter, modules/mbuiter:
33388         (Depends-on): Add extern-inline.
33390         pipe-filter-gi, pipe-filter-ii: better use of 'inline'
33391         * lib/pipe-filter-aux.c: New file.
33392         * lib/pipe-filter-aux.h (PIPE_FILTER_AUX_INLINE): New macro.
33393         Replace all uses of 'static inline' with it.
33394         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
33395         * lib/pipe-filter-gi.c (filter_init, filter_cleanup)
33396         (filter_retcode): No real need for inline here.
33397         * modules/pipe-filter-gi, modules/pipe-filter-ii:
33398         (Files): Add lib/pipe-filter-aux.c.
33399         (Depends-on): Add extern-inline.
33400         (configure.ac): Do not require AC_C_INLINE.
33401         (lib_SOURCES): Add pipe-filter-aux.c.
33403         fdutimensat: omit unnecessary AC_C_INLINE
33404         * modules/fdutimensat (configure.ac): Remove AC_C_INLINE.
33406         fchmodat, fchownat, fstatat: use extern-inline
33407         * lib/fchmodat.c, lib/openat.h (FCHMODAT_INLINE):
33408         * lib/fchownat.c, lib/openat.h (FCHOWNAT_INLINE):
33409         * lib/fstatat.c, lib/openat.h (FSTATAT_INLINE):
33410         New macros.
33411         * lib/openat.h:
33412         Replace all uses of 'static inline' with them.
33413         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
33414         * modules/fchmodat, modules/fchownat, modules/fstatat:
33415         * modules/openat-h:
33416         (Depends-on):
33417         Add extern-inline.
33418         (configure.ac): Remove AC_C_INLINE.
33420         acl, mbchar, priv-set: use extern-inline
33421         * lib/set-mode-acl.c, lib/acl-internal.h (ACL_INTERNAL_INLINE):
33422         * lib/mbchar.c, lib/mbchar.h (MBCHAR_INLINE):
33423         * lib/priv-set.c, lib/priv-set.h (PRIV_SET_INLINE):
33424         New macros.
33425         * lib/acl-internal.h, lib/mbchar.h, lib/priv-set.h:
33426         Replace all uses of 'static inline' with it.
33427         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
33428         * m4/acl.m4 (gl_FUNC_ACL):
33429         * m4/mbchar.m4 (gl_MBCHAR):
33430         * m4/priv-set.m4 (gl_PRIV_SET):
33431         Remove AC_C_INLINE, since 'inline' is no longer used directly.
33432         * modules/acl, modules/mbchar, modules/priv-set (Depends-on):
33433         Add extern-inline.
33435         sockets, sys_stat: remove AC_C_INLINE in MSVC-only cases
33436         * m4/sockets.m4 (gl_SOCKETS):
33437         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
33438         Remove AC_C_INLINE.  Here, 'inline' is used only in MSVC
33439         environments where it's already guaranteed to work, so we needn't
33440         check for it at 'configure'-time.
33442         tls-tests: omit unnecessary 'inline'
33443         * tests/test-tls.c (perhaps_yield): No longer inline.
33444         Simplicity and portability trump efficiency in test cases.
33446         utimens-tests: avoid unnecessary 'inline'
33447         * modules/fdutimensat-tests (configure.ac):
33448         * modules/futimens-tests (configure.ac):
33449         * modules/utimens-tests (configure.ac):
33450         * modules/utimensat-tests (configure.ac):
33451         Remove AC_C_INLINE.
33452         * tests/test-utimens-common.h (ctime_compare):
33453         No longer inline.  Simplicity and portability trump efficiency here.
33455         misc: don't limit commentary to inline functions
33456         * lib/binary-io.h, lib/malloca.h, lib/safe-alloc.c:
33457         * lib/xalloc-oversized.h, lib/xsize.h:
33458         Contrast macros to functions in general, not just to inline functions,
33459         when the commentary does not apply only to inline functions.
33461 2012-09-20  Jim Meyering  <meyering@redhat.com>
33463         non-recursive-gnulib-prefix-hack: new module
33464         * build-aux/prefix-gnulib-mk: Copied from coreutils, derived from
33465         the file that originated in Bison.
33466         * m4/non-recursive-gnulib-prefix-hack.m4: Likewise, this code is
33467         largely copied from a snippet that resided in bison's configure.ac.
33468         * modules/non-recursive-gnulib-prefix-hack: New file.
33469         * MODULES.html.sh (Support for maintaining and releasing projects):
33470         Add it.
33472 2012-09-18  Jim Meyering  <meyering@redhat.com>
33474         maint.mk: generalize _gl_tight_scope for non-recursive make
33475         * top/maint.mk (_gl_tight_scope): Remove a hard-coded assumption
33476         that *.h would describe additional .h files in the directory
33477         specified by $(_gl_TS_dir).  I.e., add this...
33478         (_gl_TS_other_headers): New variable.
33480         maint.mk: exempt trailing blanks found in "binary" files
33481         * top/maint.mk (sc_trailing_blank): Filter out any matches found in
33482         "binary" files, as reported by grep.  Suggested by Richard W.M. Jones
33483         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
33485 2012-09-17  Jim Meyering  <meyering@redhat.com>
33487         maint.mk: sc_prohibit_path_max_allocation: don't FP for UNIX_PATH_MAX
33488         * top/maint.mk (sc_prohibit_path_max_allocation): Avoid false-positive
33489         match for symbols like UNIX_PATH_MAX. Reported by Richard W.M. Jones
33490         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
33492 2012-09-17  Jim Meyering  <meyering@redhat.com>
33494         maint.mk: teach sc_prohibit_magic_number_exit to accept 77
33495         * top/maint.mk (sc_prohibit_magic_number_exit): Do not complain about
33496         uses like "exit (77)".  "77" is automake's "skip this test" exit code.
33497         It is not in the same category as "exit (0)" or "exit (1)", and
33498         besides, I know of no symbolic name for that 77.  Reported by
33499         Richard W.M. Jones in
33500         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
33502 2012-09-17  Jim Meyering  <meyering@redhat.com>
33504         maint.mk: relax sc_prohibit_strcmp, to avoid a false positive
33505         * top/maint.mk (sc_prohibit_strcmp): Relax regexp, so as to match
33506         all uses of #define, not just those that start in column 1.
33507         Richard W.M. Jones reported a false positive in
33508         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
33510 2012-09-16  Paul Eggert  <eggert@cs.ucla.edu>
33512         localcharset: work around Mac OS X bug with UTF-8 and MB_CUR_MAX
33513         * lib/localcharset.c (locale_charset) [DARWIN7]:
33514         Return "ASCII" if the system reports "UTF-8" and MB_CUR_MAX <= 1,
33515         as these two values are incompatible.  Problem reported by Max Horn.
33516         For more discussion, please see
33517         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00061.html>.
33519         doc: document sticky-EOF issue
33520         * doc/posix-functions/fgetc.texi (fgetc):
33521         * doc/posix-functions/fgets.texi (fgets):
33522         * doc/posix-functions/fread.texi (fread):
33523         * doc/posix-functions/fscanf.texi (fscanf):
33524         * doc/posix-functions/getc.texi (getc):
33525         * doc/posix-functions/getchar.texi (getchar):
33526         * doc/posix-functions/scanf.texi (scanf):
33527         Mention that glibc and default Solaris do not conform to
33528         C99 and POSIX-2001 or later, with respect to how getchar
33529         etc. behave when feof reports nonzero.
33531 2012-09-13  Joachim Schmitz  <jojo@schmitz-digital.de>  (tiny change)
33533         poll: fix poll(0, NULL, msec)
33534         * lib/poll.c: don't exit early if NULL is the 1st arg to poll(),
33535         but nfd is 0.  In that case poll should behave like select.
33537 2012-09-13  Joachim Schmitz  <jojo@schmitz-digital.de>  (tiny change)
33538             Paolo Bonzini  <bonzini@gnu.org>
33540         poll: fix for systems that can't recv() on a non-socket
33541         * lib/poll.c: if recv returns ENOTSOCK, assume the descriptor
33542         is readable.  In this case POLLHUP will not be supported.
33543         * doc/posix-functions/poll.texi: Document this.
33545 2012-09-13  Paolo Bonzini  <bonzini@gnu.org>
33547         poll/select: document portability problems not fixed by Gnulib.
33548         * doc/posix-functions/poll.texi: poll does not work well on
33549         pipes under Windows.  It has the same limitations as select on
33550         BeOS.
33551         * doc/posix-functions/select.texi: select does not work well
33552         on pipes under Windows.
33554 2012-09-10  Paul Eggert  <eggert@cs.ucla.edu>
33556         fcntl-h: check for AIX 7.1 bug with O_NOFOLLOW and O_CREAT
33557         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Check for AIX 7.1 bug
33558         that caused a GNU tar test failure.  Problem reported by Jez Wain; see
33559         <http://lists.gnu.org/r/bug-tar/2012-07/msg00018.html>.
33561 2012-09-06  Eric Blake  <eblake@redhat.com>
33563         net_if: give more details about the bug being fixed
33564         * doc/posix-headers/net_if.texi: Add clarification.
33566 2012-09-05  Eric Blake  <eblake@redhat.com>
33568         net_if: new module
33569         * modules/net_if: New module, borrowing ideas from netinet_in.
33570         * m4/net_if_h.m4: New file.
33571         * lib/net_if.in.h: Likewise.
33572         * doc/posix-headers/net_if.texi (net/if.h): Document it.
33573         * MODULES.html.sh (lacking POSIX:2008): Likewise.
33574         * tests/test-net_if.c: Make function checks conditional.
33575         Reported by Jasper Lievisse Adriaanse <jasper@humppa.nl>.
33577 2012-09-05  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
33579         readutmp: fix non-portable UT_PID use
33580         * lib/readutmp.c (desirable_utmp_entry) <READ_UTMP_CHECK_PIDS>:
33581         Use `UT_PID (u) > 0' as absolute condition.
33583 2012-09-04  Jim Meyering  <meyering@redhat.com>
33585         fts: reduce two or more trailing spaces to just one, usually
33586         * lib/fts.c (fts_open): Upon initialization, if a name ends in two
33587         or more slashes, trim all but the final one.  But if a name consists
33588         solely of two slashes, don't modify it.  If it consists solely of
33589         three or more slashes, strip all but one.
33591         This is part of the solution to a minor problem with rm:
33592         it would print a bogus ELOOP diagnostic when failing to remove
33593         the slash-decorated name of a symlink-to-directory:
33595             $ mkdir d && ln -s d s && env rm -r s/
33596             rm: cannot remove 's': Too many levels of symbolic links
33598         With the change below and a trivial don't-trim-trailing-slashes
33599         adjustment to remove.c, it does this:
33601             $ env rm -r s/
33602             rm: cannot remove 's/': Not a directory
33604         Improved by: Eric Blake
33606         fts: when there is no risk of overlap, use memcpy, not memmove
33607         * lib/fts.c (fts_alloc): Fix unjustified memcopy: s/memmove/memcpy/
33609 2012-08-29  Paul Eggert  <eggert@cs.ucla.edu>
33611         stdbool: be more compatible with mixed C/C++ compiles
33612         * lib/stdbool.in.h (_Bool, true, false) [__cplusplus]:
33613         Define to bool, true, false, respectively, as GCC's builtin
33614         stdbool.h does.  Problem reported by Michael Goffioul in
33615         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00143.html>.
33617 2012-08-28  Jim Meyering  <meyering@redhat.com>
33619         revert last change: it was not needed
33620         * tests/test-vc-list-files-git.sh: There's already a test for
33621         a working git, just below.
33623 2012-08-28  Jim Meyering  <meyering@redhat.com>
33625         tests: test-vc-list-files-git.sh: skip if git is not available
33626         * tests/test-vc-list-files-git.sh: Skip this test when git is
33627         not available.
33629 2012-08-26  Bruno Haible  <bruno@clisp.org>
33631         gnulib-tool: Remove no-op option --no-changelog.
33632         * gnulib-tool (func_usage): Don't mention --no-changelog.
33633         (do_changelog): Remove variable.
33634         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
33636 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
33638         doc: remove fdl-1.2.texi
33639         It is no longer used or maintained, and its use of @acronym
33640         is problematic.  See the thread containing
33641         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00134.html>.
33642         * config/srclist.txt: Remove doc/old-licenses/fdl-1.2.texi.
33643         * doc/old-licenses/fdl-1.2.texi: Remove.
33645         execinfo: port to FreeBSD
33646         * m4/execinfo.m4 (gl_EXECINFO_H): Set LIB_EXECINFO to -lexecinfo
33647         if needed, as in FreeBSD.  Reported by Bastien Roucariès in
33648         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00113.html>.
33649         * modules/execinfo (Link): Add $(LIB_EXECINFO).
33651 2012-08-23  Jim Meyering  <meyering@redhat.com>
33653         xstrtol.h: avoid "_Noreturn is not at beginning of declaration" warning
33654         * lib/xstrtol.h: Put "_Noreturn" before "void" in declaration,
33655         to placate gcc's -Wold-style-declaration.
33657 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
33659         doc: do not use @acronym
33660         * doc/inet_ntoa.texi (inet_ntoa):
33661         * doc/parse-datetime.texi (Seconds since the Epoch)
33662         (Specifying time zone rules):
33663         * doc/posix-functions/inet_ntoa.texi (inet_ntoa):
33664         Don't use @acronym.  Problem reported by John Darlington in
33665         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00124.html>.
33667 2012-08-23  Paul Eggert  <eggert@cs.ucla.edu>
33669         stdnoreturn: port to newer GCCs
33670         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): Avoid problems with
33671         bleeding-edge GCC that complains about 'int _Noreturn foo (void);'.
33672         Problem reported by Jim Meyering in
33673         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00121.html>.
33674         Also, rename the 'test' function to a void a clash with the
33675         already-supplied 'main' function; this fixes a bug that incorrectly
33676         rejected GCC 4.7.1's <stdnoreturn.h>.
33677         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
33678         Document GCC problem.
33680 2012-08-22  Reuben Thomas  <rrt@sc3d.org>
33682         pipe-filter: fix comment typo
33683         * lib/pipe-filter.h: Mention correct function.
33685 2012-08-22  Paul Eggert  <eggert@cs.ucla.edu>
33687         execinfo: new module
33688         This is for Emacs.  Currently, it provides a no-effect stub
33689         on all platforms where it does not already work.
33690         It already works on glibc-based systems, and on Solaris 11.
33691         * lib/execinfo.c, lib/execinfo.in.h, m4/execinfo.m4, modules/execinfo:
33692         New files.
33693         * doc/glibc-headers/execinfo.texi (execinfo.h):
33694         * MODULES.html.sh (Misc): Document it.
33696 2012-08-20  Paul Eggert  <eggert@cs.ucla.edu>
33698         extern-inline: support old GCC 'inline'
33699         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Use pre-C99 GCC 'inline'
33700         if available.  This applies to GCC versions 2.7 through 4.2, or
33701         when newer GCC is using -fgnu89-inline.  The goal is to address
33702         some of the performance issues mentioned by Bruno Haible in
33703         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00097.html>.
33705 2012-08-20  Eric Blake  <eblake@redhat.com>
33707         maint.mk: avoid redundant file name in message
33708         * top/maint.mk (sc_prohibit_strcmp, sc_unmarked_diagnostics)
33709         (sc_prohibit_defined_have_decl_tests, sc_const_long_option)
33710         (sc_makefile_path_separator_check): Remove bogus $(ME).
33712 2012-08-20  Mike Frysinger  <vapier@gentoo.org>
33714         timer-time: fix link order when static linking on glibc
33715         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
33716         _after_ -lrt so that it's significant.
33718 2012-08-19  Paul Eggert  <eggert@cs.ucla.edu>
33720         timespec: omit unnecessary AC_C_INLINE
33721         * m4/timespec.m4 (gl_TIMESPEC): Do not require AC_C_INLINE.
33723         stat-time: omit unnecessary AC_C_INLINE
33724         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
33725         Do not require AC_C_INLINE.
33727         ignore-value: omit unnecessary AC_C_INLINE
33728         * modules/ignore-value (configure.ac): Do not require AC_C_INLINE.
33730         sys_select: avoid 'static inline'
33731         * lib/sys_select.in.h (rpl_fd_isset): Now static, not static inline.
33733         mktime: avoid 'static inline'
33734         * lib/mktime.c (leapyear, ydhms_diff): Now static, not static inline.
33735         * m4/mktime.m4 (gl_PREREQ_MKTIME): Do not require AC_C_INLINE.
33737 2012-08-19  Bruno Haible  <bruno@clisp.org>
33739         gnulib-tool: Improve coding style.
33740         * gnulib-tool (func_emit_tests_Makefile_am): Set perhapsLT, like in
33741         func_emit_lib_Makefile_am.
33742         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
33744 2012-08-19  Bruno Haible  <bruno@clisp.org>
33746         gnulib-tool: Fix indentation.
33747         * gnulib-tool (func_import): Fix indentation.
33749 2012-08-19  Bruno Haible  <bruno@clisp.org>
33751         gnulib-tool: Remove old file names from .cvsignore, .gitignore.
33752         * gnulib-tool (func_update_ignorelist): Don't use 'join -v 1' command
33753         on the list of removed files.
33755 2012-08-17  Paul Eggert  <eggert@cs.ucla.edu>
33757         test-parse-datetime: avoid glibc leap-second glitch
33758         * tests/test-parse-datetime.c (main): Set TZ to US Eastern time
33759         with the 2012 rules.  Problem reported by Bruce Dubbs in
33760         <http://bugs.gnu.org/12206>.
33762 2012-08-14  Bruno Haible  <bruno@clisp.org>
33764         gnulib-tool: Fix indentation of generated gnulib-comp.m4 file.
33765         * gnulib-tool (func_emit_autoconf_snippet): Initialize indentation
33766         from argument.
33767         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
33769 2012-08-14  Eric Blake  <eblake@redhat.com>
33771         ldexp: relax license
33772         * modules/ldexp (License): Trivial relax, since the module only
33773         provides a permissively licensed m4 file.
33775 2012-08-13  Bruno Haible  <bruno@clisp.org>
33777         gnulib-tool: Fix persistence of --witness-c-macro option.
33778         * gnulib-tool (func_import): Fix typo in emit of gl_WITNESS_C_MACRO.
33779         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
33781 2012-08-11  Eric Blake  <eblake@redhat.com>
33783         count-leading-zeros: use a lookup table on non-gcc compilers
33784         * lib/count-leading-zeros.h (count_leading_zeros_32): Use an
33785         alternate implementation, suggested by Jim Meyering.
33787 2012-08-10  Eric Blake  <eblake@redhat.com>
33789         count-leading-zeros: new module
33790         * modules/count-leading-zeros: New module.
33791         * m4/count-leading-zeros.m4: New file.
33792         * lib/count-leading-zeros.h: Likewise.
33793         * modules/count-leading-zeros-tests: New test.
33794         * tests/test-count-leading-zeros.c: New file.
33795         * MODULES.html.sh (Integer arithmetic functions): Document it.
33797 2012-08-07  Simon Josefsson  <simon@josefsson.org>
33798             Jim Meyering  <meyering@redhat.com>
33800         maintainer-makefile: Fix syntax error with dash.
33801         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): Quote arguments.
33802         (sc_vulnerable_makefile_CVE-2012-3386): Likewise.
33804 2012-08-05  Jim Meyering  <meyering@redhat.com>
33806         extern-inline: also ignore -Wmissing-declarations
33807         * m4/extern-inline.m4: Also ignore -Wmissing-declarations,
33808         required with gcc-4.8.0-to-be.
33810         maint.mk: sc_prohibit_magic_number_exit: avoid new false positives
33811         * top/maint.mk (sc_prohibit_magic_number_exit): Also filter out matches
33812         for /error ?([^,]*)/.  This avoids false-positives for strings like
33813         "Unknown error (252)", introduced via commit v0.0-7538-g92875a6.
33815 2012-08-02  Stefano Lattarini  <stefano.lattarini@gmail.com>
33817         gnumakefile: better interaction with Automake-NG
33818         * modules/gnumakefile [Makefile.am]: The makefiles generated by
33819         Automake-NG always contain a definition of VPATH, even in non-VPATH
33820         builds (its value being simply '.' in that case).  So, in the
33821         'clean-GNUmakefile' rule, to determine whether running under a
33822         VPATH setup, compare '$(srcdir)' to '.' rather than checking whether
33823         '$(VPATH)' expands to the empty string.
33825 2012-08-02  Carlo de Falco  <carlo.defalco@polimi.it>  (tiny change)
33827         base64: Use extern C scope in header file, for C++.
33828         * lib/base64.h: Add C++ namespace protection.
33830 2012-08-02  Paul Eggert  <eggert@cs.ucla.edu>
33832         stat-time, timespec, u64: support naive out-of-dir builds
33833         * lib/stat-time.c, lib/timespec.c, lib/u64.c:
33834         Use '#include "foo.h"', not '#include <foo.h>', when including
33835         one's own interface.  This works better when configuring with
33836         out-of-directory builds, since packages need not add an
33837         otherwise-unnecessary -I$(topdir_src)/lib to DEFAULT_INCLUDES.
33839 2012-08-01  Paul Eggert  <eggert@cs.ucla.edu>
33841         utimens: use extern-inline
33842         * lib/utimens.c (_GL_UTIMENS_INLINE): Define when including utimens.h.
33843         * lib/utimens.h: Add copyright notice, since this is now large enough
33844         to copyright.  Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
33845         (_GL_UTIMENS_INLINE): New macro.  Use it instead of 'static inline'.
33846         * modules/utimens (Depends-on): Add extern-inline.
33848         u64: use extern-inline
33849         * lib/u64.c: New file.
33850         * lib/u64.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
33851         (_GL_U64_INLINE): New macro.  Use it instead of 'static inline'.
33852         * modules/u64 (Files): Add lib/u64.c.
33853         (Depends-on): Add extern-inline.
33854         (configure.ac): No need to require AC_C_INLINE, since extern-inline
33855         does that now.
33856         (lib_SOURCES): Add u64.c.
33858         timespec: use extern-inline
33859         * lib/timespec.c: New file.
33860         * lib/timespec.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
33861         (_GL_TIMESPEC_INLINE): New macro.  Use it instead of 'static inline'.
33862         * modules/timespec (Files): Add lib/timespec.c.
33863         (Depends-on): Add extern-inline.
33864         (lib_SOURCES): Add timespec.c.
33866         stat-time: use extern-inline
33867         * lib/stat-time.c: New file.
33868         * lib/stat-time.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
33869         (_GL_STAT_TIME_INLINE): New macro.  Use it instead of 'static inline'.
33870         * modules/stat-time (Files): Add lib/stat-time.c.
33871         (Depends-on): Add extern-inline.
33872         (lib_SOURCES): Add stat-time.c.
33874         extern-inline: new module
33875         * modules/extern-inline, m4/extern-inline.m4: New files.
33876         This is for better support of 'extern inline' a la ISO C99,
33877         with a portable alternative on compilers that do not support
33878         C99-style 'extern inline'.  Using 'extern inline' shrinks the size
33879         of the Emacs executable, when compiled with debugging disabled,
33880         which is a typical way that Emacs is built while developing.
33882 2012-08-01  Akim Demaille  <akim@lrde.epita.fr>
33884         maint.mk: a "release-commit" wrapper to do-release-commit-and-tag
33885         * build-aux/do-release-commit-and-tag: Move variable definitions
33886         together.
33887         ($branch): Instead of defaulting to "master", default to the current
33888         branch (as gnu-web-doc-update does).
33889         (help): Display the current values of the option arguments.
33890         * top/maint.mk (release-commit): New.
33891         * top/README-release: Simplify the corresponding step.
33893 2012-07-30  Eric Blake  <eblake@redhat.com>
33895         passfd: fix comment on recvfd
33896         * lib/passfd.c (recvfd): Fix comment.
33897         Reported by Jann Horn <jannhorn@googlemail.com>.
33899 2012-07-30  Jim Meyering  <meyering@redhat.com>
33901         maint.mk: avoid a sub-shell
33902         * top/maint.mk (release-prep): Remove unneeded sub-shell.
33904 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
33906         maint.mk: use silent-rules support from Automake
33907         * top/maint.mk (news-check, vc-diff-check, announcement)
33908         (no-submodule-changes, alpha beta stable, release-prep)
33909         (web-manual, update-copyright): Use $(AM_V_GEN) and $(AM_V_at).
33911 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
33913         maint.mk: provide a web-manual-update target
33914         * top/maint.mk: here.
33915         * top/README-release: Use it to simplify the web manual update step.
33917 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
33919         README-release: shorten the circuit to post a news
33920         * top/README-release: Point directly to the news submission form.
33922 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
33924         gnu-web-doc-update: fix --help
33925         * build-aux/gnu-web-doc-update: The information "top level" was written
33926         twice.
33928 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
33930         maint.mk: absolute VPATH issue
33931         * top/maint.mk (release-prep): Help Git find .git/.
33932         From Jim Meyering.
33934 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
33936         gitlog-to-changelog: fix previous change
33937         * build-aux/gitlog-to-changelog: Fix condition.
33938         Add missing ";".
33940 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
33942         gitlog-to-changelog: don't expect .git to be in $srcdir
33943         Reported by Bruno Haible.
33944         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00265.html>
33945         * build-aux/gitlog-to-changelog (&git_dir_option): New.
33946         Use it.
33948 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
33950         maint.mk: absolute VPATH build fix
33951         * top/maint.mk (gpg_key_ID): Help git find .git when, for instance,
33952         $(srcdir) is not a parent of $(builddir).
33954 2012-07-28  John Darrington  <john@darrington.wattle.id.au>
33956         clean-temp: Fix memory leak.
33957         * lib/clean-temp.c (cleanup_temp_dir): Free also the 'subdirs' and
33958         'files' members of tmpdir.
33960 2012-07-27  Jim Meyering  <meyering@redhat.com>
33962         maint.mk: new rule: refresh-gnulib-patches
33963         I noticed that 8 of coreutils' 9 gl/**/*.diff files were stale.
33964         Use this rule to refresh them.
33965         * top/maint.mk (refresh-gnulib-patches): New rule.
33967 2012-07-24  Bruno Haible  <bruno@clisp.org>
33969         gnulib-tool: Fix handling of inctests variable.
33970         * gnulib-tool: Canonicalize $inctests also in 'update' mode.
33971         Reported by Nick Bowler <nbowler@elliptictech.com>.
33973 2012-07-22  Bruno Haible  <bruno@clisp.org>
33975         getpass: Assume AC_CHECK_DECLS_ONCE invocation, like in getpass.m4.
33976         * lib/getpass.h: Assume HAVE_DECL_GETPASS is defined.
33977         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
33978         Remove exemption for getpass.h.
33979         Suggested by Eric Blake.
33981 2012-07-20  Eric Blake  <eblake@redhat.com>
33983         verify: document conflict with -Wnested-externs
33984         * lib/verify.h: Give hint about usage when gcc warnings are enabled.
33986         maint.mk: forbid exit(-1)
33987         * top/maint.mk (sc_prohibit_magic_number_exit): Detect negatives.
33989 2012-07-20  Paul Eggert  <eggert@cs.ucla.edu>
33991         fsusage: port back to Solaris
33992         * lib/fsusage.c (get_fs_usage): Fix busted logic causing compile-time
33993         error (fsd not declared) on Solaris 10.  Reported privately by
33994         Andrew Borodin.
33996 2012-07-19  Akim Demaille  <akim@lrde.epita.fr>
33998         gnu-web-doc-update: fix error messages
33999         * build-aux/gnu-web-doc-update: Don't pass $ME to die.
34001         gnu-web-doc-update: check the requirements.
34002         * build-aux/gnu-web-doc-update (find_tool): Import from bootstrap.
34003         ($CVS, $CVSU, $GIT, $RSYNC, $XARGS): New.
34004         * build-aux/bootstrap (find_tool): Comment change.
34006 2012-07-17  Akim Demaille  <akim@lrde.epita.fr>
34008         maint.mk: minor simplication.
34009         * top/maint.mk (_sc_excl): Use $(or...) instead of $(if...)
34010         for default values.
34012 2012-07-15  Akim Demaille  <akim@lrde.epita.fr>
34014         gitlog-to-changelog: VPATH build issues
34015         If builddir is not a subdirectory of srcdir, running git from it will
34016         fail.
34017         * build-aux/gitlog-to-changelog (--srcdir): New option.
34019 2012-07-15  Bruno Haible  <bruno@clisp.org>
34021         fpending: Assume AC_CHECK_DECLS_ONCE invocation, like in fpending.m4.
34022         * lib/fpending.h: Assume HAVE_DECL___FPENDING is defined.
34023         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests)
34024         Remove exemption for fpending.h.
34025         Suggested by Eric Blake.
34027 2012-07-15  Paul Eggert  <eggert@cs.ucla.edu>
34029         pthread_sigmask: fix bug on FreeBSD 9
34030         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_INEFFECTIVE]:
34031         Include string.h.
34032         (pthread_sigmask) [PTHREAD_SIGMASK_INEFFECTIVE]:
34033         When calling pthread_sigmask (1729, NEW, OLD), specify non-null NEW;
34034         this avoids a bug on FreeBSD 9, where pthread_sigmask is effective
34035         but pthread_sigmask (1729, NULL, NULL) returns zero.
34036         See <http://bugs.gnu.org/11884>.
34037         Avoid the need to call pthread_sigmask (1729, ...) in most cases,
34038         by inspecting whether the main call changed the old mask.
34040 2012-07-15  Reuben Thomas  <rrt@sc3d.org>
34042         README-release: make it more legible
34043         * top/README-release: Improve typography slightly.
34045 2012-07-15  Jim Meyering  <meyering@redhat.com>
34047         maint: require that each sc_... command start with "@"
34048         * Makefile (sc_prohibit_sc_omitted_at): New rule so that
34049         "make sc_maint" helps us avoid this nit.
34051 2012-07-15  Jim Meyering  <meyering@redhat.com>
34053         maint.mk: add leading "@" to quiet new "make syntax-check" rule
34054         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Add "@".
34056 2012-07-13  Eric Blake  <eblake@redhat.com>
34058         maint.mk: new syntax check for HAVE_DECL checks
34059         * top/maint.mk (sc_prohibit_defined_have_decl_tests): New rule.
34060         * cfg.mk
34061         (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
34062         Exempt some false positives.
34063         Based on a report by Karel Zak.
34065         argp: make HAVE_DECL usage consistent
34066         * lib/argp-parse.c (__argp_parse): Check contents of HAVE_DECL
34067         macros, not whether they are defined.
34068         * m4/argp.m4 (gl_ARGP): Always define HAVE_DECL_* macros, per
34069         convention with other declaration checks.
34070         Reported by Karel Zak, with suggestions from Paul Eggert.
34072         stat-time: relax license to LGPLv2+
34073         * modules/stat-time (License): Relax, with consent of all authors.
34075         strndup: fix m4 usage error
34076         * m4/strndup.m4 (gl_FUNC_STRNDUP): HAVE_DECL_STRNDUP is always
34077         defined, to either 0 or 1.
34078         Reported by Karel Zak.
34080 2012-07-11  Jim Meyering  <meyering@redhat.com>
34082         maint: enable the sc_avoid_if_before_free syntax-check rule
34083         * cfg.mk (local-checks-to-skip): Enable sc_avoid_if_before_free.
34084         (if_before_free_offenders_): Define.
34085         (if_before_free_basename_re_): Define.
34086         Exempt current files with useless if-before-free.
34088 2012-07-11  Paul Eggert  <eggert@cs.ucla.edu>
34090         gettext: do not assume '#define ... defined ...' behavior
34091         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS):
34092         Do not use '#define FOO ... defined BAR ...', as the C standard says
34093         it's not portable to expect that this works after macro expansion.
34094         Problem reported for gzip by Steven M. Schweda in
34095         <http://lists.gnu.org/r/bug-gzip/2012-07/msg00000.html>.
34097 2012-07-10  Paul Eggert  <eggert@cs.ucla.edu>
34099         getloadavg: clean out old Emacs and Autoconf cruft
34100         See Glenn Morris in <http://bugs.gnu.org/11905>.
34101         * lib/getloadavg.c: Include <config.h>, <stdbool.h> always.
34102         Include <sys/param.h> if HAVE_SYS_PARAM_H, not if unix or __unix.
34103         (LDAV_CVT): Remove no-longer-used LOAD_AVE_CVT hook.
34104         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Check for <sys/param.h>.
34106 2012-07-10  Akim Demaille  <akim@lrde.epita.fr>
34108         bootstrap: let warn be like tests/init.sh's warn_
34109         Reported by Jim Meyering.
34110         * build-aux/bootstrap (warn): Remove, replaced by...
34111         (warnf_, warn_): these.
34112         Adjust callers.
34113         Shorten messages that no longer fit in 80 columns.
34115 2012-07-09  Bruno Haible  <bruno@clisp.org>
34117         getopt: Simplify after Emacs changed.
34118         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Inline gl_GETOPT_IFELSE.
34119         (gl_GETOPT_IFELSE): Remove macro.
34121 2012-07-09  Jim Meyering  <meyering@redhat.com>
34123         maint.mk: add sc_vulnerable_makefile_CVE-2012-3386
34124         * top/maint.mk (sc_vulnerable_makefile_CVE-2012-3386): New rule.
34126         maint.mk: _sc_search_regexp, sc_vulnerable_makefile_CVE-2009-4029: fix
34127         Bugs in both of those conspired to make the
34128         sc_vulnerable_makefile_CVE-2009-4029 rule 99% useless.
34129         _sc_search_regexp's handling of non-empty $in_files would filter
34130         out any offending file names.  sc_vulnerable_makefile_CVE-2009-4029's
34131         choice of in_files value meant there would be no match in most
34132         projects, due to the presence of two or more Makefile.in files.
34133         * top/maint.mk (_sc_search_regexp) [in_vc_files,in_files]: Clarify.
34134         Fix a bug in how a non-empty $$in_files was processed:
34135         (sc_vulnerable_makefile_CVE-2009-4029): Fix erroneous use of in_files:
34136         in spite of the name, it's a regexp, not a list of file names.
34138 2012-07-09  Paul Eggert  <eggert@cs.ucla.edu>
34140         getloadavg, getopt: fix commentary re configure.in
34141         Autoconf is deprecating the name 'configure.in', so change it to
34142         to the new name 'configure.ac' in a couple of places.
34143         * lib/getloadavg.c: configure.in -> configure.ac, in comment.
34144         * m4/getopt.m4 (gl_GETOPT_IFELSE, gl_GETOPT_SUBSTITUTE_HEADER)
34145         (gl_PREREQ_GETOPT): Remove obsolete commentary re Emacs configure.in.
34146         Emacs has renamed it to configure.ac, and it no longer refers
34147         to these macros anyway.
34149         timespec: mark functions with const attributes
34150         * lib/timespec.h (timespec_add, timespec_sub, dtotimespec):
34151         Mark with _GL_ATTRIBUTE_CONST.
34153 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
34155         canonicalize[-lgpl]: handle "guessing" values when cross-building
34156         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
34157         (gl_CANONICALIZE_LGPL): Check whether $gl_cv_func_realpath_works
34158         matches "*yes" instead of just "yes".  Regression introduced in commit
34159         e0bcf6626cde8dad4bfbdc4045c744f0cd8b9e24.
34161 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
34162             Bruno Haible  <bruno@clisp.org>
34164         canonicalize: make the right guess when cross-compiling to GNU
34165         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Match also "gnu*" to
34166         determine whether cross-compiling to glibc systems, so as to
34167         include GNU/Hurd.
34169 2012-07-06  Paul Eggert  <eggert@cs.ucla.edu>
34171         timespec-sub: avoid duplicate include
34172         * lib/timespec-sub.c: Do not include <config.h> twice.
34173         Reported by Juanma Barranquero.
34175 2012-07-06  Akim Demaille  <akim@lrde.epita.fr>
34177         bootstrap: use a more consistent error reporting scheme
34178         * build-aux/bootstrap (warn, die): New.
34179         Use them.
34181 2012-07-05  Paul Eggert  <eggert@cs.ucla.edu>
34183         sys_time: allow too-wide tv_sec
34184         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Allow struct
34185         timeval even if tv_sec is wider than time_t.  This allows
34186         OpenBSD 5.1 amd64 and fixes an Emacs porting glitch with utimens.c,
34187         as without this patch gnulib replaces struct timeval
34188         and OpenBSD futimes therefore has a type mismatch.
34189         * doc/posix-headers/sys_time.texi: Mention this.
34191         pthread: check for both pthread_create and pthread_join
34192         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, but
34193         alter the check so that it tests for both pthread_create and
34194         pthread_join.  This should be more portable to hosts like OSF/1 5.1.
34195         Suggested by Bruno Haible and Richard Yao in
34196         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00048.html>.
34198         parse-datetime: doc tuneup
34199         * doc/parse-datetime.texi: Index "leap seconds" and fix minor
34200         spacing issues.
34202 2012-07-05  Akim Demaille  <akim@lrde.epita.fr>
34204         do-release-commit-and-tag: fix the previous commit
34205         * build-aux/do-release-commit-and-tag: Actually the test was right,
34206         but the comment and the error message were misleading.
34207         Fix comment, and improve error message.
34208         Perform check first, so that NEWS is not modified uselessly.
34210         do-release-commit-and-tag: fix typo
34211         * build-aux/do-release-commit-and-tag: Be sure that NEWS does
34212         _not_ start with a stub.
34214 2012-07-04  Paul Eggert  <eggert@cs.ucla.edu>
34216         pthread: check for pthread_create, not pthread_join
34217         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_create, not
34218         pthread_join.  On FreeBSD 9, pthread_create is in libpthread but
34219         pthread_join in libc.  I hope this removes the need for all the
34220         OSF/1 5.1 pthread_join business.  Reported by Richard Yao in
34221         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00042.html>.
34223 2012-07-04  Jim Meyering  <meyering@redhat.com>
34225         parse-datetime: fix failure to diagnose invalid input
34226         date -d "$(printf '\xb0')" would print 00:00:00 with today's date
34227         rather than diagnosing the invalid input.  Now it reports this:
34228         date: invalid date '\260'
34229         * lib/parse-datetime.y (to_uchar): Define.
34230         (yylex): Don't sign-extend "other" bytes.
34231         * m4/parse-datetime.m4: Require AC_C_INLINE for first use of "inline".
34232         Thanks to Bruno Haible for the patch to this file.
34233         * tests/test-parse-datetime.c (main): Add a test to trigger the bug.
34234         Peter Evans reported the bug in GNU date: http://bugs.gnu.org/11843
34236 2012-07-03  Jim Meyering  <meyering@redhat.com>
34238         bootstrap: do not require now-removed build-aux/missing
34239         Now that build-aux/missing is, er, missing, bootstrap would
34240         silently fail.
34241         * build-aux/bootstrap (gnulib_extra_files): Remove $build_aux/missing
34242         from the list, now that (since commit v0.0-7489-gd0f486f) the file is
34243         no longer part of gnulib.
34244         Diagnose the failure.
34246 2012-07-03  Paul Eggert  <eggert@cs.ucla.edu>
34248         alloca: add support for HP NonStop TNS/E native
34249         * lib/alloca.in.h (alloca): Support the new host.
34250         From a suggestion by Joachim Schmitz in
34251         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00355.html>.
34253 2012-07-02  Pádraig Brady  <P@draigBrady.com>
34255         fsusage: remove code not needed on non GNU/Linux systems.
34257         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
34258         Don't include headers no longer needed in this case.
34259         * lib/fsusage.c [STAT_STATVFS &&
34260         ! (__linux__ && (__GLIBC__||__UCLIBC__))]: Undefine
34261         STAT_STATFS2_FRSIZE to exclude code not used in this case.
34263 2012-07-02  Paul Eggert  <eggert@cs.ucla.edu>
34265         fsusage: include files needed for glibc 2.6 fallback
34266         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
34267         Include <sys/param.h>, <sys/mount.h>, <sys/vfs.h>
34268         as they are needed for the 2.6 < glibc/Linux < 2.6.36 fallback.
34269         Problem reported by Ludovic Courtès in
34270         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00005.html>.
34272         fsusage: avoid needless check on GNU/Linux
34273         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Omit STAT_STATFS3_OSF1 check
34274         on GNU/Linux systems, since it can't possibly work.
34276 2012-07-01  Bruno Haible  <bruno@clisp.org>
34278         log: Fix an autoconf >= 2.64 warning.
34279         * modules/log (configure.ac): Require, not invoke, gl_FUNC_LOG.
34280         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
34282 2012-06-28  Bruno Haible  <bruno@clisp.org>
34284         log10f: Fix possible configuration problem.
34285         * m4/log10f.m4 (gl_FUNC_LOG10F): Augment LIBS by $LOG10F_LIBM, not
34286         $LOGF_LIBM.
34287         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
34289 2012-06-28  Bruno Haible  <bruno@clisp.org>
34291         remove: No longer override on all platforms. Fixes bug from 2010-03-20.
34292         * m4/remove.m4 (gl_FUNC_REMOVE): Test gl_cv_func_unlink_honors_slashes,
34293         not gl_cv_func_unlink_works.
34294         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
34296 2012-06-27  Eric Blake  <eblake@redhat.com>
34298         config: drop scripts that automake says are not independent
34299         * config/srclist.txt: Drop elisp-comp, missing, and ylwrap.
34300         * build-aux/elisp-comp: Delete.
34301         * build-aux/missing: Likewise.
34302         * build-aux/ylwrap: Likewise.
34303         * modules/elisp-comp: Likewise.
34304         * MODULES.html.sh: Drop mention of elisp-comp.
34305         * NEWS: Mention this.
34307 2012-06-26  Paul Eggert  <eggert@cs.ucla.edu>
34309         root-uid: new module
34310         This is for portability to Tandem's NonStop Kernel.
34311         * lib/root-uid.h, modules/root-uid: New files.
34312         * lib/euidaccess.c, lib/pt_chown.c, lib/unlinkdir.c:
34313         * lib/write-any-file.c, tests/test-sethostname2.c:
34314         Include "root-uid.h".
34315         * lib/euidaccess.c (euidaccess):
34316         * lib/pt_chown.c (main):
34317         * lib/unlinkdir.c (cannot_unlink_dir):
34318         * lib/write-any-file.c (can_write_any_file):
34319         * m4/mknod.m4 (gl_FUNC_MKNOD):
34320         * tests/test-sethostname2.c (geteuid, main):
34321         Don't assume ROOT_UID == 0.
34322         * modules/euidaccess (Depends-on):
34323         * modules/pt_chown (Depends-on):
34324         * modules/sethostname-tests (Depends-on):
34325         * modules/unlinkdir (Depends-on):
34326         * modules/write-any-file (Depends-on):
34327         Add root-uid.
34329         regex: use locale-independent comparison for codeset name
34330         See Bruno Haible's comment in <http://bugs.gnu.org/10305#120>.
34331         * lib/regcomp.c (init_dfa): Use just ASCII case comparison
34332         for codeset name.
34333         * lib/regex_internal.h: Do not include <strings.h>, since we
34334         no longer use strcasecmp.
34335         * modules/regex (Depends-on): Remove strcase.
34337 2012-06-23  Bruno Haible  <bruno@clisp.org>
34339         getopt-posix: No longer guarantee that option processing is resettable.
34340         * doc/posix-functions/getopt.texi: Drop description of problem with
34341         internal state. Fix info about mingw and msvc9.
34342         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't require a resettable
34343         option processing by getopt(). Run three test programs instead of one.
34344         Simplify cross-compilation guess.
34345         * NEWS: Mention the change.
34346         Reported by Rich Felker <dalias@aerifal.cx>.
34348 2012-06-26  Bruno Haible  <bruno@clisp.org>
34350         argp, regex: Ensure strcasecmp gets declared.
34351         * lib/argp-help.c: Include <strings.h>.
34352         * lib/regex_internal.h: Likewise.
34353         Reported and suggested by Joachim Schmitz <jojo@schmitz-digital.de>.
34355 2012-06-24  Bruno Haible  <bruno@clisp.org>
34357         ptsname_r: Make it consistent with ptsname on AIX.
34358         * lib/ptsname_r.c (__ptsname_r): For AIX, use nearly the same
34359         implementation as for OSF/1.
34360         * tests/test-ptsname_r.c (main) [AIX]: Use the modern way of opening
34361         a pty master.
34363         ptsname_r: Make it consistent with ptsname on OSF/1.
34364         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
34365         OSF/1.
34367 2012-06-24  Bruno Haible  <bruno@clisp.org>
34369         ttyname_r: Fix result on OSF/1, Solaris.
34370         * lib/ttyname_r.c (ttyname_r): Produce a NUL-terminated result.
34372 2012-06-24  Bruno Haible  <bruno@clisp.org>
34374         ptsname_r: Add support for Solaris.
34375         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
34376         Solaris.
34378         ptsname_r: Fix test failure on native Windows.
34379         * modules/ptsname_r (Depends-on): Add isatty.
34381         ptsname_r: Fix test failures on IRIX, Solaris.
34382         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Test whether isatty sets
34383         errno when it fails. Define ISATTY_FAILS_WITHOUT_SETTING_ERRNO
34384         accordingly.
34385         * lib/ptsname_r.c: Include <fcntl.h>.
34386         (__ptsname_r): When isatty returned false, then on IRIX, Solaris
34387         set errno if fd is invalid.
34388         * tests/test-isatty.c (main): Update comments.
34390 2012-06-24  Bruno Haible  <bruno@clisp.org>
34392         ptsname test: Extend test.
34393         * tests/test-ptsname.c: Include <errno.h>.
34394         (main): Test behaviour with invalid file descriptor.
34396 2012-06-23  Paul Eggert  <eggert@cs.ucla.edu>
34398         time: fix obsolete comment
34399         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Remove obsolete
34400         reference to HAVE_STRUCT_TIMESPEC in comment.
34402 2012-06-23  Bruno Haible  <bruno@clisp.org>
34404         getopt-gnu: Handle suboptimal getopt_long's abbreviation handling.
34405         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): If getopt_long exists but
34406         does not handle abbreviated long options with equivalent
34407         disambiguations, set gl_replace_getopt to yes.
34408         * doc/posix-functions/getopt.texi: Mention the OpenBSD 5.0 problem.
34410 2012-06-22  Paul Eggert  <eggert@cs.ucla.edu>
34412         time_r: fix typo that always overrode localtime_r decl
34413         * m4/time_r.m4 (gl_TIME_R): Use AC_CHECK_DECLS, not
34414         AC_CHECK_DECLS_ONCE, since localtime_r is declared in <time.h>,
34415         not in a standard include.
34417 2012-06-22  Bruno Haible  <bruno@clisp.org>
34419         Write "Mac OS X" instead of "MacOS X".
34420         * README: Write "Mac OS X" instead of "MacOS X".
34421         * build-aux/bootstrap: Likewise.
34422         * build-aux/install-reloc: Likewise.
34423         * lib/acl-internal.h: Likewise.
34424         * lib/acl_entries.c: Likewise.
34425         * lib/argp-ba.c: Likewise.
34426         * lib/argp-pv.c: Likewise.
34427         * lib/config.charset: Likewise.
34428         * lib/copy-acl.c: Likewise.
34429         * lib/csharpexec.c: Likewise.
34430         * lib/euidaccess.c: Likewise.
34431         * lib/fbufmode.c: Likewise.
34432         * lib/fflush.c: Likewise.
34433         * lib/file-has-acl.c: Likewise.
34434         * lib/filemode.h: Likewise.
34435         * lib/fpurge.c: Likewise.
34436         * lib/freadable.c: Likewise.
34437         * lib/freadahead.c: Likewise.
34438         * lib/freading.c: Likewise.
34439         * lib/freadptr.c: Likewise.
34440         * lib/freadseek.c: Likewise.
34441         * lib/fseeko.c: Likewise.
34442         * lib/fseterr.c: Likewise.
34443         * lib/fsusage.c: Likewise.
34444         * lib/fwritable.c: Likewise.
34445         * lib/fwriting.c: Likewise.
34446         * lib/get-rusage-as.c: Likewise.
34447         * lib/get-rusage-data.c: Likewise.
34448         * lib/getdomainname.c: Likewise.
34449         * lib/idpriv-drop.c: Likewise.
34450         * lib/idpriv-droptemp.c: Likewise.
34451         * lib/localcharset.c: Likewise.
34452         * lib/locale.in.h: Likewise.
34453         * lib/localename.c: Likewise.
34454         * lib/mbsrtowcs-state.c: Likewise.
34455         * lib/nproc.c: Likewise.
34456         * lib/passfd.c: Likewise.
34457         * lib/posix_openpt.c: Likewise.
34458         * lib/printf-parse.c: Likewise.
34459         * lib/progreloc.c: Likewise.
34460         * lib/safe-read.h: Likewise.
34461         * lib/safe-write.h: Likewise.
34462         * lib/sched.in.h: Likewise.
34463         * lib/set-mode-acl.c: Likewise.
34464         * lib/signal.in.h: Likewise.
34465         * lib/stdint.in.h: Likewise.
34466         * lib/stdio-impl.h: Likewise.
34467         * lib/stdlib.in.h: Likewise.
34468         * lib/strtod.c: Likewise.
34469         * lib/sys_select.in.h: Likewise.
34470         * lib/tcgetsid.c: Likewise.
34471         * lib/unistd.in.h: Likewise.
34472         * lib/unlockpt.c: Likewise.
34473         * lib/vasnprintf.c: Likewise.
34474         * lib/vma-iter.c: Likewise.
34475         * lib/wcsrtombs-state.c: Likewise.
34476         * m4/acl.m4: Likewise.
34477         * m4/acosl.m4: Likewise.
34478         * m4/asinl.m4: Likewise.
34479         * m4/atanl.m4: Likewise.
34480         * m4/c-stack.m4: Likewise.
34481         * m4/cosl.m4: Likewise.
34482         * m4/expl.m4: Likewise.
34483         * m4/extensions.m4: Likewise.
34484         * m4/fdatasync.m4: Likewise.
34485         * m4/fmal.m4: Likewise.
34486         * m4/frexp.m4: Likewise.
34487         * m4/frexpf.m4: Likewise.
34488         * m4/frexpl.m4: Likewise.
34489         * m4/fsusage.m4: Likewise.
34490         * m4/getdomainname.m4: Likewise.
34491         * m4/getloadavg.m4: Likewise.
34492         * m4/getopt.m4: Likewise.
34493         * m4/gettext.m4: Likewise.
34494         * m4/gnulib-common.m4: Likewise.
34495         * m4/intdiv0.m4: Likewise.
34496         * m4/intlmacosx.m4: Likewise.
34497         * m4/largefile.m4: Likewise.
34498         * m4/ldexpl.m4: Likewise.
34499         * m4/link-follow.m4: Likewise.
34500         * m4/locale-ar.m4: Likewise.
34501         * m4/locale-fr.m4: Likewise.
34502         * m4/locale-ja.m4: Likewise.
34503         * m4/locale-tr.m4: Likewise.
34504         * m4/locale-zh.m4: Likewise.
34505         * m4/locale_h.m4: Likewise.
34506         * m4/lock.m4: Likewise.
34507         * m4/logl.m4: Likewise.
34508         * m4/mathfunc.m4: Likewise.
34509         * m4/minus-zero.m4: Likewise.
34510         * m4/mktime.m4: Likewise.
34511         * m4/mmap-anon.m4: Likewise.
34512         * m4/multiarch.m4: Likewise.
34513         * m4/nanosleep.m4: Likewise.
34514         * m4/nocrash.m4: Likewise.
34515         * m4/poll.m4: Likewise.
34516         * m4/printf-frexpl.m4: Likewise.
34517         * m4/printf.m4: Likewise.
34518         * m4/signbit.m4: Likewise.
34519         * m4/sinl.m4: Likewise.
34520         * m4/sqrtl.m4: Likewise.
34521         * m4/strerror_r.m4: Likewise.
34522         * m4/tanl.m4: Likewise.
34523         * m4/threadlib.m4: Likewise.
34524         * m4/ttyname_r.m4: Likewise.
34525         * m4/unlink.m4: Likewise.
34526         * m4/visibility.m4: Likewise.
34527         * m4/wcwidth.m4: Likewise.
34528         * tests/minus-zero.h: Likewise.
34529         * tests/test-alloca-opt.c: Likewise.
34530         * tests/test-copy-acl.sh: Likewise.
34531         * tests/test-copy-file.sh: Likewise.
34532         * tests/test-fdatasync.c: Likewise.
34533         * tests/test-file-has-acl.sh: Likewise.
34534         * tests/test-flock.c: Likewise.
34535         * tests/test-fsync.c: Likewise.
34536         * tests/test-localename.c: Likewise.
34537         * tests/test-malloca.c: Likewise.
34538         * tests/test-nonblocking-pipe.h: Likewise.
34539         * tests/test-nonblocking-socket.h: Likewise.
34540         * tests/test-openpty.c: Likewise.
34541         * tests/test-posix_openpt.c: Likewise.
34542         * tests/test-ptsname.c: Likewise.
34543         * tests/test-ptsname_r.c: Likewise.
34544         * tests/test-sameacls.c: Likewise.
34545         * tests/test-select.h: Likewise.
34546         * tests/test-set-mode-acl.sh: Likewise.
34547         * tests/test-snprintf-posix.h: Likewise.
34548         * tests/test-sprintf-posix.h: Likewise.
34549         * tests/test-strtod.c: Likewise.
34550         * tests/test-time.c: Likewise.
34551         * tests/test-vasnprintf-posix.c: Likewise.
34552         * tests/test-vasprintf-posix.c: Likewise.
34553         * doc/acl-resources.txt: Likewise.
34554         * doc/**/*.texi: Likewise.
34555         Reported by Max Horn <max@quendi.de>.
34557 2012-06-22  Bruno Haible  <bruno@clisp.org>
34559         grantpt: Relax requirement regarding invalid file descriptors.
34560         * lib/grantpt.c: Don't include <fcntl.h>.
34561         (grantpt): Don't verify the validity of the file descriptor.
34562         * modules/grantpt (Depends-on): Remove fcntl-h.
34563         * tests/test-grantpt.c (main): Allow grantpt to succeed for invalid
34564         file descriptors.
34565         * doc/posix-functions/grantpt.texi: Document more platforms on which
34566         grantpt succeeds for invalid file descriptors.
34567         Reported by Rich Felker <dalias@aerifal.cx>.
34569 2012-06-22  Bruno Haible  <bruno@clisp.org>
34571         fbufmode test: Don't test unportable behaviour.
34572         * tests/test-fbufmode.c (test_mode): New function, extracted from main.
34573         (main): Invoke it three times.
34574         Reported by Szabolcs Nagy <nsz@port70.net>
34575         and Rich Felker <dalias@aerifal.cx>.
34577 2012-06-21  Bruno Haible  <bruno@clisp.org>
34579         gnulib-tool: Refactor inctests variable.
34580         * gnulib-tool: Normalize inctests to 'true' or 'false', not ''.
34581         (func_modules_transitive_closure,
34582         func_modules_transitive_closure_separately,
34583         func_import, func_create_testdir): Update.
34585         gnulib-tool: --create-[mega]testdir, --[mega]test implies --with-tests.
34586         * gnulib-tool: Accept option --without-tests.
34587         (func_usage): Document --without-tests option. Rearrange.
34588         (inctests): Normalize according to the mode.
34589         * NEWS: Mention the change.
34590         Suggested by Simon Josefsson.
34592 2012-06-21  Bruce Korb  <bkorb@gnu.org>
34594         parse-duration test: Avoid spurious output.
34595         * tests/test-parse-duration.sh: Reindent with leading tabs.
34597 2012-06-21  Jim Meyering  <meyering@redhat.com>
34599         maint: disable the strncpy prohibition
34600         * cfg.mk: Do not prohibit strncpy here.
34602 2012-06-21  Bruno Haible  <bruno@clisp.org>
34604         nonblocking: Avoid compilation error on mingw64.
34605         * m4/stdio_h.m4 (gl_STDIO_H): Invoke gl_MODULE_INDICATOR for scanf,
34606         fscanf.
34607         * modules/vscanf (configure.ac): Invoke gl_MODULE_INDICATOR.
34608         * modules/vfscanf (configure.ac): Likewise.
34609         * lib/stdio-read.c (scanf, fscanf, vscanf, vfscanf): Enable function
34610         definition only if stdio.h has prepared it.
34611         Reported by Daniel P. Berrange <berrange@redhat.com>.
34613 2012-06-20  Bernd Jendrissek  <bernd.jendrissek@gmail.com>  (tiny change)
34615         gnulib-tool: Use readlink if it is available.
34616         * gnulib-tool (func_readlink): Choose function more appropriately.
34618 2012-06-21  Paul Eggert  <eggert@cs.ucla.edu>
34620         posixtm-tests: port to buggy compiler
34621         Problem reported by Simon Josefsson in
34622         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00246.html>.
34623         * modules/posixtm-tests (Depends-on): Add stdint.
34624         * tests/test-posixtm.c (struct posixtm_test.t_expected):
34625         Now of type int_least64_t, not int64_t, both because that's
34626         what INT64_C returns and because int_least64_t works even
34627         on 72-bit hosts.
34628         (T): Use INT64_C on constants outside the traditional int range,
34629         to work around compiler bug noted by Simon.
34631         mktime: fix integer overflow in 'configure'-time test
34632         * m4/mktime.m4 (gl_FUNC_MKTIME): Do not rely on undefined behavior
34633         after integer overflow.  Problem reported by Rich Felker in
34634         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00257.html>.
34635         Also, don't look for further instances of a bug if we've already
34636         found one instance; this helps 'configure' run faster.
34638 2012-06-20  John Darrington  <john@darrington.wattle.id.au>  (tiny change)
34640         tmpfile, clean-temp: Fix invocation of GetVersionEx.
34641         * lib/tmpfile.c (supports_delete_on_close): Initialize parameter for
34642         GetVersionEx correctly.
34643         * lib/clean-temp.c (supports_delete_on_close): Likewise.
34645 2012-06-20  Bruno Haible  <bruno@clisp.org>
34647         fdopen: Allow implementations that don't reject invalid fd arguments.
34648         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Let the test pass if fdopen(-1,...)
34649         succeeds.
34650         Reported by Rich Felker <dalias@aerifal.cx>.
34652 2012-06-20  Simon Josefsson  <simon@josefsson.org>
34654         * modules/parse-duration-tests (test_parse_duration_LDADD): Don't
34655         bring in LIBINTL.
34657 2012-06-20  Paul Eggert  <eggert@cs.ucla.edu>
34659         init.sh: do not rely on autoupated PWD
34660         This addresses symptoms of the problem reported by Nelson H.F. Beebe in
34661         <http://lists.gnu.org/r/bug-gzip/2012-06/msg00008.html>.
34662         Although Nelson's bug was not necessarily fixed by this patch,
34663         it seems wise to make the change for safety.
34664         * tests/init.sh (path_prepend_): Do not rely on PWD updating
34665         automagically after 'cd'; this is not reliable on older shells.
34666         (setup_): Fail if we cannot cd to temporary directory.
34668 2012-06-19  Bruno Haible  <bruno@clisp.org>
34670         stat, fstat: Avoid warnings on mingw64.
34671         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Undefine before
34672         redefining.
34673         * lib/fstat.c (stat, fstat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Likewise.
34674         Reported by Daniel P. Berrange <berrange@redhat.com>.
34676 2012-06-19  Bruno Haible  <bruno@clisp.org>
34678         stdioext: Add support for musl libc.
34680         * m4/fbufmode.m4 (gl_FUNC_FBUFMODE): Test whether __fbufsize exists.
34681         * lib/fbufmode.c (fbufmode): Add conditional code for musl.
34683         * m4/fseterr.m4: New file.
34684         * lib/fseterr.h (fseterr): Define as an alias of __fseterr if that
34685         function exists.
34686         * modules/fseterr (Files): Add m4/fseterr.m4.
34687         (configure.ac): Invoke gl_FUNC_FSETERR. Compile fseterr.c if
34688         __fseterr does not exist.
34689         (Makefile.am): Remove fseterr.c from lib_SOURCES.
34691         * lib/freadable.h: Update comment.
34693         * lib/fwritable.h: Update comment.
34695         * lib/freading.h: Update comment.
34697         * lib/fwriting.h: Update comment.
34699         * m4/freadahead.m4: New file.
34700         * lib/freadahead.h (freadahead): Define as an alias of __freadahead if
34701         that function exists.
34702         * modules/freadahead (Files): Add m4/freadahead.m4.
34703         (configure.ac): Invoke gl_FUNC_FREADAHEAD. Compile freadahead.c if
34704         __freadahead does not exist.
34705         (Makefile.am): Remove freadahead.c from lib_SOURCES.
34707         * m4/freadptr.m4: New file.
34708         * lib/freadptr.h (freadptr): Define as an alias of __freadptr if that
34709         function exists.
34710         * modules/freadptr (Files): Add m4/freadptr.m4.
34711         (configure.ac): Invoke gl_FUNC_FREADPTR. Compile freadptr.c if
34712         __freadptr does not exist.
34713         (Makefile.am): Remove freadptr.c from lib_SOURCES.
34715         * m4/freadseek.m4: New file.
34716         * lib/freadseek.c (freadptrinc): Use __freadptrinc if that function
34717         exists.
34718         * modules/freadseek (Files): Add m4/freadseek.m4.
34719         (configure.ac): Invoke gl_FUNC_FREADSEEK.
34721         * lib/fpurge.c (fpurge): Update comment.
34723         Reported by and with help from Rich Felker <dalias@aerifal.cx>.
34725 2012-06-19  Bruno Haible  <bruno@clisp.org>
34727         *printf-posix: Put more info into config.log.
34728         * m4/printf.m4 (gl_PRINTF_ENOMEM): Emit conftest's error output and
34729         exit code into config.log.
34731 2012-06-19  Bruno Haible  <bruno@clisp.org>
34733         getopt-gnu: Fix exit code overflow in autoconf test.
34734         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Squash exit code values,
34735         to keep them below < 128.
34737 2012-06-17  Jim Meyering  <meyering@redhat.com>
34739         maint.mk: fix typo in code to derive GPG key at release time
34740         * top/maint.mk (gpg_key_ID): Fix typo: $3 -> $$3
34742 2012-06-17  Paul Eggert  <eggert@cs.ucla.edu>
34744         regex: avoid warning when pointers are not long
34745         * lib/regcomp.c (parse_dup_op, mark_opt_subexp): Cast between void *
34746         and uintptr_t, not long, for portability to hosts where pointers and
34747         long have different sizes.  Issue noted by Daniel P. Berrange in
34748         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00122.html>
34749         and fix suggested by Bruno Haible in
34750         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00128.html>.
34752 2012-06-17  Bruno Haible  <bruno@clisp.org>
34754         dummy: Relicense into the public domain.
34755         * modules/dummy (License): Set to "public domain".
34756         Suggested by Reuben Thomas.
34758 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
34760         announce-gen: VPATH issues
34761         * build-aux/announce-gen (--srcdir): New option, used to trim the
34762         $srcdir part of the path from $builddir to NEWS.
34763         * top/maint.mk (announcement): Adjust.
34765 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
34767         gnu-web-doc-update: VPATH builds
34768         * build-aux/gnu-web-doc-update (--builddir): New option.
34769         Revamp the handling of options.
34770         Prefer $(...) to `...`.
34771         Don't pass --tmpdir=. to mktemp, it is useless given that we specify
34772         the template, and it is GNU mktemp specific.
34773         Prefer set -e to long series of &&.
34774         Restore the initial git branch, not "master".
34775         Properly initialize submodules (don't rely only on bootstrap).
34776         Do not reconfigure blindly, use config.status.
34777         * top/README-release: Update instructions for gnu-web-doc-update.
34779 2012-06-11  Jim Meyering  <meyering@redhat.com>
34781         maint.mk: revert most of the previous change re "all these"
34782         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Remove that pair.
34783         For rationale, see the discussion at
34784         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30912
34786 2012-06-10  Karl Berry  <karl@gnu.org>
34788         * build-aux/gnupload: with --dry-run, do not ask for gpg pw.
34790         * build-aux/gnupload: implement --replace, ftp-upload protocol v1.2.
34792 2012-06-10  Bruce Korb  <bkorb@gnu.org>
34794         parse-duration: Relicense under LGPLv2+.
34795         * modules/parse-duration (License): Change to LGPLv2+.
34797 2012-06-10  Jim Meyering  <meyering@redhat.com>
34799         maint.mk: prohibit common grammar error: "all these"
34800         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Add "all these" to
34801         the list of prohibited word sequences.  It should be "all of these".
34802         * lib/tempname.c (__gen_tempname): Fix one of them.
34804 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
34806         do-release-commit-and-tag: support VPATH builds
34807         * build-aux/do-release-commit-and-tag: Prefer $(...) to `...`.
34808         (noteworthy): Defined earlier to factor its value.
34809         (noteworthy_stub): New.
34810         Use it to factor.
34811         (help_version): Split into...
34812         (help, version): these.
34813         Adjust the option processing part.
34814         Support "--option=value" in addition to "--option value".
34815         (builddir): New.
34816         (--builddir): New option.
34817         * top/README-release: Document this.
34818         Reword slightly so that the reader cannot understand that he
34819         has to do these steps before calling do-release-commit-and-tag.
34821 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
34823         readme-release: also require announce-gen and maintainer-makefile
34824         * modules/readme-release (Depends-on): here.
34825         * modules/announce-gen, modules/do-release-commit-and-tag,
34826         modules/gnu-web-doc-update, modules/maintainer-makefile
34827         (Description): Point to readme-release.
34829 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
34831         maint.mk: fix VPATH issues.
34832         * top/maint.mk (news-check): GNU Make understand $< very well.
34833         (release-prep): NEWS is in $(srcdir).
34835 2012-06-05  Akim Demaille  <akim@lrde.epita.fr>
34837         readme-release: require the promoted modules.
34838         * modules/readme-release (Depends-on): Add
34839         do-release-commit-and-tag, gnupload, and gnu-web-doc-update, used
34840         in this text.
34842 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
34843             Bruno Haible  <bruno@clisp.org>
34845         error, strerror-override: Support mingw64 from Fedora 17.
34846         * lib/errno.in.h (GNULIB_defined_ESTREAMS): Use a different indicator
34847         for ETXTBSY, ENODATA, ENOSR, ENOSTR, ETIME, EOTHER, compared to
34848         EINPROGRESS.
34849         * lib/strerror-override.h (strerror_override): Test it.
34850         * lib/strerror-override.c (strerror_override): Likewise.
34851         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also ETXTBSY.
34853 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
34854             Bruno Haible  <bruno@clisp.org>
34856         error, strerror-override: Support mingw64 from Fedora 17.
34857         * lib/errno.in.h (GNULIB_defined_ENOTRECOVERABLE): Use a different
34858         indicator for ENOTRECOVERABLE, compared to EOWNERDEAD.
34859         * lib/strerror-override.h (strerror_override): Test it.
34860         * lib/strerror-override.c (strerror_override): Likewise.
34862 2012-06-03  Bruno Haible  <bruno@clisp.org>
34864         error, strerror-override: Support new errno values from POSIX:2008.
34865         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also EOWNERDEAD and
34866         ENOTRECOVERABLE.
34867         * lib/errno.in.h (EOWNERDEAD, ENOTRECOVERABLE): Define on all
34868         platforms.
34869         * lib/strerror-override.c (strerror_override): Conditionalize the
34870         EOWNERDEAD, ENOTRECOVERABLE handling on GNULIB_defined_EOWNERDEAD.
34871         * lib/strerror-override.h (strerror_override): Declare also if
34872         GNULIB_defined_EOWNERDEAD is defined.
34873         * tests/test-errno.c (e130, e131): New variables.
34874         * doc/posix-headers/errno.texi: Mention the status for EOWNERDEAD,
34875         ENOTRECOVERABLE.
34876         Reported by Paolo Bonzini.
34878 2012-05-31  Jim Meyering  <meyering@redhat.com>
34880         savewd: add missing dependency on sys_wait module
34881         * modules/savewd (Depends-on): Add sys_wait, needed at least
34882         for MSVC.  Report and suggested change by Michael Goffioul.
34884 2012-05-29  Paul Eggert  <eggert@cs.ucla.edu>
34886         system-quote-tests: port to CentOS 5
34887         Problem reported by Tom G. Christensen in
34888         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00255.html>.
34889         * tests/test-system-quote-child.c (fclose, fprintf): Undef.
34891 2012-05-29  Jim Meyering  <meyering@redhat.com>
34893         maint: fix typos in comments and ChangeLog
34894         Culprits identified and fixed mostly automatically using these commands:
34895         git ls-files | misspellings -f - |grep -v '^ERROR:' |perl -pe \
34896         's/^(.*?)\[(\d+)\]: (\w+) -> "(.*?)"$/sed -i '\''${2}s!$3!$4!'\'' $1/'
34897         using http://github.com/lyda/misspell-check
34898         * ChangeLog: Fix typos.
34899         * doc/solaris-versions: Likewise.
34900         * lib/regexec.c (re_search_stub): Likewise.
34901         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
34903 2012-05-27  Paul Eggert  <eggert@cs.ucla.edu>
34905         manywarnings: remove duplicate -Wmultichar entry
34906         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove duplicate
34907         entry for -Wmultichar.  -Wno-multichar is in the GCC 4.7.0 manual,
34908         so keep the entry marked as documented.
34910 2012-05-27  Karl Berry  <karl@gnu.org>
34912         * config/srclist.txt (mktime.c): remove last libc sync,
34913         perhaps just temporarily.
34915 2012-05-26  Paul Eggert  <eggert@cs.ucla.edu>
34917         regex: don't assume uint64_t or uint32_t
34918         * lib/regcomp.c (init_word_char): Don't assume that the types
34919         uint64_t and uint32_t exist.  The C standard doesn't guarantee
34920         them, and on some 32-bit compilers there is no uint64_t.
34921         Problem reported by Gianluigi Tiesi in
34922         <http://lists.gnu.org/r/bug-gnulib/2012-03/msg00154.html>.
34924 2012-05-25  Jim Meyering  <meyering@redhat.com>
34926         maint.mk: add strncpy-prohibiting syntax-check rule
34927         * top/maint.mk (sc_prohibit_strncpy): New rule, from coreutils.
34929 2012-05-24  Jim Meyering  <meyering@redhat.com>
34931         maint.mk: compute $(gpg_key_ID) more portably
34932         * top/maint.mk (gpg_key_ID): Use awk in place of sed '{...;...;}'.
34933         That use of sed is not portable to some fringe systems.
34934         Reported by Paul Eggert in
34935         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30793/focus=30802
34937 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
34939         mktime: sync from glibc
34940         * config/srclist.txt: Uncomment mktime.c.
34941         * lib/mktime.c: Sync from glibc master.  This incorporates 3 changes.
34942         First, indent with tabs, since glibc uses tabs and doesn't want to
34943         change and we'd rather be identical to glibc.  Also, two small
34944         coding changes:
34945         (isdst_differ): Use &&, not &, as && is the usual style.
34946         (__mktime_internal): Rename local var from abs_diff to approx_abs_diff
34947         for clarity.
34949 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
34951         announce-gen: du -h is more portable than du --human
34952         * build-aux/announce-gen (sizes): Invoke du with -h instead
34953         of --human.  Accept leading white space in its output.
34955 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
34957         announce-gen: Improve diagnostics.
34958         * build-aux/announce-gen: When parsing command line options,
34959         prefer "announce-gen: option --release-type requires an argument"
34960         to "Option release-type requires an argument".
34962 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
34964         maint.mk: gpg_key_ID: use sed more portably
34965         * top/maint.mk (gpg_key_ID): End sed block with a semicolon before
34966         the closing brace.
34967         (refresh-po): Fuse two sed invocations into one.
34969 2012-05-15  Akim Demaille  <akim@lrde.epita.fr>
34971         gitlog-to-changelog: support the log message format used in Bison.
34972         * build-aux/gitlog-to-changelog: Support --strip-tab and
34973         --strip-cherry-picked.
34975 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
34977         poll/select: prevent busy-waiting.  SwitchToThread() only gives away
34978         the rest of the current time slice to another thread in the current
34979         process. So if the thread that feeds the file decscriptor we're
34980         polling is not in the current process, we get busy-waiting.
34981         * lib/poll.c: Use SleepEx(1, TRUE) instead of SwitchToThread().
34982         Patch from Theodore Leblond.
34983         * lib/select.c: Split polling out of the loop that sets the output
34984         fd_sets.  Check for zero result and loop if the wait timeout is
34985         infinite.
34987 2012-05-21  Simon Josefsson  <simon@josefsson.org>
34989         select: Fix build error on IRIX 6.5.
34990         * lib/select.c: Include stddef.h for NULL.
34992 2012-05-21  Simon Josefsson  <simon@josefsson.org>
34994         gc: fix libgcrypt detection on older machines.
34995         * m4/gc.m4: Reject libgcrypt earlier than 1.4.4.  Collapse
34996         copyright years because the file has been distributed every year
34997         since it was created.
34999 2012-05-18  Paul Eggert  <eggert@cs.ucla.edu>
35001         crypto: fix bug in large buffer handling
35002         Problem reported by Serge Belyshev for glibc in
35003         <http://sourceware.org/bugzilla/show_bug.cgi?id=14090> and for gnulib in
35004         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00226.html>.
35005         * lib/md4.c (md4_process_block):
35006         * lib/md5.c (md5_process_block):
35007         * lib/sha1.c (sha1_process_block):
35008         * lib/sha256.c (sha256_process_block):
35009         Don't assume the buffer length is less than 2**32.
35010         * lib/sha512.c (sha512_process_block): Likewise.
35011         Here, the bug is present only in the rare case where the host does
35012         not support uint64_t or where size_t is wider than 64 bits.
35013         Use u64size to work around the problems.
35014         * lib/u64.h (u64size): New macro.
35016 2012-05-15  Pádraig Brady  <P@draigBrady.com>
35018         fsusage: fix block size returned on older Linux 2.6
35020         * lib/fsusage.c: Fall back to (struct statfs).f_frsize
35021         which is available since Linux 2.6.
35022         * m4/fsusage.m4 (STAT_STATFS2_FRSIZE): Always define
35023         when the member is available so it can be used as a fallback.
35024         * doc/posix-functions/statvfs.texi: Mention the hang issue
35025         on Linux < 2.6.36.
35027 2012-05-14  Paul Eggert  <eggert@cs.ucla.edu>
35029         bootstrap: suppress stderr chatter
35030         * build-aux/bootstrap (insert_sorted_if_absent, main program):
35031         Omit unnecessary chatter to stderr.  The main program chatter
35032         was there only inadvertantly.
35034         bootstrap: .gitignore files created by autopoint, libtool
35035         I ran into this problem when bootstrapping the latest diffutils.
35036         After './bootstrap', 'git status' reported lots of untracked files
35037         m4/codeset.m4, m4/gettext.m4, etc.  These files were created by
35038         autopoint and do not need to be version-controlled.
35039         * build-aux/bootstrap: Put into .gitignore the files that
35040         autopoint and libtool create, by keeping track of files that exist
35041         after but not before these programs are run.
35042         (version_controlled_file): Move up.  2nd arg is now full file
35043         name, not base name; this is more convenient.  Put CVS at the end,
35044         as it's now somewhat deprecated.
35046 2012-05-14  Jim Meyering  <meyering@redhat.com>
35048         ignore-value.h: remove unused _GL_ATTRIBUTE_DEPRECATED definition
35049         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Remove now-unused
35050         definition.  Reported by Bruno Haible.
35052 2012-05-13  Bruno Haible  <bruno@clisp.org>
35053             Paul Eggert  <eggert@cs.ucla.edu>
35055         binary-io: Define set_binary_mode function.
35056         * lib/binary-io.h (set_binary_mode): New function.
35057         (SET_BINARY): Define in terms of set_binary_mode.
35058         * modules/binary-io (configure.ac): Require AC_C_INLINE.
35059         * tests/test-binary-io.c (main): Accept an argument, and test either
35060         set_binary_mode or SET_BINARY depending on the argument.
35061         * tests/test-binary-io.sh: Invoke test-binary-io twice, with an
35062         argument. Clean up also t-bin-out0.tmp.
35064 2012-05-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
35066         bootstrap: take advantage of POSIX shell features
35068         The 'bootstrap' script offered by Gnulib script already uses POSIX
35069         shell features (like $((...)) arithmetic expansions) that are not
35070         supported by legacy Bourne shells like Solaris 10 /bin/sh.  This
35071         means that bootstrap must already be run using a proper POSIX shell,
35072         which will thus provide more features, like ${var#pattern} parameter
35073         expansion or inversion of a command exit status with '!'.  We can
35074         thus use these features to improve the clarity and the performances
35075         of the bootstrap script.
35077         Suggested by Eric Blake.
35079         * build-aux/bootstrap: Prefer xpg4 parameter expansions over use
35080         of sed/expr plus command substitutions, to save some forks.  While
35081         we are at it, prefer the POSIX $(...) form of command substitution,
35082         rather than the legacy form `...` (since the former is visually
35083         clearer and interacts better with quoting), and prefer the idiom:
35084           "if ! CMD; then ACTION ..."
35085         over the idiom:
35086           "if CMD; then :; else ACTION ..."
35087         which was required by legacy Bourne shells not supporting '!'.
35089 2012-05-12  Bruno Haible  <bruno@clisp.org>
35091         system-quote: Add more comments.
35092         * lib/system-quote.h: Add more comments about wilcards and limitations.
35093         Suggested by Eli Zaretskii <eliz@gnu.org>.
35095         sh-quote, system-quote: Add comments about wildcards.
35096         * lib/sh-quote.h: Clarify what happens with wildcard characters.
35097         * lib/system-quote.h: Likewise.
35098         Reported by Eli Zaretskii <eliz@gnu.org>.
35100 2012-05-11  Paul Eggert  <eggert@cs.ucla.edu>
35102         fsusage: check for GNU/Linux statvfs problem dynamically
35103         * lib/fsusage.c [STAT_STATVFS && __linux__ && (__GLIBC__||__UCLIBC__)]:
35104         Define STAT_STATFS2_BSIZE too, since in this case the code now
35105         checks dynamically whether statvfs is reliable, falling back on
35106         Linux-style statfs otherwise.
35107         (statvfs_works): New function, for dynamically testing statvfs.
35108         (get_fs_usage) [STAT_STATVFS]: Use it.
35109         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove static check for
35110         statvfs on GNU/Linux hosts, since it's now done dynamically.
35112 2012-05-10  Bruno Haible  <bruno@clisp.org>
35114         system-quote, execute, spawn-pipe: Escape '?' on Windows.
35115         * lib/system-quote.c (SHELL_SPECIAL_CHARS, CMD_SPECIAL_CHARS): Add the
35116         '?' character.
35117         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Likewise.
35118         * tests/test-system-quote-main.c (check_all): Check also strings like
35119         "??????????".
35120         Reported by Eli Zaretskii <eliz@gnu.org>.
35122 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
35124         _Noreturn: port config.h to gcc -Wundef
35125         * m4/gnulib-common.m4 (gl_COMMON_BODY): Check that __STDC_VERSION__ is
35126         defined before using it, for gcc -Wundef.  Reported by Akim Demaille in
35127         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00147.html>.
35129 2012-05-10  Bruno Haible  <bruno@clisp.org>
35131         system-quote: Refactor.
35132         * lib/system-quote.h (system_quote_copy): Fix comment.
35133         * lib/system-quote.c (windows_createprocess_quote, windows_cmd_quote):
35134         New functions, extracted from system_quote_copy.
35135         (system_quote_length, system_quote_copy): Use these functions.
35136         Reported by Paul Eggert.
35138 2012-05-08  Bruno Haible  <bruno@clisp.org>
35140         execute, spawn-pipe: Escape '*' characters in arguments on Windows.
35141         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Add the '*' character.
35143 2012-05-08  Bruno Haible  <bruno@clisp.org>
35145         Tests for module 'system-quote'.
35146         * modules/system-quote-tests: New file.
35147         * tests/test-system-quote.sh: New file.
35148         * tests/test-system-quote-main.c: New file.
35149         * tests/test-system-quote-child.c: New file.
35151         New module 'system-quote'.
35152         * lib/system-quote.h: New file.
35153         * lib/system-quote.c: New file.
35154         * modules/system-quote: New file.
35156 2012-05-08  Bruno Haible  <bruno@clisp.org>
35158         sh-quote: Make C++ safe and allow multiple inclusion.
35159         * lib/sh-quote.h: Add double-inclusion guard. For C++, wrap function
35160         declarations in extern "C".
35162 2012-05-08  Bruno Haible  <bruno@clisp.org>
35164         sh-quote tests: Make tests stricter.
35165         * tests/test-sh-quote.c (check_one): Check the return value of
35166         shell_quote_copy.
35167         (main): Check a string with a CR character. Check a string that
35168         contains UCHAR_MAX.
35170 2012-05-08  Akim Demaille  <akim@lrde.epita.fr>
35172         warnings.m4: provide a means to specify the program to compile.
35173         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): New, extracted from...
35174         (gl_WARN_ADD): here.
35175         Use gl_AS_VAR_APPEND.
35176         Support an argument to specify the program to compile.
35177         (gl_WARN_ADD): Accept an argument to specify the program to compile.
35178         AC_SUBST the WARN_CFLAGS when they are used.
35179         * modules/warnings (configure.ac): Don't AC_SUBST WARN_CFLAGS,
35180         leave this to gl_WARN_ADD.
35182 2012-05-08  Eric Blake  <eblake@redhat.com>
35184         doc: recommendations on gettext version
35185         * doc/gnulib-tool.texi (gettextize and autopoint): Document the
35186         choice between versions.
35187         * DEPENDENCIES (gettext): Cover both approaches.
35189 2012-05-08  Jim Meyering  <meyering@redhat.com>
35191         init.sh: explain why EXEEXT support uses aliases rather than functions
35192         * tests/init.sh: Add a comment.
35194         init.sh: don't let bash aliases interfere with tests
35195         * tests/init.sh: Undefine any pre-defined aliases if the selected shell
35196         is bash.  This avoids problems for those who alias standard commands to
35197         non-conforming uses, like those reported in http://bugs.gnu.org/11256.
35198         Suggested by Tim Mooney <Tim.Mooney@ndsu.edu>.
35200 2012-05-07  Paul Eggert  <eggert@cs.ucla.edu>
35202         stdint: be more consistent with glibc, SunOS libc
35203         * lib/stdint.in.h (gl_int_fast8_t, gl_uint_fast8_t)
35204         (gl_int_fast16_t, gl_uint_fast16_t)
35205         (gl_int_fast32_t, gl_uint_fast32_t)
35206         (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX)
35207         (INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX)
35208         (INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
35209         Be consistent with glibc by default, and with SunOS 5.10 and later
35210         if __sun is defined.  This lessens the likelihood of clashes if
35211         code compiled for older hosts is combined with code compiled for
35212         newer ones.  Problem reported by Niels Möller in
35213         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00074.html>.
35215 2012-05-07  Eric Blake  <eblake@redhat.com>
35217         isatty: relax license to LGPLv2+
35218         * modules/isatty (License): Relax license.
35220 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
35222         stat-size: comment fix
35223         * lib/stat-size.h: Remove obsolete comment about indenting.
35225 2012-05-06  Bruno Haible  <bruno@clisp.org>
35227         Tests for module 'sh-quote'.
35228         * modules/sh-quote-tests: New file.
35229         * tests/test-sh-quote.c: New file.
35231 2012-05-06  Bruno Haible  <bruno@clisp.org>
35233         sh-quote: Improve shell_quote_argv's signature.
35234         * lib/sh-quote.h (shell_quote_argv): Make argument array a 'const *'.
35235         * lib/sh-quote.c (shell_quote_argv): Likewise.
35237 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
35239         stdint: document issues with int_fast8_t etc.
35240         * doc/posix-headers/stdint.texi (stdint.h): Say that other
35241         stdint.h substitutes may define these types differently.  See
35242         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00071.html>.
35244 2012-05-05  Bruno Haible  <bruno@clisp.org>
35246         nanosleep: Avoid guessing wrong when cross-compiling to Linux.
35247         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require AC_CANONICAL_HOST. When
35248         cross-compiling, set gl_cv_func_nanosleep to either 'guessing no'
35249         or 'guessing no (mishandles large arguments)'.
35251 2012-05-05  Bruno Haible  <bruno@clisp.org>
35253         link-follow: Avoid guessing wrong when cross-compiling to glibc/Linux.
35254         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Require
35255         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
35256         set gl_cv_func_link_follows_symlink to "guessing no".
35258 2012-05-05  Bruno Haible  <bruno@clisp.org>
35260         tzset: Avoid guessing wrong when cross-compiling to glibc systems.
35261         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require AC_CANONICAL_HOST. When
35262         cross-compiling to a glibc platform, set gl_cv_func_tzset_clobber to
35263         "guessing no".
35264         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Update.
35266 2012-05-05  Bruno Haible  <bruno@clisp.org>
35268         d-ino: Avoid guessing "no" when cross-compiling to glibc/Linux systems.
35269         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Require
35270         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
35271         set gl_cv_struct_dirent_d_ino to "guessing yes".
35273 2012-05-05  Bruno Haible  <bruno@clisp.org>
35275         fseeko-tests, ftello-tests: Avoid "guessing no" when cross-compiling.
35276         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Require AC_CANONICAL_HOST. When
35277         cross-compiling to a glibc platform, set gl_cv_func_ungetc_works to
35278         "guessing yes".
35280 2012-05-05  Bruno Haible  <bruno@clisp.org>
35282         signbit: Avoid "guessing no" when cross-compiling to glibc systems.
35283         * m4/signbit.m4 (gl_SIGNBIT): Require AC_CANONICAL_HOST. When cross-
35284         compiling to a glibc system, set gl_cv_func_signbit and
35285         gl_cv_func_signbit_gcc to "guessing yes".
35287 2012-05-05  Bruno Haible  <bruno@clisp.org>
35289         strerror: Avoid "guessing no" when cross-compiling to glibc systems.
35290         * m4/strerror.m4 (gl_FUNC_STRERROR): Require AC_CANONICAL_HOST. When
35291         cross-compiling to a glibc platform, set gl_cv_func_working_strerror
35292         to "guessing yes".
35293         (gl_FUNC_STRERROR_0): Require AC_CANONICAL_HOST. When cross-compiling
35294         to a glibc platform, set gl_cv_func_strerror_0_works to "guessing yes".
35296 2012-05-05  Bruno Haible  <bruno@clisp.org>
35298         canonicalize[-lgpl]: Avoid "guessing no" when cross-compiling to glibc.
35299         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Require
35300         AC_CANONICAL_HOST. When cross-compiling to a glibc system, set
35301         gl_cv_func_realpath_works to "guessing yes".
35303 2012-05-05  Bruno Haible  <bruno@clisp.org>
35305         gettimeofday: Avoid bad guess when cross-compiling to glibc systems.
35306         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require
35307         AC_CANONICAL_HOST. When cross-compiling, guess no on glibc platforms.
35309 2012-05-04  Bruno Haible  <bruno@clisp.org>
35311         Tweak last commit.
35312         * m4/off_t.m4 (gl_TYPE_OFF_T): Tweak comments.
35313         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
35315 2012-05-04  Paul Eggert  <eggert@cs.ucla.edu>
35317         unistd_h: make it easier to avoid sys_types_h
35318         This is useful for Emacs, which has its own method of porting to
35319         Windows, and which therefore does not need the sys_types_h module.
35320         * m4/off_t.m4: New file, defining gl_TYPE_OFF_T, which contains
35321         code moved here from gl_SYS_TYPES_H.
35322         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Require it instead of
35323         using the code directly.
35324         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_TYPE_OFF_T, not
35325         gl_SYS_TYPES_H.
35326         * modules/sys_types (Files):
35327         * modules/unistd (Files): Add m4/off_t.m4.
35329 2012-05-03  Bruno Haible  <bruno@clisp.org>
35331         lstat: Avoid "guessing no" when cross-compiling to glibc systems.
35332         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): When cross-
35333         compiling, set gl_cv_func_lstat_dereferences_slashed_symlink to
35334         "guessing yes" or "guessing no".
35335         (gl_FUNC_LSTAT): Update.
35336         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Update.
35337         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
35338         * m4/unlinkat.m4 (gl_FUNC_UNLINKAT): Update.
35340 2012-05-03  Bruno Haible  <bruno@clisp.org>
35342         *alloc-gnu, eealloc: Avoid "guessing no" when cross-compiling to glibc.
35343         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Override in autoconf < 2.70.
35344         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Override in autoconf < 2.70.
35345         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Require AC_CANONICAL_HOST. When
35346         cross-compiling, choose the first alternative on glibc systems.
35347         * modules/eealloc (Files): Add m4/malloc.m4, m4/realloc.m4.
35349 2012-05-03  Bruno Haible  <bruno@clisp.org>
35351         getgroups: Avoid "guessing no" when cross-compiling to glibc systems.
35352         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Override in autoconf < 2.70.
35353         (gl_FUNC_GETGROUPS): Adapt to change of ac_cv_func_getgroups_works.
35355 2012-05-03  Bruno Haible  <bruno@clisp.org>
35357         chown: Avoid "guessing no" when cross-compiling to glibc systems.
35358         * m4/chown.m4 (AC_FUNC_CHOWN): Override in autoconf < 2.70.
35360 2012-05-03  Bruno Haible  <bruno@clisp.org>
35362         Avoid "guessing no" guesses when cross-compiling to glibc systems.
35363         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Require AC_CANONICAL_HOST. When cross-
35364         compiling to glibc systems, set gl_cv_func_cbrtl_ieee to "guessing yes".
35365         * m4/ceil.m4 (gl_FUNC_CEIL): Require AC_CANONICAL_HOST. When cross-
35366         compiling to glibc systems, set gl_cv_func_ceil_ieee to "guessing yes".
35367         * m4/ceilf.m4 (gl_FUNC_CEILF): Require AC_CANONICAL_HOST. When cross-
35368         compiling to glibc systems, set gl_cv_func_ceilf_ieee to "guessing yes".
35369         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST. When cross-
35370         compiling to glibc systems, set gl_cv_func_ceill_ieee to "guessing yes".
35371         * m4/chown.m4 (gl_FUNC_CHOWN): Require AC_CANONICAL_HOST. When cross-
35372         compiling to glibc systems, set gl_cv_func_chown_slash_works,
35373         gl_cv_func_chown_ctime_works to "guessing yes".
35374         * m4/lchown.m4 (gl_FUNC_LCHOWN): Update.
35375         * m4/exp2l.m4 (gl_FUNC_EXP2L): Require AC_CANONICAL_HOST. When cross-
35376         compiling to glibc systems, set gl_cv_func_exp2l_ieee to "guessing yes".
35377         * m4/expm1.m4 (gl_FUNC_EXPM1): Require AC_CANONICAL_HOST. When cross-
35378         compiling to glibc systems, set gl_cv_func_expm1_ieee to "guessing yes".
35379         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require AC_CANONICAL_HOST. When cross-
35380         compiling to glibc systems, set gl_cv_func_open_directory_works to
35381         "guessing yes".
35382         * m4/fstat.m4 (gl_FUNC_FSTAT): Update.
35383         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require AC_CANONICAL_HOST. When
35384         cross-compiling to glibc systems, set gl_cv_func_fdopendir_works to
35385         "guessing yes".
35386         * m4/floor.m4 (gl_FUNC_FLOOR): Require AC_CANONICAL_HOST. When cross-
35387         compiling to glibc systems, set gl_cv_func_floor_ieee to "guessing yes".
35388         * m4/floorf.m4 (gl_FUNC_FLOORF): Require AC_CANONICAL_HOST. When cross-
35389         compiling to glibc systems, set gl_cv_func_floorf_ieee to
35390         "guessing yes".
35391         * m4/fmod.m4 (gl_FUNC_FMOD): Require AC_CANONICAL_HOST. When cross-
35392         compiling to glibc systems, set gl_cv_func_fmod_ieee to "guessing yes".
35393         * m4/fmodf.m4 (gl_FUNC_FMODF): Require AC_CANONICAL_HOST. When cross-
35394         compiling to glibc systems, set gl_cv_func_fmodf_ieee to "guessing yes".
35395         * m4/fmodl.m4 (gl_FUNC_FMODL): Require AC_CANONICAL_HOST. When cross-
35396         compiling to glibc systems, set gl_cv_func_fmodl_ieee to "guessing yes".
35397         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Require AC_CANONICAL_HOST. When
35398         cross-compiling to glibc systems, set gl_cv_func_getgroups_works to
35399         "guessing yes".
35400         * m4/hypot.m4 (gl_FUNC_HYPOT): Require AC_CANONICAL_HOST. When cross-
35401         compiling to glibc systems, set gl_cv_func_hypot_ieee to "guessing yes".
35402         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Require AC_CANONICAL_HOST. When cross-
35403         compiling to glibc systems, set gl_cv_func_hypotf_ieee to
35404         "guessing yes".
35405         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Require AC_CANONICAL_HOST. When cross-
35406         compiling to glibc systems, set gl_cv_func_hypotl_ieee to
35407         "guessing yes".
35408         * m4/link.m4 (gl_FUNC_LINK): Require AC_CANONICAL_HOST. When cross-
35409         compiling to glibc systems, set gl_cv_func_link_works to "guessing yes".
35410         * m4/log.m4 (gl_FUNC_LOG): Require AC_CANONICAL_HOST. When cross-
35411         compiling to glibc systems, set gl_cv_func_log_ieee to "guessing yes".
35412         * m4/logf.m4 (gl_FUNC_LOGF): Require AC_CANONICAL_HOST. When cross-
35413         compiling to glibc systems, set gl_cv_func_logf_ieee to "guessing yes".
35414         * m4/log10.m4 (gl_FUNC_LOG10): Require AC_CANONICAL_HOST. When cross-
35415         compiling to glibc systems, set gl_cv_func_log10_ieee to "guessing yes".
35416         * m4/log10f.m4 (gl_FUNC_LOG10F): Require AC_CANONICAL_HOST. When cross-
35417         compiling to glibc systems, set gl_cv_func_log10f_ieee to
35418         "guessing yes".
35419         * m4/log1p.m4 (gl_FUNC_LOG1P): Require AC_CANONICAL_HOST. When cross-
35420         compiling to glibc systems, set gl_cv_func_log1p_ieee to "guessing yes".
35421         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Require AC_CANONICAL_HOST. When cross-
35422         compiling to glibc systems, set gl_cv_func_log1pf_ieee to
35423         "guessing yes".
35424         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Require AC_CANONICAL_HOST. When cross-
35425         compiling to glibc systems, set gl_cv_func_log1pl_ieee to
35426         "guessing yes".
35427         * m4/log2.m4 (gl_FUNC_LOG2): Require AC_CANONICAL_HOST. When cross-
35428         compiling to glibc systems, set gl_cv_func_log2_ieee to "guessing yes".
35429         * m4/log2f.m4 (gl_FUNC_LOG2F): Require AC_CANONICAL_HOST. When cross-
35430         compiling to glibc systems, set gl_cv_func_log2f_ieee to "guessing yes".
35431         * m4/mkdir.m4 (gl_FUNC_MKDIR): Require AC_CANONICAL_HOST. When cross-
35432         compiling to glibc systems, set gl_cv_func_mkdir_trailing_slash_works,
35433         gl_cv_func_mkdir_trailing_dot_works to "guessing yes".
35434         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Require AC_CANONICAL_HOST. When cross-
35435         compiling to glibc systems, set gl_cv_func_mkfifo_works to
35436         "guessing yes".
35437         * m4/mknod.m4 (gl_FUNC_MKNOD): Require AC_CANONICAL_HOST. When cross-
35438         compiling to glibc systems, set gl_cv_func_mknod_works to
35439         "guessing yes".
35440         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_CANONICAL_HOST. When
35441         cross-compiling to glibc systems, set gl_cv_func_working_mkstemp to
35442         "guessing yes".
35443         * m4/modf.m4 (gl_FUNC_MODF): Require AC_CANONICAL_HOST. When cross-
35444         compiling to glibc systems, set gl_cv_func_modf_ieee to "guessing yes".
35445         * m4/modff.m4 (gl_FUNC_MODFF): Require AC_CANONICAL_HOST. When cross-
35446         compiling to glibc systems, set gl_cv_func_modff_ieee to "guessing yes".
35447         * m4/modfl.m4 (gl_FUNC_MODFL): Require AC_CANONICAL_HOST. When cross-
35448         compiling to glibc systems, set gl_cv_func_modfl_ieee to "guessing yes".
35449         * m4/putenv.m4 (gl_FUNC_PUTENV): Require AC_CANONICAL_HOST. When cross-
35450         compiling to glibc systems, set gl_cv_func_svid_putenv to
35451         "guessing yes".
35452         * m4/readlink.m4 (gl_FUNC_READLINK): Require AC_CANONICAL_HOST. When
35453         cross-compiling to glibc systems, set gl_cv_func_readlink_works to
35454         "guessing yes".
35455         * m4/remainder.m4 (gl_FUNC_REMAINDER): Require AC_CANONICAL_HOST. When
35456         cross-compiling to glibc systems, set gl_cv_func_remainder_ieee to
35457         "guessing yes".
35458         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Require AC_CANONICAL_HOST.
35459         When cross-compiling to glibc systems, set gl_cv_func_remainderf_ieee
35460         to "guessing yes".
35461         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Require AC_CANONICAL_HOST.
35462         When cross-compiling to glibc systems, set gl_cv_func_remainderl_ieee
35463         to "guessing yes".
35464         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require AC_CANONICAL_HOST. When cross-
35465         compiling to glibc systems, set gl_cv_func_rmdir_works to
35466         "guessing yes".
35467         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. When cross-
35468         compiling to glibc systems, set gl_cv_func_unlink_honors_slashes,
35469         gl_cv_func_unlink_parent_fails to "guessing yes".
35470         * m4/remove.m4 (gl_FUNC_REMOVE): Update.
35471         * m4/rename.m4 (gl_FUNC_RENAME): Require AC_CANONICAL_HOST. When cross-
35472         compiling to glibc systems, set gl_cv_func_rename_slash_dst_works,
35473         gl_cv_func_rename_slash_src_works, gl_cv_func_rename_link_works,
35474         gl_cv_func_rename_dest_works to "guessing yes".
35475         * m4/round.m4 (gl_FUNC_ROUND): Require AC_CANONICAL_HOST. When cross-
35476         compiling to glibc systems, set gl_cv_func_round_ieee to "guessing yes".
35477         * m4/roundf.m4 (gl_FUNC_ROUNDF): Require AC_CANONICAL_HOST. When cross-
35478         compiling to glibc systems, set gl_cv_func_roundf_ieee to
35479         "guessing yes".
35480         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require AC_CANONICAL_HOST. When cross-
35481         compiling to glibc systems, set gl_cv_func_roundl_ieee to
35482         "guessing yes".
35483         * m4/setenv.m4 (gl_FUNC_SETENV): Require AC_CANONICAL_HOST. When cross-
35484         compiling to glibc systems, set gl_cv_func_setenv_works to
35485         "guessing yes".
35486         (gl_FUNC_UNSETENV): Require AC_CANONICAL_HOST. When cross-
35487         compiling to glibc systems, set gl_cv_func_unsetenv_works to
35488         "guessing yes".
35489         * m4/sleep.m4 (gl_FUNC_SLEEP): Require AC_CANONICAL_HOST. When cross-
35490         compiling to glibc systems, set gl_cv_func_sleep_works to
35491         "guessing yes".
35492         * m4/stat.m4 (gl_FUNC_STAT): Require AC_CANONICAL_HOST. When cross-
35493         compiling to glibc systems, set gl_cv_func_stat_file_slash to
35494         "guessing yes".
35495         * m4/symlink.m4 (gl_FUNC_SYMLINK): Require AC_CANONICAL_HOST. When
35496         cross-compiling to glibc systems, set gl_cv_func_symlink_works to
35497         "guessing yes".
35498         * m4/trunc.m4 (gl_FUNC_TRUNC): Require AC_CANONICAL_HOST. When cross-
35499         compiling to glibc systems, set gl_cv_func_trunc_ieee to "guessing yes".
35500         * m4/truncf.m4 (gl_FUNC_TRUNCF): Require AC_CANONICAL_HOST. When cross-
35501         compiling to glibc systems, set gl_cv_func_truncf_ieee to
35502         "guessing yes".
35503         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require AC_CANONICAL_HOST. When cross-
35504         compiling to glibc systems, set gl_cv_func_truncl_ieee to
35505         "guessing yes".
35506         * m4/usleep.m4 (gl_FUNC_USLEEP): Require AC_CANONICAL_HOST. When cross-
35507         compiling to glibc systems, set gl_cv_func_usleep_works to
35508         "guessing yes".
35509         * m4/utimens.m4 (gl_UTIMENS): Require AC_CANONICAL_HOST. When cross-
35510         compiling to glibc systems, set gl_cv_func_futimesat_works to
35511         "guessing yes".
35513 2012-05-03  Bruno Haible  <bruno@clisp.org>
35515         Say "guessing yes" or "guessing no" when cross-compiling.
35516         * m4/dup2.m4 (gl_FUNC_DUP2): When cross-compiling, set
35517         gl_cv_func_dup2_works to "guessing yes" or "guessing no".
35518         * m4/getdelim.m4 (gl_FUNC_GETDELIM): When cross-compiling, set
35519         gl_cv_func_working_getdelim to "guessing yes" or "guessing no".
35520         * m4/getline.m4 (gl_FUNC_GETLINE): When cross-compiling, set
35521         am_cv_func_working_getline to "guessing yes" or "guessing no".
35522         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, set
35523         gl_cv_func_memmem_works_always to "guessing yes" or "guessing no".
35524         (gl_FUNC_MEMMEM): When cross-compiling, set
35525         gl_cv_func_memmem_works_fast to "guessing yes" or "guessing no".
35526         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): When cross-compiling, set
35527         gl_cv_func_stpncpy to "guessing yes" or "guessing no".
35528         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): When cross-compiling,
35529         set gl_cv_func_strcasestr_works_always to "guessing yes" or
35530         "guessing no".
35531         (gl_FUNC_STRCASESTR): When cross-compiling, set
35532         gl_cv_func_strcasestr_linear to "guessing yes" or "guessing no".
35533         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): When cross-compiling, set
35534         gl_cv_func_strstr_works_always to "guessing yes" or "guessing no".
35535         (gl_FUNC_STRSTR): When cross-compiling, set
35536         gl_cv_func_strstr_linear to "guessing yes" or "guessing no".
35537         * m4/strtod.m4 (gl_FUNC_STRTOD): When cross-compiling, set
35538         gl_cv_func_strtod_works to "guessing yes" or "guessing no".
35539         * m4/wctype_h.m4 (gl_WCTYPE_H): When cross-compiling, set
35540         gl_cv_func_iswcntrl_works to "guessing yes" or "guessing no".
35542 2012-05-01  Bruno Haible  <bruno@clisp.org>
35544         relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
35545         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
35546         * build-aux/reloc-ldflags: Likewise.
35547         Suggested by Steven Chamberlain <steven@pyro.eu.org>.
35549 2012-05-01  Bruno Haible  <bruno@clisp.org>
35551         gnulib-tool: Remove transitional code.
35552         * gnulib-tool: Don't warn about --import with 0 arguments any more.
35553         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
35555 2012-05-01  Bruno Haible  <bruno@clisp.org>
35557         getcwd: Fix misindentation.
35558         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Fix indentation.
35560 2012-04-29  Paul Eggert  <eggert@cs.ucla.edu>
35562         exclude: process exclude and include directives in order
35563         This restores the pre-2009 behavior, and is part of a fix of a
35564         grep bug reported by Quentin Arce in
35565         <http://lists.gnu.org/r/bug-grep/2012-04/msg00056.html>.
35566         * lib/exclude.c (struct exclude): Remove 'tail' member.
35567         (new_exclude_segment): Prepend the new segment instead of appending.
35568         Return void, since that's now more convenient.
35569         (file_pattern_matches): Renamed from excluded_file_pattern_p.
35570         (file_name_matches): Renamed from excluded_file_name_p.
35571         (file_pattern_matches, file_name_matches):
35572         Return true if the pattern matches, not if it excludes.
35573         All callers changed.
35574         (excluded_file_name): Process the list in reverse order;
35575         since the list is now reversed this restores the pre-2009 behavior.
35576         (add_exclude): Adjust to new reversed-order list.  Use local var
35577         rather than macro, for clarity.
35578         * tests/test-exclude7.sh: Adjust to corrected behavior.
35580         exclude: handle wildcards with FNM_NOESCAPE and with trailing \
35581         * lib/exclude.c (unescape_pattern): Don't worry about unescaped [;
35582         it's not possible here.  Handle the case of \ at end of pattern
35583         without dumping core.
35584         (add_exclude): Do not unescape the pattern if FNM_NOESCAPE is used.
35586         _Noreturn: future-proof non-GNU and non-MSVC compilers
35587         * build-aux/snippet/_Noreturn.h (_Noreturn):
35588         * m4/gnulib-common.m4 (gl_COMMON_BODY):
35589         Do not define _Noreturn if __STDC_VERSION__ indicates this is
35590         C11 or later.  This is more likely to work with random future C
35591         compilers that are neither GNUish nor MSVCish.  See Vincent Lefevre in
35592         <http://lists.gnu.org/r/bug-gnulib/2012-04/msg00195.html>.
35594         exclude: handle wildcards with FNM_EXTMATCH
35595         * lib/exclude.c (fnmatch_pattern_has_wildcards): Also treat '+(',
35596         '+@', '!(' as wildcards, if FNM_EXTMATCH.  Make it clear in a
35597         comment that "has wildcards" really means "has or may have
35598         wildcards".  Simplify by avoiding the need to call strcspn.
35600 2012-04-29  Bruno Haible  <bruno@clisp.org>
35602         gnulib-tool: Fix list of authors.
35603         * gnulib-tool (func_version): Add Paul Eggert to list of authors.
35605 2012-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
35607         bootstrap: support Automake-NG in $buildreq
35608         * bootstrap (check_versions): Handle automake and aclocal from
35609         Automake-NG specially.  They can be specified as respectively
35610         the "automake-ng" and "aclocal-ng" requirements.
35612 2012-04-25  Eric Blake  <eblake@redhat.com>
35614         bootstrap: only force latest Makefile.in.in for gettext module
35615         * build-aux/bootstrap (with_gettext): Only install latest
35616         Makefile.in.in for projects requesting bleeding edge gettext.
35618 2012-04-22  Bruno Haible  <bruno@clisp.org>
35620         doc: Mention reason for replacement on glibc/Linux systems.
35621         * doc/posix-functions/dprintf.texi: Mention the problem with special
35622         'long double' values.
35623         * doc/posix-functions/fprintf.texi: Likewise.
35624         * doc/posix-functions/printf.texi: Likewise.
35625         * doc/posix-functions/snprintf.texi: Likewise.
35626         * doc/posix-functions/sprintf.texi: Likewise.
35627         * doc/posix-functions/vdprintf.texi: Likewise.
35628         * doc/posix-functions/vfprintf.texi: Likewise.
35629         * doc/posix-functions/vprintf.texi: Likewise.
35630         * doc/posix-functions/vsnprintf.texi: Likewise.
35631         * doc/posix-functions/vsprintf.texi: Likewise.
35632         * doc/posix-functions/fcntl.texi: Add glibc/Linux to the list of
35633         platforms with F_DUPFD_CLOEXEC problems.
35634         * doc/posix-functions/glob.texi: Mention which platforms are affected
35635         by the problem with symbolic links.
35636         * doc/posix-functions/linkat.texi: Mention the problem with
35637         AT_SYMLINK_FOLLOW on Linux.
35639 2012-04-22  Bruno Haible  <bruno@clisp.org>
35641         pwrite: Don't replace on all platforms.
35642         * m4/pwrite.m4 (gl_FUNC_PWRITE): Fix syntax error in test program.
35644 2012-04-22  Bruno Haible  <bruno@clisp.org>
35646         rint* tests: Avoid gcc warnings.
35647         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
35648         * tests/test-rintf.c (INFINITY, NAN): Likewise.
35649         * tests/test-rintl.c (INFINITY, NAN): Likewise.
35651 2012-04-21  Bruno Haible  <bruno@clisp.org>
35653         users.txt: Update.
35654         * users.txt: Add freedink, wdiff. Update URLs for projects that have
35655         switched from CVS to git, bzr, or svn.
35657 2012-04-21  Bruno Haible  <bruno@clisp.org>
35659         Large File Support for native Windows platforms.
35661         * m4/largefile.m4 (gl_LARGEFILE): New macro.
35662         * modules/largefile (configure.ac): Require gl_LARGEFILE.
35664         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
35665         type.
35666         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
35667         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
35668         * doc/posix-headers/sys_types.texi: Mention the effect of the
35669         'largefile' module.
35671         * lib/fcntl.in.h: Add comments about off_t.
35672         * modules/fcntl-h (Depends-on): Add sys_types.
35674         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
35675         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
35676         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
35677         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
35678         * modules/unistd (Depends-on): Add sys_types.
35679         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
35681         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
35682         instead of lseek.
35683         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
35684         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
35685         * modules/lseek (Depends-on): Add sys_types.
35687         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
35688         msvc-nothrow.h.
35689         (SetFileSize): New function.
35690         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
35691         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
35692         if Large File Support is requested.
35693         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
35694         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
35696         * lib/stdio.in.h: Add comments about off_t.
35697         * modules/stdio (Depends-on): Add sys_types.
35699         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
35700         instead of ftello.
35701         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
35702         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
35703         (gl_PREREQ_FTELLO): New macro.
35704         * modules/ftello (Depends-on): Add sys_types.
35705         (configure.ac): Incoke gl_PREREQ_FTELLO.
35707         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
35708         instead of fseeko.
35709         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
35710         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
35711         (gl_PREREQ_FSEEKO): New macro.
35712         * modules/fseeko (Depends-on): Add sys_types.
35713         (configure.ac): Invoke gl_PREREQ_FSEEKO.
35715         * lib/sys_stat.in.h: Add comments about off_t.
35716         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
35717         64-bit integer for st_size in 'struct stat'.
35718         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
35719         Define _GL_WINDOWS_64_BIT_ST_SIZE.
35720         * modules/sys_stat (Depends-on): Add sys_types.
35721         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
35723         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
35724         instead of stat or _stat.
35726         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
35727         'struct _stati64' instead of fstat and 'struct stat'.
35728         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
35729         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
35731         Reported by Ray Satiro <raysatiro@yahoo.com>.
35733 2012-04-19  Eric Blake  <eblake@redhat.com>
35735         bootstrap: accommodate older libtool
35736         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
35737         Reported by Daniel P. Berrange.
35739 2012-04-19  Jim Meyering  <meyering@redhat.com>
35741         announce-gen: avoid failure due to lack of Digest::SHA1
35742         Even with the preferred Digest::SHA available, this script
35743         would fail when the backup module, Digest::SHA1, was not installed.
35744         * build-aux/announce-gen: Quote the conditional use of "use".
35745         Reported by Reuben Thomas in:
35746         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
35748         bootstrap: don't let a user's CDPATH setting affect this script
35749         When CDPATH is set, cd will sometimes generate output.
35750         When "cd" is run in a subshell whose output matters, that
35751         surprising-to-some output can cause malfunction.
35752         Unsetting CDPATH turns off this shell "feature."
35753         * build-aux/bootstrap (CDPATH): Unset.
35754         Reported by Reuben Thomas in:
35755         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
35756         and inspired by his patch here:
35757         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
35759 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
35760         and Jim Meyering  <meyering@redhat.com>
35762         maint.mk: catch "see @xref{}" and similar
35763         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
35764         prohibit "See also @xref{", "Also see @pxref{", and similar.
35766 2012-04-16  Jim Meyering  <meyering@redhat.com>
35768         bootstrap: really use gnulib's po/Makefile.in.in
35769         * build-aux/bootstrap: Correct the source file name in previous change.
35770         Reported by Akim Demaille.
35772         configmake: correct minor inconsistency in Makefile rule
35773         * modules/configmake (Makefile.am): All other rules like this one
35774         run the final "mv -f ..." in the same backslash-continued command
35775         as the one that does everything else.  This one put the mv -f ...
35776         command on a separate, non-backslash-continued line.
35777         Make it like the others.
35779         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
35780         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
35781         the one from gettext.  Reported by Akim Demaille.
35783 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
35785         Fix recursion of install-* into po directories.
35786         Bison's install-pdf bug reported by Hans Aberg at
35787         <http://lists.gnu.org/r/bug-bison/2011-05/msg00008.html>.
35788         * build-aux/po/Makefile.in.in (install-dvi, install-html)
35789         (install-info, install-pdf, install-ps): New targets.
35791 2012-04-16  Jim Meyering  <meyering@redhat.com>
35793         maint: avoid spurious "make sc_maint" failure
35794         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
35795         exempt all *.class file names, for lib/javaversion.class.
35797 2012-04-15  Bruno Haible  <bruno@clisp.org>
35799         lseek: Make configure test independent of environment.
35800         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
35801         Windows, we know that lseek() on pipes is broken; skip the runtime
35802         test.
35804 2012-04-14  Bruno Haible  <bruno@clisp.org>
35806         stat: Bypass buggy override in mingw64.
35807         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
35808         * lib/stat.c (stat) [mingw64]: Define to _stat.
35809         * doc/posix-functions/stat.texi: Mention mingw64 bug.
35811 2012-04-14  Bruno Haible  <bruno@clisp.org>
35813         pathmax: Fix compilation error on MSVC 9.
35814         * modules/pathmax (Depends-on): Add unistd.
35816 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
35818         README: document pointer comparison assumption
35819         * README (Portability guidelines): Document assumption about
35820         pointer comparisons, in response to a recent bug-gnulib comment by
35821         Jeffrey Kegler.
35823 2012-04-12  Bruno Haible  <bruno@clisp.org>
35825         Tests for module 'getrusage'.
35826         * modules/getrusage-tests: New file.
35827         * tests/test-getrusage.c: New file.
35829         New module 'getrusage'.
35830         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
35831         warn-on-use.h.
35832         (getrusage): New declaration.
35833         * lib/getrusage.c: New file.
35834         * m4/getrusage.m4: New file.
35835         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
35836         is declared.
35837         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
35838         HAVE_GETRUSAGE.
35839         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
35840         snippet/c++defs, snippet/warn-on-use.
35841         (Makefile.am): Update generation of sys/resource.h. Substitute
35842         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
35843         * modules/getrusage: New file.
35844         * doc/posix-functions/getrusage.texi: Mention the new module.
35846 2012-04-12  Bruno Haible  <bruno@clisp.org>
35848         Tests for module 'sys_resource'.
35849         * modules/sys_resource-tests: New file.
35850         * tests/test-sys_resource.c: New file.
35852         New module 'sys_resource'.
35853         * lib/sys_resource.in.h: New file.
35854         * m4/sys_resource_h.m4: New file.
35855         * modules/sys_resource: New file.
35856         * doc/posix-headers/sys_resource.texi: Mention the new module.
35858 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
35860         ioctl: Fix compilation error on mingw.
35861         * lib/ioctl.c: Include <windows.h>.
35862         Also reported by Ray Satiro <raysatiro@yahoo.com>.
35864 2012-04-04  Jim Meyering  <meyering@redhat.com>
35866         regex: correct #pragma guard expression
35867         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
35868         not 4.3.  Correct its cpp guard expression.
35870 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
35872         regex: remove unnecessary type punning
35873         Problem reported by Vladimir Serbinenko in
35874         <http://lists.gnu.org/r/bug-gnulib/2012-04/msg00006.html>.
35875         * lib/regex.h (struct re_pattern_buffer): Change the type of
35876         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
35877         Fix comment to match code.
35878         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
35879         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
35880         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
35881         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
35882         (set_regs):
35883         Omit no-longer-necessary casts.
35885 2012-04-03  Bruno Haible  <bruno@clisp.org>
35887         Tests for module 'ilogbl'.
35888         * modules/ilogbl-tests: New file.
35889         * tests/test-ilogbl.c: New file.
35891         New module 'ilogbl'.
35892         * lib/math.in.h (ilogbl): New declaration.
35893         * lib/ilogbl.c: New file.
35894         * m4/ilogbl.m4: New file.
35895         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
35896         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
35897         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
35898         Split sed invocation, to avoid the limit of 100 substitutions of
35899         HP-UX 'sed'.
35900         * modules/ilogbl: New file.
35901         * tests/test-math-c++.cc: Check the declaration of ilogbl.
35902         * doc/posix-functions/ilogbl.texi: Mention the new module.
35904 2012-04-03  Bruno Haible  <bruno@clisp.org>
35906         Tests for module 'ilogbf'.
35907         * modules/ilogbf-tests: New file.
35908         * tests/test-ilogbf.c: New file.
35910         New module 'ilogbf'.
35911         * lib/math.in.h (ilogbf): New declaration.
35912         * lib/ilogbf.c: New file.
35913         * m4/ilogbf.m4: New file.
35914         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
35915         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
35916         REPLACE_ILOGBF.
35917         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
35918         REPLACE_ILOGBF.
35919         * modules/ilogbf: New file.
35920         * tests/test-math-c++.cc: Check the declaration of ilogbf.
35921         * doc/posix-functions/ilogbf.texi: Mention the new module.
35923 2012-04-03  Bruno Haible  <bruno@clisp.org>
35925         Tests for module 'ilogb'.
35926         * modules/ilogb-tests: New file.
35927         * tests/test-ilogb.c: New file.
35928         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
35929         tests/test-logb-ieee.h.
35931         New module 'ilogb'.
35932         * lib/math.in.h (ilogb): New declaration.
35933         * lib/ilogb.c: New file.
35934         * m4/ilogb.m4: New file.
35935         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
35936         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
35937         REPLACE_ILOGB.
35938         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
35939         REPLACE_ILOGB.
35940         * modules/ilogb: New file.
35941         * tests/test-math-c++.cc: Check the declaration of ilogb.
35942         * doc/posix-functions/ilogb.texi: Mention the new module.
35944 2012-04-03  Bruno Haible  <bruno@clisp.org>
35946         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
35947         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
35948         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
35949         (main): Check their values.
35950         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
35951         problem.
35953 2012-04-03  Bruno Haible  <bruno@clisp.org>
35955         Tests for module 'logbl-ieee'.
35956         * modules/logbl-ieee-tests: New file.
35957         * tests/test-logbl-ieee.c: New file.
35959         New module 'logbl-ieee'.
35960         * modules/logbl-ieee: New file.
35962         Tests for module 'logb-ieee'.
35963         * modules/logb-ieee-tests: New file.
35964         * tests/test-logb-ieee.c: New file.
35966         New module 'logb-ieee'.
35967         * modules/logb-ieee: New file.
35969         Tests for module 'logbf-ieee'.
35970         * modules/logbf-ieee-tests: New file.
35971         * tests/test-logbf-ieee.c: New file.
35972         * tests/test-logb-ieee.h: New file.
35974         New module 'logbf-ieee'.
35975         * modules/logbf-ieee: New file.
35977 2012-04-03  Bruno Haible  <bruno@clisp.org>
35979         Tests for module 'logbl'.
35980         * modules/logbl-tests: New file.
35981         * tests/test-logbl.c: New file.
35983         New module 'logbl'.
35984         * lib/math.in.h (logbl): New declaration.
35985         * lib/logbl.c: New file.
35986         * m4/logbl.m4: New file.
35987         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
35988         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
35989         REPLACE_LOGBL.
35990         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
35991         REPLACE_LOGBL.
35992         * modules/logbl: New file.
35993         * tests/test-math-c++.cc: Check the declaration of logbl.
35994         * doc/posix-functions/logbl.texi: Mention the new module.
35996 2012-04-02  Bruno Haible  <bruno@clisp.org>
35998         Tests for module 'logbf'.
35999         * modules/logbf-tests: New file.
36000         * tests/test-logbf.c: New file.
36002         New module 'logbf'.
36003         * lib/math.in.h (logbf): New declaration.
36004         * lib/logbf.c: New file.
36005         * m4/logbf.m4: New file.
36006         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
36007         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
36008         REPLACE_LOGBF.
36009         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
36010         REPLACE_LOGBF.
36011         * modules/logbf: New file.
36012         * tests/test-math-c++.cc: Check the declaration of logbf.
36013         * doc/posix-functions/logbf.texi: Mention the new module.
36015 2012-04-02  Bruno Haible  <bruno@clisp.org>
36017         logb tests: More tests.
36018         * tests/test-logb.h: New file, based on tests/test-logb.c and
36019         tests/test-frexp.h.
36020         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
36021         (main): Just invoke test_function.
36022         * modules/logb-tests (Files): Add tests/test-logb.h,
36023         tests/minus-zero.h, tests/randomd.c.
36024         (Makefile.am): Add randomd.c to test_logb_SOURCES.
36026         logb: Provide replacement and workarounds.
36027         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
36028         is 1.
36029         * lib/logb.c: New file.
36030         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
36031         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
36032         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
36033         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
36034         * modules/logb (Files): Add lib/logb.c.
36035         (Depends-on): Add isfinite, frexp, isnand.
36036         (configure.ac): Compile the replacement code logb.c if needed.
36037         * tests/test-math-c++.cc: Check the declaration of logb.
36038         * doc/posix-functions/logb.texi: Mention the replacement and the bug
36039         with subnormal numbers.
36041 2012-04-02  Bruno Haible  <bruno@clisp.org>
36043         log10* tests: Speed up.
36044         * tests/test-log10.h (test_function): Reduce amount of random numbers
36045         to test.
36047 2012-04-01  Bruno Haible  <bruno@clisp.org>
36049         logf-ieee: Fix test whether logf works.
36050         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
36052 2012-04-01  Bruno Haible  <bruno@clisp.org>
36054         log10l: Work around log10l-ieee test failure on IRIX 6.5.
36055         * lib/log10l.c: Include <float.h>
36056         (log10l): On IRIX, normalize the +Infinity value.
36057         * modules/log10l (Depends-on): Add 'float'.
36058         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
36059         +Infinity.
36061         log10f-ieee: Work around test failure on NetBSD 5.1.
36062         * m4/log10f-ieee.m4: New file.
36063         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
36064         test whether log10f works with a negative argument. Replace it if not.
36065         * lib/log10f.c (log10f): For negative arguments, return NaN.
36066         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
36067         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
36068         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
36070         log10f-ieee: Work around test failure on Solaris 9.
36071         * modules/log10f-ieee (Depends-on): Add log10-ieee.
36072         (configure.ac): Require gl_FUNC_LOG10F.
36074         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
36075         * m4/log10-ieee.m4: New file.
36076         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
36077         whether log10 works with a negative argument. Replace it if not.
36078         * lib/log10.c (log10): For negative arguments, return NaN.
36079         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
36080         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
36081         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
36083         Tests for module 'log10l-ieee'.
36084         * modules/log10l-ieee-tests: New file.
36085         * tests/test-log10l-ieee.c: New file.
36087         New module 'log10l-ieee'.
36088         * modules/log10l-ieee: New file.
36090         Tests for module 'log10-ieee'.
36091         * modules/log10-ieee-tests: New file.
36092         * tests/test-log10-ieee.c: New file.
36094         New module 'log10-ieee'.
36095         * modules/log10-ieee: New file.
36097         Tests for module 'log10f-ieee'.
36098         * modules/log10f-ieee-tests: New file.
36099         * tests/test-log10f-ieee.c: New file.
36100         * tests/test-log10-ieee.h: New file.
36102         New module 'log10f-ieee'.
36103         * modules/log10f-ieee: New file.
36105 2012-04-01  Bruno Haible  <bruno@clisp.org>
36107         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
36108         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
36109         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
36110         workaround.
36111         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
36112         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
36113         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
36114         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
36115         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
36116         (Depends-on): Update conditions.
36117         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
36118         IRIX 6.5, OSF/1 5.1 problems.
36120 2012-04-01  Bruno Haible  <bruno@clisp.org>
36122         log10f: Work around OSF/1 5.1 bug.
36123         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
36124         * lib/log10f.c (log10f): If logf exists, use it and provide just the
36125         workaround.
36126         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
36127         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
36128         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
36129         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
36130         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
36131         (Depends-on): Update conditions.
36132         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
36134 2012-04-01  Bruno Haible  <bruno@clisp.org>
36136         log10: Work around OSF/1 5.1 bug.
36137         * lib/math.in.h (log10): New declaration.
36138         * lib/log10.c: New file.
36139         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
36140         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
36141         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
36142         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
36143         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
36144         * modules/log10 (Files): Add lib/log10.c.
36145         (Depends-on): Add math.
36146         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
36147         * tests/test-math-c++.cc: Check the declaration of log10.
36148         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
36150 2012-03-31  Bruno Haible  <bruno@clisp.org>
36152         log10l tests: More tests.
36153         * modules/log10l-tests (Files): Add tests/test-log10l.h,
36154         tests/minus-zero.h, tests/randoml.c.
36155         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
36156         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
36157         (main): Invoke test_function.
36159         log10f tests: More tests.
36160         * modules/log10f-tests (Files): Add tests/test-log10.h,
36161         tests/minus-zero.h, tests/randomf.c.
36162         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
36163         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
36164         (main): Invoke test_function.
36166         log10 tests: More tests.
36167         * tests/test-log10.h: New file.
36168         * modules/log10-tests (Files): Add tests/test-log10.h,
36169         tests/minus-zero.h, tests/randomd.c.
36170         (Makefile.am): Add randomd.c to test_log10_SOURCES.
36171         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
36172         (main): Invoke test_function.
36174 2012-03-31  Simon Josefsson  <simon@josefsson.org>
36176         fflush: Fix syntax error.
36177         * lib/fflush.c: Include unused-parameter.h, needed for
36178         _GL_UNUSED_PARAMETER.
36179         * modules/fflush (Depends-on): Add snippet/unused-parameter.
36181 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
36183         regex: pacify GCC when compiling GRUB
36184         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
36185         a diagnostic.  Reported by Vladimir Serbinenko in
36186         <http://lists.gnu.org/r/bug-gnulib/2012-03/msg00163.html>.
36188 2012-03-29  Eric Blake  <eblake@redhat.com>
36190         stdio: don't assume gets any more
36191         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
36192         support.
36193         * modules/stdio (Makefile.am): Likewise.
36194         * lib/stdio-read.c (gets): Likewise.
36195         * tests/test-stdio-c++.cc: Likewise.
36196         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
36197         * lib/stdio.in.h (gets): Make warning occur in more places.
36198         * doc/posix-functions/gets.texi (gets): Update documentation.
36199         Reported by Christer Solskogen.
36201         maint.mk: fix syntax checks without exclusions
36202         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
36203         Reported by Daniel P. Berrange.
36205         strerror_r: avoid compiler warning
36206         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
36207         level.
36209         fflush: avoid compiler warning
36210         * lib/fflush.c (update_fpos_cache): Mark variables that are
36211         potentially unused.
36213 2012-03-25  Bruno Haible  <bruno@clisp.org>
36215         Tests for module 'localeconv'.
36216         * modules/localeconv-tests: New file.
36217         * tests/test-localeconv.c: New file.
36219         New module 'localeconv'.
36220         * lib/locale.in.h (localeconv): New declaration.
36221         * lib/localeconv.c: New file.
36222         * m4/localeconv.m4: New file.
36223         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
36224         REPLACE_LOCALECONV.
36225         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
36226         REPLACE_LOCALECONV.
36227         * modules/localeconv: New file.
36228         * modules/nl_langinfo (Depends-on): Add localeconv.
36229         * modules/human (Depends-on): Likewise.
36230         * doc/posix-functions/localeconv.texi: Mention the new module.
36232 2012-03-25  Bruno Haible  <bruno@clisp.org>
36234         locale: Provide a complete 'struct lconv'.
36235         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
36236         'struct lconv' does not contain int_p_cs_precedes.
36237         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
36238         * doc/posix-headers/locale.texi: Update.
36240         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
36241         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
36242         * doc/posix-headers/locale.texi: Update.
36244         locale: Provide a working 'struct lconv'.
36245         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
36246         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
36247         'struct lconv' does not even contain decimal_point.
36248         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
36249         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
36250         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
36251         * doc/posix-headers/locale.texi: Mention the problems with
36252         'struct lconv'.
36253         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
36255 2012-03-24  Bruno Haible  <bruno@clisp.org>
36257         Enable common subexpression optimization in GCC.
36258         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
36259         macros.
36260         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
36261         GCC attribute 'const'.
36262         (uc_locale_language): Declare with GCC attribute 'pure'.
36263         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
36264         with GCC attribute 'const'.
36265         * lib/unictype.in.h (uc_is_general_category_withtable,
36266         uc_combining_class, uc_combining_class_name,
36267         uc_combining_class_long_name, uc_bidi_class_name,
36268         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
36269         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
36270         uc_decimal_value, uc_digit_value, uc_numeric_value,
36271         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
36272         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
36273         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
36274         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
36275         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
36276         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
36277         Declare with GCC attribute 'const'.
36278         (uc_general_category_name, uc_general_category_long_name,
36279         uc_general_category_byname, uc_general_category,
36280         uc_is_general_category, uc_combining_class_byname,
36281         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
36282         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
36283         Declare with GCC attribute 'pure'.
36284         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
36285         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
36286         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
36287         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
36288         with GCC attribute 'pure'.
36289         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
36290         'const'.
36291         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
36292         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
36293         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
36294         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
36295         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
36296         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
36297         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
36298         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
36299         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
36300         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
36301         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
36302         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
36303         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
36304         GCC attribute 'pure'.
36305         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
36306         'const'.
36307         * lib/uniwidth.in.h (uc_width): Simplify declaration.
36308         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
36309         u32_strwidth): Declare with GCC attribute 'pure'.
36311         Enable common subexpression optimization in GCC.
36312         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
36313         (alphasort): Declare with GCC attribute 'pure'.
36314         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
36315         (atoll): Declare with GCC attribute 'pure'.
36316         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
36317         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
36318         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
36319         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
36320         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
36321         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
36322         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
36324 2012-03-24  Bruno Haible  <bruno@clisp.org>
36326         gnulib-tool: Avoid unintended error output from 'cmp'.
36327         * gnulib-tool (func_add_file, func_update_file, func_import): Use
36328         "cmp -s", not "cmp > /dev/null".
36330 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
36332         gnulib-tool: fix imprecise comments w.r.t. an automake bug
36334         It's not just Automake versions < 1.9b that creates an empty
36335         pkgdatadir at installation time if pkgdata_DATA is specified
36336         to empty; modern automake versions do this as well, at least
36337         until automake 1.11.4 (not yet released at the moment of writing,
36338         but soon to appear).  That behaviour was generally considered a
36339         feature rather than a bug, at least until this discussion:
36340         <http://lists.gnu.org/r/automake/2012-03/msg00014.html>
36342         See also automake bugs #10997 and #11030.
36344         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
36345         reference to relevant automake bug numbers.
36346         (func_emit_tests_Makefile_am): Likewise.
36348 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
36350         announce-gen: use Digest::SHA when possible
36351         * build-aux/announce-gen: Use Digest::SHA when possible, falling
36352         back to Digest::SHA1 if necessary.
36354 2012-03-20  Jim Meyering  <meyering@redhat.com>
36356         tests: avoid gcc warnings about argv vs. const initializers
36357         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
36358         warnings about discarding 'const' qualifier from pointer target type.
36359         * tests/test-posix_spawn2.c (main): Likewise.
36361 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
36363         README-release: simplify slightly
36364         * top/README-release: Run "git checkout master" only once.
36366 2012-03-15  Mark Wielaard  <mark@klomp.org>
36368         git-merge-changelog: add specific example on how to use with hg.
36369         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
36371 2012-03-18  Mark Wielaard  <mark@klomp.org>
36373         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
36375 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
36377         git-version-gen: don't let "prefix" envvar cause trouble
36378         * build-aux/git-version-gen (prefix): Initialize properly,
36379         so as not to use a value specified via the environment.
36380         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
36382 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
36384         regex: diagnose too-large repeat counts in EREs
36385         Previously, the code did not diagnose the too-large repeat count
36386         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
36387         as if it were 'b\{1000000000}', which is unexpected.
36388         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
36389         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
36390         is a reasonable one for this problem.  Another option would be to
36391         create a new REG_OVERFLOW error for repeat counts that are too large.
36392         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
36393         count is too large, so that the caller can distinguish the two cases.
36394         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
36395         "Too large" return code, and that repeat counts are one example of this.
36397 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
36399         doc: some glibc x32 integer width issues
36400         * doc/posix-headers/sys_types.texi (sys/types.h):
36401         * doc/posix-headers/time.texi (time.h):
36402         Mention that glibc x32 does not conform to POSIX in a couple of
36403         areas related to integer widths.
36405 2012-03-15  Bruno Haible  <bruno@clisp.org>
36407         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
36408         * lib/fma.c (VOLATILE): New macro.
36409         (FUNC): Use it to work around a GCC compiler bug.
36411 2012-03-13  Bruno Haible  <bruno@clisp.org>
36413         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
36414         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
36415         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
36416         REPLACE_HYPOTL to 1.
36417         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
36419 2012-03-13  Bruno Haible  <bruno@clisp.org>
36421         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
36422         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
36423         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
36424         REPLACE_REMAINDERL to 1.
36425         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
36426         bug.
36428 2012-03-13  Bruno Haible  <bruno@clisp.org>
36430         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
36431         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
36432         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
36433         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
36434         too big rounding errors.
36435         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
36436         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
36437         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
36438         (Depends-on): Update conditions.
36439         * tests/test-sqrtl.c (my_ldexpl): New function.
36440         (main): Add test of a particular value.
36441         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
36443 2012-03-13  Pádraig Brady  <P@draigBrady.com>
36445         doc: Update timer_* platform portability notes.
36446         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
36447         that always return ENOSYS.
36448         * doc/posix-functions/timer_delete.texi: Likewise.
36449         * doc/posix-functions/timer_gettime.texi: Likewise.
36450         * doc/posix-functions/timer_settime.texi: Likewise.
36452 2012-03-13  Bruno Haible  <bruno@clisp.org>
36454         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
36455         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
36456         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
36457         REPLACE_CBRTL to 1.
36458         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
36460 2012-03-13  Bruno Haible  <bruno@clisp.org>
36462         remainderl: Avoid compilation error on AIX >= 5.2.
36463         * lib/math.in.h (remainderl): Undefine macro from the system header.
36465 2012-03-13  Bruno Haible  <bruno@clisp.org>
36467         Avoid compilation errors with MSVC option -fp:strict.
36468         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
36469         * lib/cbrtf.c: Likewise.
36470         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
36472 2012-03-12  Bruno Haible  <bruno@clisp.org>
36474         uninorm: Don't crash in out-of-memory conditions.
36475         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
36476         gracefully.
36477         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
36478         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
36480 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
36482         quote: fix syntax-check
36483         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
36484         also exports quote_quoting_options.
36486 2012-03-12  Simon Josefsson  <simon@josefsson.org>
36488         Collapse list of copyright years to ranges.  See
36489         <https://lists.gnu.org/r/bug-gnulib/2012-03/msg00051.html>.
36490         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
36491         build-aux/csharpexec.sh.in, build-aux/gnupload,
36492         build-aux/install-reloc, build-aux/javacomp.sh.in,
36493         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
36494         build-aux/move-if-change, build-aux/reloc-ldflags,
36495         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
36497 2012-03-11  Bruno Haible  <bruno@clisp.org>
36499         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
36500         * m4/log2f-ieee.m4: New file.
36501         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
36502         whether log2f works with a minus zero argument. Replace it if not.
36503         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
36504         (Depends-on): Add log2-ieee.
36505         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
36506         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
36508         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
36509         * m4/log2-ieee.m4: New file.
36510         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
36511         whether log2 works with a minus zero argument. Replace it if not.
36512         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
36513         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
36514         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
36516         Tests for module 'log2l-ieee'.
36517         * modules/log2l-ieee-tests: New file.
36518         * tests/test-log2l-ieee.c: New file.
36520         New module 'log2l-ieee'.
36521         * modules/log2l-ieee: New file.
36523         Tests for module 'log2-ieee'.
36524         * modules/log2-ieee-tests: New file.
36525         * tests/test-log2-ieee.c: New file.
36527         New module 'log2-ieee'.
36528         * modules/log2-ieee: New file.
36530         Tests for module 'log2f-ieee'.
36531         * modules/log2f-ieee-tests: New file.
36532         * tests/test-log2f-ieee.c: New file.
36533         * tests/test-log2-ieee.h: New file.
36535         New module 'log2f-ieee'.
36536         * modules/log2f-ieee: New file.
36538 2012-03-11  Bruno Haible  <bruno@clisp.org>
36540         Tests for module 'log2l'.
36541         * modules/log2l-tests: New file.
36542         * tests/test-log2l.c: New file.
36544         New module 'log2l'.
36545         * lib/math.in.h (log2l): New declaration.
36546         * lib/log2l.c: New file.
36547         * m4/log2l.m4: New file.
36548         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
36549         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
36550         REPLACE_LOG2L.
36551         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
36552         REPLACE_LOG2L.
36553         * modules/log2l: New file.
36554         * tests/test-math-c++.cc: Check the declaration of log2l.
36555         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
36556         and OSF/1 problems.
36558 2012-03-11  Bruno Haible  <bruno@clisp.org>
36560         Tests for module 'log2f'.
36561         * modules/log2f-tests: New file.
36562         * tests/test-log2f.c: New file.
36564         New module 'log2f'.
36565         * lib/math.in.h (log2f): New declaration.
36566         * lib/log2f.c: New file.
36567         * m4/log2f.m4: New file.
36568         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
36569         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
36570         REPLACE_LOG2F.
36571         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
36572         REPLACE_LOG2F.
36573         * modules/log2f: New file.
36574         * tests/test-math-c++.cc: Check the declaration of log2f.
36575         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
36576         and OSF/1 and Cygwin problems.
36578 2012-03-11  Bruno Haible  <bruno@clisp.org>
36580         Tests for module 'log2'.
36581         * modules/log2-tests: New file.
36582         * tests/test-log2.c: New file.
36583         * tests/test-log2.h: New file.
36585         New module 'log2'.
36586         * lib/math.in.h (log2): New declaration.
36587         * lib/log2.c: New file.
36588         * m4/log2.m4: New file.
36589         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
36590         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
36591         REPLACE_LOG2.
36592         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
36593         REPLACE_LOG2.
36594         * modules/log2: New file.
36595         * tests/test-math-c++.cc: Check the declaration of log2.
36596         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
36597         and OSF/1 and Cygwin problems.
36599 2012-03-11  Bruno Haible  <bruno@clisp.org>
36601         exp2* tests: More tests.
36602         * tests/test-exp2.h (test_function): Test all integral arguments that
36603         don't need to overflow or denormalized numbers.
36604         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
36605         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
36606         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
36608 2012-03-10  Bruno Haible  <bruno@clisp.org>
36610         log1pl-ieee: Work around test failure on AIX 7.1.
36611         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
36613         log1pl-ieee: Work around test failure on IRIX 6.5.
36614         * m4/log1pl-ieee.m4: New file.
36615         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
36616         test whether log1pl works with a minus zero argument. Replace it if
36617         not.
36618         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
36619         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
36620         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
36621         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
36622         (Depends-on): Update conditions.
36623         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
36624         m4/signbit.m4.
36625         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
36626         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
36628         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
36629         * m4/log1pf-ieee.m4: New file.
36630         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
36631         test whether log1pf works with a minus zero argument. Replace it if
36632         not.
36633         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
36634         m4/signbit.m4.
36635         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
36636         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
36638         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
36639         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
36640         (configure.ac): Require gl_FUNC_LOG1PF.
36642         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
36643         * m4/log1p-ieee.m4: New file.
36644         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
36645         whether log1p works with a minus zero argument. Replace it if not.
36646         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
36647         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
36648         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
36649         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
36650         (Depends-on): Update conditions.
36651         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
36652         m4/signbit.m4.
36653         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
36654         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
36656         Tests for module 'log1pl-ieee'.
36657         * modules/log1pl-ieee-tests: New file.
36658         * tests/test-log1pl-ieee.c: New file.
36660         New module 'log1pl-ieee'.
36661         * modules/log1pl-ieee: New file.
36663         Tests for module 'log1p-ieee'.
36664         * modules/log1p-ieee-tests: New file.
36665         * tests/test-log1p-ieee.c: New file.
36667         New module 'log1p-ieee'.
36668         * modules/log1p-ieee: New file.
36670         Tests for module 'log1pf-ieee'.
36671         * modules/log1pf-ieee-tests: New file.
36672         * tests/test-log1pf-ieee.c: New file.
36673         * tests/test-log1p-ieee.h: New file.
36675         New module 'log1pf-ieee'.
36676         * modules/log1pf-ieee: New file.
36678 2012-03-10  Bruno Haible  <bruno@clisp.org>
36680         Tests for module 'log1pl'.
36681         * modules/log1pl-tests: New file.
36682         * tests/test-log1pl.c: New file.
36684         New module 'log1pl'.
36685         * lib/math.in.h (log1pl): New declaration.
36686         * lib/log1pl.c: New file.
36687         * m4/log1pl.m4: New file.
36688         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
36689         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
36690         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
36691         * modules/log1pl: New file.
36692         * tests/test-math-c++.cc: Check the declaration of log1pl.
36693         * doc/posix-functions/log1pl.texi: Mention the new module.
36695 2012-03-10  Bruno Haible  <bruno@clisp.org>
36697         Tests for module 'log1pf'.
36698         * modules/log1pf-tests: New file.
36699         * tests/test-log1pf.c: New file.
36701         New module 'log1pf'.
36702         * lib/math.in.h (log1pf): New declaration.
36703         * lib/log1pf.c: New file.
36704         * m4/log1pf.m4: New file.
36705         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
36706         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
36707         REPLACE_LOG1PF.
36708         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
36709         REPLACE_LOG1PF.
36710         * modules/log1pf: New file.
36711         * tests/test-math-c++.cc: Check the declaration of log1pf.
36712         * doc/posix-functions/log1pf.texi: Mention the new module.
36714 2012-03-10  Bruno Haible  <bruno@clisp.org>
36716         log1p tests: More tests.
36717         * tests/test-log1p.h: New file.
36718         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
36719         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
36720         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
36721         (main): Invoke test_function.
36723         log1p: Provide replacement for Minix and MSVC.
36724         * lib/math.in.h (log1p): New declaration.
36725         * lib/log1p.c: New file.
36726         * m4/log1p.m4: New file.
36727         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
36728         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
36729         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
36730         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
36731         (Depends-on): Add math, isnand, log, round.
36732         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
36733         HAVE_LOG1P is 0.
36734         * tests/test-math-c++.cc: Check the declaration of log1p.
36735         * doc/posix-functions/log1p.texi: Mention the replacement.
36737 2012-03-10  Bruno Haible  <bruno@clisp.org>
36739         math tests: Small simplification.
36740         * tests/test-exp.h (test_function): Use the same err_bound for
36741         'double' on platforms with sizeof (long double) == sizeof (double)
36742         than on platforms with sizeof (long double) > sizeof (double).
36743         * tests/test-exp2.h (test_function): Likewise.
36744         * tests/test-expm1.h (test_function): Likewise.
36745         * tests/test-log.h (test_function): Likewise.
36747 2012-03-10  Bruno Haible  <bruno@clisp.org>
36749         Fix some comments.
36750         * lib/expl.c: Fix an ambiguous comment.
36751         * lib/expm1.c: Likewise.
36752         * lib/expm1l.c: Likewise.
36753         * lib/exp2.c: Likewise.
36754         * lib/exp2l.c: Likewise.
36756 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
36758         regex: allow inclusion of <regex.h> before <limits.h>
36759         Without this patch, portable programs had to include <limits.h> before
36760         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
36761         I ran into this problem with a test version of GNU grep on Solaris 8.
36762         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
36763         This is done conditionally so that this change can be merged
36764         back to glibc.
36765         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
36766         using the included regex.
36768         fts: depend on fdopendir
36769         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
36770         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
36771         problem was introduced when fdopendir was split out.
36773 2012-03-10  Bruno Haible  <bruno@clisp.org>
36775         Remove unused variables.
36776         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
36777         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
36779 2012-03-10  Bruno Haible  <bruno@clisp.org>
36781         isnanf-nolibm: Fix last commit.
36782         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
36784         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
36785         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
36787 2012-03-10  Bruno Haible  <bruno@clisp.org>
36789         logf-ieee: Work around test failure on NetBSD 5.1.
36790         * m4/logf-ieee.m4: New file.
36791         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
36792         whether logf works with a negative argument. Replace it if not.
36793         * lib/logf.c (logf): For negative arguments, return NaN.
36794         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
36795         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
36796         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
36798         logf-ieee: Work around test failure on Solaris 9.
36799         * modules/logf-ieee (Depends-on): Add log-ieee.
36800         (configure.ac): Require gl_FUNC_LOGF.
36802         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
36803         * m4/log-ieee.m4: New file.
36804         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
36805         log works with a negative argument. Replace it if not.
36806         * lib/log.c (log): For negative arguments, return NaN.
36807         * modules/log-ieee (Files): Add m4/log-ieee.m4.
36808         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
36809         * doc/posix-functions/log.texi: Mention the log-ieee module.
36811         Tests for module 'logl-ieee'.
36812         * modules/logl-ieee-tests: New file.
36813         * tests/test-logl-ieee.c: New file.
36815         New module 'logl-ieee'.
36816         * modules/logl-ieee: New file.
36818         Tests for module 'log-ieee'.
36819         * modules/log-ieee-tests: New file.
36820         * tests/test-log-ieee.c: New file.
36822         New module 'log-ieee'.
36823         * modules/log-ieee: New file.
36825         Tests for module 'logf-ieee'.
36826         * modules/logf-ieee-tests: New file.
36827         * tests/test-logf-ieee.c: New file.
36828         * tests/test-log-ieee.h: New file.
36830         New module 'logf-ieee'.
36831         * modules/logf-ieee: New file.
36833 2012-03-10  Bruno Haible  <bruno@clisp.org>
36835         log: Fix bug introduced on 2012-03-09.
36836         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
36838 2012-03-10  Pádraig Brady  <P@draigBrady.com>
36840         timer-time: link explicitly with pthreads on glibc
36841         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
36842         to support static linking, when newer glibc is
36843         detected, as that contains pthread emulation of
36844         POSIX timer functions where required.
36845         * modules/timer-time: Depend on threadlib to
36846         pull in the appropriate library to link.
36848 2012-03-10  Bruno Haible  <bruno@clisp.org>
36850         log* tests: More tests.
36851         * tests/test-log.h: New file.
36852         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
36853         (main): Invoke test_function.
36854         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
36855         (main): Invoke test_function.
36856         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
36857         (main): Invoke test_function.
36858         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
36859         tests/randomd.c.
36860         (Makefile.am): Add randomd.c to test_log_SOURCES.
36861         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
36862         tests/randomf.c.
36863         (Makefile.am): Add randomf.c to test_logf_SOURCES.
36864         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
36865         tests/randoml.c.
36866         (Depends-on): Add 'float'.
36867         (Makefile.am): Add randoml.c to test_logl_SOURCES.
36869 2012-03-09  Bruno Haible  <bruno@clisp.org>
36871         logl: Work around OSF/1 5.1 bug.
36872         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
36873         * lib/logl.c (logl): If logl exists, use it and provide just the
36874         workaround.
36875         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
36876         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
36877         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
36878         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
36879         * modules/logl (configure.ac): Consider REPLACE_LOGL.
36880         (Depends-on): Update conditions.
36881         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
36883 2012-03-09  Bruno Haible  <bruno@clisp.org>
36885         logf: Work around OSF/1 5.1 bug.
36886         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
36887         * lib/logf.c (logf): If logf exists, use it and provide just the
36888         workaround.
36889         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
36890         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
36891         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
36892         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
36893         * modules/logf (configure.ac): Consider REPLACE_LOGF.
36894         (Depends-on): Update conditions.
36895         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
36897 2012-03-09  Bruno Haible  <bruno@clisp.org>
36899         log: Work around OSF/1 5.1 bug.
36900         * lib/math.in.h (log): New declaration.
36901         * lib/log.c: New file.
36902         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
36903         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
36904         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
36905         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
36906         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
36907         * modules/log (Files): Add lib/log.c.
36908         (Depends-on): Add math.
36909         (configure.ac): If REPLACE_LOG is 1, compile an override.
36910         * tests/test-math-c++.cc: Check the declaration of log.
36911         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
36913 2012-03-09  Jim Meyering  <meyering@redhat.com>
36915         readtokens.c: adjust wording in a comment
36916         * lib/readtokens.c: Insert omitted "that" in a comment.
36918 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
36920         modechange: add notations +40, 00440, etc.
36921         * lib/modechange.c (mode_compile): Support new notations
36922         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
36924 2012-03-08  Bruno Haible  <bruno@clisp.org>
36926         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
36927         * m4/exp2l-ieee.m4: New file.
36928         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
36929         test whether exp2l works with a NaN argument and with a negative
36930         infinity argument. Replace it if not.
36931         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
36932         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
36933         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
36934         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
36935         (Depends-on): Update conditions.
36936         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
36937         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
36938         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
36940         Tests for module 'exp2l-ieee'.
36941         * modules/exp2l-ieee-tests: New file.
36942         * tests/test-exp2l-ieee.c: New file.
36944         New module 'exp2l-ieee'.
36945         * modules/exp2l-ieee: New file.
36947         Tests for module 'exp2-ieee'.
36948         * modules/exp2-ieee-tests: New file.
36949         * tests/test-exp2-ieee.c: New file.
36951         New module 'exp2-ieee'.
36952         * modules/exp2-ieee: New file.
36954         Tests for module 'exp2f-ieee'.
36955         * modules/exp2f-ieee-tests: New file.
36956         * tests/test-exp2f-ieee.c: New file.
36957         * tests/test-exp2-ieee.h: New file.
36959         New module 'exp2f-ieee'.
36960         * modules/exp2f-ieee: New file.
36962 2012-03-08  Bruno Haible  <bruno@clisp.org>
36964         Tests for module 'exp2l'.
36965         * modules/exp2l-tests: New file.
36966         * tests/test-exp2l.c: New file.
36968         New module 'exp2l'.
36969         * lib/math.in.h (exp2l): New declaration.
36970         * lib/exp2l.c: New file.
36971         * lib/expl-table.c: New file, extracted from lib/expl.c.
36972         * lib/expl.c (gl_expl_table): New declaration.
36973         (expl): Remove expl_table. Update reference.
36974         * m4/exp2l.m4: New file.
36975         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
36976         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
36977         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
36978         * modules/exp2l: New file.
36979         * modules/expl (Files): Add lib/expl-table.c.
36980         (configure.ac): Compile also expl-table.c.
36981         * tests/test-math-c++.cc: Check the declaration of exp2l.
36982         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
36983         problem.
36985 2012-03-08  Bruno Haible  <bruno@clisp.org>
36987         Tests for module 'exp2f'.
36988         * modules/exp2f-tests: New file.
36989         * tests/test-exp2f.c: New file.
36991         New module 'exp2f'.
36992         * lib/math.in.h (exp2f): New declaration.
36993         * lib/exp2f.c: New file.
36994         * m4/exp2f.m4: New file.
36995         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
36996         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
36997         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
36998         * modules/exp2f: New file.
36999         * tests/test-math-c++.cc: Check the declaration of exp2f.
37000         * doc/posix-functions/exp2f.texi: Mention the new module and the
37001         IRIX problem.
37003 2012-03-08  Bruno Haible  <bruno@clisp.org>
37005         Tests for module 'exp2'.
37006         * modules/exp2-tests: New file.
37007         * tests/test-exp2.c: New file.
37008         * tests/test-exp2.h: New file.
37010         New module 'exp2'.
37011         * lib/math.in.h (exp2): New declaration.
37012         * lib/exp2.c: New file.
37013         * m4/exp2.m4: New file.
37014         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
37015         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
37016         REPLACE_EXP2.
37017         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
37018         REPLACE_EXP2.
37019         * modules/exp2: New file.
37020         * tests/test-math-c++.cc: Check the declaration of exp2.
37021         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
37022         and OpenBSD problems.
37024 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
37026         savedir: fix comment typo
37027         * lib/savedir.c (savedirstream): Fix typo in comment.
37029 2012-03-08  Bruno Haible  <bruno@clisp.org>
37031         test-readtokens.c: use const; remove unwarranted cast
37032         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
37034 2012-03-08  Bruno Haible  <bruno@clisp.org>
37036         fmal: Avoid compilation error on AIX.
37037         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
37038         AIX 5.2..7.1.
37040 2012-03-08  Bruno Haible  <bruno@clisp.org>
37042         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
37043         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
37044         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
37045         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
37046         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
37047         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
37048         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
37050 2012-03-08  Bruno Haible  <bruno@clisp.org>
37052         remainderf: Override buggy system function on IRIX 6.5.
37053         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
37054         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
37055         when it exists.
37056         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
37058 2012-03-08  Jim Meyering  <meyering@redhat.com>
37060         test-readtokens.c: avoid const-related compilation warnings
37061         * tests/test-readtokens.c: Avoid const-related compilation warnings.
37063 2012-03-07  Jim Meyering  <meyering@redhat.com>
37064             Bruno Haible  <bruno@clisp.org>
37066         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
37067         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
37068         tests/randomd.c.
37069         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
37070         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
37071         tests/randoml.c.
37072         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
37074 2012-03-07  Bruno Haible  <bruno@clisp.org>
37076         expm1l: Avoid compilation error on AIX.
37077         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
37078         AIX 5.2..7.1.
37080 2012-03-07  Bruno Haible  <bruno@clisp.org>
37082         expm1l: Don't override undeclared system function on IRIX 6.5.
37083         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
37084         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
37085         it exists. Set HAVE_DECL_EXPM1L.
37086         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
37087         HAVE_EXPM1L.
37088         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
37089         HAVE_EXPM1L.
37090         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
37092 2012-03-07  Bruno Haible  <bruno@clisp.org>
37094         remainderl: Don't override undeclared system function on IRIX 6.5.
37095         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
37096         HAVE_REMAINDERL.
37097         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
37098         declared when it exists. Set HAVE_DECL_REMAINDERL.
37099         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
37100         not HAVE_REMAINDERL.
37101         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
37102         HAVE_REMAINDERL.
37103         * doc/posix-functions/remainderl.texi: Mention missing declaration
37104         problem.
37106 2012-03-07  Bruno Haible  <bruno@clisp.org>
37108         rintf: Don't override undeclared system function on IRIX 6.5.
37109         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
37110         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
37111         exists. Set HAVE_DECL_RINTF.
37112         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
37113         HAVE_RINTF.
37114         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
37115         HAVE_RINTF.
37116         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
37118 2012-03-07  Bruno Haible  <bruno@clisp.org>
37120         roundl: Avoid compilation error on AIX.
37121         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
37122         AIX 5.2..7.1.
37124 2012-03-07  Bruno Haible  <bruno@clisp.org>
37126         roundl: Don't override undeclared system function on IRIX 6.5.
37127         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
37128         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
37129         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
37130         * modules/roundl (configure.ac): For replacement code, test
37131         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
37132         (Depends-on): Update conditions.
37133         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
37135 2012-03-07  Bruno Haible  <bruno@clisp.org>
37137         roundf: Don't override undeclared system function on IRIX 6.5.
37138         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
37139         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
37140         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
37141         * modules/roundf (configure.ac): For replacement code, test
37142         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
37143         (Depends-on): Update conditions.
37144         * modules/roundf-ieee (Depends-on): Update conditions.
37145         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
37147 2012-03-07  Bruno Haible  <bruno@clisp.org>
37149         round: Don't override undeclared system function on IRIX 6.5.
37150         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
37151         argument.
37152         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
37153         also when it is not declared. Set HAVE_ROUND. For replacement code,
37154         test HAVE_ROUND, not HAVE_DECL_ROUND.
37155         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
37156         not HAVE_DECL_ROUND.
37157         (Depends-on): Update conditions.
37158         * modules/round-ieee (Depends-on): Update conditions.
37159         * doc/posix-functions/round.texi: Mention the IRIX problem.
37161 2012-03-07  Bruno Haible  <bruno@clisp.org>
37163         copysignf: Don't override undeclared system function on IRIX 6.5.
37164         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
37165         HAVE_COPYSIGNF.
37166         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
37167         declared when it exists. Set HAVE_DECL_COPYSIGNF.
37168         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
37169         not HAVE_COPYSIGNF.
37170         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
37171         HAVE_COPYSIGNF.
37172         * doc/posix-functions/copysignf.texi: Mention missing declaration
37173         problem.
37175 2012-03-07  Jim Meyering  <meyering@redhat.com>
37177         readtokens: add tests
37178         * modules/readtokens-tests: New file.
37179         * tests/test-readtokens.c: New file.
37181 2012-03-07  Jim Meyering  <meyering@redhat.com>
37183         quotearg: the module must now include quote.h
37184         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
37185         So must the module.
37186         * modules/quotearg (Files): Add quote.h.
37188 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
37190         readtokens: avoid core dumps with unusual calling patterns
37191         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
37192         * lib/readtokens.c: Include limits.h.
37193         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
37194         (readtoken): Don't cache the delimiters; the cache code was buggy
37195         if !delim && saved_delim, or if the new n_delim differs from the old.
37196         Also, it wasn't thread-safe.
37198 2012-03-07  Bruno Haible  <bruno@clisp.org>
37200         quote: Adhere to common module description layout.
37201         * modules/quote (Makefile.am): Add back empty section.
37203 2012-03-06  Akim Demaille  <demaille@gostai.com>
37205         quote: fuse into quotearg
37206         This patch is made for the benefit of Bison.
37207         quote does not leave the choice of the quoting style to the user.
37208         quoting_style provides poor customizability, yet quoting_options,
37209         which is very rich, is hidden inside quotearg.c.  So in order to
37210         allow quote customization, move its implementation to quotearg.c.
37211         * lib/quote.c: Remove.
37212         * modules/quote: Adjust.
37213         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
37214         warning: provide all the members of literal structs.
37215         (quote_quoting_options): New.
37216         (quote, quote_n): Import implementation from quote.c.
37217         * lib/quote.h: Import the comments from quote.c.
37218         (quote_quoting_options): New.
37220 2012-03-06  Bruno Haible  <bruno@clisp.org>
37222         Tests for module 'expm1l-ieee'.
37223         * modules/expm1l-ieee-tests: New file.
37224         * tests/test-expm1l-ieee.c: New file.
37226         New module 'expm1l-ieee'.
37227         * modules/expm1l-ieee: New file.
37229         Tests for module 'expm1f-ieee'.
37230         * modules/expm1f-ieee-tests: New file.
37231         * tests/test-expm1f-ieee.c: New file.
37233         New module 'expm1f-ieee'.
37234         * modules/expm1f-ieee: New file.
37236         Tests for module 'expm1-ieee'.
37237         * modules/expm1-ieee-tests: New file.
37238         * tests/test-expm1-ieee.c: New file.
37239         * tests/test-expm1-ieee.h: New file.
37241         New module 'expm1-ieee'.
37242         * modules/expm1-ieee: New file.
37243         * m4/expm1-ieee.m4: New file.
37244         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
37245         whether expm1 works with a minus zero argument. Replace it if not.
37246         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
37247         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
37248         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
37249         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
37250         (Depends-on): Update conditions.
37251         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
37252         AIX problem.
37254 2012-03-06  Bruno Haible  <bruno@clisp.org>
37256         Work around expm1f bug on IRIX 6.5.
37257         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
37258         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
37259         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
37260         not work.
37261         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
37262         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
37263         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
37264         (Depends-on): Update conditions.
37265         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
37267 2012-03-06  Bruno Haible  <bruno@clisp.org>
37269         Tests for module 'expm1l'.
37270         * modules/expm1l-tests: New file.
37271         * tests/test-expm1l.c: New file.
37273         New module 'expm1l'.
37274         * lib/math.in.h (expm1l): New declaration.
37275         * lib/expm1l.c: New file.
37276         * m4/expm1l.m4: New file.
37277         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
37278         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
37279         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
37280         * modules/expm1l: New file.
37281         * tests/test-math-c++.cc: Check the declaration of expm1l.
37282         * doc/posix-functions/expm1l.texi: Mention the new module.
37284 2012-03-06  Bruno Haible  <bruno@clisp.org>
37286         Tests for module 'expm1f'.
37287         * modules/expm1f-tests: New file.
37288         * tests/test-expm1f.c: New file.
37290         New module 'expm1f'.
37291         * lib/math.in.h (expm1f): New declaration.
37292         * lib/expm1f.c: New file.
37293         * m4/expm1f.m4: New file.
37294         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
37295         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
37296         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
37297         * modules/expm1f: New file.
37298         * tests/test-math-c++.cc: Check the declaration of expm1f.
37299         * doc/posix-functions/expm1f.texi: Mention the new module.
37301 2012-03-06  Bruno Haible  <bruno@clisp.org>
37303         Tests for module 'expm1'.
37304         * modules/expm1-tests: New file.
37305         * tests/test-expm1.c: New file.
37306         * tests/test-expm1.h: New file.
37308         New module 'expm1'.
37309         * lib/math.in.h (expm1): New declaration.
37310         * lib/expm1.c: New file.
37311         * m4/expm1.m4: New file.
37312         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
37313         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
37314         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
37315         * modules/expm1: New file.
37316         * tests/test-math-c++.cc: Check the declaration of expm1.
37317         * doc/posix-functions/expm1.texi: Mention the new module.
37319 2012-03-06  Bruno Haible  <bruno@clisp.org>
37321         math: Ensure declarations of math functions.
37322         * modules/acosf (Depends-on): Add 'extensions'.
37323         * modules/asinf (Depends-on): Likewise.
37324         * modules/atan2f (Depends-on): Likewise.
37325         * modules/atanf (Depends-on): Likewise.
37326         * modules/cbrt (Depends-on): Likewise.
37327         * modules/cbrtf (Depends-on): Likewise.
37328         * modules/cbrtl (Depends-on): Likewise.
37329         * modules/copysignf (Depends-on): Likewise.
37330         * modules/copysignl (Depends-on): Likewise.
37331         * modules/cosf (Depends-on): Likewise.
37332         * modules/coshf (Depends-on): Likewise.
37333         * modules/expf (Depends-on): Likewise.
37334         * modules/fabsf (Depends-on): Likewise.
37335         * modules/fabsl (Depends-on): Likewise.
37336         * modules/fmaf (Depends-on): Likewise.
37337         * modules/fmal (Depends-on): Likewise.
37338         * modules/fmodf (Depends-on): Likewise.
37339         * modules/fmodl (Depends-on): Likewise.
37340         * modules/frexpf (Depends-on): Likewise.
37341         * modules/frexpl (Depends-on): Likewise.
37342         * modules/hypot (Depends-on): Likewise.
37343         * modules/hypotf (Depends-on): Likewise.
37344         * modules/hypotl (Depends-on): Likewise.
37345         * modules/ldexpf (Depends-on): Likewise.
37346         * modules/ldexpl (Depends-on): Likewise.
37347         * modules/log10f (Depends-on): Likewise.
37348         * modules/log10l (Depends-on): Likewise.
37349         * modules/log1p (Depends-on): Likewise.
37350         * modules/logb (Depends-on): Likewise.
37351         * modules/logf (Depends-on): Likewise.
37352         * modules/modff (Depends-on): Likewise.
37353         * modules/modfl (Depends-on): Likewise.
37354         * modules/powf (Depends-on): Likewise.
37355         * modules/remainderf (Depends-on): Likewise.
37356         * modules/remainderl (Depends-on): Likewise.
37357         * modules/rintf (Depends-on): Likewise.
37358         * modules/rintl (Depends-on): Likewise.
37359         * modules/sinf (Depends-on): Likewise.
37360         * modules/sinhf (Depends-on): Likewise.
37361         * modules/sqrtf (Depends-on): Likewise.
37362         * modules/tanf (Depends-on): Likewise.
37363         * modules/tanhf (Depends-on): Likewise.
37364         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
37365         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
37366         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
37367         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
37368         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
37369         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
37370         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
37371         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
37372         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
37373         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
37374         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
37375         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
37376         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
37377         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
37378         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
37379         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
37380         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
37381         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
37382         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
37383         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
37384         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
37385         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
37386         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
37387         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
37388         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
37389         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
37390         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
37391         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
37392         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
37393         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
37394         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
37395         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
37396         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
37397         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
37398         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
37399         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
37400         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
37401         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
37402         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
37403         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
37404         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
37406 2012-03-06  Bruno Haible  <bruno@clisp.org>
37408         math: Update module names in warnings.
37409         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
37410         tanl): Use specific module name in warn-on-use warning.
37412 2012-03-06  Bruno Haible  <bruno@clisp.org>
37414         expl: Simplify computation.
37415         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
37417 2012-03-05  Bruno Haible  <bruno@clisp.org>
37419         exp* tests: More tests.
37420         * tests/test-exp.h: New file.
37421         * tests/test-exp.c: Include <float.h> and test-exp.h.
37422         (main): Invoke test_function.
37423         * tests/test-expf.c: Include <float.h> and test-exp.h.
37424         (main): Invoke test_function.
37425         * tests/test-expl.c: Include <float.h> and test-exp.h.
37426         (main): Invoke test_function.
37427         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
37428         (Makefile.am): Add randomd.c to test_exp_SOURCES.
37429         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
37430         (Makefile.am): Add randomf.c to test_expf_SOURCES.
37431         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
37432         (Depends-on): Add 'float'.
37433         (Makefile.am): Add randoml.c to test_expl_SOURCES.
37435         expl: Fix precision of computed result.
37436         * lib/expl.c: Completely rewritten.
37437         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
37438         (Maintainer): Add me.
37439         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
37441 2012-03-05  Bruno Haible  <bruno@clisp.org>
37443         cbrt* tests: More tests.
37444         * tests/test-cbrt.h: New file.
37445         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
37446         (main): Invoke test_function.
37447         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
37448         (main): Invoke test_function.
37449         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
37450         (main): Invoke test_function.
37451         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
37452         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
37453         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
37454         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
37455         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
37456         (Depends-on): Add 'float'.
37457         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
37459 2012-03-05  Bruno Haible  <bruno@clisp.org>
37461         hypot* tests: More tests.
37462         * tests/test-hypot.h: New file, partially extracted from
37463         tests/test-hypotl.c.
37464         * tests/test-hypot.c: Include test-hypot.h.
37465         (main): Invoke test_function.
37466         * tests/test-hypotf.c: Include test-hypot.h.
37467         (main): Invoke test_function.
37468         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
37469         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
37470         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
37471         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
37472         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
37473         tests/randomf.c.
37474         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
37475         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
37476         tests/randoml.c.
37477         (Depends-on): Add 'fpucw', 'float'.
37478         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
37480 2012-03-05  Bruno Haible  <bruno@clisp.org>
37482         fpucw: Doc about FreeBSD.
37483         * lib/fpucw.h: Mention FreeBSD in comments.
37485 2012-03-04  Bruno Haible  <bruno@clisp.org>
37487         sqrt* tests: More tests.
37488         * tests/test-sqrt.h: New file.
37489         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
37490         (main): Invoke test_function.
37491         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
37492         (main): Invoke test_function.
37493         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
37494         (main): Invoke test_function.
37495         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
37496         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
37497         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
37498         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
37499         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
37500         (Depends-on): Add 'float'.
37501         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
37503 2012-03-04  Bruno Haible  <bruno@clisp.org>
37505         remainder* tests: More tests.
37506         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
37507         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
37508         (main): Invoke test_function.
37509         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
37510         (main): Invoke test_function.
37511         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
37512         (main): Invoke test_function.
37513         * modules/remainder-tests (Files): Add tests/test-remainder.h,
37514         tests/randomd.c.
37515         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
37516         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
37517         tests/randomf.c.
37518         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
37519         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
37520         tests/randoml.c.
37521         (Depends-on): Add 'float'.
37522         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
37524 2012-03-04  Bruno Haible  <bruno@clisp.org>
37526         remainder, remainderf, remainderl: Fix computation for large quotients.
37527         * lib/remainder.c: Completely rewritten.
37528         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
37529         USE_FLOAT.
37530         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
37531         USE_LONG_DOUBLE.
37532         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
37533         isnand, isinf. Remove round, fma.
37534         * modules/remainderf (Files): Add lib/remainder.c.
37535         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
37536         Remove roundf, fmaf.
37537         * modules/remainderl (Files): Add lib/remainder.c.
37538         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
37539         isinf. Remove roundl, fmal.
37540         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
37541         REMAINDER_LIBM.
37542         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
37543         REMAINDERF_LIBM.
37544         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
37545         REMAINDERL_LIBM.
37547 2012-03-04  Bruno Haible  <bruno@clisp.org>
37549         fmod* tests: More tests.
37550         * tests/test-fmod.h (my_ldexp): New function.
37551         (test_function): Reduce amount of random numbers to test. Add tests
37552         of very large quotients x / y.
37553         * tests/test-fmod.c (MAX_EXP): New macro.
37554         * tests/test-fmodf.c (MAX_EXP): Likewise.
37555         * tests/test-fmodl.c (MAX_EXP): Likewise.
37557 2012-03-04  Bruno Haible  <bruno@clisp.org>
37559         fmod, fmodl: Fix computation for large quotients x / y.
37560         * lib/fmod.c: Completely rewritten.
37561         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
37562         USE_LONG_DOUBLE.
37563         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
37564         isnand. Remove fma.
37565         * modules/fmodl (Files): Add lib/fmod.c.
37566         (Depends-on): Add float, isfinite, signbit, fabsl,
37567         frexpl, ldexpl, isnanl. Remove fma.
37568         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
37569         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
37571 2012-03-03  Bruno Haible  <bruno@clisp.org>
37573         fmod* tests: More tests.
37574         * tests/test-fmod.h: New file.
37575         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
37576         (main): Invoke test_function.
37577         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
37578         (main): Invoke test_function.
37579         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
37580         (main): Invoke test_function.
37581         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
37582         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
37583         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
37584         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
37585         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
37586         (Depends-on): Add 'float'.
37587         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
37589 2012-03-03  Bruno Haible  <bruno@clisp.org>
37591         rint* tests: More tests.
37592         * tests/test-rint.h: New file, partially extracted from
37593         tests/test-rintl.c.
37594         * tests/test-rint.c: Include test-rint.h.
37595         (main): Invoke test_function.
37596         * tests/test-rintf.c: Include test-rint.h.
37597         (main): Invoke test_function.
37598         * tests/test-rintl.c: Include test-rint.h.
37599         (main): Invoke test_function.
37600         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
37601         (Makefile.am): Add randomd.c to test_rint_SOURCES.
37602         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
37603         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
37604         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
37605         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
37607 2012-03-03  Bruno Haible  <bruno@clisp.org>
37609         modf* tests: More tests.
37610         * tests/test-modf.h: New file.
37611         * tests/test-modf.c: Include <float.h> and test-modf.h.
37612         (main): Invoke test_function.
37613         * tests/test-modff.c: Include <float.h> and test-modf.h.
37614         (main): Invoke test_function.
37615         * tests/test-modfl.c: Include <float.h> and test-modf.h.
37616         (main): Invoke test_function.
37617         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
37618         (Makefile.am): Add randomd.c to test_modf_SOURCES.
37619         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
37620         (Makefile.am): Add randomf.c to test_modff_SOURCES.
37621         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
37622         (Depends-on): Add 'float'.
37623         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
37625 2012-03-03  Bruno Haible  <bruno@clisp.org>
37627         fabs* tests: More tests.
37628         * tests/test-fabs.h: New file, partially extracted from
37629         tests/test-fabsl.c.
37630         * tests/test-fabs.c (RANDOM): New macro.
37631         * tests/test-fabsf.c (RANDOM): New macro.
37632         * tests/test-fabsl.c (RANDOM): New macro.
37633         * modules/fabs-tests (Files): Add tests/randomd.c.
37634         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
37635         * modules/fabsf-tests (Files): Add tests/randomf.c.
37636         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
37637         * modules/fabsl-tests (Files): Add tests/randoml.c.
37638         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
37640 2012-03-03  Bruno Haible  <bruno@clisp.org>
37642         ldexp* tests: More tests.
37643         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
37644         * tests/test-ldexp.c (RANDOM): New macro.
37645         * tests/test-ldexpf.c (RANDOM): New macro.
37646         * tests/test-ldexpl.c (RANDOM): New macro.
37647         * modules/ldexp-tests (Files): Add tests/randomd.c.
37648         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
37649         * modules/ldexpf-tests (Files): Add tests/randomf.c.
37650         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
37651         * modules/ldexpl-tests (Files): Add tests/randoml.c.
37652         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
37654 2012-03-03  Bruno Haible  <bruno@clisp.org>
37656         frexp* tests: More tests.
37657         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
37658         * tests/test-frexp.c (RANDOM): New macro.
37659         * tests/test-frexpf.c (RANDOM): New macro.
37660         * tests/test-frexpl.c (RANDOM): New macro.
37661         * modules/frexp-tests (Files): Add tests/randomd.c.
37662         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
37663         * modules/frexpf-tests (Files): Add tests/randomf.c.
37664         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
37665         * modules/frexpl-tests (Files): Add tests/randoml.c.
37666         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
37668 2012-03-03  Bruno Haible  <bruno@clisp.org>
37670         Support for pseudo-random numbers in tests.
37671         * tests/randomf.c: New file.
37672         * tests/randomd.c: New file.
37673         * tests/randoml.c: New file.
37674         * tests/macros.h (randomf, randomd, randoml): New declarations.
37676 2012-03-03  Bruno Haible  <bruno@clisp.org>
37678         frexp* tests: Refactor.
37679         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
37680         * tests/test-frexp.c: Include and use it.
37681         * tests/test-frexpf.c: Likewise.
37682         * tests/test-frexpl.c: Likewise.
37683         * modules/frexp-tests (Files): Add tests/test-frexp.h.
37684         * modules/frexpf-tests (Files): Likewise.
37685         * modules/frexpl-tests (Files): Likewise.
37687 2012-03-02  Jim Meyering  <meyering@redhat.com>
37689         maint: don't specify XZ_OPT=-9ev in dist-related rule
37690         Using xz's -9 option is warranted only if you have a very large
37691         tarball (see xz's documentation for the sizes vs. presets), and
37692         requires 64MiB of memory at decompression time.
37693         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
37694         Automake's default of just "-e" is fine.  Override on a
37695         per-package basis by setting XZ_OPT e.g., in cfg.mk.
37697 2012-03-01  Eric Blake  <eblake@redhat.com>
37699         maint.mk: allow announcement for non-gnulib project
37700         * maint.mk (announcement): Skip gnulib version if not used.
37702 2012-03-01  Jim Meyering  <meyering@redhat.com>
37704         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
37705         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
37706         envvar settings cannot interfere.  Otherwise, setting envvars like
37707         prohibit=foo require=bar, etc. would cause spurious test failures.
37709 2012-03-01  Eric Blake  <eblake@redhat.com>
37711         maint.mk: add per-line exclusions to prohibitions
37712         * maint.mk (_sc_search_regexp): Add $exclude parameter.
37713         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
37714         (sc_const_long_option): Use it.
37716 2012-03-01  Bruno Haible  <bruno@clisp.org>
37718         Tests for module 'expl-ieee'.
37719         * modules/expl-ieee-tests: New file.
37720         * tests/test-expl-ieee.c: New file.
37722         New module 'expl-ieee'.
37723         * modules/expl-ieee: New file.
37725         Tests for module 'exp-ieee'.
37726         * modules/exp-ieee-tests: New file.
37727         * tests/test-exp-ieee.c: New file.
37729         New module 'exp-ieee'.
37730         * modules/exp-ieee: New file.
37732         Tests for module 'expf-ieee'.
37733         * modules/expf-ieee-tests: New file.
37734         * tests/test-expf-ieee.c: New file.
37735         * tests/test-exp-ieee.h: New file.
37737         New module 'expf-ieee'.
37738         * modules/expf-ieee: New file.
37740 2012-02-29  Bruno Haible  <bruno@clisp.org>
37742         cbrtl-ieee: Work around test failure on IRIX 6.5.
37743         * m4/cbrtl-ieee.m4: New file.
37744         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
37745         test whether cbrtl works with a minus zero argument. Replace it if not.
37746         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
37747         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
37748         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
37749         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
37750         (Depends-on): Update conditions.
37751         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
37752         m4/signbit.m4.
37753         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
37754         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
37755         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
37757         Tests for module 'cbrtl-ieee'.
37758         * modules/cbrtl-ieee-tests: New file.
37759         * tests/test-cbrtl-ieee.c: New file.
37761         New module 'cbrtl-ieee'.
37762         * modules/cbrtl-ieee: New file.
37764         Tests for module 'cbrt-ieee'.
37765         * modules/cbrt-ieee-tests: New file.
37766         * tests/test-cbrt-ieee.c: New file.
37768         New module 'cbrt-ieee'.
37769         * modules/cbrt-ieee: New file.
37771         Tests for module 'cbrtf-ieee'.
37772         * modules/cbrtf-ieee-tests: New file.
37773         * tests/test-cbrtf-ieee.c: New file.
37774         * tests/test-cbrt-ieee.h: New file.
37776         New module 'cbrtf-ieee'.
37777         * modules/cbrtf-ieee: New file.
37779 2012-02-29  Bruno Haible  <bruno@clisp.org>
37781         cbrtf: Work around bug in IRIX 6.5 system function.
37782         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
37783         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
37784         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
37785         work.
37786         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
37787         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
37788         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
37789         (Depends-on): Update conditions.
37790         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
37792 2012-02-29  Bruno Haible  <bruno@clisp.org>
37794         Tests for module 'cbrtl'.
37795         * modules/cbrtl-tests: New file.
37796         * tests/test-cbrtl.c: New file.
37798         New module 'cbrtl'.
37799         * lib/math.in.h (cbrtl): New declaration.
37800         * lib/cbrtl.c: New file.
37801         * m4/cbrtl.m4: New file.
37802         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
37803         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
37804         HAVE_DECL_CBRTL.
37805         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
37806         HAVE_DECL_CBRTL.
37807         * modules/cbrtl: New file.
37808         * tests/test-math-c++.cc: Check the declaration of cbrtl.
37809         * doc/posix-functions/cbrtl.texi: Mention the new module.
37811 2012-02-29  Bruno Haible  <bruno@clisp.org>
37813         Tests for module 'cbrtf'.
37814         * modules/cbrtf-tests: New file.
37815         * tests/test-cbrtf.c: New file.
37817         New module 'cbrtf'.
37818         * lib/math.in.h (cbrtf): New declaration.
37819         * lib/cbrtf.c: New file.
37820         * m4/cbrtf.m4: New file.
37821         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
37822         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
37823         HAVE_DECL_CBRTF.
37824         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
37825         HAVE_DECL_CBRTF.
37826         * modules/cbrtf: New file.
37827         * tests/test-math-c++.cc: Check the declaration of cbrtf.
37828         * doc/posix-functions/cbrtf.texi: Mention the new module.
37830 2012-02-29  Bruno Haible  <bruno@clisp.org>
37832         cbrt: Provide replacement on MSVC and Minix.
37833         * lib/math.in.h (cbrt): New declaration.
37834         * lib/cbrt.c: New file.
37835         * m4/cbrt.m4: New file.
37836         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
37837         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
37838         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
37839         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
37840         (Depends-on): Add dependencies.
37841         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
37842         * tests/test-math-c++.cc: Check the declaration of cbrt.
37843         * doc/posix-functions/cbrt.texi: Mention that the module provides a
37844         replacement.
37846 2012-02-29  Bruno Haible  <bruno@clisp.org>
37848         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
37849         * m4/hypotl-ieee.m4: New file.
37850         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
37851         test whether hypotl works with mixed NaN and Infinity arguments.
37852         Replace it if not.
37853         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
37854         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
37855         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
37856         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
37857         (Depends-on): Update conditions.
37858         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
37859         (Depends-on): Add hypot-ieee.
37860         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
37861         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
37863         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
37864         * m4/hypotf-ieee.m4: New file.
37865         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
37866         test whether hypotf works with mixed NaN and Infinity arguments.
37867         Replace it if not.
37868         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
37869         (Depends-on): Add hypot-ieee.
37870         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
37871         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
37873         hypot-ieee: Work around test failure on OSF/1 and native Windows.
37874         * lib/math.in.h (hypot): New declaration.
37875         * lib/hypot.c: New file.
37876         * m4/hypot-ieee.m4: New file.
37877         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
37878         whether hypot works with mixed NaN and Infinity arguments. Replace it
37879         if not.
37880         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
37881         REPLACE_HYPOT.
37882         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
37883         * modules/hypot (Files): Add lib/hypot.c.
37884         (Depends-on): Add dependencies.
37885         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
37886         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
37887         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
37888         * tests/test-math-c++.cc: Check the declaration of hypot.
37889         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
37891         Tests for module 'hypotl-ieee'.
37892         * modules/hypotl-ieee-tests: New file.
37893         * tests/test-hypotl-ieee.c: New file.
37895         New module 'hypotl-ieee'.
37896         * modules/hypotl-ieee: New file.
37898         Tests for module 'hypot-ieee'.
37899         * modules/hypot-ieee-tests: New file.
37900         * tests/test-hypot-ieee.c: New file.
37902         New module 'hypot-ieee'.
37903         * modules/hypot-ieee: New file.
37905         Tests for module 'hypotf-ieee'.
37906         * modules/hypotf-ieee-tests: New file.
37907         * tests/test-hypotf-ieee.c: New file.
37908         * tests/test-hypot-ieee.h: New file.
37910         New module 'hypotf-ieee'.
37911         * modules/hypotf-ieee: New file.
37913 2012-02-29  Bruno Haible  <bruno@clisp.org>
37915         Remove unused variables.
37916         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
37917         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
37918         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
37919         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
37921 2012-02-29  Eric Blake  <eblake@redhat.com>
37923         termios: fix pid_t always, not just for tcgetsid
37924         * doc/posix-headers/termios.texi (termios.h): Mention problem.
37925         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
37926         just when building tcgetsid.
37928 2012-02-29  Bruno Haible  <bruno@clisp.org>
37930         Tests for module 'hypotl'.
37931         * modules/hypotl-tests: New file.
37932         * tests/test-hypotl.c: New file.
37934         New module 'hypotl'.
37935         * lib/math.in.h (hypotl): New declaration.
37936         * lib/hypotl.c: New file.
37937         * m4/hypotl.m4: New file.
37938         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
37939         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
37940         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
37941         * modules/hypotl: New file.
37942         * tests/test-math-c++.cc: Check the hypotl declaration.
37943         * doc/posix-functions/hypotl.texi: Mention the new module.
37945 2012-02-29  Eric Blake  <eblake@redhat.com>
37947         tcgetsid: fix cygwin header bug
37948         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
37950         docs: update cygwin progress
37951         * doc/posix-functions/llround.texi (llround): Added in cygwin
37952         1.7.8.
37953         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
37954         * doc/glibc-functions/program_invocation_name.texi
37955         (program_invocation_name): Likewise.
37956         * doc/glibc-functions/program_invocation_short_name.texi
37957         (program_invocation_short_name): Likewise.
37958         * doc/glibc-functions/madvise.texi (madvise): Likewise.
37959         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
37960         Likewise.
37961         * doc/posix-functions/pthread_spin_destroy.texi
37962         (pthread_spin_destroy): Added in cygwin 1.7.10.
37963         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
37964         Likewise.
37965         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
37966         Likewise.
37967         * doc/posix-functions/pthread_spin_trylock.texi
37968         (pthread_spin_trylock): Likewise.
37969         * doc/posix-functions/pthread_spin_unlock.texi
37970         (pthread_spin_unlock): Likewise.
37971         * doc/posix-functions/pthread_setschedprio.texi
37972         (pthread_setschedprio): Likewise.
37973         * doc/posix-functions/pthread_attr_getstack.texi
37974         (pthread_attr_getstack): Likewise.
37975         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
37976         (pthread_attr_getstackaddr): Likewise.
37977         * doc/glibc-functions/pthread_getattr_np.texi
37978         (pthread_getattr_np): Likewise.
37979         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
37980         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
37981         * doc/posix-functions/clock_settime.texi (clock_settime):
37982         Likewise.
37983         * doc/posix-functions/pthread_attr_getguardsize.texi
37984         (pthread_attr_getguardsize): Likewise.
37985         * doc/posix-functions/pthread_attr_setguardsize.texi
37986         (pthread_attr_setguardsize): Likewise.
37987         * doc/posix-functions/pthread_attr_setstack.texi
37988         (pthread_attr_setstack): Likewise.
37989         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
37990         (pthread_attr_setstackaddr): Likewise.
37991         * doc/posix-functions/clock_getcpuclockid.texi
37992         (clock_getcpuclockid): Likewise.
37993         * doc/posix-functions/pthread_getcpuclockid.texi
37994         (pthread_getcpuclockid): Likewise.
37995         * doc/glibc-functions/error.texi (error): Likewise.
37996         * doc/glibc-functions/error_at_line.texi (error_at_line):
37997         Likewise.
37998         * doc/glibc-functions/error_message_count.texi
37999         (error_message_count): Likewise.
38000         * doc/glibc-functions/error_one_per_line.texi
38001         (error_one_per_line): Likewise.
38002         * doc/glibc-functions/error_print_progname.texi
38003         (error_print_progname): Likewise.
38004         * doc/posix-functions/pthread_condattr_getclock.texi
38005         (pthread_condattr_getclock): Likewise.
38006         * doc/posix-functions/pthread_condattr_setclock.texi
38007         (pthread_condattr_setclock): Likewise.
38008         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
38009         Likewise.
38010         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
38011         * doc/glibc-functions/getpt.texi (getpt): Likewise.
38012         * doc/glibc-functions/get_current_dir_name.texi
38013         (get_current_dir_name): Likewise.
38014         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
38015         Likewise.
38016         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
38017         wrong return type.
38018         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
38019         1.7.11.
38021 2012-02-29  Bruno Haible  <bruno@clisp.org>
38023         Tests for module 'hypotf'.
38024         * modules/hypotf-tests: New file.
38025         * tests/test-hypotf.c: New file.
38027         New module 'hypotf'.
38028         * lib/math.in.h (hypotf): New declaration.
38029         * lib/hypotf.c: New file.
38030         * m4/hypotf.m4: New file.
38031         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
38032         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
38033         REPLACE_HYPOTF.
38034         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
38035         REPLACE_HYPOTF.
38036         * modules/hypotf: New file.
38037         * tests/test-math-c++.cc: Check the hypotf declaration.
38038         * doc/posix-functions/hypotf.texi: Mention the new module.
38040         hypot: Prepare for hypotf module.
38041         * m4/hypot.m4: New file.
38042         * modules/hypot (Files): Add m4/hypot.m4.
38043         (configure.ac): Invoke gl_FUNC_HYPOT.
38045 2012-02-29  Bruno Haible  <bruno@clisp.org>
38047         hypot tests: More tests.
38048         * tests/test-hypot.c: Include <float.h>.
38049         (main): Add tests about overflow and underflow.
38051 2012-02-29  Bruno Haible  <bruno@clisp.org>
38053         math code: Add comments.
38054         * lib/acosl.c: Add comment about related glibc source files.
38055         * lib/asinl.c: Likewise.
38056         * lib/atanl.c: Likewise.
38057         * lib/expl.c: Likewise.
38058         * lib/logl.c: Likewise.
38059         * lib/sincosl.c: Likewise.
38060         * lib/sinl.c: Likewise.
38061         * lib/tanl.c: Likewise.
38062         * lib/trigl.c: Likewise.
38063         * lib/cosl.c: Likewise. Fix comments.
38065 2012-02-28  Bruno Haible  <bruno@clisp.org>
38067         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
38068         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
38069         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
38070         HUGE_VALL are defined.
38071         (numeric_equald): Renamed from numeric_equal.
38072         (numeric_equalf, numeric_equall): New functions.
38073         (main): Check also HUGE_VALF, HUGE_VALL.
38074         * modules/math-tests (Files): Add tests/macros.h.
38075         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
38076         HUGE_VALL.
38078 2012-02-28  Bruno Haible  <bruno@clisp.org>
38080         doc: Move ISO C11 feature notes into POSIX chapters.
38081         * doc/posix-functions/aligned_alloc.texi: Renamed from
38082         doc/glibc-functions/aligned_alloc.texi.
38083         * doc/posix-functions/quick_exit.texi: Renamed from
38084         doc/glibc-functions/quick_exit.texi.
38085         * doc/posix-headers/uchar.texi: Renamed from
38086         doc/glibc-headers/uchar.texi.
38087         * doc/posix-functions/c16rtomb.texi: Renamed from
38088         doc/glibc-functions/c16rtomb.texi.
38089         * doc/posix-functions/c32rtomb.texi: Renamed from
38090         doc/glibc-functions/c32rtomb.texi.
38091         * doc/posix-functions/mbrtoc16.texi: Renamed from
38092         doc/glibc-functions/mbrtoc16.texi.
38093         * doc/posix-functions/mbrtoc32.texi: Renamed from
38094         doc/glibc-functions/mbrtoc32.texi.
38095         * doc/gnulib.texi: Update.
38096         (Glibc uchar.h): Remove section.
38097         Suggested by Eric Blake.
38099 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
38101         stdnoreturn: port to MSVC better
38102         MSVC standard headers use __declspec(noreturn), so #define noreturn
38103         to empty on that platform.  Reported by Bruno Haible in
38104         <http://lists.gnu.org/r/bug-gnulib/2012-02/msg00152.html>.
38105         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
38106         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
38108 2012-02-28  Bruno Haible  <bruno@clisp.org>
38110         doc: Mention new glibc headers and functions.
38111         * doc/glibc-headers/uchar.texi: New file.
38112         * doc/glibc-functions/aligned_alloc.texi: New file.
38113         * doc/glibc-functions/c16rtomb.texi: New file.
38114         * doc/glibc-functions/c32rtomb.texi: New file.
38115         * doc/glibc-functions/clock_adjtime.texi: New file.
38116         * doc/glibc-functions/fanotify_init.texi: New file.
38117         * doc/glibc-functions/fanotify_mark.texi: New file.
38118         * doc/glibc-functions/inet6_opt_append.texi: New file.
38119         * doc/glibc-functions/inet6_opt_find.texi: New file.
38120         * doc/glibc-functions/inet6_opt_finish.texi: New file.
38121         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
38122         * doc/glibc-functions/inet6_opt_init.texi: New file.
38123         * doc/glibc-functions/inet6_opt_next.texi: New file.
38124         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
38125         * doc/glibc-functions/inet6_rth_add.texi: New file.
38126         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
38127         * doc/glibc-functions/inet6_rth_init.texi: New file.
38128         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
38129         * doc/glibc-functions/inet6_rth_segments.texi: New file.
38130         * doc/glibc-functions/inet6_rth_space.texi: New file.
38131         * doc/glibc-functions/login.texi: New file.
38132         * doc/glibc-functions/mbrtoc16.texi: New file.
38133         * doc/glibc-functions/mbrtoc32.texi: New file.
38134         * doc/glibc-functions/name_to_handle_at.texi: New file.
38135         * doc/glibc-functions/ntp_gettimex.texi: New file.
38136         * doc/glibc-functions/open_by_handle_at.texi: New file.
38137         * doc/glibc-functions/prlimit.texi: New file.
38138         * doc/glibc-functions/process_vm_readv.texi: New file.
38139         * doc/glibc-functions/process_vm_writev.texi: New file.
38140         * doc/glibc-functions/recvmmsg.texi: New file.
38141         * doc/glibc-functions/scandirat.texi: New file.
38142         * doc/glibc-functions/sendmmsg.texi: New file.
38143         * doc/glibc-functions/setns.texi: New file.
38144         * doc/glibc-functions/timespec_get.texi: New file.
38145         * doc/gnulib.texi: Include them.
38146         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
38147         sections.
38148         Reported by Eric Blake.
38150 2012-02-28  Bruno Haible  <bruno@clisp.org>
38152         Avoid compilation errors with MSVC option -fp:strict.
38153         * lib/floor.c: Use MSVC specific pragma fenv_access.
38154         * lib/ceil.c: Likewise.
38155         * lib/trunc.c: Likewise.
38156         * lib/round.c: Likewise.
38157         * lib/rint.c: Likewise.
38158         * lib/fma.c: Likewise.
38159         * lib/integer_length.c: Likewise.
38160         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
38161         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
38162         * tests/test-floor2.c: Likewise.
38163         * tests/test-floorf2.c: Likewise.
38164         * tests/test-ceil2.c: Likewise.
38165         * tests/test-ceilf2.c: Likewise.
38166         * tests/test-trunc2.c: Likewise.
38167         * tests/test-truncf2.c: Likewise.
38168         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
38170 2012-02-27  Bruno Haible  <bruno@clisp.org>
38172         Tests for module 'sqrtl-ieee'.
38173         * modules/sqrtl-ieee-tests: New file.
38174         * tests/test-sqrtl-ieee.c: New file.
38176         New module 'sqrtl-ieee'.
38177         * modules/sqrtl-ieee: New file.
38179         Tests for module 'sqrt-ieee'.
38180         * modules/sqrt-ieee-tests: New file.
38181         * tests/test-sqrt-ieee.c: New file.
38183         New module 'sqrt-ieee'.
38184         * modules/sqrt-ieee: New file.
38186         Tests for module 'sqrtf-ieee'.
38187         * modules/sqrtf-ieee-tests: New file.
38188         * tests/test-sqrtf-ieee.c: New file.
38189         * tests/test-sqrt-ieee.h: New file.
38191         New module 'sqrtf-ieee'.
38192         * modules/sqrtf-ieee: New file.
38194 2012-02-27  Bruno Haible  <bruno@clisp.org>
38196         remainderl-ieee: Work around test failure on OSF/1.
38197         * m4/remainderl-ieee.m4: New file.
38198         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
38199         present, test whether remainderl works with a zero second argument.
38200         Replace it if not.
38201         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
38202         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
38203         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
38204         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
38205         (Depends-on): Update conditions.
38206         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
38207         (Depends-on): Add remainder-ieee.
38208         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
38209         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
38210         module.
38212         remainderf-ieee: Work around test failure on OSF/1.
38213         * m4/remainderf-ieee.m4: New file.
38214         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
38215         present, test whether remainderf works with a zero second argument.
38216         Replace it if not.
38217         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
38218         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
38219         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
38220         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
38221         (Depends-on): Update conditions.
38222         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
38223         (Depends-on): Add remainder-ieee.
38224         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
38225         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
38226         module.
38228         remainder-ieee: Work around test failure on OSF/1.
38229         * m4/remainder-ieee.m4: New file.
38230         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
38231         present, test whether remainder works with a zero second argument.
38232         Replace it if not.
38233         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
38234         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
38235         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
38236         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
38237         (Depends-on): Update dependencies.
38238         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
38239         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
38240         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
38242         Tests for module 'remainderl-ieee'.
38243         * modules/remainderl-ieee-tests: New file.
38244         * tests/test-remainderl-ieee.c: New file.
38246         New module 'remainderl-ieee'.
38247         * modules/remainderl-ieee: New file.
38249         Tests for module 'remainder-ieee'.
38250         * modules/remainder-ieee-tests: New file.
38251         * tests/test-remainder-ieee.c: New file.
38253         New module 'remainder-ieee'.
38254         * modules/remainder-ieee: New file.
38256         Tests for module 'remainderf-ieee'.
38257         * modules/remainderf-ieee-tests: New file.
38258         * tests/test-remainderf-ieee.c: New file.
38259         * tests/test-remainder-ieee.h: New file.
38261         New module 'remainderf-ieee'.
38262         * modules/remainderf-ieee: New file.
38264 2012-02-27  Bruno Haible  <bruno@clisp.org>
38266         modff, modfl: Fix configure syntax error.
38267         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
38268         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
38270 2012-02-27  Bruno Haible  <bruno@clisp.org>
38272         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
38273         * m4/fmodl-ieee.m4: New file.
38274         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
38275         whether fmodl works with zero arguments. Replace it if not.
38276         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
38277         (Depends-on): Add fmod-ieee.
38278         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
38279         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
38281         fmodf-ieee: Work around test failure on OSF/1.
38282         * m4/fmodf-ieee.m4: New file.
38283         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
38284         whether fmodf works with zero arguments. Replace it if not.
38285         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
38286         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
38287         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
38288         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
38289         (Depends-on): Update dependencies.
38290         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
38291         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
38292         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
38294         fmodf-ieee: Work around test failure on MSVC 9.
38295         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
38296         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
38298         fmod-ieee: Work around test failures on OSF/1, mingw.
38299         * m4/fmod-ieee.m4: New file.
38300         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
38301         whether fmod works with zero arguments. Replace it if not.
38302         * lib/math.in.h (fmod): New declaration.
38303         * lib/fmod.c: New file.
38304         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
38305         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
38306         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
38307         * modules/fmod (Files): Add lib/fmod.c.
38308         (Depends-on): Add math, isinf, trunc, fma.
38309         (configure.ac): Arrange to compile lib/fmod.c if needed.
38310         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
38311         m4/signbit.m4.
38312         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
38313         * tests/test-math-c++.cc: Check the declaration of fmod.
38314         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
38316         fmodl-ieee: Fix test failures.
38317         * lib/fmodl.c (fmodl): Treat Inf specially.
38318         * modules/fmodl (Depends-on): Add isinf.
38320         Tests for module 'fmodl-ieee'.
38321         * modules/fmodl-ieee-tests: New file.
38322         * tests/test-fmodl-ieee.c: New file.
38324         New module 'fmodl-ieee'.
38325         * modules/fmodl-ieee: New file.
38327         Tests for module 'fmod-ieee'.
38328         * modules/fmod-ieee-tests: New file.
38329         * tests/test-fmod-ieee.c: New file.
38331         New module 'fmod-ieee'.
38332         * modules/fmod-ieee: New file.
38334         Tests for module 'fmodf-ieee'.
38335         * modules/fmodf-ieee-tests: New file.
38336         * tests/test-fmodf-ieee.c: New file.
38337         * tests/test-fmod-ieee.h: New file.
38339         New module 'fmodf-ieee'.
38340         * modules/fmodf-ieee: New file.
38342 2012-02-27  Bruno Haible  <bruno@clisp.org>
38344         Tests for module 'rintl-ieee'.
38345         * modules/rintl-ieee-tests: New file.
38346         * tests/test-rintl-ieee.c: New file.
38348         New module 'rintl-ieee'.
38349         * modules/rintl-ieee: New file.
38351         Tests for module 'rint-ieee'.
38352         * modules/rint-ieee-tests: New file.
38353         * tests/test-rint-ieee.c: New file.
38355         New module 'rint-ieee'.
38356         * modules/rint-ieee: New file.
38358         Tests for module 'rintf-ieee'.
38359         * modules/rintf-ieee-tests: New file.
38360         * tests/test-rintf-ieee.c: New file.
38361         * tests/test-rint-ieee.h: New file.
38363         New module 'rintf-ieee'.
38364         * modules/rintf-ieee: New file.
38366 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
38368         regex: re_search etc. should return -2 when memory exhausted
38369         This bug was uncovered when testing 'grep'.  Without the fix,
38370         re_search and friends return -1 when memory is exhausted, but -1
38371         means no match, and this causes grep to falsely report no-match
38372         instead of memory-exhaustion.  See
38373         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
38374         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
38375         trouble; this can occur if re_search_internal ran out of memory.
38377 2012-02-26  Bruno Haible  <bruno@clisp.org>
38379         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
38380         * m4/modfl-ieee.m4: New file.
38381         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
38382         whether modfl works with Inf. Replace it if not.
38383         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
38384         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
38385         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
38386         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
38387         (Depends-on): Update dependencies.
38388         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
38389         m4/signbit.m4.
38390         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
38391         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
38393         modfl-ieee: Fix dependencies.
38394         * modules/modfl-ieee (Depends-on): Add modf-ieee.
38396         modfl-ieee: Fix test failures.
38397         * lib/modfl.c (modfl): Treat NaN and Inf specially.
38398         * modules/modfl (Depends-on): Add isfinite, isinf.
38400         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
38401         * m4/modff-ieee.m4: New file.
38402         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
38403         whether modff works with NaN and Inf. Replace it if not.
38404         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
38405         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
38406         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
38407         * modules/modff (configure.ac): Consider REPLACE_MODFF.
38408         (Depends-on): Update dependencies.
38409         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
38410         m4/signbit.m4.
38411         (Depends-on): Add modf-ieee.
38412         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
38413         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
38415         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
38416         * m4/modf-ieee.m4: New file.
38417         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
38418         whether modf works with NaN and Inf. Replace it if not.
38419         * lib/math.in.h (modf): New declaration.
38420         * lib/modf.c: New file.
38421         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
38422         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
38423         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
38424         * modules/modf (Files): Add lib/modf.c.
38425         (Depends-on): Add math, isfinite, trunc, isinf.
38426         (configure.ac): Addrange to compile lib/modf.c if needed.
38427         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
38428         m4/signbit.m4.
38429         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
38430         * tests/test-math-c++.cc: Check the declaration of modf.
38431         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
38433         Tests for module 'modfl-ieee'.
38434         * modules/modfl-ieee-tests: New file.
38435         * tests/test-modfl-ieee.c: New file.
38437         New module 'modfl-ieee'.
38438         * modules/modfl-ieee: New file.
38440         Tests for module 'modf-ieee'.
38441         * modules/modf-ieee-tests: New file.
38442         * tests/test-modf-ieee.c: New file.
38444         New module 'modf-ieee'.
38445         * modules/modf-ieee: New file.
38447         Tests for module 'modff-ieee'.
38448         * modules/modff-ieee-tests: New file.
38449         * tests/test-modff-ieee.c: New file.
38450         * tests/test-modf-ieee.h: New file.
38452         New module 'modff-ieee'.
38453         * modules/modff-ieee: New file.
38455 2012-02-26  Bruno Haible  <bruno@clisp.org>
38457         Tests for module 'fabsl-ieee'.
38458         * modules/fabsl-ieee-tests: New file.
38459         * tests/test-fabsl-ieee.c: New file.
38461         New module 'fabsl-ieee'.
38462         * modules/fabsl-ieee: New file.
38464         Tests for module 'fabs-ieee'.
38465         * modules/fabs-ieee-tests: New file.
38466         * tests/test-fabs-ieee.c: New file.
38468         New module 'fabs-ieee'.
38469         * modules/fabs-ieee: New file.
38471         Tests for module 'fabsf-ieee'.
38472         * modules/fabsf-ieee-tests: New file.
38473         * tests/test-fabsf-ieee.c: New file.
38474         * tests/test-fabs-ieee.h: New file.
38476         New module 'fabsf-ieee'.
38477         * modules/fabsf-ieee: New file.
38479 2012-02-26  Bruno Haible  <bruno@clisp.org>
38481         Tests for module 'fmal-ieee'.
38482         * modules/fmal-ieee-tests: New file.
38483         * tests/test-fmal-ieee.c: New file.
38485         New module 'fmal-ieee'.
38486         * modules/fmal-ieee: New file.
38488         Tests for module 'fma-ieee'.
38489         * modules/fma-ieee-tests: New file.
38490         * tests/test-fma-ieee.c: New file.
38492         New module 'fma-ieee'.
38493         * modules/fma-ieee: New file.
38495         Tests for module 'fmaf-ieee'.
38496         * modules/fmaf-ieee-tests: New file.
38497         * tests/test-fmaf-ieee.c: New file.
38498         * tests/test-fma-ieee.h: New file.
38500         New module 'fmaf-ieee'.
38501         * modules/fmaf-ieee: New file.
38503 2012-02-26  Bruno Haible  <bruno@clisp.org>
38505         Tests for module 'ldexpl-ieee'.
38506         * modules/ldexpl-ieee-tests: New file.
38507         * tests/test-ldexpl-ieee.c: New file.
38509         New module 'ldexpl-ieee'.
38510         * modules/ldexpl-ieee: New file.
38512         Tests for module 'ldexp-ieee'.
38513         * modules/ldexp-ieee-tests: New file.
38514         * tests/test-ldexp-ieee.c: New file.
38516         New module 'ldexp-ieee'.
38517         * modules/ldexp-ieee: New file.
38519         Tests for module 'ldexpf-ieee'.
38520         * modules/ldexpf-ieee-tests: New file.
38521         * tests/test-ldexpf-ieee.c: New file.
38522         * tests/test-ldexp-ieee.h: New file.
38524         New module 'ldexpf-ieee'.
38525         * modules/ldexpf-ieee: New file.
38527 2012-02-26  Bruno Haible  <bruno@clisp.org>
38529         Refactor frexp*-ieee tests.
38530         * tests/test-frexp-ieee.h: New file.
38531         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
38532         (main): Just call test_function.
38533         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
38534         (main): Just call test_function.
38535         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
38536         (main): Just call test_function.
38537         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
38538         * modules/frexp-ieee-tests (Files): Likewise.
38539         * modules/frexpl-ieee-tests (Files): Likewise.
38541         Tests for module 'frexpl-ieee'.
38542         * modules/frexpl-ieee-tests: New file.
38543         * tests/test-frexpl-ieee.c: New file.
38545         New module 'frexpl-ieee'.
38546         * modules/frexpl-ieee: New file.
38548         Tests for module 'frexp-ieee'.
38549         * modules/frexp-ieee-tests: New file.
38550         * tests/test-frexp-ieee.c: New file.
38552         New module 'frexp-ieee'.
38553         * modules/frexp-ieee: New file.
38555         Tests for module 'frexpf-ieee'.
38556         * modules/frexpf-ieee-tests: New file.
38557         * tests/test-frexpf-ieee.c: New file.
38559         New module 'frexpf-ieee'.
38560         * modules/frexpf-ieee: New file.
38562 2012-02-26  Bruno Haible  <bruno@clisp.org>
38564         roundl-ieee tests: More tests.
38565         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
38566         (main): Add tests for [MX] shaded specification in POSIX.
38567         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
38568         (Depends-on): Add isnanl-nolibm.
38570         round-ieee tests: More tests.
38571         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
38572         (main): Add tests for [MX] shaded specification in POSIX.
38573         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
38574         (Depends-on): Add isnand-nolibm.
38576         roundf-ieee tests: More tests.
38577         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
38578         (main): Add tests for [MX] shaded specification in POSIX.
38579         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
38580         (Depends-on): Add isnanf-nolibm.
38582         truncl-ieee tests: More tests.
38583         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
38584         (main): Add tests for [MX] shaded specification in POSIX.
38585         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
38586         (Depends-on): Add isnanl-nolibm.
38588         trunc-ieee tests: More tests.
38589         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
38590         (main): Add tests for [MX] shaded specification in POSIX.
38591         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
38592         (Depends-on): Add isnand-nolibm.
38594         truncf-ieee tests: More tests.
38595         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
38596         (main): Add tests for [MX] shaded specification in POSIX.
38597         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
38598         (Depends-on): Add isnanf-nolibm.
38600         ceill-ieee tests: More tests.
38601         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
38602         (main): Add tests for [MX] shaded specification in POSIX.
38603         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
38604         (Depends-on): Add isnanl-nolibm.
38606         ceil-ieee tests: More tests.
38607         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
38608         (main): Add tests for [MX] shaded specification in POSIX.
38609         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
38610         (Depends-on): Add isnand-nolibm.
38612         ceilf-ieee tests: More tests.
38613         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
38614         (main): Add tests for [MX] shaded specification in POSIX.
38615         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
38616         (Depends-on): Add isnanf-nolibm.
38618         floorl-ieee tests: More tests.
38619         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
38620         (main): Add tests for [MX] shaded specification in POSIX.
38621         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
38622         (Depends-on): Add isnanl-nolibm.
38624         floor-ieee tests: More tests.
38625         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
38626         (main): Add tests for [MX] shaded specification in POSIX.
38627         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
38628         (Depends-on): Add isnand-nolibm.
38630         floorf-ieee tests: More tests.
38631         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
38632         (main): Add tests for [MX] shaded specification in POSIX.
38633         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
38634         (Depends-on): Add isnanf-nolibm.
38636 2012-02-26  Bruno Haible  <bruno@clisp.org>
38638         fpieee: More comments.
38639         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
38641 2012-02-25  Bruno Haible  <bruno@clisp.org>
38643         Tests for module 'log10l'.
38644         * modules/log10l-tests: New file.
38645         * tests/test-log10l.c: New file.
38646         * tests/test-math-c++.cc: Check the declaration of log10l.
38648         New module 'log10l'.
38649         * lib/math.in.h (log10l): New declaration.
38650         * lib/log10l.c: New file.
38651         * m4/log10l.m4: New file.
38652         * modules/log10l: New file.
38653         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
38654         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
38655         HAVE_DECL_LOG10L.
38656         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
38657         HAVE_DECL_LOG10L.
38658         * doc/posix-functions/log10l.texi: Mention the new module.
38660 2012-02-25  Bruno Haible  <bruno@clisp.org>
38662         fmodl, remainder*: Avoid wrong results due to rounding errors.
38663         * lib/fmodl.c (fmodl): Correct the result if it is not within the
38664         expected bounds.
38665         * lib/remainderf.c (remainderf): Likewise.
38666         * lib/remainder.c (remainder): Likewise.
38667         * lib/remainderl.c (remainderl): Likewise.
38669 2012-02-25  Bruno Haible  <bruno@clisp.org>
38671         Tests for module 'remainderl'.
38672         * modules/remainderl-tests: New file.
38673         * tests/test-remainderl.c: New file.
38674         * tests/test-math-c++.cc: Check the declaration of remainderl.
38676         New module 'remainderl'.
38677         * lib/math.in.h (remainderl): New declaration.
38678         * lib/remainderl.c: New file.
38679         * m4/remainderl.m4: New file.
38680         * modules/remainderl: New file.
38681         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
38682         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
38683         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
38684         HAVE_REMAINDERL.
38685         * doc/posix-functions/remainderl.texi: Mention the new module.
38687 2012-02-25  Bruno Haible  <bruno@clisp.org>
38689         Tests for module 'remainderf'.
38690         * modules/remainderf-tests: New file.
38691         * tests/test-remainderf.c: New file.
38692         * tests/test-math-c++.cc: Check the declaration of remainderf.
38694         New module 'remainderf'.
38695         * lib/math.in.h (remainderf): New declaration.
38696         * lib/remainderf.c: New file.
38697         * m4/remainderf.m4: New file.
38698         * modules/remainderf: New file.
38699         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
38700         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
38701         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
38702         HAVE_REMAINDERF.
38703         * doc/posix-functions/remainderf.texi: Mention the new module.
38705 2012-02-25  Bruno Haible  <bruno@clisp.org>
38707         remainder: Support for MSVC.
38708         * lib/math.in.h (remainder): New declaration.
38709         * lib/remainder.c: New file.
38710         * m4/remainder.m4: New file.
38711         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
38712         (Depends-on): Add math, round, fma.
38713         (configure.ac): Use results of gl_FUNC_REMAINDER.
38714         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
38715         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
38716         HAVE_DECL_REMAINDER.
38717         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
38718         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
38719         * tests/test-math-c++.cc: Check the declaration of remainder.
38720         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
38721         problems are fixed.
38723 2012-02-25  Bruno Haible  <bruno@clisp.org>
38725         Tests for module 'fmodl'.
38726         * modules/fmodl-tests: New file.
38727         * tests/test-fmodl.c: New file.
38728         * tests/test-math-c++.cc: Check the declaration of fmodl.
38730         New module 'fmodl'.
38731         * lib/math.in.h (fmodl): New declaration.
38732         * lib/fmodl.c: New file.
38733         * m4/fmodl.m4: New file.
38734         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
38735         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
38736         REPLACE_FMODL.
38737         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
38738         REPLACE_FMODL.
38739         * modules/fmodl: New file.
38740         * doc/posix-functions/fmodl.texi: Mention the new module.
38742 2012-02-25  Bruno Haible  <bruno@clisp.org>
38744         Tests for module 'modfl'.
38745         * modules/modfl-tests: New file.
38746         * tests/test-modfl.c: New file.
38747         * tests/test-math-c++.cc: Check the declaration of modfl.
38749         New module 'modfl'.
38750         * lib/math.in.h (modfl): New declaration.
38751         * lib/modfl.c: New file.
38752         * m4/modfl.m4: New file.
38753         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
38754         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
38755         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
38756         * modules/modfl: New file.
38757         * doc/posix-functions/modfl.texi: Mention the new module.
38759 2012-02-25  Bruno Haible  <bruno@clisp.org>
38761         Tests for module 'fabsl'.
38762         * modules/fabsl-tests: New file.
38763         * tests/test-fabsl.c: New file.
38764         * tests/test-math-c++.cc: Check the declaration of fabsl.
38766         New module 'fabsl'.
38767         * lib/math.in.h (fabsl): New declaration.
38768         * lib/fabsl.c: New file.
38769         * m4/fabsl.m4: New file.
38770         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
38771         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
38772         REPLACE_FABSL.
38773         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
38774         REPLACE_FABSL.
38775         * modules/fabsl: New file.
38776         * doc/posix-functions/fabsl.texi: Mention the new module.
38778 2012-02-25  Bruno Haible  <bruno@clisp.org>
38780         fabs tests: More tests.
38781         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
38782         (zero): New variable.
38783         (main): Add tests for signed zero.
38784         * modules/fabs-tests (Files): Add tests/minus-zero.h.
38786         fabsf tests: More tests.
38787         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
38788         (zero): New variable.
38789         (main): Add tests for signed zero.
38790         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
38792 2012-02-24  Bruno Haible  <bruno@clisp.org>
38794         atanl: Provide function definition on MSVC.
38795         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
38796         function pointer.
38797         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
38799 2012-02-24  Bruno Haible  <bruno@clisp.org>
38801         acosl: Provide function definition on MSVC.
38802         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
38803         function pointer.
38804         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
38806 2012-02-24  Bruno Haible  <bruno@clisp.org>
38808         asinl: Provide function definition on MSVC.
38809         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
38810         function pointer.
38811         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
38813 2012-02-24  Bruno Haible  <bruno@clisp.org>
38815         tanl: Provide function definition on MSVC.
38816         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
38817         function pointer.
38818         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
38820 2012-02-24  Bruno Haible  <bruno@clisp.org>
38822         cosl: Provide function definition on MSVC.
38823         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
38824         function pointer.
38825         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
38827 2012-02-24  Bruno Haible  <bruno@clisp.org>
38829         sinl: Provide function definition on MSVC.
38830         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
38831         function pointer.
38832         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
38834 2012-02-24  Bruno Haible  <bruno@clisp.org>
38836         logl: Provide function definition on MSVC.
38837         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
38838         function pointer.
38839         * lib/math.in.h (logl): Undefine if it does not exist as a function.
38841 2012-02-24  Bruno Haible  <bruno@clisp.org>
38843         expl: Provide function definition on MSVC.
38844         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
38845         function pointer.
38846         * lib/math.in.h (expl): Undefine if it does not exist as a function.
38848 2012-02-24  Bruno Haible  <bruno@clisp.org>
38850         sqrtl: Provide function definition on MSVC.
38851         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
38852         a function pointer.
38853         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
38855 2012-02-24  Bruno Haible  <bruno@clisp.org>
38857         ceill: Provide function definition on MSVC.
38858         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
38859         used as a function pointer.
38860         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
38862 2012-02-24  Bruno Haible  <bruno@clisp.org>
38864         floorl: Provide function definition on MSVC.
38865         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
38866         used as a function pointer.
38867         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
38869 2012-02-24  Bruno Haible  <bruno@clisp.org>
38871         ceilf: Provide function definition on MSVC.
38872         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
38873         used as a function pointer.
38874         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
38876 2012-02-24  Bruno Haible  <bruno@clisp.org>
38878         floorf: Provide function definition on MSVC.
38879         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
38880         used as a function pointer.
38881         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
38883 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
38885         stdnoreturn: new module
38886         This implements a replacement for C11's <stdnoreturn.h>.
38887         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
38888         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
38889         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
38890         * tests/test-stdnoreturn.c: New files.
38892 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
38894         regex: fix false multibyte matches in some regular expressions
38895         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
38896         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
38897         * lib/regex_internal.c (re_string_skip_chars):
38898         Fix miscomputation of remain_len that may cause incomplete
38899         multi-byte character and false match.
38901 2012-02-24  Jim Meyering  <meyering@redhat.com>
38903         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
38904         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
38905         uses with "==" *before* the call, e.g., 0 == strcmp (...)
38906         Remove now-unnecessary str''cmp obfuscation.
38907         Suggested by Akim Demaille.
38909 2012-02-24  Bruno Haible  <bruno@clisp.org>
38911         streq: Rename macro.
38912         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
38913         * NEWS: Mention the change.
38914         * lib/mbrtowc.c (mbrtowc): Update.
38915         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
38916         * lib/wcwidth.c (wcwidth): Update.
38917         Suggested by Akim Demaille and Jim Meyering.
38919 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
38921         regex: fix typo in definition of MIN
38922         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
38923         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
38925 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
38926             Bruno Haible  <bruno@clisp.org>
38928         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
38929         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
38930         entries into a stack-allocated buffer directly.
38931         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
38933 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
38934             Bruno Haible  <bruno@clisp.org>
38936         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
38938          - There were several instances of this pattern:
38940              for (;;) {
38941                n = acl (f, GETACLCNT, 0, NULL);
38942                [ allocate an array A of size N ]
38943                if (acl (f, GETACL, n, a) == n)
38944                  break;
38945              }
38947            This loop might never terminate if some other process is constantly
38948            manipulating the file's ACL.  The loop should be rewritten to
38949            terminate.
38951          - The acl (... GETACLNT ...) call is merely an optimization; its value
38952            is merely a hint as to how big to make the array.  A better
38953            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
38954            and just guess a reasonably-big size, growing the size and trying
38955            again if it's not large enough.  This guarantees termination, and
38956            saves a system call.
38958         * lib/acl-internal.h: Include <limits.h>.
38959         (MIN, SIZE_MAX): New macros.
38960         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
38961         a stack-allocated buffer, and use malloc if it does not fit. Don't
38962         use GETACLCNT.
38963         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
38965 2012-02-19  Bruno Haible  <bruno@clisp.org>
38967         acl: Fix endless loop on Solaris with vxfs.
38968         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
38969         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
38970         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
38971         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
38972         * tests/test-sameacls.c (main)[Solaris]: Likewise.
38973         Reported by Bill Jones in
38974         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
38976 2012-02-19  Bruno Haible  <bruno@clisp.org>
38978         acl: Fix copy-acl test failure on Solaris 11.0.
38979         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
38980         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
38981         that this function returns 0 in some more cases.
38983 2012-02-19  Bruno Haible  <bruno@clisp.org>
38985         acl: Update doc references.
38986         * doc/acl-resources.txt: Update links to Solaris documentation.
38988 2012-02-19  Bruno Haible  <bruno@clisp.org>
38990         Fix test failure in many locales on Solaris 11.
38991         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
38992         'tr' arguments.
38993         * tests/test-pipe-filter-ii1.c (main): Likewise.
38994         * build-aux/bootstrap (check_versions): Run 'tr' command with range
38995         expressions in the C locale.
38996         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
38997         * m4/host-os.m4 (gl_HOST_OS): Likewise.
38999 2012-02-19  Bruno Haible  <bruno@clisp.org>
39001         gnulib-tool: Improve usage message.
39002         * gnulib-tool (func_usage): Move doc of --help and --version to the
39003         section "Operation modes".
39005 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
39007         README-release: make it easier to execute commands
39008         * top/README-release: break commands out on to separate lines.
39010 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
39012         GNUmakefile: simplify detection of unconfigured trees
39013         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
39014         whether the tree make is being run from is already configured or
39015         not.  Related simplifications.
39017 2012-02-13  Simon Josefsson  <simon@josefsson.org>
39019         * gnulib-tool (func_usage): Document --help and --version.
39021 2012-02-11  Jim Meyering  <meyering@redhat.com>
39023         bootstrap: don't exit 0 upon gnulib-tool failure
39024         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
39025         its exit status, not 0.
39027 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
39029         README-release: various improvements
39030         * top/README-release: Give a command to push changes for the
39031         release.  Add "distcheck" to list of other pre-release checks.
39032         Fix instance of "make stable" which should be "make TYPE".
39034 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
39036         maint: replace FSF snail-mail addresses with URLs
39037         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
39038         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
39039         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
39040         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
39041         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
39042         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
39043         * lib/check-version.c, lib/check-version.h, lib/config.charset:
39044         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
39045         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
39046         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
39047         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
39048         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
39049         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
39050         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
39051         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
39052         * lib/glthread/thread.c, lib/glthread/thread.h:
39053         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
39054         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
39055         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
39056         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
39057         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
39058         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
39059         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
39060         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
39061         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
39062         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
39063         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
39064         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
39065         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
39066         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
39067         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
39068         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
39069         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
39070         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
39071         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
39072         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
39073         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
39074         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
39075         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
39076         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
39077         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
39078         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
39079         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
39080         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
39081         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
39082         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
39083         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
39084         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
39085         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
39086         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
39087         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
39088         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
39089         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
39090         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
39091         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
39092         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
39093         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
39094         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
39095         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
39096         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
39097         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
39098         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
39099         * tests/test-poll.c, tests/test-quotearg-simple.c:
39100         * tests/test-quotearg.c, tests/test-quotearg.h:
39101         * tests/test-round-ieee.c, tests/test-round1.c:
39102         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
39103         * tests/test-roundl-ieee.c, tests/test-roundl.c:
39104         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
39105         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
39106         * tests/test-strerror.c, tests/test-strerror_r.c:
39107         * tests/test-strsignal.c, tests/test-strverscmp.c:
39108         * tests/test-xmemdup0.c:
39109         Replace FSF snail mail addresses with URLs, as per GNU coding
39110         standards.  See glibc bug
39111         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
39113 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
39115         README-release: capitalize a word and split a line
39116         * top/README-release: Fix punctuation and spacing.
39118 2012-02-08  Akim Demaille  <demaille@gostai.com>
39120         fatal-signal: use C prototypes (with explicit void).
39121         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
39122         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
39124 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
39126         regex: spelling fix
39127         * lib/regexec.c: spelling fix
39129         regex: rely on stdint.h for SIZE_MAX
39130         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
39132 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
39134         regex: merge glibc changes
39136         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
39137         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
39138         (init_word_char): Work even if bitset words are not exactly 32 or
39139         64 bits wide.  Don't assume there are no padding bits.
39140         * lib/regex.c [_LIBC]: Do not include <config.h>.
39141         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
39142         and -Wtype-limits.
39143         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
39144         needless disagreement with glibc.  All uses changed.  Define it to
39145         1 only if _GNU_SOURCE, to match glibc.
39146         (_REG_RM_NAME): Remove; no longer needed, since the names in
39147         question are now all protected by __USE_GNU.
39148         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
39149         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
39150         * lib/regex_internal.h (MIN): New macro.
39152         2012-01-03 Ulrich Drepper <drepper@gmail.com>
39153         * lib/regcomp.c (init_word_char): Optimize regex a bit.
39155         2011-12-30 Jakub Jelinek <jakub@redhat.com>
39156         * lib/regex_internal.c (re_string_fetch_byte_case):
39157         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
39158         is miscompiled, and it turns out it is because of an incorrect
39159         attribute on re_string_fetch_byte_case.  Unlike
39160         re_string_peek_byte_case, this one is really not pure, it modifies
39161         memory (increments pstr->cur_idx), and with the pure attribute GCC
39162         assumed it doesn't and it cached the presumed value of
39163         regexp->cur_idx in a variable across the
39164          for (;; ++i)
39165            {
39166              if (i >= BRACKET_NAME_BUF_SIZE)
39167                return REG_EBRACK;
39168              if (token->type == OP_OPEN_CHAR_CLASS)
39169                ch = re_string_fetch_byte_case (regexp);
39170              else
39171                ch = re_string_fetch_byte (regexp);
39172              if (re_string_eoi(regexp))
39173                return REG_EBRACK;
39174              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
39175                break;
39176              elem->opr.name[i] = ch;
39177            }
39179         2011-11-29 Andreas Schwab <schwab@redhat.com>
39180         * lib/regcomp.c (build_equiv_class):
39181         Fix access after end of search string in regex matcher.
39183         2011-11-12 Ulrich Drepper <drepper@redhat.com>
39184         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
39186         2011-10-12 Ulrich Drepper <drepper@redhat.com>
39187         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
39189         2011-10-11 Ulrich Drepper <drepper@redhat.com>
39190         * lib/regcomp.c (parse_branch, parse_sub_exp):
39191         More regex memory leak fixes and tests.
39192         (parse_sub_exp, parse_bracket_exp):
39193         Fix memory leak for some invalid regular expressions.
39195         2011-05-28 Ulrich Drepper <drepper@gmail.com>
39196         * lib/regex_internal.c, lib/regexec.c:
39197         Fix unnecessary overallocation due to incomplete character.  When
39198         incomplete characters are found at the end of a string the code
39199         ran amok and allocated lots of memory.  Stricter limits are now in
39200         place.
39202         2011-05-20 Reuben Thomas <rrt@sc3d.org>
39203         * lib/regex.h: Update documentation.
39205         2011-05-16 Aharon Robbins <arnold@skeeve.com>
39206         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
39208         2010-05-05 Andreas Schwab <schwab@redhat.com>
39209         * lib/regexec.c (find_collation_sequence_value):
39210         Fix lookup of collation sequence value during regexp matching.
39212         2010-01-22 Ulrich Drepper <drepper@redhat.com>
39213         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
39215         2008-01-16 Ulrich Drepper <drepper@redhat.com>
39216         * lib/regex.h: Cleanup namespace.
39218         2007-11-26 Ulrich Drepper <drepper@redhat.com>
39219         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
39221         2007-08-26 Ulrich Drepper <drepper@redhat.com>
39222         * lib/regex_internal.h: Prevent some declarations and definitions
39223         to be seen when used in tests.
39225         2005-05-06 Ulrich Drepper <drepper@redhat.com>
39226         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
39227         __libc_lock_* macros if not _LIBC.
39228         (struct re_dfa_t): Add lock.
39230 2012-02-07  Eric Blake  <eblake@redhat.com>
39232         maint.mk: also prohibit lower-case @var@
39233         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
39234         lower case, like @top_srcdir@.
39236 2012-02-04  Eric Blake  <eblake@redhat.com>
39238         canonicalize: avoid uninitialized memory use
39239         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
39240         random '/' left in dest.
39241         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
39243 2012-02-04  Bruno Haible  <bruno@clisp.org>
39245         isatty: Fix test failure of ptsname_r on native Windows.
39246         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
39247         and don't set errno.
39248         (isatty): Test first whether fd is valid. Set errno when returning 0.
39250 2012-02-04  Bruno Haible  <bruno@clisp.org>
39252         spawn-pipe tests: Fix a NULL program name in a diagnostic.
39253         * tests/test-spawn-pipe-main.c: Include progname.h.
39254         (main): Invoke set_program_name.
39255         * modules/spawn-pipe-tests (Depends-on): Add progname.
39257         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
39258         * tests/test-nonblocking-socket-main.c: Include progname.h.
39259         (main): Invoke set_program_name.
39260         * modules/nonblocking-socket-tests (Depends-on): Add progname.
39262         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
39263         * tests/test-nonblocking-pipe-main.c: Include progname.h.
39264         (main): Invoke set_program_name.
39265         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
39267 2012-02-04  Eric Blake  <eblake@redhat.com>
39269         canonicalize-lgpl: fix // handling
39270         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
39272         canonicalize: fix // handling
39273         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
39274         /// to //, since only // is special.
39276 2012-02-04  Bruno Haible  <bruno@clisp.org>
39278         ioctl: Fix test failure on native Windows.
39279         * lib/ioctl.c: Include msvc-nothrow.h.
39280         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
39282 2012-02-04  Bruno Haible  <bruno@clisp.org>
39284         fsync: Avoid test failure on native Windows.
39285         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
39286         read-only.
39288 2012-02-04  Bruno Haible  <bruno@clisp.org>
39290         sys_select: Avoid syntax error on OpenBSD 5.0.
39291         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
39292         currently being included, just include the system's <sys/select.h>.
39294 2012-02-04  Bruno Haible  <bruno@clisp.org>
39296         sys_select: Avoid syntax error on OpenBSD 5.0.
39297         * lib/sys_select.in.h: Include <signal.h> only after the include_next
39298         <sys/select.h>, not before.
39299         Reported by Jiri B <jirib@devio.us>.
39301 2012-02-04  Bruno Haible  <bruno@clisp.org>
39303         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
39304         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
39305         global variables.
39306         * tests/test-get-rusage-data.c (main): Likewise.
39307         Reported by Jim Meyering.
39309 2012-02-04  Bruno Haible  <bruno@clisp.org>
39311         stdioext: Fix last commit.
39312         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
39314 2012-02-03  Bruno Haible  <bruno@clisp.org>
39316         stdioext: Add tentative support for Plan9.
39317         * lib/stdio-impl.h: Include <errno.h>.
39318         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
39319         * lib/freadable.c (freadable): Likewise.
39320         * lib/fwritable.c (fwritable): Likewise.
39321         * lib/fbufmode.c (fbufmode): Likewise.
39322         * lib/freading.c (freading): Likewise.
39323         * lib/fwriting.c (fwriting): Likewise.
39324         * lib/freadptr.c (freadptr): Likewise.
39325         * lib/freadseek.c (freadptrinc): Likewise.
39326         * lib/freadahead.c (freadahead): Likewise.
39327         * lib/fpurge.c (fpurge): Likewise.
39328         * lib/fseeko.c (rpl_fseeko): Likewise.
39329         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
39330         Reported by Jens Staal <staal1978@gmail.com>.
39332 2012-02-02  Jim Meyering  <meyering@redhat.com>
39334         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
39335         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
39336         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
39337         not even to try to add the attribute.  Instead, add a pragma to suppress
39338         the suggestion/warning.
39340 2012-01-31  Karl Berry  <karl@gnu.org>
39342         setstate doc: typo.
39343         * doc/posix-functions/setstate.texi (setstate): { not (.
39345 2012-01-31  Bruno Haible  <bruno@clisp.org>
39347         popen: Make more robust on Windows.
39348         * lib/popen.c: On native Windows, use the _popen based code even if
39349         HAVE_POPEN is set.
39350         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
39351         environment variable on native Windows.
39353 2012-01-30  Bruno Haible  <bruno@clisp.org>
39355         pclose: Fix typo.
39356         * lib/stdio.in.h (pclose): Fix typo in warning message.
39358 2012-01-30  Bruno Haible  <bruno@clisp.org>
39360         doc about getlogin_r, setstate.
39361         * doc/posix-functions/getlogin_r.texi: List the incompatible
39362         declaration problem under "not fixed by gnulib".
39363         * doc/posix-functions/setstate.texi: Mention incompatible declaration
39364         problem on Solaris 11 and other platforms.
39366 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
39367             Bruno Haible  <bruno@clisp.org>
39369         poll tests: Make test more robust.
39370         * tests/test-poll.c: Include macros.h.
39371         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
39372         return value of various I/O operations.
39373         * modules/poll-tests (Files): Add tests/macros.h.
39375 2012-01-30  Bruno Haible  <bruno@clisp.org>
39377         sys_stat: Fix support for mingw64 and MSVC.
39378         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
39379         header files already do it.
39380         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
39381         stat itself.
39382         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
39384 2012-01-30  Bruno Haible  <bruno@clisp.org>
39386         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
39387         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
39388         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
39390 2012-01-29  Bruno Haible  <bruno@clisp.org>
39392         quotearg: Fix test failure on MacOS X 10.5.
39393         * tests/test-quotearg-simple.c: Include localcharset.h.
39394         (main): If the locale encoding is not ASCII, bypass the tests of
39395         locale_quoting_style and clocale_quoting_style.
39396         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
39398 2012-01-29  Jim Meyering  <meyering@redhat.com>
39400         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
39401         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
39402         detect uses of canonicalize_file_name.
39404 2012-01-28  Bruno Haible  <bruno@clisp.org>
39406         test-framework-sh: Fix test failure with AIX 7.1 diff.
39407         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
39408         in column 1, like 'diff -c' does.
39409         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
39410         whether 'diff -u' is used. Instead, test whether the output contains
39411         some '@' character.
39413 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
39415         strtoimax: eliminate need for stdint.h, inttypes.h checks
39416         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
39417         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
39418         the prerequisites for a recently-introduced strtoimax test.
39419         I guess this might cause strtoimax to be replaced when not
39420         strictly necessary on older hosts, but this shouldn't introduce
39421         any bugs and it should make Emacs 'configure' faster on typical
39422         modern hosts.  Problem discovered when importing the latest gnulib
39423         to an Emacs test version.
39424         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
39426 2012-01-28  Bruno Haible  <bruno@clisp.org>
39428         sys_time: Override 'struct timeval' on some native Windows platforms.
39429         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
39430         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
39431         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
39432         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
39433         needs to be overridden.
39434         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
39435         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
39436         * tests/test-sys_select.c: Check that the tv_sec member has the same
39437         size as a 'time_t'.
39438         * tests/test-sys_time.c: Likewise.
39439         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
39440         is set, set also REPLACE_GETTIMEOFDAY.
39441         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
39442         convert the resulting 'struct timeval' before returning.
39443         * lib/select.c: Include <sys/time.h>.
39444         (select, timeval): Undefine at the right place.
39445         * modules/select (Depends-on): Add sys_time.
39446         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
39447         some Windows platforms.
39448         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
39450 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
39452         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
39453         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
39454         an integer.
39455         * lib/fcntl.c (dupfd): Likewise.
39456         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
39458 2012-01-28  Bruno Haible  <bruno@clisp.org>
39460         fcntl: Avoid compilation error on native Windows.
39461         * modules/fcntl (Depends-on): Add 'close'.
39463 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
39465         select, poll, isatty: Avoid warnings on x86_64 mingw64.
39466         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
39467         pointer to an integer.
39468         * lib/poll.c (IsConsoleHandle): Likewise.
39469         * lib/isatty.c (IsConsoleHandle): Likewise.
39471 2012-01-28  Jim Meyering  <meyering@redhat.com>
39473         doc: clarify README-release
39474         * top/README-release: Clarify: you should make a point to have
39475         the latest stable versions of build tools in your PATH, and the
39476         reference to buildreq is solely for its list of tool names, not
39477         for its minimal-functional version numbers.
39478         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
39480         maint.mk: use more readable (yet functionally equivalent) quoting
39481         It is common to quote a single quote in a single quoted string like
39482         this:  '...'\''...'.  Unless you know the idiom, that looks like
39483         gibberish, so prefer to double-quote the string when possible.
39484         Then you can use a more readable, lone single quote: "...'..."
39485         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
39486         "don't" is more readable than the equivalent 'don'\''t'.
39487         (sc_cast_of_x_alloc_return_value): Likewise.
39488         (sc_cast_of_alloca_return_value): Likewise.
39489         (sc_makefile_path_separator_check): Similar: use ":" in '...',
39490         rather than '\'':'\''.
39492 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
39494         stdalign: relax _Alignof and tighten _Alignas test
39495         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
39496         as it was too strict: alignof must divide offsetof, but it need
39497         not equal offsetof.  Inspired by Joseph S. Myers's comment
39498         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
39499         Conversely, tighten the _Alignas test a bit, as the resulting
39500         alignment must be exactly 8.
39502 2012-01-27  Bruno Haible  <bruno@clisp.org>
39504         stdalign: Document the last change.
39505         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
39507 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
39509         stdalign: check that alignof and offsetof are consistent
39510         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
39511         Problem reported for gnulib by Richard W.M. Jones in
39512         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00340.html>.
39514 2012-01-27  Jim Meyering  <meyering@redhat.com>
39516         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
39517         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
39518         convert a sequence with gaps to the minimal containing range.
39519         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
39520         * tests/test-update-copyright.sh: Test for this.
39521         The FSF confirmed it is ok to do this, assuming there is at
39522         least one significant change per year in the affected range:
39523         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
39525 2012-01-26  Bruno Haible  <bruno@clisp.org>
39527         pipe2: refine doc about thread-safety
39528         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
39529         multithread-safety problem.
39530         * doc/glibc-functions/accept4.texi: Likewise.
39532 2012-01-26  Bruno Haible  <bruno@clisp.org>
39534         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
39535         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
39536         In the test program, include <fcntl.h>, for O_RDONLY.
39538 2012-01-26  Eric Blake  <eblake@redhat.com>
39540         pipe2: document lack of thread-safety in replacement
39541         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
39542         issue in replacement.
39543         * doc/glibc-functions/accept4.texi (accept4): Likewise.
39544         Based on a report by Eric Wong.
39546 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
39547             Bruno Haible  <bruno@clisp.org>
39549         malloca: Avoid warnings on x86_64 mingw64.
39550         * lib/malloca.c: Include <stdint.h>.
39551         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
39552         * modules/malloca (Depends-on): Add stdint.
39553         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
39555 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
39557         obstack: remove __STDC__ conditionals
39558         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
39559         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
39560         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
39561         m4/include_next.m4 as the only gnulib-maintained places that still
39562         refer to __STDC__.
39564 2012-01-24  Bruno Haible  <bruno@clisp.org>
39566         havelib: Modern quoting.
39567         * build-aux/config.rpath: Quote 'like this', not `like this', as per
39568         the recent change to the GNU coding standards.
39570 2012-01-24  Bruno Haible  <bruno@clisp.org>
39572         stdint: Improve support for Android.
39573         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
39574         Reported by Simon Josefsson <simon@josefsson.org>.
39576 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
39578         doc: omit trailing empty lines from INSTALL etc.
39579         * doc/Makefile (INSTALL): Omit trailing empty lines.
39580         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
39581         omit trailing empty lines.  This simplifies the build procedure.
39583 2012-01-23  Jim Meyering  <meyering@redhat.com>
39585         tests: avoid spurious warnings about gl_sockets_startup
39586         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
39587         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
39588         reporting a "statement with no effect".
39589         * tests/test-accept.c (main): Mark as "(void)".
39590         * tests/test-accept4.c (main): Likewise.
39591         * tests/test-bind.c (main): Likewise.
39592         * tests/test-connect.c (main): Likewise.
39593         * tests/test-getpeername.c (main): Likewise.
39594         * tests/test-getsockname.c (main): Likewise.
39595         * tests/test-getsockopt.c (main): Likewise.
39596         * tests/test-listen.c (main): Likewise.
39597         * tests/test-recv.c (main): Likewise.
39598         * tests/test-recvfrom.c (main): Likewise.
39599         * tests/test-send.c (main): Likewise.
39600         * tests/test-sendto.c (main): Likewise.
39601         * tests/test-setsockopt.c (main): Likewise.
39602         * tests/test-shutdown.c (main): Likewise.
39604 2012-01-21  Bruno Haible  <bruno@clisp.org>
39606         locale-fr.m4: Fix for Android.
39607         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
39608         failure of the test program on Bionic libc.
39610 2012-01-21  Jim Meyering  <meyering@redhat.com>
39612         bootstrap: fail when bootstrap_post_import_hook fails
39613         Otherwise, it's far too easy to miss diagnostics emitted
39614         between gnulib-tool's output and that of running configure.
39615         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
39617 2012-01-17  Jim Meyering  <meyering@redhat.com>
39619         maint: enable sc_trailing_blank
39620         * build-aux/pmccabe.css: Remove trailing blanks.
39621         * doc/acl-cygwin.txt: Likewise.
39622         * doc/gnu-oids.texi: Likewise
39623         * cfg.mk: Enable sc_trailing_blank.
39624         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
39626 2012-01-17  Jim Meyering  <meyering@redhat.com>
39628         maint: enable sc_prohibit_openat_without_use
39629         * cfg.mk: Enable sc_prohibit_openat_without_use.
39630         Exempt lib/selinux-at.c.
39632 2012-01-17  Jim Meyering  <meyering@redhat.com>
39634         maint: enable sc_prohibit_cloexec_without_use
39635         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
39636         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
39638 2012-01-17  Jim Meyering  <meyering@redhat.com>
39640         maint: enable sc_prohibit_intprops_without_use
39641         * cfg.mk: Enable sc_prohibit_intprops_without_use
39642         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
39644 2012-01-17  Jim Meyering  <meyering@redhat.com>
39646         maint: enable sc_prohibit_hash_pjw_without_use
39647         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
39648         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
39649         to match any use of \<hash_pjw\>, i.e., not necessarily with a
39650         following " (".
39652 2012-01-17  Jim Meyering  <meyering@redhat.com>
39654         maint: enable double-word-prohibiting rule
39655         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
39656         Exempt three files.
39658 2012-01-17  Jim Meyering  <meyering@redhat.com>
39660         maint: remove empty lines at EOF, but excluding modules/*
39661         Apply syntax rules at home as well as abroad.  Most changes
39662         were induced by running this:
39663           make srcdir=. _build-aux=build-aux -f top/maint.mk \
39664             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
39665             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
39666         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
39667         Exempt modules/* and two binary files.
39668         Also exempt doc/INSTALL*, per request from Bruno Haible.
39669         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
39670         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
39671         * doc/Copyright/request-assign.future: Likewise.
39672         * doc/Copyright/request-disclaim.changes: Likewise.
39673         * doc/INSTALL: Likewise.
39674         * doc/INSTALL.ISO: Likewise.
39675         * doc/INSTALL.UTF-8: Likewise.
39676         * doc/acl-cygwin.txt: Likewise.
39677         * doc/acl-resources.txt: Likewise.
39678         * doc/fdl-1.2.texi: Likewise.
39679         * doc/fdl-1.3.texi: Likewise.
39680         * doc/fdl.texi: Likewise.
39681         * lib/argp-pin.c: Likewise.
39682         * lib/round.c: Likewise.
39683         * lib/unicase/u16-totitle.c: Likewise.
39684         * lib/unictype/block_test.c: Likewise.
39685         * lib/uninorm/canonical-decomposition.c: Likewise.
39686         * m4/README: Likewise.
39687         * m4/relocatable-lib.m4: Likewise.
39688         * tests/test-isnand-nolibm.c: Likewise.
39689         * tests/test-isnand.c: Likewise.
39690         * tests/uninorm/NormalizationTest.txt: Likewise.
39692 2012-01-17  Jim Meyering  <meyering@redhat.com>
39694         maint: add framework to run syntax-check rules against gnulib sources
39695         * cfg.mk: New file, to disable all currently-failing tests.
39696         We'll enable them one by one, as they are made to pass.
39697         * Makefile (sc_maint): New rule.
39699 2012-01-21  Bruno Haible  <bruno@clisp.org>
39701         stdint: Add support for Android.
39702         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
39703         include the system's <stdint.h>.
39704         Reported by Simon Josefsson <simon@josefsson.org>.
39706 2012-01-19  Jim Meyering  <meyering@redhat.com>
39708         bootstrap: add bootstrap_post_import_hook
39709         Bison does still need something like the gnulib_mk_hook whose
39710         invocation I had to remove along with slurp in commit 767ccd40.
39711         Technically, we could get along without it, but doing so would
39712         have required living with a warning and a mandatory post-bootstrap
39713         automake rerun.
39714         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
39715         (bootstrap_post_import_hook): New function.
39716         Invoke it after gnulib-tool --import and before autoreconf.
39718 2012-01-18  Jim Meyering  <meyering@redhat.com>
39720         gitlog-to-changelog: don't use "no_"-prefixed variable name
39721         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
39722         to enable both --cluster and --no-cluster.  Change variable name,
39723         s/\$no_cluster/$cluster/, and reverse usage to match.
39725         gitlog-to-changelog: use "||", not "or" in expressions
39726         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
39727         expressions.
39729 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
39731         gitlog-to-changelog: new option --no-cluster
39732         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
39733         clustering of adjacent commit messages.
39735 2012-01-17  Jim Meyering  <meyering@redhat.com>
39737         maint: spell file systems with two words, not one
39738         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
39739         two words, not one.
39741 2012-01-16  Jim Meyering  <meyering@redhat.com>
39743         bootstrap: add a FIXME comment to ensure we eventually remove the hack
39744         * build-aux/bootstrap (gnulib_tool_options): Add comment.
39746 2012-01-16  Eric Blake  <eblake@redhat.com>
39748         bootstrap: cater to autoconf 2.59
39749         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
39750         is not available.
39752         bootstrap: properly check for libtool
39753         * build-aux/bootstrap (libtoolize): Also run libtool when older
39754         usage is detected.
39756 2012-01-15  Bruno Haible  <bruno@clisp.org>
39758         Improve support for MSVC 9.
39759         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
39760         clashes on MSVC.
39761         * lib/fcntl.in.h: Likewise.
39762         * lib/stdlib.in.h: Likewise.
39763         * lib/sys_stat.in.h: Likewise.
39765 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
39767         gnupload: we hold the master copy of this script now
39768         For motivation and more information, see:
39769         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00222.html>
39770         * build-aux/gnupload: Make it clear in the heading comments that the
39771         master copy of this file is maintained by gnulib.  Since we are at
39772         it, bump its copyright year and ...
39773         ($scriptversion): ... the date in its version.
39774         ($usage): Patches and bug reports should be sent to the gnulib list,
39775         not the automake one.
39776         * config/srclist.txt: Don't try to sync 'gnupload' from automake
39777         anymore.
39779 2012-01-15  Bruno Haible  <bruno@clisp.org>
39781         Fix module 'random'.
39782         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
39783         initstate, setstate are declared.
39785 2012-01-14  Bruno Haible  <bruno@clisp.org>
39787         Tests for module 'random'.
39788         * modules/random-tests: New file.
39789         * tests/test-random.c: New file, based on tests/test-random_r.c.
39791         New module 'random'.
39792         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
39793         declarations.
39794         * lib/random.c: New file, based on glibc/stdlib/random.c.
39795         * m4/random.m4: New file.
39796         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
39797         HAVE_RANDOM.
39798         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
39799         * modules/random: New file.
39800         * config/srclist.txt: Add an entry for random.c.
39801         * doc/posix-functions/random.texi: Mention the 'random' module.
39802         * doc/posix-functions/initstate.texi: Likewise.
39803         * doc/posix-functions/setstate.texi: Likewise.
39804         * doc/posix-functions/srandom.texi: Likewise.
39806 2012-01-12  Bruno Haible  <bruno@clisp.org>
39808         random_r: Use common idioms.
39809         * lib/random_r.c: Include <stdlib.h> first.
39811         random_r: Override incompatible API on AIX, OSF/1.
39812         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
39813         Override the system function if REPLACE_RANDOM_R is 1.
39814         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
39815         and OSF/1, set REPLACE_RANDOM_R.
39816         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
39817         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
39818         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
39819         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
39820         * doc/glibc-functions/random_r.texi: Likewise.
39821         * doc/glibc-functions/setstate_r.texi: Likewise.
39823         random_r: Support for MSVC 9.
39824         * lib/random_r.c: Include stdint.h, not inttypes.h.
39826 2012-01-12  Eric Blake  <eblake@redhat.com>
39828         inet_ntop: guard extra work by IF_LINT
39829         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
39830         better code generation when not checking for warnings.
39831         Suggested by Paul Eggert and Jim Meyering.
39833         strptime: fix regression on mingw
39834         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
39835         Fix regression.  Reported by Bruno Haible.
39837 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
39838             Bruno Haible  <bruno@clisp.org>
39840         copy-file: add error-code-returning variant.
39841         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
39842         (qcopy_file_preserving): New declaration.
39843         * lib/copy-file.c (qcopy_file_preserving): Renamed from
39844         copy_file_preserving. Change return type to 'int'. Don't emit an error
39845         message here.
39846         (copy_file_preserving): New function.
39847         * tests/test-copy-file.c: Include <stdlib.h>.
39848         (main): Test qcopy_file_preserving if the environment variable
39849         NO_STDERR_OUTPUT is set.
39850         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
39851         with NO_STDERR_OUTPUT
39852         * tests/test-copy-file-2.sh: Likewise.
39854 2012-01-10  Bruno Haible  <bruno@clisp.org>
39856         copy-file: Use 'quote' module consistently.
39857         * lib/copy-file.c (copy_file_preserving): Use quote().
39859         copy-file: Refactor.
39860         * lib/copy-file.c: Include quote.h.
39861         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
39862         message here.
39863         * modules/copy-file (Depends-on): Add quote.
39865         acl: Export qcopy_acl.
39866         * lib/acl.h (qcopy_acl): New declaration.
39867         * lib/copy-acl.c (qcopy_acl): Make non-static.
39869         acl: Rename a local variable.
39870         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
39872         acl: Align return values of copy_acl and qcopy_acl.
39873         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
39874         maybe < -1.
39876 2012-01-11  Eric Blake  <eblake@redhat.com>
39878         strptime: silence gcc warnings
39879         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
39880         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
39881         Reported by Daniel P. Berrange.
39883         inet_ntop: silence gcc warning
39884         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
39885         Reported by Daniel P. Berrange.
39887 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
39889         getloadavg test: skip the test on GNU/Linux without /proc mounted
39890         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
39891         file.  When /proc is not mounted, it always fails with ENOENT.
39892         * tests/test-getloadavg.c (main): Treat ENOENT return code from
39893         getloadavg(3) the same way as ENOSYS and ENOTSUP.
39895 2012-01-10  Bruno Haible  <bruno@clisp.org>
39897         regex: Avoid link error on MSVC 9.
39898         * modules/regex (Depends-on): Add wctype.
39900 2012-01-10  Bruno Haible  <bruno@clisp.org>
39902         doc: Mention --with-tests option.
39903         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
39904         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
39905         --with-tests.
39906         Reported by Reuben Thomas.
39908 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
39910         users.txt: order package names lexicographically.
39911         * users.txt: Order package names lexicographically.
39913 2012-01-10  Jim Meyering  <meyering@redhat.com>
39915         maint.mk: fix description in comment
39916         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
39918         ignore-value: remove deprecated ignore_ptr function
39919         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
39920         * NEWS: Note this.
39922 2012-01-09  Jim Meyering  <meyering@redhat.com>
39924         test-init.sh: avoid a subshell
39925         * tests/test-init.sh: Remove protective subshell.
39926         Suggested by Bernhard Voelker.  While a subshell is normally
39927         required to protect against older shells (Solaris, FreeBSD) that
39928         warn about a missing program before performing redirection, the
39929         shell-selection tests performed by init.sh probably exclude any
39930         offending shell.
39932 2012-01-08  Bruno Haible  <bruno@clisp.org>
39934         setlocale tests: Avoid test failure on Solaris 11.0.
39935         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
39936         variable.
39938 2012-01-08  Bruno Haible  <bruno@clisp.org>
39940         posix_spawn_file_actions_addopen: Work around Solaris 11.0 bug.
39941         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
39942         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
39943         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
39944         macro.
39945         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
39946         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
39947         * lib/spawn_faction_addopen.c: Add workaround implementation if
39948         HAVE_WORKING_POSIX_SPAWN.
39949         * modules/spawn (Makefile): Substitute
39950         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
39951         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
39952         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
39953         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
39954         (Depends-on): Update conditions.
39955         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
39956         the Solaris 11 bug.
39958 2012-01-08  Bruno Haible  <bruno@clisp.org>
39960         posix_spawn_file_actions_adddup2: Work around Solaris 11.0 bug.
39961         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
39962         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
39963         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
39964         macro.
39965         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
39966         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
39967         * lib/spawn_faction_adddup2.c: Add workaround implementation if
39968         HAVE_WORKING_POSIX_SPAWN.
39969         * modules/spawn (Makefile): Substitute
39970         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
39971         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
39972         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
39973         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
39974         (Depends-on): Update conditions.
39975         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
39976         the Solaris 11 bug.
39978 2012-01-08  Bruno Haible  <bruno@clisp.org>
39980         posix_spawn_file_actions_addclose: Work around Solaris 11.0 bug.
39981         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
39982         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
39983         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
39984         HAVE_WORKING_POSIX_SPAWN.
39985         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
39986         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
39987         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
39988         * lib/spawn_faction_addclose.c: Add workaround implementation if
39989         HAVE_WORKING_POSIX_SPAWN.
39990         * modules/spawn (Makefile): Substitute
39991         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
39992         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
39993         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
39994         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
39995         (Depends-on): Update conditions.
39996         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
39997         the Solaris 11 bug.
39999 2012-01-08  Bruno Haible  <bruno@clisp.org>
40001         doc: Update for Solaris 11.0.
40002         * doc/*/*.texi: Mention Solaris 11.0 where appropriate.
40003         * m4/printf.m4: Update comments.
40005 2012-01-08  Bruno Haible  <bruno@clisp.org>
40007         mktime: Avoid compilation error on Solaris 11.
40008         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
40010 2012-01-08  Bruno Haible  <bruno@clisp.org>
40012         doc: Small fix.
40013         * doc/posix-headers/nl_types.texi: Correct platforms list.
40015 2012-01-08  Simon Josefsson  <simon@josefsson.org>
40017         Add lgpl-3.0 module.
40018         * MODULES.html.sh (Support for building documentation): Add
40019         lgpl-3.0.
40020         * modules/lgpl-3.0: New file.
40022 2012-01-08  Jim Meyering  <meyering@redhat.com>
40024         select.c: indent with spaces, not TABs
40025         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
40027 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
40029         quotearg: do not use grave accent for left quote
40030         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
40031         locale_quoting_style.
40032         (quotearg_buffer_restyled): Fix example.
40033         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
40035 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
40037         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
40038         Most programs do not have translation catalogs for English and much
40039         less separate catalogs for British and American English.  Drop the
40040         suggestion to translators about these two, and provide it
40041         automatically for Unicode locales.  Like most programs, even those
40042         using American English, we use single quotation marks.  This conflicts
40043         with the American typographic convention, but works better when you
40044         cite the entire error message within double quotes.  It also tries not
40045         to clash with established practice and with what non-gnulib programs
40046         will usually do.
40047         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
40048         using an UTF-8 or GB-18030 locale.  The list of other locales with
40049         quotes was provided by Bruno Haible.
40050         (quotearg_buffer_restyled): Adjust instructions to translators.
40051         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
40052         text, since this would be wrong when using Unicode.
40053         * modules/quotearg: Depend on c-strcaseeq.
40055 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
40057         quotearg: fix Wikipedia link
40058         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
40060 2012-01-07  Simon Josefsson  <simon@josefsson.org>
40062         Fix for mingw with MSVC9.
40063         * m4/ld-version-script.m4: Check that compiler rejects version
40064         scripts with syntax errors.  Reported by Bruno Haible
40065         <bruno@clisp.org>.
40067 2012-01-06  Bruno Haible  <bruno@clisp.org>
40069         Talk about "native Windows API", not "Woe32".
40070         * lib/accept4.c: Update comments to mention native Windows.
40071         * lib/execute.c: Likewise.
40072         * lib/fatal-signal.c: Likewise.
40073         * lib/localcharset.c: Likewise.
40074         * lib/nanosleep.c: Likewise.
40075         * lib/nl_langinfo.c: Likewise.
40076         * lib/pclose.c: Likewise.
40077         * lib/pipe-filter-gi.c: Likewise.
40078         * lib/pipe-filter-ii.c: Likewise.
40079         * lib/pipe.c: Likewise.
40080         * lib/pipe2.c: Likewise.
40081         * lib/popen.c: Likewise.
40082         * lib/progreloc.c: Likewise.
40083         * lib/relocatable.c: Likewise.
40084         * lib/sigaction.c: Likewise.
40085         * lib/sigprocmask.c: Likewise.
40086         * lib/spawn-pipe.h: Likewise.
40087         * lib/spawn-pipe.c: Likewise.
40088         * lib/spawni.c: Likewise.
40089         * lib/stat-time.h: Likewise.
40090         * lib/w32spawn.h: Likewise.
40091         * tests/test-isatty.c: Likewise.
40092         * lib/config.charset: More comments.
40093         * doc/gnulib-intro.texi: Mention native Windows.
40094         * doc/posix-functions/_Exit_C99.texi: Likewise.
40095         * doc/posix-headers/fcntl.texi: Likewise.
40097 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
40099         argp: Avoid crash if translator uses % characters in a translation.
40100         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
40101         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
40103 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
40105         doc: C11 and C++11 are now official
40106         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
40107         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
40108         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
40109         * modules/stdalign:
40110         Replace references to draft C1X to C11, and to draft C++0X to C++11.
40112 2012-01-06  Bruno Haible  <bruno@clisp.org>
40114         uc-is-grapheme-break tests: Tweak.
40115         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
40116         message.
40118 2012-01-06  Bruno Haible  <bruno@clisp.org>
40120         test-init.sh: correct the test for diff -u
40121         * tests/test-init.sh: Also redirect stdout to /dev/null.
40123 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
40125         Use ', not `, for quoting output.
40126         * build-aux/announce-gen (usage, sizes, print_news_deltas)
40127         (print_changelog_deltas, get_tool_versions, main program):
40128         * build-aux/git-version-gen:
40129         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
40130         * build-aux/move-if-change (help):
40131         * build-aux/useless-if-before-free (usage, main program):
40132         * check-module (parse_module_file, usage)
40133         (find_included_lib_files, check_module):
40134         * lib/argmatch.c (main) [TEST]:
40135         * lib/argp-help.c (_help):
40136         * lib/getopt1.c (main) [TEST]:
40137         * lib/git-merge-changelog.c (usage):
40138         * lib/xstrtol-error.c (xstrtol_error):
40139         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
40140         * m4/argz.m4 (gl_FUNC_ARGZ):
40141         * m4/bison.m4 (gl_BISON):
40142         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
40143         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
40144         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
40145         * m4/fpending.m4 (gl_PREREQ_FPENDING):
40146         * m4/gc-random.m4 (gl_GC_RANDOM):
40147         * m4/intl.m4 (gt_CHECK_DECL):
40148         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
40149         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
40150         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
40151         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
40152         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
40153         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
40154         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
40155         * tests/test-dirname.c (main):
40156         * tests/test-getpass.c (main):
40157         * tests/test-iconvme.c (main):
40158         * tests/test-parse-datetime.c (LOG):
40159         * tests/test-xstrtoimax.sh:
40160         * tests/test-xstrtol.sh:
40161         * tests/test-xstrtoll.sh:
40162         * tests/test-xstrtoumax.sh:
40163         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
40164         * top/GNUmakefile (abort-due-to-no-makefile):
40165         Quote 'like this', not `like this', as per the recent change to
40166         the GNU coding standards.
40168 2012-01-05  Bruno Haible  <bruno@clisp.org>
40170         strtoimax: Don't force a replacement on systems where intmax_t is int.
40171         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
40172         'intmax_t' is not larger than 'int'.
40173         Reported by Pádraig Brady <P@draigBrady.com>.
40175 2012-01-05  Bruno Haible  <bruno@clisp.org>
40177         doc: Mention NetBSD bugs.
40178         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
40179         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
40181 2012-01-05  Bruno Haible  <bruno@clisp.org>
40183         strtoumax tests: Enhance tests.
40184         * tests/test-strtoumax.c (main): Add tests for large values.
40186 2012-01-05  Bruno Haible  <bruno@clisp.org>
40188         strtoimax: Work around AIX 5.1 bug.
40189         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
40190         definition.
40191         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
40192         Set HAVE_STRTOIMAX.
40193         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
40194         REPLACE_STRTOIMAX.
40195         * modules/inttypes-incomplete (Makefile.am): Substitute
40196         REPLACE_STRTOIMAX.
40197         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
40198         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
40199         (Depends-on): Update conditions.
40200         * tests/test-strtoimax.c (main): Add tests for large values.
40201         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
40203 2012-01-05  Bruno Haible  <bruno@clisp.org>
40205         inttypes: Modernize.
40206         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
40207         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
40208         (Makefile.am): Update inttypes.h rule.
40210 2012-01-05  Jim Meyering  <meyering@redhat.com>
40212         init.sh: don't waste a subshell just to redirect stderr
40213         * tests/init.sh: In testing for diff -u and diff -c, use a
40214         stderr-redirecting exec inside `...` rather than a subshell.
40216         test-init.sh: avoid failure on HP-UX 11.00
40217         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
40218         resolves to diff -c or cmp.  Reported by Bruno Haible.
40220 2012-01-05  Bruno Haible  <bruno@clisp.org>
40222         Tests for module 'strtoull'.
40223         * modules/strtoull-tests: New file.
40224         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
40226 2012-01-05  Bruno Haible  <bruno@clisp.org>
40228         Tests for module 'strtoll'.
40229         * modules/strtoll-tests: New file.
40230         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
40232 2012-01-05  Bruno Haible  <bruno@clisp.org>
40234         Tests for module 'strtoul'.
40235         * modules/strtoul-tests: New file.
40236         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
40238 2012-01-05  Bruno Haible  <bruno@clisp.org>
40240         Tests for module 'strtol'.
40241         * modules/strtol-tests: New file.
40242         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
40244 2012-01-04  Jim Meyering  <meyering@redhat.com>
40246         test-init.sh: accommodate Solaris 5.10's different diff -u output
40247         * tests/test-init.sh: Also exempt @@ lines from the comparison
40248         of diff output, since Solaris 5.10 and GNU diff formats differ.
40249         Reported by Stefano Lattarini.
40251 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
40253         test-posixtm: don't assume signed integer wraparound
40254         * tests/test-posixtm.c (main): Don't assume wraparound semantics
40255         after signed integer overflow.  Inspired by (though it may not
40256         fix) Bruno Haible's bug report in
40257         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00066.html>.
40259         Spell out "Windows 9x" and "Windows XP".
40260         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
40261         "Windows 9x" and "WinXP" with "Windows XP".
40263 2012-01-04  Jim Meyering  <meyering@redhat.com>
40265         test-vc-list-files-cvs.sh: remove obsolete comment
40266         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
40267         double exit.  Now that's all encapsulated via skip_ and Exit.
40269 2012-01-04  Bruno Haible  <bruno@clisp.org>
40271         Talk about "native Windows API", not "Win32".
40272         * lib/classpath.c: Update comments to mention native Windows.
40273         * lib/csharpexec.c: Likewise.
40274         * lib/dup2.c: Likewise.
40275         * lib/error.c: Likewise.
40276         * lib/fcntl.c: Likewise.
40277         * lib/filename.h: Likewise.
40278         * lib/findprog.c: Likewise.
40279         * lib/get-rusage-as.c: Likewise.
40280         * lib/get-rusage-data.c: Likewise.
40281         * lib/getpagesize.c: Likewise.
40282         * lib/javaexec.c: Likewise.
40283         * lib/msvc-inval.c: Likewise.
40284         * lib/msvc-nothrow.c: Likewise.
40285         * lib/nanosleep.c: Likewise.
40286         * lib/nonblocking.c: Likewise.
40287         * lib/printf-parse.c: Likewise.
40288         * lib/setlocale.c: Likewise.
40289         * lib/sigaction.c: Likewise.
40290         * lib/strerror_r.c: Likewise.
40291         * lib/tmpdir.c: Likewise.
40292         * lib/vasnprintf.c: Likewise.
40293         * lib/w32spawn.h: Likewise.
40294         * lib/waitpid.c: Likewise.
40295         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
40296         * m4/locale-ar.m4: Likewise.
40297         * m4/locale-fr.m4: Likewise.
40298         * m4/locale-ja.m4: Likewise.
40299         * m4/locale-tr.m4: Likewise.
40300         * m4/locale-zh.m4: Likewise.
40301         * m4/printf.m4: Likewise.
40302         * tests/test-cloexec.c: Likewise.
40303         * tests/test-copy-acl.sh: Likewise.
40304         * tests/test-copy-file.sh: Likewise.
40305         * tests/test-file-has-acl.sh: Likewise.
40306         * tests/test-set-mode-acl.sh: Likewise.
40307         * tests/test-dup-safer.c: Likewise.
40308         * tests/test-dup2.c: Likewise.
40309         * tests/test-dup3.c: Likewise.
40310         * tests/test-fcntl.c: Likewise.
40311         * tests/test-nonblocking-pipe.h: Likewise.
40312         * tests/test-nonblocking-socket.h: Likewise.
40313         * tests/test-pipe.c: Likewise.
40314         * tests/test-pipe2.c: Likewise.
40315         * tests/test-spawn-pipe-child.c: Likewise.
40316         * doc/acl-resources.txt: Likewise.
40317         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
40318         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
40319         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
40320         * lib/localcharset.c: Update comments to mention native Windows.
40321         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
40322         * lib/localename.c: Likewise.
40323         * lib/progreloc.c: Likewise.
40324         * lib/relocatable.c: Likewise.
40325         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
40326         (windows_compute_revents): Renamed from win32_compute_revents.
40327         (windows_compute_revents_socket): Renamed from
40328         win32_compute_revents_socket.
40329         * lib/select.c: Update comments to mention native Windows.
40330         (windows_poll_handle): Renamed from win32_poll_handle.
40331         * m4/threadlib.m4: Update comments to mention native Windows.
40332         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
40333         --enable-threads=windows instead of --enable-threads=win32. Set
40334         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
40335         * lib/glthread/lock.h: Update comments to mention native Windows.
40336         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
40337         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
40338         USE_WIN32_THREADS.
40339         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
40340         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
40341         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
40342         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
40343         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
40344         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
40345         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
40346         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
40347         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
40348         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
40349         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
40350         * tests/test-tls.c: Likewise.
40351         Rationale:
40352         Microsoft renamed the "Win32 API" to "Windows API", as it is available
40353         on both 32-bit and 64-bit Windows systems.
40354         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
40355         line of distinction is between "native Windows" on one side and Unix/
40356         POSIX systems on the other side. More details in
40357         <https://lists.gnu.org/r/bug-gnulib/2012-01/msg00027.html>.
40358         Suggested by Paul Eggert.
40360 2012-01-03  Bruno Haible  <bruno@clisp.org>
40362         isatty: Support for MSVC 9.
40363         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
40364         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
40365         (_isatty_nothrow): New function.
40366         (isatty): Use it instead of _isatty.
40367         (IsConsoleHandle): Add comment, from Paolo Bonzini.
40368         * lib/poll.c (IsConsoleHandle): Likewise.
40369         * lib/select.c (IsConsoleHandle): Likewise.
40370         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
40371         (gl_PREREQ_ISATTY): New macro.
40372         * modules/isatty (Depends-on): Add msvc-inval.
40373         (configure.ac): Invoke gl_PREREQ_ISATTY.
40375 2012-01-03  Jim Meyering  <meyering@redhat.com>
40377         maint.mk: remove temporary transition aid from over 1.5 years ago
40378         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
40379         purpose was to aid in the transition (avoiding silent malfunction)
40380         from that old name to the new _sc_search_regexp.  This shim was
40381         added by commit 219c504b.
40383         init.sh: do not try to accommodate compare arguments starting with "-"
40384         * tests/init.sh (compare_dev_null_): Do not try to accommodate
40385         compare arguments that start with "-".  Besides, we do not worry
40386         about this when invoking diff or cmp; why start now with sed?
40387         Using "--" to separate options from argument would trigger sed
40388         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
40389         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
40391 2012-01-02  Bruno Haible  <bruno@clisp.org>
40393         Enhance tests for module 'isatty'.
40394         * modules/isatty-tests (Depends-on): Add pipe-posix.
40395         * tests/test-isatty.c: Include <fcntl.h>.
40396         (DEV_NULL): New macro.
40397         (main): Test the resut of isatty() also on regular files, pipes, and
40398         /dev/null.
40400         New module 'isatty'.
40401         * lib/unistd.in.h (isatty): New declaration.
40402         * lib/isatty.c: New file, based on an idea of
40403         Bastien Roucariès <roucaries.bastien@gmail.com>.
40404         * m4/isatty.m4: New file.
40405         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
40406         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
40407         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
40408         REPLACE_ISATTY.
40409         * modules/isatty: New file.
40410         * doc/posix-functions/isatty.texi: Mention the new module.
40411         Suggested by Paolo Bonzini.
40413 2012-01-02  Bruno Haible  <bruno@clisp.org>
40415         canonicalize: Tweak 2011-12-29 commit.
40416         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
40417         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
40419 2012-01-02  Jim Meyering  <meyering@redhat.com>
40421         gitlog-to-changelog: describe input syntax in --help output
40422         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
40424         gitlog-to-changelog: fix typo in --help: show backslash before email @
40425         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
40426         in sources, but not in actual output.
40428 2011-12-30  Jim Meyering  <meyering@redhat.com>
40430         gitlog-to-changelog: don't malfunction when name contains %-directive
40431         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
40432         in a name string cause trouble.  E.g., with a user name of "%s",
40433         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
40435 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
40437         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
40438         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
40439         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
40440         the "  (tiny change)" notation that is appended to the standard
40441         ChangeLog "date  name  email" header line.
40443 2012-01-01  Jim Meyering  <meyering@redhat.com>
40445         test-framework-sh: init.sh: fix "make dist" failure
40446         When using gnulib-tool's --with-tests option and any module that
40447         depends on test-framework-sh, "make dist" would fail due to the
40448         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
40449         in the gltests directory, and not in the gllib/ directory.
40450         One way to work around that is to move the EXTRA_DIST += init.sh
40451         from the primary module to the -tests one:
40452         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
40453         * modules/test-framework-sh (Makefile.am): ...not here.
40454         Reported by Tom G. Christensen in
40455         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
40457         version-etc: update copyright year reported by --version
40458         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
40460 2011-12-31  Pádraig Brady  <P@draigBrady.com>
40462         canonicalize: only stat() if required
40463         * lib/canonicalize.c (canonicalize_filename_mode):
40464         Avoid calling l?stat() when both CAN_MISSING,
40465         and CAN_NOLINKS are set, as we neither need
40466         to resolve symlinks or test component existence.
40468 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
40470         doc: cover st_ino issues once; add OpenVMS etc.
40471         * doc/posix-functions/stat.texi (stat):
40472         * doc/posix-functions/lstat.texi (lstat):
40473         * doc/posix-functions/fstatat.texi (fstatat):
40474         * doc/posix-functions/fstat.texi (fstat):
40475         Move general 'struct stat' stuff to sys_stat.texi,
40476         leaving behind a pointer.
40477         * doc/posix-headers/sys_stat.texi (sys/stat.h):
40478         Merge duplicate info about 'struct stat' problems into here.
40479         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
40480         and suggest partial workarounds.
40482         same-inode: port to OpenVMS
40483         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
40484         three st_ino values.
40486 2011-12-30  Pádraig Brady  <P@draigBrady.com>
40488         canonicalize: fix references to stat() and lstat()
40489         * lib/canonicalize.c (canonicalize_filename_mode):
40490         Ensure references always resolve to a replacement
40491         function if required (even via a macro).
40493 2011-12-30  Jim Meyering  <meyering@redhat.com>
40495         gitlog-to-changelog: remove a little duplication
40496         * build-aux/gitlog-to-changelog (main): Grep @lines once,
40497         rather than twice.
40499 2011-12-29  Pádraig Brady  <P@draigBrady.com>
40501         canonicalize: add support for not resolving symlinks
40502         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
40503         indicate we don't want to follow symlinks.  Also
40504         provide CAN_MODE_MASK to aid setting these existing
40505         mutually exclusive values.
40506         * lib/canonicalize.c (canonicalize_filename_mode):
40507         Extract the flags from can_mode parameter, which
40508         are currently just used to select between stat()
40509         and lstat().  Also ensure that mutually exclusive
40510         values are flagged immediately as invalid.
40511         * tests/test-canonicalize.c: Verify symlinks are
40512         not followed, and that invalid flag combinations
40513         are diagnosed.
40515 2011-12-25  Jim Meyering  <meyering@redhat.com>
40517         gitlog-to-changelog: do not clump multi-paragraph entries
40518         Identical header lines (date,name,email+coauthors) are suppressed,
40519         thus putting all entries with those same characteristics under
40520         a single header.  However, when a log entry consists of two or
40521         more paragraphs, it may not be clear where it starts and ends.
40522         This change makes it so that such an entry is always separated
40523         from others by a header line, even when that header would
40524         otherwise be suppressed.
40525         * build-aux/gitlog-to-changelog: Implement the above.
40526         Inspired by a related request from Stefano Lattarini in
40527         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
40529 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
40531         announce-gen: fix `cmd' typo in diagnostic
40532         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
40533         diagnostic: a missing '$' meant that the command was not output.
40535 2011-12-23  Jim Meyering  <meyering@redhat.com>
40537         test-framework-sh: distribute init.sh
40538         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
40539         Otherwise, "make -C gnulib-tests check" (at least in grep) would
40540         fail due to the lack of init.sh.
40542         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
40543         * modules/atexit-tests: Rather than listing tests/init.sh,
40544         now that there's a module for it, simply depend on that new module.
40545         * modules/closein-tests: Likewise.
40546         * modules/exclude-tests: Likewise.
40547         * modules/getcwd-tests: Likewise.
40548         * modules/perror-tests: Likewise.
40549         * modules/pread-tests: Likewise.
40550         * modules/pwrite-tests: Likewise.
40551         * modules/vc-list-files-tests: Likewise.
40552         * modules/verify-tests: Likewise.
40553         * modules/xalloc-die-tests: Likewise.
40554         * modules/xstrtoimax-tests: Likewise.
40555         * modules/xstrtol-tests: Likewise.
40556         * modules/xstrtoll-tests: Likewise.
40557         * modules/xstrtoumax-tests: Likewise.
40558         * modules/yesno-tests: Likewise.
40560 2011-12-22  Jim Meyering  <meyering@redhat.com>
40562         test-framework-sh: add minimal tests of init.sh's compare function
40563         * modules/test-framework-sh-tests: New file.
40564         * tests/test-init.sh: New file.
40566         test-framework-sh: new module
40567         * modules/test-framework-sh: New file.
40568         * MODULES.html.sh (Support for maintaining and releasing projects):
40569         List it.
40571         init.sh: do not emit simulated diff output to stderr
40572         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
40574 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
40576         .gitignore: ignore gnulib.dvi and regex.info
40577         * doc/.gitignore:add gnulib.dvi and regex.info
40579 2011-12-22  Jim Meyering  <meyering@redhat.com>
40581         init.sh: correct previous change
40582         * tests/init.sh (compare): My previous change was wrong.
40583         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
40585         init.sh: avoid unwarranted test failure when using "set -e"
40586         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
40587         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
40588         a use like "compare exp out" would get evoke an unconditional failure.
40590 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
40592         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
40593         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
40594         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
40595         autoreconf that did not.
40596         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
40597         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
40599 2011-12-17  Jim Meyering  <meyering@redhat.com>
40601         bootstrap: remove some now-unneeded code
40602         This script arose back when gnulib-tool was young.
40603         Since then, it has seen improvements that render much of this
40604         script unnecessary.  In particular, it can now make symlinks
40605         to the files it uses.  Also, I no longer see as much value in
40606         marking files as read-only via comments.
40607         If you relied on the symlink-creation feature of the preceding
40608         version of this script, you can get most of that functionality
40609         by adding the --symlink option to the definition of
40610         gnulib_tool_option_extras in your bootstrap.conf file.
40611         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
40612         Run autopoint and libtoolize *before* gnulib-tool.
40613         After it, run an abbreviated autoreconf, rather than a loop around
40614         all tools.
40615         (slirp, bt_mark_as_generated): Remove functions.
40617 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
40619         ftoastr: fix typo
40620         * lib/ftoastr.h: Fix misspelling in comment.
40622 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
40624         * top/README-release: fix punctuation.
40626 2011-12-17  Jim Meyering  <meyering@redhat.com>
40628         bootstrap: correct the recent buildreq change
40629         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
40630         had no effect.
40631         * build-aux/bootstrap (buildreq): Bracket each search term with
40632         "*...*", so that the shell "case" statement works as intended.
40633         Add comments.
40635 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
40637         build: let bootstrap resort to wget when downloading .po files
40638         * build-aux/bootstrap (download_po_files): Fallback to wget when
40639         downloading the .po files via rsync fails.  This is necessary to
40640         bootstrap from behind a strict firewall.
40642 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
40644         stdint: don't assume C++11 when compiling with g++
40645         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
40646         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00099.html>.
40647         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
40648         work also in C++ before C++11, as that improperly inhibits
40649         generating a substitute stdint.h for that case.
40651 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
40653         alloca: protect comment from gnulib-tool
40654         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
40655         that gnulib-tool doesn't think it's a license, and munge it to
40656         say "GCC version 3".
40658 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
40660         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
40661         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
40662         $(abs_top_builddir) instead of $(top_builddir).
40664 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
40666         strftime-tests: also test nanoseconds
40667         * tests/test-strftime.c (T): Add a test of %N.
40669 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
40671         inttypes, stdint: add C++11 support
40672         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
40673         when including inttypes.h and stdint.h.  Support this change to
40674         the standard.
40675         * doc/posix-headers/inttypes.texi (inttypes.h):
40676         * doc/posix-headers/stdint.texi (stdint.h): Document this.
40677         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
40678         Define if not defined already, for the benefit of pre-C++11 hosts.
40679         Define the standard format macros (e.g., PRId8) always.
40680         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
40681         Likewise, if __cpluspus.  Define the standard constant and limit
40682         macros (e.g., INT8_C, INT8_MAX) always.
40683         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
40684         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
40685         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
40686         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
40687         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
40688         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
40689         Likewise.
40691 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
40693         nonblocking tests: Fix test failure on Linux/PPC.
40694         Suggested by Prerna Saxena in
40695         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00080.html>.
40696         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
40697         Set to 1100000.
40699 2011-12-12  Jim Meyering  <meyering@redhat.com>
40701         argmatch: don't hard-code `' when listing valid option arguments
40702         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
40703         use the quote function to add quotes.  Use fputs rather than
40704         fprintf for the format string with no format directive.
40706 2011-12-07  Eric Blake  <eblake@redhat.com>
40708         bootstrap: detect tools required by gnulib-tool
40709         * build-aux/bootstrap (buildreq): Provide minimum implicit
40710         dependencies.
40711         * DEPENDENCIES: Mention patch as a prereq.
40713 2011-12-04  Bruno Haible  <bruno@clisp.org>
40715         sethostname: Port to Windows platforms.
40716         * lib/sethostname.c: Provide an alternate implementation for Windows
40717         platforms.
40718         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
40719         (main): Skip the test if sethostname() fails with EPERM. On Windows
40720         platforms, don't check the result of gethostname().
40722 2011-12-04  Bruno Haible  <bruno@clisp.org>
40723             Jim Meyering  <meyering@redhat.com>
40725         tests: Avoid spurious error message on platforms without mktemp program.
40726         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
40728 2011-12-04  Bruno Haible  <bruno@clisp.org>
40730         sethostname: Fix documentation.
40731         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
40732         "not fixed" section.
40734 2011-12-03  Bruno Haible  <bruno@clisp.org>
40736         gnulib-tool: Verify that the License field is present and non-empty.
40737         * gnulib-tool (func_get_license_raw): New function, extracted from
40738         func_get_license.
40739         (func_get_license): Use it. Warn if the module is not a test module and
40740         has no license.
40741         Suggested by Jim Meyering.
40743 2011-12-03  Bruno Haible  <bruno@clisp.org>
40745         sethostname tests: Fix link error on mingw.
40746         * tests/test-sethostname1.c: New file, extracted from
40747         tests/test-sethostname.c.
40748         * tests/test-sethostname2.c: New file, extracted from
40749         tests/test-sethostname.c.
40750         * tests/test-sethostname.c: Remove file.
40751         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
40752         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
40753         (Depends-on): Add gethostname.
40754         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
40755         Link the latter with $(GETHOSTNAME_LIB).
40757         sethostname tests: Fix compilation error on mingw.
40758         * tests/test-sethostname.c: Don't include <sys/types.h>.
40759         (geteuid): Use a dummy value without uid_t.
40760         * modules/sethostname-tests (Depends-on): Remove sys_types.
40762         sethostname tests: Avoid a gcc warning.
40763         * tests/test-sethostname.c (main): Remove an unused variable.
40765         Tweak last commit.
40766         * modules/sethostname-tests (Files): Sort by decreasing importance.
40767         (configure.ac): Check for geteuid.
40768         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
40769         the test when there's nothing to test. Drop an unnecessary cast.
40770         Improve an error message. Verify that the final sethostname() call
40771         succeeds.
40773 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
40775         Add a test suite for the sethostname module.
40776         * modules/sethostname-tests: New file.  A test program
40777         for the sethostname module.
40778         * tests/test-sethostname.c: Likewise.
40780 2011-12-03  Bruno Haible  <bruno@clisp.org>
40782         Tweak last commit.
40783         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
40784         Fix preprocessor directives indentation. Fix typos.
40785         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
40786         * modules/unistd (Makefile): Likewise.
40788 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
40790         Integrate the sethostname module into unistd.
40791         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
40792         into the unistd.h header.
40793         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
40794         preprocessor directives.
40795         * modules/unistd: Setup the Makefile substitutions of the
40796         SETHOSTNAME preprocessor directives.
40798 2011-12-03  Bruno Haible  <bruno@clisp.org>
40800         Tweak last commit.
40801         * lib/sethostname.c: Don't include <string.h>.
40802         (sethostname): No need to copy the argument string to the stack. Don't
40803         call clearerr. Preserve errno when fprintf failed.
40804         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
40805         Don't invoke AC_REPLACE_FUNCS.
40806         * modules/sethostname (Link): Remove empty section.
40807         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
40808         failure problem.
40810 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
40812         New module 'sethostname'.
40813         * lib/sethostname.c (sethostname): New file.  Provide sethostname
40814         for systems that lack it.
40815         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
40816         sethostname declaration and function.
40817         * modules/sethostname: New file.  Define the sethostname module.
40819 2011-12-03  Bruno Haible  <bruno@clisp.org>
40821         Tweak last commit.
40822         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
40824 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
40826         Split the HOST_NAME_MAX detection into a separate m4 macro.
40827         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
40828         macro so it can be used by the pending sethostname module.
40830 2011-12-03  Bruno Haible  <bruno@clisp.org>
40832         Fix module descriptions syntax.
40833         * modules/argv-iter (License): Fix syntax.
40834         * modules/di-set (License): Likewise.
40835         * modules/ino-map (License): Likewise.
40836         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
40838 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
40840         stdalign: port to Clang 3.0
40841         Problem reported by Simon Josefsson in
40842         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00005.html>.
40843         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
40844         which has <stdalign.h> but which does not define alignof.
40845         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
40847 2011-12-01  Eric Blake  <eblake@redhat.com>
40849         mktempd: silence dd usage
40850         * build-aux/mktempd (rand_bytes): Silence dd.
40852 2011-11-30  Simon Josefsson  <simon@josefsson.org>
40854         manywarnings: Don't mention gcc version in docstring.
40855         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
40856         Jim Meyering <meyering@redhat.com>.
40858 2011-11-30  Jim Meyering  <meyering@redhat.com>
40860         hash: mark a few floating point constants with "f" suffix
40861         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
40862         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
40863         floating point constants with "f", since they're destined to be
40864         saved/used as "float"s.
40866 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
40868         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
40869         * tests/test-float.c (test_long_double): Correct and re-enable the
40870         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
40872 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
40874         Avoid subtracting two pointers that don't point into the same block.
40875         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
40876         only pointers into the same memory block are subtracted. We cannot
40877         assume that sizeof (ptrdiff_t) == sizeof (void *).
40879 2011-11-29  Eric Blake  <eblake@redhat.com>
40881         maint.mk: add syntax check for use of compare from init.sh
40882         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
40883         moved here from coreutils.
40885         manywarnings: drop -Wunsuffixed-float-constants
40886         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
40887         '1.0D', which is the only way to silence this warning for 'double'.
40889 2011-11-29  Jim Meyering  <meyering@redhat.com>
40891         hash: mark compute_bucket_size with the pure attribute
40892         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
40894         quotearg, propername: correct pragma guard expression
40895         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
40896         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
40898 2011-11-28  Jim Meyering  <meyering@redhat.com>
40900         propername: do not mark proper_name with the const attribute
40901         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
40902         since it examines data pointed to by its parameter.
40903         * lib/propername.c (proper_name): Instead, add a pragma to suppress
40904         the suggestion from -Wsuggest-attribute=const.
40906         propername: mark one more function as const
40907         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
40909 2011-11-27  Jim Meyering  <meyering@redhat.com>
40911         mark functions with const and pure attributes
40913         Mark functions per suggestions from gcc-4.6 when using these options:
40914         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
40915         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
40916         Follow these guidelines: when possible, apply the attribute to
40917         an extern declaration, not to its definition.  Apply it to the
40918         definition only when the definition is static.
40919         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
40920         * lib/argv-iter.h (argv_iter_n_args): Likewise.
40921         * lib/base64.h (isbase64): Likewise.
40922         * lib/basename-lgpl.c (last_component, base_len): Likewise.
40923         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
40924         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
40925         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
40926         (c_tolower, c_toupper): Likewise.
40927         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
40928         * lib/chdir-long.c (find_non_slash): Likewise.
40929         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
40930         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
40931         * lib/file-type.h (file_type): Likewise.
40932         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
40933         * lib/filevercmp.c (verrevcmp): Likewise.
40934         * lib/freadahead.h (freadahead): Likewise.
40935         * lib/fts.c (fts_maxarglen): Likewise.
40936         * lib/hash-pjw.h (hash_pjw): Likewise.
40937         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
40938         * lib/hash.c (is_prime, next_prime): Likewise.
40939         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
40940         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
40941         (hash_table_ok, hash_get_first, hash_string): Likewise.
40942         (compute_bucket_size): Likewise.
40943         * lib/i-ring.h (i_ring_empty): Likewise.
40944         * lib/isnan.c (isnanl): Likewise.
40945         * lib/math.h (isnanl, rpl_isnanl): Likewise.
40946         * lib/memcasecmp.h (memcasecmp): Likewise.
40947         * lib/memchr2.h (memchr2): Likewise.
40948         * lib/memcmp2.h (memcmp2): Likewise.
40949         * lib/parse-datetime.y (lookup_zone): Likewise.
40950         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
40951         [!WINDOWS_SOCKETS]: Likewise.
40952         * lib/strnlen1.h (strnlen1): Likewise.
40953         * lib/uniwidth.in.h (uc_width): Likewise.
40954         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
40955         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
40956         (quoting_options_from_style): Add a comment.
40957         * lib/propername.h (proper_name): Add a comment.
40959 2011-11-27  Bruno Haible  <bruno@clisp.org>
40961         Remove unused macros from !_LIBC code in glibc-borrowed files.
40962         * lib/fnmatch.c (STRCOLL): Remove macro.
40963         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
40964         * lib/glob.c (__stat, __readdir64): Remove macros.
40965         * lib/tempname.c (__open64, __xstat64): Remove macros.
40966         Suggested by Paul Eggert.
40968 2011-11-27  Bruno Haible  <bruno@clisp.org>
40970         getcwd: Fix link error on MSVC 9.
40971         * modules/getcwd (Depends-on): Add readdir, rewinddir.
40973 2011-11-27  Bruno Haible  <bruno@clisp.org>
40975         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
40976         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
40977         HAVE_OPENDIR is 0.
40978         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
40979         HAVE_CLOSEDIR is 0.
40980         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
40981         is 0.
40982         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
40984 2011-11-27  Bruno Haible  <bruno@clisp.org>
40986         getcwd: Fix bug from 2011-08-17.
40987         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
40988         platforms that need it.
40989         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
40990         code of 4 to be a failure, not a success. This ensures that
40991         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
40993 2011-11-27  Bruno Haible  <bruno@clisp.org>
40995         binary-io tests: Avoid test failure on mingw when libtool is used.
40996         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
40997         Don't verify the size of t-bin-out1.tmp here.
40998         * tests/test-binary-io.sh: Verify it here.
40999         Reported by Simon Josefsson.
41001 2011-11-26  Bruno Haible  <bruno@clisp.org>
41003         Fix conflict between two instantiations of module 'unistd'.
41004         * gnulib-tool (func_emit_autoconf_snippet): Substitute
41005         ${include_guard_prefix} also in the autoconf snippet.
41006         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
41007         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
41008         GNULIB_UNISTD_H_GETOPT.
41009         * modules/getopt-posix (configure.ac): Set the
41010         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
41011         * modules/getopt-gnu (configure.ac): Likewise.
41012         * modules/unistd (Makefile.am): Change the substitution value of
41013         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
41014         Reported by Simon Josefsson.
41016 2011-11-25  Bruno Haible  <bruno@clisp.org>
41018         pagealign_alloc: Doc and comments.
41019         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
41020         module.
41021         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
41023 2011-11-25  Jim Meyering  <meyering@redhat.com>
41025         test-update-copyright.sh: avoid false-positive failure
41026         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
41027         around false positive failure on Cygwin/Windows.  The latter was
41028         matching erroneously-created files with names like
41029         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
41031 2011-11-25  Simon Josefsson  <simon@josefsson.org>
41033         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
41034         * m4/valgrind-tests.m4: Check that the parameters that will be
41035         used works, not just a subset of them.  Reported by Bruno Haible
41036         <bruno@clisp.org>.
41038 2011-11-24  Jim Meyering  <meyering@redhat.com>
41040         test-stdalign.c: comment out long double tests
41041         * tests/test-stdalign.c: Don't try to reduce alignment of long double
41042         variables.  That provokes errors like this from gcc-4.7.0 20111124:
41043         error: '_Alignas' specifiers cannot reduce alignment of \
41044         'static_longdouble_alignas'.
41046 2011-11-22  Jim Meyering  <meyering@redhat.com>
41048         init.sh: make "compare /dev/null FILE" output more readable
41049         * tests/init.sh (compare_): Document the preferred order of arguments.
41050         (emit_diff_u_header_): New function.
41051         (compare_dev_null_): Emit a simulated diff, rather than just the
41052         contents of the unexpected file.  Suggestion from Bruno Haible.
41054 2011-11-21  Jim Meyering  <meyering@redhat.com>
41055             Eric Blake  <eblake@redhat.com>
41057         init.sh: work around OSF/1 5.1's mishandling of /dev/null
41058         * tests/init.sh: Make our compare function slightly more portable.
41059         Reported by Bruno Haible in
41060         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
41062 2011-11-21  Simon Josefsson  <simon@josefsson.org>
41064         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
41065         before using it, in code that ends up in config.h.
41067 2011-11-20  Bruno Haible  <bruno@clisp.org>
41069         getcwd: Work around getcwd bug on AIX 5..7.
41070         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
41071         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
41072         Use a different value for gl_cv_func_getcwd_path_max. Move the
41073         definition of HAVE_PARTLY_WORKING_GETCWD from here...
41074         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
41075         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
41076         Define HAVE_MINIMALLY_WORKING_GETCWD.
41077         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
41078         where it is not even minimally working, that is, on AIX.
41079         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
41080         m4/getcwd-path-max.m4.
41081         (main): Update exit code computation.
41082         * doc/posix-functions/getcwd.texi: Mention list of platforms where
41083         getcwd does not handle long file names.
41085 2011-11-20  Bruno Haible  <bruno@clisp.org>
41087         getcwd: Fix bug from 2009-09-10.
41088         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
41089         like "no".
41091 2011-11-20  Simon Josefsson  <simon@josefsson.org>
41093         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
41095 2011-11-20  Bruno Haible  <bruno@clisp.org>
41097         fma tests: Avoid shadowing local variables.
41098         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
41099         expected.
41101 2011-11-20  Bruno Haible  <bruno@clisp.org>
41103         copysignf tests: Fix.
41104         * tests/test-copysignf.c: Fix signature check.
41106 2011-11-20  Bruno Haible  <bruno@clisp.org>
41108         fma: Remove unused code.
41109         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
41110         unused macros.
41112 2011-11-20  Bruno Haible  <bruno@clisp.org>
41114         sethostname: Fix doc about AIX.
41115         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
41116         sethostname; it has it.
41118         sethostname: Mention more portability problems.
41119         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
41120         problem.
41121         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
41123 2011-11-19  Bruno Haible  <bruno@clisp.org>
41125         Depend on module fcntl-h when AT_FDCWD is used.
41126         * modules/utimens (Depends-on): Add fcntl-h.
41127         * modules/areadlinkat (Depends-on): Likewise.
41128         * modules/areadlinkat-with-size (Depends-on): Likewise.
41129         * modules/faccessat (Depends-on): Likewise.
41130         * modules/fchmodat (Depends-on): Likewise.
41131         * modules/fchownat (Depends-on): Likewise.
41132         * modules/getcwd (Depends-on): Likewise.
41133         * modules/mkdirat (Depends-on): Likewise.
41134         * modules/mkfifoat (Depends-on): Likewise.
41135         * modules/readlinkat (Depends-on): Likewise.
41136         * modules/symlinkat (Depends-on): Likewise.
41137         * modules/dup2-tests (Depends-on): Likewise.
41138         * modules/fdutimensat-tests (Depends-on): Likewise.
41139         * modules/futimens-tests (Depends-on): Likewise.
41141 2011-11-19  Bruno Haible  <bruno@clisp.org>
41143         euidaccess: Update a comment.
41144         * lib/euidaccess.c: Update comment about platforms with faccessat.
41146 2011-11-19  Bruno Haible  <bruno@clisp.org>
41148         openat: Fix file list.
41149         * modules/openat (Files): Remove lib/at-func.c.
41151 2011-11-19  Bruno Haible  <bruno@clisp.org>
41153         fstatat: Simplify.
41154         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
41155         gnulib should define rpl_fstatat, there is a
41156         "#define fstatat rpl_fstatat" in <sys/stat.h>.
41158 2011-11-19  Bruno Haible  <bruno@clisp.org>
41160         Ensure 'inline' can be used in tests/test-utimens-common.h.
41161         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
41162         * modules/futimens-tests (configure.ac): Likewise.
41163         * modules/utimens-tests (configure.ac): Likewise.
41164         * modules/utimensat-tests (configure.ac): Likewise.
41166 2011-11-19  Simon Josefsson  <simon@josefsson.org>
41168         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
41169         not hash_insert0.
41170         (hash_insert_if_absent): Doc fix.
41172 2011-11-19  Simon Josefsson  <simon@josefsson.org>
41174         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
41176 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
41178         test-getcwd: disambiguate exit status
41179         * tests/test-getcwd.c (test_long_name): Return 0..7.
41180         (main): Exit with an unambiguous exit status.  The old
41181         code yielded a mysterious mixture of two failure codes.
41183         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
41184         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
41185         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
41186         rpl_fstatat or fstatat.  This should fix the other problem
41187         reported by Kai Habel in
41188         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00237.html>.
41189         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
41190         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00239.html>
41191         and I reproduced it on a Solaris 8 host we still have in production.
41193 2011-11-18  Jim Meyering  <meyering@redhat.com>
41195         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
41196         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
41197         Add a sentence to the comment.
41198         (hash_insert0): New function that simply calls hash_insert_if_absent.
41199         * lib/hash.h (hash_insert_if_absent): Declare it.
41200         (hash_insert0): Add deprecation attribute.
41201         (_GL_ATTRIBUTE_DEPRECATED): Define.
41202         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
41203         not hash_insert0.
41204         * NEWS: Mention it, even though it's not really an incompatible change.
41206 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
41208         openat: avoid compilation failure due to lack of <errno.h> inclusion
41209         * lib/openat.c: Include <errno.h>.
41211 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
41213         * modules/getcwd (Depends-on): Add fdopendir.
41214         This fixes one of the two problems reported by Kai Habel in
41215         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00237.html>.
41217         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
41218         stdalign problem reported by Ian Beckwith in
41219         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00238.html>.
41220         * modules/crypto/gc-arcfour (Depends-on):
41221         Depend conditionally on crypto/arcfour.
41222         * modules/crypto/gc-arctwo (Depends-on):
41223         Depend conditionally on crypto/arctwo.
41224         * modules/crypto/gc-des (Depends-on):
41225         Depend conditionally on crypto/des.
41226         * modules/crypto/gc-hmac-md5 (Depends-on):
41227         Depend conditionally on crypto/hmac-md5.
41228         * modules/crypto/gc-hmac-sha1 (Depends-on):
41229         Depend conditionally on crypto/hmac-sha1.
41230         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
41231         * modules/crypto/gc-md4 (Depends-on):
41232         Depend conditionally on crypto/md4.
41233         * modules/crypto/gc-md5 (Depends-on):
41234         Depend conditionally on crypto/md5.
41235         * modules/crypto/gc-rijndael (Depends-on):
41236         Depend conditionally on crypto/rijndael.
41237         * modules/crypto/gc-sha1 (Depends-on):
41238         Depend conditionally on crypto/sha1.
41239         * modules/crypto/gc-arcfour:
41240         * modules/crypto/gc-arctwo:
41241         * modules/crypto/gc-des:
41242         * modules/crypto/gc-hmac-md5:
41243         * modules/crypto/gc-hmac-sha1:
41244         * modules/crypto/gc-md2:
41245         * modules/crypto/gc-md4:
41246         * modules/crypto/gc-md5:
41247         * modules/crypto/gc-rijndael:
41248         * modules/crypto/gc-sha1:
41249         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
41250         now that the conditional dependencies do the work for us.
41252 2011-11-17  Jim Meyering  <meyering@redhat.com>
41254         tests: factor st_ctime-comparison out of two headers
41255         * tests/test-utimens-common.h (ctime_compare): Define.
41256         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
41257         * tests/test-lutimens.h (test_lutimens): Likewise.
41258         * tests/test-utimens.h (test_utimens): Likewise.
41260         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
41261         Invoke the test program via an init.sh-using wrapper.
41262         * tests/test-getcwd.sh: New file.
41263         * modules/getcwd-tests (Files): Add it.
41264         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
41266 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
41268         gitlog-to-changelog: support multi-author commits.
41269         The FSF cares about keeping track of all authors of patches to its
41270         projects, but Git doesn't provide obvious support for multi-author
41271         changesets. Consensus seems to be forming around the use of extra
41272         Signed-off-by inspired lines in the log message formatted as
41273         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
41274         multi-author commits between version control systems.
41275         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
41276         log message and output in standard ChangeLog multi-author format.
41277         Reported by Peter Rosin <peda@lysator.liu.se>
41279 2011-11-15  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
41280             Bruno Haible  <bruno@clisp.org>
41282         Fix some modules' file list.
41283         * modules/fstatat (Files): Add m4/lstat.m4.
41284         * modules/openat (Files): Likewise.
41285         * modules/unlinkat (Files): Likewise.
41287 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
41289         maint.mk: fix tight-scope.mk generation in VPATH builds.
41290         * top/maint.mk (tight-scope.mk): Make sure to prefix file
41291         reference with $(srcdir) so that the file is found correctly even
41292         when running `make syntax-check' in a VPATH build.
41294 2011-11-13  Bruno Haible  <bruno@clisp.org>
41295             Jim Meyering  <meyering@redhat.com>
41297         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
41298         * tests/init.sh (compare): Remove "No differences encountered" or
41299         synonymous output from the 'diff' program.
41301 2011-11-13  Bruno Haible  <bruno@clisp.org>
41303         Makefile: Tweak indentation.
41304         * Makefile: Use tab as first character in every line that contains rule
41305         commands.
41307 2011-11-13  Bruno Haible  <bruno@clisp.org>
41309         Syntax check for copyright statements.
41310         * check-copyright: New file.
41311         * Makefile (sc_check_copyright): New rule.
41313 2011-11-13  Simon Josefsson  <simon@josefsson.org>
41315         * build-aux/git-version-gen: Add --prefix to configure the tag
41316         match string.
41318 2011-11-13  Simon Josefsson  <simon@josefsson.org>
41320         * build-aux/git-version-gen: Add --help and --version.
41322 2011-11-12  Jim Meyering  <meyering@redhat.com>
41324         revamp the other test-exclude?.sh scripts to use init.sh, too
41325         * tests/test-exclude1.sh: Use init.sh.
41326         * tests/test-exclude2.sh: Likewise.
41327         * tests/test-exclude3.sh: Likewise.
41328         * tests/test-exclude4.sh: Likewise.
41329         * tests/test-exclude5.sh: Likewise.
41330         * tests/test-exclude6.sh: Likewise.
41331         * tests/test-exclude7.sh: Likewise.
41332         * tests/test-exclude8.sh: Likewise.
41333         * modules/exclude-tests (Files): List init.sh.
41335         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
41336         These shell scripts ignored failure of the binary test-exclude,
41337         so making the latter return 77 didn't cause them to be skipped.
41338         * tests/test-exclude5.sh: Exit with test-exclude's error status
41339         when that program fails.  Revamp to use init.sh.
41340         * tests/test-exclude2.sh: Likewise.
41342         test-exclude: fix a typo
41343         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
41345 2011-11-11  Bruno Haible  <bruno@clisp.org>
41347         obstack: Fix compilation error on MSVC 9.
41348         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
41350 2011-11-11  Jim Meyering  <meyering@redhat.com>
41352         test-exclude: skip tests rather than failing on deficient systems
41353         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
41354         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
41355         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
41356         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
41358 2011-11-10  Bruno Haible  <bruno@clisp.org>
41360         ptsname_r test: Avoid gcc warning on glibc systems.
41361         * tests/test-ptsname_r.c (null_ptr): New function.
41362         (test_errors): Use it.
41364 2011-11-10  Bruno Haible  <bruno@clisp.org>
41366         ptsname_r: Avoid compilation error on OSF/1 5.1.
41367         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
41368         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
41369         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
41370         function is not declared or incompatibly declared.
41371         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
41372         * modules/ptsname_r (Depends-on, configure.ac): Update.
41373         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
41375 2011-11-10  Bruno Haible  <bruno@clisp.org>
41377         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
41378         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
41379         When cross-compiling, guess yes on all platforms except AIX.
41380         Reported by Ludovic Courtès <ludo@gnu.org>.
41382 2011-11-09  Bruno Haible  <bruno@clisp.org>
41384         ptsname_r tests: Fix bugs.
41385         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
41386         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
41388 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
41390         fstatat: work with cross-compilation
41391         Problem reported by Ludovic Courtès in
41392         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00136.html>.
41393         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
41394         "cross-compiling" and assume the bug is present.  Replace
41395         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
41396         an inverted sense, to be more conservative about our assumptions.
41397         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
41399 2011-11-09  Bruno Haible  <bruno@clisp.org>
41401         Improve MODULES.html output.
41402         * modules/mkfifoat (Description): Use the word "function".
41403         * modules/readlinkat (Description): Likewise.
41404         * modules/symlinkat (Description): Likewise.
41406 2011-11-09  Eric Blake  <eblake@redhat.com>
41408         ptsname_r-tests: new test module
41409         * modules/ptsname_r-tests: New module.
41410         * tests/test-ptsname_r.c: New file.
41412         ptsname_r: new module
41413         * modules/ptsname_r: New module.
41414         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
41415         * lib/ptsname.c (__ptsname_r): Split...
41416         * lib/ptsname_r.c: ...into new file.
41417         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
41418         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
41419         * modules/stdlib (Makefile.am): Substitute witnesses.
41420         * lib/stdlib.in.h (ptsname_r): Declare it.
41421         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
41422         * MODULES.html.sh (Misc): Likewise.
41423         * modules/ptsname (Depends-on): Alter dependency.
41424         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
41426 2011-11-09  Jim Meyering  <meyering@redhat.com>
41428         announce-gen: be more concise when there's only one URL+tarball
41429         * build-aux/announce-gen (get_tool_versions): When you distribute
41430         only one type of tarball, combine the first two "Here are..."
41431         sections and make the key-checking grammar independent of
41432         how many tarballs there are.
41434 2011-11-09  Eric Blake  <eblake@redhat.com>
41436         openpty: provide a stub on mingw
41437         * lib/pty.in.h (includes): Provide forward declarations.
41438         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
41440         raise: fix mingw handling of SIGPIPE
41441         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
41443 2011-11-08  Bruno Haible  <bruno@clisp.org>
41445         More conditional dependencies.
41446         * modules/faccessat (Depends-on): Add conditions.
41447         * modules/fchmodat (Depends-on): Likewise.
41448         * modules/fchownat (Depends-on): Likewise.
41449         * modules/fstatat (Depends-on): Likewise.
41450         * modules/mkfifoat (Depends-on): Likewise.
41451         * modules/readlinkat (Depends-on): Likewise.
41452         * modules/symlinkat (Depends-on): Likewise.
41453         * modules/unlinkat (Depends-on): Likewise.
41454         * modules/utimensat (Depends-on): Likewise.
41455         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
41456         * modules/linkat (Depends-on): Refine the conditions.
41457         * modules/renameat (Depends-on): Likewise.
41459 2011-11-08  Bruno Haible  <bruno@clisp.org>
41461         faccessat: Move AC_LIBOBJ invocation to module description.
41462         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
41463         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
41464         invocation from here...
41465         * modules/faccessat (configure.ac): ... to here. Invoke
41466         gl_PREREQ_FACCESSAT.
41468 2011-11-08  Bruno Haible  <bruno@clisp.org>
41470         faccessat: Simplify autoconf macro.
41471         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
41472         gl_FUNC_EUIDACCESS.
41474 2011-11-08  Bruno Haible  <bruno@clisp.org>
41476         renameat: Fix dependencies.
41477         * modules/renameat (Depends-on): Add stdbool.
41479 2011-11-08  Bruno Haible  <bruno@clisp.org>
41481         mkfifoat: Fix module description.
41482         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
41483         not gl_UNISTD_MODULE_INDICATOR.
41485 2011-11-08  Bruno Haible  <bruno@clisp.org>
41487         fstatat: Remove unused dependency.
41488         * modules/fstatat (Depends-on): Remove fstat.
41490 2011-11-08  Simon Josefsson  <simon@josefsson.org>
41492         GNUmakefile: behave when Makefile is missing.
41493         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
41495 2011-11-08  Bruno Haible  <bruno@clisp.org>
41497         openat: Conditionalize dependencies.
41498         * lib/openat.c: Reduce the scope of some #includes.
41499         * modules/openat (Depends-on): Add conditions.
41501 2011-11-07  Jim Meyering  <meyering@redhat.com>
41503         maint.mk: extract GPG key ID without using a temporary file
41504         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
41505         without using a temporary file.  Based on a suggestion from Werner Koch
41506         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
41508 2011-11-07  Eric Blake  <eblake@redhat.com>
41510         grantpt: fix typo
41511         * lib/stdlib.in.h (grantpt): Check correct function.
41513         maint.mk: silence new syntax check
41514         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
41516 2011-11-06  Bruno Haible  <bruno@clisp.org>
41518         Doc about floating-point and math API.
41519         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
41520         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
41522 2011-11-06  Bruno Haible  <bruno@clisp.org>
41524         stdalign tests: Skip the test when compiled by Sun C.
41525         * tests/test-stdalign.c (main): Skip the test on Sun C.
41527 2011-11-06  Bruno Haible  <bruno@clisp.org>
41529         ansi-c++-opt: Complete the 2011-06-05 change.
41530         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
41531         does not support namespaces, set the variable to "no", not to ":".
41533 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
41535         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
41537 2011-11-06  Bruno Haible  <bruno@clisp.org>
41539         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
41540         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
41541         (minus_zerol) [HP-UX]: New macro.
41542         (unary_minus) [HP-UX]: New function.
41543         (copysignl) [HP-UX]: Use unary_minus function.
41545 2011-11-06  Bruno Haible  <bruno@clisp.org>
41547         ldexp, ldexpf, ldexpl: Enhance tests.
41548         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
41549         and tests/test-ldexpl.c.
41550         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
41551         LDEXP, MIN_EXP, MAX_EXP): New macros.
41552         Include test-ldexp.h.
41553         (main): Just call test_function.
41554         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
41555         infinity.h, nan.h.
41556         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
41557         MAX_EXP): New macros.
41558         Include test-ldexp.h.
41559         (x, y): Remove variables.
41560         (main): Just call test_function.
41561         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
41562         infinity.h, nan.h.
41563         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
41564         MAX_EXP): New macros.
41565         Include test-ldexp.h.
41566         (x, y): Remove variables.
41567         (main): Just call test_function.
41568         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
41569         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
41570         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
41571         (Depends-on): Add isnand-nolibm, signbit, float.
41572         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
41573         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
41574         (Depends-on): Add isnanf-nolibm, signbit, float.
41576 2011-11-06  Bruno Haible  <bruno@clisp.org>
41578         math tests: Cosmetics.
41579         * tests/test-math-c++.cc: Reorder declarations.
41581 2011-11-05  Bruno Haible  <bruno@clisp.org>
41583         fma*: Simplify test.
41584         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
41585         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
41587         Tests for module 'fmal'.
41588         * modules/fmal-tests: New file.
41589         * tests/test-fmal1.c: New file.
41590         * tests/test-fmal2.c: New file.
41592         New module 'fmal'.
41593         * lib/math.in.h (fmal): New declaration.
41594         * lib/fmal.c: New file.
41595         * m4/fmal.m4: New file.
41596         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
41597         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
41598         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
41599         REPLACE_FMAL.
41600         * modules/fmal: New file.
41601         * doc/posix-functions/fmal.texi: Mention the new module and the various
41602         bugs.
41604         Tests for module 'fmaf'.
41605         * modules/fmaf-tests: New file.
41606         * tests/test-fmaf1.c: New file.
41607         * tests/test-fmaf2.c: New file.
41609         New module 'fmaf'.
41610         * lib/math.in.h (fmaf): New declaration.
41611         * lib/fmaf.c: New file.
41612         * m4/fmaf.m4: New file.
41613         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
41614         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
41615         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
41616         REPLACE_FMAF.
41617         * modules/fmaf: New file.
41618         * doc/posix-functions/fmaf.texi: Mention the new module and the various
41619         bugs.
41621         Tests for module 'fma'.
41622         * modules/fma-tests: New file.
41623         * tests/test-fma1.c: New file.
41624         * tests/test-fma1.h: New file.
41625         * tests/test-fma2.c: New file.
41626         * tests/test-fma2.h: New file.
41628         New module 'fma'.
41629         * lib/math.in.h (fma): New declaration.
41630         * lib/fma.c: New file.
41631         * m4/fma.m4: New file.
41632         * m4/fegetround.m4: New file.
41633         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
41634         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
41635         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
41636         REPLACE_FMA.
41637         * modules/fma: New file.
41638         * doc/posix-functions/fma.texi: Mention the new module and the various
41639         bugs.
41641         Extend gl_MATHFUNC.
41642         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
41643         Support 'void' as argument type.
41644         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
41646 2011-11-05  Jim Meyering  <meyering@redhat.com>
41648         maint.mk: also prohibit inclusion of dirent.h without use
41649         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
41651 2011-11-05  Bruno Haible  <bruno@clisp.org>
41653         ldexpl tests: Avoid test failure on MSVC 9.
41654         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
41655         value. Needed in order to enforce the conversion from a value greater
41656         than LDBL_MAX to Infinity.
41658 2011-11-05  Bruno Haible  <bruno@clisp.org>
41660         New modules 'at-internal', 'openat-h', split off from module 'openat'.
41661         * modules/at-internal: New file, extracted from modules/openat.
41662         * modules/openat-h: New file.
41663         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
41664         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
41665         * modules/openat (Description): Add reference to POSIX function.
41666         (Files): Remove lib/openat.h, lib/openat-proc.c.
41667         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
41668         intprops, unistd.
41669         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
41670         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
41671         gl_FCNTL_MODULE_INDICATOR.
41672         (Include): Remove unistd.h, openat.h.
41673         * modules/areadlinkat (Files): Add lib/at-func.c.
41674         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
41675         openat-die, openat-h, save-cwd.
41676         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
41677         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
41678         openat-die, openat-h, save-cwd, unistd.
41679         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
41680         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
41681         openat-h, save-cwd. Remove fcntl-h, openat.
41682         * modules/fchmodat (Files): Remove lib/openat.h.
41683         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
41684         openat, stdbool, unistd.
41685         * modules/fchownat (Files): Remove lib/openat.h.
41686         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
41687         openat, stdbool, sys_stat.
41688         * modules/fdopendir (Files): Remove lib/openat-priv.h,
41689         lib/openat-proc.c.
41690         (Depends-on): Add at-internal.
41691         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
41692         * modules/fstatat (Files): Remove lib/openat.h.
41693         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
41694         stdbool, unistd.
41695         * modules/fts (Depends-on): Add openat-h.
41696         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
41697         openat.
41698         * modules/mkdirat (Files): Remove lib/openat.h.
41699         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
41700         openat, stdbool, sys_stat.
41701         * modules/mkfifoat (Files): Add lib/at-func.c.
41702         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
41703         openat-h, save-cwd. Remove fcntl-h, openat.
41704         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
41705         * modules/readlinkat (Files): Add lib/at-func.c.
41706         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
41707         openat-h, save-cwd. Remove fcntl-h, openat.
41708         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
41709         openat.
41710         * modules/selinux-at (Files): Add lib/at-func.c.
41711         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
41712         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
41713         * modules/symlinkat (Files): Add lib/at-func.c.
41714         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
41715         openat-h, save-cwd. Remove fcntl-h, openat.
41716         * modules/unlinkat (Files): Remove lib/openat.h.
41717         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
41718         stdbool.
41719         * modules/utimensat (Files): Add lib/at-func.c.
41720         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
41721         openat-die, openat-h, save-cwd.
41722         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
41723         * modules/fdutimensat-tests (Depends-on): Add openat.
41724         * modules/fstatat-tests (Depends-on): Add openat-h.
41725         * modules/readlinkat-tests (Depends-on): Add openat.
41726         * modules/symlinkat-tests (Depends-on): Add openat.
41728 2011-11-05  Bruno Haible  <bruno@clisp.org>
41730         openat: Include <stdbool.h>.
41731         * lib/openat.c: Include <stdbool.h>.
41733 2011-11-04  Bruno Haible  <bruno@clisp.org>
41735         fchownat, renameat, unlinkat: Fix dependencies.
41736         * modules/fchownat (Depends-on): Add fstatat.
41737         * modules/renameat (Depends-on): Likewise.
41738         * modules/unlinkat (Depends-on): Likewise.
41740 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
41742         openat: remove direct dependency on dirent
41743         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
41744         and hasn't been needed ever since fdopendir was split into its own
41745         module on 2009-08-31.
41746         * modules/openat (Depends-on): Remove dirent.
41748 2011-11-04  Bruno Haible  <bruno@clisp.org>
41750         renameat: Optimize code size.
41751         * modules/renameat (configure.ac): Don't compile at-func2.c if
41752         REPLACE_RENAMEAT is 1.
41754 2011-11-04  Bruno Haible  <bruno@clisp.org>
41756         openat tests: Fix file list.
41757         * modules/openat-tests (Files): Add tests/test-open.h.
41759 2011-11-04  Bruno Haible  <bruno@clisp.org>
41761         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
41762         * modules/fchmodat (Depends-on): Add openat-die.
41763         * modules/fchownat (Depends-on): Likewise.
41764         * modules/linkat (Depends-on): Likewise.
41765         * modules/renameat (Depends-on): Likewise.
41766         * modules/openat (Depends-on): Add dirent.
41768 2011-11-04  Jim Meyering  <meyering@redhat.com>
41770         at-func*.c: fix comments
41771         * lib/at-func2.c: Correct/improve first-line comment.
41772         * lib/at-func.c: Correct grammar in first-line comment.
41774 2011-11-04  Bruno Haible  <bruno@clisp.org>
41776         New module 'mkdirat', split off from module 'openat'.
41777         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
41778         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
41779         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
41780         * modules/mkdirat: New file, extracted from modules/openat.
41781         * modules/openat (Files): Remove lib/mkdirat.c.
41782         (Depends-on): Remove mkdir.
41783         (configure.ac): Remove AC_LIBOBJ of mkdirat.
41784         (Include): Remove <sys/stat.h>.
41785         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
41786         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
41787         tests/test-mkdir.h.
41788         (Depends-on): Remove ignore-value.
41789         (Makefile.am): Remove rules for test-mkdirat.
41790         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
41791         of module 'openat'.
41792         * NEWS: Mention the change.
41794 2011-11-04  Bruno Haible  <bruno@clisp.org>
41796         closedir: Avoid warning on mingw.
41797         * lib/closedir.c: Include <unistd.h>.
41799 2011-11-04  Bruno Haible  <bruno@clisp.org>
41801         New module 'fstatat', split off from module 'openat'.
41802         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
41803         defined.
41804         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
41805         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
41806         gl_FUNC_FSTATAT.
41807         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
41808         * modules/fstatat: New file, extracted from modules/openat.
41809         * modules/openat (Files): Remove lib/fstatat.c.
41810         (Depends-on): Remove lstat.
41811         (configure.ac): Remove AC_LIBOBJ of fstatat.
41812         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
41813         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
41814         tests/test-lstat.h, tests/test-stat.h.
41815         (Depends-on): Remove getcwd-lgpl.
41816         (Makefile.am): Remove rules for test-fstatat.
41817         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
41818         of module 'openat'.
41819         * NEWS: Mention the change.
41820         * modules/getcwd (Depends-on): Add fstatat.
41821         * modules/linkat (Depends-on): Likewise.
41822         * modules/mkfifoat-tests (Depends-on): Likewise.
41823         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
41825 2011-11-03  Bruno Haible  <bruno@clisp.org>
41827         New module 'unlinkat', split off from module 'openat'.
41828         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
41829         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
41830         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
41831         * modules/unlinkat: New file, extracted from modules/openat. Correct
41832         the dependency conditions.
41833         * modules/openat (Files): Remove lib/unlinkat.c.
41834         (Depends-on): Remove rmdir, unlink.
41835         (configure.ac): Remove AC_LIBOBJ of unlinkat.
41836         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
41837         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
41838         tests/test-rmdir.h, tests/test-unlink.h.
41839         (Depends-on): Remove unlinkdir.
41840         (Makefile.am): Remove rules for test-unlinkat.
41841         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
41842         of module 'openat'.
41843         * NEWS: Mention the change.
41844         * modules/linkat-tests (Depends-on): Add unlinkat.
41845         * modules/mkfifoat-tests (Depends-on): Likewise.
41846         * modules/readlinkat-tests (Depends-on): Likewise.
41848 2011-11-02  Bruno Haible  <bruno@clisp.org>
41850         New module 'fchmodat', split off from module 'openat'.
41851         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
41852         defined.
41853         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
41854         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
41855         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
41856         * modules/fchmodat: New file, extracted from modules/openat.
41857         * modules/openat (Files): Remove lib/fchmodat.c.
41858         (configure.ac): Remove AC_LIBOBJ of fchmodat.
41859         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
41860         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
41861         (Makefile.am): Remove rules for test-fchmodat.
41862         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
41863         of module 'openat'.
41864         * NEWS: Mention the change.
41866 2011-11-02  Jim Meyering  <meyering@redhat.com>
41868         putenv: indent #definition of "environ" to placate cppi
41869         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
41871         gitlog-to-changelog: provide a ChangeLog-repair mechanism
41872         Git logs are often treated as immutable, because editing them
41873         changes the SHA1 checksums of all descendants.  Thus, errors in
41874         git logs tend to stay there forever.  However, when we generate
41875         a ChangeLog file -- typically for distribution -- from that git log,
41876         we can actually make corrections in the generated file.  The key
41877         lies in recording in machine-readable/applicable form the desired
41878         corrections.  See --help for description and an example.
41879         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
41880         (usage): Describe it; alphabetize option descriptions.
41881         (main): Honor the new option, carefully.
41883 2011-11-01  Jim Meyering  <meyering@redhat.com>
41885         gitlog-to-changelog: avoid an infloop
41886         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
41887         that ends up being empty.
41889 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
41891         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
41892         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
41893         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
41894         contains (possibly-quoted) backslashes.  This should avoid
41895         all-too-common shell bugs if COMPLICATED contains backslashes in
41896         the "wrong" places.  Reported by David Evans in
41897         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00013.html>.
41898         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
41899         because we want ASCII ranges.  Is there some reason we don't use
41900         the C locale everywhere in this script?
41901         (func_module, top level): Avoid unwanted pathname expansion when
41902         $repo_url_prefix or $repo_url_suffix_repl contain shell
41903         metacharacters like '?' and '*'.
41905 2011-11-01  Bruno Haible  <bruno@clisp.org>
41907         fchownat: Improve description.
41908         * modules/fchownat (Description): Add link to function.
41910 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
41912         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
41913         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
41914         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00006.html>.
41915         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
41917 2011-11-01  Bruno Haible  <bruno@clisp.org>
41919         alignof: Avoid collision with stdalign module.
41920         * lib/alignof.h (alignof): Remove macro.
41921         * NEWS: Mention the change.
41922         Reported by Paul Eggert.
41924 2011-11-01  Bruno Haible  <bruno@clisp.org>
41926         New module 'fchownat', split off from module 'openat'.
41927         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
41928         defined.
41929         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
41930         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
41931         invoke gl_FUNC_FCHOWNAT.
41932         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
41933         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
41934         * modules/fchownat: New file, extracted from modules/openat.
41935         * modules/openat (Files): Remove lib/fchownat.c.
41936         (Depends-on): Remove lchown.
41937         (configure.ac): Remove AC_LIBOBJ of fchownat.
41938         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
41939         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
41940         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
41941         (Depends-on): Remove mgetgroups, usleep, stat-time.
41942         (configure.ac): Remove test for getegid.
41943         (Makefile.am): Remove rules for test-fchownat.
41944         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
41945         of module 'openat'.
41946         * NEWS: Mention the change.
41948 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
41950         stdalign: port better to MSVC and to Sun C 5.11
41951         This fixes some of the problems reported by Bruno Haible in
41952         <http://lists.gnu.org/r/bug-gnulib/2011-10/msg00300.html>.
41953         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
41954         shortcomings of MSVC and of Sun C 5.11.
41955         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
41956         around __declspec arg.
41957         * modules/stdalign-tests (Files): Add tests/macros.h.
41958         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
41959         Include macros.h, for ASSERT.
41960         (DECLARE_ALIGNED): Remove.
41961         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
41962         to catch bug), and to 1 if not (simplifies the rest of the code).
41963         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
41964         (CHECK_AUTO): Remove.
41965         (CHECK_ALIGNED): Check only the alignment of the static vars,
41966         since auto var alignment isn't supported by Sun C 5.11.
41967         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
41968         ASSERT failures are easier to diagnose.
41970 2011-10-31  Bruno Haible  <bruno@clisp.org>
41972         doc about some IRIX 5.3 problems.
41973         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
41974         on IRIX 5.3.
41975         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
41976         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
41977         5.3.
41978         * doc/posix-functions/grantpt.texi: Likewise.
41979         * doc/posix-functions/unlockpt.texi: Likewise.
41980         * doc/posix-functions/lgamma.texi: Likewise.
41981         * doc/posix-functions/nextafter.texi: Likewise.
41982         * doc/posix-functions/remainder.texi: Likewise.
41983         * doc/posix-functions/select.texi: Mention misplaced declaration on
41984         IRIX 5.3.
41985         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
41987 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
41989         gitlog-to-changelog: fix git-log invocation.
41990         git-log mishandles date strings before 1970-01-01 UTC, and there is
41991         no use to specify --since=1970-01-01 by default anyway.
41992         * build-aux/gitlog-to-changelog: By default, when no --since option
41993         was given, do not specify explicit --since option to git-log.
41995 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
41997         gitlog-to-changelog: new option --append-dot.
41998         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
41999         first non-blank line of each commit message terminated with a dot.
42001 2011-10-30  Bruno Haible  <bruno@clisp.org>
42003         ffsl, ffsll: Avoid compilation error due to 'restrict'.
42004         * lib/ffsl.h: Include <config.h>.
42005         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
42007 2011-10-30  Jim Meyering  <meyering@redhat.com>
42009         GNUmakefile: reenable "make syntax-check" for most projects
42010         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
42011         build-aux variable", "syntax-check" would do nothing but succeed with
42012         the "No version control files detected..." diagnostic (unless you
42013         happened to override _build-aux via cfg.mk).
42014         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
42015         to precede inclusion of maint.mk.  Otherwise, these variables would
42016         be used undefined in any project that does not override the default.
42018 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
42020         gitlog-to-changelog: treat a message with only blank lines as empty.
42021         * build-aux/gitlog-to-changelog: Move the code that removes leading and
42022         trailing blank lines before the code that issues a warning about an
42023         empty commit message.
42025 2011-10-30  Jim Meyering  <meyering@redhat.com>
42027         test-parse-datetime.c: avoid new DST-related false positive test failure
42028         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
42029         based on the time/date we'll convert, not the current time.
42030         Otherwise, the moment we cross a DST boundary like today's in
42031         Europe, (CEST to CET), that offset ends up being one hour off.
42033 2011-10-27  Bruno Haible  <bruno@clisp.org>
42035         fstat: Tweak documentation.
42036         * modules/fstat (Description): More precise description.
42038 2011-10-27  Bruno Haible  <bruno@clisp.org>
42040         Update documentation regarding 'largefile' module.
42041         * doc/posix-functions/fstat.texi: Tweak wording.
42042         * doc/posix-functions/opendir.texi: Mention that the module fixes the
42043         problems with huge directories and/or small ino_t types.
42044         * doc/posix-functions/readdir.texi: Likewise.
42045         * doc/posix-functions/rewinddir.texi: Likewise.
42047 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
42049         maint.mk: don't maintain a second build-aux variable.
42050         * maint.mk (build_aux): Removed.  The maintainer-makefile module
42051         depends on GNUmakefile, which already maintains a cfg.mk
42052         overridable $(_build-aux) for projects with a non-standard
42053         build-aux directory location, although without the $(srcdir)
42054         prefix.  Use that variable consistently instead of introducing a
42055         second one.  Adjust all call sites.
42057 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
42059         Add stdalign module and use it in other modules.
42060         This is based on a previous proposal by Bruno Haible
42061         <https://lists.gnu.org/r/bug-gnulib/2011-07/msg00226.html>.
42063         stdalign: new module
42064         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
42065         * modules/stdalign: New files.
42066         * MODULES.html.sh (c1x_core_properties): Add stdalign.
42067         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
42069         stdalign-tests: new module
42070         * modules/stdalign-tests, tests/test-stdalign.c: New files.
42072         argp: use stdalign
42073         * lib/argp-parse.c: Include <stdalign.h>.
42074         (alignof): Remove.
42075         * modules/argp (Depends-on): Add stdalign.
42077         crypto libraries: use stdalign
42078         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
42079         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
42080         Do not include <stdlib.h> twice, in md4.c.
42081         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
42082         because we are accessing a pointer's bit-pattern, not a size.
42083         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
42084         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
42085         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
42086         * modules/crypto/sha512: Likewise.
42088         sys_socket: use stdalign, not alignof
42089         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
42090         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
42092 2011-10-27  Bruno Haible  <bruno@clisp.org>
42094         raise test: Avoid a test failure on Linux/MIPS.
42095         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
42096         because 99 is a valid signal on Linux/MIPS.
42098 2011-10-27  Bruno Haible  <bruno@clisp.org>
42100         nonblocking tests: Fix test failure on Linux/MIPS.
42101         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
42102         Set to 270000.
42104 2011-10-27  Bruno Haible  <bruno@clisp.org>
42106         utimensat: Work around problem on Linux/hppa.
42107         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
42108         values.
42109         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
42111 2011-10-25  Jim Meyering  <meyering@redhat.com>
42113         maint.mk: fix a bug in sc_prohibit_stddef_without_use
42114         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
42115         after symbols like NULL, size_t, etc.
42116         Reported by Alfred M. Szmidt.
42118         maint.mk: exempt ENODATA from a syntax-check rule
42119         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
42120         from the sc_prohibit_always-defined_macros syntax-check rule.
42121         Add a comment.  See this for more details:
42122         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
42124 2011-10-23  Jim Meyering  <meyering@redhat.com>
42126         fts: close parent dir FD before returning from post-traversal fts_read
42127         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
42128         unlink A, even though an FD open on A remained.  This is suboptimal
42129         (holding a file descriptor open longer than needed), but otherwise not
42130         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
42131         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
42132         that represents a real problem: it causes the removal of A to fail
42133         with e.g., "rm: cannot remove `A': Device or resource busy"
42135         fts visits each directory twice and keeps a cache (fts_fd_ring) of
42136         directory file descriptors.  After completing the final, FTS_DP,
42137         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
42138         cache, but then proceeded to add a new FD to it via the subsequent
42139         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
42140         final file descriptor would be closed only via fts_close's call to
42141         fd_ring_clear.  Now, it is usually closed earlier, via the final
42142         FTS_DP-returning fts_read call.
42143         * lib/fts.c (restore_initial_cwd): New function, converted from
42144         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
42145         Update callers.
42146         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
42147         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
42149 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
42150             Bruno Haible  <bruno@clisp.org>
42151             Jim Meyering  <jim@meyering.net>
42153         readme-release: improve safety of release prep instructions.
42154         * README-release: Don't git pull all branches when only master
42155         is needed for the release process.
42156         Run make maintainer-clean before changing trees and merging.
42157         Don't try to run ./configure right after git pull in case files
42158         that influence the bootstrap process have changed, move the
42159         ./configure step to after running ./bootstrap.
42160         Don't bootstrap "one last time"... it's the first time!
42162 2011-10-22  Bruno Haible  <bruno@clisp.org>
42164         errno, strerror-override: Support for MSVC 10.
42165         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
42166         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
42167         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
42168         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
42169         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
42170         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
42171         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
42172         Assign values compatible with MSVC 10.
42173         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
42174         New macros.
42175         (GNULIB_defined_EWINSOCK): New macro.
42176         * lib/strerror-override.c (strerror_override): Update accordingly.
42177         * lib/strerror-override.h: Likewise.
42178         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
42179         longer equal to the corresponding errno value.
42180         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
42182 2011-10-22  Bruno Haible  <bruno@clisp.org>
42184         perror: Recognize when test program crashes.
42185         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
42186         strerror, set gl_cv_func_perror_works to no.
42187         Reported by Daniel Richard G. <skunk@iskunk.org>.
42189         perror: Fix indentation.
42190         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
42192 2011-10-22  Bruno Haible  <bruno@clisp.org>
42194         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
42195         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
42196         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
42197         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
42198         functions, not as a macro.
42199         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
42200         macros.
42201         (isfinite, isinf, isnan, signbit): Check overloaded functions and
42202         absence of macro.
42203         Suggested by Eric Blake.
42204         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
42206 2011-10-21  Bruno Haible  <bruno@clisp.org>
42208         relocatable-prog-wrapper: Don't leave object files behind.
42209         * build-aux/install-reloc: Re-synchronize list of .o files to be
42210         removed with list of compilation units.
42212 2011-10-20  Bruno Haible  <bruno@clisp.org>
42214         openpty, posix_openpt: Remove code duplication.
42215         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
42216         * lib/openpty.c: Include <stdlib.h>.
42217         (openpty): Use posix_openpt on all platforms except IRIX.
42218         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
42220 2011-10-20  Bruno Haible  <bruno@clisp.org>
42222         unlockpt: Detect invalid argument.
42223         * lib/unlockpt.c: Include <fcntl.h>.
42224         (unlockpt): Check whether fd is valid, using fcntl().
42225         * modules/unlockpt (Depends-on): Add fcntl-h.
42227 2011-10-20  Bruno Haible  <bruno@clisp.org>
42229         openpty: Avoid compilation error on AIX 6.1.
42230         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
42232 2011-10-20  Bruno Haible  <bruno@clisp.org>
42234         posix_openpt: Support for OpenBSD.
42235         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
42236         (posix_openpt) [OpenBSD]: New code.
42237         * lib/grantpt.c: Include <fcntl.h>.
42238         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
42239         * modules/grantpt (Depends-on): Add fcntl-h.
42241 2011-10-20  Bruno Haible  <bruno@clisp.org>
42243         posix_openpt test: Coding style.
42244         * tests/test-posix_openpt.c: Use GNU coding style.
42246 2011-10-20  Bruno Haible  <bruno@clisp.org>
42248         grantpt: Support --avoid=pt_chown.
42249         * modules/grantpt (Files): Add lib/pty-private.h.
42251 2011-10-20  Bruno Haible  <bruno@clisp.org>
42253         posix_openpt: Fix autoconf macro.
42254         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
42255         unneeded check for _getpty.
42257 2011-10-20  Bruno Haible  <bruno@clisp.org>
42259         openpty: Update comments.
42260         * lib/openpty.c: Add comments about Minix.
42262 2011-10-19  Eric Blake  <eblake@redhat.com>
42264         openpty: relax license
42265         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
42267         pt_chown: use configmake to simplify build
42268         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
42270         ptsname and others: relax license
42271         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
42272         * modules/unlockpt (License): Likewise.
42273         * modules/pt_chown (License): Likewise.
42274         * modules/ptsname (License): Likewise.
42275         * modules/ttyname_r (License): Likewise.
42277 2011-10-19  Jim Meyering  <meyering@redhat.com>
42279         posix_openpt: remove spurious #endif
42280         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
42282 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
42284         maint.mk: Respect $(build_aux) in web-manual rule.
42285         * top/maint.mk (web-manual): Find gen-announce script in user's
42286         $(build_aux) directory instead of hard-coding 'build-aux'.
42288 2011-10-19  Bruno Haible  <bruno@clisp.org>
42290         posix_openpt: Fix compilation error.
42291         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
42292         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
42293         Mention the openpty module as an alternative.
42295 2011-10-19  Bruno Haible  <bruno@clisp.org>
42297         Support for old NeXTstep 3.3 frexp().
42298         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
42299         execution time of the test to 5 seconds.
42300         Reported by Daniel Richard G. <skunk@iskunk.org>.
42302 2011-10-19  Bruno Haible  <bruno@clisp.org>
42304         Support for old NeXTstep 3.3 sed.
42305         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
42306         part, use /.../, not \|...|. Escape periods in the header file name.
42307         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
42308         Reported by Daniel Richard G. <skunk@iskunk.org>.
42310 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
42312         Support for old NeXTstep 3.3 gcc.
42313         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
42314         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
42315         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
42316         * lib/spawn.in.h (_Restrict_arr_): Likewise.
42317         * lib/regex.h (_Restrict_arr_): Likewise.
42318         * lib/regex_internal.h (re_token_t): Likewise.
42319         * lib/regexec.c (check_node_accept_bytes): Likewise.
42320         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
42322 2011-10-18  Eric Blake  <eblake@redhat.com>
42324         posix_openpt: new module
42325         * modules/posix_openpt: New module.
42326         * m4/posix_openpt.m4: New file.
42327         * lib/posix_openpt.c: Likewise.
42328         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
42329         (gl_STDLIB_H_DEFAULTS): Set defaults.
42330         * modules/stdlib (Makefile.am): Substitute macros.
42331         * lib/stdlib.in.h (posix_openpt): Declare.
42332         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
42333         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
42334         * modules/posix_openpt-tests: New test module.
42335         * tests/test-posix_openpt.c: New test.
42337 2011-10-15  Bruno Haible  <bruno@clisp.org>
42339         xstrtoll: Fix compilation failure.
42340         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
42341         from lib/strtol.c.
42342         * doc/posix-headers/limits.texi: Mention missing numerical limits on
42343         some platforms.
42344         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
42346 2011-10-15  Bruno Haible  <bruno@clisp.org>
42348         vasnprintf: Optimize bit search operation.
42349         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
42350         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
42351         gl_DOUBLE_EXPONENT_LOCATION.
42352         * modules/vasnprintf (Files): Add m4/exponentd.m4.
42353         * modules/unistdio/u8-vasnprintf (Files): Likewise.
42354         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
42355         * modules/unistdio/u16-vasnprintf (Files): Likewise.
42356         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
42357         * modules/unistdio/u32-vasnprintf (Files): Likewise.
42358         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
42359         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
42360         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
42362 2011-10-15  Bruno Haible  <bruno@clisp.org>
42364         vasnprintf: Fix comments.
42365         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
42367 2011-10-14  Bruno Haible  <bruno@clisp.org>
42369         Tests for module 'integer_length_ll'.
42370         * modules/integer_length_ll-tests: New file.
42371         * tests/test-integer_length_ll.c: New file.
42373         New module 'integer_length_ll'.
42374         * lib/integer_length_ll.c: New file.
42375         * modules/integer_length_ll: New file.
42377 2011-10-14  Bruno Haible  <bruno@clisp.org>
42379         Tests for module 'integer_length_l'.
42380         * modules/integer_length_l-tests: New file.
42381         * tests/test-integer_length_l.c: New file.
42383         New module 'integer_length_l'.
42384         * lib/integer_length_l.c: New file.
42385         * modules/integer_length_l: New file.
42387 2011-10-14  Bruno Haible  <bruno@clisp.org>
42389         Tests for module 'integer_length'.
42390         * modules/integer_length-tests: New file.
42391         * tests/test-integer_length.c: New file.
42393         New module 'integer_length'.
42394         * lib/integer_length.h: New file.
42395         * lib/integer_length.c: New file.
42396         * modules/integer_length: New file.
42398 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
42400         popen: Fix dependency conditions.
42401         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
42403 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
42405         perror: Fix autoconf test.
42406         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
42407         <stdlib.h> and <string.h>.
42409 2011-10-14  Bruno Haible  <bruno@clisp.org>
42411         ffsl: Optimize on 64-bit platforms.
42412         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
42413         unrolling.
42415 2011-10-13  Bruno Haible  <bruno@clisp.org>
42417         ffsl: Optimize on 32-bit platforms.
42418         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
42419         use ffs() without a loop.
42421         ffsl, ffsll: Optimize for GCC.
42422         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
42423         * lib/ffsl.c (GCC_BUILTIN): New macro.
42424         * lib/ffsll.c (GCC_BUILTIN): Likewise.
42426 2011-10-13  Bruno Haible  <bruno@clisp.org>
42428         ffs, bcopy, memset: Support symbol renaming via config.h.
42429         * lib/ffs.c: Include <config.h>.
42430         * lib/bcopy.c: Likewise.
42431         * lib/memset.c: Likewise.
42433 2011-10-10  Bruno Haible  <bruno@clisp.org>
42435         atanl: Simplify for platforms where 'long double' == 'double'.
42436         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
42437         alternative implementation.
42438         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
42439         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
42440         * modules/atanl (Depends-on): Add atan. Update conditions.
42442 2011-10-10  Bruno Haible  <bruno@clisp.org>
42444         acosl: Simplify for platforms where 'long double' == 'double'.
42445         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
42446         alternative implementation.
42447         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
42448         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
42449         * modules/acosl (Depends-on): Add acos. Update conditions.
42451 2011-10-10  Bruno Haible  <bruno@clisp.org>
42453         asinl: Simplify for platforms where 'long double' == 'double'.
42454         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
42455         alternative implementation.
42456         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
42457         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
42458         * modules/asinl (Depends-on): Add asin. Update conditions.
42460 2011-10-10  Bruno Haible  <bruno@clisp.org>
42462         tanl: Simplify for platforms where 'long double' == 'double'.
42463         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
42464         implementation.
42465         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
42466         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
42467         * modules/tanl (Depends-on): Add tan. Update conditions.
42468         (configure.ac): Don't compile trigl.c if
42469         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
42471 2011-10-10  Bruno Haible  <bruno@clisp.org>
42473         cosl: Simplify for platforms where 'long double' == 'double'.
42474         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
42475         implementation.
42476         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
42477         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
42478         * modules/cosl (Depends-on): Add cos. Update conditions.
42479         (configure.ac): Don't compile sincosl.c and trigl.c if
42480         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
42482 2011-10-10  Bruno Haible  <bruno@clisp.org>
42484         sinl: Simplify for platforms where 'long double' == 'double'.
42485         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
42486         implementation.
42487         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
42488         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
42489         * modules/sinl (Depends-on): Add sin. Update conditions.
42490         (configure.ac): Don't compile sincosl.c and trigl.c if
42491         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
42493 2011-10-10  Bruno Haible  <bruno@clisp.org>
42495         logl: Simplify for platforms where 'long double' == 'double'.
42496         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
42497         implementation.
42498         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
42499         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
42500         * modules/logl (Depends-on): Add log. Update conditions.
42502 2011-10-10  Bruno Haible  <bruno@clisp.org>
42504         expl: Simplify for platforms where 'long double' == 'double'.
42505         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
42506         implementation.
42507         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
42508         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
42509         * modules/expl (Depends-on): Add exp. Update conditions.
42511 2011-10-10  Bruno Haible  <bruno@clisp.org>
42513         sqrtl: Simplify for platforms where 'long double' == 'double'.
42514         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
42515         alternative implementation.
42516         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
42517         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
42518         * modules/sqrtl (Depends-on): Update conditions.
42520 2011-10-10  Bruno Haible  <bruno@clisp.org>
42522         ldexpl: Simplify for platforms where 'long double' == 'double'.
42523         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
42524         alternative implementation.
42525         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
42526         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
42527         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
42529 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
42531         ffsll: set correct witness
42532         * modules/ffsll (configure.ac): Fix typo.
42534 2011-10-10  Bruno Haible  <bruno@clisp.org>
42536         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
42537         * lib/printf-frexpl.c: Include <config.h>.
42538         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
42539         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
42540         second time.
42541         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
42542         gl_LONG_DOUBLE_VS_DOUBLE.
42543         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
42544         conditions.
42546 2011-10-10  Bruno Haible  <bruno@clisp.org>
42548         frexpl: Simplify for platforms where 'long double' == 'double'.
42549         * lib/frexpl.c: Include <config.h>.
42550         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
42551         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
42552         time.
42553         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
42554         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
42555         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
42556         * modules/frexpl (Depends-on): Add frexp. Update conditions.
42557         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
42558         conditions.
42560 2011-10-10  Jim Meyering  <meyering@redhat.com>
42562         test-renameat: don't leave behind a temporary file
42563         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
42564           ERROR: files left in build directory after distclean:
42565           ./gltests/test-renameat.too
42566           make[1]: *** [distcleancheck] Error 1
42567         Reported by Tom G. Christensen.
42569 2011-10-09  Bruno Haible  <bruno@clisp.org>
42571         rint: Determine RINT_LIBM correctly on AIX 7.
42572         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
42573         directly, not only through a function pointer. Also accept an optional
42574         4th argument with extra code.
42575         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
42576         rintf() call by gcc when optimizing.
42578         mathfunc.m4: Refactor.
42579         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
42580         m4 variable.
42582 2011-10-09  Bruno Haible  <bruno@clisp.org>
42584         rintl: Simplify for platforms where 'long double' == 'double'.
42585         * lib/rintl.c: Include <config.h>.
42586         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
42587         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
42588         time.
42589         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
42590         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
42591         * modules/rintl (Depends-on): Add rint. Update conditions.
42593 2011-10-09  Bruno Haible  <bruno@clisp.org>
42595         roundl: Simplify for platforms where 'long double' == 'double'.
42596         * lib/roundl.c: Include <config.h>.
42597         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
42598         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
42599         time.
42600         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
42601         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
42602         * modules/roundl (Depends-on): Add round. Update conditions.
42604 2011-10-09  Bruno Haible  <bruno@clisp.org>
42606         truncl: Simplify for platforms where 'long double' == 'double'.
42607         * lib/truncl.c: Include <config.h>.
42608         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
42609         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
42610         time.
42611         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
42612         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
42613         * modules/truncl (Depends-on): Add trunc. Update conditions.
42615 2011-10-09  Bruno Haible  <bruno@clisp.org>
42617         ceill: Simplify for platforms where 'long double' == 'double'.
42618         * lib/ceill.c: Include <config.h>.
42619         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
42620         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
42621         time.
42622         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
42623         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
42624         * modules/ceill (Depends-on): Add ceil. Update conditions.
42626 2011-10-09  Bruno Haible  <bruno@clisp.org>
42628         floorl: Simplify for platforms where 'long double' == 'double'.
42629         * lib/floorl.c: Include <config.h>.
42630         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
42631         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
42632         time.
42633         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
42634         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
42635         * modules/floorl (Depends-on): Add floor. Update conditions.
42637 2011-10-09  Bruno Haible  <bruno@clisp.org>
42639         rint: Fix ordering constraints.
42640         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
42641         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
42642         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
42644 2011-10-09  Bruno Haible  <bruno@clisp.org>
42646         copysignl: Simplify for platforms where 'long double' == 'double'.
42647         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
42648         alternative.
42649         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
42650         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
42651         * modules/copysignl (Depends-on): Add copysign. Update conditions.
42653 2011-10-09  Bruno Haible  <bruno@clisp.org>
42655         Tests for module 'rintl'.
42656         * modules/rintl-tests: New file.
42657         * tests/test-rintl.c: New file.
42659         New module 'rintl'.
42660         * lib/math.in.h (rintl): New declaration.
42661         * lib/rintl.c: New file.
42662         * m4/rintl.m4: New file.
42663         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
42664         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
42665         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
42666         * modules/rintl: New file.
42667         * tests/test-math-c++.cc: Check the declaration of rintl.
42668         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
42669         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
42670         * doc/posix-functions/rintl.texi: Mention the new module.
42672 2011-10-09  Bruno Haible  <bruno@clisp.org>
42674         Tests for module 'rintf'.
42675         * modules/rintf-tests: New file.
42676         * tests/test-rintf.c: New file.
42678         New module 'rintf'.
42679         * lib/math.in.h (rintf): New declaration.
42680         * lib/rintf.c: New file.
42681         * m4/rintf.m4: New file.
42682         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
42683         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
42684         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
42685         * modules/rintf: New file.
42686         * tests/test-math-c++.cc: Check the declaration of rintf.
42687         * doc/posix-functions/rintf.texi: Mention the new module.
42689 2011-10-09  Bruno Haible  <bruno@clisp.org>
42691         rint: Support for MSVC.
42692         * lib/math.in.h (rint): New declaration.
42693         * lib/rint.c: New file.
42694         * m4/rint.m4: New file.
42695         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
42696         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
42697         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
42698         * modules/rint (Description): Fix.
42699         (Files): Add lib/rint.c, m4/rint.m4.
42700         (Depends-on): Add math.
42701         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
42702         gl_MATH_MODULE_INDICATOR.
42703         * tests/test-math-c++.cc: Check the declaration of rint.
42704         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
42705         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
42706         * doc/posix-functions/rint.texi: Mention the replacement provided by
42707         the module.
42709         rint tests: More tests.
42710         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
42711         minus-zero.h, infinity.h, nan.h.
42712         (main): Skip the test if the current rounding mode is not standard. Add
42713         tests for negative numbers, minus zero, infinity, NaN.
42714         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
42715         tests/nan.h.
42716         (Depends-on): Add isnand-nolibm.
42718 2011-10-09  Bruno Haible  <bruno@clisp.org>
42720         Tests for module 'copysignl'.
42721         * modules/copysignl-tests: New file.
42722         * tests/test-copysignl.c: New file.
42724         New module 'copysignl'.
42725         * lib/math.in.h (copysignl): New declaration.
42726         * lib/copysignl.c: New file.
42727         * m4/copysignl.m4: New file.
42728         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
42729         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
42730         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
42731         HAVE_COPYSIGNL.
42732         * modules/copysignl: New file.
42733         * tests/test-math-c++.cc: Check the declaration of copysignl.
42734         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
42735         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
42736         * doc/posix-functions/copysignl.texi: Mention the new module.
42738 2011-10-09  Bruno Haible  <bruno@clisp.org>
42740         Tests for module 'copysignf'.
42741         * modules/copysignf-tests: New file.
42742         * tests/test-copysignf.c: New file.
42744         New module 'copysignf'.
42745         * lib/math.in.h (copysignf): New declaration.
42746         * lib/copysignf.c: New file.
42747         * m4/copysignf.m4: New file.
42748         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
42749         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
42750         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
42751         HAVE_COPYSIGNF.
42752         * modules/copysignf: New file.
42753         * tests/test-math-c++.cc: Check the declaration of copysignf.
42754         * doc/posix-functions/copysignf.texi: Mention the new module.
42756 2011-10-09  Bruno Haible  <bruno@clisp.org>
42758         Ensure that HAVE_* variables are set to 1 before they are set to 0.
42759         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
42760         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
42761         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
42762         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
42763         gl_SIGNAL_H_DEFAULTS.
42765 2011-10-09  Bruno Haible  <bruno@clisp.org>
42767         poll: Make macro safer.
42768         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
42769         ac_cv_header_poll_h is not set.
42771 2011-10-09  Bruno Haible  <bruno@clisp.org>
42773         copysign: Provide replacement.
42774         * lib/math.in.h (copysign): New declaration.
42775         * lib/copysign.c: New file.
42776         * m4/copysign.m4: New file.
42777         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
42778         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
42779         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
42780         HAVE_COPYSIGN.
42781         * modules/copysign (Description): Clarify.
42782         (Files): Add lib/copysign.c, m4/copysign.m4.
42783         (Depends-on): Add math, signbit.
42784         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
42785         gl_MATH_MODULE_INDICATOR.
42786         * tests/test-math-c++.cc: Check the declaration of copysign.
42787         * doc/posix-functions/copysign.texi: Mention the effects of the module
42788         on Minix and MSVC.
42790 2011-10-09  Bruno Haible  <bruno@clisp.org>
42792         isinf: Ensure macro on AIX 5.1.
42793         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
42794         macro.
42795         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
42797 2011-10-09  Bruno Haible  <bruno@clisp.org>
42799         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
42800         * modules/snprintf-posix-tests (configure.ac): Require
42801         gl_LONG_DOUBLE_VS_DOUBLE.
42802         * modules/sprintf-posix-tests (configure.ac): Likewise.
42803         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
42804         * modules/vasprintf-posix-tests (configure.ac): Likewise.
42805         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
42806         * modules/vsprintf-posix-tests (configure.ac): Likewise.
42807         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
42808         tests on platforms where 'long double' is the same as 'double'.
42809         * tests/test-sprintf-posix.h (test_function): Likewise.
42810         * tests/test-vasnprintf-posix.c (test_function): Likewise.
42811         * tests/test-vasprintf-posix.c (test_function): Likewise.
42813         *printf: Fix for platforms where 'long double' == 'double'.
42814         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
42815         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
42816         * modules/dprintf-posix (Files): Add m4/math_h.m4.
42817         * modules/fprintf-posix (Files): Likewise.
42818         * modules/obstack-printf-posix (Files): Likewise.
42819         * modules/snprintf-posix (Files): Likewise.
42820         * modules/sprintf-posix (Files): Likewise.
42821         * modules/vasnprintf (Files): Likewise.
42822         * modules/vasnprintf-posix (Files): Likewise.
42823         * modules/vasprintf-posix (Files): Likewise.
42824         * modules/vdprintf-posix (Files): Likewise.
42825         * modules/vfprintf-posix (Files): Likewise.
42826         * modules/vsnprintf-posix (Files): Likewise.
42827         * modules/vsprintf-posix (Files): Likewise.
42828         * modules/unistdio/u8-vasnprintf (Files): Likewise.
42829         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
42830         * modules/unistdio/u16-vasnprintf (Files): Likewise.
42831         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
42832         * modules/unistdio/u32-vasnprintf (Files): Likewise.
42833         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
42834         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
42836         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
42837         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
42838         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
42839         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
42840         'long double'.
42841         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
42843         isinf: Fix for platforms where 'long double' == 'double'.
42844         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
42845         Don't blindly assume 80-bit 'long double'.
42847         isfinite: Fix for platforms where 'long double' == 'double'.
42848         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
42849         Don't blindly assume 80-bit 'long double'.
42851         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
42852         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
42853         * modules/isfinite-tests (configure.ac): Require
42854         gl_LONG_DOUBLE_VS_DOUBLE.
42855         * modules/isinf-tests (configure.ac): Likewise.
42856         * modules/isnan-tests (configure.ac): Likewise.
42857         * modules/isnanl-tests (configure.ac): Likewise.
42858         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
42859         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
42860         tests on platforms where 'long double' is the same as 'double'.
42861         * tests/test-isinf.c (test_isinfl): Likewise.
42862         * tests/test-isnan.c (test_long_double): Likewise.
42863         * tests/test-isnanl.h (main): Likewise.
42865 2011-10-08  Bruno Haible  <bruno@clisp.org>
42867         Tests for module 'tanhf'.
42868         * modules/tanhf-tests: New file.
42869         * tests/test-tanhf.c: New file.
42871         New module 'tanhf'.
42872         * lib/math.in.h (tanhf): New declaration.
42873         * lib/tanhf.c: New file.
42874         * m4/tanhf.m4: New file.
42875         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
42876         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
42877         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
42878         * modules/tanhf: New file.
42879         * tests/test-math-c++.cc: Check the declaration of tanhf.
42880         * doc/posix-functions/tanhf.texi: Mention the new module.
42882         tanh: Use a .m4 file.
42883         * m4/tanh.m4: New file.
42884         * modules/tanh (Files): Add it.
42885         (configure.ac): Just invoke gl_FUNC_TANH.
42887 2011-10-08  Bruno Haible  <bruno@clisp.org>
42889         Tests for module 'coshf'.
42890         * modules/coshf-tests: New file.
42891         * tests/test-coshf.c: New file.
42893         New module 'coshf'.
42894         * lib/math.in.h (coshf): New declaration.
42895         * lib/coshf.c: New file.
42896         * m4/coshf.m4: New file.
42897         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
42898         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
42899         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
42900         * modules/coshf: New file.
42901         * tests/test-math-c++.cc: Check the declaration of coshf.
42902         * doc/posix-functions/coshf.texi: Mention the new module.
42904         cosh: Use a .m4 file.
42905         * m4/cosh.m4: New file.
42906         * modules/cosh (Files): Add it.
42907         (configure.ac): Just invoke gl_FUNC_COSH.
42909 2011-10-08  Bruno Haible  <bruno@clisp.org>
42911         Tests for module 'sinhf'.
42912         * modules/sinhf-tests: New file.
42913         * tests/test-sinhf.c: New file.
42915         New module 'sinhf'.
42916         * lib/math.in.h (sinhf): New declaration.
42917         * lib/sinhf.c: New file.
42918         * m4/sinhf.m4: New file.
42919         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
42920         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
42921         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
42922         * modules/sinhf: New file.
42923         * tests/test-math-c++.cc: Check the declaration of sinhf.
42924         * doc/posix-functions/sinhf.texi: Mention the new module.
42926         sinh: Use a .m4 file.
42927         * m4/sinh.m4: New file.
42928         * modules/sinh (Files): Add it.
42929         (configure.ac): Just invoke gl_FUNC_SINH.
42931 2011-10-08  Bruno Haible  <bruno@clisp.org>
42933         Tests for module 'atan2f'.
42934         * modules/atan2f-tests: New file.
42935         * tests/test-atan2f.c: New file.
42937         New module 'atan2f'.
42938         * lib/math.in.h (atan2f): New declaration.
42939         * lib/atan2f.c: New file.
42940         * m4/atan2f.m4: New file.
42941         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
42942         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
42943         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
42944         * modules/atan2f: New file.
42945         * tests/test-math-c++.cc: Check the declaration of atan2f.
42946         * doc/posix-functions/atan2f.texi: Mention the new module.
42948         atan2: Use a .m4 file.
42949         * m4/atan2.m4: New file.
42950         * modules/atan2 (Files): Add it.
42951         (configure.ac): Just invoke gl_FUNC_ATAN2.
42953 2011-10-08  Bruno Haible  <bruno@clisp.org>
42955         Tests for module 'atanf'.
42956         * modules/atanf-tests: New file.
42957         * tests/test-atanf.c: New file.
42959         New module 'atanf'.
42960         * lib/math.in.h (atanf): New declaration.
42961         * lib/atanf.c: New file.
42962         * m4/atanf.m4: New file.
42963         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
42964         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
42965         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
42966         * modules/atanf: New file.
42967         * tests/test-math-c++.cc: Check the declaration of atanf.
42968         * doc/posix-functions/atanf.texi: Mention the new module.
42970         atan: Use a .m4 file.
42971         * m4/atan.m4: New file.
42972         * modules/atan (Files): Add it.
42973         (configure.ac): Just invoke gl_FUNC_ATAN.
42975 2011-10-08  Bruno Haible  <bruno@clisp.org>
42977         Tests for module 'acosf'.
42978         * modules/acosf-tests: New file.
42979         * tests/test-acosf.c: New file.
42981         New module 'acosf'.
42982         * lib/math.in.h (acosf): New declaration.
42983         * lib/acosf.c: New file.
42984         * m4/acosf.m4: New file.
42985         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
42986         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
42987         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
42988         * modules/acosf: New file.
42989         * tests/test-math-c++.cc: Check the declaration of acosf.
42990         * doc/posix-functions/acosf.texi: Mention the new module.
42992         acos: Use a .m4 file.
42993         * m4/acos.m4: New file.
42994         * modules/acos (Files): Add it.
42995         (configure.ac): Just invoke gl_FUNC_ACOS.
42997 2011-10-08  Bruno Haible  <bruno@clisp.org>
42999         Tests for module 'asinf'.
43000         * modules/asinf-tests: New file.
43001         * tests/test-asinf.c: New file.
43003         New module 'asinf'.
43004         * lib/math.in.h (asinf): New declaration.
43005         * lib/asinf.c: New file.
43006         * m4/asinf.m4: New file.
43007         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
43008         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
43009         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
43010         * modules/asinf: New file.
43011         * tests/test-math-c++.cc: Check the declaration of asinf.
43012         * doc/posix-functions/asinf.texi: Mention the new module.
43014         asin: Use a .m4 file.
43015         * m4/asin.m4: New file.
43016         * modules/asin (Files): Add it.
43017         (configure.ac): Just invoke gl_FUNC_ASIN.
43019 2011-10-08  Bruno Haible  <bruno@clisp.org>
43021         Tests for module 'tanf'.
43022         * modules/tanf-tests: New file.
43023         * tests/test-tanf.c: New file.
43025         New module 'tanf'.
43026         * lib/math.in.h (tanf): New declaration.
43027         * lib/tanf.c: New file.
43028         * m4/tanf.m4: New file.
43029         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
43030         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
43031         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
43032         * modules/tanf: New file.
43033         * tests/test-math-c++.cc: Check the declaration of tanf.
43034         * doc/posix-functions/tanf.texi: Mention the new module.
43036         tan: Use a .m4 file.
43037         * m4/tan.m4: New file.
43038         * modules/tan (Files): Add it.
43039         (configure.ac): Just invoke gl_FUNC_TAN.
43041 2011-10-08  Bruno Haible  <bruno@clisp.org>
43043         Tests for module 'cosf'.
43044         * modules/cosf-tests: New file.
43045         * tests/test-cosf.c: New file.
43047         New module 'cosf'.
43048         * lib/math.in.h (cosf): New declaration.
43049         * lib/cosf.c: New file.
43050         * m4/cosf.m4: New file.
43051         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
43052         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
43053         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
43054         * modules/cosf: New file.
43055         * tests/test-math-c++.cc: Check the declaration of cosf.
43056         * doc/posix-functions/cosf.texi: Mention the new module.
43058         cos: Use a .m4 file.
43059         * m4/cos.m4: New file.
43060         * modules/cos (Files): Add it.
43061         (configure.ac): Just invoke gl_FUNC_COS.
43063 2011-10-08  Bruno Haible  <bruno@clisp.org>
43065         Tests for module 'sinf'.
43066         * modules/sinf-tests: New file.
43067         * tests/test-sinf.c: New file.
43069         New module 'sinf'.
43070         * lib/math.in.h (sinf): New declaration.
43071         * lib/sinf.c: New file.
43072         * m4/sinf.m4: New file.
43073         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
43074         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
43075         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
43076         * modules/sinf: New file.
43077         * tests/test-math-c++.cc: Check the declaration of sinf.
43078         * doc/posix-functions/sinf.texi: Mention the new module.
43080         sin: Use a .m4 file.
43081         * m4/sin.m4: New file.
43082         * modules/sin (Files): Add it.
43083         (configure.ac): Just invoke gl_FUNC_SIN.
43085 2011-10-08  Bruno Haible  <bruno@clisp.org>
43087         Tests for module 'powf'.
43088         * modules/powf-tests: New file.
43089         * tests/test-powf.c: New file.
43091         New module 'powf'.
43092         * lib/math.in.h (powf): New declaration.
43093         * lib/powf.c: New file.
43094         * m4/powf.m4: New file.
43095         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
43096         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
43097         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
43098         * modules/powf: New file.
43099         * tests/test-math-c++.cc: Check the declaration of powf.
43100         * doc/posix-functions/powf.texi: Mention the new module.
43102         pow: Use a .m4 file.
43103         * m4/pow.m4: New file.
43104         * modules/pow (Files): Add it.
43105         (configure.ac): Just invoke gl_FUNC_POW.
43107 2011-10-08  Bruno Haible  <bruno@clisp.org>
43109         Tests for module 'log10f'.
43110         * modules/log10f-tests: New file.
43111         * tests/test-log10f.c: New file.
43113         New module 'log10f'.
43114         * lib/math.in.h (log10f): New declaration.
43115         * lib/log10f.c: New file.
43116         * m4/log10f.m4: New file.
43117         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
43118         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
43119         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
43120         * modules/log10f: New file.
43121         * tests/test-math-c++.cc: Check the declaration of log10f.
43122         * doc/posix-functions/log10f.texi: Mention the new module.
43124         log10: Use a .m4 file.
43125         * m4/log10.m4: New file.
43126         * modules/log10 (Files): Add it.
43127         (configure.ac): Just invoke gl_FUNC_LOG10.
43129 2011-10-08  Bruno Haible  <bruno@clisp.org>
43131         Tests for module 'logf'.
43132         * modules/logf-tests: New file.
43133         * tests/test-logf.c: New file.
43135         New module 'logf'.
43136         * lib/math.in.h (logf): New declaration.
43137         * lib/logf.c: New file.
43138         * m4/logf.m4: New file.
43139         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
43140         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
43141         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
43142         * modules/logf: New file.
43143         * tests/test-math-c++.cc: Check the declaration of logf.
43144         * doc/posix-functions/logf.texi: Mention the new module.
43146         log: Use a .m4 file.
43147         * m4/log.m4: New file.
43148         * modules/log (Files): Add it.
43149         (configure.ac): Just invoke gl_FUNC_LOG.
43151 2011-10-08  Bruno Haible  <bruno@clisp.org>
43153         Tests for module 'expf'.
43154         * modules/expf-tests: New file.
43155         * tests/test-expf.c: New file.
43157         New module 'expf'.
43158         * lib/math.in.h (expf): New declaration.
43159         * lib/expf.c: New file.
43160         * m4/expf.m4: New file.
43161         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
43162         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
43163         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
43164         * modules/expf: New file.
43165         * tests/test-math-c++.cc: Check the declaration of expf.
43166         * doc/posix-functions/expf.texi: Mention the new module.
43168         exp: Use a .m4 file.
43169         * m4/exp.m4: New file.
43170         * modules/exp (Files): Add it.
43171         (configure.ac): Just invoke gl_FUNC_EXP.
43173 2011-10-08  Bruno Haible  <bruno@clisp.org>
43175         Tests for module 'sqrtf'.
43176         * modules/sqrtf-tests: New file.
43177         * tests/test-sqrtf.c: New file.
43179         New module 'sqrtf'.
43180         * lib/math.in.h (sqrtf): New declaration.
43181         * lib/sqrtf.c: New file.
43182         * m4/sqrtf.m4: New file.
43183         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
43184         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
43185         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
43186         * modules/sqrtf: New file.
43187         * tests/test-math-c++.cc: Check the declaration of sqrtf.
43188         * doc/posix-functions/sqrtf.texi: Mention the new module.
43190 2011-10-08  Bruno Haible  <bruno@clisp.org>
43192         Tests: Avoid link failures w.r.t. libintl.
43193         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
43194         $(LIBINTL).
43195         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
43196         $(LIBINTL).
43197         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
43198         against $(LIBINTL).
43199         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
43200         $(LIBINTL).
43201         * modules/openat-tests (Makefile.am): Link test-fchmodat against
43202         $(LIBINTL).
43203         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
43205 2011-10-08  Bruno Haible  <bruno@clisp.org>
43207         pow tests: Defeat compiler optimizations.
43208         * tests/test-pow.c (main): Assign arguments to x and y before use.
43210 2011-10-08  Bruno Haible  <bruno@clisp.org>
43212         gnulib-tool: Improve last commit.
43213         * gnulib-tool (func_modules_transitive_closure): Simplify code.
43214         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
43215         ignore dependencies that are not among the modules list.
43217 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
43219         gnulib-tool: don't follow dependencies to avoided modules
43220         This fixes a bug that is related to the previous one.
43221         * gnulib-tool (func_modules_transitive_closure)
43222         (func_emit_autoconf_snippets):
43223         Check whether a dependency is acceptable before using it.
43224         (--extract-dependencies): Report an error if --avoid is also used,
43225         since this combination of options is not yet supported.
43227         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
43228         Problem reported by Peter Dyballa in
43229         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
43230         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
43231         when echoing "$condition".
43233 2011-10-07  Bruno Haible  <bruno@clisp.org>
43235         Fix documentation about math functions on MacOS X.
43236         * doc/posix-functions/exp2.texi: Don't say the function is missing on
43237         MacOS X 10.5.
43238         * doc/posix-functions/fdim.texi: Likewise.
43239         * doc/posix-functions/feclearexcept.texi: Likewise.
43240         * doc/posix-functions/fegetenv.texi: Likewise.
43241         * doc/posix-functions/fegetround.texi: Likewise.
43242         * doc/posix-functions/feholdexcept.texi: Likewise.
43243         * doc/posix-functions/feraiseexcept.texi: Likewise.
43244         * doc/posix-functions/fesetenv.texi: Likewise.
43245         * doc/posix-functions/fesetround.texi: Likewise.
43246         * doc/posix-functions/fetestexcept.texi: Likewise.
43247         * doc/posix-functions/feupdateenv.texi: Likewise.
43248         * doc/posix-functions/fmax.texi: Likewise.
43249         * doc/posix-functions/fmin.texi: Likewise.
43250         * doc/posix-functions/log2.texi: Likewise.
43251         * doc/posix-functions/modff.texi: Likewise.
43252         * doc/posix-functions/nan.texi: Likewise.
43253         * doc/posix-functions/nanf.texi: Likewise.
43254         * doc/posix-functions/nextafterf.texi: Likewise.
43255         * doc/posix-functions/remquo.texi: Likewise.
43257 2011-10-07  Bruno Haible  <bruno@clisp.org>
43259         modff: Drop assumption about library that defines modff.
43260         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
43261         AC_CHECK_FUNCS.
43262         * modules/modff (Files): Add m4/mathfunc.m4.
43264 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
43266         raise tests: Avoid a GCC warning.
43267         * tests/test-raise.c (handler): Use _Noreturn.
43269 2011-10-07  Bruno Haible  <bruno@clisp.org>
43271         Tests for module 'ldexpf'.
43272         * modules/ldexpf-tests: New file.
43273         * tests/test-ldexpf.c: New file.
43275         New module 'ldexpf'.
43276         * lib/math.in.h (ldexpf): New declaration.
43277         * lib/ldexpf.c: New file.
43278         * m4/ldexpf.m4: New file.
43279         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
43280         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
43281         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
43282         * modules/ldexpf: New file.
43283         * tests/test-math-c++.cc: Check the declaration of ldexpf.
43284         * doc/posix-functions/ldexpf.texi: Mention the new module.
43286 2011-10-06  Bruno Haible  <bruno@clisp.org>
43288         frexpf: Work around problems on IRIX and mingw.
43289         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
43290         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
43291         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
43292         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
43293         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
43294         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
43295         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
43297 2011-10-06  Bruno Haible  <bruno@clisp.org>
43299         fabsf: Drop assumption about library that defines fabsf.
43300         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
43301         AC_CHECK_FUNCS.
43302         * modules/fabsf (Files): Add m4/mathfunc.m4.
43304 2011-10-06  Bruno Haible  <bruno@clisp.org>
43306         frexpf: Drop assumption about library that defines frexpf.
43307         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
43308         'int *', 'float *', 'long double *', 'float', 'long double'.
43309         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
43310         AC_CHECK_FUNCS.
43311         * modules/frexpf (Files): Add m4/mathfunc.m4.
43313         Tests for module 'frexpf'.
43314         * modules/frexpf-tests: New file.
43315         * tests/test-frexpf.c: New file.
43317         New module 'frexpf'.
43318         * lib/math.in.h (frexpf): New declaration.
43319         * lib/frexpf.c: New file.
43320         * m4/frexpf.m4: New file.
43321         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
43322         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
43323         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
43324         * modules/frexpf: New file.
43325         * tests/test-math-c++.cc: Check the declaration of frexpf.
43326         * doc/posix-functions/frexpf.texi: Mention the new module.
43328 2011-10-06  Bruno Haible  <bruno@clisp.org>
43330         math: Sort function declarations of math.in.h.
43331         * lib/math.in.h (frexp, logb): Move declarations.
43333 2011-10-05  Bruno Haible  <bruno@clisp.org>
43335         Tests for module 'modff'.
43336         * modules/modff-tests: New file.
43337         * tests/test-modff.c: New file.
43339         New module 'modff'.
43340         * lib/math.in.h (modff): New declaration.
43341         * lib/modff.c: New file.
43342         * m4/modff.m4: New file.
43343         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
43344         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
43345         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
43346         * modules/modff: New file.
43347         * tests/test-math-c++.cc: Check the declaration of modff.
43348         * doc/posix-functions/modff.texi: Mention the new module.
43350         modf tests: Make test sharper.
43351         * tests/test-modf.c (main): Strengthen upper bound.
43353         modf: Use a .m4 file.
43354         * m4/modf.m4: New file.
43355         * modules/modf (Files): Add it.
43356         (configure.ac): Just invoke gl_FUNC_MODF.
43358 2011-10-05  Bruno Haible  <bruno@clisp.org>
43360         Tests for module 'fmodf'.
43361         * modules/fmodf-tests: New file.
43362         * tests/test-fmodf.c: New file.
43364         New module 'fmodf'.
43365         * lib/math.in.h (fmodf): New declaration.
43366         * lib/fmodf.c: New file.
43367         * m4/fmodf.m4: New file.
43368         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
43369         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
43370         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
43371         * modules/fmodf: New file.
43372         * tests/test-math-c++.cc: Check the declaration of fmodf.
43373         * doc/posix-functions/fmodf.texi: Mention the new module.
43375         fmod: Use a .m4 file.
43376         * m4/fmod.m4: New file.
43377         * modules/fmod (Files): Add it.
43378         (configure.ac): Just invoke gl_FUNC_FMOD.
43380 2011-10-05  Bruno Haible  <bruno@clisp.org>
43382         Tests for module 'fabsf'.
43383         * modules/fabsf-tests: New file.
43384         * tests/test-fabsf.c: New file.
43386         New module 'fabsf'.
43387         * lib/math.in.h (fabsf): New declaration.
43388         * lib/fabsf.c: New file.
43389         * m4/fabsf.m4: New file.
43390         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
43391         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
43392         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
43393         * modules/fabsf: New file.
43394         * tests/test-math-c++.cc: Check the declaration of fabsf.
43395         * doc/posix-functions/fabsf.texi: Mention the new module.
43397         fabs: Use a .m4 file.
43398         * m4/fabs.m4: New file.
43399         * modules/fabs (Files): Add it.
43400         (configure.ac): Just invoke gl_FUNC_FABS.
43402 2011-10-05  Jim Meyering  <meyering@redhat.com>
43404         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
43405         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
43406         ls -lL regression introduced in coreutils-8.12, it does so at the
43407         cost of an additional stat call in the common case.  Besides, now
43408         that the kernel change that prompted commit 95f7c57f has been reverted
43409         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
43410         we have no use for commit 95f7c57f, "file-has-acl: use
43411         acl_extended_file_nofollow if available".
43413 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
43415         file-has-acl: revert unintended change in behavior of ls -L
43416         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
43417         derived from...
43418         (file_has_acl): ...code here.  Call it.
43419         This problem was introduced with 2011-07-22 commit 95f7c57f,
43420         "file-has-acl: use acl_extended_file_nofollow if available".
43421         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
43423 2011-10-03  Bruno Haible  <bruno@clisp.org>
43425         poll: Avoid link errors on MSVC.
43426         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
43427         * modules/poll (Depends-on): Add sockets.
43428         (Link): New section.
43429         * NEWS: Mention the change.
43430         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
43431         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
43432         $(LIB_POLL) instead of $(LIBSOCKET).
43434 2011-10-03  Bruno Haible  <bruno@clisp.org>
43436         sys_select tests: Fix link error on MSVC 9.
43437         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
43438         with $(LIB_SELECT) instead of $(LIBSOCKET).
43440 2011-10-03  Bruno Haible  <bruno@clisp.org>
43442         sys_select: Fix compilation error on mingw.
43443         * lib/sys_select.in.h: On native Windows, include <io.h>.
43445 2011-10-03  Bruno Haible  <bruno@clisp.org>
43447         wmemset: Support for MSVC.
43448         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
43449         whether wmemset() exists.
43451 2011-10-03  Bruno Haible  <bruno@clisp.org>
43453         wmemmove: Support for MSVC.
43454         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
43455         whether wmemmove() exists.
43457 2011-10-03  Bruno Haible  <bruno@clisp.org>
43459         wmemcpy: Support for MSVC.
43460         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
43461         whether wmemcpy() exists.
43463 2011-10-03  Bruno Haible  <bruno@clisp.org>
43465         wmemcmp: Support for MSVC.
43466         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
43467         whether wmemcmp() exists.
43469 2011-10-03  Bruno Haible  <bruno@clisp.org>
43471         wmemchr: Support for MSVC.
43472         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
43473         whether wmemchr() exists.
43475 2011-10-03  Bruno Haible  <bruno@clisp.org>
43477         glthread/*, strsignal: Support for MSVC.
43478         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
43479         including <winsock.h> on MSVC 9.
43480         * lib/glthread/lock.h: Likewise.
43481         * lib/glthread/thread.h: Likewise.
43482         * lib/glthread/tls.h: Likewise.
43483         * lib/glthread/yield.h: Likewise.
43484         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
43485         if HAVE_UNISTD_H is false.
43486         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
43488 2011-10-03  Bruno Haible  <bruno@clisp.org>
43490         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
43491         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
43492         Set to 100000.
43494 2011-10-03  Bruno Haible  <bruno@clisp.org>
43496         acl: Fix specification.
43497         * lib/file-has-acl.c (file_has_acl): Fix specification.
43499 2011-10-03  Bruno Haible  <bruno@clisp.org>
43501         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
43502         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
43503         (compute_curr_prefix, shared_library_fullname,
43504         find_shared_library_fullname, get_shared_library_fullname, relocate):
43505         Use it together with PIC && INSTALLDIR.
43506         Reported by <jojelino@gmail.com>
43507         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
43509 2011-10-01  Jim Meyering  <meyering@redhat.com>
43511         maint.mk: adjust a release-related rule not to require use of gzip
43512         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
43513         Instead, check each file in $(DIST_ARCHIVES).  This is better for
43514         projects that build only .tar.xz files.  Also fix an erroneous test.
43516         test-linkat: don't leave behind a temporary file
43517         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
43518         Otherwise, coreutils' "make distcheck" would fail with this:
43519           Only in /c/cu/tests/torture/coreutils/test/\
43520             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
43521           make[2]: *** [my-distcheck] Error 1
43523         float, math: add omitted file
43524         * lib/itold.c: Add file, required for yesterday's float change.
43526 2011-10-01  Bruno Haible  <bruno@clisp.org>
43528         isinf: Fix for OpenBSD/x86.
43529         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
43530         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
43531         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
43533 2011-10-01  Bruno Haible  <bruno@clisp.org>
43535         isfinite: Fix syntax error in configure test.
43536         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
43538         isfinite: Fix typo.
43539         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
43540         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
43542 2011-10-01  Bruno Haible  <bruno@clisp.org>
43544         nonblocking tests: Fix test failure on Linux/IA-64.
43545         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
43546         Set to 270000.
43548 2011-10-01  Bruno Haible  <bruno@clisp.org>
43550         mkfifoat tests: Fix a test failure on mingw.
43551         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
43552         with error ENOSYS.
43554 2011-09-30  Bruno Haible  <bruno@clisp.org>
43556         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
43557         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
43558         'long double'. Set REPLACE_ITOLD.
43559         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
43560         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
43561         * lib/itold.c: New file.
43562         * modules/float (Files): Add lib/itold.c.
43563         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
43564         (Makefile.am): Substitute REPLACE_ITOLD.
43565         * modules/math (Depends-on): Add float.
43566         (Makefile.am): Substitute REPLACE_ITOLD.
43567         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
43568         * doc/posix-headers/math.texi: Likewise.
43569         * doc/posix-functions/logl.texi: Likewise.
43571 2011-09-30  Bruno Haible  <bruno@clisp.org>
43573         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
43574         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
43575         Set to 140000.
43577 2011-09-30  Bruno Haible  <bruno@clisp.org>
43579         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
43580         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
43581         invocation, say "right after AC_PROG_CC_STDC", not "right after
43582         AC_PROG_CC".
43583         Reported by Gary V. Vaughan <gary@gnu.org>.
43585 2011-09-30  Bruno Haible  <bruno@clisp.org>
43587         Centralize C99 requirement.
43588         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
43589         * modules/stdarg (configure.ac-early): Invoke it instead of
43590         AC_PROG_CC_STDC.
43591         Reported by Gary V. Vaughan and Paul Eggert.
43593 2011-09-29  Bruno Haible  <bruno@clisp.org>
43595         float: Fix LDBL_MAX value on Linux/PowerPC.
43596         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
43597         on Linux/PowerPC.
43598         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
43599         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
43600         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
43601         platform.
43602         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
43604 2011-09-29  Bruno Haible  <bruno@clisp.org>
43606         doc: Improve doc about gl_EARLY.
43607         * doc/gnulib-tool.texi (Initial import): Mention where to place an
43608         AC_PROG_CC_STDC invocation.
43609         Reported by Gary V. Vaughan <gary@gnu.org>.
43611 2011-09-28  Bruno Haible  <bruno@clisp.org>
43613         fgetc, fputc, fread, fwrite tests: Fix link error.
43614         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
43615         on non-MSVC platforms.
43616         * tests/test-fputc.c (main): Likewise.
43617         * tests/test-fread.c (main): Likewise.
43618         * tests/test-fwrite.c (main): Likewise.
43619         Reported by Jim Meyering.
43621 2011-09-27  Bruno Haible  <bruno@clisp.org>
43623         fputc, fwrite tests: Avoid test failure on MSVC.
43624         * tests/test-fgetc.c: Include msvc-inval.h.
43625         (main): Invoke gl_msvc_inval_ensure_handler.
43626         * tests/test-fputc.c: Include msvc-inval.h.
43627         (main): Invoke gl_msvc_inval_ensure_handler.
43628         * tests/test-fread.c: Include msvc-inval.h.
43629         (main): Invoke gl_msvc_inval_ensure_handler.
43630         * tests/test-fwrite.c: Include msvc-inval.h.
43631         (main): Invoke gl_msvc_inval_ensure_handler.
43632         * modules/fgetc-tests (Depends-on): Add msvc-inval.
43633         * modules/fputc-tests (Depends-on): Likewise.
43634         * modules/fread-tests (Depends-on): Likewise.
43635         * modules/fwrite-tests (Depends-on): Likewise.
43637 2011-09-27  Bruno Haible  <bruno@clisp.org>
43639         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
43640         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
43641         (raise): Remove older, duplicated declaration.
43642         (_gl_raise_SIGPIPE): New declaration.
43643         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
43644         (rpl_raise): Remove function.
43645         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
43646         a gnulib-defined SIGPIPE here.
43647         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
43648         'sigprocmask' has detected missing signal-blocking and the module
43649         'sigpipe' is enabled.
43650         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
43652 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
43654         base64-tests: avoid memory leak
43655         * tests/test-base64.c (main): Plug memory leak.
43657         base32: new module
43658         * modules/base32: New module.
43659         * lib/base32.c: New file.
43660         * lib/base32.h: Likewise.
43661         * m4/base32.m4: Likewise.
43662         * modules/base32-tests: New test.
43663         * tests/test-base32.c: Likewise.
43664         * MODULES.html.sh (Misc): Mention it.
43666 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
43668         gnulib: use more-standard license notice wording
43669         * gnulib-tool (func_emit_copyright_notice): When emitting a
43670         license notice into a file, use the standard wording as suggested
43671         by the current information for GNU maintainers, except say "file"
43672         rather than "program".  The new wording gives a license version
43673         number, which addresses an issue raised by Glenn Morris in
43674         <http://lists.gnu.org/r/bug-gnulib/2011-09/msg00397.html>.
43675         * m4/onceonly.m4: Use that same wording here, too.
43677         dup2: minor simplification
43678         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
43679         as lib/dup2.c no longer uses 'inline'.
43681 2011-09-25  Bruno Haible  <bruno@clisp.org>
43683         strings: Fix compilation error on MSVC.
43684         * lib/strings.in.h: Include <stddef.h> for size_t.
43686 2011-09-25  Bruno Haible  <bruno@clisp.org>
43688         fflush et al.: Document limitation on MSVC.
43689         * doc/posix-functions/fflush.texi: Document possible crash in handling
43690         mode other than DEFAULT_HANDLING.
43691         * doc/posix-functions/fgetc.texi: Likewise.
43692         * doc/posix-functions/fputc.texi: Likewise.
43693         * doc/posix-functions/fread.texi: Likewise.
43694         * doc/posix-functions/fwrite.texi: Likewise.
43696 2011-09-25  Bruno Haible  <bruno@clisp.org>
43698         msvc-inval: Allow three invalid parameter handling modes.
43699         * lib/msvc-inval.h: Don't include <stdlib.h> here.
43700         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
43701         macros.
43702         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
43703         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
43704         SANE_LIBRARY_HANDLING as a no-op.
43705         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
43706         <stdlib.h>.
43707         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
43709 2011-09-25  Bruno Haible  <bruno@clisp.org>
43711         msvc-inval: Make handler multithread-safe.
43712         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
43713         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
43714         declarations.
43715         (gl_msvc_inval_current): New declaration.
43716         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
43717         Operate on the structure returned by gl_msvc_inval_current().
43718         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
43719         Remove varaiables.
43720         (tls_index, tls_initialized): New variables.
43721         (not_per_thread): New variable.
43722         (gl_msvc_inval_current): New function.
43723         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
43724         returned by gl_msvc_inval_current().
43726 2011-09-25  Bruno Haible  <bruno@clisp.org>
43728         msvc-inval: Install handler globally.
43729         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
43730         !_MSC_VER.
43731         (gl_msvc_invalid_parameter_handler): Remove declaration.
43732         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
43733         declarations.
43734         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
43735         Install the handler globally, don't uninstall it.
43736         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
43737         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
43738         currently valid, call RaiseException instead.
43739         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
43740         for !_MSC_VER.
43742 2011-09-25  Bruno Haible  <bruno@clisp.org>
43744         strerror_r-posix: Fix for MSVC 9.
43745         * lib/strerror_r.c (local_snprintf): New function.
43746         (snprintf): Define to local_snprintf, not to _snprintf.
43748 2011-09-25  Bruno Haible  <bruno@clisp.org>
43750         ftruncate: Support for MSVC 9.
43751         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
43752         (chsize_nothrow): New function.
43753         (chsize): Redefine as a macro.
43754         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
43755         * modules/ftruncate (Depends-on): Add msvc-inval.
43757 2011-09-25  Bruno Haible  <bruno@clisp.org>
43759         New module 'fstat'.
43760         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
43761         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
43762         * lib/fchdir.c (rpl_fstat): Remove function.
43763         * m4/fstat.m4: New file.
43764         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
43765         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
43766         declared.
43767         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
43768         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
43769         * modules/fstat: New file.
43770         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
43771         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
43772         is set.
43773         * doc/posix-functions/fstat.texi: Mention the new module and the
43774         problem on MSVC.
43775         * NEWS: Mention the change.
43776         * modules/acl (Depends-on): Add fstat.
43777         * modules/chdir-safer (Depends-on): Likewise.
43778         * modules/chown (Depends-on): Likewise.
43779         * modules/copy-file (Depends-on): Likewise.
43780         * modules/fchdir (Depends-on): Likewise.
43781         * modules/fdopendir (Depends-on): Likewise.
43782         * modules/fopen (Depends-on): Likewise.
43783         * modules/fts (Depends-on): Likewise.
43784         * modules/getcwd (Depends-on): Likewise.
43785         * modules/isapipe (Depends-on): Likewise.
43786         * modules/linkat (Depends-on): Likewise.
43787         * modules/lseek (Depends-on): Likewise.
43788         * modules/mkdir-p (Depends-on): Likewise.
43789         * modules/open (Depends-on): Likewise.
43790         * modules/openat (Depends-on): Likewise.
43791         * modules/read-file (Depends-on): Likewise.
43792         * modules/renameat (Depends-on): Likewise.
43793         * modules/utimens (Depends-on): Likewise.
43795 2011-09-25  Bruno Haible  <bruno@clisp.org>
43797         linkat: Fix compilation on MSVC 9.
43798         * lib/linkat.c: Don't include <stdint.h>.
43800 2011-09-25  Bruno Haible  <bruno@clisp.org>
43802         fclose: Support for MSVC 9.
43803         * lib/fclose.c: Include msvc-inval.h.
43804         (fclose_nothrow): New function.
43805         (rpl_fclose): Use it.
43806         * modules/fclose (Depends-on): Add msvc-inval.
43807         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
43809 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
43811         dup2: minor simplifications
43812         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
43813         that it's a performance win.
43814         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
43815         ! defined __CYGWIN__)" to "ifdef F_GETFL".
43817 2011-09-24  Jim Meyering  <meyering@redhat.com>
43819         test-futimens: avoid a warning from gcc -Wshadow
43820         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
43821         to avoid a shadowing warning.
43823 2011-09-24  Bruno Haible  <bruno@clisp.org>
43825         fdopen: Support for MSVC 9.
43826         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
43827         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
43828         * lib/fdopen.c: Include msvc-inval.h.
43829         (fdopen_nothrow): New function.
43830         (rpl_fdopen): Use it.
43831         * modules/fdopen (Depends-on): Add msvc-inval.
43832         * modules/fclose-tests (Depends-on): Add fdopen.
43833         * modules/fflush-tests (Depends-on): Likewise.
43834         * modules/fgetc-tests (Depends-on): Likewise.
43835         * modules/fputc-tests (Depends-on): Likewise.
43836         * modules/fread-tests (Depends-on): Likewise.
43837         * modules/freopen-tests (Depends-on): Likewise.
43838         * modules/fseeko-tests (Depends-on): Likewise.
43839         * modules/ftello-tests (Depends-on): Likewise.
43840         * modules/fwrite-tests  (Depends-on): Likewise.
43841         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
43843 2011-09-24  Bruno Haible  <bruno@clisp.org>
43845         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
43846         * modules/fgetc-tests (Depends-on): Add unistd.
43847         * modules/fputc-tests (Depends-on): Likewise.
43848         * modules/fread-tests (Depends-on): Likewise.
43849         * modules/fwrite-tests (Depends-on): Likewise.
43851 2011-09-24  Bruno Haible  <bruno@clisp.org>
43853         dup: Simplify autoconf test.
43854         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
43855         on gl_MSVC_INVAL's result.
43857 2011-09-24  Bruno Haible  <bruno@clisp.org>
43859         Tests for function fwrite().
43860         * modules/fwrite-tests: New file.
43861         * tests/test-fwrite.c: New file.
43862         * modules/stdio-tests (Depends-on): Add fwrite-tests.
43864         Tests for function fread().
43865         * modules/fread-tests: New file.
43866         * tests/test-fread.c: New file.
43867         * modules/stdio-tests (Depends-on): Add fread-tests.
43869         Activate fputc tests.
43870         * modules/stdio-tests (Depends-on): Add fputc-tests.
43872         Enhance fgetc, fputc tests.
43873         * tests/test-fgetc.c (main): Also test the stream's error indicator.
43874         * tests/test-fputc.c (main): Likewise.
43876 2011-09-24  Bruno Haible  <bruno@clisp.org>
43878         write: Support for MSVC 9.
43879         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
43880         is not 1.
43881         * lib/write.c (write_nothrow): New function.
43882         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
43883         not 1. Use write_nothrow.
43884         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
43885         invalid parameter handler.
43886         (gl_PREREQ_WRITE): New macro.
43887         * modules/write (Depends-on): Add msvc-inval.
43888         (configure.ac): Invoke gl_PREREQ_WRITE.
43889         * doc/posix-functions/write.texi: Mention the problem on MSVC.
43891 2011-09-24  Bruno Haible  <bruno@clisp.org>
43893         read: Fix last commit.
43894         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
43896 2011-09-24  Bruno Haible  <bruno@clisp.org>
43898         dup2: Fix last commit.
43899         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
43900         (rpl_dup2): Disable fcntl workaround on native Windows.
43902         sigprocmask: Make code safer.
43903         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
43904         section that changes macro definitions for this compilation unit.
43906 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
43908         dup2: clarify by coalescing Windows-specific material
43909         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
43910         "msvc-nothrow.h"' to the Windows-specific section, so that the
43911         Emacs source need not contain these include files.
43912         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
43913         Windows-specific fixes into this function rather than just the
43914         nothrow fix, as this shortens and clarifies the code.  Always
43915         define as a function, as that's a bit cleaner than having it be
43916         sometimes a function and sometimes a macro.
43917         (rpl_dup2): Move the Windows-specific stuff out of here and into
43918         ms_windows_dup2.  Don't protect the Haiku-related fix with
43919         "#if !defined __linux__", as the same code also works around
43920         a Linux kernel bug, and it doesn't add any system calls on any
43921         platform.  Add comment about FreeBSD 6.1.
43923         sigprocmask: move #include directive
43924         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
43925         Windows-specific section, so that the Emacs source need not
43926         contain msvc-inval.h.
43928 2011-09-23  Bruno Haible  <bruno@clisp.org>
43930         read: Support for MSVC 9.
43931         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
43932         is not 1.
43933         * lib/read.c (read_nothrow): New function.
43934         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
43935         read_nothrow.
43936         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
43937         invalid parameter handler.
43938         (gl_PREREQ_READ): New macro.
43939         * modules/read (Depends-on): Add msvc-inval.
43940         (configure.ac): Invoke gl_PREREQ_READ.
43941         * doc/posix-functions/read.texi: Mention the problem on MSVC.
43943 2011-09-23  Bruno Haible  <bruno@clisp.org>
43945         close: Support for MSVC 9.
43946         * lib/close.c: Include <errno.h>, msvc-inval.h.
43947         (close_nothrow): New function.
43948         (rpl_close): Use it.
43949         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
43950         invalid parameter handler.
43951         * modules/close (Depends-on): Add msvc-inval.
43952         * modules/dup2-tests (Depends-on): Add close.
43953         * modules/dup3-tests (Depends-on): Likewise.
43954         * modules/fcntl-tests (Depends-on): Likewise.
43955         * modules/spawn-pipe-tests (Depends-on): Likewise.
43956         * modules/unistd-safer-tests (Depends-on): Likewise.
43957         * doc/posix-functions/close.texi: Mention the problem on MSVC.
43959 2011-09-23  Bruno Haible  <bruno@clisp.org>
43961         New module 'dup'.
43962         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
43963         Allow replacement.
43964         * lib/dup.c: New file.
43965         * lib/fchdir.c (rpl_dup): Remove function.
43966         * m4/dup.m4: New file.
43967         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
43968         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
43969         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
43970         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
43971         * modules/dup: New file.
43972         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
43973         'dup' module is in use.
43974         * modules/fdopendir (Depends-on): Add dup.
43975         * modules/fdutimensat-tests (Depends-on): Likewise.
43976         * modules/fts (Depends-on): Likewise.
43977         * modules/futimens-tests (Depends-on): Likewise.
43978         * modules/posix_spawnp-tests (Depends-on): Likewise.
43979         * modules/unistd-safer-tests (Depends-on): Likewise.
43980         * modules/utimens-tests (Depends-on): Likewise.
43981         * doc/posix-functions/dup.texi: Mention the new module and the problem
43982         on MSVC.
43984 2011-09-23  Bruno Haible  <bruno@clisp.org>
43986         getdtablesize: Support for MSVC 9.
43987         * lib/getdtablesize.c: Include msvc-inval.h.
43988         (_setmaxstdio_nothrow): New function.
43989         (_setmaxstdio): Redefine it.
43990         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
43991         * modules/getdtablesize (Depends-on): Add msvc-inval.
43992         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
43994 2011-09-23  Bruno Haible  <bruno@clisp.org>
43996         signal-h: Rename from signal.
43997         * modules/signal-h: Renamed from modules/signal.
43998         * modules/pthread_sigmask (Depends-on): Update.
43999         * modules/raise (Depends-on): Likewise.
44000         * modules/sigaction (Depends-on): Likewise.
44001         * modules/sigpipe (Depends-on): Likewise.
44002         * modules/sigprocmask (Depends-on): Likewise.
44003         * modules/sys_select (Depends-on): Likewise.
44004         * modules/signal-h-tests: Renamed from modules/signal-tests.
44005         (Files, Depends-on, Makefile.am): Update.
44006         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
44007         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
44008         (Files, Makefile.am): Update.
44009         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
44010         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
44011         * modules/signal: New placeholder file.
44012         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
44013         * doc/posix-headers/signal.texi: Update.
44014         * NEWS: Mention the change.
44016 2011-09-23  Bruno Haible  <bruno@clisp.org>
44018         sigprocmask: Avoid crashes through signal() on MSVC 9.
44019         * lib/sigprocmask.c: Include msvc-inval.h.
44020         (signal_nothrow): New function.
44021         (signal): Redefine it.
44022         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
44023         * modules/sigprocmask (Depends-on): Add msvc-inval.
44024         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
44026 2011-09-23  Bruno Haible  <bruno@clisp.org>
44028         Tests for module 'raise'.
44029         * modules/raise-tests: New file.
44030         * tests/test-raise.c: New file.
44032         raise: Support for MSVC.
44033         * lib/signal.in.h (raise): New declaration.
44034         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
44035         for native Windows platforms.
44036         * m4/raise.m4: New file.
44037         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
44038         HAVE_RAISE, REPLACE_RAISE.
44039         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
44040         REPLACE_RAISE.
44041         * modules/raise (Status, Notice): Remove fields.
44042         (Files): Add m4/raise.m4.
44043         (Depends-on): Add signal, msvc-inval.
44044         (configure.ac): Use the common idioms.
44045         (Maintainer): Add me.
44046         * tests/test-signal-c++.cc: Check the signature of raise.
44047         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
44049 2011-09-23  Bruno Haible  <bruno@clisp.org>
44051         pipe2: Fix compilation on pre-C99 compilers.
44052         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
44054 2011-09-23  Bruno Haible  <bruno@clisp.org>
44056         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
44057         * lib/msvc-nothrow.h: New file.
44058         * lib/msvc-nothrow.c: New file.
44059         * m4/msvc-nothrow.m4: New file.
44060         * modules/msvc-nothrow: New file.
44061         * lib/dup2.c: Include msvc-nothrow.h.
44062         (rpl_dup2): No need to protect _get_osfhandle call here.
44063         * lib/accept4.c: Include msvc-nothrow.h.
44064         * lib/error.c: Likewise.
44065         * lib/fcntl.c: Likewise.
44066         * lib/lseek.c: Likewise.
44067         * lib/nonblocking.c: Likewise.
44068         * lib/poll.c: Likewise.
44069         * lib/read.c: Likewise.
44070         * lib/select.c: Likewise.
44071         * lib/sockets.h: Likewise.
44072         * lib/sockets.c: Likewise.
44073         * lib/stdio-read.c: Likewise.
44074         * lib/stdio-write.c: Likewise.
44075         * lib/write.c: Likewise.
44076         * lib/w32sock.h: Likewise.
44077         * lib/w32spawn.h: Likewise.
44078         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
44079         * lib/fsync.c: Likewise.
44080         * lib/isapipe.c: Likewise.
44081         * modules/dup2 (Depends-on): Add msvc-nothrow.
44082         * modules/accept4 (Depends-on): Likewise.
44083         * modules/error (Depends-on): Likewise.
44084         * modules/fcntl (Depends-on): Likewise.
44085         * modules/lseek (Depends-on): Likewise.
44086         * modules/nonblocking (Depends-on): Likewise.
44087         * modules/poll (Depends-on): Likewise.
44088         * modules/read (Depends-on): Likewise.
44089         * modules/select (Depends-on): Likewise.
44090         * modules/sockets (Depends-on): Likewise.
44091         * modules/sigpipe (Depends-on): Likewise.
44092         * modules/write (Depends-on): Likewise.
44093         * modules/accept (Depends-on): Likewise.
44094         * modules/bind (Depends-on): Likewise.
44095         * modules/connect (Depends-on): Likewise.
44096         * modules/gethostname (Depends-on): Likewise.
44097         * modules/getpeername (Depends-on): Likewise.
44098         * modules/getsockname (Depends-on): Likewise.
44099         * modules/getsockopt (Depends-on): Likewise.
44100         * modules/ioctl (Depends-on): Likewise.
44101         * modules/listen (Depends-on): Likewise.
44102         * modules/recv (Depends-on): Likewise.
44103         * modules/recvfrom (Depends-on): Likewise.
44104         * modules/send (Depends-on): Likewise.
44105         * modules/sendto (Depends-on): Likewise.
44106         * modules/setsockopt (Depends-on): Likewise.
44107         * modules/shutdown (Depends-on): Likewise.
44108         * modules/socket (Depends-on): Likewise.
44109         * modules/execute (Depends-on): Likewise.
44110         * modules/spawn-pipe (Depends-on): Likewise.
44111         * modules/flock (Depends-on): Likewise.
44112         * modules/fsync (Depends-on): Likewise.
44113         * modules/isapipe (Depends-on): Likewise.
44114         * tests/test-cloexec.c: Include msvc-nothrow.h.
44115         * tests/test-dup-safer.c: Likewise.
44116         * tests/test-dup2.c: Likewise.
44117         * tests/test-dup3.c: Likewise.
44118         * tests/test-fcntl.c: Likewise.
44119         * tests/test-pipe.c: Likewise.
44120         * tests/test-pipe2.c: Likewise.
44121         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
44122         * modules/unistd-safer-tests (Depends-on): Likewise.
44123         * modules/dup2-tests (Depends-on): Likewise.
44124         * modules/dup3-tests (Depends-on): Likewise.
44125         * modules/fcntl-tests (Depends-on): Likewise.
44126         * modules/pipe-posix-tests (Depends-on): Likewise.
44127         * modules/pipe2-tests (Depends-on): Likewise.
44129 2011-09-23  Bruno Haible  <bruno@clisp.org>
44131         dup2: Make code more maintainable.
44132         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
44133         (rpl_dup2): Use it.
44134         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
44135         * modules/dup2 (configure.ac): Invoke it.
44136         Reported by Paul Eggert.
44138 2011-09-23  Bruno Haible  <bruno@clisp.org>
44140         msvc-inval: Fix compilation error.
44141         * lib/msvc-inval.h: Include <excpt.h>.
44143 2011-09-23  Bruno Haible  <bruno@clisp.org>
44145         mkdir: Tweak for MSVC 9.
44146         * lib/sys_stat.in.h: Update comments.
44147         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
44149         Tests for module 'chdir'.
44150         * modules/chdir-tests: New file.
44151         * tests/test-chdir.c: New file.
44153         New module 'chdir'.
44154         * modules/chdir: New file.
44155         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
44156         (chdir): New declaration.
44157         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
44158         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
44159         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
44160         * tests/test-unistd-c++.cc: Check signature of chdir.
44161         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
44162         * modules/chdir-long (Depends-on): Add chdir.
44163         * modules/fchdir (Depends-on): Likewise.
44164         * modules/rename (Depends-on): Likewise.
44165         * modules/savewd (Depends-on): Likewise.
44167         rmdir: Support for mingw, MSVC 9.
44168         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
44169         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
44171         getcwd: Tweak for MSVC 9.
44172         * lib/unistd.in.h: Update comments.
44173         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
44175 2011-09-22  Bruno Haible  <bruno@clisp.org>
44177         strerror_r-posix: Avoid a link error on MSVC.
44178         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
44179         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
44181 2011-09-22  Bruno Haible  <bruno@clisp.org>
44183         select: Avoid link errors on MSVC.
44184         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
44185         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
44186         * modules/pselect (Link): Likewise.
44187         * NEWS: Mention the change.
44188         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
44189         test-select-stdin against $(LIB_SELECT).
44190         * modules/pselect-tests (Makefile.am): Link test-pselect against
44191         $(LIB_SELECT).
44193 2011-09-22  Bruno Haible  <bruno@clisp.org>
44195         select: Avoid compilation error on MSVC.
44196         * lib/select.c: Don't include <stdbool.h>.
44198 2011-09-21  Bruno Haible  <bruno@clisp.org>
44200         Consolidate all uses of PATH_MAX in *.m4 files.
44201         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
44202         macros.
44203         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
44204         and gl_PATHMAX_SNIPPET.
44205         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
44206         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
44207         * modules/chdir-long (Files): Add m4/pathmax.m4.
44208         * modules/getcwd (Files): Likewise.
44210 2011-09-21  Bruno Haible  <bruno@clisp.org>
44212         ftruncate: Un-deprecate, concentrate on Win32 support.
44213         * modules/ftruncate (Status, Notice): Remove sections.
44214         (Depends-on): Add largefile.
44215         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
44216         non-mingw platforms.
44217         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
44218         include <io.h>.
44219         * modules/perror-tests (Depends-on): Add ftruncate.
44220         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
44221         'ftruncate' module.
44223 2011-09-21  Bruno Haible  <bruno@clisp.org>
44225         Add dependencies to new dirent related modules.
44226         * modules/opendir (Depends-on): Add closedir.
44227         * modules/getcwd (Depends-on): Add opendir, closedir.
44228         * modules/dirent-safer-tests (Depends-on): Likewise.
44229         * modules/fdopendir-tests (Depends-on): Likewise.
44230         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
44231         * modules/renameat-tests (Depends-on): Likewise.
44233 2011-09-21  Bruno Haible  <bruno@clisp.org>
44235         opendir: Avoid compilation error on mingw.
44236         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
44237         * modules/opendir (Depends-on): Add unistd.
44239 2011-09-21  Bruno Haible  <bruno@clisp.org>
44241         ftruncate tests: Avoid a test failure on mingw.
44242         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
44244 2011-09-21  Bruno Haible  <bruno@clisp.org>
44246         select tests: Avoid test failures on OSF/1 5.1 and mingw.
44247         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
44248         native Windows.
44250 2011-09-21  Bruno Haible  <bruno@clisp.org>
44252         New module 'fdopen'.
44253         * lib/stdio.in.h (fdopen): New declaration.
44254         * lib/fdopen.c: New file.
44255         * m4/fdopen.m4: New file.
44256         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
44257         REPLACE_FDOPEN.
44258         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
44259         REPLACE_FDOPEN.
44260         * modules/fdopen: New file.
44261         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
44262         * tests/test-stdio-c++.cc: Check signature of fdopen.
44263         * doc/posix-functions/fdopen.texi: Mention the new module.
44265 2011-09-21  Bruno Haible  <bruno@clisp.org>
44267         unlockpt tests: Avoid test failure on NetBSD 5.1.
44268         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
44269         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
44271 2011-09-21  Bruno Haible  <bruno@clisp.org>
44273         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
44274         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
44275         * tests/test-getlogin_r.c (main): Likewise.
44277 2011-09-20  Bruno Haible  <bruno@clisp.org>
44279         time tests: Don't require pid_t.
44280         * doc/posix-headers/time.texi: Revert last change.
44281         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
44282         * tests/test-time.c: Comment out the check for pid_t.
44284 2011-09-20  Bruno Haible  <bruno@clisp.org>
44286         fsync tests: Avoid a test failure on mingw.
44287         * tests/test-fsync.c (main): Allow a failure with EIO.
44289 2011-09-20  Bruno Haible  <bruno@clisp.org>
44291         euidaccess: Update comments.
44292         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
44294 2011-09-20  Bruno Haible  <bruno@clisp.org>
44296         Ensure EBADF returns for socket functions on mingw.
44297         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
44298         descriptor is invalid.
44299         * lib/bind.c (rpl_bind): Likewise.
44300         * lib/connect.c (rpl_connect): Likewise.
44301         * lib/getpeername.c (rpl_getpeername): Likewise.
44302         * lib/getsockname.c (rpl_getsockname): Likewise.
44303         * lib/getsockopt.c (rpl_getsockopt): Likewise.
44304         * lib/listen.c (rpl_listen): Likewise.
44305         * lib/recv.c (rpl_recv): Likewise.
44306         * lib/recvfrom.c (rpl_recvfrom): Likewise.
44307         * lib/send.c (rpl_send): Likewise.
44308         * lib/sendto.c (rpl_sendto): Likewise.
44309         * lib/setsockopt.c (rpl_setsockopt): Likewise.
44310         * lib/shutdown.c (rpl_shutdown): Likewise.
44312 2011-09-20  Bruno Haible  <bruno@clisp.org>
44314         select tests: EBADF tests.
44315         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
44316         test_bad_fd): New functions.
44317         (test_function): Invoke also test_bad_fd.
44319 2011-09-20  Bruno Haible  <bruno@clisp.org>
44321         Tests for module 'posix_spawn_file_actions_addopen.
44322         * modules/posix_spawn_file_actions_addopen-tests: New file.
44323         * tests/test-posix_spawn_file_actions_addopen.c: New file.
44325         Tests for module 'posix_spawn_file_actions_adddup2'.
44326         * modules/posix_spawn_file_actions_adddup2-tests: New file.
44327         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
44329         Tests for module 'posix_spawn_file_actions_addclose'.
44330         * modules/posix_spawn_file_actions_addclose-tests: New file.
44331         * tests/test-posix_spawn_file_actions_addclose.c: New file.
44333 2011-09-20  Bruno Haible  <bruno@clisp.org>
44335         Tests for module 'unlockpt'.
44336         * modules/unlockpt-tests: New file.
44337         * tests/test-unlockpt.c: New file.
44338         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
44340         Tests for module 'grantpt'.
44341         * modules/grantpt-tests: New file.
44342         * tests/test-grantpt.c: New file.
44343         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
44345 2011-09-20  Bruno Haible  <bruno@clisp.org>
44347         freopen tests: EBADF tests.
44348         * tests/test-freopen.c: Include errno.h, unistd.h.
44349         (main): Add tests for EBADF, commented out for the moment.
44351         fclose tests: EBADF tests.
44352         * tests/test-fclose.c (main): Add tests for EBADF.
44354         fflush tests: EBADF tests.
44355         * tests/test-fflush.c: Include errno.h, macros.h.
44356         (main): Add tests for EBADF.
44358         ftello tests: EBADF tests.
44359         * tests/test-ftello4.sh: New file.
44360         * tests/test-ftello4.c: New file.
44361         * modules/ftello-tests (Files): Add them.
44362         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
44364         fseeko tests: EBADF tests.
44365         * tests/test-fseeko4.sh: New file.
44366         * tests/test-fseeko4.c: New file.
44367         * modules/fseeko-tests (Files): Add them.
44368         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
44370         Tests for function fputc().
44371         * modules/fputc-tests: New file.
44372         * tests/test-fputc.c: New file.
44373         * modules/stdio-tests (Depends-on): Add fputc-tests.
44375         Tests for function fgetc().
44376         * modules/fgetc-tests: New file.
44377         * tests/test-fgetc.c: New file.
44378         * modules/stdio-tests (Depends-on): Add fgetc-tests.
44380         Tests for function fdopen().
44381         * modules/fdopen-tests: New file.
44382         * tests/test-fdopen.c: New file.
44383         * modules/stdio-tests (Depends-on): Add fdopen-tests.
44385         Tests for module 'vdprintf'.
44386         * modules/vdprintf-tests: New file.
44387         * tests/test-vdprintf.c: New file.
44389         Tests for module 'dprintf'.
44390         * modules/dprintf-tests: New file.
44391         * tests/test-dprintf.c: New file.
44393 2011-09-20  Bruno Haible  <bruno@clisp.org>
44395         Tests for module 'ioctl'.
44396         * modules/ioctl-tests: New file.
44397         * tests/test-ioctl.c: New file.
44399 2011-09-20  Bruno Haible  <bruno@clisp.org>
44401         fcntl tests: EBADF tests.
44402         * tests/test-fcntl.c (main): Add more tests for EBADF.
44404 2011-09-20  Bruno Haible  <bruno@clisp.org>
44406         utimensat tests: EBADF tests.
44407         * tests/test-utimensat.c (main): Add tests for EBADF.
44409         renameat tests: EBADF tests.
44410         * tests/test-renameat.c (main): Add tests for EBADF.
44412         mkfifoat tests: EBADF tests.
44413         * tests/test-mkfifoat.c (main): Add tests for EBADF.
44415         readlinkat tests: EBADF tests.
44416         * tests/test-readlinkat.c (main): Add tests for EBADF.
44418         symlinkat tests: EBADF tests.
44419         * tests/test-symlinkat.c (main): Add tests for EBADF.
44421         linkat tests: EBADF tests.
44422         * tests/test-linkat.c (main): Add tests for EBADF.
44424         Tests for module 'faccessat'.
44425         * modules/faccessat-tests: New file.
44426         * tests/test-faccessat.c: New file.
44428         fdopendir tests: EBADF tests.
44429         * tests/test-fdopendir.c (main): Add more tests for EBADF.
44431         openat tests: EBADF tests.
44432         * tests/test-fchownat.c (main): Add tests for EBADF.
44433         * tests/test-fstatat.c (main): Likewise.
44434         * tests/test-mkdirat.c (main): Likewise.
44435         * tests/test-openat.c (main): Likewise.
44436         * tests/test-unlinkat.c (main): Likewise.
44437         * tests/test-fchmodat.c: New file.
44438         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
44439         (Makefile.am): Also run 'test-fchmodat'.
44441 2011-09-20  Bruno Haible  <bruno@clisp.org>
44443         utimens, futimens, fdutimensat tests: EBADF tests.
44444         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
44446         Tests for function fstat().
44447         * modules/fstat-tests: New file.
44448         * tests/test-fstat.c: New file.
44449         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
44451 2011-09-20  Bruno Haible  <bruno@clisp.org>
44453         test-ttyname_r tests: EBADF tests.
44454         * tests/test-ttyname_r.c (main): Add tests for EBADF.
44456         Tests for module 'isatty'.
44457         * modules/isatty-tests: New file.
44458         * tests/test-isatty.c: New file.
44460         Tests for module 'write'.
44461         * modules/write-tests: New file.
44462         * tests/test-write.c: New file.
44464         Tests for module 'read'.
44465         * modules/read-tests: New file.
44466         * tests/test-read.c: New file.
44468         pwrite tests: EBADF tests.
44469         * tests/test-pwrite.c (main): Add tests for EBADF.
44471         pread tests: EBADF tests.
44472         * tests/test-pread.c (main): Add tests for EBADF.
44474         lseek tests: EBADF tests.
44475         * tests/test-lseek.c (main): Add more tests for EBADF.
44477         Tests for module 'ftruncate'.
44478         * modules/ftruncate-tests: New file.
44479         * tests/test-ftruncate.sh: New file.
44480         * tests/test-ftruncate.c: New file.
44482         fsync tests: EBADF tests.
44483         * tests/test-fsync.c (main): Add more tests for EBADF.
44485         fdatasync tests: EBADF tests.
44486         * tests/test-fdatasync.c (main): Add more tests for EBADF.
44488         Tests for module 'fchown'.
44489         * modules/fchown-tests: New file.
44490         * tests/test-fchown.c: New file.
44492         Tests for module 'fchmod'.
44493         * modules/fchmod-tests: New file.
44494         * tests/test-fchmod.c: New file.
44496         fchdir tests: EBADF tests.
44497         * tests/test-fchdir.c (main): Add more tests for EBADF.
44499         dup2 tests: EBADF tests.
44500         * tests/test-dup2.c (main): Add more tests for EBADF.
44502         Tests for module 'dup'.
44503         * modules/dup-tests: New file.
44504         * tests/test-dup.c: New file.
44506         Tests for module 'close'.
44507         * modules/close-tests: New file.
44508         * tests/test-close.c: New file.
44510 2011-09-20  Bruno Haible  <bruno@clisp.org>
44512         Tests for module 'shutdown'.
44513         * modules/shutdown-tests: New file.
44514         * tests/test-shutdown.c: New file.
44516         Tests for module 'setsockopt'.
44517         * modules/setsockopt-tests: New file.
44518         * tests/test-setsockopt.c: New file.
44520         Tests for module 'sendto'.
44521         * modules/sendto-tests: New file.
44522         * tests/test-sendto.c: New file.
44524         Tests for module 'send'.
44525         * modules/send-tests: New file.
44526         * tests/test-send.c: New file.
44528         Tests for module 'recvfrom'.
44529         * modules/recvfrom-tests: New file.
44530         * tests/test-recvfrom.c: New file.
44532         Tests for module 'recv'.
44533         * modules/recv-tests: New file.
44534         * tests/test-recv.c: New file.
44536         Tests for module 'listen'.
44537         * modules/listen-tests: New file.
44538         * tests/test-listen.c: New file.
44540         Tests for module 'getsockopt'.
44541         * modules/getsockopt-tests: New file.
44542         * tests/test-getsockopt.c: New file.
44544         Tests for module 'getsockname'.
44545         * modules/getsockname-tests: New file.
44546         * tests/test-getsockname.c: New file.
44548         Tests for module 'getpeername'.
44549         * modules/getpeername-tests: New file.
44550         * tests/test-getpeername.c: New file.
44552         Tests for module 'connect'.
44553         * modules/connect-tests: New file.
44554         * tests/test-connect.c: New file.
44556         Tests for module 'bind'.
44557         * modules/bind-tests: New file.
44558         * tests/test-bind.c: New file.
44560         accept4 tests: Fix for native Windows.
44561         * tests/test-accept4.c: Include sockets.h.
44562         (main): Invoke gl_sockets_startup.
44563         * modules/accept4-tests (Depends-on): Add sockets.
44565         accept tests: Fix for native Windows.
44566         * tests/test-accept.c: Include sockets.h.
44567         (main): Invoke gl_sockets_startup.
44568         * modules/accept-tests (Depends-on): Add sockets.
44570 2011-09-19  Bruno Haible  <bruno@clisp.org>
44572         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
44573         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
44574         do...while(0).
44575         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
44576         Suggested by Paul Eggert.
44578 2011-09-19  Bruno Haible  <bruno@clisp.org>
44580         sched: Ensure pid_t is defined.
44581         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
44582         not define pid_t.
44583         * lib/sched.in.h: Include <sys/types.h>.
44584         * doc/posix-headers/sched.texi: Mention the pid_t problem.
44585         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
44587 2011-09-19  Bruno Haible  <bruno@clisp.org>
44589         msvc-inval: Ensure the entire expansion is a single statement.
44590         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
44591         of braces.
44593 2011-09-19  Jim Meyering  <meyering@redhat.com>
44595         tests: use printf, not echo in init.sh's warn_ function
44596         * tests/init.sh (warn_): Use printf, not echo.  The latter would
44597         misbehave when given strings containing a backslash or starting
44598         with e.g., -n.  James Youngman suggested setting IFS.
44600 2011-09-19  Eric Blake  <eblake@redhat.com>
44602         futimens: enhance test
44603         * tests/test-futimens.h (test_futimens): Also check for EBADF on
44604         closed non-negative fd.
44606         date: accept 'hence' as opposite of 'ago'
44607         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
44608         * tests/test-parse-datetime.c (main): Enhance test.
44609         Suggested by Jesse Wilson.
44611 2011-09-19  Jim Meyering  <meyering@redhat.com>
44613         getcwd: don't fail in a deep directory on a system without openat
44614         Before this change, getcwd would fail when called from a directory
44615         of depth PATH_MAX / 3 or greater.  That was due to the fact that
44616         the non-openat implementation used "..", "../..", "../../..", etc.
44617         to access ancestor directories.  With too many, that string would
44618         be longer than PATH_MAX.
44619         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
44620         using gnulib's openat replacement.
44621         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
44622         we're using the replacement function.
44624 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
44626         maint.mk: avoid warnings from perl about missing files
44627         * top/maint.mk (def_sym_regex): Ignore files listed in
44628         $(gl_other_headers_) that do not exist, say because a project
44629         does not use a corresponding module.
44631 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
44633         stat: use pathmax.h only if needed
44634         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
44635         This is better for Emacs, which does not have a mingw port and
44636         therefore can avoid the pathmax module.
44638         utimens: remove dependency on dup2
44639         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
44640         to work around the Linux kernel bug.
44641         * modules/utimens (Depends-on): Remove dup2.
44643 2011-09-18  Bruno Haible  <bruno@clisp.org>
44645         inet_ntop, inet_pton: Look for it also in libresolv.
44646         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
44647         libnsl, search for it in libresolv.
44648         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
44649         Needed on Solaris 7.
44651 2011-09-18  Bruno Haible  <bruno@clisp.org>
44653         accept, accept4 tests: Avoid link error on Solaris.
44654         * modules/accept-tests (Makefile.am): Link test-accept against
44655         $(LIBSOCKET).
44656         * modules/accept4-tests (Makefile.am): Link test-accept4 against
44657         $(LIBSOCKET).
44659         accept4: Avoid link error on Solaris.
44660         * modules/accept4 (Link): New section.
44662         socket functions: Avoid link errors on Solaris.
44663         * modules/accept (Depends-on): Add socketlib.
44664         (Link): New section.
44665         * modules/bind (Depends-on): Add socketlib.
44666         (Link): New section.
44667         * modules/connect (Depends-on): Add socketlib.
44668         (Link): New section.
44669         * modules/getpeername (Depends-on): Add socketlib.
44670         (Link): New section.
44671         * modules/getsockname (Depends-on): Add socketlib.
44672         (Link): New section.
44673         * modules/getsockopt (Depends-on): Add socketlib.
44674         (Link): New section.
44675         * modules/listen (Depends-on): Add socketlib.
44676         (Link): New section.
44677         * modules/recv (Depends-on): Add socketlib.
44678         (Link): New section.
44679         * modules/recvfrom (Depends-on): Add socketlib.
44680         (Link): New section.
44681         * modules/send (Depends-on): Add socketlib.
44682         (Link): New section.
44683         * modules/sendto (Depends-on): Add socketlib.
44684         (Link): New section.
44685         * modules/setsockopt (Depends-on): Add socketlib.
44686         (Link): New section.
44687         * modules/shutdown (Depends-on): Add socketlib.
44688         (Link): New section.
44689         * modules/socket (Depends-on): Add socketlib.
44690         (Link): New section.
44692 2011-09-18  Bruno Haible  <bruno@clisp.org>
44694         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
44695         * tests/test-ptsname.c (main): Terminate the test if it takes longer
44696         than 5 seconds.
44697         * modules/ptsname-tests (configure.ac): Test for alarm.
44699 2011-09-18  Bruno Haible  <bruno@clisp.org>
44701         posix_spawn_file_actions_add*: Fix module dependencies.
44702         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
44703         posix_spawn_file_actions_init.
44704         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
44705         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
44707 2011-09-18  Bruno Haible  <bruno@clisp.org>
44709         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
44710         * tests/test-rename.h (test_rename): Allow error code EEXIST.
44711         * tests/test-renameat.c (main): Likewise.
44713 2011-09-18  Bruno Haible  <bruno@clisp.org>
44715         Tests for module 'accept4'.
44716         * modules/accept4-tests: New file.
44717         * tests/test-accept4.c: New file.
44719 2011-09-18  Bruno Haible  <bruno@clisp.org>
44721         Tests for module 'accept'.
44722         * modules/accept-tests: New file.
44723         * tests/test-accept.c: New file.
44725 2011-09-18  Bruno Haible  <bruno@clisp.org>
44727         dup2: Support for MSVC.
44728         * lib/dup2.c: Include msvc-inval.h.
44729         (rpl_dup2): Handle invalid parameter notifications during dup2 and
44730         _get_osfhandle calls.
44731         * modules/dup2 (Depends-on): Add msvc-inval.
44732         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
44734         New module 'msvc-inval'.
44735         * lib/msvc-inval.h: New file.
44736         * lib/msvc-inval.c: New file.
44737         * m4/msvc-inval.m4: New file.
44738         * modules/msvc-inval: New file.
44740 2011-09-17  Bruno Haible  <bruno@clisp.org>
44742         Tests for module 'pclose'.
44743         * modules/pclose-tests: New file.
44745         New module 'pclose'.
44746         * lib/stdio.in.h (pclose): New declaration.
44747         * lib/pclose.c: New file.
44748         * m4/pclose.m4: New file.
44749         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
44750         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
44751         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
44752         * modules/pclose: New file.
44753         * modules/popen-tests (Depends-on): Add pclose.
44754         * modules/popen-safer-tests (Depends-on): Likewise.
44755         * doc/posix-functions/pclose.texi: Mention the new module.
44757 2011-09-17  Bruno Haible  <bruno@clisp.org>
44759         popen: Support for MSVC.
44760         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
44761         * lib/popen.c (popen): Provide alternate definition for native Windows.
44762         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
44763         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
44764         * modules/popen (Depends-on, configure.ac): Update condition.
44765         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
44766         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
44767         fixed.
44769 2011-09-17  Bruno Haible  <bruno@clisp.org>
44771         isnanl, isnand, isnanf: Work around MSVC bug.
44772         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
44774 2011-09-17  Bruno Haible  <bruno@clisp.org>
44776         sys_socket tests: Fix recent mistake.
44777         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
44779 2011-09-17  Bruno Haible  <bruno@clisp.org>
44781         putenv: Support for MSVC.
44782         * modules/putenv (Depends-on): Add environ.
44783         * lib/putenv.c (environ): Disable declaration.
44784         * lib/unistd.in.h: Update comment.
44786 2011-09-17  Bruno Haible  <bruno@clisp.org>
44788         math: Avoid macro redefinition warnings on MSVC.
44789         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
44790         Undefine before redefining.
44792 2011-09-17  Bruno Haible  <bruno@clisp.org>
44794         doc: Mention functions which are declared as macros.
44795         * doc/posix-functions/*[fl].texi: Mention that some functions are
44796         defined as macros with arguments only.
44798 2011-09-17  Bruno Haible  <bruno@clisp.org>
44800         Add dependencies to new dirent related modules.
44801         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
44802         * modules/fts (Depends-on): Likewise.
44803         * modules/glob (Depends-on): Likewise.
44804         * modules/savedir (Depends-on): Likewise.
44805         * modules/scandir (Depends-on): Likewise.
44806         * modules/dirent-safer (Depends-on): Add opendir, closedir.
44807         * modules/fdopendir (Depends-on): Add opendir.
44809 2011-09-17  Bruno Haible  <bruno@clisp.org>
44811         inet_pton: Support for MSVC on Windows Vista or newer.
44812         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
44813         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
44814         HAVE_DECL_INET_PTON is defined.
44815         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
44816         On platforms with <winsock2.h>, test whether inet_pton is declared in
44817         <ws2tcpip.h>. If so, arrange to replace it.
44818         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
44819         REPLACE_INET_PTON.
44820         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
44821         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
44822         (Depends-on, configure.ac): Update condition.
44823         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
44825 2011-09-17  Bruno Haible  <bruno@clisp.org>
44827         inet_ntop: Support for MSVC on Windows Vista or newer.
44828         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
44829         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
44830         HAVE_DECL_INET_NTOP is defined.
44831         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
44832         On platforms with <winsock2.h>, test whether inet_ntop is declared in
44833         <ws2tcpip.h>. If so, arrange to replace it.
44834         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
44835         REPLACE_INET_NTOP.
44836         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
44837         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
44838         (Depends-on, configure.ac): Update condition.
44839         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
44841 2011-09-16  Eric Blake  <eblake@redhat.com>
44843         test-fsync: yet another enhancement
44844         * tests/test-fsync.c (main): Also test behavior on read-only text
44845         file.
44847 2011-09-16  Bruno Haible  <bruno@clisp.org>
44849         Enhance fsync, fdatasync tests.
44850         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
44851         * tests/test-fdatasync.c (main): Likewise.
44853 2011-09-16  Bruno Haible  <bruno@clisp.org>
44855         Support for MSVC compiler: Ensure mode_t gets defined.
44856         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
44857         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
44858         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
44859         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
44860         * tests/test-fcntl-h.c: Check that mode_t is defined.
44861         * tests/test-sys_stat.c: Likewise.
44862         * tests/test-sys_types.c: Likewise.
44863         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
44864         * doc/posix-headers/sys_stat.texi: Likewise.
44865         * doc/posix-headers/sys_types.texi: Likewise.
44867 2011-09-16  Bruno Haible  <bruno@clisp.org>
44869         sys_stat: Support for MSVC.
44870         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
44871         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
44872         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
44873         MSVC.
44875 2011-09-16  Bruno Haible  <bruno@clisp.org>
44877         Support for MSVC compiler: Ensure off_t gets defined.
44878         * lib/unistd.in.h: Include <sys/types.h>.
44879         * tests/test-fcntl-h.c: Check that off_t is defined.
44880         * tests/test-sys_stat.c: Likewise.
44881         * tests/test-sys_types.c: Likewise.
44883 2011-09-16  Eric Blake  <eblake@redhat.com>
44885         fdatasync: port to Solaris
44886         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
44887         * modules/fdatasync (Link): Document it.
44888         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
44890         fdatasync: port to MacOS X 10.7
44891         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
44892         declared.
44893         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
44894         * modules/unistd (Makefile.am): Substitute it.
44895         * lib/unistd.in.h (fdatasync): Declare on MacOS.
44896         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
44898         fdatasync: minor improvements
44899         * modules/fdatasync (Depends-on): Add condition for fsync.
44900         * lib/fdatasync.c (fdatasync): Add comment.
44901         * tests/test-unistd-c++.cc: Test fdatasync.
44903         unistd: update refs to newer POSIX
44904         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
44905         Suggested by Bruno Haible.
44907         fdatasync: new module
44908         * modules/fsync (Description): Document difference to fdatasync.
44909         * modules/fdatasync: New module.
44910         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
44911         * lib/fdatasync.c (fdatasync): Likewise.
44912         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
44913         defaults.
44914         * modules/unistd (Makefile.am): Set witnesses.
44915         * lib/unistd.in.h (fdatasync): Declare.
44916         * MODULES.html.sh: Document it.
44917         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
44918         * modules/fdatasync-tests: New test.
44919         * tests/test-fdatasync.c: Likewise.
44921 2011-09-16  Eric Blake  <eblake@redhat.com>
44923         test-fsync: enhance tests
44924         * modules/fsync-tests (Depends-on): Add errno, for mingw.
44925         * tests/test-fsync.c (main): Enhance test.
44927 2011-09-15  Bruno Haible  <bruno@clisp.org>
44929         Support for MSVC compiler: Ensure ssize_t gets defined.
44930         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
44931         * doc/posix-headers/stdio.texi: Likewise.
44932         * modules/stdio (Depends-on): Add ssize_t.
44933         * modules/sys_socket (Depends-on): Likewise.
44934         * modules/sys_types (Depends-on): Likewise.
44935         * modules/sys_uio (Depends-on): Likewise.
44936         * modules/unistd (Depends-on): Likewise.
44937         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
44938         * tests/test-sys_types.c: Check that ssize_t is defined.
44940 2011-09-14  Bruno Haible  <bruno@clisp.org>
44942         Avoid using #, the m4 comment starter character, near brackets.
44943         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
44944         delimiter character in sed expressions.
44945         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
44946         Suggested by Eric Blake.
44948         Properly quote AC_CHECK_DECLS' 4th argument.
44949         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
44950         argument.
44951         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
44952         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
44953         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
44954         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
44955         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
44956         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
44957         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
44958         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
44959         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
44960         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
44961         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
44962         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
44963         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
44964         * m4/isinf.m4 (gl_ISINF): Likewise.
44965         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
44966         * m4/readutmp.m4 (gl_READUTMP): Likewise.
44967         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
44968         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
44969         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
44970         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
44971         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
44972         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
44973         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
44974         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
44975         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
44976         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
44977         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
44978         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
44979         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
44980         Reported by Eric Blake.
44982         Properly quote AC_CHECK_DECL's 4th argument.
44983         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
44984         argument.
44985         * m4/argp.m4 (gl_ARGP): Likewise.
44986         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
44987         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
44988         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
44989         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
44990         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
44991         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
44992         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
44993         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
44994         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
44995         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
44996         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
44997         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
44998         Reported by Eric Blake.
45000 2011-09-14  Eric Blake  <eblake@redhat.com>
45002         opendir: avoid compile warning
45003         * lib/opendir.c (includes): Always include errno.h.
45004         Reported by Tatsuro MATSUOKA.
45006 2011-09-14  Jim Meyering  <meyering@redhat.com>
45008         maint.mk: sc_tight_scope: propagate failure from sub-make
45009         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
45010         Reported by Martin von Gagern.
45012 2011-09-13  Bruno Haible  <bruno@clisp.org>
45014         tempname: Support for MSVC.
45015         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
45016         MSVC.
45017         * modules/tempname (Depends-on): Add fcntl-h.
45019 2011-09-13  Bruno Haible  <bruno@clisp.org>
45021         sys_time: Support for MSVC.
45022         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
45023         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
45024         include <winsock2.h>.
45025         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
45026         function declarations that collide with POSIX.
45027         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
45028         (Makefile.am): Substitute HAVE_WINSOCK2_H.
45030 2011-09-13  Bruno Haible  <bruno@clisp.org>
45032         stat: Support for MSVC.
45033         * lib/stat.c: Include pathmax.h.
45034         * modules/stat (Depends-on): Add pathmax.
45036         pathmax: Support for native Windows.
45037         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
45039 2011-09-12  Bruno Haible  <bruno@clisp.org>
45041         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
45042         * lib/dirent.in.h (struct dirent): New type.
45043         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
45044         DT_WHT): New macros.
45045         (DIR): New type.
45046         (opendir, closedir): Declare only if the module 'opendir' is enabled.
45047         (readdir, rewinddir): New declarations.
45048         * lib/dirent-private.h: New file.
45049         * lib/opendir.c: New file.
45050         * lib/readdir.c: New file.
45051         * lib/rewinddir.c: New file.
45052         * lib/closedir.c: New file.
45053         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
45054         * m4/opendir.m4: New file.
45055         * m4/readdir.m4: New file.
45056         * m4/rewinddir.m4: New file.
45057         * m4/closedir.m4: New file.
45058         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
45059         REPLACE_CLOSEDIR here.
45060         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
45061         readdir, rewinddir are declared.
45062         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
45063         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
45064         HAVE_REWINDDIR, HAVE_CLOSEDIR.
45065         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
45066         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
45067         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
45068         * modules/opendir: New file.
45069         * modules/readdir: New file.
45070         * modules/rewinddir: New file.
45071         * modules/closedir: New file.
45072         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
45073         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
45074         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
45075         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
45076         * NEWS: Mention the 'fchdir' change.
45078 2011-09-11  Bruno Haible  <bruno@clisp.org>
45080         asm-underscore.m4: Support for MSVC.
45081         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
45082         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
45084 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
45086         Doc about crypt functions.
45087         * doc/posix-functions/crypt.texi: Expand range of glibc versions
45088         needing for _GNU_SOURCE to get crypt.
45089         * doc/posix-functions/encrypt.texi: Likewise.
45090         * doc/posix-functions/setkey.texi: Likewise.
45092 2011-09-11  Bruno Haible  <bruno@clisp.org>
45094         doc: Update regarding MSVC 9.
45095         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
45096         tested".
45097         * doc/posix-functions/*.texi: Update with info about MSVC 9.
45098         * doc/posix-headers/*.texi: Likewise.
45099         * doc/pastposix-functions/*.texi: Likewise.
45100         * doc/glibc-functions/*.texi: Likewise.
45101         * doc/glibc-headers/*.texi: Likewise.
45103 2011-09-11  Bruno Haible  <bruno@clisp.org>
45105         unistd et al.: Don't assume <unistd.h> exists.
45106         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
45107         does not exist.
45108         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
45109         exist. But include <stdlib.h>.
45110         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
45111         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
45112         symlink() does not exist.
45113         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
45114         include <io.h> instead.
45115         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
45116         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
45117         include <direct.h> instead.
45118         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
45119         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
45120         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
45121         <io.h> instead.
45122         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
45123         correctly if the system does not have hard links.
45124         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
45125         <direct.h> instead.
45126         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
45127         it when looking for function declarations.
45128         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
45129         <direct.h> and <io.h> instead.
45130         * doc/posix-headers/unistd.texi: More details about MSVC problem.
45132 2011-09-11  Bruno Haible  <bruno@clisp.org>
45134         strcase: Support for MSVC.
45135         * modules/strcase (Status, Notice): Remove obsoletion mark.
45136         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
45137         * doc/posix-functions/strncasecmp.texi: Likewise.
45139         strings: Don't assume <strings.h> exists.
45140         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
45141         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
45142         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
45143         * doc/posix-headers/strings.texi: Mention the MSVC problem.
45145 2011-09-11  Bruno Haible  <bruno@clisp.org>
45147         dirent: Don't assume <dirent.h> exists.
45148         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
45149         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
45150         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
45151         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
45153 2011-09-11  Bruno Haible  <bruno@clisp.org>
45155         Fix wint_t on MSVC.
45156         * lib/wchar.in.h (wint_t): On MSVC, override it.
45157         * lib/wctype.in.h (wint_t): Likewise.
45158         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
45159         MSVC.
45160         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
45161         * doc/posix-headers/wctype.texi: Likewise.
45163 2011-09-11  Bruno Haible  <bruno@clisp.org>
45165         sys_types: Fix typo.
45166         * lib/sys_types.in.h: Fix typo in comment.
45167         Reported by Paul Eggert.
45169         Support for MSVC compiler: Ensure size_t gets defined.
45170         * modules/strings (Depends-on): Add 'sys_types'.
45171         * modules/sys_uio (Depends-on): Likewise.
45172         * lib/sys_uio.in.h: Update comment.
45174         C++ tests for module 'sys_types'.
45175         * modules/sys_types-c++-tests: New file.
45176         * tests/test-sys_types-c++.cc: New file.
45178         Tests for module 'sys_types'.
45179         * modules/sys_types-tests: New file.
45180         * tests/test-sys_types.c: New file.
45182         New module 'sys_types'.
45183         * lib/sys_types.in.h: New file.
45184         * m4/sys_types_h.m4: New file.
45185         * modules/sys_types: New file.
45186         * doc/posix-headers/sys_types.texi: Mention the new module and the
45187         size_t problem on MSVC 9.
45189 2011-09-11  Bruno Haible  <bruno@clisp.org>
45191         Support for MSVC compiler: Avoid division by a literal 0.
45192         * lib/math.in.h (NAN): Define through a function call also on MSVC.
45193         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
45194         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
45195         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
45196         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
45197         * tests/infinity.h: New file.
45198         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
45199         on MSVC.
45200         * tests/test-ceilf1.c: Include infinity.h.
45201         (main): Use Infinityf.
45202         * tests/test-ceil1.c: Include infinity.h.
45203         (main): Use Infinityd.
45204         * tests/test-ceill.c: Include infinity.h.
45205         (main): Use Infinityl.
45206         * tests/test-dprintf-posix.c: Include infinity.h.
45207         (test_function): Use Infinityd.
45208         * tests/test-floorf1.c: Include infinity.h.
45209         (main): Use Infinityf.
45210         * tests/test-floor1.c: Include infinity.h.
45211         (main): Use Infinityd.
45212         * tests/test-floorl.c: Include infinity.h.
45213         (main): Use Infinityl.
45214         * tests/test-fprintf-posix.c: Include infinity.h.
45215         (test_function): Use Infinityd.
45216         * tests/test-frexp.c: Include infinity.h.
45217         (main): Use Infinityd.
45218         * tests/test-frexpl.c: Include infinity.h.
45219         (main): Use Infinityl.
45220         * tests/test-isfinite.c: Include infinity.h.
45221         (test_isfinitef): Use Infinityf.
45222         (test_isfinited): Use Infinityd.
45223         (test_isfinitel): Use Infinityl.
45224         * tests/test-isinf.c: Include infinity.h.
45225         (test_isinff): Use Infinityf.
45226         (test_isinfd): Use Infinityd.
45227         (test_isinfl): Use Infinityl.
45228         * tests/test-isnan.c: Include infinity.h.
45229         (test_float): Use Infinityf.
45230         (test_double): Use Infinityd.
45231         (test_long_double): Use Infinityl.
45232         * tests/test-isnanf.h: Include infinity.h.
45233         (main): Use Infinityf.
45234         * tests/test-isnand.h: Include infinity.h.
45235         (main): Use Infinityd.
45236         * tests/test-isnanl.h: Include infinity.h.
45237         (main): Use Infinityl.
45238         * tests/test-ldexpl.c: Include infinity.h.
45239         (main): Use Infinityl.
45240         * tests/test-printf-posix.h: Include infinity.h.
45241         (test_function): Use Infinityd.
45242         * tests/test-roundf1.c: Include infinity.h.
45243         (main): Use Infinityf.
45244         * tests/test-round1.c: Include infinity.h.
45245         (main): Use Infinityd.
45246         * tests/test-roundl.c: Include infinity.h.
45247         (main): Use Infinityl.
45248         * tests/test-signbit.c: Include infinity.h.
45249         (test_signbitf): Use Infinityf.
45250         (test_signbitd): Use Infinityd.
45251         (test_signbitl): Use Infinityl.
45252         * tests/test-snprintf-posix.h: Include infinity.h.
45253         (test_function): Use Infinityd, Infinityl.
45254         * tests/test-sprintf-posix.h: Include infinity.h.
45255         (test_function): Use Infinityd, Infinityl.
45256         * tests/test-truncf1.c: Include infinity.h.
45257         (main): Use Infinityf.
45258         * tests/test-trunc1.c: Include infinity.h.
45259         (main): Use Infinityd.
45260         * tests/test-truncl.c: Include infinity.h.
45261         (main): Use Infinityl.
45262         * tests/test-vasnprintf-posix.c: Include infinity.h.
45263         (test_function): Use Infinityd, Infinityl.
45264         * tests/test-vasprintf-posix.c: Include infinity.h.
45265         (test_function): Use Infinityd, Infinityl.
45266         * modules/ceilf-tests (Files): Add tests/infinity.h.
45267         * modules/ceil-tests (Files): Likewise.
45268         * modules/ceill-tests (Files): Likewise.
45269         * modules/dprintf-posix-tests (Files): Likewise.
45270         * modules/floorf-tests (Files): Likewise.
45271         * modules/floor-tests (Files): Likewise.
45272         * modules/floorl-tests (Files): Likewise.
45273         * modules/fprintf-posix-tests (Files): Likewise.
45274         * modules/frexp-tests (Files): Likewise.
45275         * modules/frexp-nolibm-tests (Files): Likewise.
45276         * modules/frexpl-tests (Files): Likewise.
45277         * modules/frexpl-nolibm-tests (Files): Likewise.
45278         * modules/isfinite-tests (Files): Likewise.
45279         * modules/isinf-tests (Files): Likewise.
45280         * modules/isnan-tests (Files): Likewise.
45281         * modules/isnanf-tests (Files): Likewise.
45282         * modules/isnanf-nolibm-tests (Files): Likewise.
45283         * modules/isnand-tests (Files): Likewise.
45284         * modules/isnand-nolibm-tests (Files): Likewise.
45285         * modules/isnanl-tests (Files): Likewise.
45286         * modules/isnanl-nolibm-tests (Files): Likewise.
45287         * modules/ldexpl-tests (Files): Likewise.
45288         * modules/printf-posix-tests (Files): Likewise.
45289         * modules/roundf-tests (Files): Likewise.
45290         * modules/round-tests (Files): Likewise.
45291         * modules/roundl-tests (Files): Likewise.
45292         * modules/signbit-tests (Files): Likewise.
45293         * modules/snprintf-posix-tests (Files): Likewise.
45294         * modules/sprintf-posix-tests (Files): Likewise.
45295         * modules/truncf-tests (Files): Likewise.
45296         * modules/trunc-tests (Files): Likewise.
45297         * modules/truncl-tests (Files): Likewise.
45298         * modules/vasnprintf-posix-tests (Files): Likewise.
45299         * modules/vasprintf-posix-tests (Files): Likewise.
45300         * modules/vdprintf-posix-tests (Files): Likewise.
45301         * modules/vfprintf-posix-tests (Files): Likewise.
45302         * modules/vprintf-posix-tests (Files): Likewise.
45303         * modules/vsnprintf-posix-tests (Files): Likewise.
45304         * modules/vsprintf-posix-tests (Files): Likewise.
45305         * modules/xprintf-posix-tests (Files): Likewise.
45307 2011-09-11  Bruno Haible  <bruno@clisp.org>
45309         Ensure pid_t gets defined.
45310         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
45311         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
45312         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
45313         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
45314         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
45315         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
45316         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
45317         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
45318         * tests/test-fcntl-h.c: Check that pid_t is defined.
45319         * tests/test-sched.c: Likewise.
45320         * tests/test-termios.c: Likewise.
45321         * tests/test-time.c: Likewise.
45322         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
45323         * doc/posix-headers/signal.texi: Likewise.
45324         * doc/posix-headers/sys_types.texi: Likewise.
45325         * doc/posix-headers/time.texi: Likewise.
45327 2011-09-11  Bruno Haible  <bruno@clisp.org>
45329         acl: Fix compilation on Solaris 10 (older version).
45330         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
45331         of ACE_EVERYONE.
45332         * lib/set-mode-acl.c (qset_acl): Likewise.
45333         Reported by Christian Jullien <eligis@orange.fr>.
45335 2011-09-10  Bruno Haible  <bruno@clisp.org>
45337         iconv, unsetenv: Add support for MSVC compiler.
45338         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
45339         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
45341 2011-09-10  Bruno Haible  <bruno@clisp.org>
45343         *printf: Add support for MSVC compiler.
45344         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
45345         handles the exception caused by the %n directive. When cross-compiling,
45346         guess no on native Windows.
45347         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
45348         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
45349         emulate it through vsnprintf.
45350         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
45351         * doc/posix-functions/dprintf.texi: Update documentation regarding
45352         MSVC 9.
45353         * doc/posix-functions/fprintf.texi: Likewise.
45354         * doc/posix-functions/printf.texi: Likewise.
45355         * doc/posix-functions/snprintf.texi: Likewise.
45356         * doc/posix-functions/sprintf.texi: Likewise.
45357         * doc/posix-functions/swprintf.texi: Likewise.
45358         * doc/posix-functions/vdprintf.texi: Likewise.
45359         * doc/posix-functions/vfprintf.texi: Likewise.
45360         * doc/posix-functions/vprintf.texi: Likewise.
45361         * doc/posix-functions/vsnprintf.texi: Likewise.
45362         * doc/posix-functions/vsprintf.texi: Likewise.
45363         * doc/glibc-functions/asprintf.texi: Likewise.
45364         * doc/glibc-functions/obstack_printf.texi: Likewise.
45365         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
45366         * doc/glibc-functions/vasprintf.texi: Likewise.
45368 2011-09-10  Bruno Haible  <bruno@clisp.org>
45370         nocrash: Add support for native Windows.
45371         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
45373 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
45374             Bruno Haible  <bruno@clisp.org>
45376         absolute-header, include-next: Add support for MSVC compiler.
45377         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
45378         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
45379         directory separator in #line directives.
45380         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
45381         recognize also backslash as directory separator in #line directives.
45383 2011-09-08  Jim Meyering  <meyering@redhat.com>
45385         maint.mk: mark the post-release commit log with "maint: " prefix
45386         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
45387         one-line commit-log summary.
45389 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
45390             Bruno Haible  <bruno@clisp.org>
45392         Doc about crypt functions.
45393         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
45394         systems.
45395         * doc/posix-functions/encrypt.texi: Likewise.
45396         * doc/posix-functions/setkey.texi: Likewise.
45398 2011-09-08  Simon Josefsson  <simon@josefsson.org>
45400         * lib/gc.h: Fix copyright header.
45402 2011-09-07  Bruno Haible  <bruno@clisp.org>
45404         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
45405         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
45406         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
45408 2011-09-07  Bruno Haible  <bruno@clisp.org>
45410         openat: Work around compilation error with OSF/1 5.1 DTK cc.
45411         * lib/fopen.c: Use different syntax for include of <stdio.h>.
45412         * lib/freopen.c: Likewise.
45413         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
45414         * lib/lstat.c: Likewise.
45415         * lib/stat.c: Likewise.
45416         * lib/open.c: Use different syntax for include of <fcntl.h>.
45417         * lib/openat.c: Include fcntl.h again, explicitly.
45419 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
45421         parse-datetime: document the newly accepted format
45422         * doc/parse-datetime.texi (Combined date and time of day items):
45423         New section.
45425 2011-09-06  Bruno Haible  <bruno@clisp.org>
45427         acl: Fix a test failure on newer Solaris 10 with ZFS.
45428         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
45429         ENOSYS as no ACL.
45430         Reported by Jim Meyering.
45432 2011-09-06  Bruno Haible  <bruno@clisp.org>
45434         acl: Update for AIX >= 5.3 with NFS.
45435         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
45436         ENOSYS as no ACL.
45438         acl: Fix a test failure on AIX >= 5.3 with NFS.
45439         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
45440         as no ACL.
45442 2011-09-06  Bruno Haible  <bruno@clisp.org>
45444         acl: Fix a test failure on IRIX 6.5 with NFS.
45445         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
45446         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
45447         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
45448         * lib/copy-acl.c (qcopy_acl): Likewise.
45450 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
45452         openat: port to AIX 7.1 with large files
45453         AIX 7.1 does a "#define openat open64at" if large files are in use,
45454         so we can't simply #undef openat.  Use the orig_openat trick (similar
45455         to orig_open in lib/open.c) to work around the problem.  Problem
45456         reported by Kevin Brott for GNU tar, in the thread containing
45457         <http://lists.gnu.org/r/bug-tar/2011-09/msg00032.html>.
45458         * lib/openat.c (__need_system_fcntl_h): Define first.
45459         Include <fcntl.h> and <sys/types.h> before undefining.
45460         (orig_openat) [HAVE_OPENAT]: New inline function.
45461         (openat) [HAVE_OPENAT]: Do not undef.
45462         (rpl_openat): Use orig_openat, not openat.
45464 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
45465             Bruno Haible  <bruno@clisp.org>
45467         acl: Avoid errors on NonStop Kernel.
45468         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
45469         ENOTSUP errors.
45471 2011-09-05  Bruno Haible  <bruno@clisp.org>
45473         acl: Clean up Solaris code.
45474         * lib/acl-internal.h: Remove no-op #if.
45475         * lib/file-has-acl.c: Likewise.
45476         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
45477         * lib/copy-acl.c (qcopy_acl): Likewise.
45479 2011-09-05  Bruno Haible  <bruno@clisp.org>
45481         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
45482         binaries built on the original Solaris 10.
45483         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
45484         trivial.
45486 2011-09-05  Bruno Haible  <bruno@clisp.org>
45488         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
45489         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
45490         10.
45491         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
45492         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
45493         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
45494         instead of acl_get, facl_get, acl_set, facl_set.
45496 2011-09-05  Bruno Haible  <bruno@clisp.org>
45498         copy-file: Try unit tests on more file systems.
45499         * tests/test-copy-file-1.sh: New file.
45500         * tests/test-copy-file-2.sh: New file.
45501         * modules/copy-file-tests (Files): Add them.
45502         (Makefile.am): Add them to TESTS.
45504         acl: Try unit tests on more file systems.
45505         * tests/test-file-has-acl-1.sh: New file.
45506         * tests/test-file-has-acl-2.sh: New file.
45507         * tests/test-set-mode-acl-1.sh: New file.
45508         * tests/test-set-mode-acl-2.sh: New file.
45509         * tests/test-copy-acl-1.sh: New file.
45510         * tests/test-copy-acl-2.sh: New file.
45511         * modules/acl-tests (Files): Add them.
45512         (Makefile.am): Add them to TESTS.
45514 2011-09-04  Bruno Haible  <bruno@clisp.org>
45516         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
45517         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
45518         10.
45519         (OLD_ALLOW, OLD_DENY): New macros.
45520         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
45521         ACE_ACCESS_ALLOWED_ACE_TYPE.
45522         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
45523         ACE_ACCESS_DENIED_ACE_TYPE.
45524         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
45525         (NEW_ACE_EXECUTE): Fix value.
45526         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
45527         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
45528         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
45529         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
45530         NEW_ACE_SYNCHRONIZE): New macros.
45531         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
45532         instead of acl_fromtext, acl_set, facl_set.
45533         Fixes a coreutils/tests/cp/perm failure.
45535 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
45537         openat: test for fstatat (..., 0) bug
45538         Further testing with tar suggests that fstatat (..., 0)
45539         does not work in general, on AIX 7.1; see
45540         <http://lists.gnu.org/r/bug-tar/2011-09/msg00023.html>.
45541         So, give up entirely on AIX 7.1's fstatat, and fall back on our
45542         replacement fstatat (which is what older AIX releases were using
45543         anyway).
45544         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
45545         use is now changed to orig_fstatat.  This was probably the right
45546         thing to do anyway.
45547         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
45548         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
45549         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
45550         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
45551         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
45552         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
45553         if the bug is found.
45555         openat: test for fstatat (AT_FDCWD, ..., 0) bug
45556         This tests for another fstatat bug on AIX 7.1:
45557         fstatat (AT_FDCWD, ..., 0) does not work.  See
45558         <http://lists.gnu.org/r/bug-tar/2011-09/msg00015.html>.
45559         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
45560         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
45561         (rpl_fstatat): Adjust so that it works around either (or both)
45562         bugs if present.
45563         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
45565 2011-09-03  Karl Berry  <karl@gnu.org>
45567         * doc/regex.texi (Character Class Operators): Avoid literal ":"
45568         in index entries.
45570 2011-09-02  Bruno Haible  <bruno@clisp.org>
45572         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
45573         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
45574         values of AR, ARFLAGS, RANLIB.
45575         Reported by John W. Eaton <jwe@gnu.org> for Octave.
45577 2011-09-02  Bruno Haible  <bruno@clisp.org>
45579         Find 'ar' program that fits with --host argument.
45580         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
45582 2011-09-02  Bruno Haible  <bruno@clisp.org>
45584         tests: init.sh: Support any non-GNU diff.
45585         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
45586         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
45587         Solaris 8.
45589 2011-09-02  Bruno Haible  <bruno@clisp.org>
45591         tests: init.sh: work also with any non-GNU diff that supports -u
45592         * tests/init.sh: Relax check for diff -u support.
45593         Rather than checking for GNU diff via --version, simply check
45594         for support for -u itself.  Useful at least on OpenBSD 4.9,
45595         AIX 7.1, IRIX 6.5, and Solaris 10.
45597 2011-09-01  Bruno Haible  <bruno@clisp.org>
45599         strtoimax, strtoumax: Document problem on HP-UX 11.
45600         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
45601         * doc/posix-functions/strtoumax.texi: Likewise.
45603 2011-09-01  Bruno Haible  <bruno@clisp.org>
45605         strtoumax: Avoid link error on OSF/1 with DTK cc.
45606         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
45607         defined as a function.
45608         * modules/strtoumax (Depends-on, configure.ac): Test only whether
45609         strtoumax is defined, not whether it is declared.
45611 2011-09-01  Bruno Haible  <bruno@clisp.org>
45613         strtoimax: Avoid link error on OSF/1 with DTK cc.
45614         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
45615         defined as a function.
45616         * modules/strtoimax (Depends-on, configure.ac): Test only whether
45617         strtoimax is defined, not whether it is declared.
45619 2011-09-01  Bruno Haible  <bruno@clisp.org>
45621         imaxdiv: Avoid link error on OSF/1 with DTK cc.
45622         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
45623         as a function.
45624         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
45625         whether it is declared.
45627 2011-09-01  Bruno Haible  <bruno@clisp.org>
45629         imaxabs: Avoid link error on OSF/1 with DTK cc.
45630         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
45631         as a function.
45632         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
45633         whether it is declared.
45635 2011-09-01  Bruno Haible  <bruno@clisp.org>
45637         Tests for module 'strtoumax'.
45638         * modules/strtoumax-tests: New file.
45639         * tests/test-strtoumax.c: New file.
45641         Tests for module 'strtoimax'.
45642         * modules/strtoimax-tests: New file.
45643         * tests/test-strtoimax.c: New file.
45645         Tests for module 'imaxdiv'.
45646         * modules/imaxdiv-tests: New file.
45647         * tests/test-imaxdiv.c: New file.
45649         Tests for module 'imaxabs'.
45650         * modules/imaxabs-tests: New file.
45651         * tests/test-imaxabs.c: New file.
45653 2011-09-01  Bruno Haible  <bruno@clisp.org>
45655         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
45656         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
45657         pthread_create.
45659 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
45661         openat: work around AIX 7.1 fstatat issue
45662         This should fix the problem that was not properly fixed
45663         in the previous change, dated 2011-08-30.
45664         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
45665         __need_system_stat_h defined.
45666         (orig_fstatat) [HAVE_FSTATAT]: New function.
45667         (rpl_fstatat): Go back to the old way of doing things,
45668         except call orig_fstatat instead of fstatat.
45669         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
45670         Remove unnecessary check whether fstatat fills in st_size etc.
45672 2011-09-01  Bruno Haible  <bruno@clisp.org>
45674         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
45675         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
45676         just include the system's header.
45678 2011-08-31  Jim Meyering  <meyering@redhat.com>
45680         tests: avoid spurious assertion failure in test-float.c on ppc64
45681         * tests/test-float.c (test_long_double): Comment out an assertion,
45682         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
45683         with gcc-4.4.4.
45685         maint: indent with spaces, not TABs
45686         I need to get in the habit of running gnulib's "make check".
45687         Both of these would have been caught.
45688         * m4/largefile.m4: Indent with spaces, not TABs.
45689         * lib/parse-datetime.y (iso_8601_time): Likewise.
45690         Spotted by Pádraig Brady.
45692         test-parse-datetime.c: accommodate a relatively strict gcc warning
45693         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
45694         to avoid a warning from gcc's -Werror=missing-declarations.
45695         Insert a few spaces-before-funcall-parenthesis.
45697 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
45699         parse-datetime: accept ISO 8601 date and time rep with "T" separator
45700         The parser now accepts ISO 8601 date-time strings with "T" as the
45701         separator.  It has long parsed dates like "2004-02-29 16:21:42"
45702         with a space between the date and time strings.  Now it also parses
45703         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
45704         variants like "2004-02-29T16:21:42.333-07:00"
45705         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
45706         of day representation using the 'T' separator character.
45707         * doc/parse-datetime.texi (General date syntax): replace use of
45708         deprecated --iso-8601 option with --rfc-3339 in example of date
45709         command output formats that can be parsed.
45710         * tests/test-parse-datetime.c (tm_diff): New function, taken from
45711         lib/parse-datetime.y.
45712         (gmt_offset): New function.
45713         (main): Add additional test cases to validate ISO8601 extended
45714         date and time of day parsing.
45716 2011-08-31  Bruno Haible  <bruno@clisp.org>
45718         freopen: Documentation.
45719         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
45720         name.
45721         Reported by Claudio Bley <claudio.bley@gmail.com>.
45723 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
45725         freopen: Don't crash if the filename argument is NULL.
45726         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
45727         NULL.
45729 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
45731         openat: work around AIX 7.1 fstatat bug
45732         Problem reported by Kevin Brott for GNU tar, in the thread containing
45733         <http://lists.gnu.org/r/bug-tar/2011-08/msg00015.html>.
45734         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
45735         FSTATAT_ST_SIZE_ETC_BROKEN.
45736         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
45737         rpl_fstatat.
45738         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
45739         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
45740         AC_CHECK_FUNCS_ONCE for fstatat.
45741         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
45742         fchmodat, mkdirat, openat and unlinkat.
45744 2011-08-30  Bruno Haible  <bruno@clisp.org>
45746         Avoid endless recursions if config.h includes some header files.
45747         * lib/fopen.c (__need_FILE): Define already before including config.h.
45748         * lib/freopen.c (__need_FILE): Likewise.
45749         * lib/open.c (__need_system_fcntl_h): Likewise.
45750         * lib/stat.c (__need_system_sys_stat_h): Likewise.
45751         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
45752         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
45754 2011-08-25  Karl Berry  <karl@gnu.org>
45756         * config/srclist.txt (ylwrap): new try.
45757         * build-aux/ylwrap: new file.
45759 2011-08-23  Bruno Haible  <bruno@clisp.org>
45761         tmpdir: Use a good default directory on native Windows.
45762         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
45763         (P_tmpdir): Default to _P_tmpdir on native Windows.
45764         (path_search): On native Windows, try the value returned by GetTempPath
45765         before trying P_tmpdir.
45766         * modules/tmpdir (Depends-on): Add pathmax.
45767         Suggested by John Darrington <john@darrington.wattle.id.au>.
45769 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
45771         doc: fix typo in README-release
45772         * top/README-release: Capitalize first word of a sentence.
45774 2011-08-19  Jim Meyering  <meyering@redhat.com>
45776         fts: do not exhaust memory when processing million-entry directories
45777         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
45778         directory would require about 256*N bytes of memory.  Thus, it was
45779         easy to construct a directory too large to be processed by any of
45780         those tools.  With this change, fts' maximum memory utilization is
45781         now limited to around 30MB.
45782         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
45783         (fts_read): When we've processed the final entry (i.e., when
45784         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
45785         using the parent entry to read any remaining entries.  Dispatch
45786         depending on what fts_build returns:
45787         - NULL+stop, aka failure: stop
45788         - NULL otherwise: move up in the dir hierarchy
45789         - non-NULL: handle this new entry
45790         (fts_build): Declare and use new local, continue_readdir.
45791         Prepare to be called from fts_read, when the entries
45792         from a partially-read directory have just been exhausted.
45793         In that case, we'll skip the opendir and instead use the parent's
45794         fts_dirp and derive dir_fd from that.
45795         Finally, in the readdir loop, if we read max_entries entries,
45796         exit the loop ensuring *not* to call closedir.  This is required
45797         so that fts_dirp can be reused on a subsequent call.
45798         Prompted by Ben England's report of memory exhaustion in find
45799         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
45801         maint: fts: move decl of `dp' down into while loop; split a long line
45802         * lib/fts.c (fts_build): No semantic change.
45804         fts: add/use new struct member, fts_dirp
45805         We are about to use this to manage any directory with
45806         too many entries to read all of them into memory at once.
45807         To do that, we'll need to save the DIR* pointer in each
45808         affected FTSENT struct.
45809         * lib/fts_.h: Include <dirent.h>.
45810         (struct FTSENT) [fts_dirp]: New member.
45811         * lib/fts.c (closedir_and_clear): Define.
45812         Use it in place of closedir so that we are sure to
45813         clear the new fts_dirp member when done with it.
45814         (fts_alloc): Initialize the new member.
45815         (fts_lfree): Free, if needed.
45817         maint: fts: give __opendir2 a new parameter and rename
45818         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
45819         than surreptitiously using sole caller's "dir_fd".
45820         (fts_opendir): Rename from __opendir2.
45822         maint: fts.c: remove __opendir2's now-unused parameter, oflag
45823         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
45825         maint: fts.c: correct off-by-one indentation
45826         * lib/fts.c (fts_build): Correct indentation, change style
45827         of a couple of block comments, and bracing style.
45829         maint: fts.c: move __opendir2 #define "up" out of function body
45830         * lib/fts.c (__opendir2): Move "up".  No semantic change.
45832         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
45833         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
45834         out for a long time and besides was useful only on BSD systems.
45836 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
45838         regex: port to Stratus OpenVOS
45839         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
45840         define to empty, rather than attempting nonportable optimizations.
45841         Problem reported by Paul Green in:
45842         http://lists.gnu.org/r/bug-diffutils/2011-08/msg00047.html
45843         and fix suggested by Eric Blake in:
45844         http://lists.gnu.org/r/bug-gnulib/2011-08/msg00143.html
45846 2011-08-17  Eric Blake  <eblake@redhat.com>
45848         getcwd: fix test failures on mingw
45849         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
45850         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
45851         test if long directory cannot be created, and allow mingw errno.
45853         getcwd-lgpl: fix m4 to match relaxed test for BSD
45854         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
45855         (gl_FUNC_GETCWD_SIGNATURE): New macro.
45856         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
45857         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
45858         signature problem.
45860         getcwd: fix compilation on mingw64
45861         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
45862         getcwd.
45863         Reported by Marc-André Lureau.
45865         pipe2: silence compiler warning
45866         * lib/pipe2.c (pipe2): Hide label if it is not used.
45868 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
45870         relocatable-prog: fix link error
45871         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
45872         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
45873         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
45874         into modules/relocatable-lib without noticing that
45875         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
45876         also needs to build relocatable.c.
45878 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
45880         getaddrinfo: fix sh typo in gai_strerrorA decl checking
45881         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
45882         shell code: it contained a 'break' that was not in a loop.
45883         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
45884         via a shell-language loop; this may have been true in old Autoconf
45885         versions, but it's not true in Autoconf 2.68.  I found this bug
45886         when testing coreutils git on Solaris 8, whose shell complains
45887         about the syntax error.
45889 2011-08-12  Simon Josefsson  <simon@josefsson.org>
45891         * lib/base64.c: Fix comment to reference RFC 4648.
45892         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
45893         <gvtulder@gmail.com>.
45895 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
45897         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
45899         po/Makefile.in.in: fix make -q problem
45900         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
45901         rule, since there's no file named 'check-macro-version' and its
45902         use as a file breaks make -q.
45903         (all): Don't depend on check-macro-version.
45904         (CHECK_MACRO_VERSION): New macro.
45905         (stamp-po): Use it.
45907         configmake: fix make -q problem
45908         * modules/configmake (configmake.h): Update configmake.h's time stamp
45909         even if the file does not change.  Otherwise, 'make -q' fails.
45910         Problem reported by Simon Josefsson in
45911         <http://lists.gnu.org/r/bug-gnulib/2011-08/msg00088.html>.
45913 2011-08-11  Jim Meyering  <meyering@redhat.com>
45915         git-version-gen: correct the advice in a comment
45916         * build-aux/git-version-gen: Correct comment.
45917         Don't recommend to list .tarball-version in .gitignore.
45919 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
45921         base64: fix off-by-one buffer size bug
45922         Problem and (trivial) fix reported by Gijs van Tulder in
45923         <http://lists.gnu.org/r/bug-gnulib/2011-08/msg00083.html>.
45924         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
45925         * tests/test-base64.c (main): Catch the bug.
45927 2011-08-10  Eric Blake  <eblake@redhat.com>
45929         closein: correct comments
45930         * lib/closein.c (close_stdin): Improve comments.
45932 2011-08-09  Bruno Haible  <bruno@clisp.org>
45934         More tests for 'fseeko'.
45935         * tests/test-fseeko3.c: New file, from Eric Blake.
45936         * tests/test-fseeko3.sh: New file.
45937         * modules/fseeko-tests (Files): Add them.
45938         (TESTS): Add test-fseeko3.sh.
45939         (check_PROGRAMS): Add test-fseeko3.
45941 2011-08-09  Eric Blake  <eblake@redhat.com>
45943         fseeko: remove unneeded hack
45944         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
45946         fseeko: fix bug on glibc
45947         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
45948         Reported by John W. Eaton.
45950 2011-08-08  Bruno Haible  <bruno@clisp.org>
45952         unictype/base: Fix interoperability with preinstalled libunistring.
45953         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
45954         Reported by Simon Josefsson.
45956 2011-08-08  Bruno Haible  <bruno@clisp.org>
45958         iswblank: Detect declaration correctly.
45959         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
45960         AC_CHECK_DECLS invocation.
45962 2011-08-08  Bruno Haible  <bruno@clisp.org>
45964         tcgetsid: Detect declaration correctly.
45965         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
45966         AC_CHECK_DECLS invocation.
45967         Reported by Simon Josefsson.
45969 2011-08-08  Eric Blake  <eblake@redhat.com>
45971         largefile: fix typo that regressed large file support
45972         * modules/largefile (configure.ac-early): Fix section name.
45974 2011-08-06  Karl Berry  <karl@gnu.org>
45976         * MODULES.html.sh (func_all_files): _Noreturn is no longer
45977         a separate module.
45979 2011-08-05  Simon Josefsson  <simon@josefsson.org>
45981         openat: Fix warnings and commens when building unlinkat.c on Hurd.
45982         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
45983         get prototype for free.
45985 2011-08-04  Bruno Haible  <bruno@clisp.org>
45987         Tests for module 'pathmax'.
45988         * modules/pathmax-tests: New file.
45989         * tests/test-pathmax.c: New file.
45991         canonicalize-lgpl: Support larger filenames on the Hurd.
45992         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
45993         Reported by Paul Eggert.
45995         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
45996         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
45997         * lib/chdir-long.h: Include pathmax.h.
45998         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
45999         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
46000         (PATH_MAX): Remove code that is done by pathmax.h.
46001         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
46002         * lib/tmpfile.c: Add a comment.
46003         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
46004         * modules/chdir-long (Depends-on): Add pathmax.
46005         * modules/getcwd (Depends-on): Add pathmax.
46006         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
46007         is not defined.
46008         * doc/posix-headers/limits.texi: Mention the pathmax module.
46009         * NEWS: Mention the change.
46011 2011-08-02  Bruno Haible  <bruno@clisp.org>
46013         pthread_sigmask: Actually use results of gl_THREADLIB.
46014         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
46015         gl_THREADLIB, not gl_[]THREADLIB.
46016         Reported by Eric Blake.
46018 2011-08-02  Jim Meyering  <meyering@redhat.com>
46020         maint.mk: relax the default _gl_TS_function_match regexp
46021         * top/maint.mk (_gl_TS_function_match): Don't require at least one
46022         space between function name and "(" in an "extern" declaration.
46023         That would fail to match a decl with no space there: extern void foo();
46025 2011-07-31  Iain Nicol  <iain@thenicols.net>
46027         git-version-gen: document that EXTRA_DIST must include .version
46028         * build-aux/git-version-gen: In the how-to-use comment, document
46029         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
46030         will fail when run from an unpacked distribution tarball.
46032 2011-08-01  Bruno Haible  <bruno@clisp.org>
46034         wctype-h: Fix last change.
46035         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
46036         REPLACE_TOWLOWER to 0.
46037         Reported by Sam Steingold <sds@gnu.org>.
46039 2011-07-31  Bruno Haible  <bruno@clisp.org>
46041         frexpl: Update autoconf test.
46042         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
46043         according to changes of 2011-06-20.
46045 2011-07-31  Bruno Haible  <bruno@clisp.org>
46047         sys_utsname: Add support for Minix.
46048         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
46049         <sys/utsname.h>.
46050         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
46051         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
46053 2011-07-31  Bruno Haible  <bruno@clisp.org>
46055         strings: Add support for Minix.
46056         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
46057         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
46058         * doc/posix-headers/strings.texi: Document the Minix problem.
46060 2011-07-31  Bruno Haible  <bruno@clisp.org>
46062         wctype-h: Add support for Minix.
46063         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
46064         REPLACE_TOWLOWER.
46065         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
46066         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
46067         REPLACE_ISWCNTRL.
46069 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
46071         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
46072         This is a performance improvement for 64-bit hosts: it causes the
46073         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
46075 2011-07-31  Bruno Haible  <bruno@clisp.org>
46077         stdioext: Add support for Minix.
46078         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
46079         * lib/fpurge.c (fpurge): Likewise.
46080         * lib/freadahead.c (freadahead): Likewise.
46081         * lib/freadable.c (freadable): Likewise.
46082         * lib/freading.c (freading): Likewise.
46083         * lib/freadptr.c (freadptr): Likewise.
46084         * lib/freadseek.c (freadptrinc): Likewise.
46085         * lib/fseeko.c (rpl_fseeko): Likewise.
46086         * lib/fseterr.c (fseterr): Likewise.
46087         * lib/fwritable.c (fwritable): Likewise.
46088         * lib/fwriting.c (fwriting): Likewise.
46089         * lib/fflush.c (clear_ungetc_buffer): Update comment.
46090         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
46092 2011-07-31  Bruno Haible  <bruno@clisp.org>
46094         errno: Port to Minix.
46095         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
46096         ECONNABORTED are defined.
46097         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
46098         GNULIB_defined_ECONNABORTED): New macros.
46099         * lib/strerror-override.h (strerror_override): Test also
46100         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
46101         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
46102         ECONNABORTED.
46103         * doc/posix-headers/errno.texi: Mention the Minix problem.
46105 2011-07-31  Bruno Haible  <bruno@clisp.org>
46107         Work around declaration collisions on Minix.
46108         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
46109         defined, set REPLACE_MBSINIT.
46110         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
46111         defined, set REPLACE_MBRTOWC.
46112         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
46113         set REPLACE_MBRLEN.
46114         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
46115         defined, set REPLACE_MBSRTOWCS.
46116         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
46117         defined, set REPLACE_WCRTOMB.
46118         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
46119         defined, set REPLACE_WCSRTOMBS.
46121 2011-07-31  Bruno Haible  <bruno@clisp.org>
46123         Add support for Minix with ACK compiler.
46124         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
46125         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
46126         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
46128 2011-07-31  Bruno Haible  <bruno@clisp.org>
46130         Documentation about Minix.
46131         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
46132         * doc/glibc-headers/*.texi: Likewise.
46133         * doc/posix-functions/*.texi: Likewise.
46134         * doc/glibc-functions/*.texi: Likewise.
46136 2011-07-31  Bruno Haible  <bruno@clisp.org>
46138         snippet/warn-on-use: Fix indentation.
46139         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
46141 2011-07-25  Jim Meyering  <meyering@redhat.com>
46143         tests: test-update-copyright.sh: remove unnecessary "rm" commands
46144         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
46145         commands.
46147 2011-07-27  Jim Meyering  <meyering@redhat.com>
46149         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
46150         * top/maint.mk (gl_extract_significant_defines_): Now that
46151         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
46152         gnulib/lib/signal.in.h, and now that we recommend to
46153         define-if-undefined those two symbols in application code,
46154         we must filter them out of the "significant" list.
46155         This avoids a "make syntax-check" failure in coreutils.
46157 2011-07-26  Eric Blake  <eblake@redhat.com>
46159         warnings: add comments about previous patch
46160         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
46161         * m4/include_next.m4: Likewise.
46162         * m4/warn-on-use.m4: Likewise.
46163         * m4/warnings.m4: Likewise, and simplify use.
46164         Suggested by Stefano Lattarini.
46166         include-next, warnings: support older autoconf
46167         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
46168         AS_VAR_PUSHDEF in a way that works with older autoconf.
46169         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
46170         Reported by Daniel P. Berrange.
46172 2011-07-25  Bruno Haible  <bruno@clisp.org>
46174         fseek, ftell: Fix doc.
46175         * doc/posix-functions/fseek.texi: Reword statement about
46176         AC_SYS_LARGEFILE.
46177         * doc/posix-functions/ftell.texi: Likewise.
46179 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
46180             Bruno Haible  <bruno@clisp.org>
46182         Add dependencies to the 'largefile' module.
46183         * modules/fopen (Depends-on): Add 'largefile'.
46184         * modules/freopen (Depends-on): Likewise.
46185         * modules/fseeko (Depends-on): Likewise.
46186         * modules/ftello (Depends-on): Likewise.
46187         * modules/glob (Depends-on): Likewise.
46188         * modules/lseek (Depends-on): Likewise.
46189         * modules/lstat (Depends-on): Likewise.
46190         * modules/mkostemp (Depends-on): Likewise.
46191         * modules/mkostemps (Depends-on): Likewise.
46192         * modules/mkstemp (Depends-on): Likewise.
46193         * modules/mkstemps (Depends-on): Likewise.
46194         * modules/open (Depends-on): Likewise.
46195         * modules/openat (Depends-on): Likewise.
46196         * modules/pread (Depends-on): Likewise.
46197         * modules/pwrite (Depends-on): Likewise.
46198         * modules/scandir (Depends-on): Likewise.
46199         * modules/stat (Depends-on): Likewise.
46200         * modules/tmpfile (Depends-on): Likewise.
46201         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
46202         since the containing module now depends on the largefile module.
46203         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
46204         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
46205         off_t is fixed by gnulib.
46206         * doc/posix-functions/freopen.texi: Likewise.
46207         * doc/posix-functions/fseeko.texi: Likewise.
46208         * doc/posix-functions/fstatat.texi: Likewise.
46209         * doc/posix-functions/ftello.texi: Likewise.
46210         * doc/posix-functions/glob.texi: Likewise.
46211         * doc/posix-functions/lseek.texi: Likewise.
46212         * doc/posix-functions/lstat.texi: Likewise.
46213         * doc/posix-functions/mkstemp.texi: Likewise.
46214         * doc/posix-functions/open.texi: Likewise.
46215         * doc/posix-functions/openat.texi: Likewise.
46216         * doc/posix-functions/pread.texi: Likewise.
46217         * doc/posix-functions/pwrite.texi: Likewise.
46218         * doc/posix-functions/scandir.texi: Likewise.
46219         * doc/posix-functions/stat.texi: Likewise.
46220         * doc/posix-functions/tmpfile.texi: Likewise.
46221         * doc/glibc-functions/mkostemp.texi: Likewise.
46222         * doc/glibc-functions/mkostemps.texi: Likewise.
46223         * doc/glibc-functions/mkstemps.texi: Likewise.
46225 2011-07-25  Bruno Haible  <bruno@clisp.org>
46227         fcntl: Move AC_LIBOBJ invocation to module description.
46228         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
46229         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
46231         fcntl: Remove call-in from fchdir.m4.
46232         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
46233         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
46235         dup3: Remove potential call-in from fchdir.m4.
46236         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
46237         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
46239         dup2: Move AC_LIBOBJ invocation to module description.
46240         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
46241         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
46242         Don't invoke AC_LIBOBJ.
46243         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
46245         dup2: Remove call-in from fchdir.m4.
46246         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
46247         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
46249         fclose: Move AC_LIBOBJ invocation to module description.
46250         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
46251         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
46252         to 1.
46253         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
46255         fclose: Remove call-in from close.m4.
46256         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
46257         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
46259         close: Move AC_LIBOBJ invocation to module description.
46260         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
46261         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
46262         1.
46263         * modules/close (configure.ac): Invoke AC_LIBOBJ.
46265         close: Remove call-in from fchdir.m4.
46266         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
46267         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
46269         open: Move AC_LIBOBJ invocation to module description.
46270         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
46271         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
46272         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
46274         open: Remove call-in from fchdir.m4.
46275         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
46276         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
46278         fchdir: Start to remove gl_REPLACE_* idiom.
46279         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
46280         (gl_FUNC_FCHDIR): Invoke it.
46282 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
46284         * lib/ftell.c (ftell): Comment out cast.
46286         close: use gl_REPLACE_FCLOSE only if defined
46287         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
46288         is defined.  The close module doesn't depend on the fclose module
46289         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
46290         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00392.html>.
46291         I reproduced the problem with "./gnulib-tool --test close sys_socket".
46293 2011-07-24  Jim Meyering  <meyering@redhat.com>
46295         test-select.h: avoid warning when using gcc's -Wmissing-declarations
46296         * tests/test-select.h (test_function): Declare as "static".
46298 2011-07-24  Bruno Haible  <bruno@clisp.org>
46300         doc: Mention the effects of AC_SYS_LARGEFILE.
46301         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
46302         on this function.
46303         * doc/posix-functions/aio_error.texi: Likewise.
46304         * doc/posix-functions/aio_fsync.texi: Likewise.
46305         * doc/posix-functions/aio_read.texi: Likewise.
46306         * doc/posix-functions/aio_return.texi: Likewise.
46307         * doc/posix-functions/aio_suspend.texi: Likewise.
46308         * doc/posix-functions/aio_write.texi: Likewise.
46309         * doc/posix-functions/fgetpos.texi: Likewise.
46310         * doc/posix-functions/fopen.texi: Likewise.
46311         * doc/posix-functions/freopen.texi: Likewise.
46312         * doc/posix-functions/fsetpos.texi: Likewise.
46313         * doc/posix-functions/fstatvfs.texi: Likewise.
46314         * doc/posix-functions/ftruncate.texi: Likewise.
46315         * doc/posix-functions/ftw.texi: Likewise.
46316         * doc/posix-functions/getrlimit.texi: Likewise.
46317         * doc/posix-functions/glob.texi: Likewise.
46318         * doc/posix-functions/lio_listio.texi: Likewise.
46319         * doc/posix-functions/lockf.texi: Likewise.
46320         * doc/posix-functions/mkstemp.texi: Likewise.
46321         * doc/posix-functions/mmap.texi: Likewise.
46322         * doc/posix-functions/nftw.texi: Likewise.
46323         * doc/posix-functions/openat.texi: Likewise.
46324         * doc/posix-functions/opendir.texi: Likewise.
46325         * doc/posix-functions/posix_fadvise.texi: Likewise.
46326         * doc/posix-functions/posix_fallocate.texi: Likewise.
46327         * doc/posix-functions/pread.texi: Likewise.
46328         * doc/posix-functions/pwrite.texi: Likewise.
46329         * doc/posix-functions/readdir.texi: Likewise.
46330         * doc/posix-functions/readdir_r.texi: Likewise.
46331         * doc/posix-functions/rewinddir.texi: Likewise.
46332         * doc/posix-functions/scandir.texi: Likewise.
46333         * doc/posix-functions/seekdir.texi: Likewise.
46334         * doc/posix-functions/setrlimit.texi: Likewise.
46335         * doc/posix-functions/statvfs.texi: Likewise.
46336         * doc/posix-functions/telldir.texi: Likewise.
46337         * doc/posix-functions/tmpfile.texi: Likewise.
46338         * doc/posix-functions/truncate.texi: Likewise.
46339         * doc/glibc-functions/fallocate.texi: Likewise.
46340         * doc/glibc-functions/fstatfs.texi: Likewise.
46341         * doc/glibc-functions/fts_children.texi: Likewise.
46342         * doc/glibc-functions/fts_read.texi: Likewise.
46343         * doc/glibc-functions/getdirentries.texi: Likewise.
46344         * doc/glibc-functions/mkostemp.texi: Likewise.
46345         * doc/glibc-functions/mkostemps.texi: Likewise.
46346         * doc/glibc-functions/mkstemps.texi: Likewise.
46347         * doc/glibc-functions/preadv.texi: Likewise.
46348         * doc/glibc-functions/pwritev.texi: Likewise.
46349         * doc/glibc-functions/sendfile.texi: Likewise.
46350         * doc/glibc-functions/statfs.texi: Likewise.
46352 2011-07-24  Bruno Haible  <bruno@clisp.org>
46354         doc: Fix typo.
46355         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
46357 2011-07-24  Bruno Haible  <bruno@clisp.org>
46359         doc: Mention fsusage.
46360         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
46362 2011-07-24  Bruno Haible  <bruno@clisp.org>
46364         doc: Mention new glibc headers and functions.
46365         * doc/glibc-headers/gshadow.texi: New file.
46366         * doc/glibc-functions/endsgent.texi: New file.
46367         * doc/glibc-functions/fgetsgent.texi: New file.
46368         * doc/glibc-functions/fgetsgent_r.texi: New file.
46369         * doc/glibc-functions/getsgent.texi: New file.
46370         * doc/glibc-functions/getsgent_r.texi: New file.
46371         * doc/glibc-functions/getsgnam.texi: New file.
46372         * doc/glibc-functions/getsgnam_r.texi: New file.
46373         * doc/glibc-functions/putsgent.texi: New file.
46374         * doc/glibc-functions/setsgent.texi: New file.
46375         * doc/glibc-functions/sgetsgent.texi: New file.
46376         * doc/glibc-functions/sgetsgent_r.texi: New file.
46377         * doc/glibc-functions/malloc_info.texi: New file.
46378         * doc/glibc-functions/preadv.texi: New file.
46379         * doc/glibc-functions/pwritev.texi: New file.
46380         * doc/glibc-functions/register_printf_modifier.texi: New file.
46381         * doc/glibc-functions/register_printf_specifier.texi: New file.
46382         * doc/glibc-functions/register_printf_type.texi: New file.
46383         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
46384         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
46385         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
46386         * doc/glibc-functions/pthread_getname_np.texi: New file.
46387         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
46388         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
46389         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
46390         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
46391         * doc/glibc-functions/pthread_setname_np.texi: New file.
46392         * doc/glibc-functions/pthread_sigqueue.texi: New file.
46393         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
46394         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
46395         * doc/glibc-functions/qsort_r.texi: New file.
46396         * doc/glibc-functions/quick_exit.texi: New file.
46397         * doc/glibc-functions/syncfs.texi: New file.
46398         * doc/gnulib.texi: Include them.
46399         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
46400         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
46401         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
46402         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
46403         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
46404         * doc/glibc-functions/execvpe.texi: Likewise.
46406 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
46408         ftell: don't include <unistd.h>
46409         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
46410         guaranteed to define off_t, and the ftell module depends on the
46411         stdio module.
46413         ftell: do not assume wraparound signed arithmetic
46414         * lib/ftell.c: Include <limits.h>.
46415         (ftell): Don't assume wraparound signed arithmetic.
46417 2011-07-24  Bruno Haible  <bruno@clisp.org>
46419         close: No longer depend on module 'fclose'.
46420         * modules/close (Depends-on): Remove fclose.
46421         * NEWS: Mention the change.
46422         Suggested by Sam Steingold <sds@gnu.org>.
46424 2011-07-24  Bruno Haible  <bruno@clisp.org>
46426         fsusage: Enable large volume support on AIX >= 5.2.
46427         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
46428         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
46429         instead of STAT_STATVFS.
46430         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
46432         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
46433         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
46434         f_blocks field only on MacOS X.
46436         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
46437         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
46438         * modules/fsusage (Depends-on): Add largefile.
46440 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
46442         * README: Modernize discussion of signed integers.
46443         Assuming overflow wraparound is no longer safe.
46444         Mention ones' complement and signed magnitude.
46446 2011-07-22  Bruno Haible  <bruno@clisp.org>
46448         select tests, pselect tests: Refactor.
46449         * tests/test-select.h: New file, extracted from tests/test-select.c.
46450         (select_fn): New type.
46451         (test, do_select, do_select_nowait, do_select_wait, test_tty,
46452         test_connect_first, test_accept_first, test_pair, test_socket_pair,
46453         test_pipe): Add my_select argument.
46454         (test_function): Renamed from main. Add my_select argument.
46455         * tests/test-select.c: Move most code to tests/test-select.h. Include
46456         test-select.h.
46457         * modules/select-tests (Files): Add tests/test-select.h.
46458         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
46459         (my_select, main): New functions.
46460         * modules/pselect-tests (Files): Add tests/test-select.h,
46461         tests/macros.h, tests/signature.h.
46462         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
46463         (configure.ac): Check for <sys/wait.h>.
46465 2011-07-22  Bruno Haible  <bruno@clisp.org>
46467         sys_select tests: Check the signature of FD_*.
46468         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
46469         signature tests from here...
46470         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
46471         here.
46472         * modules/sys_select-tests (Files): Add tests/signature.h.
46474 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
46476         largefile: new module, replacing large-inode
46477         Pádraig Brady suggested this in <http://debbugs.gnu.org/9140#20>.
46478         * MODULES.html.sh: Add largefile, remove large-inode.
46479         * modules/largefile, m4/largefile.m4: New files.
46480         * modules/large-inode, m4/large-inode.m4: Remove.
46482         fsusage: port to MacOS X 10.7 with 4 TiB file systems
46483         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
46484         implementations that use only 32 bits to count blocks.
46485         On typical hosts with 1024-byte blocks, this fails with file
46486         systems as small as 4 TiB.  Problem reported by Herb Wartens
46487         <http://debbugs.gnu.org/9140> and this should also fix a similar
46488         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
46490         large-inode: New module
46491         * MODULES.html.sh: Add it.
46492         * modules/large-inode, m4/large-inode.m4: New files.
46494         extensions: Enable extensions on MacOS X 10.5 and later.
46495         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
46497 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
46499         file-has-acl: use acl_extended_file_nofollow if available
46500         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
46501         (acl_extended_file): New macro.
46502         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
46503         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
46505 2011-07-21  Bruno Haible  <bruno@clisp.org>
46507         Declare system functions in a way that works with C++.
46508         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
46509         declare fdopendir as extern "C".
46510         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
46511         declare frexpl as extern "C".
46512         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
46513         declare gai_strerror as extern "C".
46514         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
46515         programs, declare gai_strerror as extern "C".
46516         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
46517         declare getlogin_r as extern "C".
46518         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
46519         as extern "C".
46520         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
46521         declare ldexpl as extern "C".
46522         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
46523         as extern "C".
46524         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
46525         program, declare getmntinfo as extern "C".
46526         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
46527         stpncpy as extern "C".
46528         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
46529         program, declare __xpg_strerror_r as extern "C".
46530         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
46531         strndup as extern "C".
46532         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
46533         declare memset and bzero as extern "C".
46534         Reported by Sam Steingold <sds@gnu.org>.
46536 2011-07-12  Jim Meyering  <meyering@redhat.com>
46538         maint.mk: prohibit inclusion of "verify.h" without use
46539         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
46541 2011-07-19  Pádraig Brady  <P@draigBrady.com>
46543         timer-time: A new module to check for timer_settime()
46544         * m4/timer_time.m4: Check for the posix function.
46545         * modules/timer-time: Add the new module.
46546         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
46547         Mention it.
46549 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
46550             Bruno Haible  <bruno@clisp.org>
46552         pthread_sigmask: assume POSIX threads if --avoid=threadlib
46553         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
46554         not defined, assume POSIX threads and look for pthread_sigmask in
46555         $LIBS, without changing $CPPFLAGS.
46557 2011-07-19  Bruno Haible  <bruno@clisp.org>
46559         strstr: Update cross-compilation guess.
46560         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
46561         CPUs, guess no, in view of glibc
46562         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
46563         Suggested by Eric Blake. Reported by Reuben Thomas.
46565 2011-07-19  Pádraig Brady  <P@draigBrady.com>
46567         getopt-gnu: suppress core dumps from detection code
46568         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
46569         to suppress core dumps that may well occur on glibc systems.
46570         * modules/getopt-gnu: Depend on nocrash.
46572 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
46574         pthread_sigmask: ensure usleep is declared
46575         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
46576         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
46578 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
46580         doc: Document NonStop portability issues.
46581         * doc/posix-functions/sigaction.texi (sigaction):
46582         * doc/posix-headers/signal.texi (signal.h):
46583         Document NonStop.  See Joachim Schmitz in
46584         http://lists.gnu.org/r/bug-coreutils/2011-07/msg00062.html
46586 2011-07-15  Bruno Haible  <bruno@clisp.org>
46588         ffsl, ffsll: Avoid unportable behaviour.
46589         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
46591 2011-07-15  Bruno Haible  <bruno@clisp.org>
46593         ffs: More tests.
46594         * tests/test-ffs.c (NBITS): New macro.
46595         (main): Add more tests.
46596         * tests/test-ffsl.c (NBITS): New macro.
46597         (main): Add more tests.
46598         * tests/test-ffsll.c (NBITS): New macro.
46599         (main): Add more tests.
46601 2011-07-15  Eric Blake  <eblake@redhat.com>
46603         ffsl, ffsll: new modules
46604         * modules/ffsl: New file.
46605         * modules/ffsll: Likewise.
46606         * m4/ffsl.m4: Likewise.
46607         * m4/ffsll.m4: Likewise.
46608         * lib/ffsl.c: Likewise.
46609         * lib/ffsl.h: Likewise.
46610         * lib/ffsll.c: Likewise.
46611         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
46612         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
46613         * modules/string (Makefile.am): Substitute witnesses.
46614         * lib/strings.in.h (ffsl, ffsll): Declare.
46615         * modules/ffsl-tests: New test file.
46616         * modules/ffsll-tests: Likewise.
46617         * tests/test-ffsl.c: Likewise.
46618         * tests/test-ffsll.c: Likewise.
46619         * MODULES.html.sh (Integer arithmetic functions): Mention it.
46620         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
46621         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
46623         ffs: fix m4 prerequisite
46624         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
46626         ffs: avoid undefined behavior
46627         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
46628         * tests/test-ffs.c (naive, main): Avoid signed shifts.
46629         Reported by Bruno Haible.
46631 2011-07-12  Bruno Haible  <bruno@clisp.org>
46633         pthread_sigmask: Rely on module 'threadlib'.
46634         * modules/pthread_sigmask (Depends-on): Add threadlib.
46635         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
46636         is defined.
46638 2011-07-12  Bruno Haible  <bruno@clisp.org>
46640         regex: Depend on module 'strcase'.
46641         * modules/regex (Depends-on): Add strcase, for strcasecmp().
46643 2011-07-12  Jim Meyering  <meyering@redhat.com>
46645         warn-on-use: fix typo in file name
46646         * modules/snippet/warn-on-use (Files): Correct file name:
46647         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
46649 2011-07-12  Bruno Haible  <bruno@clisp.org>
46651         strings: Document module.
46652         * doc/posix-headers/strings.texi: Mention module 'strings'.
46654 2011-07-12  Bruno Haible  <bruno@clisp.org>
46656         Rename module '_Noreturn' to 'snippet/_Noreturn'.
46657         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
46658         (Files, Makefile.am): Update.
46659         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
46660         * modules/stdlib (Depends-on): Update.
46662 2011-07-12  Bruno Haible  <bruno@clisp.org>
46664         * NEWS: Mention the changes.
46666         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
46667         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
46668         (Files, Makefile.am): Update.
46669         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
46670         * modules/arpa_inet (Depends-on): Update.
46671         * modules/ctype (Depends-on): Update.
46672         * modules/dirent (Depends-on): Update.
46673         * modules/fcntl-h (Depends-on): Update.
46674         * modules/glob (Depends-on): Update.
46675         * modules/iconv-h (Depends-on): Update.
46676         * modules/inttypes-incomplete (Depends-on): Update.
46677         * modules/langinfo (Depends-on): Update.
46678         * modules/locale (Depends-on): Update.
46679         * modules/math (Depends-on): Update.
46680         * modules/netdb (Depends-on): Update.
46681         * modules/poll-h (Depends-on): Update.
46682         * modules/pty (Depends-on): Update.
46683         * modules/search (Depends-on): Update.
46684         * modules/signal (Depends-on): Update.
46685         * modules/spawn (Depends-on): Update.
46686         * modules/stdio (Depends-on): Update.
46687         * modules/stdlib (Depends-on): Update.
46688         * modules/string (Depends-on): Update.
46689         * modules/strings (Depends-on): Update.
46690         * modules/sys_file (Depends-on): Update.
46691         * modules/sys_ioctl (Depends-on): Update.
46692         * modules/sys_select (Depends-on): Update.
46693         * modules/sys_socket (Depends-on): Update.
46694         * modules/sys_stat (Depends-on): Update.
46695         * modules/sys_time (Depends-on): Update.
46696         * modules/sys_times (Depends-on): Update.
46697         * modules/sys_utsname (Depends-on): Update.
46698         * modules/sys_wait (Depends-on): Update.
46699         * modules/termios (Depends-on): Update.
46700         * modules/time (Depends-on): Update.
46701         * modules/unistd (Depends-on): Update.
46702         * modules/wchar (Depends-on): Update.
46703         * modules/wctype-h (Depends-on): Update.
46704         * MODULES.html.sh (Support for building libraries and executables):
46705         Update.
46707         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
46708         * modules/snippet/unused-parameter: Renamed from
46709         modules/unused-parameter.
46710         (Files, Makefile.am): Update.
46711         * build-aux/snippet/unused-parameter.h: Renamed from
46712         build-aux/unused-parameter.h.
46713         * modules/selinux-h (Depends-on): Update.
46714         * modules/unistr/base (Depends-on): Update.
46715         * MODULES.html.sh (Core language properties): Update.
46717         Rename module 'link-warning' to 'snippet/link-warning'.
46718         * modules/snippet/link-warning: Renamed from modules/link-warning.
46719         (Files, Makefile.am): Update.
46720         * build-aux/snippet/link-warning.h: Renamed from
46721         build-aux/link-warning.h.
46722         * MODULES.html.sh (Support for building libraries and executables):
46723         Update.
46725         Rename module 'c++defs' to 'snippet/c++defs'.
46726         * modules/snippet/c++defs: Renamed from modules/c++defs.
46727         (Files, Makefile.am): Update.
46728         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
46729         * modules/arpa_inet (Depends-on): Update.
46730         * modules/ctype (Depends-on): Update.
46731         * modules/dirent (Depends-on): Update.
46732         * modules/fcntl-h (Depends-on): Update.
46733         * modules/glob (Depends-on): Update.
46734         * modules/iconv-h (Depends-on): Update.
46735         * modules/langinfo (Depends-on): Update.
46736         * modules/locale (Depends-on): Update.
46737         * modules/math (Depends-on): Update.
46738         * modules/netdb (Depends-on): Update.
46739         * modules/poll-h (Depends-on): Update.
46740         * modules/pty (Depends-on): Update.
46741         * modules/search (Depends-on): Update.
46742         * modules/signal (Depends-on): Update.
46743         * modules/spawn (Depends-on): Update.
46744         * modules/stdio (Depends-on): Update.
46745         * modules/stdlib (Depends-on): Update.
46746         * modules/string (Depends-on): Update.
46747         * modules/strings (Depends-on): Update.
46748         * modules/sys_ioctl (Depends-on): Update.
46749         * modules/sys_select (Depends-on): Update.
46750         * modules/sys_socket (Depends-on): Update.
46751         * modules/sys_stat (Depends-on): Update.
46752         * modules/sys_time (Depends-on): Update.
46753         * modules/sys_wait (Depends-on): Update.
46754         * modules/termios (Depends-on): Update.
46755         * modules/time (Depends-on): Update.
46756         * modules/unistd (Depends-on): Update.
46757         * modules/wchar (Depends-on): Update.
46758         * modules/wctype-h (Depends-on): Update.
46760         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
46761         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
46762         (Files, Makefile.am): Update.
46763         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
46764         * modules/argv-iter (Depends-on): Update.
46765         * modules/arpa_inet (Depends-on): Update.
46766         * modules/dirent (Depends-on): Update.
46767         * modules/fcntl-h (Depends-on): Update.
46768         * modules/fnmatch (Depends-on): Update.
46769         * modules/getopt-posix (Depends-on): Update.
46770         * modules/glob (Depends-on): Update.
46771         * modules/iconv-h (Depends-on): Update.
46772         * modules/inttypes-incomplete (Depends-on): Update.
46773         * modules/locale (Depends-on): Update.
46774         * modules/math (Depends-on): Update.
46775         * modules/netdb (Depends-on): Update.
46776         * modules/search (Depends-on): Update.
46777         * modules/signal (Depends-on): Update.
46778         * modules/spawn (Depends-on): Update.
46779         * modules/stdio (Depends-on): Update.
46780         * modules/stdlib (Depends-on): Update.
46781         * modules/string (Depends-on): Update.
46782         * modules/strings (Depends-on): Update.
46783         * modules/sys_socket (Depends-on): Update.
46784         * modules/sys_stat (Depends-on): Update.
46785         * modules/sys_time (Depends-on): Update.
46786         * modules/sys_times (Depends-on): Update.
46787         * modules/sys_utsname (Depends-on): Update.
46788         * modules/time (Depends-on): Update.
46789         * modules/unistd (Depends-on): Update.
46790         * modules/wchar (Depends-on): Update.
46791         * MODULES.html.sh (Support for building libraries and executables):
46792         Update.
46794 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
46796         Improvements on _Noreturn and related modules.
46798         modules/_Exit-tests: test _Noreturn too
46799         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
46800         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
46801         (main): Use them.
46803         stdnoreturn, stdnoreturn-tests: remove modules
46804         They're not needed here and a bit premature for use elsewhere.  See
46805         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00209.html>.
46806         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
46807         * tests/test-stdnoreturn.c: Remove files.
46808         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
46809         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
46810         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
46811         and using noreturn.
46812         * modules/openat, modules/sigpipe-die, modules/xalloc:
46813         * modules/xmemdup0, modules/xstrtol:
46814         Remove dependency on stdnoreturn.
46816         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
46817         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
46818         Reparenthesize to avoid GCC warning.
46819         Support Microsoft's syntax.
46820         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
46822         _Noreturn-tests: remove module
46823         * modules/_Noreturn-tests: Remove.
46824         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
46825         * tests/test-_Noreturn.c: Remove.
46826         * tests/test-stdnoreturn.c: Merge from the old
46827         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
46829 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
46831         _Noreturn, stdnoreturn, and related modules.
46833         * top/maint.mk: Adjust to new noreturn support.
46834         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
46835         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
46837         xalloc: use stdnoreturn.h
46838         * lib/xalloc.h: Include <stdnoreturn.h>.
46839         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
46840         * modules/xalloc (Depends-on): Add stdnoreturn.
46842         xstrtol: use stdnoreturn.h
46843         * lib/xstrtol.h: Include <stdnoreturn.h>.
46844         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
46845         * modules/xstrtol (Depends-on): Add stdnoreturn.
46847         xmemdup0: use stdnoreturn.h
46848         * lib/xmemdup0.h: Include <stdnoreturn.h>.
46849         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
46850         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
46852         sigpipe-die: use stdnoreturn.h
46853         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
46854         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
46855         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
46857         openat: use stdnoreturn.h
46858         * lib/openat.h: Include <stdnoreturn.h>.
46859         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
46860         * modules/openat (Depends-on): Add stdnoreturn.
46862         * lib/openat-die.c (openat_save_fail): Modernize comment.
46864         * lib/xalloc-die.c (xalloc_die): Modernize comment.
46866         * lib/glthread/thread.h: Modernize comment.
46868         obstack: use _Noreturn
46869         * lib/obstack.c (__attribute__): Remove macro.
46870         (print_and_abort): Use _Noreturn.
46872         c-stack: use _Noreturn
46873         * lib/c-stack.c (die, overflow_handler, segv_handler):
46874         Use _Noreturn rather than __attribute__((noreturn)).
46876         argmatch-tests, exclude_tests: use _Noreturn
46877         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
46878         Remove.
46879         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
46881         stdlib: use _Noreturn
46882         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
46883         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
46884         * modules/stdlib (Depends-on): Add _Noreturn.
46885         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
46887         stdnoreturn-tests: new module
46888         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
46890         stdnoreturn: new module
46891         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
46892         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
46894         _Noreturn-tests: new module
46895         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
46897         _Noreturn: new module
46898         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
46899         New section, mentioning it.
46900         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
46902         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
46904 2011-07-11  Eric Blake  <eblake@redhat.com>
46906         ffs: new module
46907         * modules/ffs: New file.
46908         * m4/ffs.m4: Likewise.
46909         * lib/ffs.c: Likewise.
46910         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
46911         * modules/strings (Makefile.am): Substitute witness.
46912         (Depends-on): Add c++defs.
46913         * lib/strings.in.h (ffs): Declare.
46914         * modules/ffs-tests: New test file.
46915         * tests/test-ffs.c: Test new module.
46916         * MODULES.html.sh (Integer arithmetic functions): Mention it.
46917         * doc/posix-functions/ffs.texi (ffs): Likewise.
46919         regex: avoid compiler warning
46920         * lib/regex.c (includes): Include <strings.h>, for use of
46921         strcasecmp in regcomp.c.
46922         Reported by Joachim Schmitz.
46924 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
46926         stdint: respect system's intmax_t if INTMAX_MAX
46927         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
46928         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
46929         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
46930         long but int64_t is long long, and where we will clash with the
46931         system intmax_t if we override it.  See
46932         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00160.html>.
46933         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
46934         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
46935         similarly for UINTMAX_C.
46937 2011-07-08  Bruno Haible  <bruno@clisp.org>
46939         pthread_sigmask tests: Avoid a compiler warning.
46940         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
46941         non-zero.
46943         sigprocmask tests: A better way to avoid a compiler warning.
46944         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
46945         (main): Complain if system() returns non-zero.
46946         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
46948 2011-07-08  Bruno Haible  <bruno@clisp.org>
46950         pthread_sigmask: Work around IRIX bug.
46951         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
46952         bug.
46953         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
46954         there may be unblocked pending signals.
46955         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
46957 2011-07-08  Bruno Haible  <bruno@clisp.org>
46959         pthread_sigmask: Work around Cygwin bug.
46960         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
46961         bug.
46962         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
46963         the system's pthread_sigmask function.
46964         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
46966 2011-07-08  Bruno Haible  <bruno@clisp.org>
46968         pthread_sigmask: Work around bug in single-threaded implementation.
46969         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
46970         FreeBSD, HP-UX, Solaris bug.
46971         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
46972         * lib/pthread_sigmask.c: Include <stddef.h>.
46973         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
46974         the system's pthread_sigmask function.
46975         * modules/pthread_sigmask (configure.ac): Invoke
46976         gl_PREREQ_PTHREAD_SIGMASK.
46977         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
46978         HP-UX, Solaris.
46980 2011-07-08  Eric Blake  <eblake@redhat.com>
46982         test-sigprocmask: avoid compiler warning
46983         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
46984         * tests/test-sigprocmask.c (main): Use it to silence warning.
46985         Reported by Jim Meyering.
46987         test-snprintf: avoid compiler warning
46988         * tests/test-snprintf.c (main): Avoid shadowed declaration.
46989         * tests/test-vsnprintf.c (main): Likewise.
46990         Reported by Jim Meyering.
46992 2011-07-08  Bruno Haible  <bruno@clisp.org>
46994         Tests for module 'pthread_sigmask'.
46995         * modules/pthread_sigmask-tests: New file.
46996         * tests/test-pthread_sigmask1.c: New file, based on
46997         tests/test-sigprocmask.c.
46998         * tests/test-pthread_sigmask2.c: New file.
47000 2011-07-08  Jim Meyering  <meyering@redhat.com>
47002         test-getopt.h: avoid warning about an unused variable
47003         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
47005 2011-07-07  Jim Meyering  <meyering@redhat.com>
47007         maint: reduce list of files exempt from sc_prohibit_leading_TABs
47008         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
47009         now that it no longer contains leading TABs.
47010         Remove unused "url=FIXME" statement.
47012 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
47014         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
47015         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
47016         When gl_THREADLIB is not in use, assume that the POSIX sematics
47017         are desired.  This is better for Emacs, which uses POSIX semantics
47018         on GNUish and/or POSIXish platforms, and does not use threads at
47019         all otherwise.
47021         pthread_sigmask: fix typo when testing for libraries
47022         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
47023         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
47025 2011-07-08  Eric Blake  <eblake@redhat.com>
47027         fts: introduce FTS_NOATIME
47028         * lib/fts_.h (FTS_NOATIME): New bit flag.
47029         (FTS_OPTIONMASK): Adjust.
47030         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
47031         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
47033 2011-07-08  Bruno Haible  <bruno@clisp.org>
47035         Tests for module 'thread'.
47036         * modules/thread-tests: New file.
47037         * tests/test-thread_self.c: New file.
47038         * tests/test-thread_create.cc: New file.
47040 2011-07-08  Bruno Haible  <bruno@clisp.org>
47042         thread: Avoid gcc warnings when using gl_thread_self().
47043         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
47044         'void *'.
47045         (gl_thread_self_pointer): Update.
47047 2011-07-07  Bruno Haible  <bruno@clisp.org>
47049         signal-c++-tests: Check declaration of pthread_sigmask.
47050         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
47051         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
47052         $(LIB_PTHREAD_SIGMASK).
47054 2011-07-07  Bruno Haible  <bruno@clisp.org>
47056         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
47057         * lib/signal.in.h (pthread_sigmask): Override if
47058         REPLACE_PTHREAD_SIGMASK is 1.
47059         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
47060         REPLACE_PTHREAD_SIGMASK.
47061         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
47062         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
47063         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
47064         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
47065         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
47067 2011-07-07  Bruno Haible  <bruno@clisp.org>
47069         pthread_sigmask: Ensure declaration in <signal.h>.
47070         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
47071         include <pthread.h>.
47072         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
47073         problem.
47075 2011-07-07  Bruno Haible  <bruno@clisp.org>
47077         pthread_sigmask: Document the module.
47078         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
47080 2011-07-07  Bruno Haible  <bruno@clisp.org>
47082         pthread_sigmask: Follow gnulib conventions.
47083         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
47084         gl_PTHREAD_SIGMASK.
47085         * modules/pthread_sigmask (configure.ac): Update.
47087 2011-07-07  Bruno Haible  <bruno@clisp.org>
47089         pthread_sigmask: Make declaration C++ safe.
47090         * lib/signal.in.h: In two special conditions, just do an #include_next.
47091         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
47092         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
47093         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
47094         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
47095         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
47096         not REPLACE_PTHREAD_MASK.
47097         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
47098         not REPLACE_PTHREAD_MASK.
47099         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
47101 2011-07-07  Bruno Haible  <bruno@clisp.org>
47103         pthread_sigmask: Fix return value.
47104         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
47105         * lib/pthread_sigmask.c: New file.
47106         * modules/pthread_sigmask (Files): Add it.
47107         (configure.ac): Invoke AC_LIBOBJ.
47109 2011-07-07  Eric Blake  <eblake@redhat.com>
47111         getopt: more portable argv creation
47112         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
47113         const, use char arrays rather than strings.
47114         Suggested by Paul Eggert.
47116 2011-07-07  Bruno Haible  <bruno@clisp.org>
47118         Tests for module 'sigprocmask'.
47119         * modules/sigprocmask-tests: New file.
47120         * tests/test-sigprocmask.c: New file.
47122 2011-07-07  Bruno Haible  <bruno@clisp.org>
47124         float tests: Tweak.
47125         * tests/test-float.c (main): Tweak skip message.
47127 2011-07-07  Eric Blake  <eblake@redhat.com>
47129         getopt: avoid compiler warning during configure
47130         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
47131         assigning string literals to non-const pointer.
47133         getopt-gnu: avoid crash in glibc getopt
47134         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
47135         * tests/test-getopt.h (test_getopt): Enhance test.
47136         * tests/test-getopt_long.h (test_getopt_long): Likewise.
47137         * doc/posix-functions/getopt.texi (getopt): Document it.
47138         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
47139         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
47140         Likewise.
47142 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
47144         getopt: handle W; without long options in getopt [BZ #12922]
47145         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
47146         but no long options are defined, just return 'W'.
47148 2011-07-07  Bruno Haible  <bruno@clisp.org>
47150         Avoid literal tabs.
47151         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
47152         variable containing a tab instead of a literal tab.
47153         Reported by Jim Meyering.
47155 2011-07-07  Bruno Haible  <bruno@clisp.org>
47157         Comments.
47158         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
47160 2011-07-06  Bruno Haible  <bruno@clisp.org>
47162         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
47163         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
47164         <winsock2.h>.
47165         (rpl_fd_isset, FD_ISSET): New definitions, copied from
47166         lib/sys_socket.in.h.
47167         (close, gethostname): Hide declarations from <winsock2.h>.
47168         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
47169         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
47170         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
47171         (select): Don't override if gnulib's <sys/select.h> was already
47172         included.
47173         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
47174         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
47175         setsockopt, shutdown, select): Tweak indentation.
47177 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
47179         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
47180         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
47181         in an application that does not use the sys_select module.
47183 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
47185         poll: do not return 0 on timeout=-1
47186         * lib/poll.c: Loop with yield if no events occurred.
47188 2011-07-06  Eric Blake  <eblake@redhat.com>
47190         pthread_sigmask: always replace when not using pthread
47191         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
47192         replacement when using some threading other than pthread.  Fix
47193         logic bug.
47195 2011-07-06  Bruno Haible  <bruno@clisp.org>
47197         Comments.
47198         * m4/printf.m4: Update comments about mingw.
47200 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
47202         sys_select: define sigset_t more portably
47203         * lib/sys_select.in.h: Always include <sys/types.h>, since
47204         we now need sigset_t and mingw defines it there.
47205         Include <signal.h> before split inclusion guard, to avoid
47206         mishaps on Solaris, whose <signal.h> eventually includes us.
47207         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
47208         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
47209         which come from ...
47210         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
47211         gl_CHECK_TYPE_SIGSET_T.
47212         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
47213         does the real work.
47214         * modules/sys_select (Depends-on): Add 'signal'.
47216         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
47217         Suggested by Bruno Haible.
47219         pselect: Use pthread_sigmask, not sigprocmask.
47220         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
47221         multithreaded apps better than sigprocmask does.
47222         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
47223         sigprocmask directly.
47225 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
47227         * lib/pselect.c (pselect): Use plain name, without "rpl_".
47228         Don't #undef,  since we don't need any underlying pselect.
47229         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
47230         (Depends-on): Add select.
47231         (Link): Add $(LIBSOCKET).
47232         These changes suggested by Bruno Haible.
47234         pselect: document better
47235         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
47236         * doc/posix-functions/pselect.texi (pselect): Document new module.
47238         pthread_sigmask: new module
47239         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
47240         * doc/posix-functions/pthread_sigmask.texi: Document new module.
47241         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
47242         This is done only as a macro; I don't know how well that'll
47243         work for C++.  Move <sys/types.h> include before the include_next,
47244         to avoid mishap on Solaris.
47245         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
47246         * modules/signal (Makefile.am): Substitute the check's results.
47247         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
47249         test-pselect: new module
47250         * modules/pselect-tests, tests/test-pselect.c: New files.
47251         * tests/test-select.c, tests/test-sys_select-c++.cc:
47252         If TEST_PSELECT is defined, test pselect instead of testing select.
47254         * tests/test-sys_select.c (sigset_t): Test for it, too.
47255         Suggested by Bruno Haible.
47257 2011-07-05  Eric Blake  <eblake@redhat.com>
47259         snprintf: guarantee %1$d, for libintl
47260         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
47261         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
47262         * doc/posix-functions/snprintf.texi (snprintf): Update.
47263         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
47264         * tests/test-snprintf.c (main): Enhance test.
47265         * tests/test-vsnprintf.c (main): Likewise.
47267 2011-07-05  Jim Meyering  <meyering@redhat.com>
47269         maint: exempt stdio-read.c and stdio-write.c from the cppi check
47270         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
47271         per Bruno's request, to accommodate this idiom (no space after "#")
47272         even when the function is inside an #if block:
47273         char *
47274         gets (char *s)
47275         #undef gets
47276         {
47277           ...
47278         }
47280 2011-07-04  Jim Meyering  <meyering@redhat.com>
47282         maint: indent with spaces, not TABs, and add a rule to check this
47283         * tests/test-userspec.c: Indent with spaces, not TABs.
47284         * tests/test-argp.c: Likewise.
47285         * tests/test-c-stack2.sh: Likewise.
47286         * tests/test-parse-duration.sh: Likewise
47287         * m4/strtod.m4: Likewise.
47288         * m4/alloca.m4: Likewise.
47289         * m4/pselect.m4: Likewise.
47290         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
47292 2011-07-03  Jim Meyering  <meyering@redhat.com>
47294         maint.mk: correct omissions in prohibit_argmatch_without_use check
47295         This rule would mistakenly report that argmatch.h is included without
47296         use even when both the argmatch and invalid_arg macro were used.
47297         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
47298         of argmatch and invalid_arg.
47300 2011-07-03  Bruno Haible  <bruno@clisp.org>
47302         Comments about EINTR.
47303         * lib/safe-read.h: Explain the purpose of this module.
47304         * lib/safe-write.h: Likewise.
47305         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
47306         module.
47307         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
47308         module.
47309         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47311 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
47313         xnanosleep: Rewrite to use new dtotimespec module.
47314         It has the conversion code that used to be in xnanosleep.
47315         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
47316         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
47317         (TIME_T_MAX): Remove.
47318         (xnanosleep): Rewrite in terms of dtotimespec.
47319         * modules/xnanosleep (Depends-on): Add dtotimespec.
47320         Remove intprops, stdbool.
47322         timespec-add, timespec-sub: new modules
47323         * lib/timespec.h (timespec_add, timespec_sub): New decls.
47324         * lib/timespec-add.c, lib/timespec-sub.c:
47325         * modules/timespec-add, modules/timespec-sub: New files.
47327         dtotimespec: new module
47328         * lib/timespec.h (dtotimespec): New decl.
47329         * lib/dtotimespec.c, modules/dtotimespec: New files.
47331         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
47333         pselect: new module
47334         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
47335         (pselect): New decls.
47336         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
47337         since the standard pselect decl uses 'restrict'.
47338         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
47339         HAVE_PSELECT, REPLACE_PSELECT.
47340         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
47341         HAVE_PSELECT, REPLACE_PSELECT.
47342         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
47344         sys_select: don't depend on sys_socket
47345         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
47346         <http://lists.gnu.org/r/bug-gnulib/2011-06/msg00358.html>.
47347         This fix works on GNU and GNU-like platforms, but has not been tested
47348         on native Windows.
47349         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
47350         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
47351         gl_HEADER_SYS_SOCKET.
47352         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
47353         gl_PREREQ_SYS_H_WINSOCK2.
47355 2011-06-29  Eric Blake  <eblake@redhat.com>
47357         pipe2: fix C89 compile problem
47358         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
47359         Reported by Bruno Haible.
47361         pipe, pipe2: don't corrupt fd on error
47362         * lib/pipe.c (pipe): Leave fd unchanged on error.
47363         * lib/pipe2.c (pipe2): Likewise.
47364         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
47365         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
47367 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
47369         mmap-anon: do not use regular expressions inadvertently
47370         * m4/mmap-anon.m4: Remove trailing period from strings sought
47371         in the output.
47373 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
47375         nanosleep: fix integer overflow problem
47376         * lib/nanosleep.c (my_usleep): Don't assume signed integer
47377         arithmetic wraps around on overflow.
47379         nanosleep: simplify carrying
47380         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
47381         first call to the underyling nanosleep, not for the last one.
47382         This doesn't fix any bugs, but it simplifies the computation of
47383         the remaining delay.  Found while auditing integer overflow issues.
47385         dup2: remove test for existence of fcntl
47386         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
47387         "#if HAVE_FCNTL", in the configure-time test program.
47388         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
47389         and therefore speeds up "configure" a bit.  Found while
47390         adding the dup2 module to Emacs.
47392 2011-06-24  Eric Blake  <eblake@redhat.com>
47394         maint.mk: enhance useless header checks
47395         * top/maint.mk (_sc_header_without_use): Check both include
47396         styles.
47397         (sc_prohibit_assert_without_use)
47398         (sc_prohibit_close_stream_without_use)
47399         (sc_prohibit_getopt_without_use)
47400         (sc_prohibit_quotearg_without_use)
47401         (sc_prohibit_quote_without_use)
47402         (sc_prohibit_long_options_without_use)
47403         (sc_prohibit_inttostr_without_use)
47404         (sc_prohibit_ignore_value_without_use)
47405         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
47406         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
47407         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
47408         (sc_prohibit_hash_pjw_without_use)
47409         (sc_prohibit_safe_read_without_use)
47410         (sc_prohibit_argmatch_without_use)
47411         (sc_prohibit_canonicalize_without_use)
47412         (sc_prohibit_root_dev_ino_without_use)
47413         (sc_prohibit_openat_without_use)
47414         (sc_prohibit_c_ctype_without_use)
47415         (sc_prohibit_signal_without_use)
47416         (sc_prohibit_stdio--_without_use)
47417         (sc_prohibit_stdio-safer_without_use)
47418         (sc_prohibit_strings_without_use)
47419         (sc_prohibit_intprops_without_use)
47420         (sc_prohibit_stddef_without_use)
47421         (sc_prohibit_xfreopen_without_use): Update clients.
47423 2011-06-24  Jim Meyering  <meyering@redhat.com>
47425         syntax-check: keep one maint.mk rule in sync with its header
47426         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
47427         of the bug Eric has just fixed, with today's commit 25e4c2ec.
47428         I prefer to avoid temporary files here, so use <(...), but that
47429         is not supported by /bin/sh, so...
47430         (SHELL): Define to /bin/bash.
47432 2011-06-24  Eric Blake  <eblake@redhat.com>
47434         maint.mk: update sc_prohibit_intprops_without_use
47435         * top/maint.mk (_intprops_names): Match recent changes.
47437 2011-06-24  Bruno Haible  <bruno@clisp.org>
47439         strerror-override: No-op tweak.
47440         * lib/strerror-override.h (strerror_override): Reorder conditions,
47441         for consistency with lib/strerror-override.c.
47443 2011-06-23  Eric Blake  <eblake@redhat.com>
47445         maint.mk: test further PATH_MAX issues
47446         * top/maint.mk (sc_prohibit_path_max_array): Rename...
47447         (sc_prohibit_path_max_allocation): ...and also test alloca.
47448         Suggested by Jim Meyering.
47450 2011-06-22  Eric Blake  <eblake@redhat.com>
47452         maint.mk: add syntax-check to avoid char[PATH_MAX]
47453         * top/maint.mk (sc_prohibit_path_max_array): New rule.
47455         stat: be robust to PATH_MAX definition
47456         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
47457         * modules/stat (Depends-on): Add verify.
47459         link: work around IRIX bug
47460         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
47461         * lib/link.c (rpl_link): Work around it.
47462         * tests/test-link.h (test_link): Enhance test.
47463         * doc/posix-functions/link.texi (link): Document the bug.
47465         getopt: silence clang warning
47466         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
47467         dereference.
47468         Reported by Gustavo Martin Domato.
47470 2011-06-22  Jim Meyering  <meyering@redhat.com>
47472         bootstrap: do not insert a blank line into each .gitignore file
47473         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
47475 2011-06-21  Eric Blake  <eblake@redhat.com>
47477         perror: test for output mismatch
47478         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
47479         perror on IRIX.
47481         strerror_r: fix OpenBSD behavior on out-of-range
47482         * lib/strerror_r.c (strerror_r): Always use maximal string.
47483         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
47485         strerror_r: fix OpenBSD behavior on 0
47486         * lib/strerror-override.c (strerror_override): Also override 0
47487         when needed.
47488         * lib/strerror-override.h (strerror_override): Likewise.
47489         * lib/strerror.c (strerror): Simplify, now that 0 override is done
47490         earlier.
47491         * lib/strerror_r.c (strerror_r): Likewise.
47492         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
47493         behavior...
47494         (gl_FUNC_STRERROR_0): ...into new macro.
47495         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
47496         is overridden.
47497         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
47498         * modules/strerror-override (Files): Add strerror.m4.
47499         (configure.ac): Also provide override for 0 when needed.
47500         * doc/posix-functions/strerror.texi (strerror): Document this.
47501         * doc/posix-functions/perror.texi (perror): Likewise.
47503         perror: adjust array size
47504         * modules/perror (Depends-on): Add strerror-override.
47505         * lib/perror.c (perror): Use it to avoid magic number.
47507         strerror-override: reduce size
47508         * lib/strerror-override.c (strerror_override): Use fewer lines.
47510 2011-06-20  Bruno Haible  <bruno@clisp.org>
47512         pathmax: Ensure correct value for PATH_MAX on HP-UX.
47513         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
47515 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
47517         alloca: port to compilers that can optimize like GCC 4.6.0
47518         * lib/alloca.c (find_stack_direction): New signature, taken from
47519         Autoconf git.  This works with GCC 4.6.0.  This code should never
47520         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
47521         be used with other compilers that optimize as well as GCC 4.6.0 does.
47522         (alloca): Adjust to new signature.
47523         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
47524         New macro, which patches Autoconf in a similar way.
47526         c-stack: stop worrying about stack direction
47527         * lib/c-stack.c (find_stack_direction): Remove.
47528         (segv_handler): Don't worry about stack direction growth, as it's
47529         too much of a pain to configure this correctly, given how compilers
47530         are optimizing-away our stack-growth detection code.  Instead, assume
47531         that any access to just before or just after the stack is OK.
47532         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
47533         Don't require AC_FUNC_ALLOCA; no longer needed.
47535 2011-06-20  Eric Blake  <eblake@redhat.com>
47537         test-stat: don't allocate PATH_MAX bytes
47538         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
47539         PATH_MAX-sized buffer.
47540         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
47541         * modules/stat-tests (Depends-on): Likewise.
47542         * tests/test-fstatat.c (includes): Drop pathmax.h.
47543         * tests/test-stat.c (includes): Likewise.
47544         Reported by Bruno Haible.
47546 2011-06-20  Bruno Haible  <bruno@clisp.org>
47548         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
47549         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
47550         * lib/float.c: New file.
47551         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
47552         REPLACE_FLOAT_LDBL.
47553         * modules/float (Files): Add lib/float.c.
47554         (configure.ac): Invoke AC_LIBOBJ.
47555         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
47557 2011-06-20  Bruno Haible  <bruno@clisp.org>
47559         Tests for module 'float'.
47560         * modules/float-tests: New file.
47561         * tests/test-float.c: New file.
47563 2011-06-19  Bruno Haible  <bruno@clisp.org>
47565         isinf: Coding style.
47566         * lib/isinf.c: Use GNU coding style.
47568 2011-06-19  Bruno Haible  <bruno@clisp.org>
47570         linkat test: Avoid test failure on AIX 7.1.
47571         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
47572         * tests/test-link.h (test_link): Likewise.
47574 2011-06-19  Bruno Haible  <bruno@clisp.org>
47576         pread test: Avoid test failure on OpenBSD 4.9.
47577         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
47579 2011-06-19  Bruno Haible  <bruno@clisp.org>
47581         sprintf-posix: Fix test failure on AIX 7.1.
47582         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
47583         * doc/posix-functions/dprintf.texi: Mention limited precision problem
47584         on AIX.
47585         * doc/posix-functions/fprintf.texi: Likewise.
47586         * doc/posix-functions/printf.texi: Likewise.
47587         * doc/posix-functions/snprintf.texi: Likewise.
47588         * doc/posix-functions/sprintf.texi: Likewise.
47589         * doc/posix-functions/vdprintf.texi: Likewise.
47590         * doc/posix-functions/vfprintf.texi: Likewise.
47591         * doc/posix-functions/vprintf.texi: Likewise.
47592         * doc/posix-functions/vsnprintf.texi: Likewise.
47593         * doc/posix-functions/vsprintf.texi: Likewise.
47595 2011-06-19  Bruno Haible  <bruno@clisp.org>
47597         roundl-ieee: Fix test failure on AIX 7.1.
47598         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
47599         * doc/posix-functions/roundl.texi: Mention problem with negative
47600         arguments.
47602 2011-06-19  Bruno Haible  <bruno@clisp.org>
47604         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
47605         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
47606         * doc/posix-functions/round.texi: Mention problem with negative
47607         arguments.
47608         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
47610 2011-06-19  Bruno Haible  <bruno@clisp.org>
47612         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
47613         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
47614         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
47615         * doc/posix-functions/roundf.texi: Mention problem with negative
47616         arguments.
47617         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
47619 2011-06-19  Bruno Haible  <bruno@clisp.org>
47621         ceilf-ieee: Work around bug on MacOS X 10.5.
47622         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
47624         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
47625         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
47626         IEEE compliant, avoid compiler optimizations.
47627         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
47628         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
47629         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
47630         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
47631         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
47632         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
47633         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
47634         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
47635         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
47636         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
47638 2011-06-19  Bruno Haible  <bruno@clisp.org>
47640         ceilf-ieee: Work around bug on AIX 7.1.
47641         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
47642         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
47644 2011-06-19  Bruno Haible  <bruno@clisp.org>
47646         ceil-ieee: Work around bug on AIX 7.1.
47647         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
47648         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
47650 2011-06-18  Bruno Haible  <bruno@clisp.org>
47652         fsync test: Avoid test failure on MacOS X and AIX.
47653         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
47654         EINVAL.
47656 2011-06-18  Bruno Haible  <bruno@clisp.org>
47658         openat, fdopendir tests: Fix link errors.
47659         * modules/openat-tests (Depends-on): Add progname.
47660         * modules/fdopendir-tests (Depends-on): Likewise.
47661         * tests/test-fchownat.c: Include progname.h.
47662         (main): Call set_program_name.
47663         * tests/test-fstatat.c: Include progname.h.
47664         (main): Call set_program_name.
47665         * tests/test-mkdirat.c: Include progname.h.
47666         (main): Call set_program_name.
47667         * tests/test-openat.c: Include progname.h.
47668         (main): Call set_program_name.
47669         * tests/test-unlinkat.c: Include progname.h.
47670         (main): Call set_program_name.
47671         * tests/test-fdopendir.c: Include progname.h.
47672         (main): Call set_program_name.
47674 2011-06-18  Bruno Haible  <bruno@clisp.org>
47676         Doc update.
47677         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
47678         HP-UX.
47679         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
47681 2011-06-18  Bruno Haible  <bruno@clisp.org>
47683         getcwd tests: Avoid compilation error on HP-UX 11.31.
47684         * modules/getcwd-tests (Depends-on): Add pathmax.
47685         * tests/test-getcwd.c: Include pathmax.h.
47687 2011-06-18  Bruno Haible  <bruno@clisp.org>
47689         isfinite, isinf: Fix link error on AIX 6 and 7.
47690         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
47691         needed, also test the macro with a 'float' argument.
47692         * m4/isinf.m4 (gl_ISINF): Likewise.
47694 2011-06-18  Bruno Haible  <bruno@clisp.org>
47696         getloadavg: Don't clobber LIBS. Regression from previous commit.
47697         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
47698         AC_CHECK_LIB from here...
47699         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
47700         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
47701         gl_func_getloadavg_done.
47702         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47704 2011-06-18  Bruno Haible  <bruno@clisp.org>
47706         clean-temp: Improve documentation.
47707         * lib/clean-temp.h: Explain better how to use this module.
47708         Reported by John Darrington <john@darrington.wattle.id.au>.
47710 2011-06-17  Bruno Haible  <bruno@clisp.org>
47712         pread, pwrite: Avoid cc warning on AIX.
47713         * lib/unistd.in.h (pread): Undefine before defining as a macro.
47714         (pwrite): Likewise.
47716 2011-06-17  Bruno Haible  <bruno@clisp.org>
47718         spawn-pipe tests: Fix link error.
47719         * tests/test-spawn-pipe-child.c: Undefine fprintf.
47720         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47722 2011-06-17  Bruno Haible  <bruno@clisp.org>
47724         Tests: Remove unnecessary dependency.
47725         * modules/canonicalize-tests (Depends-on): Remove progname.
47726         * modules/chown-tests (Depends-on): Likewise.
47727         * modules/dirname-tests (Depends-on): Likewise.
47728         * modules/fdopendir-tests (Depends-on): Likewise.
47729         * modules/fdutimensat-tests (Depends-on): Likewise.
47730         * modules/hash-tests (Depends-on): Likewise.
47731         * modules/lchown-tests (Depends-on): Likewise.
47732         * modules/linkat-tests (Depends-on): Likewise.
47733         * modules/renameat-tests (Depends-on): Likewise.
47734         * modules/spawn-pipe-tests (Depends-on): Likewise.
47735         * modules/utimensat-tests (Depends-on): Likewise.
47737 2011-06-17  Bruno Haible  <bruno@clisp.org>
47739         spawn-pipe tests: Fix link error.
47740         * tests/test-spawn-pipe-child.c: Undefine fflush.
47742 2011-06-17  Bruno Haible  <bruno@clisp.org>
47744         Fix tests link errors.
47745         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
47746         * modules/chown-tests (Makefile.am): Don't link test-chown with
47747         LIBINTL.
47748         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
47749         LIBINTL.
47750         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
47751         LIBINTL.
47752         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
47753         LIBINTL.
47755 2011-06-16  Bruno Haible  <bruno@clisp.org>
47757         crypto/gc-sha1: Fix recent regression.
47758         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
47759         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
47761         crypto/gc-md5: Fix recent regression.
47762         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
47764         crypto/gc-md4: Fix recent regression.
47765         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
47766         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
47768         crypto/gc-arctwo: Fix recent regression.
47769         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
47770         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
47772         crypto/gc-rijndael: Fix recent regression.
47773         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
47774         (configure.ac): Invoke AC_LIBOBJ here.
47775         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
47776         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47778         crypto/gc-hmac-sha1: Fix recent regression.
47779         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
47780         (configure.ac): Invoke AC_LIBOBJ here.
47781         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
47782         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47784         crypto/gc-hmac-md5: Fix recent regression.
47785         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
47786         (configure.ac): Invoke AC_LIBOBJ here.
47787         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
47788         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47790         crypto/gc-des: Fix recent regression.
47791         * modules/crypto/gc-des (Files): Remove m4/des.m4.
47792         (configure.ac): Invoke AC_LIBOBJ here.
47793         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
47794         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47796         crypto/gc-arcfour: Fix recent regression.
47797         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
47798         (configure.ac): Invoke AC_LIBOBJ here.
47799         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
47800         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47802 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
47804         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
47805         After the 2011-05-21 change, this macro requires
47806         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
47807         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
47809 2011-06-16  Bruno Haible  <bruno@clisp.org>
47811         fprintftime: Move AC_LIBOBJ invocations to module description.
47812         * m4/fprintftime.m4: Remove file.
47813         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
47814         (configure.ac): Remove gl_FPRINTFTIME call.
47815         (Makefile.am): Augment lib_SOURCES.
47816         Reported by Jim Meyering.
47818 2011-06-16  Bruno Haible  <bruno@clisp.org>
47820         tmpfile-safer: Finish 2011-05-23 commit.
47821         * m4/stdio-safer.m4: Really remove file.
47822         Reported by Jim Meyering.
47824 2011-06-16  Bruno Haible  <bruno@clisp.org>
47826         syntax-check: Fix typo.
47827         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
47828         printf-posix.m4.
47829         Reported by Jim Meyering.
47831 2011-06-13  Jim Meyering  <meyering@redhat.com>
47833         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
47834         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
47836 2011-05-23  Bruno Haible  <bruno@clisp.org>
47838         yesno: Move AC_LIBOBJ invocations to module description.
47839         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
47840         * modules/yesno (Makefile.am): Augment lib_SOURCES.
47842 2011-05-23  Bruno Haible  <bruno@clisp.org>
47844         xstrtol: Move AC_LIBOBJ invocations to module description.
47845         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
47846         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
47848 2011-05-23  Bruno Haible  <bruno@clisp.org>
47850         xstrtold: Move AC_LIBOBJ invocations to module description.
47851         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
47852         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
47854 2011-05-23  Bruno Haible  <bruno@clisp.org>
47856         xstrtod: Move AC_LIBOBJ invocations to module description.
47857         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
47858         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
47860 2011-05-23  Bruno Haible  <bruno@clisp.org>
47862         xnanosleep: Move AC_LIBOBJ invocations to module description.
47863         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
47864         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
47866 2011-05-23  Bruno Haible  <bruno@clisp.org>
47868         xgetcwd: Move AC_LIBOBJ invocations to module description.
47869         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
47870         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
47872 2011-05-23  Bruno Haible  <bruno@clisp.org>
47874         xalloc: Move AC_LIBOBJ invocations to module description.
47875         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
47876         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
47878 2011-05-23  Bruno Haible  <bruno@clisp.org>
47880         write-any-file: Move AC_LIBOBJ invocations to module description.
47881         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
47882         invocation.
47883         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
47885 2011-05-23  Bruno Haible  <bruno@clisp.org>
47887         utimens: Move AC_LIBOBJ invocations to module description.
47888         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
47889         * modules/utimens (Makefile.am): Augment lib_SOURCES.
47891 2011-05-23  Bruno Haible  <bruno@clisp.org>
47893         utimecmp: Move AC_LIBOBJ invocations to module description.
47894         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
47895         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
47897 2011-05-23  Bruno Haible  <bruno@clisp.org>
47899         userspec: Move AC_LIBOBJ invocations to module description.
47900         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
47901         * modules/userspec (Makefile.am): Augment lib_SOURCES.
47903 2011-05-23  Bruno Haible  <bruno@clisp.org>
47905         unlinkdir: Move AC_LIBOBJ invocations to module description.
47906         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
47907         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
47909 2011-05-23  Bruno Haible  <bruno@clisp.org>
47911         unistd-safer: Move AC_LIBOBJ invocations to module description.
47912         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
47913         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
47915 2011-05-23  Bruno Haible  <bruno@clisp.org>
47917         tempname: Move AC_LIBOBJ invocations to module description.
47918         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
47919         * modules/tempname (Makefile.am): Augment lib_SOURCES.
47921 2011-05-23  Bruno Haible  <bruno@clisp.org>
47923         strftime: Move AC_LIBOBJ invocations to module description.
47924         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
47925         * modules/strftime (Makefile.am): Augment lib_SOURCES.
47927 2011-05-23  Bruno Haible  <bruno@clisp.org>
47929         stdlib-safer: Move AC_LIBOBJ invocations to module description.
47930         * m4/stdlib-safer.m4: Remove file.
47931         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
47932         (configure.ac): Remove gl_STDLIB_SAFER call.
47933         (Makefile.am): Augment lib_SOURCES.
47935 2011-05-23  Bruno Haible  <bruno@clisp.org>
47937         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
47938         * m4/stdio-safer.m4: Remove file.
47939         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
47940         (configure.ac): Remove gl_TMPFILE_SAFER call.
47941         (Makefile.am): Augment lib_SOURCES.
47943 2011-05-23  Bruno Haible  <bruno@clisp.org>
47945         popen-safer: Move AC_LIBOBJ invocations to module description.
47946         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
47947         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
47948         (configure.ac): Remove gl_POPEN_SAFER call.
47949         (Makefile.am): Augment lib_SOURCES.
47951 2011-05-23  Bruno Haible  <bruno@clisp.org>
47953         freopen-safer: Move AC_LIBOBJ invocations to module description.
47954         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
47955         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
47956         (configure.ac): Remove gl_FREOPEN_SAFER call.
47957         (Makefile.am): Augment lib_SOURCES.
47959 2011-05-23  Bruno Haible  <bruno@clisp.org>
47961         fopen-safer: Move AC_LIBOBJ invocations to module description.
47962         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
47963         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
47964         (configure.ac): Remove gl_FOPEN_SAFER call.
47965         (Makefile.am): Augment lib_SOURCES.
47967 2011-05-23  Bruno Haible  <bruno@clisp.org>
47969         crypto/sha512: Move AC_LIBOBJ invocations to module description.
47970         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
47971         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
47973 2011-05-23  Bruno Haible  <bruno@clisp.org>
47975         crypto/sha256: Move AC_LIBOBJ invocations to module description.
47976         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
47977         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
47979 2011-05-23  Bruno Haible  <bruno@clisp.org>
47981         crypto/sha1: Move AC_LIBOBJ invocations to module description.
47982         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
47983         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
47985 2011-05-23  Bruno Haible  <bruno@clisp.org>
47987         settime: Move AC_LIBOBJ invocations to module description.
47988         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
47989         * modules/settime (Makefile.am): Augment lib_SOURCES.
47991 2011-05-23  Bruno Haible  <bruno@clisp.org>
47993         savedir: Move AC_LIBOBJ invocations to module description.
47994         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
47995         * modules/savedir (Makefile.am): Augment lib_SOURCES.
47997 2011-05-23  Bruno Haible  <bruno@clisp.org>
47999         save-cwd: Move AC_LIBOBJ invocations to module description.
48000         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
48001         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
48003 2011-05-23  Bruno Haible  <bruno@clisp.org>
48005         same: Move AC_LIBOBJ invocations to module description.
48006         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
48007         * modules/same (Makefile.am): Augment lib_SOURCES.
48009 2011-05-23  Bruno Haible  <bruno@clisp.org>
48011         safe-write: Move AC_LIBOBJ invocations to module description.
48012         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
48013         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
48014         instead of gl_SAFE_WRITE.
48015         (Makefile.am): Augment lib_SOURCES.
48017 2011-05-23  Bruno Haible  <bruno@clisp.org>
48019         safe-read: Move AC_LIBOBJ invocations to module description.
48020         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
48021         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
48022         of gl_SAFE_READ.
48023         (Makefile.am): Augment lib_SOURCES.
48025 2011-05-23  Bruno Haible  <bruno@clisp.org>
48027         safe-alloc: Move AC_LIBOBJ invocations to module description.
48028         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
48029         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
48031 2011-05-23  Bruno Haible  <bruno@clisp.org>
48033         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
48034         * m4/rijndael.m4: Remove file.
48035         * modules/crypto/rijndael (Files): Remove it.
48036         (configure.ac): Remove gl_RIJNDAEL call.
48037         (Makefile.am): Augment lib_SOURCES.
48039 2011-05-23  Bruno Haible  <bruno@clisp.org>
48041         readtokens: Move AC_LIBOBJ invocations to module description.
48042         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
48043         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
48045 2011-05-23  Bruno Haible  <bruno@clisp.org>
48047         read-file: Move AC_LIBOBJ invocations to module description.
48048         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
48049         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
48050         of gl_FUNC_READ_FILE.
48051         (Makefile.am): Augment lib_SOURCES.
48053 2011-05-23  Bruno Haible  <bruno@clisp.org>
48055         quotearg: Move AC_LIBOBJ invocations to module description.
48056         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
48057         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
48059 2011-05-23  Bruno Haible  <bruno@clisp.org>
48061         quote: Move AC_LIBOBJ invocations to module description.
48062         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
48063         * modules/quote (Makefile.am): Augment lib_SOURCES.
48065 2011-05-23  Bruno Haible  <bruno@clisp.org>
48067         posixver: Move AC_LIBOBJ invocations to module description.
48068         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
48069         * modules/posixver (Makefile.am): Augment lib_SOURCES.
48071 2011-05-23  Bruno Haible  <bruno@clisp.org>
48073         posixtm: Move AC_LIBOBJ invocations to module description.
48074         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
48075         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
48077 2011-05-23  Bruno Haible  <bruno@clisp.org>
48079         physmem: Move AC_LIBOBJ invocations to module description.
48080         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
48081         * modules/physmem (Makefile.am): Augment lib_SOURCES.
48083 2011-05-23  Bruno Haible  <bruno@clisp.org>
48085         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
48086         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
48087         invocation.
48088         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
48090 2011-05-23  Bruno Haible  <bruno@clisp.org>
48092         mpsort: Move AC_LIBOBJ invocations to module description.
48093         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
48094         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
48096 2011-05-23  Bruno Haible  <bruno@clisp.org>
48098         modechange: Move AC_LIBOBJ invocations to module description.
48099         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
48100         * modules/modechange (Makefile.am): Augment lib_SOURCES.
48102 2011-05-23  Bruno Haible  <bruno@clisp.org>
48104         mkdir-p: Move AC_LIBOBJ invocations to module description.
48105         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
48106         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
48108 2011-05-23  Bruno Haible  <bruno@clisp.org>
48110         mkancesdirs: Move AC_LIBOBJ invocations to module description.
48111         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
48112         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
48114 2011-05-23  Bruno Haible  <bruno@clisp.org>
48116         mgetgroups: Move AC_LIBOBJ invocations to module description.
48117         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
48118         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
48120 2011-05-23  Bruno Haible  <bruno@clisp.org>
48122         memxor: Move AC_LIBOBJ invocations to module description.
48123         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
48124         * modules/memxor (Makefile.am): Augment lib_SOURCES.
48126 2011-05-23  Bruno Haible  <bruno@clisp.org>
48128         memcoll: Move AC_LIBOBJ invocations to module description.
48129         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
48130         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
48132 2011-05-23  Bruno Haible  <bruno@clisp.org>
48134         memcasecmp: Move AC_LIBOBJ invocations to module description.
48135         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
48136         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
48138 2011-05-23  Bruno Haible  <bruno@clisp.org>
48140         crypto/md5: Move AC_LIBOBJ invocations to module description.
48141         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
48142         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
48144 2011-05-23  Bruno Haible  <bruno@clisp.org>
48146         crypto/md4: Move AC_LIBOBJ invocations to module description.
48147         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
48148         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
48150 2011-05-23  Bruno Haible  <bruno@clisp.org>
48152         crypto/md2: Move AC_LIBOBJ invocations to module description.
48153         * m4/md2.m4: Remove file.
48154         * modules/crypto/md2 (Files): Remove it.
48155         (configure.ac): Remove gl_MD2 call.
48156         (Makefile.am): Augment lib_SOURCES.
48158 2011-05-23  Bruno Haible  <bruno@clisp.org>
48160         long-options: Move AC_LIBOBJ invocations to module description.
48161         * m4/long-options.m4: Remove file.
48162         * modules/long-options (Files): Remove it.
48163         (configure.ac): Remove gl_LONG_OPTIONS call.
48164         (Makefile.am): Augment lib_SOURCES.
48166 2011-05-23  Bruno Haible  <bruno@clisp.org>
48168         i-ring: Move AC_LIBOBJ invocations to module description.
48169         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
48170         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
48172 2011-05-23  Bruno Haible  <bruno@clisp.org>
48174         idcache: Move AC_LIBOBJ invocations to module description.
48175         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
48176         * modules/idcache (Makefile.am): Augment lib_SOURCES.
48178 2011-05-23  Bruno Haible  <bruno@clisp.org>
48180         human: Move AC_LIBOBJ invocations to module description.
48181         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
48182         * modules/human (Makefile.am): Augment lib_SOURCES.
48184 2011-05-23  Bruno Haible  <bruno@clisp.org>
48186         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
48187         * m4/hmac-sha1.m4: Remove file.
48188         * modules/crypto/hmac-sha1 (Files): Remove it.
48189         (configure.ac): Remove gl_HMAC_SHA1 call.
48190         (Makefile.am): Augment lib_SOURCES.
48192 2011-05-23  Bruno Haible  <bruno@clisp.org>
48194         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
48195         * m4/hmac-md5.m4: Remove file.
48196         * modules/crypto/hmac-md5 (Files): Remove it.
48197         (configure.ac): Remove gl_HMAC_MD5 call.
48198         (Makefile.am): Augment lib_SOURCES.
48200 2011-05-23  Bruno Haible  <bruno@clisp.org>
48202         hash: Move AC_LIBOBJ invocations to module description.
48203         * m4/hash.m4: Remove file.
48204         * modules/hash (Files): Remove it.
48205         (configure.ac): Remove gl_HASH call.
48206         (Makefile.am): Augment lib_SOURCES.
48208 2011-05-23  Bruno Haible  <bruno@clisp.org>
48210         hard-locale: Move AC_LIBOBJ invocations to module description.
48211         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
48212         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
48214 2011-05-23  Bruno Haible  <bruno@clisp.org>
48216         getugroups: Move AC_LIBOBJ invocations to module description.
48217         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
48218         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
48220 2011-05-23  Bruno Haible  <bruno@clisp.org>
48222         gettime: Move AC_LIBOBJ invocations to module description.
48223         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
48224         * modules/gettime (Makefile.am): Augment lib_SOURCES.
48226 2011-05-23  Bruno Haible  <bruno@clisp.org>
48228         getndelim2: Move AC_LIBOBJ invocations to module description.
48229         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
48230         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
48232 2011-05-23  Bruno Haible  <bruno@clisp.org>
48234         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
48235         * m4/gc-pbkdf2-sha1.m4: Remove file.
48236         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
48237         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
48238         (Makefile.am): Augment lib_SOURCES.
48240 2011-05-23  Bruno Haible  <bruno@clisp.org>
48242         fts: Move AC_LIBOBJ invocations to module description.
48243         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
48244         * modules/fts (configure.ac): ... to here.
48246 2011-05-23  Bruno Haible  <bruno@clisp.org>
48248         file-type: Move AC_LIBOBJ invocations to module description.
48249         * m4/file-type.m4: Remove file.
48250         * modules/file-type (Files): Remove it.
48251         (configure.ac): Remove gl_FILE_TYPE call.
48252         (Makefile.am): Augment lib_SOURCES.
48254 2011-05-23  Bruno Haible  <bruno@clisp.org>
48256         filenamecat*: Respect rules for use of AC_LIBOBJ.
48257         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
48258         Remove AC_LIBOBJ invocation.
48259         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
48260         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
48262 2011-05-23  Bruno Haible  <bruno@clisp.org>
48264         filemode: Move AC_LIBOBJ invocations to module description.
48265         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
48266         * modules/filemode (Makefile.am): Augment lib_SOURCES.
48268 2011-05-23  Bruno Haible  <bruno@clisp.org>
48270         openat-safer: Move AC_LIBOBJ invocations to module description.
48271         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
48272         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
48274 2011-05-23  Bruno Haible  <bruno@clisp.org>
48276         fcntl-safer: Move AC_LIBOBJ invocations to module description.
48277         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
48278         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
48280 2011-05-23  Bruno Haible  <bruno@clisp.org>
48282         exclude: Move AC_LIBOBJ invocations to module description.
48283         * m4/exclude.m4: Remove file.
48284         * modules/exclude (Files): Remove it.
48285         (configure.ac): Remove gl_EXCLUDE call.
48286         (Makefile.am): Augment lib_SOURCES.
48288 2011-05-23  Bruno Haible  <bruno@clisp.org>
48290         dirname*: Respect rules for use of AC_LIBOBJ.
48291         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
48292         invocations.
48293         * modules/dirname (Makefile.am): Augment lib_SOURCES.
48294         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
48296 2011-05-23  Bruno Haible  <bruno@clisp.org>
48298         dirent-safer: Move AC_LIBOBJ invocations to module description.
48299         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
48300         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
48302 2011-05-23  Bruno Haible  <bruno@clisp.org>
48304         crypto/des: Move AC_LIBOBJ invocations to module description.
48305         * m4/des.m4: Remove file.
48306         * modules/crypto/des (Files): Remove it.
48307         (configure.ac): Remove gl_DES call.
48308         (Makefile.am): Augment lib_SOURCES.
48310 2011-05-23  Bruno Haible  <bruno@clisp.org>
48312         cycle-check: Move AC_LIBOBJ invocations to module description.
48313         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
48314         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
48316 2011-05-23  Bruno Haible  <bruno@clisp.org>
48318         c-strtold: Move AC_LIBOBJ invocations to module description.
48319         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
48320         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
48322 2011-05-23  Bruno Haible  <bruno@clisp.org>
48324         c-strtod: Move AC_LIBOBJ invocations to module description.
48325         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
48326         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
48328 2011-05-23  Bruno Haible  <bruno@clisp.org>
48330         crc: Move AC_LIBOBJ invocations to module description.
48331         * m4/crc.m4: Remove file.
48332         * modules/crc (Files): Remove it.
48333         (configure.ac): Remove gl_CRC call.
48334         (Makefile.am): Augment lib_SOURCES.
48336 2011-05-23  Bruno Haible  <bruno@clisp.org>
48338         close-stream: Move AC_LIBOBJ invocations to module description.
48339         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
48340         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
48342 2011-05-23  Bruno Haible  <bruno@clisp.org>
48344         closeout: Move AC_LIBOBJ invocations to module description.
48345         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
48346         * modules/closeout (Makefile.am): Augment lib_SOURCES.
48348 2011-05-23  Bruno Haible  <bruno@clisp.org>
48350         closein: Move AC_LIBOBJ invocations to module description.
48351         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
48352         * modules/closein (Makefile.am): Augment lib_SOURCES.
48354 2011-05-23  Bruno Haible  <bruno@clisp.org>
48356         cloexec: Move AC_LIBOBJ invocations to module description.
48357         * m4/cloexec.m4: Remove file.
48358         * modules/cloexec (Files): Remove it.
48359         (configure.ac): Remove gl_CLOEXEC call.
48360         (Makefile.am): Augment lib_SOURCES.
48362 2011-05-23  Bruno Haible  <bruno@clisp.org>
48364         check-version: Move AC_LIBOBJ invocations to module description.
48365         * m4/check-version.m4: Remove file.
48366         * modules/check-version (Files): Remove it.
48367         (configure.ac): Remove gl_CHECK_VERSION call.
48368         (Makefile.am): Augment lib_SOURCES.
48370 2011-05-23  Bruno Haible  <bruno@clisp.org>
48372         chdir-safer: Move AC_LIBOBJ invocations to module description.
48373         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
48374         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
48376 2011-05-23  Bruno Haible  <bruno@clisp.org>
48378         canonicalize: Move AC_LIBOBJ invocations to module description.
48379         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
48380         AC_LIBOBJ invocation.
48381         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
48383 2011-05-23  Bruno Haible  <bruno@clisp.org>
48385         canon-host: Move AC_LIBOBJ invocations to module description.
48386         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
48387         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
48388         instead of gl_CANON_HOST.
48389         (Makefile.am): Augment lib_SOURCES.
48391 2011-05-23  Bruno Haible  <bruno@clisp.org>
48393         backupfile: Move AC_LIBOBJ invocations to module description.
48394         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
48395         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
48397 2011-05-23  Bruno Haible  <bruno@clisp.org>
48399         argmatch: Move AC_LIBOBJ invocations to module description.
48400         * m4/argmatch.m4: Remove file.
48401         * modules/argmatch (Files): Remove it.
48402         (configure.ac): Remove gl_ARGMATCH call.
48403         (Makefile.am): Augment lib_SOURCES.
48405 2011-05-23  Bruno Haible  <bruno@clisp.org>
48407         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
48408         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
48409         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
48411 2011-05-23  Bruno Haible  <bruno@clisp.org>
48413         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
48414         * m4/arcfour.m4: Remove file.
48415         * modules/crypto/arcfour (Files): Remove it.
48416         (configure.ac): Remove gl_ARCFOUR call.
48417         (Makefile.am): Augment lib_SOURCES.
48419 2011-05-22  Bruno Haible  <bruno@clisp.org>
48421         write: Move AC_LIBOBJ invocations to module description.
48422         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
48423         * modules/write (configure.ac): ... to here.
48425 2011-05-22  Bruno Haible  <bruno@clisp.org>
48427         wmemset: Move AC_LIBOBJ invocations to module description.
48428         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
48429         here...
48430         * modules/wmemset (configure.ac): ... to here.
48432 2011-05-22  Bruno Haible  <bruno@clisp.org>
48434         wmemmove: Move AC_LIBOBJ invocations to module description.
48435         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
48436         here...
48437         * modules/wmemmove (configure.ac): ... to here.
48439 2011-05-22  Bruno Haible  <bruno@clisp.org>
48441         wmemcpy: Move AC_LIBOBJ invocations to module description.
48442         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
48443         here...
48444         * modules/wmemcpy (configure.ac): ... to here.
48446 2011-05-22  Bruno Haible  <bruno@clisp.org>
48448         wmemcmp: Move AC_LIBOBJ invocations to module description.
48449         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
48450         here...
48451         * modules/wmemcmp (configure.ac): ... to here.
48453 2011-05-22  Bruno Haible  <bruno@clisp.org>
48455         wmemchr: Move AC_LIBOBJ invocations to module description.
48456         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
48457         here...
48458         * modules/wmemchr (configure.ac): ... to here.
48460 2011-05-22  Bruno Haible  <bruno@clisp.org>
48462         wcswidth: Move AC_LIBOBJ invocations to module description.
48463         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
48464         here...
48465         * modules/wcswidth (configure.ac): ... to here.
48467 2011-05-22  Bruno Haible  <bruno@clisp.org>
48469         wcwidth: Respect rules for use of AC_LIBOBJ.
48470         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
48471         invocation from here...
48472         * modules/wcwidth (configure.ac): ... to here.
48473         (Depends-on): Update conditions.
48475 2011-05-22  Bruno Haible  <bruno@clisp.org>
48477         wctype: Move AC_LIBOBJ invocations to module description.
48478         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
48479         invocation from here...
48480         * modules/wctype (configure.ac): ... to here.
48481         (Depends-on): Update conditions.
48483 2011-05-22  Bruno Haible  <bruno@clisp.org>
48485         wctrans: Move AC_LIBOBJ invocations to module description.
48486         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
48487         invocation from here...
48488         * modules/wctrans (configure.ac): ... to here.
48490 2011-05-22  Bruno Haible  <bruno@clisp.org>
48492         wctomb: Move AC_LIBOBJ invocations to module description.
48493         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
48494         invocations from here...
48495         * modules/wctomb (configure.ac): ... to here.
48497 2011-05-22  Bruno Haible  <bruno@clisp.org>
48499         wctob: Move AC_LIBOBJ invocations to module description.
48500         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
48501         gl_PREREQ_WCTOB invocations from here...
48502         * modules/wctob (configure.ac): ... to here.
48503         (Depends-on): Update conditions.
48505 2011-05-22  Bruno Haible  <bruno@clisp.org>
48507         wcsxfrm: Move AC_LIBOBJ invocations to module description.
48508         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
48509         here...
48510         * modules/wcsxfrm (configure.ac): ... to here.
48512 2011-05-22  Bruno Haible  <bruno@clisp.org>
48514         wcstok: Move AC_LIBOBJ invocations to module description.
48515         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
48516         * modules/wcstok (configure.ac): ... to here.
48518 2011-05-22  Bruno Haible  <bruno@clisp.org>
48520         wcsstr: Move AC_LIBOBJ invocations to module description.
48521         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
48522         * modules/wcsstr (configure.ac): ... to here.
48524 2011-05-22  Bruno Haible  <bruno@clisp.org>
48526         wcsspn: Move AC_LIBOBJ invocations to module description.
48527         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
48528         * modules/wcsspn (configure.ac): ... to here.
48530 2011-05-22  Bruno Haible  <bruno@clisp.org>
48532         wcsrtombs: Move AC_LIBOBJ invocations to module description.
48533         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
48534         gl_PREREQ_WCSRTOMBS invocations from here...
48535         * modules/wcsrtombs (configure.ac): ... to here.
48537 2011-05-22  Bruno Haible  <bruno@clisp.org>
48539         wcsrchr: Move AC_LIBOBJ invocations to module description.
48540         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
48541         here...
48542         * modules/wcsrchr (configure.ac): ... to here.
48544 2011-05-22  Bruno Haible  <bruno@clisp.org>
48546         wcspbrk: Move AC_LIBOBJ invocations to module description.
48547         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
48548         here...
48549         * modules/wcspbrk (configure.ac): ... to here.
48551 2011-05-22  Bruno Haible  <bruno@clisp.org>
48553         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
48554         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
48555         gl_PREREQ_WCSNRTOMBS invocations from here...
48556         * modules/wcsnrtombs (configure.ac): ... to here.
48558 2011-05-22  Bruno Haible  <bruno@clisp.org>
48560         wcsnlen: Move AC_LIBOBJ invocations to module description.
48561         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
48562         here...
48563         * modules/wcsnlen (configure.ac): ... to here.
48565 2011-05-22  Bruno Haible  <bruno@clisp.org>
48567         wcsncpy: Move AC_LIBOBJ invocations to module description.
48568         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
48569         here...
48570         * modules/wcsncpy (configure.ac): ... to here.
48572 2011-05-22  Bruno Haible  <bruno@clisp.org>
48574         wcsncmp: Move AC_LIBOBJ invocations to module description.
48575         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
48576         here...
48577         * modules/wcsncmp (configure.ac): ... to here.
48579 2011-05-22  Bruno Haible  <bruno@clisp.org>
48581         wcsncat: Move AC_LIBOBJ invocations to module description.
48582         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
48583         here...
48584         * modules/wcsncat (configure.ac): ... to here.
48586 2011-05-22  Bruno Haible  <bruno@clisp.org>
48588         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
48589         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
48590         from here...
48591         * modules/wcsncasecmp (configure.ac): ... to here.
48593 2011-05-22  Bruno Haible  <bruno@clisp.org>
48595         wcslen: Move AC_LIBOBJ invocations to module description.
48596         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
48597         * modules/wcslen (configure.ac): ... to here.
48599 2011-05-22  Bruno Haible  <bruno@clisp.org>
48601         wcsdup: Move AC_LIBOBJ invocations to module description.
48602         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
48603         * modules/wcsdup (configure.ac): ... to here.
48605 2011-05-22  Bruno Haible  <bruno@clisp.org>
48607         wcscspn: Move AC_LIBOBJ invocations to module description.
48608         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
48609         here...
48610         * modules/wcscspn (configure.ac): ... to here.
48612 2011-05-22  Bruno Haible  <bruno@clisp.org>
48614         wcscpy: Move AC_LIBOBJ invocations to module description.
48615         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
48616         * modules/wcscpy (configure.ac): ... to here.
48618 2011-05-22  Bruno Haible  <bruno@clisp.org>
48620         wcscoll: Move AC_LIBOBJ invocations to module description.
48621         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
48622         here...
48623         * modules/wcscoll (configure.ac): ... to here.
48625 2011-05-22  Bruno Haible  <bruno@clisp.org>
48627         wcscmp: Move AC_LIBOBJ invocations to module description.
48628         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
48629         * modules/wcscmp (configure.ac): ... to here.
48631 2011-05-22  Bruno Haible  <bruno@clisp.org>
48633         wcschr: Move AC_LIBOBJ invocations to module description.
48634         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
48635         * modules/wcschr (configure.ac): ... to here.
48637 2011-05-22  Bruno Haible  <bruno@clisp.org>
48639         wcscat: Move AC_LIBOBJ invocations to module description.
48640         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
48641         * modules/wcscat (configure.ac): ... to here.
48643 2011-05-22  Bruno Haible  <bruno@clisp.org>
48645         wcscasecmp: Move AC_LIBOBJ invocations to module description.
48646         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
48647         here...
48648         * modules/wcscasecmp (configure.ac): ... to here.
48650 2011-05-22  Bruno Haible  <bruno@clisp.org>
48652         wcrtomb: Move AC_LIBOBJ invocations to module description.
48653         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
48654         invocations from here...
48655         * modules/wcrtomb (configure.ac): ... to here.
48657 2011-05-22  Bruno Haible  <bruno@clisp.org>
48659         wcpncpy: Move AC_LIBOBJ invocations to module description.
48660         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
48661         here...
48662         * modules/wcpncpy (configure.ac): ... to here.
48664 2011-05-22  Bruno Haible  <bruno@clisp.org>
48666         wcpcpy: Move AC_LIBOBJ invocations to module description.
48667         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
48668         * modules/wcpcpy (configure.ac): ... to here.
48670 2011-05-22  Bruno Haible  <bruno@clisp.org>
48672         waitpid: Move AC_LIBOBJ invocations to module description.
48673         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
48674         invocation from here...
48675         * modules/waitpid (configure.ac): ... to here.
48677 2011-05-22  Bruno Haible  <bruno@clisp.org>
48679         utimensat: Move AC_LIBOBJ invocations to module description.
48680         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
48681         here...
48682         * modules/utimensat (configure.ac): ... to here.
48684 2011-05-22  Bruno Haible  <bruno@clisp.org>
48686         usleep: Move AC_LIBOBJ invocations to module description.
48687         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
48688         here...
48689         * modules/usleep (configure.ac): ... to here.
48691 2011-05-22  Bruno Haible  <bruno@clisp.org>
48693         unlockpt: Move AC_LIBOBJ invocations to module description.
48694         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
48695         gl_PREREQ_UNLOCKPT invocations from here...
48696         * modules/unlockpt (configure.ac): ... to here.
48698 2011-05-22  Bruno Haible  <bruno@clisp.org>
48700         unlink: Respect rules for use of AC_LIBOBJ.
48701         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
48702         * modules/unlink (configure.ac): ... to here.
48704 2011-05-22  Bruno Haible  <bruno@clisp.org>
48706         uname: Move AC_LIBOBJ invocations to module description.
48707         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
48708         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
48709         here...
48710         * modules/uname (configure.ac): ... to here.
48712 2011-05-22  Bruno Haible  <bruno@clisp.org>
48714         ttyname_r: Move AC_LIBOBJ invocations to module description.
48715         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
48716         gl_PREREQ_TTYNAME_R invocations from here...
48717         * modules/ttyname_r (configure.ac): ... to here.
48719 2011-05-22  Bruno Haible  <bruno@clisp.org>
48721         tsearch: Move AC_LIBOBJ invocations to module description.
48722         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
48723         invocations from here...
48724         * modules/tsearch (configure.ac): ... to here.
48726 2011-05-22  Bruno Haible  <bruno@clisp.org>
48728         towctrans: Move AC_LIBOBJ invocations to module description.
48729         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
48730         AC_LIBOBJ invocation from here...
48731         * modules/towctrans (configure.ac): ... to here.
48733 2011-05-22  Bruno Haible  <bruno@clisp.org>
48735         tmpfile: Move AC_LIBOBJ invocations to module description.
48736         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
48737         invocations from here...
48738         * modules/tmpfile (configure.ac): ... to here.
48740 2011-05-22  Bruno Haible  <bruno@clisp.org>
48742         times: Move AC_LIBOBJ invocations to module description.
48743         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
48744         * modules/times (configure.ac): ... to here.
48746 2011-05-22  Bruno Haible  <bruno@clisp.org>
48748         time_r: Move AC_LIBOBJ invocations to module description.
48749         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
48750         invocations from here...
48751         * modules/time_r (configure.ac): ... to here.
48753 2011-05-22  Bruno Haible  <bruno@clisp.org>
48755         timegm: Move AC_LIBOBJ invocations to module description.
48756         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
48757         invocations from here...
48758         * modules/timegm (configure.ac): ... to here.
48760 2011-05-22  Bruno Haible  <bruno@clisp.org>
48762         tcgetsid: Move AC_LIBOBJ invocations to module description.
48763         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
48764         and gl_PREREQ_TCGETSID invocations from here...
48765         * modules/tcgetsid (configure.ac): ... to here.
48766         (Depends-on): Update conditions.
48768 2011-05-22  Bruno Haible  <bruno@clisp.org>
48770         symlinkat: Move AC_LIBOBJ invocations to module description.
48771         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
48772         here...
48773         * modules/symlinkat (configure.ac): ... to here.
48775 2011-05-22  Bruno Haible  <bruno@clisp.org>
48777         symlink: Move AC_LIBOBJ invocations to module description.
48778         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
48779         here...
48780         * modules/symlink (configure.ac): ... to here.
48782 2011-05-22  Bruno Haible  <bruno@clisp.org>
48784         strverscmp: Move AC_LIBOBJ invocations to module description.
48785         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
48786         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
48787         from here...
48788         * modules/strverscmp (configure.ac): ... to here.
48790 2011-05-22  Bruno Haible  <bruno@clisp.org>
48792         strtok_r: Move AC_LIBOBJ invocations to module description.
48793         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
48794         and gl_PREREQ_STRTOK_R invocations from here...
48795         * modules/strtok_r (configure.ac): ... to here.
48796         (Depends-on): Update conditions.
48798 2011-05-22  Bruno Haible  <bruno@clisp.org>
48800         strtoumax: Move AC_LIBOBJ invocations to module description.
48801         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
48802         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
48803         from here...
48804         * modules/strtoumax (configure.ac): ... to here.
48806 2011-05-22  Bruno Haible  <bruno@clisp.org>
48808         strtoimax: Move AC_LIBOBJ invocations to module description.
48809         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
48810         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
48811         from here...
48812         * modules/strtoimax (configure.ac): ... to here.
48814 2011-05-22  Bruno Haible  <bruno@clisp.org>
48816         strtoull: Move AC_LIBOBJ invocations to module description.
48817         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
48818         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
48819         from here...
48820         * modules/strtoull (configure.ac): ... to here.
48822 2011-05-22  Bruno Haible  <bruno@clisp.org>
48824         strtoll: Move AC_LIBOBJ invocations to module description.
48825         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
48826         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
48827         here...
48828         * modules/strtoll (configure.ac): ... to here.
48830 2011-05-22  Bruno Haible  <bruno@clisp.org>
48832         strtoul: Move AC_LIBOBJ invocations to module description.
48833         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
48834         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
48835         * modules/strtoul (configure.ac): ... to here.
48837 2011-05-22  Bruno Haible  <bruno@clisp.org>
48839         strtol: Move AC_LIBOBJ invocations to module description.
48840         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
48841         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
48842         * modules/strtol (configure.ac): ... to here.
48844 2011-05-22  Bruno Haible  <bruno@clisp.org>
48846         strtod: Move AC_LIBOBJ invocations to module description.
48847         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
48848         invocations from here...
48849         * modules/strtod (configure.ac): ... to here.
48851 2011-05-22  Bruno Haible  <bruno@clisp.org>
48853         strstr*: Move AC_LIBOBJ invocations to module description.
48854         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
48855         invocations from here...
48856         * modules/strstr-simple (configure.ac): ... to here.
48857         * modules/strstr (configure.ac): ... and here.
48859 2011-05-22  Bruno Haible  <bruno@clisp.org>
48861         strsignal: Move AC_LIBOBJ invocations to module description.
48862         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
48863         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
48864         * modules/strsignal (configure.ac): ... to here.
48865         (Depends-on): Update conditions.
48867 2011-05-22  Bruno Haible  <bruno@clisp.org>
48869         strsep: Move AC_LIBOBJ invocations to module description.
48870         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
48871         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
48872         here...
48873         * modules/strsep (configure.ac): ... to here.
48875 2011-05-22  Bruno Haible  <bruno@clisp.org>
48877         strptime: Move AC_LIBOBJ invocations to module description.
48878         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
48879         gl_PREREQ_STRPTIME invocations from here...
48880         * modules/strptime (configure.ac): ... to here.
48882 2011-05-22  Bruno Haible  <bruno@clisp.org>
48884         strpbrk: Move AC_LIBOBJ invocations to module description.
48885         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
48886         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
48887         here...
48888         * modules/strpbrk (configure.ac): ... to here.
48890 2011-05-22  Bruno Haible  <bruno@clisp.org>
48892         strnlen: Move AC_LIBOBJ invocations to module description.
48893         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
48894         invocations from here...
48895         * modules/strnlen (configure.ac): ... to here.
48897 2011-05-22  Bruno Haible  <bruno@clisp.org>
48899         strndup: Move AC_LIBOBJ invocations to module description.
48900         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
48901         invocations from here...
48902         * modules/strndup (configure.ac): ... to here.
48903         (Depends-on): Update conditions.
48905 2011-05-22  Bruno Haible  <bruno@clisp.org>
48907         strncat: Move AC_LIBOBJ invocations to module description.
48908         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
48909         invocations from here...
48910         * modules/strncat (configure.ac): ... to here.
48912 2011-05-22  Bruno Haible  <bruno@clisp.org>
48914         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
48915         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
48916         invocations from here...
48917         * modules/strdup (configure.ac): ... to here.
48918         * modules/strdup-posix (configure.ac): ... and here.
48920 2011-05-22  Bruno Haible  <bruno@clisp.org>
48922         strcspn: Move AC_LIBOBJ invocations to module description.
48923         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
48924         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
48925         here...
48926         * modules/strcspn (configure.ac): ... to here.
48928 2011-05-22  Bruno Haible  <bruno@clisp.org>
48930         strchrnul: Move AC_LIBOBJ invocations to module description.
48931         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
48932         gl_PREREQ_STRCHRNUL invocations from here...
48933         * modules/strchrnul (configure.ac): ... to here.
48935 2011-05-22  Bruno Haible  <bruno@clisp.org>
48937         strcasestr*: Move AC_LIBOBJ invocations to module description.
48938         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
48939         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
48940         * modules/strcasestr-simple (configure.ac): ... to here.
48941         * modules/strcasestr (configure.ac): ... and here.
48943 2011-05-22  Bruno Haible  <bruno@clisp.org>
48945         strcase: Move AC_LIBOBJ invocations to module description.
48946         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
48947         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
48948         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
48949         gl_PREREQ_STRNCASECMP invocations from here...
48950         * modules/strcase (configure.ac): ... to here.
48952 2011-05-22  Bruno Haible  <bruno@clisp.org>
48954         stpncpy: Move AC_LIBOBJ invocations to module description.
48955         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
48956         here...
48957         * modules/stpncpy (configure.ac): ... to here.
48959 2011-05-22  Bruno Haible  <bruno@clisp.org>
48961         stpcpy: Move AC_LIBOBJ invocations to module description.
48962         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
48963         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
48964         here...
48965         * modules/stpcpy (configure.ac): ... to here.
48967 2011-05-21  Bruno Haible  <bruno@clisp.org>
48969         stat: Move AC_LIBOBJ invocations to module description.
48970         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
48971         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
48972         here...
48973         * modules/stat (configure.ac): ... to here.
48975 2011-05-21  Bruno Haible  <bruno@clisp.org>
48977         sleep: Move AC_LIBOBJ invocations to module description.
48978         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
48979         * modules/sleep (configure.ac): ... to here.
48981 2011-05-21  Bruno Haible  <bruno@clisp.org>
48983         signbit: Move AC_LIBOBJ invocations to module description.
48984         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
48985         * modules/signbit (configure.ac): ... to here.
48987 2011-05-21  Bruno Haible  <bruno@clisp.org>
48989         sigprocmask: Move AC_LIBOBJ invocations to module description.
48990         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
48991         gl_PREREQ_SIGPROMASK invocations from here...
48992         * modules/sigprocmask (configure.ac): ... to here.
48994 2011-05-21  Bruno Haible  <bruno@clisp.org>
48996         sigaction: Move AC_LIBOBJ invocations to module description.
48997         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
48998         gl_PREREQ_SIGACTION invocations from here...
48999         * modules/sigaction (configure.ac): ... to here.
49001 2011-05-21  Bruno Haible  <bruno@clisp.org>
49003         sig2str: Move AC_LIBOBJ invocations to module description.
49004         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
49005         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
49006         here...
49007         * modules/sig2str (configure.ac): ... to here.
49009 2011-05-21  Bruno Haible  <bruno@clisp.org>
49011         setlocale: Move AC_LIBOBJ invocations to module description.
49012         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
49013         gl_PREREQ_SETLOCALE invocations from here...
49014         * modules/setlocale (configure.ac): ... to here.
49016 2011-05-21  Bruno Haible  <bruno@clisp.org>
49018         unsetenv: Move AC_LIBOBJ invocations to module description.
49019         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
49020         and gl_PREREQ_UNSETENV invocations from here...
49021         * modules/unsetenv (configure.ac): ... to here.
49022         (Depends-on): Update.
49024 2011-05-21  Bruno Haible  <bruno@clisp.org>
49026         setenv: Move AC_LIBOBJ invocations to module description.
49027         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
49028         here...
49029         * modules/setenv (configure.ac): ... to here.
49031 2011-05-21  Bruno Haible  <bruno@clisp.org>
49033         selinux-h: Move AC_LIBOBJ invocations to module description.
49034         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
49035         AC_LIBOBJ invocation from here...
49036         * modules/selinux-h (configure.ac): ... to here.
49038 2011-05-21  Bruno Haible  <bruno@clisp.org>
49040         select: Respect rules for use of AC_LIBOBJ.
49041         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
49042         here...
49043         * modules/select (configure.ac): ... to here.
49045 2011-05-21  Bruno Haible  <bruno@clisp.org>
49047         scandir: Move AC_LIBOBJ invocations to module description.
49048         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
49049         invocations from here...
49050         * modules/scandir (configure.ac): ... to here.
49052 2011-05-21  Bruno Haible  <bruno@clisp.org>
49054         rpmatch: Move AC_LIBOBJ invocations to module description.
49055         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
49056         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
49057         here...
49058         * modules/rpmatch (configure.ac): ... to here.
49060 2011-05-21  Bruno Haible  <bruno@clisp.org>
49062         rmdir: Respect rules for use of AC_LIBOBJ.
49063         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
49064         * modules/rmdir (configure.ac): ... to here.
49066 2011-05-21  Bruno Haible  <bruno@clisp.org>
49068         renameat: Move AC_LIBOBJ invocations to module description.
49069         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
49070         here...
49071         * modules/renameat (configure.ac): ... to here.
49073 2011-05-21  Bruno Haible  <bruno@clisp.org>
49075         rename: Respect rules for use of AC_LIBOBJ.
49076         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
49077         here...
49078         * modules/rename (configure.ac): ... to here.
49080 2011-05-21  Bruno Haible  <bruno@clisp.org>
49082         remove: Move AC_LIBOBJ invocations to module description.
49083         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
49084         here...
49085         * modules/remove (configure.ac): ... to here.
49087 2011-05-21  Bruno Haible  <bruno@clisp.org>
49089         relocatable-lib: Move AC_LIBOBJ invocations to module description.
49090         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
49091         macro.
49092         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
49093         * modules/relocatable-lib (configure.ac): ... to here.
49094         * modules/relocatable-prog-wrapper (configure.ac): Invoke
49095         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
49097 2011-05-21  Bruno Haible  <bruno@clisp.org>
49099         relocatable-prog: Move AC_LIBOBJ invocations to module description.
49100         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
49101         here...
49102         * modules/relocatable-prog (configure.ac): ... to here.
49104 2011-05-21  Bruno Haible  <bruno@clisp.org>
49106         regex: Move AC_LIBOBJ invocations to module description.
49107         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
49108         invocations from here...
49109         * modules/regex (configure.ac): ... to here.
49111 2011-05-21  Bruno Haible  <bruno@clisp.org>
49113         realloc-*: Move AC_LIBOBJ invocations to module description.
49114         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
49115         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
49116         AC_LIBOBJ invocations from here...
49117         * modules/realloc-gnu (configure.ac): ... to here.
49118         * modules/realloc-posix (configure.ac): ... and here.
49120 2011-05-21  Bruno Haible  <bruno@clisp.org>
49122         readutmp: Move AC_LIBOBJ invocations to module description.
49123         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
49124         * modules/readutmp (configure.ac): ... to here.
49126 2011-05-21  Bruno Haible  <bruno@clisp.org>
49128         readlinkat: Move AC_LIBOBJ invocations to module description.
49129         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
49130         here...
49131         * modules/readlinkat (configure.ac): ... to here.
49133 2011-05-21  Bruno Haible  <bruno@clisp.org>
49135         readlink: Move AC_LIBOBJ invocations to module description.
49136         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
49137         gl_PREREQ_READLINK invocations from here...
49138         * modules/readlink (configure.ac): ... to here.
49140 2011-05-21  Bruno Haible  <bruno@clisp.org>
49142         readline: Move AC_LIBOBJ invocations to module description.
49143         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
49144         gl_PREREQ_READLINE invocations from here...
49145         * modules/readline (configure.ac): ... to here.
49147 2011-05-21  Bruno Haible  <bruno@clisp.org>
49149         read: Move AC_LIBOBJ invocations to module description.
49150         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
49151         * modules/read (configure.ac): ... to here.
49153 2011-05-21  Bruno Haible  <bruno@clisp.org>
49155         rawmemchr: Move AC_LIBOBJ invocations to module description.
49156         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
49157         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
49158         from here...
49159         * modules/rawmemchr (configure.ac): ... to here.
49161 2011-05-21  Bruno Haible  <bruno@clisp.org>
49163         random_r: Move AC_LIBOBJ invocations to module description.
49164         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
49165         gl_PREREQ_RANDOM_R invocations from here...
49166         * modules/random_r (configure.ac): ... to here.
49168 2011-05-21  Bruno Haible  <bruno@clisp.org>
49170         pwrite: Move AC_LIBOBJ invocations to module description.
49171         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
49172         * modules/pwrite (configure.ac): ... to here.
49174 2011-05-21  Bruno Haible  <bruno@clisp.org>
49176         putenv: Move AC_LIBOBJ invocations to module description.
49177         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
49178         * modules/putenv (configure.ac): ... to here.
49180 2011-05-21  Bruno Haible  <bruno@clisp.org>
49182         login_tty: Move AC_LIBOBJ invocations to module description.
49183         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
49184         * modules/login_tty (configure.ac): ... to here.
49186 2011-05-21  Bruno Haible  <bruno@clisp.org>
49188         openpty: Move AC_LIBOBJ invocations to module description.
49189         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
49190         * modules/openpty (configure.ac): ... to here.
49192 2011-05-21  Bruno Haible  <bruno@clisp.org>
49194         forkpty: Move AC_LIBOBJ invocations to module description.
49195         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
49196         * modules/forkpty (configure.ac): ... to here.
49198 2011-05-21  Bruno Haible  <bruno@clisp.org>
49200         ptsname: Move AC_LIBOBJ invocations to module description.
49201         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
49202         invocations from here...
49203         * modules/ptsname (configure.ac): ... to here.
49205 2011-05-21  Bruno Haible  <bruno@clisp.org>
49207         pread: Move AC_LIBOBJ invocations to module description.
49208         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
49209         * modules/pread (configure.ac): ... to here.
49211 2011-05-21  Bruno Haible  <bruno@clisp.org>
49213         posix_spawn*: Move AC_LIBOBJ invocations to module description.
49214         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
49215         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
49216         * modules/posix_spawn (configure.ac): ... to here.
49217         * modules/posix_spawnp (configure.ac): ... and here.
49219 2011-05-21  Bruno Haible  <bruno@clisp.org>
49221         popen: Move AC_LIBOBJ invocations to module description.
49222         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
49223         invocations from here...
49224         * modules/popen (configure.ac): ... to here.
49226 2011-05-21  Bruno Haible  <bruno@clisp.org>
49228         poll: Move AC_LIBOBJ invocations to module description.
49229         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
49230         invocations from here...
49231         * modules/poll (configure.ac): ... to here.
49233 2011-05-21  Bruno Haible  <bruno@clisp.org>
49235         pipe-posix: Move AC_LIBOBJ invocations to module description.
49236         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
49237         * modules/pipe-posix (configure.ac): ... to here.
49239 2011-05-21  Bruno Haible  <bruno@clisp.org>
49241         openat: Respect rules for use of AC_LIBOBJ.
49242         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
49243         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
49244         * modules/openat (configure.ac): ... to here.
49246 2011-05-21  Bruno Haible  <bruno@clisp.org>
49248         obstack-printf*: Move AC_LIBOBJ invocations to module description.
49249         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
49250         invocation from here...
49251         * modules/obstack-printf (configure.ac): ... to here.
49252         * modules/obstack-printf-posix (configure.ac): ... and here.
49254 2011-05-21  Bruno Haible  <bruno@clisp.org>
49256         nl_langinfo: Move AC_LIBOBJ invocations to module description.
49257         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
49258         from here...
49259         * modules/nl_langinfo (configure.ac): ... to here.
49261 2011-05-21  Bruno Haible  <bruno@clisp.org>
49263         nanosleep: Move AC_LIBOBJ invocations to module description.
49264         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
49265         gl_PREREQ_NANOSLEEP invocations from here...
49266         * modules/nanosleep (configure.ac): ... to here.
49268 2011-05-21  Bruno Haible  <bruno@clisp.org>
49270         mountlist: Move AC_LIBOBJ invocations to module description.
49271         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
49272         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
49273         * modules/mountlist (configure.ac): ... to here.
49275 2011-05-21  Bruno Haible  <bruno@clisp.org>
49277         mktime: Respect rules for use of AC_LIBOBJ.
49278         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
49279         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
49280         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
49281         (gl_FUNC_MKTIME_INTERNAL): ... and here...
49282         * modules/mktime (configure.ac): ... to here.
49283         * modules/mktime-internal (configure.ac): ... and here.
49284         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
49286 2011-05-21  Bruno Haible  <bruno@clisp.org>
49288         mkstemps: Move AC_LIBOBJ invocations to module description.
49289         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
49290         here...
49291         * modules/mkstemps (configure.ac): ... to here.
49293 2011-05-21  Bruno Haible  <bruno@clisp.org>
49295         mkstemp: Move AC_LIBOBJ invocations to module description.
49296         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
49297         gl_PREREQ_MKSTEMP invocations from here...
49298         * modules/mkstemp (configure.ac): ... to here.
49300 2011-05-21  Bruno Haible  <bruno@clisp.org>
49302         mkostemps: Move AC_LIBOBJ invocations to module description.
49303         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
49304         here...
49305         * modules/mkostemps (configure.ac): ... to here.
49307 2011-05-21  Bruno Haible  <bruno@clisp.org>
49309         mkostemp: Move AC_LIBOBJ invocations to module description.
49310         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
49311         gl_PREREQ_MKOSTEMP invocations from here...
49312         * modules/mkostemp (configure.ac): ... to here.
49314 2011-05-21  Bruno Haible  <bruno@clisp.org>
49316         mknod: Move AC_LIBOBJ invocations to module description.
49317         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
49318         * modules/mknod (configure.ac): ... to here.
49320 2011-05-21  Bruno Haible  <bruno@clisp.org>
49322         mkfifoat: Move AC_LIBOBJ invocations to module description.
49323         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
49324         here...
49325         * modules/mkfifoat (configure.ac): ... to here.
49327 2011-05-21  Bruno Haible  <bruno@clisp.org>
49329         mkfifo: Respect rules for use of AC_LIBOBJ.
49330         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
49331         here...
49332         * modules/mkfifo (configure.ac): ... to here.
49334 2011-05-21  Bruno Haible  <bruno@clisp.org>
49336         mkdtemp: Move AC_LIBOBJ invocations to module description.
49337         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
49338         invocations from here...
49339         * modules/mkdtemp (configure.ac): ... to here.
49341 2011-05-21  Bruno Haible  <bruno@clisp.org>
49343         mkdir: Move AC_LIBOBJ invocations to module description.
49344         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
49345         * modules/mkdir (configure.ac): ... to here.
49347 2011-05-21  Bruno Haible  <bruno@clisp.org>
49349         memset: Move AC_LIBOBJ invocations to module description.
49350         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
49351         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
49352         here...
49353         * modules/memset (configure.ac): ... to here.
49355 2011-05-21  Bruno Haible  <bruno@clisp.org>
49357         memrchr: Move AC_LIBOBJ invocations to module description.
49358         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
49359         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
49360         here...
49361         * modules/memrchr (configure.ac): ... to here.
49363 2011-05-21  Bruno Haible  <bruno@clisp.org>
49365         mempcpy: Move AC_LIBOBJ invocations to module description.
49366         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
49367         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
49368         here...
49369         * modules/mempcpy (configure.ac): ... to here.
49371 2011-05-21  Bruno Haible  <bruno@clisp.org>
49373         memmove: Move AC_LIBOBJ invocations to module description.
49374         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
49375         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
49376         here...
49377         * modules/memmove (configure.ac): ... to here.
49379 2011-05-21  Bruno Haible  <bruno@clisp.org>
49381         memmem*: Move AC_LIBOBJ invocations to module description.
49382         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
49383         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
49384         here...
49385         (gl_FUNC_MEMMEM): ... and here...
49386         * modules/memmem-simple (configure.ac): ... to here.
49387         * modules/memmem (configure.ac): ... and here.
49389 2011-05-21  Bruno Haible  <bruno@clisp.org>
49391         memcpy: Move AC_LIBOBJ invocations to module description.
49392         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
49393         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
49394         here...
49395         * modules/memcpy (configure.ac): ... to here.
49397 2011-05-21  Bruno Haible  <bruno@clisp.org>
49399         memcmp: Simplify autoconf macro.
49400         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
49401         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
49402         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
49404 2011-05-21  Bruno Haible  <bruno@clisp.org>
49406         memcmp: Move AC_LIBOBJ invocations to module description.
49407         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
49408         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
49409         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
49410         * modules/memcmp (configure.ac): ... to here.
49411         (Depends-on): Update conditions.
49413 2011-05-21  Bruno Haible  <bruno@clisp.org>
49415         memchr: Respect rules for use of AC_LIBOBJ.
49416         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
49417         invocations from here...
49418         * modules/memchr (configure.ac): ... to here.
49420 2011-05-21  Bruno Haible  <bruno@clisp.org>
49422         mbtowc: Move AC_LIBOBJ invocations to module description.
49423         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
49424         invocations from here...
49425         * modules/mbtowc (configure.ac): ... to here.
49427 2011-05-21  Bruno Haible  <bruno@clisp.org>
49429         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
49430         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
49431         gl_PREREQ_MBSRTOWCS invocations from here...
49432         * modules/mbsrtowcs (configure.ac): ... to here.
49434 2011-05-21  Bruno Haible  <bruno@clisp.org>
49436         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
49437         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
49438         gl_PREREQ_MBSNRTOWCS invocations from here...
49439         * modules/mbsnrtowcs (configure.ac): ... to here.
49441 2011-05-21  Bruno Haible  <bruno@clisp.org>
49443         mbsinit: Move AC_LIBOBJ invocations to module description.
49444         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
49445         invocations from here...
49446         * modules/mbsinit (configure.ac): ... to here.
49448 2011-05-21  Bruno Haible  <bruno@clisp.org>
49450         mbrlen: Move AC_LIBOBJ invocations to module description.
49451         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
49452         invocations from here...
49453         * modules/mbrlen (configure.ac): ... to here.
49455 2011-05-21  Bruno Haible  <bruno@clisp.org>
49457         mbrtowc: Respect rules for use of AC_LIBOBJ.
49458         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
49459         invocations from here...
49460         * modules/mbrtowc (configure.ac): ... to here.
49462 2011-05-21  Bruno Haible  <bruno@clisp.org>
49464         malloc-*: Move AC_LIBOBJ invocations to module description.
49465         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
49466         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
49467         AC_LIBOBJ invocations from here...
49468         * modules/malloc-gnu (configure.ac): ... to here.
49469         * modules/malloc-posix (configure.ac): ... and here.
49471 2011-05-21  Bruno Haible  <bruno@clisp.org>
49473         lstat, openat: Respect rules for use of AC_LIBOBJ.
49474         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
49475         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
49476         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
49477         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
49478         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
49479         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
49480         here.
49481         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
49483 2011-05-21  Bruno Haible  <bruno@clisp.org>
49485         lseek: Move AC_LIBOBJ invocations to module description.
49486         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
49487         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
49488         * modules/lseek (configure.ac): ... to here.
49490 2011-05-21  Bruno Haible  <bruno@clisp.org>
49492         linkat: Move AC_LIBOBJ invocations to module description.
49493         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
49494         here...
49495         * modules/linkat (configure.ac): ... to here.
49497 2011-05-21  Bruno Haible  <bruno@clisp.org>
49499         link: Respect rules for use of AC_LIBOBJ.
49500         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
49501         * modules/link (configure.ac): ... to here.
49503 2011-05-21  Bruno Haible  <bruno@clisp.org>
49505         lchown: Move AC_LIBOBJ invocations to module description.
49506         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
49507         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
49508         * modules/lchown (configure.ac): ... to here.
49510 2011-05-21  Bruno Haible  <bruno@clisp.org>
49512         iswctype: Move AC_LIBOBJ invocations to module description.
49513         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
49514         here...
49515         * modules/iswctype (configure.ac): ... to here.
49517 2011-05-21  Bruno Haible  <bruno@clisp.org>
49519         iswblank: Move AC_LIBOBJ invocations to module description.
49520         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
49521         here...
49522         * modules/iswblank (configure.ac): ... to here.
49524 2011-05-21  Bruno Haible  <bruno@clisp.org>
49526         atanl: Move AC_LIBOBJ invocations to module description.
49527         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
49528         * modules/atanl (configure.ac): ... to here.
49530 2011-05-21  Bruno Haible  <bruno@clisp.org>
49532         acosl: Move AC_LIBOBJ invocations to module description.
49533         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
49534         * modules/acosl (configure.ac): ... to here.
49536 2011-05-21  Bruno Haible  <bruno@clisp.org>
49538         asinl: Respect rules for use of AC_LIBOBJ.
49539         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
49540         * modules/asinl (configure.ac): ... to here.
49542 2011-05-21  Bruno Haible  <bruno@clisp.org>
49544         tanl: Move AC_LIBOBJ invocations to module description.
49545         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
49546         * modules/tanl (configure.ac): ... to here.
49548 2011-05-21  Bruno Haible  <bruno@clisp.org>
49550         cosl: Move AC_LIBOBJ invocations to module description.
49551         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
49552         * modules/cosl (configure.ac): ... to here.
49554 2011-05-21  Bruno Haible  <bruno@clisp.org>
49556         sinl: Move AC_LIBOBJ invocations to module description.
49557         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
49558         * modules/sinl (configure.ac): ... to here.
49560 2011-05-21  Bruno Haible  <bruno@clisp.org>
49562         logl: Move AC_LIBOBJ invocations to module description.
49563         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
49564         * modules/logl (configure.ac): ... to here.
49566 2011-05-21  Bruno Haible  <bruno@clisp.org>
49568         expl: Move AC_LIBOBJ invocations to module description.
49569         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
49570         * modules/expl (configure.ac): ... to here.
49572 2011-05-21  Bruno Haible  <bruno@clisp.org>
49574         roundl: Move AC_LIBOBJ invocations to module description.
49575         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
49576         * modules/roundl (configure.ac): ... to here.
49578 2011-05-21  Bruno Haible  <bruno@clisp.org>
49580         round: Move AC_LIBOBJ invocations to module description.
49581         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
49582         * modules/round (configure.ac): ... to here.
49584 2011-05-21  Bruno Haible  <bruno@clisp.org>
49586         roundf: Move AC_LIBOBJ invocations to module description.
49587         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
49588         * modules/roundf (configure.ac): ... to here.
49590 2011-05-21  Bruno Haible  <bruno@clisp.org>
49592         truncl: Move AC_LIBOBJ invocations to module description.
49593         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
49594         * modules/truncl (configure.ac): ... to here.
49596 2011-05-21  Bruno Haible  <bruno@clisp.org>
49598         trunc: Move AC_LIBOBJ invocations to module description.
49599         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
49600         * modules/trunc (configure.ac): ... to here.
49602 2011-05-21  Bruno Haible  <bruno@clisp.org>
49604         truncf: Move AC_LIBOBJ invocations to module description.
49605         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
49606         * modules/truncf (configure.ac): ... to here.
49608 2011-05-21  Bruno Haible  <bruno@clisp.org>
49610         ceill: Move AC_LIBOBJ invocations to module description.
49611         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
49612         * modules/ceill (configure.ac): ... to here.
49614 2011-05-21  Bruno Haible  <bruno@clisp.org>
49616         ceil: Move AC_LIBOBJ invocations to module description.
49617         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
49618         * modules/ceil (configure.ac): ... to here.
49620 2011-05-21  Bruno Haible  <bruno@clisp.org>
49622         ceilf: Move AC_LIBOBJ invocations to module description.
49623         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
49624         * modules/ceilf (configure.ac): ... to here.
49626 2011-05-21  Bruno Haible  <bruno@clisp.org>
49628         floorl: Respect rules for use of AC_LIBOBJ.
49629         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
49630         * modules/floorl (configure.ac): ... to here.
49632 2011-05-21  Bruno Haible  <bruno@clisp.org>
49634         floor: Respect rules for use of AC_LIBOBJ.
49635         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
49636         * modules/floor (configure.ac): ... to here.
49638 2011-05-21  Bruno Haible  <bruno@clisp.org>
49640         floorf: Move AC_LIBOBJ invocations to module description.
49641         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
49642         * modules/floorf (configure.ac): ... to here.
49644 2011-05-20  Bruno Haible  <bruno@clisp.org>
49646         sqrtl: Respect rules for use of AC_LIBOBJ.
49647         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
49648         * modules/sqrtl (configure.ac): ... to here.
49650 2011-05-20  Bruno Haible  <bruno@clisp.org>
49652         ldexpl: Respect rules for use of AC_LIBOBJ.
49653         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
49654         * modules/ldexpl (configure.ac): ... to here.
49656 2011-05-20  Bruno Haible  <bruno@clisp.org>
49658         frexpl*: Respect rules for use of AC_LIBOBJ.
49659         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
49660         invocation from here...
49661         * modules/frexpl (configure.ac): ... to here.
49662         * modules/frexpl-nolibm (configure.ac): ... and here.
49664 2011-05-20  Bruno Haible  <bruno@clisp.org>
49666         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
49667         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
49668         invocation from here...
49669         * modules/frexp (configure.ac): ... to here.
49670         * modules/frexp-nolibm (configure.ac): ... and here.
49672 2011-05-20  Bruno Haible  <bruno@clisp.org>
49674         isnan: Respect rules for use of AC_LIBOBJ.
49675         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
49676         invocations here.
49677         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
49678         REPLACE_ISNAN.
49679         * modules/isnand (configure.ac): Likewise.
49680         * modules/isnanl (configure.ac): Likewise.
49682 2011-05-20  Bruno Haible  <bruno@clisp.org>
49684         isnanl*: Respect rules for use of AC_LIBOBJ.
49685         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
49686         invocation from here...
49687         * modules/isnanl (configure.ac): ... to here.
49688         * modules/isnanl-nolibm (configure.ac): ... and here.
49690 2011-05-20  Bruno Haible  <bruno@clisp.org>
49692         isnand*: Move AC_LIBOBJ invocations to module description.
49693         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
49694         invocation from here...
49695         * modules/isnand (configure.ac): ... to here.
49696         * modules/isnand-nolibm (configure.ac): ... and here.
49698 2011-05-20  Bruno Haible  <bruno@clisp.org>
49700         isnanf*: Move AC_LIBOBJ invocations to module description.
49701         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
49702         invocation from here...
49703         * modules/isnanf (configure.ac): ... to here.
49704         * modules/isnanf-nolibm (configure.ac): ... and here.
49706 2011-05-20  Bruno Haible  <bruno@clisp.org>
49708         isnan*: Separate the AC_LIBOBJ invocations.
49709         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
49710         AC_LIBOBJ invocation.
49711         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
49712         here.
49713         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
49714         AC_LIBOBJ invocation.
49715         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
49716         here.
49717         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
49718         AC_LIBOBJ invocation.
49719         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
49720         here.
49721         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
49723 2011-05-08  Bruno Haible  <bruno@clisp.org>
49725         isinf: Move AC_LIBOBJ invocations to module description.
49726         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
49727         * modules/isinf (configure.ac): ... to here.
49729 2011-05-08  Bruno Haible  <bruno@clisp.org>
49731         isfinite: Move AC_LIBOBJ invocations to module description.
49732         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
49733         * modules/isfinite (configure.ac): ... to here.
49735 2011-05-08  Bruno Haible  <bruno@clisp.org>
49737         isblank: Move AC_LIBOBJ invocations to module description.
49738         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
49739         here...
49740         * modules/isblank (configure.ac): ... to here.
49742 2011-05-08  Bruno Haible  <bruno@clisp.org>
49744         isapipe: Move AC_LIBOBJ invocations to module description.
49745         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
49746         gl_PREREQ_ISAPIPE invocations from here...
49747         * modules/isapipe (configure.ac): ... to here.
49748         (Depends-on): Update condition.
49750 2011-05-08  Bruno Haible  <bruno@clisp.org>
49752         ioctl: Move AC_LIBOBJ invocations to module description.
49753         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
49754         invocations from here...
49755         * modules/ioctl (configure.ac): ... to here.
49756         (Depends-on): Update condition.
49758 2011-05-08  Bruno Haible  <bruno@clisp.org>
49760         imaxdiv: Move AC_LIBOBJ invocations to module description.
49761         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
49762         invocations from here...
49763         * modules/imaxdiv (configure.ac): ... to here.
49765 2011-05-08  Bruno Haible  <bruno@clisp.org>
49767         imaxabs: Move AC_LIBOBJ invocations to module description.
49768         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
49769         invocations from here...
49770         * modules/imaxabs (configure.ac): ... to here.
49772 2011-05-08  Bruno Haible  <bruno@clisp.org>
49774         getaddrinfo: Move AC_LIBOBJ invocations to module description.
49775         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
49776         AC_LIBOBJ invocations from here...
49777         * modules/getaddrinfo (configure.ac): ... to here.
49778         (Depends-on): Add conditions.
49780 2011-05-08  Bruno Haible  <bruno@clisp.org>
49782         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
49783         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
49784         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
49785         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
49786         (gl_PREREQ_INET_PTON): ... from here.
49787         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
49788         gl_PREREQ_INET_PTON here.
49789         (Depends-on): Update condition.
49791 2011-05-08  Bruno Haible  <bruno@clisp.org>
49793         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
49794         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
49795         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
49796         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
49797         (gl_PREREQ_INET_NTOP): ... from here.
49798         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
49799         gl_PREREQ_INET_NTOP here.
49800         (Depends-on): Update condition.
49802 2011-05-08  Bruno Haible  <bruno@clisp.org>
49804         iconv_open: Move AC_LIBOBJ invocations to module description.
49805         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
49806         AC_LIBOBJ invocations from here...
49807         * modules/iconv_open (configure.ac): ... to here.
49809 2011-05-08  Bruno Haible  <bruno@clisp.org>
49811         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
49812         If module 'iconv_open' is among the main modules and module
49813         'iconv_open-utf' is among the tests dependencies, then
49814         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
49815         return the special iconv_t values. Therefore iconv() and iconv_close()
49816         must support these special iconv_t values, already in lib, not only in
49817         tests.
49818         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
49819         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
49820         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
49821         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
49822         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
49823         (Depends-on): Add the dependencies of iconv_open-utf.
49824         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
49825         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
49826         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
49828 2011-05-08  Bruno Haible  <bruno@clisp.org>
49830         group-member: Move AC_LIBOBJ invocations to module description.
49831         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
49832         gl_PREREQ_GROUP_MEMBER invocations from here...
49833         * modules/group-member (configure.ac): ... to here.
49835 2011-05-08  Bruno Haible  <bruno@clisp.org>
49837         grantpt: Move AC_LIBOBJ invocations to module description.
49838         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
49839         invocations from here...
49840         * modules/grantpt (configure.ac): ... to here.
49842 2011-05-08  Bruno Haible  <bruno@clisp.org>
49844         glob: Move AC_LIBOBJ invocations to module description.
49845         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
49846         from here...
49847         * modules/glob (configure.ac): ... to here.
49849 2011-05-08  Bruno Haible  <bruno@clisp.org>
49851         getusershell: Move AC_LIBOBJ invocations to module description.
49852         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
49853         Move AC_LIBOBJ invocation from here...
49854         * modules/getusershell (configure.ac): ... to here.
49855         (Depends-on): Update condition.
49857 2011-05-08  Bruno Haible  <bruno@clisp.org>
49859         gettimeofday: Move AC_LIBOBJ invocations to module description.
49860         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
49861         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
49862         gl_PREREQ_GETTIMEOFDAY invocations from here...
49863         * modules/gettimeofday (configure.ac): ... to here.
49865 2011-05-08  Bruno Haible  <bruno@clisp.org>
49867         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
49868         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
49869         just gl_FUNC_TZSET.
49870         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
49871         (gl_FUNC_TZSET_CLOBBER): Remove actions.
49872         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
49873         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
49875 2011-05-08  Bruno Haible  <bruno@clisp.org>
49877         getsubopt: Move AC_LIBOBJ invocations to module description.
49878         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
49879         gl_PREREQ_GETSUBOPT invocations from here...
49880         * modules/getsubopt (configure.ac): ... to here.
49882 2011-05-08  Bruno Haible  <bruno@clisp.org>
49884         getpass-gnu: Move AC_LIBOBJ invocations to module description.
49885         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
49886         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
49887         * modules/getpass-gnu (configure.ac): ... to here.
49889 2011-05-08  Bruno Haible  <bruno@clisp.org>
49891         getpass: Move AC_LIBOBJ invocations to module description.
49892         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
49893         gl_PREREQ_GETPASS invocations from here...
49894         * modules/getpass (configure.ac): ... to here.
49896 2011-05-08  Bruno Haible  <bruno@clisp.org>
49898         getpagesize: Move AC_LIBOBJ invocations to module description.
49899         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
49900         from here...
49901         * modules/getpagesize (configure.ac): ... to here.
49903 2011-05-08  Bruno Haible  <bruno@clisp.org>
49905         getopt: Move AC_LIBOBJ invocations to module description.
49906         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
49907         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
49908         invocations from here...
49909         * modules/getopt-gnu (configure.ac): ... to here.
49910         * modules/getopt-posix (configure.ac): ... and here.
49911         (Depends-on): Update condition.
49913 2011-05-08  Bruno Haible  <bruno@clisp.org>
49915         getopt, argp: Respect rules for use of AC_LIBOBJ.
49916         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
49917         (gl_REPLACE_GETOPT_ALWAYS): New macro.
49918         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
49919         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
49921 2011-05-08  Bruno Haible  <bruno@clisp.org>
49923         getlogin_r: Move AC_LIBOBJ invocations to module description.
49924         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
49925         gl_PREREQ_GETLOGIN_R invocations from here...
49926         * modules/getlogin_r (configure.ac): ... to here.
49928 2011-05-08  Bruno Haible  <bruno@clisp.org>
49930         getlogin: Move AC_LIBOBJ invocations to module description.
49931         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
49932         here...
49933         * modules/getlogin (configure.ac): ... to here.
49935 2011-05-08  Bruno Haible  <bruno@clisp.org>
49937         getloadavg: Move AC_LIBOBJ invocations to module description.
49938         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
49939         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
49940         * modules/getloadavg (configure.ac): ... to here.
49942 2011-05-08  Bruno Haible  <bruno@clisp.org>
49944         gethrxtime: Move AC_LIBOBJ invocations to module description.
49945         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
49946         LIB_GETHRXTIME from here...
49947         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
49948         invocations from here...
49949         * modules/gethrxtime (configure.ac): ... to here.
49951 2011-05-08  Bruno Haible  <bruno@clisp.org>
49953         gethostname: Move AC_LIBOBJ invocations to module description.
49954         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
49955         gl_PREREQ_GETHOSTNAME invocations from here...
49956         * modules/gethostname (configure.ac): ... to here.
49958 2011-05-08  Bruno Haible  <bruno@clisp.org>
49960         getgroups: Move AC_LIBOBJ invocations to module description.
49961         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
49962         here...
49963         * modules/getgroups (configure.ac): ... to here.
49965 2011-05-08  Bruno Haible  <bruno@clisp.org>
49967         getdtablesize: Move AC_LIBOBJ invocations to module description.
49968         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
49969         invocation from here...
49970         * modules/getdtablesize (configure.ac): ... to here.
49972 2011-05-08  Bruno Haible  <bruno@clisp.org>
49974         getdomainname: Move AC_LIBOBJ invocations to module description.
49975         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
49976         gl_PREREQ_GETDOMAINNAME invocations from here...
49977         * modules/getdomainname (configure.ac): ... to here.
49979 2011-05-08  Bruno Haible  <bruno@clisp.org>
49981         getline: Move AC_LIBOBJ invocations to module description.
49982         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
49983         invocations from here...
49984         * modules/getline (configure.ac): ... to here.
49986 2011-05-08  Bruno Haible  <bruno@clisp.org>
49988         getline: Simplify.
49989         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
49990         It's already handled through the module dependency.
49992 2011-05-08  Bruno Haible  <bruno@clisp.org>
49994         getdelim: Move AC_LIBOBJ invocations to module description.
49995         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
49996         and gl_PREREQ_GETDELIM invocations from here...
49997         * modules/getdelim (configure.ac): ... to here.
49998         (Depends-on): Fix condition.
50000 2011-05-08  Bruno Haible  <bruno@clisp.org>
50002         getcwd: Move AC_LIBOBJ invocations to module description.
50003         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
50004         invocations from here...
50005         * modules/getcwd (configure.ac): ... to here.
50007 2011-05-08  Bruno Haible  <bruno@clisp.org>
50009         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
50010         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
50011         here...
50012         * modules/getcwd-lgpl (configure.ac): ... to here.
50014 2011-05-07  Bruno Haible  <bruno@clisp.org>
50016         crypto/gc: Move AC_LIBOBJ invocations to module description.
50017         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
50018         * modules/crypto/gc (configure.ac): ... to here.
50020 2011-05-07  Bruno Haible  <bruno@clisp.org>
50022         fwriting: Move AC_LIBOBJ invocations to module description.
50023         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
50024         here...
50025         * modules/fwriting (configure.ac): ... to here.
50027 2011-05-07  Bruno Haible  <bruno@clisp.org>
50029         fwritable: Move AC_LIBOBJ invocations to module description.
50030         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
50031         here...
50032         * modules/fwritable (configure.ac): ... to here.
50034 2011-05-07  Bruno Haible  <bruno@clisp.org>
50036         futimens: Move AC_LIBOBJ invocations to module description.
50037         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
50038         here...
50039         * modules/futimens (configure.ac): ... to here.
50041 2011-05-07  Bruno Haible  <bruno@clisp.org>
50043         ftruncate: Move AC_LIBOBJ invocations to module description.
50044         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
50045         gl_PREREQ_FTRUNCATE invocations from here...
50046         * modules/ftruncate (configure.ac): ... to here.
50048 2011-05-07  Bruno Haible  <bruno@clisp.org>
50050         fsync: Move AC_LIBOBJ invocations to module description.
50051         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
50052         invocations from here...
50053         * modules/fsync (configure.ac): ... to here.
50055 2011-05-07  Bruno Haible  <bruno@clisp.org>
50057         fsusage: Move AC_LIBOBJ invocations to module description.
50058         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
50059         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
50060         * modules/fsusage (configure.ac): ... to here.
50062 2011-05-07  Bruno Haible  <bruno@clisp.org>
50064         freopen: Move AC_LIBOBJ invocations to module description.
50065         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
50066         invocations from here...
50067         * modules/freopen (configure.ac): ... to here.
50069 2011-05-07  Bruno Haible  <bruno@clisp.org>
50071         free: Move AC_LIBOBJ invocations to module description.
50072         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
50073         invocations from here...
50074         * modules/free (configure.ac): ... to here.
50076 2011-05-07  Bruno Haible  <bruno@clisp.org>
50078         freadable: Move AC_LIBOBJ invocations to module description.
50079         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
50080         here...
50081         * modules/freadable (configure.ac): ... to here.
50083 2011-05-07  Bruno Haible  <bruno@clisp.org>
50085         fpurge: Move AC_LIBOBJ invocations to module description.
50086         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
50087         invocations from here...
50088         * modules/fpurge (configure.ac): ... to here.
50090 2011-05-07  Bruno Haible  <bruno@clisp.org>
50092         fpending: Move AC_LIBOBJ invocations to module description.
50093         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
50094         gl_FUNC_FPENDING.
50095         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
50096         invocations from here...
50097         * modules/fpending (configure.ac): ... to here.
50099 2011-05-07  Bruno Haible  <bruno@clisp.org>
50101         fopen: Move AC_LIBOBJ invocations to module description.
50102         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
50103         invocations from here...
50104         * modules/fopen (configure.ac): ... to here.
50106 2011-05-07  Bruno Haible  <bruno@clisp.org>
50108         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
50109         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
50110         gl_FUNC_FNMATCH_POSIX.
50111         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
50112         invocations from here...
50113         * modules/fnmatch (configure.ac): ... to here.
50114         * modules/fnmatch-gnu (configure.ac): ... and here.
50116 2011-05-07  Bruno Haible  <bruno@clisp.org>
50118         flock: Move AC_LIBOBJ invocations to module description.
50119         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
50120         invocations from here...
50121         * modules/flock (configure.ac): ... to here.
50123 2011-05-07  Bruno Haible  <bruno@clisp.org>
50125         fileblocks: Move AC_LIBOBJ invocations to module description.
50126         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
50127         gl_PREREQ_FILEBLOCKS invocations from here...
50128         * modules/fileblocks (configure.ac): ... to here.
50130 2011-05-06  Bruno Haible  <bruno@clisp.org>
50132         fflush: Move AC_LIBOBJ invocations to module description.
50133         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
50134         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
50135         invocations from here...
50136         * modules/fflush (configure.ac): ... to here.
50138 2011-05-06  Bruno Haible  <bruno@clisp.org>
50140         fdopendir: Move AC_LIBOBJ invocations to module description.
50141         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
50142         here...
50143         * modules/fdopendir (configure.ac): ... to here.
50144         (Depends-on): Improve conditions.
50146 2011-05-06  Bruno Haible  <bruno@clisp.org>
50148         _Exit: Move AC_LIBOBJ invocations to module description.
50149         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
50150         invocations from here...
50151         * modules/_Exit (configure.ac): ... to here.
50153 2011-05-21  Bruno Haible  <bruno@clisp.org>
50155         euidaccess: Respect rules for use of AC_LIBOBJ.
50156         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
50157         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
50158         from here...
50159         * modules/euidaccess (configure.ac): ... to here.
50161 2011-05-06  Bruno Haible  <bruno@clisp.org>
50163         error: Move AC_LIBOBJ invocations to module description.
50164         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
50165         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
50166         invocations from here...
50167         * modules/error (configure.ac): ... to here.
50169 2011-05-06  Bruno Haible  <bruno@clisp.org>
50171         duplocale: Move AC_LIBOBJ invocations to module description.
50172         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
50173         gl_PREREQ_DUPLOCALE invocations from here...
50174         * modules/duplocale (configure.ac): ... to here.
50176 2011-05-05  Bruno Haible  <bruno@clisp.org>
50178         dirfd: Move AC_LIBOBJ invocations to module description.
50179         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
50180         gl_FUNC_DIRFD.
50181         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
50182         here...
50183         * modules/dirfd (configure.ac): ... to here.
50184         (Depends-on): Fix condition.
50186 2011-05-05  Bruno Haible  <bruno@clisp.org>
50188         chown: Respect rules for use of AC_LIBOBJ.
50189         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
50190         * modules/chown (configure.ac): ... to here.
50192 2011-05-05  Bruno Haible  <bruno@clisp.org>
50194         chdir-long: Move AC_LIBOBJ invocations to module description.
50195         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
50196         gl_PREREQ_CHDIR_LONG invocations from here...
50197         * modules/chdir-long (configure.ac): ... to here.
50199 2011-05-05  Bruno Haible  <bruno@clisp.org>
50201         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
50202         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
50203         from here...
50204         * modules/canonicalize-lgpl (configure.ac): ... to here.
50206 2011-05-05  Bruno Haible  <bruno@clisp.org>
50208         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
50209         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
50210         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
50211         REPLACE_CALLOC.
50212         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
50213         * modules/calloc-gnu (configure.ac): Likewise.
50215 2011-05-05  Bruno Haible  <bruno@clisp.org>
50217         btowc: Move AC_LIBOBJ invocations to module description.
50218         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
50219         invocations from here...
50220         * modules/btowc (configure.ac): ... to here.
50222 2011-05-21  Bruno Haible  <bruno@clisp.org>
50224         atexit: Move AC_LIBOBJ invocations to module description.
50225         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
50226         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
50227         here...
50228         * modules/atexit (configure.ac): ... to here.
50230 2011-05-05  Bruno Haible  <bruno@clisp.org>
50232         atoll: Move AC_LIBOBJ invocations to module description.
50233         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
50234         invocations from here...
50235         * modules/atoll (configure.ac): ... to here.
50237 2011-05-05  Bruno Haible  <bruno@clisp.org>
50239         argz: Move AC_LIBOBJ invocations to module description.
50240         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
50241         * modules/argz (configure.ac): ... to here.
50243 2011-05-05  Bruno Haible  <bruno@clisp.org>
50245         alphasort: Move AC_LIBOBJ invocations to module description.
50246         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
50247         gl_PREREQ_ALPHASORT invocations from here...
50248         * modules/alphasort (configure.ac): ... to here.
50250 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
50252         verify: new macro verify_expr; verify_true deprecated
50253         * NEWS: Mention this.
50254         * doc/verify.texi (Compile-time Assertions): Document this.
50255         * lib/verify.h (verify_true): Deprecate.
50256         (verify_expr): New macro.
50257         * tests/test-verify.c (function): Test verify_expr.
50259 2011-06-14  Jim Meyering  <meyering@redhat.com>
50261         init.sh: give more portable redirection-related advice in a comment
50262         * tests/init.sh (stderr_fileno_): Update the advice in comments.
50263         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
50264         for lots of discussion.  Stefano Lattarini suggested the solution
50265         of putting "9>&2" after the command.  Reported by Bruno Haible.
50267 2011-06-13  Bruno Haible  <bruno@clisp.org>
50269         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
50270         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
50271         'none'.
50273 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
50275         ftoastr: use strtof only if HAVE_STRTOF
50276         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
50277         <http://lists.gnu.org/r/bug-gnulib/2011-06/msg00154.html>.
50278         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
50279         * modules/ftoastr (configure.ac): Check for strtof.
50281 2011-06-13  Bruno Haible  <bruno@clisp.org>
50283         gnulib-tool: Addendum to 2011-06-08 commit.
50284         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
50285         and --witness-c-macro have been given, augment AM_CPPFLAGS.
50287 2011-06-13  Bruno Haible  <bruno@clisp.org>
50289         fseeko: Provide a non-inline replacement of fseek().
50290         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
50291         * modules/fseeko (Depends-on): Add fseek.
50292         * modules/fseek (License): Change to LGPLv2+.
50294 2011-06-13  Bruno Haible  <bruno@clisp.org>
50296         ftello: Provide a non-inline replacement of ftell().
50297         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
50298         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
50299         not have ftello() (such as on mingw).
50300         * modules/ftello (Depends-on): Add ftell.
50301         * modules/ftell (License): Change to LGPLv2+.
50303 2011-05-07  Bruno Haible  <bruno@clisp.org>
50305         ftell: Move AC_LIBOBJ invocations to module description.
50306         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
50307         * modules/ftell (configure.ac): ... to here.
50309 2011-05-07  Bruno Haible  <bruno@clisp.org>
50311         ftello: Respect rules for use of AC_LIBOBJ.
50312         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
50313         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
50314         here...
50315         * modules/ftello (configure.ac): ... to here.
50317 2011-05-07  Bruno Haible  <bruno@clisp.org>
50319         fseeko: Simplify.
50320         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
50321         (gl_FUNC_FSEEKO): Inline it here.
50323 2011-05-07  Bruno Haible  <bruno@clisp.org>
50325         fseek: Move AC_LIBOBJ invocations to module description.
50326         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
50327         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
50328         * modules/fseek (configure.ac): ... to here.
50330 2011-05-07  Bruno Haible  <bruno@clisp.org>
50332         fseek: Respect rules for use of AC_LIBOBJ.
50333         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
50334         here...
50335         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
50337 2011-05-07  Bruno Haible  <bruno@clisp.org>
50339         fseeko: Respect rules for use of AC_LIBOBJ.
50340         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
50341         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
50342         here...
50343         * modules/fseeko (configure.ac): ... to here.
50345 2011-06-13  Bruno Haible  <bruno@clisp.org>
50347         gnulib-tool: Allow comments in the 'Depends-on' section.
50348         * doc/gnulib.texi (Module description): Mention comment syntax in the
50349         Depends-on section.
50350         * gnulib-tool (func_get_dependencies): Filter out comment lines.
50352 2011-06-13  Bruno Haible  <bruno@clisp.org>
50354         file-set.h: guard __attibute__ use, now that it's not always defined
50355         * lib/file-set.h (record_file): Use __attribute__ only with compiler
50356         versions that support it.  This fixes a coreutils build failure with
50357         the vendor cc on HP-UX 11.31.
50359 2011-06-12  Bruno Haible  <bruno@clisp.org>
50361         acl: Add support for HP-UX >= 11.11 JFS ACLs.
50362         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
50363         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
50364         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
50365         (acl, aclsort): New declarations.
50366         (aclv_nontrivial): New declaration.
50367         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
50368         (file_has_acl): Read also the second kind of HP-UX ACLs.
50369         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
50370         kind of HP-UX ACLs if the first kind fails.
50371         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
50372         second kind of HP-UX ACLs.
50373         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
50374         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
50375         agree.
50376         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
50377         hpuxjfs.
50378         Handle hpuxjfs.
50379         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
50380         hpuxjfs.
50381         Handle hpuxjfs.
50382         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
50383         (func_test_same_acls): Use both lsacl and getacl.
50384         Handle hpuxjfs.
50385         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
50386         (func_test_same_acls): Use both lsacl and getacl.
50387         Handle hpuxjfs.
50389 2011-06-12  Bruno Haible  <bruno@clisp.org>
50391         acl: Complete the 2010-08-10 fix.
50392         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
50393         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
50394         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
50395         explicitly.
50396         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
50397         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
50399 2011-06-12  Bruno Haible  <bruno@clisp.org>
50401         spawn-pipe tests: Comments.
50402         * tests/test-spawn-pipe-child.c (main): Update comment.
50403         Reported by James Youngman <jay@gnu.org>.
50405 2011-06-11  James Youngman  <jay@gnu.org>
50407         New module 'stat-size'.
50408         * modules/stat-size: New module.  Provides macros for accessing
50409         file size information in instances of struct stat.  Depends on the
50410         fileblocks module because it calls st_blocks.
50411         * lib/stat-size.h: New file, adapted from coreutils' system.h.
50412         * doc/gnulib.texi: Include stat-size.texi.
50413         * doc/stat-size.texi: Documentation for this module.
50414         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
50415         * m4/fileblocks.m4: Mention that stat-size depends on the call to
50416         AC_STRUCT_ST_BLOCKS.
50418 2011-06-09  Bruno Haible  <bruno@clisp.org>
50420         thread: Support pthreads-win32.
50421         * lib/glthread/thread.h (gl_thread_self): Define differently on
50422         pthreads-win32.
50423         (gl_null_thread): New declaration.
50424         (gl_thread_self_pointer): New macro.
50425         * lib/glthread/thread.c (gl_null_thread): New constant.
50426         * tests/test-lock.c: Use gl_thread_self_pointer instead of
50427         gl_thread_self.
50428         * tests/test-tls.c: Likewise.
50429         Suggested by Paul Eggert. Reported by Eric Blake.
50431 2011-06-09  Bruno Haible  <bruno@clisp.org>
50433         thread: Fix confusion between NULL and 0.
50434         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
50435         Reported by Paul Eggert.
50437 2011-06-09  Bruno Haible  <bruno@clisp.org>
50439         spawn-pipe tests: Avoid test failure on HP-UX 11.
50440         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
50441         is closed.
50443 2011-06-09  Bruno Haible  <bruno@clisp.org>
50445         acl tests: Fix compilation error on HP-UX 11.
50446         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
50448 2011-06-09  Bruno Haible  <bruno@clisp.org>
50450         rmdir: Avoid test failure on HP-UX 10.20.
50451         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
50452         EEXIST.
50454 2011-06-08  Eric Blake  <eblake@redhat.com>
50456         perror: fix test on mingw
50457         * modules/perror-tests (Depends-on): Add dup2.
50459         strerror_r-posix: fix on MacOS
50460         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
50461         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
50462         logic bug.
50463         * lib/strerror_r.c (strerror_r): Fix the bug.
50464         * lib/strerror.c (strerror): Likewise.
50465         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
50466         problem.
50467         * doc/posix-functions/strerror.texi (strerror): Likewise.
50468         * doc/posix-functions/perror.texi (perror): Likewise.
50469         * tests/test-strerror.c (main): Enhance test.
50470         * tests/test-strerror_r.c (main): Likewise.
50472 2011-06-08  Bruno Haible  <bruno@clisp.org>
50474         gnulib-tool: Better isolation between different gnulib-tool invocations.
50475         * gnulib-tool: New option --witness-c-macro.
50476         (witness_c_macro): New variable.
50477         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
50478         AM_CPPFLAGS define it as a C macro.
50479         (func_emit_tests_Makefile_am): Likewise.
50480         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
50481         read it from there.
50482         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
50483         m4_define, not AC_DEFUN.
50484         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
50485         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
50486         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
50487         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
50488         s|...|...|, to substitute the values of the GNULIB_* module indicator
50489         variables.
50490         * modules/dirent (Makefile.am): Likewise.
50491         * modules/fcntl-h (Makefile.am): Likewise.
50492         * modules/iconv-h (Makefile.am): Likewise.
50493         * modules/langinfo (Makefile.am): Likewise.
50494         * modules/locale (Makefile.am): Likewise.
50495         * modules/math (Makefile.am): Likewise.
50496         * modules/netdb (Makefile.am): Likewise.
50497         * modules/poll-h (Makefile.am): Likewise.
50498         * modules/pty (Makefile.am): Likewise.
50499         * modules/search (Makefile.am): Likewise.
50500         * modules/signal (Makefile.am): Likewise.
50501         * modules/spawn (Makefile.am): Likewise.
50502         * modules/stdio (Makefile.am): Likewise.
50503         * modules/stdlib (Makefile.am): Likewise.
50504         * modules/string (Makefile.am): Likewise.
50505         * modules/sys_ioctl (Makefile.am): Likewise.
50506         * modules/sys_select (Makefile.am): Likewise.
50507         * modules/sys_socket (Makefile.am): Likewise.
50508         * modules/sys_stat (Makefile.am): Likewise.
50509         * modules/sys_times (Makefile.am): Likewise.
50510         * modules/sys_utsname (Makefile.am): Likewise.
50511         * modules/sys_wait (Makefile.am): Likewise.
50512         * modules/termios (Makefile.am): Likewise.
50513         * modules/time (Makefile.am): Likewise.
50514         * modules/unistd (Makefile.am): Likewise.
50515         * modules/wchar (Makefile.am): Likewise.
50517 2011-06-08  Eric Blake  <eblake@redhat.com>
50519         strerror: simplify replacement
50520         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
50521         * modules/strerror (configure.ac): No prereqs needed here...
50522         * modules/strerror-override (configure.ac): ...but this needs it.
50523         (Files): Add file for needed prereq macro.
50525 2011-06-08  Bruno Haible  <bruno@clisp.org>
50527         strerror_r-posix: Tweaks.
50528         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
50529         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
50530         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
50531         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
50532         (gl_FUNC_STRERROR_R): ... to here.
50533         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
50535 2011-06-07  Eric Blake  <eblake@redhat.com>
50537         perror: document fixed bugs
50538         * doc/posix-functions/perror.texi (perror): Document recent
50539         patches.
50541 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
50543         stat-time: get_stat_birthtime failure is better-defined
50544         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
50545         return a timestamp whose tv_sec and tv_nsec values are both -1.
50546         Previously, the spec said only that the tv_nsec value was negative.
50547         This upward-compatible change simplifies GNU tar a bit.
50549 2011-06-07  Eric Blake  <eblake@redhat.com>
50551         strerror_r-posix: work around cygwin 1.7.9
50552         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
50553         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
50554         bug without replacing strerror_r.
50555         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
50556         strerror_r is buggy, but without requiring strerror_r compilation.
50557         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
50559         test-perror: relax test to ignore cygwin bug
50560         * tests/test-perror2.c (main): Relax test on requiring detection
50561         of stream errors, and use unbuffered stream.
50562         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
50563         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
50564         * doc/posix-functions/fputc.texi (fputc): Likewise.
50565         * doc/posix-functions/fputs.texi (fputs): Likewise.
50566         * doc/posix-functions/fputws.texi (fputws): Likewise.
50567         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
50568         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
50569         * doc/posix-functions/getopt.texi (getopt): Likewise.
50570         * doc/posix-functions/perror.texi (perror): Likewise.
50571         * doc/posix-functions/printf.texi (printf): Likewise.
50572         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
50573         * doc/posix-functions/psignal.texi (psignal): Likewise.
50574         * doc/posix-functions/putc.texi (putc): Likewise.
50575         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
50576         Likewise.
50577         * doc/posix-functions/putchar.texi (putchar): Likewise.
50578         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
50579         Likewise.
50580         * doc/posix-functions/puts.texi (puts): Likewise.
50581         * doc/posix-functions/putwc.texi (putwc): Likewise.
50582         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
50583         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
50584         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
50585         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
50586         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
50587         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
50588         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
50589         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
50591 2011-05-22  Bruno Haible  <bruno@clisp.org>
50593         strerror: Move AC_LIBOBJ invocations to module description.
50594         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
50595         gl_PREREQ_STRERROR invocations from here...
50596         * modules/strerror (configure.ac): ... to here.
50598 2011-05-21  Bruno Haible  <bruno@clisp.org>
50600         perror: Use common idiom.
50601         * modules/perror (configure.ac): Reorder statements.
50603 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
50605         tests: fix usage message in 'mktempd_'
50606         * tests/init.sh (mktempd_): In the usage message, use literal
50607         'mktempd_', not '$ME' (which is even undefined), as the name of
50608         the subroutine.
50610 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
50612         tests init: new function 'fatal_', for hard errors
50613         Before this patch, the only way offered by tests/init.sh to
50614         properly signal a hard error was the `framework_failure_'
50615         function.  But the error message issued by that function,
50616         as its name would suggest, refers to a set-up failure in the
50617         testsuite, while hard errors can obviously also be due to
50618         other reasons.  The best way to fix this inconsistency is to
50619         introduce a new function with a more general error message.
50620         * tests/init.sh (fatal_): New function.
50622 2011-06-06  Eric Blake  <eblake@redhat.com>
50624         canonicalize-lgpl: use common idiom
50625         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
50626         over newer POSIX -Rf.
50627         Reported by Bruno Haible.
50629         canonicalize-lgpl: work around AIX realpath bug
50630         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
50631         * doc/posix-functions/realpath.texi (realpath): Document it.
50632         Reported by Bruno Haible.
50634         strerror: work around FreeBSD bug
50635         * lib/strerror.c (strerror): Special case 0.
50636         Reported by Bruno Haible.
50638         strerror-override: avoid bloating errno module
50639         * modules/errno (Files, configure.ac): Move replacement strings...
50640         * modules/strerror-override: ...to new module.
50641         * modules/strerror (Depends-on): Add strerror-override.
50642         * modules/strerror_r-posix (Depends-on): Likewise.
50643         * MODULES.html.sh: Document new module.
50644         Reported by Bruno Haible.
50646 2011-06-06  Bruno Haible  <bruno@clisp.org>
50648         spawn-pipe tests: Rename program.
50649         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
50650         * tests/test-spawn-pipe-child.c: Update comment.
50651         * tests/test-spawn-pipe.sh: Update.
50652         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
50654         spawn-pipe tests: Link the child program only against libc.
50655         * tests/test-spawn-pipe-child.c: New file, extracted from
50656         tests/test-spawn-pipe.c.
50657         (main): Expect only one argument.
50658         (is_open): New function, copied from tests/test-pipe.c.
50659         * tests/test-spawn-pipe.c: Don't include <errno.h>.
50660         (child_main): Remove function.
50661         (test_pipe): Pass only one argument to the child program.
50662         (main): Remove child process code. Expect the child program's name as
50663         first argument.
50664         * tests/test-spawn-pipe.sh: Pass the child program's name as first
50665         argument.
50666         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
50667         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
50668         test-spawn-pipe-child against no libraries.
50670 2011-06-06  Bruno Haible  <bruno@clisp.org>
50672         careadlinkat: Avoid mismatch between ssize_t and int.
50673         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
50674         * lib/careadlinkat.c (careadlinkatcwd): Define always.
50676 2011-06-06  Jim Meyering  <meyering@redhat.com>
50678         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
50679         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
50680         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
50682 2011-06-05  Bruno Haible  <bruno@clisp.org>
50684         ansi-c++-opt: Interoperability with libtool.
50685         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
50686         set the variable to "no", not to ":".
50687         * NEWS: Mention the change.
50689 2011-06-05  Bruno Haible  <bruno@clisp.org>
50691         acl: Fix test failure on AIX 7.
50692         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
50693         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
50695 2011-06-05  Bruno Haible  <bruno@clisp.org>
50697         pipe-filter-ii: Fix test failure on AIX and IRIX.
50698         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
50699         with EAGAIN, retry with a smaller buffer size.
50701 2011-06-05  Bruno Haible  <bruno@clisp.org>
50703         localename: Fix link dependencies.
50704         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
50705         * modules/localename-tests (Makefile.am): Link test-localename with
50706         $(LIBTHREAD).
50708 2011-06-05  Bruno Haible  <bruno@clisp.org>
50710         error: Avoid gcc warning.
50711         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
50713 2011-06-05  Bruno Haible  <bruno@clisp.org>
50715         unsetenv: Avoid gcc warning.
50716         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
50718 2011-06-05  Bruno Haible  <bruno@clisp.org>
50720         setenv: Avoid gcc warning.
50721         * lib/setenv.c (setenv): Provide declaration if system lacks it.
50723 2011-06-05  Bruno Haible  <bruno@clisp.org>
50725         sys_select: Ensure memset is declared also on AIX 7.
50726         * lib/sys_select.in.h: Include <string.h> also on AIX.
50727         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
50728         self-contained also on AIX 7.1.
50730 2011-06-04  Jim Meyering  <meyering@redhat.com>
50732         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
50733         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
50734         function name, "error".
50735         (_gl_translatable_diag_func_re): New configurable variable.
50737 2011-06-04  Bruno Haible  <bruno@clisp.org>
50739         getopt: Avoid gcc warning.
50740         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
50742 2011-06-04  Bruno Haible  <bruno@clisp.org>
50744         strerror_r: Fix comments.
50745         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
50746         commit.
50748 2011-06-04  Bruno Haible  <bruno@clisp.org>
50750         perror: Fix compilation error.
50751         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
50752         Undefine fprintf, not sprintf.
50753         * modules/perror (Depends-on): Remove intprops, verify.
50755 2011-06-04  Bruno Haible  <bruno@clisp.org>
50757         setlocale: Enable replacement on Cygwin 1.5.
50758         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
50759         Cygwin 1.5.x.
50760         * doc/posix-functions/setlocale.texi: Mention that the problem with the
50761         LC_CTYPE category also exists on Cygwin 1.5.x.
50763 2011-06-04  Bruno Haible  <bruno@clisp.org>
50765         strerror-override: Don't disable symbol renamings.
50766         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
50767         * lib/strerror-override.c: Include config.h.
50768         (strerror_override): Don't undefine.
50770 2011-06-03  Bruno Haible  <bruno@clisp.org>
50772         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
50773         * lib/localename.h: Update copyright header.
50774         * lib/localename.c: Likewise.
50775         * lib/relocatable.h: Likewise.
50776         * lib/relocatable.c: Likewise.
50778 2011-06-02  Bruno Haible  <bruno@clisp.org>
50780         doc: Fix a module name.
50781         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
50783 2011-06-02  Bruno Haible  <bruno@clisp.org>
50785         pipe2: Remove dependency on 'nonblocking' module.
50786         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
50787         O_NONBLOCK is defined by gnulib.
50788         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
50789         is zero.
50790         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
50791         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
50792         defined by gnulib.
50793         (get_nonblocking_flag): New function.
50794         (main): Test O_NONBLOCK flag only if it is nonzero.
50795         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
50797 2011-06-03  Jim Meyering  <meyering@redhat.com>
50799         maint: three new prohibit-header-without-use rules
50800         Prohibit use of cloexec.h, posixver.h, same.h without use.
50801         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
50802         (sc_prohibit_posixver_without_use): Likewise.
50803         (sc_prohibit_same_without_use): Likewise.
50805 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
50807         allocator: 'die' routine is now given requested size
50808         * lib/allocator.h (struct allocator.die): New size arg.
50809         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
50810         If the actual problem is an ssize_t limitation, not a size_t or
50811         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
50813 2011-06-01  Eric Blake  <eblake@redhat.com>
50815         strerror: drop strerror_r dependency
50816         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
50817         * lib/strerror-override.c (strerror_override): ...to new file.
50818         * lib/strerror-override.h: Add prototype.
50819         * lib/strerror-impl.h: Delete.
50820         * lib/strerror.c (strerror): New implementation.
50821         * modules/errno (Files): Add new files.
50822         (configure.ac): Compile new file as appropriate.
50823         * modules/strerror (Files): Drop unused file.
50824         (Depends-on): Drop strerror_r-posix.
50825         * MODULES.html.sh: Document strerror_r-posix.
50826         Requested by Sam Steingold.
50828         perror: call strerror_r directly
50829         * modules/perror (Files): Drop strerror-impl.h.
50830         * lib/perror.c (perror): Use our own stack buffer, rather than
50831         calling a wrapper that uses static storage.
50832         * doc/posix-functions/perror.texi (perror): Document a limitation
50833         of our replacement.
50835         strerror_r: fix includes for FreeBSD
50836         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
50837         since we use abort on some platforms.
50838         Reported by Matthias Bolte.
50840 2011-05-31  Bruno Haible  <bruno@clisp.org>
50842         Fix link errors in tests: openat-die uses gettext-h.
50843         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
50844         against $(LIBINTL).
50845         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
50846         against $(LIBINTL).
50847         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
50848         $(LIBINTL).
50849         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
50850         against $(LIBINTL).
50851         * modules/linkat-tests (Makefile.am): Link test-linkat against
50852         $(LIBINTL).
50853         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
50854         $(LIBINTL).
50855         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
50856         against $(LIBINTL).
50857         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
50858         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
50859         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
50860         $(LIBINTL).
50861         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
50862         $(LIBINTL).
50863         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
50864         $(LIBINTL).
50865         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
50867 2011-05-31  Bruno Haible  <bruno@clisp.org>
50869         Fix link errors in tests: wait-process uses gettext-h.
50870         * modules/nonblocking-pipe-tests (Makefile.am): Set
50871         test_nonblocking_pipe_main_LDADD.
50872         * modules/nonblocking-socket-tests (Makefile.am): Link
50873         test-nonblocking-socket-main against $(LIBINTL).
50874         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
50876 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
50878         assert-h: work around 'verify' incompatibility
50879         * lib/verify.h: Use @...@ directives, not ifdef.
50880         * modules/assert-h (assert.h): Implement the directives.
50881         (assert.h): Substitute the symbol-prefix more consistently.
50883 2011-05-29  Jim Meyering  <meyering@redhat.com>
50885         trim: remove three superfluous assignments
50886         * lib/trim.c (trim2): Remove three superfluous assignments
50887         and correct brace positioning.
50889 2011-05-29  Bruno Haible  <bruno@clisp.org>
50891         wctype-h: Avoid namespace pollution on Solaris 2.6.
50892         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
50893         identifiers.
50894         * doc/posix-headers/wctype.texi: Mention the problem.
50895         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
50897 2011-05-28  Jim Meyering  <meyering@redhat.com>
50899         parse-datetime.y: accommodate -Wstrict-overflow
50900         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
50901         placate -Wstrict-overflow.
50903         trim: avoid a warning from -O2 -Wstrict-overflow
50904         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
50906 2011-05-29  Bruno Haible  <bruno@clisp.org>
50908         gnulib-tool: Fix bug in yesterday's commit.
50909         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
50910         twice.
50912 2011-05-29  Bruno Haible  <bruno@clisp.org>
50914         Allow multiple gnulib generated include files to be combined.
50915         * gnulib-tool (func_compute_include_guard_prefix): New function.
50916         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
50917         ${gl_include_guard_prefix} references.
50918         (func_import, func_create_testdir): Invoke
50919         func_compute_include_guard_prefix.
50920         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
50921         * lib/ctype.in.h: Likewise.
50922         * lib/dirent.in.h: Likewise.
50923         * lib/errno.in.h: Likewise.
50924         * lib/fcntl.in.h: Likewise.
50925         * lib/float.in.h: Likewise.
50926         * lib/getopt.in.h: Likewise.
50927         * lib/iconv.in.h: Likewise.
50928         * lib/langinfo.in.h: Likewise.
50929         * lib/locale.in.h: Likewise.
50930         * lib/math.in.h: Likewise.
50931         * lib/netdb.in.h: Likewise.
50932         * lib/netinet_in.in.h: Likewise.
50933         * lib/poll.in.h: Likewise.
50934         * lib/pthread.in.h: Likewise.
50935         * lib/pty.in.h: Likewise.
50936         * lib/sched.in.h: Likewise.
50937         * lib/se-selinux.in.h: Likewise.
50938         * lib/search.in.h: Likewise.
50939         * lib/signal.in.h: Likewise.
50940         * lib/spawn.in.h: Likewise.
50941         * lib/stdarg.in.h: Likewise.
50942         * lib/stddef.in.h: Likewise.
50943         * lib/stdint.in.h: Likewise.
50944         * lib/stdio.in.h: Likewise.
50945         * lib/stdlib.in.h: Likewise.
50946         * lib/string.in.h: Likewise.
50947         * lib/strings.in.h: Likewise.
50948         * lib/sys_file.in.h: Likewise.
50949         * lib/sys_ioctl.in.h: Likewise.
50950         * lib/sys_select.in.h: Likewise.
50951         * lib/sys_socket.in.h: Likewise.
50952         * lib/sys_stat.in.h: Likewise.
50953         * lib/sys_time.in.h: Likewise.
50954         * lib/sys_times.in.h: Likewise.
50955         * lib/sys_uio.in.h: Likewise.
50956         * lib/sys_utsname.in.h: Likewise.
50957         * lib/sys_wait.in.h: Likewise.
50958         * lib/sysexits.in.h: Likewise.
50959         * lib/termios.in.h: Likewise.
50960         * lib/time.in.h: Likewise.
50961         * lib/unistd.in.h: Likewise.
50962         * lib/wchar.in.h: Likewise.
50963         * lib/wctype.in.h: Likewise.
50964         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
50965         * modules/ctype (Makefile.am): Likewise.
50966         * modules/dirent (Makefile.am): Likewise.
50967         * modules/errno (Makefile.am): Likewise.
50968         * modules/fcntl-h (Makefile.am): Likewise.
50969         * modules/float (Makefile.am): Likewise.
50970         * modules/getopt-posix (Makefile.am): Likewise.
50971         * modules/iconv-h (Makefile.am): Likewise.
50972         * modules/langinfo (Makefile.am): Likewise.
50973         * modules/locale (Makefile.am): Likewise.
50974         * modules/math (Makefile.am): Likewise.
50975         * modules/netdb (Makefile.am): Likewise.
50976         * modules/netinet_in (Makefile.am): Likewise.
50977         * modules/poll-h (Makefile.am): Likewise.
50978         * modules/pthread (Makefile.am): Likewise.
50979         * modules/pty (Makefile.am): Likewise.
50980         * modules/sched (Makefile.am): Likewise.
50981         * modules/search (Makefile.am): Likewise.
50982         * modules/selinux-h (Makefile.am): Likewise.
50983         * modules/signal (Makefile.am): Likewise.
50984         * modules/spawn (Makefile.am): Likewise.
50985         * modules/stdarg (Makefile.am): Likewise.
50986         * modules/stddef (Makefile.am): Likewise.
50987         * modules/stdint (Makefile.am): Likewise.
50988         * modules/stdio (Makefile.am): Likewise.
50989         * modules/stdlib (Makefile.am): Likewise.
50990         * modules/string (Makefile.am): Likewise.
50991         * modules/strings (Makefile.am): Likewise.
50992         * modules/sys_file (Makefile.am): Likewise.
50993         * modules/sys_ioctl (Makefile.am): Likewise.
50994         * modules/sys_select (Makefile.am): Likewise.
50995         * modules/sys_socket (Makefile.am): Likewise.
50996         * modules/sys_stat (Makefile.am): Likewise.
50997         * modules/sys_time (Makefile.am): Likewise.
50998         * modules/sys_times (Makefile.am): Likewise.
50999         * modules/sys_uio (Makefile.am): Likewise.
51000         * modules/sys_utsname (Makefile.am): Likewise.
51001         * modules/sys_wait (Makefile.am): Likewise.
51002         * modules/sysexits (Makefile.am): Likewise.
51003         * modules/termios (Makefile.am): Likewise.
51004         * modules/time (Makefile.am): Likewise.
51005         * modules/unistd (Makefile.am): Likewise.
51006         * modules/wchar (Makefile.am): Likewise.
51007         * modules/wctype-h (Makefile.am): Likewise.
51008         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
51010 2011-05-29  Bruno Haible  <bruno@clisp.org>
51012         assert-h: Allow multiple gnulib generated replacements to coexist.
51013         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
51015 2011-05-29  Bruno Haible  <bruno@clisp.org>
51017         argp: Allow coexistence with strerror_r-posix module.
51018         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
51019         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
51020         by gnulib's <string.h> replacement), assume it has the POSIX signature,
51021         not the glibc signature.
51023 2011-05-28  Bruno Haible  <bruno@clisp.org>
51025         gnulib-tool: Alternative structure of testdirs, similar to --import.
51026         * gnulib-tool: New option --single-configure.
51027         (func_usage): Document it.
51028         (single_configure): New variable.
51029         (func_modules_transitive_closure_separately,
51030         func_modules_transitive_closure_separately,
51031         func_determine_use_libtests, func_modules_add_dummy_separately,
51032         func_modules_to_filelist_separately): New functions, extracted from
51033         func_import.
51034         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
51035         (func_import): Use the new functions.
51036         (func_create_testdir): Set final_modules. Handle $single_configure =
51037         true case.
51039 2011-05-28  Bruno Haible  <bruno@clisp.org>
51041         getloadavg: Remove an unreliable safety check.
51042         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
51043         getloadavg.c is in place.
51044         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
51045         Reported by Sam Steingold <sds@gnu.org>.
51047 2011-05-28  Bruno Haible  <bruno@clisp.org>
51049         doc: Cleanup yet another file produced by texinfo.tex.
51050         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
51052 2011-05-28  Bruno Haible  <bruno@clisp.org>
51054         Finish the conditional dependencies mechanism.
51055         * gnulib-tool: New option --no-conditional-dependencies.
51056         (func_usage): Document it. Don't mark --conditional-dependencies as
51057         experimental.
51058         (cond_dependencies): The possible values can now be true, false, empty.
51059         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
51060         (func_import): Store setting in gnulib-cache.m4 and read it from there.
51061         * doc/gnulib-tool.texi (Conditional dependencies): New section.
51063 2011-05-28  Bruno Haible  <bruno@clisp.org>
51065         doc: Use a recent texinfo.tex.
51066         * doc/Makefile (tex_opts): New variable.
51067         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
51069 2011-05-28  Jim Meyering  <meyering@redhat.com>
51071         intprops.h: adjust comment to match code change
51072         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
51073         only once, it *may* have side effects.  Also fix an unrelated typo.
51074         (_GL_INT_SIGNED): Likewise.
51076 2011-05-26  Simon Josefsson  <simon@josefsson.org>
51078         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
51080 2011-05-26  Bruno Haible  <bruno@clisp.org>
51082         mbsrchr: Avoid collision with system function on Interix.
51083         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
51084         Reported by Markus Duft <mduft@gentoo.org>.
51086 2011-05-15  James Youngman  <jay@gnu.org>
51088         getopt: for ambiguous options, enumerate the possibilities.
51089         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
51090         the ambiguous options when an ambiguous prefix is given. This was
51091         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
51092         glibc change was
51093         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
51095 2011-05-25  Eric Blake  <eblake@redhat.com>
51097         getcwd: work around mingw bug
51098         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
51099         * doc/posix-functions/getcwd.texi (getcwd): Document it.
51100         Reported by Matthias Bolte.
51102 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
51104         test-intprops: disable -Wtype-limits diagnostics
51105         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
51106         diagnostics.  Otherwise, the integer overflow macros generate many
51107         diagnostics.  Reported by Jim Meyering in
51108         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00528.html>.
51110         intprops: shorten, to pacify gcc -Woverlength-strings
51111         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
51112         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
51113         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
51114         likely to run afoul of C compiler limits for string constant lengths.
51115         See <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00528.html>.
51117 2011-05-24  Eric Blake  <eblake@redhat.com>
51119         docs: document recently fixed glibc printf bug
51120         * doc/posix-functions/fprintf.texi (fprintf): Document it.
51121         * doc/posix-functions/printf.texi (printf): Likewise.
51122         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
51123         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
51125         closein-tests: convert to init.sh
51126         * modules/closein-tests (Files): Add init.sh
51127         * tests/test-closein.sh Use it.
51129         yesno-tests: convert to init.sh
51130         * modules/yesno-tests (Files): Add init.sh.
51131         * tests/test-yesno.sh: Use it.
51133         atexit-tests: ensure reliable exit status
51134         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
51135         Reported by Bruno Haible.
51137 2011-05-24  Bruno Haible  <bruno@clisp.org>
51139         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
51140         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
51141         gl_PREREQ_STRERROR_R invocations from here...
51142         * modules/strerror_r-posix (configure.ac): ... to here.
51144 2011-05-24  Eric Blake  <eblake@redhat.com>
51146         strerror_r: fix missing header
51147         * lib/strerror_r.c: Avoid compiler warning about snprintf.
51149         strerror_r: fix AIX test failures
51150         * lib/strerror_r.c (strerror_r): Convert silent truncation to
51151         ERANGE failure.
51153         strerror_r: fix Solaris test failures
51154         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
51155         failures.
51156         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
51158         strerror_r: enforce POSIX recommendations
51159         * lib/strerror_r.c (safe_copy): New helper method.
51160         (strerror_r): Guarantee a non-empty string.
51161         * tests/test-strerror_r.c (main): Enhance tests to incorporate
51162         recent POSIX rulings and to match our strerror guarantees.
51163         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
51165 2011-05-24  Jim Meyering  <meyering@redhat.com>
51167         test-perror2.c: avoid warning about unused variable
51168         * tests/test-perror2.c (main): Remove declaration of unused "fp".
51170 2011-05-24  Eric Blake  <eblake@redhat.com>
51172         perror: avoid spurious test failure on HP-UX
51173         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
51175         tests: fix logic bug in init.sh
51176         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
51177         shell.
51179 2011-05-24  Jim Meyering  <meyering@redhat.com>
51181         utimensat: do not reference an out-of-scope buffer
51182         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
51183         declared in an inner scope, yet "times" would be dereferenced outside
51184         the scope in which "ts" was valid.
51185         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
51186         of ts[2] "out/up", so that the use of aliased "times" (via
51187         "times = ts;") does not end up referencing an out-of-scope "ts"
51189         opendir-safer.c: don't clobber errno; don't close negative FD
51190         * lib/opendir-safer.c (opendir_safer):
51191         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
51192         file descriptor, and more importantly, don't clobber the
51193         offending errno value with EINVAL.  Before, upon failure
51194         of dup_safer, we would pass the negative file descriptor to
51195         fdopendir, which would clobber errno.
51197 2011-05-23  Bruno Haible  <bruno@clisp.org>
51199         idcache: Fix module description.
51200         * modules/idcache (Include): Set to "idcache.h".
51202 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
51204         gnulib-tool: fix portability problem with MacOS sed
51205         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
51206         before the "}".  Problem reported by Leo in
51207         <http://lists.gnu.org/r/emacs-devel/2011-05/msg00717.html>.
51208         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
51209         sed_extract_condition1, sed_extract_condition2.
51211 2011-05-23  Bruno Haible  <bruno@clisp.org>
51213         hash: Simplify autoconf macro.
51214         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
51216 2011-05-23  Bruno Haible  <bruno@clisp.org>
51218         getugroups: Fix module description.
51219         * modules/getugroups (Include): Set to "getugroups.h".
51221 2011-05-23  Bruno Haible  <bruno@clisp.org>
51223         linkat: Simplify autoconf macro.
51224         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
51226 2011-05-23  Bruno Haible  <bruno@clisp.org>
51227             Eric Blake  <eblake@redhat.com>
51229         linkat, renameat: Update dependencies.
51230         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
51231         * modules/linkat (Depends-on): Likewise. Remove also readlink,
51232         symlinkat.
51234 2011-05-23  Jim Meyering  <meyering@redhat.com>
51236         maint.mk: more tight_scope improvements
51237         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
51238         (_gl_TS_headers): Define only in if-0'd block.
51239         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
51240         sometimes we must *not* use it.  Adjust uses accordingly.
51241         (sc_tight_scope): Use much simpler grep-based test to determine
51242         whether we skip this rule.
51244         maint.mk: generalize/improve the tight-scope rule
51245         * top/maint.mk: Emit a warning when the test is skipped.
51246         (_gl_TS_dir): Add $(srcdir)/ prefix.
51247         (_gl_TS_function_match): Simplify, rather than trying
51248         to enumerate common types.  Otherwise, it would fail to match an
51249         "extern unsigned char const *" declaration in idutils.
51250         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
51251         a way to support use of that type of macro.
51252         (_gl_TS_var_match): Simplify regexp.
51253         (_gl_TS_obj_files): New configurable variable.
51254         (_gl_TS_headers): Likewise.
51256 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
51258         verify: fix bug when gnulib <assert.h> is also included
51259         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
51260         is defined, not if _GL_STATIC_ASSERT_H is not defined.
51261         Perhaps there's a better way, but this fixes the immediate problem.
51262         Problem reported by Bruno Haible in
51263         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00478.html>.
51265 2011-05-22  Bruno Haible  <bruno@clisp.org>
51267         xgetcwd: Simplify autoconf macro.
51268         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
51270 2011-05-22  Bruno Haible  <bruno@clisp.org>
51272         New module 'mktime-internal'.
51273         * modules/mktime-internal: New file.
51274         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
51275         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
51276         mktime_internal as a C macro if libc has __mktime_internal.
51277         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
51278         conditions.
51279         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
51281 2011-05-22  Bruno Haible  <bruno@clisp.org>
51283         timegm: Correct mktime replacement statements.
51284         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
51285         defining mktime as a C macro. This completes a 2009-07-28 commit.
51287 2011-05-22  Bruno Haible  <bruno@clisp.org>
51289         timegm: Simplify autoconf macro.
51290         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
51292 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
51294         clock-time: change to LGPLv2+.
51295         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
51296         BSD-like but we have no mark for that; this is good enough for now.
51298 2011-05-21  Bruno Haible  <bruno@clisp.org>
51300         strerror_r: Fix comments.
51301         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
51303 2011-05-21  Bruno Haible  <bruno@clisp.org>
51305         relocatable-prog-wrapper: Fix possible link error.
51306         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
51307         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
51308         (gl_FUNC_SETENV): ... to here.
51309         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
51310         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
51312 2011-05-21  Bruno Haible  <bruno@clisp.org>
51314         relocatable-prog-wrapper: Assume strerror() exists.
51315         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
51316         m4/strerror.m4.
51317         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
51318         * lib/relocwrapper.c: Remove mention of strerror module.
51319         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
51320         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
51321         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
51322         C macro.
51324 2011-05-21  Bruno Haible  <bruno@clisp.org>
51326         select: Simplify replacement idiom.
51327         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
51328         Win32 platforms.
51329         * lib/sys_select.in.h (select): Simplify accordingly.
51330         * modules/select (Depends-on): Likewise.
51332 2011-05-21  Bruno Haible  <bruno@clisp.org>
51334         mkdir-p: Simplify autoconf macro.
51335         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
51336         gl_FUNC_LCHOWN.
51338 2011-05-21  Eric Blake  <eblake@redhat.com>
51340         strerror_r: avoid clobbering strerror on cygwin
51341         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
51342         fall back instead to sys_errlist.
51343         * modules/strerror (configure.ac): Add witness.
51344         * tests/test-strerror_r.c (main): Enhance test.
51345         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
51346         * tests/test-perror2.c (main): Free memory before exit.
51348 2011-05-21  Bruno Haible  <bruno@clisp.org>
51350         mkdtemp: Use gnulib naming conventions.
51351         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
51352         * modules/mkdtemp (configure.ac): Update.
51354 2011-05-20  Eric Blake  <eblake@redhat.com>
51356         strerror_r: avoid corrupting errno on Solaris
51357         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
51358         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
51360         strerror_r: avoid compiler warning
51361         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
51363         strerror_r: simplify AIX code
51364         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
51366         test-perror: avoid spurious failure on FreeBSD
51367         * modules/perror-tests (Depends-on): Add strerror, now that
51368         strerror_r no longer pulls it in.
51370 2011-05-20  Bruno Haible  <bruno@clisp.org>
51372         strerror_r-posix: Remove unused dependencies.
51373         * modules/strerror_r-posix (Depends-on): Remove strerror.
51374         Reported by Eric Blake.
51376 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
51378         intprops: remove assumption about A|B representation
51379         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
51380         is a valid integer if both A and B are.  Although this is true for
51381         all known practical hosts, the C standard doesn't guarantee it,
51382         and the code need not assume it.  Also, this change may work around
51383         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
51384         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00426.html>.
51386 2011-05-20  Eric Blake  <eblake@redhat.com>
51388         perror: work around FreeBSD bug
51389         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
51390         is broken.  Move AC_LIBOBJ...
51391         * modules/perror (configure.ac): Here.
51392         * doc/posix-functions/perror.texi (perror): Document this.
51393         * tests/test-perror2.c (main): Enhance test.
51395         test-perror: check for strerror interactions
51396         * tests/macros.h (STREQ): Add macro.
51397         * modules/perror-tests (Files): Add second test.
51398         * tests/test-perror2.c (main): New file.
51399         * doc/posix-functions/perror.texi (perror): Document glibc bug.
51401         test-perror: rewrite to use init script
51402         * modules/perror-tests (Files): Add init.sh.
51403         * tests/test-perror.sh: Use temporary directory.
51405 2011-05-20  Jim Meyering  <meyering@redhat.com>
51407         maint: replace misused "a" with "an"
51408         * doc/intprops.texi: "a integer"
51409         * doc/regex.texi: "a explanation"
51410         * lib/alignof.h: "a object"
51411         * lib/argmatch.h: "a explanation"
51412         * lib/argp-help.c: "a option" and "a OPTION_DOC"
51413         * lib/stdint.in.h: "a integer"
51414         * lib/userspec.c: "a owner"
51415         * doc/gnulib.texi: Fix "a idea", and reword.
51417 2011-05-19  Jim Meyering  <meyering@redhat.com>
51419         maint: correct misuse of "a" and "an"
51420         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
51421         * lib/argp-help.c: "an docum...": s/an/a/
51422         * lib/argp-parse.c: "An vector": s/An/A/
51423         * lib/execute.c: "an native": s/an/a/
51424         * lib/spawn-pipe.c: Likewise.
51425         * lib/gc.h: "an Gc_rc": s/an/a/
51426         * lib/unigbrk.in.h: "an grapheme": s/an/a/
51427         * lib/fts.c: "an stat.st_dev": s/an/a/
51429 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
51431         intprops-tests: work around HP-UX 11.23 cc bug with constants
51432         * tests/test-intprops.c (VERIFY): New macro.
51433         (main): Use it, instead of verify, to work around the compiler bug; see
51434         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
51436         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
51437         See http://lists.gnu.org/r/bug-gnulib/2011-05/msg00406.html
51438         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
51439         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
51440         (_GL_REMAINDER_OVERFLOW): Use it.
51442         intprops-tests: revert unsigned part of previous change
51443         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
51444         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
51445         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
51446         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00406.html>.
51448 2011-05-19  Bruno Haible  <bruno@clisp.org>
51450         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
51451         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
51452         strerror_r() returned without filling the buffer.
51453         Reported by Eric Blake.
51455 2011-05-19  Eric Blake  <eblake@redhat.com>
51457         strerror_r: guarantee unchanged errno
51458         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
51459         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
51460         failure.
51461         * tests/test-strerror_r.c (main): Enhance test.
51463 2011-05-19  Bruno Haible  <bruno@clisp.org>
51465         strerror_r: Reorder #if blocks.
51466         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
51467         for consistency with the previous commit.
51469 2011-05-19  Bruno Haible  <bruno@clisp.org>
51471         perror: Avoid clobbering the strerror buffer when possible.
51472         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
51473         * lib/strerror.c: Include it.
51474         * modules/strerror (Files): Add lib/strerror-impl.h.
51475         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
51476         (my_strerror): New function, defined through lib/strerror-impl.h.
51477         (perror): Use it instead of strerror.
51478         * modules/perror (Files): Add lib/strerror-impl.h.
51479         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
51481 2011-05-19  Eric Blake  <eblake@redhat.com>
51483         strerror_r: fix on newer cygwin
51484         * lib/strerror_r.c (strerror_r): Cygwin now has
51485         __xpg_strerror_r, use it.
51487 2011-05-19  Bruno Haible  <bruno@clisp.org>
51489         strerror_r: Avoid clobbering the strerror buffer when possible.
51490         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
51491         (sys_nerr, sys_errlist): New declarations.
51492         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
51493         HP-UX, native Win32, IRIX, and 32-bit Solaris.
51494         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
51496 2011-05-19  Bruno Haible  <bruno@clisp.org>
51498         strerror_r: Fix test failure on mingw.
51499         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
51500         EXTEND_STRERROR_R.
51501         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
51502         macros from errno.in.h instead.
51504 2011-05-19  Eric Blake  <eblake@redhat.com>
51506         strerror: relax test for Solaris
51507         * tests/test-strerror.c (main): Permit Solaris behavior.
51508         * tests/test-strerror_r.c (main): Likewise.
51510         strerror: enforce POSIX ruling on strerror(0)
51511         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
51512         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
51513         * lib/strerror_r.c (rpl_strerror_r): Work around it.
51514         * doc/posix-functions/strerror.texi (strerror): Document it.
51515         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
51516         * tests/test-strerror.c (main): Strengthen test.
51517         * tests/test-strerror_r.c (main): Likewise.
51519 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
51521         intprop-tests: port to older and more-pedantic compilers
51522         * modules/intprops-tests (Files): Add tests/macros.h.
51523         * tests/test-intprops.c: Include macros.h.
51524         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
51525         it's no longer documented to expand to an integer constant expression.
51526         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
51527         argument is floating point, as it's no longer documented to expand
51528         to an integer constant expression in that case.
51529         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
51530         compiler bugs reported by Bruno Haible.  See
51531         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
51532         (U0, U1): New constants, to work around the same bugs.  Also,
51533         in tests, use e.g., "(unsigned int) 39" rather than "39u".
51535         intprops: work around C compiler bugs
51536         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
51537         bug in Sun C 5.11 2010/08/13 and other compilers; see
51538         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
51540         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
51541         * doc/intprops.texi (Integer Type Determination): Fix
51542         documentation for TYPE_IS_INTEGER: it returns an constant
51543         expression, not an integer constant expression.  Fix doc for
51544         TYPE_SIGNED: it returns an integer constant expression only if its
51545         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
51546         hardly worth documented that way....)
51548 2011-05-18  Bruno Haible  <bruno@clisp.org>
51550         strerror_r: Avoid clobbering the strerror buffer when possible.
51551         * lib/strerror_r.c (strerror_r): Merge the three implementations.
51552         Handle gnulib defined errno values here. When strerror() returns NULL
51553         or an empty string, return EINVAL.
51554         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
51555         gnulib defined errno values here.
51556         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
51558 2011-05-18  Eric Blake  <eblake@redhat.com>
51560         fnmatch: avoid compiler warning
51561         * lib/fnmatch_loop.c (FCT): Use correct type.
51562         Reported by Matthias Bolte.
51564 2011-05-13  Jim Meyering  <meyering@redhat.com>
51566         maint.mk: three new prohibit_<HDR>_without_use rules
51567         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
51568         (sc_prohibit_stdio-safer_without_use): Likewise.
51569         (sc_prohibit_xfreopen_without_use): Likewise.
51571 2011-05-17  Jim Meyering  <meyering@redhat.com>
51573         announce-gen: fail if the NEWS delta is empty
51574         If there's nothing noteworthy in NEWS, then either you forgot
51575         or you shouldn't be releasing.
51576         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
51578 2011-05-17  Pádraig Brady  <P@draigBrady.com>
51580         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
51581         reserved symbols starting with double underscore from the check.
51583 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
51585         intprops: add doc
51586         * doc/intprops.texi: New file, documenting intprops.
51587         * doc/gnulib.texi (Particular Modules): Include it.
51589         verify: add doc to gnulib manual and fix example
51590         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
51591         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
51592         (Compile-time Assertions): Fix example so it can't overflow.
51594 2011-05-17  Jim Meyering  <meyering@redhat.com>
51596         warnings.m4: don't usurp save_CPPFLAGS variable name
51597         * m4/warnings.m4: Prefix local temporary variable name with gl_.
51599         doc: fix typo
51600         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
51602 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
51603             Bruno Haible  <bruno@clisp.org>
51605         doc: Tweak recent change.
51606         * README (Portability guidelines): Tweak new text.
51607         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
51608         Interix 6.1.
51610 2011-05-16  Eric Blake  <eblake@redhat.com>
51612         inttypes: avoid autoconf warning
51613         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
51614         * m4/stdint.m4 (gl_STDINT_H): Likewise.
51616 2011-05-16  Sam Steingold  <sds@gnu.org>
51617         and Eric Blake  <eblake@redhat.com>
51619         vc-list-files: accept multiple directory operands
51620         * build-aux/vc-list-files: Iterate over all remaining operands.
51622 2011-05-16  Bruno Haible  <bruno@clisp.org>
51624         Fix confusion regarding deprecated modules.
51625         * modules/calloc (Status, Notice): Mark module as deprecated, not
51626         obsolete.
51627         * modules/fnmatch-posix (Status, Notice): Likewise.
51628         * modules/getdate (Status, Notice): Likewise.
51629         * modules/getopt (Status, Notice): Likewise.
51630         * modules/malloc (Status, Notice): Likewise.
51631         * modules/pipe (Status, Notice): Likewise.
51632         * modules/realloc (Status, Notice): Likewise.
51633         * modules/rename-dest-slash (Status, Notice): Likewise.
51634         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
51635         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
51636         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
51637         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
51638         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
51640 2011-05-16  Bruno Haible  <bruno@clisp.org>
51642         doc: List the target platforms.
51643         * doc/gnulib-intro.texi (Target Platforms): New section.
51644         * doc/gnulib.texi (Introduction): Update menu.
51645         * README (Portability guidelines): Refer to the new section. Update
51646         statement about oldest supported environment. Remove rationale why
51647         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
51648         unportable C89 function.
51649         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
51650         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
51652 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
51654         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
51656 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
51658         intprops-tests: new module
51659         * modules/intprops-tests, tests/test-intprops.c: New files.
51661         intprops: add safe, portable integer overflow checking
51662         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
51663         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
51664         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
51665         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
51666         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
51667         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
51668         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
51669         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
51670         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
51671         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
51672         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
51674 2011-05-12  James Youngman  <jay@gnu.org>
51676         Add a test for glibc's Bugzilla bug #12378.
51677         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
51678         doesn't allow the literal matching of a lone "[" (which is
51679         required by POSIX).
51680         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
51682 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
51684         Sync glibc change fixing Bugzilla bug #12378.
51685         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
51686         beginning and fall back to matching as normal character if the
51687         string ends before the matching ']' is found.  This is what POSIX
51688         requires.
51690 2011-05-13  Eric Blake  <eblake@redhat.com>
51692         getcwd-lgpl: relax test for FreeBSD
51693         * doc/posix-functions/getcwd.texi (getcwd): Document portability
51694         issue.
51695         * tests/test-getcwd-lgpl.c (main): Relax test.
51696         Reported by Matthias Bolte.
51698 2011-05-11  Eric Blake  <eblake@redhat.com>
51700         test-fflush: silence compiler warning
51701         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
51703 2011-05-11  Bruno Haible  <bruno@clisp.org>
51705         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
51706         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
51707         * modules/canonicalize (Depends-on): Add 'nocrash'.
51708         * modules/canonicalize-lgpl (Depends-on): Likewise.
51709         * doc/posix-functions/realpath.texi: Update platforms list.
51710         Reported by Ryan Schmidt <ryandesign@macports.org>.
51712 2011-05-11  Bruno Haible  <bruno@clisp.org>
51714         group-member: Declare function in <unistd.h>.
51715         * lib/unistd.in.h (group_member): New declaration.
51716         * lib/group-member.h: Remove file.
51717         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
51718         * tests/test-unistd-c++.cc: Check signature of group_member.
51719         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
51720         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
51721         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
51722         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
51723         HAVE_GROUP_MEMBER.
51724         * modules/group-member (Files): Remove lib/group-member.h.
51725         (Depends-on): Add unistd. Specify conditions.
51726         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51727         (Include): Change to <unistd.h>.
51728         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
51729         HAVE_GROUP_MEMBER.
51730         * NEWS: Mention the change.
51731         * lib/euidaccess.c: Don't include group-member.h.
51733 2011-05-11  Bruno Haible  <bruno@clisp.org>
51735         group-member: Document module.
51736         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
51737         module.
51739 2011-05-11  Bruno Haible  <bruno@clisp.org>
51741         fclose: Fix mistake earlier today.
51742         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
51744 2011-05-11  Eric Blake  <eblake@redhat.com>
51746         fclose: preserve fflush errors
51747         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
51748         Reported by Jim Meyering.
51750         bootstrap: support a prereq of 'rpcgen -' on RHEL5
51751         * build-aux/bootstrap (check_versions): When no specific version
51752         is required, merely check that the app produces an exit status
51753         that indicates its existence.
51755         maint.mk: drop redundant check
51756         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
51757         the same but better.
51759 2011-05-11  Bruno Haible  <bruno@clisp.org>
51761         fclose: Fix possible link error.
51762         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
51763         unregister_shadow_fd. Improve comments.
51764         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
51765         Eric Blake.
51767 2011-05-11  Jim Meyering  <meyering@redhat.com>
51769         maint.mk: improve "can not" detection and generalize rule name
51770         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
51771         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
51772         Use the same technique as in sc_prohibit_doubled_word, so that
51773         we recognize "can not" also when the words are separated by a newline.
51774         Suggested by Eric Blake.
51775         (perl_filename_lineno_text_): Define.  Factored out of...
51776         (prohibit_doubled_word_): ...here.  Use the new definition.
51777         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
51778         (prohibit_undesirable_word_seq_RE_): New overridable variable.
51779         (ignore_undesirable_word_sequence_RE_): New overridable variable.
51781 2011-05-10  Eric Blake  <eblake@redhat.com>
51783         fclose: avoid double close race when possible
51784         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
51785         all but WINDOWS_SOCKETS.
51787 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
51789         openat: correct new comment
51790         * lib/openat-proc.c (openat_proc_name): Correct the comment.
51792 2011-05-10  Jim Meyering  <meyering@redhat.com>
51794         openat: add comments
51795         * lib/openat-proc.c (openat_proc_name): Add comments,
51796         mostly from Eric Blake.
51798 2011-05-09  Eric Blake  <eblake@redhat.com>
51800         openat: reduce syscalls in first probe of /proc
51801         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
51802         be a directory.  Simplify the probe for .. bugs.
51803         * modules/openat (Depends-on): Drop same-inode.
51804         Reported by Bastien ROUCARIES.
51806 2011-05-09  Jim Meyering  <meyering@redhat.com>
51808         maint.mk: change semantics/name of tight_scope variables
51809         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
51810         Rename variables to align with semantics that make them more useful.
51812         maint.mk: tweak new rule's name not to impinge
51813         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
51814         (sc_tight_scope): Use new rule name rather than $@-0.
51816         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
51817         * top/maint.mk (sc_tight_scope): New rule.
51818         (sc_tight_scope-0): New rule, ifdef'd out.
51819         (_gl_TS_dir): Default.
51820         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
51821         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
51823 2011-05-09  Simon Josefsson  <simon@josefsson.org>
51825         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
51826         Haible <bruno@clisp.org>.
51828 2011-05-08  Bruno Haible  <bruno@clisp.org>
51830         Comments.
51831         * m4/isnanf.m4: Add comment.
51832         * m4/isnanl.m4: Likewise.
51834 2011-05-08  Bruno Haible  <bruno@clisp.org>
51836         glob: Remove obsolete macro.
51837         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
51839 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
51841         intprops: Sun C 5.11 supports __typeof__
51842         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
51843         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
51844         which is new.
51845         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
51847         intprops: switch to usual gnulib indenting and naming
51848         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
51849         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
51851         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
51853 2011-05-08  Jim Meyering  <meyering@redhat.com>
51855         maint.mk: suppress "Entering/Leaving directory" diag in announcement
51856         * top/maint.mk (release-prep): Use make's --no-print-directory
51857         option when generating the announcement.  This eliminates the
51858         pesky "make[2]: Entering/Leaving directory" diagnostics in the
51859         generated announcement template.
51861 2011-05-08  Bruno Haible  <bruno@clisp.org>
51863         tzset: Fix gettimeofday wrapper on Solaris 2.6.
51864         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
51865         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
51867 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
51869         ignore-value, verify: Omit include files from lib_SOURCES.
51870         * modules/ignore-value, modules/verify (Makefile.am):
51871         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
51872         that leads Automake to duplicate use of am__objects_... variables
51873         in Makefile.in.  See
51874         <http://lists.gnu.org/r/emacs-devel/2011-05/msg00257.html>.
51876 2011-05-07  Bruno Haible  <bruno@clisp.org>
51878         fclose: Simplify autoconf macro.
51879         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
51880         defined.
51882 2011-05-07  Bruno Haible  <bruno@clisp.org>
51884         canonicalize-lgpl: Fix autoconf macro ordering bug.
51885         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
51886         gl_STDLIB_H_DEFAULTS.
51888 2011-05-06  Eric Blake  <eblake@redhat.com>
51890         maintainer-makefile: make sc_po_check easier to tune
51891         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
51892         to probe for strings, such as an alternate location for gnulib.
51894         fclose: guarantee behavior on seekable stdin
51895         * modules/fclose (Depends-on): Add fflush.
51896         * doc/posix-functions/fclose.texi (fclose): Document this.
51897         * tests/test-fclose.c (main): Make test for this unconditional.
51899 2011-05-06  Bruno Haible  <bruno@clisp.org>
51901         fflush, fpurge: Relicense under LGPLv2+.
51902         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
51903         * modules/fpurge (License): Likewise.
51904         With permission from Eric Blake and Jim Meyering.
51905         Suggested by Eric Blake.
51907 2011-05-06  Karl Berry  <karl@gnu.org>
51909         * MODULES.html.sh (func_all_modules): remove exit.
51911 2011-05-06  Jim Meyering  <meyering@redhat.com>
51913         maint.mk: use info-gnu@ as the default only for a stable release
51914         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
51915         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
51916         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
51917         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
51919 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
51921         assert-h: new module, which supports C1X-style static_assert
51922         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
51923         * lib/verify.h: Revamp so that this can be copied into assert.h,
51924         while retaining the ability to use it standalone as before.
51925         Rename private identifiers so as not to encroach on the
51926         standard C namespace, since this is now used by assert.h.
51927         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
51928         the old verify_true.
51929         (_GL_VERIFY_TRUE): New macro, with much of the contents of
51930         the old verify_true.  Use _GL_VERIFY_TYPE.
51931         (_GL_VERIFY): New macro, with much of the contents of the old verify.
51932         (static_assert): New macro, if _GL_STATIC_ASSERT_H
51933         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
51934         defined when this file is copied into the replacement assert.h.
51935         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
51936         and _Static_assert is not built in.
51937         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
51938         defined, and use the new macros mentioned above.
51939         * doc/posix-headers/assert.texi: Document this.
51941 2011-05-05  Bruno Haible  <bruno@clisp.org>
51943         fclose, fflush: Respect rules for use of AC_LIBOBJ.
51944         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
51945         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
51946         gl_REPLACE_FCLOSE here.
51947         * modules/fflush (Depends-on): Remove fclose.
51948         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
51949         combination with module 'fclose'.
51951 2011-05-05  Bruno Haible  <bruno@clisp.org>
51953         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
51954         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
51955         gl_FUNC_FFLUSH.
51956         (gl_FUNC_FFLUSH): Use it.
51957         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
51958         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
51959         gl_REPLACE_FSEEKO here.
51961 2011-05-05  Bruno Haible  <bruno@clisp.org>
51963         tzset: Relicense under LGPL.
51964         * modules/tzset (License): Change to LGPL.
51965         No agreement needed; it's a no-op.
51967         strtoimax, strtoumax: Relicense under LGPL.
51968         * modules/strtoimax (License): Change to LGPL.
51969         * modules/strtoumax (License): Likewise.
51970         With permission from Jim Meyering, Paul Eggert:
51971         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00124.html>
51972         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00109.html>
51974         getgroups: Relicense under LGPL.
51975         * modules/getgroups (License): Change to LGPL.
51976         With permission from Jim Meyering, Paul Eggert, Eric Blake:
51977         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00111.html>
51978         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00148.html>
51979         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
51981         nanosleep: Relicense under LGPL.
51982         * modules/nanosleep (License): Change to LGPL.
51983         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
51984         Haible:
51985         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00111.html>
51986         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00148.html>
51987         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
51988         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00131.html>
51990         futimens: Relicense under LGPL.
51991         * modules/futimens (License): Change to LGPL.
51992         With permission from Eric Blake:
51993         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
51995         fflush: Relicense under LGPL.
51996         * modules/fflush (License): Change to LGPL.
51997         With permission from Eric Blake, Bruno Haible, Jim Meyering:
51998         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
51999         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00131.html>
52000         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00133.html>
52002         tmpfile: Relicense under LGPL.
52003         * modules/tmpfile (License): Change to LGPL.
52004         With permission from Ben Pfaff:
52005         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00185.html>
52007         isfinite: Relicense under LGPL.
52008         * modules/isfinite (License): Change to LGPL.
52009         With permission from Ben Pfaff, Bruno Haible:
52010         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00185.html>
52011         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00130.html>
52013         acosl..tanl: Relicense under LGPL.
52014         * modules/acosl (License): Change to LGPL.
52015         * modules/asinl (License): Likewise.
52016         * modules/atanl (License): Likewise.
52017         * modules/cosl (License): Likewise.
52018         * modules/expl (License): Likewise.
52019         * modules/logl (License): Likewise.
52020         * modules/sinl (License): Likewise.
52021         * modules/sqrtl (License): Likewise.
52022         * modules/tanl (License): Likewise.
52023         Source code originally from glibc and Paolo Bonzini. Agreements:
52024         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00137.html>
52025         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00128.html>
52027 2011-05-05  Bruno Haible  <bruno@clisp.org>
52029         signal: Define sighandler_t.
52030         * lib/signal.in.h (sighandler_t): New type.
52031         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
52032         whether sighandler_t is defined.
52033         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
52034         * modules/signal (Depends-on): Add extensions.
52035         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
52036         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
52037         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
52039 2011-05-05  Eric Blake  <eblake@redhat.com>
52041         maint: remove useless REPLACE_*_H macros
52042         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
52043         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
52044         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
52045         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
52046         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
52047         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
52048         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
52049         * m4/btowc.m4: Update callers.
52050         * m4/dirfd.m4: Likewise.
52051         * m4/duplocale.m4: Likewise.
52052         * m4/fchdir.m4: Likewise.
52053         * m4/fdopendir.m4: Likewise.
52054         * m4/inet_ntop.m4: Likewise.
52055         * m4/inet_pton.m4: Likewise.
52056         * m4/ioctl.m4: Likewise.
52057         * m4/mbrlen.m4: Likewise.
52058         * m4/mbrtowc.m4: Likewise.
52059         * m4/mbsinit.m4: Likewise.
52060         * m4/mbsnrtowcs.m4: Likewise.
52061         * m4/mbsrtowcs.m4: Likewise.
52062         * m4/poll.m4: Likewise.
52063         * m4/setlocale.m4: Likewise.
52064         * m4/wcrtomb.m4: Likewise.
52065         * m4/wcsnrtombs.m4: Likewise.
52066         * m4/wcsrtombs.m4: Likewise.
52067         * m4/wctob.m4: Likewise.
52068         * m4/wcwidth.m4: Likewise.
52069         * modules/posix_spawn: Likewise.
52070         * modules/posix_spawn_file_actions_addclose: Likewise.
52071         * modules/posix_spawn_file_actions_adddup2: Likewise.
52072         * modules/posix_spawn_file_actions_addopen: Likewise.
52073         * modules/posix_spawn_file_actions_destroy: Likewise.
52074         * modules/posix_spawn_file_actions_init: Likewise.
52075         * modules/posix_spawnattr_destroy: Likewise.
52076         * modules/posix_spawnattr_getflags: Likewise.
52077         * modules/posix_spawnattr_getpgroup: Likewise.
52078         * modules/posix_spawnattr_getschedparam: Likewise.
52079         * modules/posix_spawnattr_getschedpolicy: Likewise.
52080         * modules/posix_spawnattr_getsigdefault: Likewise.
52081         * modules/posix_spawnattr_getsigmask: Likewise.
52082         * modules/posix_spawnattr_init: Likewise.
52083         * modules/posix_spawnattr_setflags: Likewise.
52084         * modules/posix_spawnattr_setpgroup: Likewise.
52085         * modules/posix_spawnattr_setschedparam: Likewise.
52086         * modules/posix_spawnattr_setschedpolicy: Likewise.
52087         * modules/posix_spawnattr_setsigdefault: Likewise.
52088         * modules/posix_spawnattr_setsigmask: Likewise.
52089         * modules/posix_spawnp: Likewise.
52091 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
52093         Add option to do-release-commit-and-tag to specify branch.
52094         * build-aux/do-release-commit-and-tag: Add --branch.
52096 2011-05-03  Bruno Haible  <bruno@clisp.org>
52098         Avoid unnecessary compilation units, through conditional dependencies.
52099         * modules/accept (Depends-on): Add conditions to the dependencies.
52100         * modules/acosl (Depends-on): Likewise.
52101         * modules/argz (Depends-on): Likewise.
52102         * modules/asinl (Depends-on): Likewise.
52103         * modules/atanl (Depends-on): Likewise.
52104         * modules/atoll (Depends-on): Likewise.
52105         * modules/bind (Depends-on): Likewise.
52106         * modules/btowc (Depends-on): Likewise.
52107         * modules/canonicalize-lgpl (Depends-on): Likewise.
52108         * modules/ceil (Depends-on): Likewise.
52109         * modules/ceilf (Depends-on): Likewise.
52110         * modules/ceill (Depends-on): Likewise.
52111         * modules/chdir-long (Depends-on): Likewise.
52112         * modules/chown (Depends-on): Likewise.
52113         * modules/close (Depends-on): Likewise.
52114         * modules/connect (Depends-on): Likewise.
52115         * modules/cosl (Depends-on): Likewise.
52116         * modules/dirfd (Depends-on): Likewise.
52117         * modules/dprintf (Depends-on): Likewise.
52118         * modules/dprintf-posix (Depends-on): Likewise.
52119         * modules/error (Depends-on): Likewise.
52120         * modules/euidaccess (Depends-on): Likewise.
52121         * modules/expl (Depends-on): Likewise.
52122         * modules/faccessat (Depends-on): Likewise.
52123         * modules/fchdir (Depends-on): Likewise.
52124         * modules/fclose (Depends-on): Likewise.
52125         * modules/fcntl (Depends-on): Likewise.
52126         * modules/fdopendir (Depends-on): Likewise.
52127         * modules/fflush (Depends-on): Likewise.
52128         * modules/floor (Depends-on): Likewise.
52129         * modules/floorf (Depends-on): Likewise.
52130         * modules/floorl (Depends-on): Likewise.
52131         * modules/fnmatch (Depends-on): Likewise.
52132         * modules/fopen (Depends-on): Likewise.
52133         * modules/fprintf-posix (Depends-on): Likewise.
52134         * modules/frexp (Depends-on): Likewise.
52135         * modules/frexp-nolibm (Depends-on): Likewise.
52136         * modules/frexpl (Depends-on): Likewise.
52137         * modules/frexpl-nolibm (Depends-on): Likewise.
52138         * modules/fseek (Depends-on): Likewise.
52139         * modules/fsusage (Depends-on): Likewise.
52140         * modules/ftell (Depends-on): Likewise.
52141         * modules/ftello (Depends-on): Likewise.
52142         * modules/futimens (Depends-on): Likewise.
52143         * modules/getcwd (Depends-on): Likewise.
52144         * modules/getcwd-lgpl (Depends-on): Likewise.
52145         * modules/getdelim (Depends-on): Likewise.
52146         * modules/getdomainname (Depends-on): Likewise.
52147         * modules/getgroups (Depends-on): Likewise.
52148         * modules/gethostname (Depends-on): Likewise.
52149         * modules/getline (Depends-on): Likewise.
52150         * modules/getlogin_r (Depends-on): Likewise.
52151         * modules/getopt-posix (Depends-on): Likewise.
52152         * modules/getpeername (Depends-on): Likewise.
52153         * modules/getsockname (Depends-on): Likewise.
52154         * modules/getsockopt (Depends-on): Likewise.
52155         * modules/getsubopt (Depends-on): Likewise.
52156         * modules/getusershell (Depends-on): Likewise.
52157         * modules/glob (Depends-on): Likewise.
52158         * modules/grantpt (Depends-on): Likewise.
52159         * modules/iconv_open (Depends-on): Likewise.
52160         * modules/iconv_open-utf (Depends-on): Likewise.
52161         * modules/inet_ntop (Depends-on): Likewise.
52162         * modules/inet_pton (Depends-on): Likewise.
52163         * modules/ioctl (Depends-on): Likewise.
52164         * modules/isapipe (Depends-on): Likewise.
52165         * modules/isfinite (Depends-on): Likewise.
52166         * modules/isinf (Depends-on): Likewise.
52167         * modules/lchown (Depends-on): Likewise.
52168         * modules/ldexpl (Depends-on): Likewise.
52169         * modules/link (Depends-on): Likewise.
52170         * modules/linkat (Depends-on): Likewise.
52171         * modules/listen (Depends-on): Likewise.
52172         * modules/logl (Depends-on): Likewise.
52173         * modules/lstat (Depends-on): Likewise.
52174         * modules/mbrlen (Depends-on): Likewise.
52175         * modules/mbrtowc (Depends-on): Likewise.
52176         * modules/mbsinit (Depends-on): Likewise.
52177         * modules/mbsnrtowcs (Depends-on): Likewise.
52178         * modules/mbsrtowcs (Depends-on): Likewise.
52179         * modules/mbtowc (Depends-on): Likewise.
52180         * modules/memcmp (Depends-on): Likewise.
52181         * modules/mkdir (Depends-on): Likewise.
52182         * modules/mkdtemp (Depends-on): Likewise.
52183         * modules/mkfifo (Depends-on): Likewise.
52184         * modules/mkfifoat (Depends-on): Likewise.
52185         * modules/mknod (Depends-on): Likewise.
52186         * modules/mkostemp (Depends-on): Likewise.
52187         * modules/mkostemps (Depends-on): Likewise.
52188         * modules/mkstemp (Depends-on): Likewise.
52189         * modules/mkstemps (Depends-on): Likewise.
52190         * modules/mktime (Depends-on): Likewise.
52191         * modules/nanosleep (Depends-on): Likewise.
52192         * modules/open (Depends-on): Likewise.
52193         * modules/openat (Depends-on): Likewise.
52194         * modules/perror (Depends-on): Likewise.
52195         * modules/poll (Depends-on): Likewise.
52196         * modules/popen (Depends-on): Likewise.
52197         * modules/posix_spawn (Depends-on): Likewise.
52198         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
52199         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
52200         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
52201         * modules/posix_spawnp (Depends-on): Likewise.
52202         * modules/pread (Depends-on): Likewise.
52203         * modules/printf-posix (Depends-on): Likewise.
52204         * modules/ptsname (Depends-on): Likewise.
52205         * modules/putenv (Depends-on): Likewise.
52206         * modules/pwrite (Depends-on): Likewise.
52207         * modules/readline (Depends-on): Likewise.
52208         * modules/readlink (Depends-on): Likewise.
52209         * modules/readlinkat (Depends-on): Likewise.
52210         * modules/recv (Depends-on): Likewise.
52211         * modules/recvfrom (Depends-on): Likewise.
52212         * modules/regex (Depends-on): Likewise.
52213         * modules/remove (Depends-on): Likewise.
52214         * modules/rename (Depends-on): Likewise.
52215         * modules/renameat (Depends-on): Likewise.
52216         * modules/rmdir (Depends-on): Likewise.
52217         * modules/round (Depends-on): Likewise.
52218         * modules/roundf (Depends-on): Likewise.
52219         * modules/roundl (Depends-on): Likewise.
52220         * modules/rpmatch (Depends-on): Likewise.
52221         * modules/select (Depends-on): Likewise.
52222         * modules/send (Depends-on): Likewise.
52223         * modules/sendto (Depends-on): Likewise.
52224         * modules/setenv (Depends-on): Likewise.
52225         * modules/setlocale (Depends-on): Likewise.
52226         * modules/setsockopt (Depends-on): Likewise.
52227         * modules/shutdown (Depends-on): Likewise.
52228         * modules/sigaction (Depends-on): Likewise.
52229         * modules/signbit (Depends-on): Likewise.
52230         * modules/sigprocmask (Depends-on): Likewise.
52231         * modules/sinl (Depends-on): Likewise.
52232         * modules/sleep (Depends-on): Likewise.
52233         * modules/snprintf (Depends-on): Likewise.
52234         * modules/snprintf-posix (Depends-on): Likewise.
52235         * modules/socket (Depends-on): Likewise.
52236         * modules/sprintf-posix (Depends-on): Likewise.
52237         * modules/sqrtl (Depends-on): Likewise.
52238         * modules/stat (Depends-on): Likewise.
52239         * modules/strchrnul (Depends-on): Likewise.
52240         * modules/strdup-posix (Depends-on): Likewise.
52241         * modules/strerror (Depends-on): Likewise.
52242         * modules/strerror_r-posix (Depends-on): Likewise.
52243         * modules/strndup (Depends-on): Likewise.
52244         * modules/strnlen (Depends-on): Likewise.
52245         * modules/strptime (Depends-on): Likewise.
52246         * modules/strsep (Depends-on): Likewise.
52247         * modules/strsignal (Depends-on): Likewise.
52248         * modules/strstr-simple (Depends-on): Likewise.
52249         * modules/strtod (Depends-on): Likewise.
52250         * modules/strtoimax (Depends-on): Likewise.
52251         * modules/strtok_r (Depends-on): Likewise.
52252         * modules/strtoumax (Depends-on): Likewise.
52253         * modules/symlink (Depends-on): Likewise.
52254         * modules/symlinkat (Depends-on): Likewise.
52255         * modules/tanl (Depends-on): Likewise.
52256         * modules/tcgetsid (Depends-on): Likewise.
52257         * modules/tmpfile (Depends-on): Likewise.
52258         * modules/trunc (Depends-on): Likewise.
52259         * modules/truncf (Depends-on): Likewise.
52260         * modules/truncl (Depends-on): Likewise.
52261         * modules/uname (Depends-on): Likewise.
52262         * modules/unlink (Depends-on): Likewise.
52263         * modules/unlockpt (Depends-on): Likewise.
52264         * modules/unsetenv (Depends-on): Likewise.
52265         * modules/usleep (Depends-on): Likewise.
52266         * modules/utimensat (Depends-on): Likewise.
52267         * modules/vasprintf (Depends-on): Likewise.
52268         * modules/vdprintf (Depends-on): Likewise.
52269         * modules/vdprintf-posix (Depends-on): Likewise.
52270         * modules/vfprintf-posix (Depends-on): Likewise.
52271         * modules/vprintf-posix (Depends-on): Likewise.
52272         * modules/vsnprintf (Depends-on): Likewise.
52273         * modules/vsnprintf-posix (Depends-on): Likewise.
52274         * modules/vsprintf-posix (Depends-on): Likewise.
52275         * modules/wcrtomb (Depends-on): Likewise.
52276         * modules/wcscasecmp (Depends-on): Likewise.
52277         * modules/wcscspn (Depends-on): Likewise.
52278         * modules/wcsdup (Depends-on): Likewise.
52279         * modules/wcsncasecmp (Depends-on): Likewise.
52280         * modules/wcsnrtombs (Depends-on): Likewise.
52281         * modules/wcspbrk (Depends-on): Likewise.
52282         * modules/wcsrtombs (Depends-on): Likewise.
52283         * modules/wcsspn (Depends-on): Likewise.
52284         * modules/wcsstr (Depends-on): Likewise.
52285         * modules/wcstok (Depends-on): Likewise.
52286         * modules/wcswidth (Depends-on): Likewise.
52287         * modules/wctob (Depends-on): Likewise.
52288         * modules/wctomb (Depends-on): Likewise.
52289         * modules/wctype (Depends-on): Likewise.
52290         * modules/wcwidth (Depends-on): Likewise.
52291         * modules/write (Depends-on): Likewise.
52293 2011-05-03  Bruno Haible  <bruno@clisp.org>
52295         Support for conditional dependencies.
52296         * doc/gnulib.texi (Module description): Document the syntax of
52297         conditional dependencies.
52298         * gnulib-tool: New option --conditional-dependencies.
52299         (func_usage): Document it.
52300         (cond_dependencies): New variable.
52301         (func_get_automake_snippet_conditional,
52302         func_get_automake_snippet_unconditional): New functions, extracted from
52303         func_get_automake_snippet.
52304         (func_get_automake_snippet): Use them.
52305         (sed_first_32_chars): New variable.
52306         (func_module_shellfunc_name): New function.
52307         (func_module_shellvar_name): New function.
52308         (func_module_conditional_name): New function.
52309         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
52310         func_cond_module_condition): New functions.
52311         (func_modules_transitive_closure): Add support for conditional
52312         dependencies.
52313         (func_emit_lib_Makefile_am): For a conditional module, enclose the
52314         conditional automake snippet in an automake conditional.
52315         (func_emit_autoconf_snippets): Emit shell functions that contain the
52316         code for conditional modules.
52317         (func_import, func_create_testdir): Update specification.
52319 2011-05-03  Eric Blake  <eblake@redhat.com>
52321         test-getaddrinfo: report error information
52322         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
52324 2011-05-03  Jim Meyering  <meyering@redhat.com>
52326         bootstrap: avoid build failure when $GZIP is set
52327         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
52328         program name.  If defined at all, it is supposed to list gzip options.
52329         Reported by Alan Curry in http://debbugs.gnu.org/8609
52331 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
52333         readme-release: new module with release instructions
52334         * modules/readme-release: New module.
52335         * top/README-release: New file, from coreutils, grep, diffutils.
52336         * MODULES.html.sh (Support for maintaining and releasing): Add it.
52338 2011-05-02  Eric Blake  <eblake@redhat.com>
52340         fflush: also replace fclose when fixing fflush
52341         * modules/fflush (Depends-on): Add fclose.
52342         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
52343         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
52344         memstreams with no backing fd.
52345         * doc/posix-functions/fclose.texi (fclose): Document the use of
52346         fflush module to fix the bug.
52347         * tests/test-fclose.c (main): Relax test when fclose is used in
52348         isolation.
52350         fclose: add some tests
52351         * modules/fclose-tests: New test module.
52352         * tests/test-fclose.c: New file.
52353         * doc/posix-functions/fclose.texi (fclose): Document the bug.
52355         fclose: reduced dependencies
52356         * modules/fclose (Depends-on): Switch from fflush/fseeko to
52357         simpler lseek.
52358         * lib/fclose.c (rpl_fclose): Likewise.
52359         Reported by Simon Josefsson.
52361         exit: drop remaining clients
52362         * modules/argmatch (Depends-on): Replace exit with stdlib.
52363         * modules/copy-file (Depends-on): Likewise.
52364         * modules/execute (Depends-on): Likewise.
52365         * modules/exitfail (Depends-on): Likewise.
52366         * modules/obstack (Depends-on): Likewise.
52367         * modules/pagealign_alloc (Depends-on): Likewise.
52368         * modules/pipe-filter-gi (Depends-on): Likewise.
52369         * modules/pipe-filter-ii (Depends-on): Likewise.
52370         * modules/savewd (Depends-on): Likewise.
52371         * modules/spawn-pipe (Depends-on): Likewise.
52372         * modules/wait-process (Depends-on): Likewise.
52373         * modules/xsetenv (Depends-on): Likewise.
52374         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
52375         * modules/git-merge-changelog (Depends-on): Likewise.
52376         * modules/long-options (Depends-on): Likewise.
52377         * modules/pt_chown (Depends-on): Likewise.
52378         * modules/sysexits (Depends-on): Likewise.
52380         freading: relax license from LGPLv3+ to LGPLv2+
52381         * modules/freading (License): Relax LGPL version.
52383 2011-05-02  Bruno Haible  <bruno@clisp.org>
52385         fchdir: Remove unused dependencies.
52386         * modules/fchdir (Depends-on): Remove include_next.
52388 2011-05-02  Bruno Haible  <bruno@clisp.org>
52390         gnulib-tool: Refactor.
52391         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
52392         from func_emit_autoconf_snippets.
52393         (func_emit_autoconf_snippets): Use it.
52395 2011-05-02  Simon Josefsson  <simon@josefsson.org>
52397         * NEWS: Document removal of 'exit'.
52398         * modules/exit: Remove file.
52400 2011-05-01  Bruno Haible  <bruno@clisp.org>
52402         Update DEPENDENCIES.
52403         * DEPENDENCIES (gettext): Recommend the newest release.
52404         Reported by Simon Josefsson.
52406 2011-05-01  Bruno Haible  <bruno@clisp.org>
52408         gnulib-tool: Reduce code duplication.
52409         * gnulib-tool (func_emit_autoconf_snippets): New function.
52410         (func_import, func_create_testdir): Use it.
52412 2011-04-30  Eric Blake  <eblake@redhat.com>
52414         fclose: don't fail on non-seekable input stream
52415         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
52416         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
52417         since fflush is allowed to fail in that case.
52419 2011-04-30  Bruno Haible  <bruno@clisp.org>
52421         dup3: cleanup
52422         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
52424 2011-04-30  Bruno Haible  <bruno@clisp.org>
52426         netdb: Make it work in C++ mode.
52427         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
52428         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
52429         module.
52430         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
52431         gl_MODULE_INDICATOR_FOR_TESTS.
52432         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
52433         * modules/netdb-c++-tests: New file.
52434         * tests/test-netdb-c++.cc: New file.
52436 2011-04-30  Bruno Haible  <bruno@clisp.org>
52438         New modules 'vfscanf', 'vscanf'.
52439         * modules/vfscanf: New file.
52440         * modules/vscanf: New file.
52441         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
52442         here.
52443         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
52444         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
52446 2011-04-30  Bruno Haible  <bruno@clisp.org>
52448         passfd: Add comments.
52449         * lib/passfd.c: Add comments about platforms.
52451 2011-04-30  Bruno Haible  <bruno@clisp.org>
52453         sys_uio: Make <sys/uio.h> self-contained.
52454         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
52455         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
52457 2011-04-30  Bruno Haible  <bruno@clisp.org>
52459         sys_socket: Ensure 'struct iovec' definition.
52460         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
52461         <sys/socket.h>.
52462         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
52464 2011-04-30  Bruno Haible  <bruno@clisp.org>
52466         sys_uio: Protect definition of 'struct iovec'.
52467         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
52468         it as a C struct.
52470 2011-04-30  Bruno Haible  <bruno@clisp.org>
52472         manywarnings: fix indentation
52473         * m4/manywarnings.m4: Indent by 2 spaces consistently.
52475 2011-04-30  Pádraig Brady  <P@draigBrady.com>
52477         manywarnings: add -Wno-missing-field-initializers if needed.
52478         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
52479         option if it's needed to allow initialization with { 0, }
52481 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
52483         announce-gen: cosmetic improvement
52484         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
52486 2011-04-29  Jim Meyering  <meyering@redhat.com>
52488         vc-list-files: indent with spaces, not TABs
52489         * build-aux/vc-list-files: Convert leading TABs to spaces,
52490         to match the style of most other files in gnulib.
52492         announce-gen: indent with spaces, not TABs
52493         * build-aux/announce-gen: Convert all TABs to spaces, to match
52494         the style of most other files in gnulib.
52496 2011-04-29  Eric Blake  <eblake@redhat.com>
52498         quotearg: avoid uninitialized variable use
52499         * lib/quotearg.c (quoting_options_from_style): Initialize
52500         remaining fields, and ensure that custom styles are only used via
52501         quoting_options rather than quoting_style.
52503 2011-04-29  Jim Meyering  <meyering@redhat.com>
52505         maint.mk: remove unused VC-tag variable
52506         * top/maint.mk (VC-tag): Remove unused variable.
52508 2011-04-29  Bruno Haible  <bruno@clisp.org>
52510         netdb: fix gai_strerror replacements
52511         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
52512         * modules/netdb: Substitute it.
52514 2011-04-29  Jim Meyering  <meyering@redhat.com>
52516         test-getcwd.c: avoid new set-but-not-used warning
52517         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
52518         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
52519         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
52520         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
52522         test-hash.c: avoid a new shadowing warning
52523         * tests/test-hash.c (main): Don't shadow "dup".
52525 2011-04-28  Eric Blake  <eblake@redhat.com>
52527         getaddrinfo: fix gai_strerror signature
52528         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
52529         and work around mingw with UNICODE defined.
52530         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
52531         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
52532         * modules/netdb (Makefile.am): Substitute it.
52533         * lib/netdb.in.h (gai_strerror): Declare replacement.
52534         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
52535         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
52536         the fix.
52538         getsockopt: avoid compiler warning
52539         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
52540         Reported by Matthias Bolte.
52542         tests: drop unused link dependency
52543         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
52544         * modules/dirent-safer-tests (Makefile.am): Likewise.
52545         * modules/fdopendir-tests (Makefile.am): Likewise.
52546         * modules/mkfifoat-tests (Makefile.am): Likewise.
52547         * modules/openat-safer-tests (Makefile.am): Likewise.
52548         * modules/openat-tests (Makefile.am): Likewise.
52549         * modules/readlinkat-tests (Makefile.am): Likewise.
52550         * modules/symlinkat-tests (Makefile.am): Likewise.
52551         * modules/linkat-tests (Makefile.am): Likewise.
52552         (Depends-on): Switch to filenamecat-lgpl.
52553         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
52554         LIBINTL.
52555         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
52556         * tests/test-linkat.c (main): Don't require xalloc.
52558         hash, mgetgroups: drop xalloc dependency
52559         * lib/hash.c (includes): Adjust includes.
52560         * lib/mgetgroups.c (includes): Likewise.
52561         (xgetgroups): Move...
52562         * lib/xgetgroups.c: ...to new file.
52563         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
52564         * modules/xgetgroups: New file, split from...
52565         * modules/mgetgroups: ...here.
52566         (Depends-on): Add xalloc-oversized.
52567         * modules/hash (Depends-on): Likewise.
52568         * modules/hash-tests (Depends-on): Drop xalloc.
52569         (test_hash_LDADD): Drop unused library.
52570         * tests/test-hash.c (main): Break xalloc dependency.
52571         (includes): Drop unused include.
52573         xalloc-oversized: new module
52574         * modules/xalloc-oversized: New module.
52575         * modules/xalloc (Depends-on): Add it.
52576         * lib/xalloc.h (xalloc_oversized): Move...
52577         * lib/xalloc-oversized.h: ...into new file.
52579         utimecmp: drop dependency on xmalloc
52580         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
52581         due to memory pressure.
52582         * modules/utimecmp (Depends-on): Drop xalloc.
52584 2011-04-27  Eric Blake  <eblake@redhat.com>
52586         getcwd: fix mingw bugs
52587         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
52588         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
52589         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
52591 2011-04-27  Bruno Haible  <bruno@clisp.org>
52593         mkstemps: Ensure declaration on MacOS X 10.5.
52594         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
52595         * doc/glibc-functions/mkstemps.texi: Document header file problem on
52596         MacOS X.
52598 2011-04-27  Bruno Haible  <bruno@clisp.org>
52600         mkstemp: More documentation.
52601         * doc/posix-functions/mkstemp.texi: Document header file problem on
52602         MacOS X.
52604 2011-04-27  Bruno Haible  <bruno@clisp.org>
52606         mkstemp: Tweak configure message when cross-compiling.
52607         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
52608         result as a guess.
52610 2011-04-27  Bruno Haible  <bruno@clisp.org>
52612         clean-temp: Clarify what it does.
52613         * lib/clean-temp.h: Add more comments.
52614         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
52615         module.
52616         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
52617         * doc/glibc-functions/mkstemps.texi: Likewise.
52618         * doc/glibc-functions/mkostemps.texi: Likewise.
52620 2011-04-27  Eric Blake  <eblake@redhat.com>
52622         fchdir: avoid extra chdir and fix test
52623         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
52624         getcwd-lgpl.
52625         * lib/fchdir.c (get_name): Any absolute name will do; it does not
52626         have to be canonical.
52627         (canonicalize_file_name): Drop unused macro.
52628         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
52630         filenamecat-lgpl: fix licence
52631         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
52632         when it was first created.
52634         linkat, renameat: add missing dependency
52635         * modules/linkat (Depends-on): Require getcwd-lgpl.
52636         * modules/renameat (Depends-on): Likewise.
52638         tests: reduce dependencies
52639         * tests/test-linkat.c (main): Use lighter-weight getcwd.
52640         * tests/test-renameat.c (main): Likewise.
52641         * modules/linkat-tests (Depends-on): Relax dependency.
52642         * modules/renameat-tests (Depends-on): Likewise.
52643         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
52644         dependency explicit.
52646         save-cwd: reduce default dependency
52647         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
52648         * lib/save-cwd.c: Update comments.
52649         * NEWS: Document the semantic change.
52651         getcwd: enhance tests
52652         * tests/test-getcwd-lgpl.c: New file, taken from...
52653         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
52654         repeat long path stress tests from m4 probe.
52655         * modules/getcwd-lgpl-tests: New module.
52656         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
52657         * m4/getcwd-abort-bug.m4: Update comment.
52658         * m4/getcwd-path-max.m4: Likewise.
52660         getcwd-lgpl: new module
52661         * modules/getcwd-lgpl: New module.
52662         * lib/getcwd-lgpl.c: New file.
52663         * doc/posix-functions/getcwd.texi (getcwd): Document it.
52664         * MODULES.html.sh (lacking POSIX:2008): Likewise.
52665         * modules/getcwd (configure.ac): Set C witness.
52666         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
52668         getcwd: tweak comments
52669         * m4/getcwd-abort-bug.m4: Fix comments.
52670         * m4/getcwd-path-max.m4: Likewise.
52671         * m4/getcwd.m4: Likewise.
52673 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
52674         and Eric Blake  <eblake@redhat.com>
52676         mkstemp: replace if system version uses wrong permissions
52677         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
52678         read/write mode bits set in file created by mkstemp.
52679         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
52681 2011-04-27  Eric Blake  <eblake@redhat.com>
52683         passfd: avoid compiler warning
52684         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
52685         Reported by Laine Stump.
52687 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
52689         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
52690         required by the NetBSD (and perhaps other 4.4BSD derived) join.
52692 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
52693         and Eric Blake  <eblake@redhat.com>
52695         mkstemp: mention clean-temp module
52696         * lib/mkstemp.c: Add comment.
52697         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
52699 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
52701         inttypes: also provide default values for 32-bit tests
52702         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
52703         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
52705 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
52707         strtoumax: remove dependency on strtoimax
52708         This is like the strtoull change of yesterday.
52709         * modules/strtoumax (Files): Add lib/strtoimax.c.
52710         (Depends-on): Remove strtoimax and add verify.
52712         inttypes-incomplete: new module
52713         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
52714         all but the PRI* and SCN* parts of gl_INTTYPES_H.
52715         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
52716         of gl_INTTYPES_H.
52717         (gl_INTTYPES_H): Rewrite in terms of these new macros.
52718         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
52719         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
52720         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
52721         * modules/strtoumax, modules/xstrtol (Depends-on):
52722         Depend on inttypes-incomplete, not inttypes.
52723         * modules/inttypes-incomplete: New module, containing the contents
52724         of the old modules/inttypes module, except that the Files: section
52725         omits m4/inttypes-pri.m4, and the configure.ac section invokes
52726         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
52727         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
52728         (Depends-on): Depend only on inttypes-incomplete.
52729         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
52731         inttypes: omit now-redundant strtoimax and strtoumax work
52732         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
52733         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
52735         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
52736         This supports apps that need pointers to strtoimax and strtoumax,
52737         and ports to HP-UX 11.00 64.bit, which has macros that expand to
52738         nonexistent functions.  See
52739         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00241.html>
52740         et seq.
52741         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
52742         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
52743         a macro.
52744         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
52746 2011-04-25  Simon Josefsson  <simon@josefsson.org>
52748         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
52750 2011-04-25  Bruno Haible  <bruno@clisp.org>
52752         strtol, strtoul: Mark modules as obsolete.
52753         * modules/strtol (Status, Notice): New sections.
52754         * modules/strtoul (Status, Notice): New sections.
52756 2011-04-25  Bruno Haible  <bruno@clisp.org>
52758         strtod: Remove check for strtod, unless supporting old platforms.
52759         * modules/strtod-obsolete: New file.
52760         * m4/strtod-obsolete.m4: New file.
52761         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
52762         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
52763         * modules/strtod (Depends-on): Add strtod-obsolete.
52764         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
52766 2011-04-25  Bruno Haible  <bruno@clisp.org>
52768         strcase: Make module obsolete.
52769         * modules/strcase (Status, Notice): New sections.
52771 2011-04-25  Bruno Haible  <bruno@clisp.org>
52773         dup2: Remove check for dup2, unless supporting old obsolete platforms.
52774         * modules/dup2-obsolete: New file.
52775         * m4/dup2-obsolete.m4: New file.
52776         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
52777         gl_FUNC_DUP2_OBSOLETE is not also defined.
52778         * modules/dup2 (Depends-on): Add dup2-obsolete.
52779         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
52781 2011-04-25  Bruno Haible  <bruno@clisp.org>
52783         strnlen: Avoid memchr related link error on old obsolete platforms.
52784         * modules/memchr-obsolete: New file.
52785         * m4/memchr-obsolete.m4: New file.
52786         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
52787         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
52788         * modules/memchr (Depends-on): Add memchr-obsolete.
52789         * modules/strnlen (Depends-on): Likewise.
52790         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
52792 2011-04-25  Jim Meyering  <meyering@redhat.com>
52794         maint.mk: makefile_at_at_check extend and clean up
52795         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
52796         in addition to */Makefile.am.
52797         Exempt legitimate uses of @VAR@ notation, e.g.,
52798         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
52799         Remove obsolete coreutils-specific comment.
52800         Prompted by discussion here:
52801         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
52803 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
52805         strtoul: remove dependency on strtol
52806         This is so that 'configure' need not check for strtol merely because
52807         the application needs strtoul.
52808         * modules/strtoul (Files): Add lib/strtol.c.
52809         (Depends-on): Remove strtol.
52811         strtoull: remove dependency on strtoul
52812         This is like the strtoll change.
52813         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
52814         (Depends-on): Remove strtoul.
52816         strtoll: remove dependency on strtol
52817         This is so that 'configure' need not check for strtol merely because
52818         the application needs strtoll.
52819         * modules/strtoll (Files): Add lib/strtol.c.
52820         (Depends-on): Remove strtol.
52822 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
52824         inttypes: Move some configure check to module 'imaxdiv'.
52825         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
52826         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
52827         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
52829 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
52831         inttypes: Move some configure check to module 'imaxabs'.
52832         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
52833         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
52834         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
52836 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
52838         inttypes: Remove configure tests that are not needed since 2009-12-31.
52839         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
52840         gl_cv_header_working_inttypes_h.
52842 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
52844         * modules/strnlen (Depends-on): Remove memchr.
52845         The strnlen implementation doesn't need the memchr module's fixes; see
52846         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00237.html>.
52848         strtol: remove dependency on wchar
52849         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
52850         * modules/strtol (Depends-on): Remove wchar.
52852 2011-04-21  Eric Blake  <eblake@redhat.com>
52854         passfd: fix test regression on Linux
52855         * modules/passfd-tests (configure.ac): Correct socketpair check.
52857         passfd: speed up configure and drop unused code
52858         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
52859         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
52860         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
52861         Instead of probing at configure for unix_scm_rights_bsd44_way,
52862         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
52863         check to a struct member probe.
52864         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
52865         (sendfd, recvfd): Update preprocessor checks.
52866         * modules/passfd (Files): Reflect rename, and drop unused file.
52867         (Depends-on): Drop unused dependency.
52869         passfd: allow compilation on mingw
52870         * modules/sys_socket (Depends-on): Add sys_uio.
52871         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
52872         iovec and a minimal struct msghdr.
52873         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
52874         * tests/test-sys_socket.c (main): Enhance test.
52875         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
52876         guaranteed to provide what we need.
52877         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
52878         * modules/passfd-tests (Depends-on): Add sys_wait.
52879         * tests/test-passfd.c (main): Skip test on mingw, for now.
52880         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
52881         partial 'struct msghdr' implementation.
52883         sys_uio: new module
52884         * modules/sys_uio: New module.
52885         * modules/sys_uio-tests: Likewise.
52886         * lib/sys_uio.in.h: New file.
52887         * m4/sys_uio_h.m4: Likewise.
52888         * tests/test-sys_uio.c: Likewise.
52889         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
52890         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
52892 2011-04-20  Jim Meyering  <meyering@redhat.com>
52894         useless-if-before-free: avoid false-positive
52895         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
52896         disjunct so that it too requires a terminating ";".  Without that,
52897         this script would identify as useless one statement from gcc that
52898         was not:
52899           if (aligned_ptr)
52900             free (((void **) aligned_ptr) [-1]);
52902 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
52904         doc: update users.txt.
52905         * users.txt: Add barcode.
52907 2011-04-19  Bruno Haible  <bruno@clisp.org>
52909         ioctl: Remove link dependency on native Windows.
52910         * lib/fd-hook.h: Renamed from lib/close-hook.h.
52911         (gl_close_fn, gl_ioctl_fn): New types.
52912         (struct fd_hook): Renamed from struct close_hook. Change type of
52913         private_close_fn field. Add private_ioctl_fn field.
52914         (close_hook_fn): Add parameter for primary close method.
52915         (execute_close_hooks, execute_all_close_hooks): Likewise.
52916         (ioctl_hook_fn): New type.
52917         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
52918         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
52919         argument.
52920         (unregister_fd_hook): Renamed from unregister_close_hook.
52921         * lib/fd-hook.c: Renamed from lib/close-hook.c.
52922         Don't include <unistd.h>.
52923         (close): Remove undef.
52924         (anchor): Update.
52925         (execute_close_hooks): Add argument for primary close method.
52926         (execute_all_close_hooks): Likewise.
52927         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
52928         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
52929         argument. Allow each argument to be NULL.
52930         (unregister_fd_hook): Renamed from unregister_close_hook.
52931         * lib/close.c (rpl_close): Pass 'close' function pointer to
52932         execute_all_close_hooks.
52933         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
52934         (primary_ioctl): New function.
52935         (ioctl): Don't call ioctlsocket here. Instead, call
52936         execute_all_ioctl_hooks.
52937         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
52938         close method.
52939         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
52940         (fd_sockets_hook): Renamed from close_sockets_hook.
52941         (gl_sockets_startup, gl_sockets_cleanup): Update.
52942         * modules/fd-hook: Renamed from modules/close-hook. Update.
52943         * modules/close (Depends-on): Add fd-hook, remove close-hook.
52944         * modules/sockets (Depends-on): Likewise.
52945         * modules/ioctl (Depends-on): Add fd-hook.
52946         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
52947         GNULIB_SOCKET.
52949 2011-04-19  Bruno Haible  <bruno@clisp.org>
52951         Move the support of O_NONBLOCK in open() to the 'open' module.
52952         * modules/nonblocking (Depends-on): Remove 'open'.
52953         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
52954         gl_cv_have_open_O_NONBLOCK.
52955         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
52956         O_NONBLOCK support.
52957         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
52959 2011-04-17  Bruno Haible  <bruno@clisp.org>
52961         pipe2: Simplify code.
52962         * lib/pipe2.c (pipe2): Reduce code duplication.
52964 2011-04-17  Bruno Haible  <bruno@clisp.org>
52966         nonblocking: Add comment.
52967         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
52969 2011-04-17  Bruno Haible  <bruno@clisp.org>
52971         nonblocking: Add tests for sockets.
52972         * tests/test-nonblocking-socket.sh: New file.
52973         * tests/test-nonblocking-socket-main.c: New file.
52974         * tests/test-nonblocking-socket-child.c: New file.
52975         * tests/test-nonblocking-socket.h: New file.
52976         * tests/socket-server.h: New file.
52977         * tests/socket-client.h: New file.
52978         * modules/nonblocking-socket-tests: New file.
52979         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
52981 2011-04-17  Bruno Haible  <bruno@clisp.org>
52983         nonblocking: Add tests for pipes.
52984         * tests/test-nonblocking-pipe.sh: New file.
52985         * tests/test-nonblocking-pipe-main.c: New file.
52986         * tests/test-nonblocking-pipe-child.c: New file.
52987         * tests/test-nonblocking-pipe.h: New file.
52988         * tests/test-nonblocking-writer.h: New file.
52989         * tests/test-nonblocking-reader.h: New file.
52990         * tests/test-nonblocking-misc.h: New file.
52991         * modules/nonblocking-pipe-tests: New file.
52992         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
52994 2011-04-16  Bruno Haible  <bruno@clisp.org>
52996         gettext: Clarify the needed programmer actions.
52997         * modules/gettext (Notice): New field.
52998         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
53000 2011-04-16  Bruno Haible  <bruno@clisp.org>
53002         strchrnul: Tweak last commit.
53003         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
53004         bug.
53005         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
53006         as in _GL_FUNCDECL_SYS.
53007         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
53008         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
53010 2011-04-15  Eric Blake  <eblake@redhat.com>
53012         strchrnul: work around cygwin bug
53013         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
53014         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
53015         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
53016         * modules/string (Makefile.am): Substitute it.
53017         * lib/string.in.h (strchrnul): Use it.
53019 2011-04-15  Bruno Haible  <bruno@clisp.org>
53021         Don't require lib/stdio-write.c when only module 'stdio' is used.
53022         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
53023         invocation.
53024         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
53026 2011-04-14  Bruno Haible  <bruno@clisp.org>
53028         Support non-blocking pipe I/O in read() on native Windows.
53029         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
53030         (read): New declaration.
53031         * lib/read.c: New file.
53032         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
53033         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
53034         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
53035         vscanf): New declarations.
53036         * lib/stdio-read.c: New file.
53037         * m4/read.m4: New file.
53038         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
53039         REPLACE_READ.
53040         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
53041         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
53042         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
53043         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
53044         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
53045         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
53046         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
53047         * modules/read: New file.
53048         * modules/nonblocking (Files): Add lib/stdio-read.c.
53049         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
53050         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
53051         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
53052         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
53053         * modules/pread (Depends-on): Add read.
53054         * modules/safe-read (Depends-on): Likewise.
53055         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
53056         gets, scanf, vfscanf, vscanf): Verify signatures.
53057         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
53058         problem with non-blocking pipes.
53059         * doc/posix-functions/fgetc.texi: Likewise.
53060         * doc/posix-functions/fgets.texi: Likewise.
53061         * doc/posix-functions/fread.texi: Likewise.
53062         * doc/posix-functions/fscanf.texi: Likewise.
53063         * doc/posix-functions/getc.texi: Likewise.
53064         * doc/posix-functions/getchar.texi: Likewise.
53065         * doc/posix-functions/gets.texi: Likewise.
53066         * doc/posix-functions/scanf.texi: Likewise.
53067         * doc/posix-functions/vfscanf.texi: Likewise.
53068         * doc/posix-functions/vscanf.texi: Likewise.
53070 2011-04-14  Bruno Haible  <bruno@clisp.org>
53072         Support non-blocking pipe I/O in write() on native Windows.
53073         * lib/write.c (rpl_write): Split a write request that failed merely
53074         because the byte count was larger than the pipe buffer's size.
53075         * doc/posix-functions/write.texi: Mention the problem with large byte
53076         counts.
53078 2011-04-14  Bruno Haible  <bruno@clisp.org>
53080         wchar: Ensure that wchar_t gets defined on uClibc.
53081         * lib/wchar.in.h: On uClibc, include <stddef.h>.
53082         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
53084 2011-04-13  Bruno Haible  <bruno@clisp.org>
53086         safe-write, full-read: Avoid unnecessary compilation units.
53087         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
53088         (Depends-on): Remove safe-read. Add ssize_t.
53089         * modules/full-read (Files): Add lib/full-write.c.
53090         (Depends-on): Add full-write.
53092 2011-04-13  Bruno Haible  <bruno@clisp.org>
53094         Support non-blocking pipe I/O and SIGPIPE in pwrite().
53095         * modules/pwrite (Depends-on): Add 'write'.
53097 2011-04-13  Bruno Haible  <bruno@clisp.org>
53099         Support non-blocking pipe I/O in write() on native Windows.
53100         * lib/unistd.in.h (write): Enable replacement also if
53101         GNULIB_UNISTD_H_NONBLOCKING is 1.
53102         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
53103         (rpl_write): When failing to write on a non-blocking pipe, change
53104         errno from ENOSPC to EAGAIN.
53105         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
53106         putchar, puts, vfprintf, vprintf): Enable replacement also if
53107         GNULIB_STDIO_H_NONBLOCKING is 1.
53108         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
53109         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
53110         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
53111         CALL_WITH_SIGPIPE_EMULATION.
53112         (CALL_WITH_SIGPIPE_EMULATION): Use them.
53113         * m4/nonblocking.m4: New file.
53114         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
53115         for non-blocking I/O support.
53116         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
53117         GNULIB_UNISTD_H_NONBLOCKING.
53118         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
53119         required for non-blocking I/O support.
53120         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
53121         * modules/nonblocking (Files): Add m4/nonblocking.m4,
53122         lib/stdio-write.c, m4/asm-underscore.m4.
53123         (Depends-on): Add stdio, unistd.
53124         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
53125         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
53126         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
53127         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
53128         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
53129         problem with non-blocking pipes.
53130         * doc/posix-functions/fputc.texi: Likewise.
53131         * doc/posix-functions/fputs.texi: Likewise.
53132         * doc/posix-functions/fwrite.texi: Likewise.
53133         * doc/posix-functions/printf.texi: Likewise.
53134         * doc/posix-functions/putc.texi: Likewise.
53135         * doc/posix-functions/putchar.texi: Likewise.
53136         * doc/posix-functions/puts.texi: Likewise.
53137         * doc/posix-functions/vfprintf.texi: Likewise.
53138         * doc/posix-functions/vprintf.texi: Likewise.
53139         * doc/posix-functions/write.texi: Likewise.
53141 2011-04-10  Jim Meyering  <meyering@redhat.com>
53143         maint.mk: prohibit doubled words
53144         Detect them also when they're separated by a newline.
53145         There are 3 ways to customize it:
53146           - disable the test on a per file basis, as usual with rules using
53147             $(VC_LIST_EXCEPT)
53148           - replace the default doubled-word-selecting regexp (affects all files)
53149           - ignore a particular file-vs-doubled-word match
53150         I nearly used that last one to ignore the "is is" match in
53151         coreutils' NEWS file, since the text was "ls -is is ..."
53152         To do that, I would have added this line to cfg.mk:
53153           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
53154         but it would have ignored any "is is" match in NEWS.
53155         Low probability, but still...
53156         Instead, I changed the text, slightly:
53157           -  ls -is is now consistent with ls -lis in ignoring values returned
53158           +  "ls -is" is now consistent with ls -lis in ignoring values returned
53159         * top/maint.mk (prohibit_double_word_RE_): Provide default.
53160         (prohibit_doubled_word_): Define.
53161         (sc_prohibit_doubled_word): New rule.
53162         (sc_prohibit_the_the): Remove.  Subsumed by the above.
53164 2011-04-10  Jim Meyering  <meyering@redhat.com>
53166         maint: fix doubled-word typo in comment
53167         * m4/gethostname.m4: s/is is/it is/
53168         * m4/getdomainname.m4: Likewise.
53170 2011-04-10  Jim Meyering  <meyering@redhat.com>
53172         maint: remove doubled word: s/it it/it/
53173         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
53175 2011-04-10  Jim Meyering  <meyering@redhat.com>
53177         maint.mk: remove useless semicolon and backslash
53178         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
53179         semicolon and backslash.
53181 2011-04-10  Bruno Haible  <bruno@clisp.org>
53183         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
53184         * modules/stdint-tests (Depends-on): Add wchar.
53186 2011-04-10  Jim Meyering  <meyering@redhat.com>
53188         maint: remove doubled words in comments, e.g., s/a a/a/
53189         * lib/strptime.c (day_of_the_week): s/the the/the/
53190         * tests/test-chown.h (test_chown): s/a a/a/
53192         test-chown.h: correct a cast
53193         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
53194         when the destination is a stat.st_gid.
53196 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
53198         getaddrinfo: Fix test for sa_len member.
53199         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
53200         include <sys/types.h> before <sys/socket.h>.
53202 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
53204         maint: change "can not" to "cannot"
53205         * doc/posix-functions/iconv.texi (iconv): This one crossed line
53206         boundaries.
53208 2011-04-09  Jim Meyering  <meyering@redhat.com>
53210         maint: change "a a" to "a"
53211         * tests/test-lchown.h (test_lchown): s/a a/a/
53213         maint.mk: prohibit \<the the\>
53214         * top/maint.mk (sc_prohibit_the_the): New rule.
53216         maint: fix "the the" in comment
53217         * lib/count-one-bits.h: s/the the/the/
53219         maint: change "can not" to "cannot"
53220         But do not change the occurrences in maintain.texi or in
53221         build-aux/po/Makefile.in.in, which I presume comes from gettext.
53222         * doc/gnulib-tool.texi: s/can not/cannot/
53223         * doc/posix-functions/accept.texi (accept): Likewise.
53224         * doc/posix-functions/socket.texi (socket): Likewise.
53225         * lib/mbrtowc.c: Likewise.
53227         maint.mk: prohibit use of "can not"
53228         * top/maint.mk (sc_prohibit_can_not): New rule.
53229         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
53231 2011-04-09  Bruno Haible  <bruno@clisp.org>
53233         careadlinkat: Guard against misuse of careadlinkatcwd.
53234         * lib/careadlinkat.c: Include <stdlib.h>.
53235         (careadlinkatcwd): Check that the fd argument is as expected.
53237 2011-04-09  Bruno Haible  <bruno@clisp.org>
53239         careadlinkat: Use common coding style.
53240         * lib/careadlinkat.c: Move gnulib includes after system includes.
53242 2011-04-09  Bruno Haible  <bruno@clisp.org>
53244         careadlinkat: Clarify specification.
53245         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
53246         (careadlinkatcwd): Add comment.
53247         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
53249 2011-04-09  Bruno Haible  <bruno@clisp.org>
53251         areadlinkat: Avoid link error on many platforms.
53252         * modules/areadlinkat (Depends-on): Add areadlink.
53254 2011-04-09  Bruno Haible  <bruno@clisp.org>
53256         allocator, careadlinkat: Fix double-inclusion guard.
53257         * lib/allocator.h: Fix double-inclusion guard.
53258         * lib/careadlinkat.h: Likewise.
53260 2011-04-09  Bruno Haible  <bruno@clisp.org>
53262         relocatable-prog-wrapper: Update after module 'areadlink' changed.
53263         * lib/relocwrapper.c: Update dependencies hierarchy.
53264         * build-aux/install-reloc: Update list of files to be compiled.
53265         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
53266         lib/allocator.[hc].
53268 2011-04-08  Eric Blake  <eblake@redhat.com>
53270         strftime: silence gnulib-tool warning
53271         * modules/strftime-tests (Depends-on): Drop automatic dependency.
53273 2011-04-08  Bruno Haible  <bruno@clisp.org>
53275         verify: Fix syntax error with GCC 4.6 in C++ mode.
53276         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
53277         (HAVE_STATIC_ASSERT): New macro.
53278         (verify_true, verify): Use 'static_assert' if it is supported and
53279         '_Static_assert' is not supported.
53281 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
53283         allocator: New module.
53284         * modules/allocator, lib/allocator.c: New files.
53285         * lib/allocator.h (stdlib_allocator): New decl.
53286         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
53287         Remove.  Do not include <stdlib.h>.
53288         (careadlinkat): Use stdlib_allocator instead of rolling our own.
53289         * modules/careadlinkat (Files): Remove lib/allocator.h.
53290         (Depends-on): Add allocator.
53292         stdlib: let modules use system malloc, realloc
53293         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
53294         if !_GL_USE_STDLIB_ALLOC.
53295         (malloc, realloc): Limit this change to a smaller scope.
53297         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
53298         (malloc, realloc): Don't #undef; no longer needed.
53299         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
53300         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
53301         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
53302         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
53303         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
53304         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
53305         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
53306         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
53308         careadlinkat: rename members to avoid problem
53309         * lib/allocator.h (struct allocator): Rename members from
53310         malloc/realloc to allocate/reallocate, to avoid problems if malloc
53311         and realloc are #define'd.  Reported by Eric Blake in
53312         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00091.html>.
53313         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
53315 2011-04-08  Eric Blake  <eblake@redhat.com>
53317         nonblocking: reduce dependency
53318         * tests/test-nonblocking.c: Only test sockets when in use.
53319         * modules/nonblocking-tests (Depends-on): Drop socket.
53320         (Makefile.am): Link even if sockets are not present.
53321         * modules/pipe2-tests (Makefile.am): Likewise.
53322         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
53324         pipe2: fix O_NONBLOCK support on mingw
53325         * modules/pipe2 (Depends-on): Add nonblocking.
53326         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
53327         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
53328         * tests/test-nonblocking.c (main): Likewise.
53329         * modules/pipe2-tests (Makefile.am): Avoid link failure.
53331         fcntl-h: fix O_ACCMODE on cygwin
53332         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
53333         * lib/fcntl.in.h (O_ACCMODE): Fix it.
53335         pipe-filter: drop O_NONBLOCK workarounds
53336         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
53337         * modules/pipe-filter-ii (Depends-on): Likewise.
53338         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
53340         nonblocking: provide O_NONBLOCK for mingw
53341         * modules/nonblocking (Depends-on): Add open.
53342         (configure.ac): Set new witness macro.
53343         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
53344         * modules/fcntl-h (Makefile.am): Substitute it.
53345         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
53346         nonblocking module is in use.
53347         * lib/nonblocking.c: Adjust portability test.
53348         * lib/open.c (open): Don't let native open see gnulib flag.
53349         * tests/test-fcntl-h.c (main): Enhance test.
53350         * tests/test-open.h (test_open): Likewise.
53351         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
53353         careadlinkat: fix compilation error on mingw
53354         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
53355         within struct allocator.
53357 2011-04-06  Eric Blake  <eblake@redhat.com>
53359         binary-io: relicense under LGPLv2+
53360         * modules/binary-io (License): Relax to LGPLv2+.
53361         Requested for libvirt, and required by pipe2.
53363 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
53365         verify: use _Static_assert if available
53366         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
53367         (verify_true, verify): Use it if available.  This generates better
53368         diagnostics with GCC 4.6.0 and later.
53370 2011-04-05  Bruno Haible  <bruno@clisp.org>
53372         Remove leftover generated .h files after config.status changed.
53374         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
53375         GL_GENERATE_ALLOCA_H.
53376         * modules/alloca-opt (Makefile.am): Remove alloca.h if
53377         GL_GENERATE_ALLOCA_H evaluates to false.
53379         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
53380         GL_GENERATE_ARGZ_H.
53381         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
53382         evaluates to false.
53384         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
53385         GL_GENERATE_BYTESWAP_H.
53386         * modules/byteswap (Makefile.am): Remove byteswap.h if
53387         GL_GENERATE_BYTESWAP_H evaluates to false.
53389         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
53390         GL_GENERATE_ERRNO_H.
53391         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
53392         evaluates to false.
53394         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
53395         GL_GENERATE_FLOAT_H.
53396         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
53397         evaluates to false.
53399         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
53400         GL_GENERATE_FNMATCH_H.
53401         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
53402         GL_GENERATE_FNMATCH_H evaluates to false.
53404         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
53405         GL_GENERATE_GLOB_H.
53406         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
53407         evaluates to false.
53409         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
53410         automake conditional GL_GENERATE_ICONV_H.
53411         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
53412         evaluates to false.
53414         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
53415         GL_GENERATE_NETINET_IN_H.
53416         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
53417         GL_GENERATE_NETINET_IN_H evaluates to false.
53419         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
53420         conditional GL_GENERATE_PTHREAD_H.
53421         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
53422         * modules/pthread (Makefile.am): Remove pthread.h if
53423         GL_GENERATE_PTHREAD_H evaluates to false.
53425         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
53426         GL_GENERATE_SCHED_H.
53427         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
53428         evaluates to false.
53430         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
53431         conditional GL_GENERATE_SELINUX_CONTEXT_H.
53432         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
53433         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
53435         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
53436         GL_GENERATE_STDARG_H.
53437         * modules/stdarg (Makefile.am): Remove stdarg.h if
53438         GL_GENERATE_STDARG_H evaluates to false.
53440         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
53441         GL_GENERATE_STDBOOL_H.
53442         * modules/stdbool (Makefile.am): Remove stdbool.h if
53443         GL_GENERATE_STDBOOL_H evaluates to false.
53445         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
53446         conditional GL_GENERATE_STDDEF_H.
53447         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
53448         * modules/stddef (Makefile.am): Remove stddef.h if
53449         GL_GENERATE_STDDEF_H evaluates to false.
53451         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
53452         GL_GENERATE_STDINT_H.
53453         * modules/stdint (Makefile.am): Remove stdint.h if
53454         GL_GENERATE_STDINT_H evaluates to false.
53456         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
53457         GL_GENERATE_SYSEXITS_H.
53458         * modules/sysexits (Makefile.am): Remove sysexits.h if
53459         GL_GENERATE_SYSEXITS_H evaluates to false.
53461         Reported by Karl Berry and Ralf Wildenhues.
53463 2011-04-05  Bruno Haible  <bruno@clisp.org>
53465         Ensure to rebuild generated .h files when config.status has changed.
53466         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
53467         config.status.
53468         * modules/ctype (Makefile.am): Likewise.
53469         * modules/dirent (Makefile.am): Likewise.
53470         * modules/errno (Makefile.am): Likewise.
53471         * modules/fcntl-h (Makefile.am): Likewise.
53472         * modules/float (Makefile.am): Likewise.
53473         * modules/getopt-posix (Makefile.am): Likewise.
53474         * modules/glob (Makefile.am): Likewise.
53475         * modules/iconv-h (Makefile.am): Likewise.
53476         * modules/inttypes (Makefile.am): Likewise.
53477         * modules/langinfo (Makefile.am): Likewise.
53478         * modules/locale (Makefile.am): Likewise.
53479         * modules/math (Makefile.am): Likewise.
53480         * modules/netdb (Makefile.am): Likewise.
53481         * modules/netinet_in (Makefile.am): Likewise.
53482         * modules/poll-h (Makefile.am): Likewise.
53483         * modules/pthread (Makefile.am): Likewise.
53484         * modules/pty (Makefile.am): Likewise.
53485         * modules/sched (Makefile.am): Likewise.
53486         * modules/search (Makefile.am): Likewise.
53487         * modules/selinux-h (Makefile.am): Likewise.
53488         * modules/signal (Makefile.am): Likewise.
53489         * modules/spawn (Makefile.am): Likewise.
53490         * modules/stdarg (Makefile.am): Likewise.
53491         * modules/stdbool (Makefile.am): Likewise.
53492         * modules/stddef (Makefile.am): Likewise.
53493         * modules/stdint (Makefile.am): Likewise.
53494         * modules/stdio (Makefile.am): Likewise.
53495         * modules/stdlib (Makefile.am): Likewise.
53496         * modules/string (Makefile.am): Likewise.
53497         * modules/strings (Makefile.am): Likewise.
53498         * modules/sys_file (Makefile.am): Likewise.
53499         * modules/sys_ioctl (Makefile.am): Likewise.
53500         * modules/sys_select (Makefile.am): Likewise.
53501         * modules/sys_socket (Makefile.am): Likewise.
53502         * modules/sys_stat (Makefile.am): Likewise.
53503         * modules/sys_time (Makefile.am): Likewise.
53504         * modules/sys_times (Makefile.am): Likewise.
53505         * modules/sys_utsname (Makefile.am): Likewise.
53506         * modules/sys_wait (Makefile.am): Likewise.
53507         * modules/sysexits (Makefile.am): Likewise.
53508         * modules/termios (Makefile.am): Likewise.
53509         * modules/time (Makefile.am): Likewise.
53510         * modules/unistd (Makefile.am): Likewise.
53511         * modules/wchar (Makefile.am): Likewise.
53512         * modules/wctype-h (Makefile.am): Likewise.
53513         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
53515 2011-04-05  Bruno Haible  <bruno@clisp.org>
53517         pipe2: Relicense under LGPLv2+.
53518         * modules/pipe2 (License): Change to LGPLv2+.
53519         Requested by Eric Blake, for libvirt.
53521 2011-04-05  Bruce Korb  <bkorb@gnu.org>
53523         bootstrap: compute gnulib_extra_files after updating build_aux
53524         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
53525         change build_aux or also supply gnulib_extra_files.  Handle correctly.
53527 2011-04-05  Eric Blake  <eblake@redhat.com>
53529         bootstrap: preserve git whitelist item sorting
53530         * build-aux/bootstrap (sort_patterns): New function.
53531         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
53533 2011-04-05  Simon Josefsson  <simon@josefsson.org>
53535         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
53536         sc_space_tab check.
53538 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
53540         areadlink, areadlinkat: rewrite in terms of careadlinkat
53541         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
53542         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
53543         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
53544         (malloc, realloc): Remove #undefs.
53545         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
53546         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
53547         readlink, ssize_t, stdint, unistd.
53548         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
53549         areadlink, stdint.
53551         careadlinkat: new module
53552         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
53553         * modules/careadlinkat: New files, written by me with
53554         a review and feedback from Ben Pfaff in
53555         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00008.html>.
53557 2011-04-01  Bruno Haible  <bruno@clisp.org>
53559         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
53560         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
53561         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
53562         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
53563         Reported by Bruce Korb <bruce.korb@gmail.com>.
53565 2011-04-01  Bruno Haible  <bruno@clisp.org>
53567         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
53568         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
53569         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
53570         * modules/wcpcpy (Depends-on): Add extensions.
53571         * modules/wcpncpy (Depends-on): Likewise.
53572         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
53573         systems.
53574         * doc/posix-functions/wcpncpy.texi: Likewise.
53575         * doc/posix-functions/wcwidth.texi: Likewise.
53577 2011-03-31  Eric Blake  <eblake@redhat.com>
53579         nonblocking: fix mingw test failures
53580         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
53581         non-blocking flag on regular file.
53582         (get_nonblocking_flag): Set errno on invalid fd.
53583         * tests/test-nonblocking.c (main): Avoid test failure on
53584         directories if fchdir is not active.
53585         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
53587 2011-03-31  Bruno Haible  <bruno@clisp.org>
53589         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
53590         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
53591         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
53592         Reported by Simon Josefsson <simon@josefsson.org>.
53594 2011-03-31  Bruno Haible  <bruno@clisp.org>
53595         and Eric Blake  <eblake@redhat.com>
53597         nonblocking: new module
53598         * modules/nonblocking: New module.
53599         * modules/nonblocking-tests: Likewise.
53600         * lib/nonblocking.h: New file.
53601         * lib/nonblocking.c: Likewise.
53602         * tests/test-nonblocking.c: New test.
53603         * lib/ioctl.c (ioctl) [mingw]: Update comment.
53605 2011-03-30  Bruno Haible  <bruno@clisp.org>
53607         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
53608         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
53609         instead of 'printf' format for GCC >= 4.4.
53610         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
53611         (fprintf, printf, vfprintf, vprintf): Declare with
53612         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
53613         the system's vfprintf() function.
53614         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
53616 2011-03-30  Eric Blake  <eblake@redhat.com>
53618         passfd: fix scoping bug
53619         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
53620         before sendmsg/recvmsg.
53622         passfd: standardize coding conventions
53623         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
53624         can be learned at compile time.
53625         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
53626         ifdefs.
53627         (sendfd, recvfd): Follow gnulib code conventions.
53629         passfd: fix incorrect sendmsg arguments
53630         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
53631         incorrect msg_controllen value.
53632         * modules/passfd-tests (Depends-on): Check for alarm.
53633         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
53634         Reported by Bastien ROUCARIES.
53636 2011-03-30  Bruno Haible  <bruno@clisp.org>
53638         c-strcasestr: Relicense under LGPLv2+.
53639         * modules/c-strcasestr (License): Change to LGPLv2+.
53640         Requested by Eric Blake, for libvirt.
53642 2011-03-30  Simon Josefsson  <simon@josefsson.org>
53644         * users.txt: Add libidn2.  Fix libtasn1 link.
53646 2011-03-30  Jim Meyering  <meyering@redhat.com>
53648         tests: readlink* ("",... fails with EINVAL on newer kernels
53649         readlink and readlinkat have typically failed with ENOENT for
53650         the invalid, empty file name,  "".  However, with the advent
53651         of linux-2.6.39, they fail with EINVAL.
53652         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
53653         when operating on the empty file name.
53654         * tests/test-readlink.h (test_readlink): Likewise.
53656 2011-03-29  Bruno Haible  <bruno@clisp.org>
53658         Relicense some modules under LGPLv2+, for libidn2.
53659         * modules/array-mergesort (License): Change to LGPLv2+.
53660         * modules/c-strcaseeq (License): Likewise.
53661         * modules/striconveh (License): Likewise.
53662         * modules/striconveha (License): Likewise.
53663         * modules/uniconv/base (License): Likewise.
53664         * modules/uniconv/u8-conv-from-enc (License): Likewise.
53665         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
53666         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
53667         * modules/unictype/base (License): Likewise.
53668         * modules/unictype/bidiclass-of (License): Likewise.
53669         * modules/unictype/category-M (License): Likewise.
53670         * modules/unictype/category-none (License): Likewise.
53671         * modules/unictype/category-of (License): Likewise.
53672         * modules/unictype/category-test (License): Likewise.
53673         * modules/unictype/category-test-withtable (License): Likewise.
53674         * modules/unictype/combining-class (License): Likewise.
53675         * modules/unictype/joiningtype-of (License): Likewise.
53676         * modules/unictype/scripts (License): Likewise.
53677         * modules/uninorm/base (License): Likewise.
53678         * modules/uninorm/canonical-decomposition (License): Likewise.
53679         * modules/uninorm/composition (License): Likewise.
53680         * modules/uninorm/decompose-internal (License): Likewise.
53681         * modules/uninorm/decomposition-table (License): Likewise.
53682         * modules/uninorm/nfc (License): Likewise.
53683         * modules/uninorm/nfd (License): Likewise.
53684         * modules/uninorm/u32-normalize (License): Likewise.
53685         * modules/unistr/base (License): Likewise.
53686         * modules/unistr/u32-cpy (License): Likewise.
53687         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
53688         * modules/unistr/u32-to-u8 (License): Likewise.
53689         * modules/unistr/u32-uctomb (License): Likewise.
53690         * modules/unistr/u8-check (License): Likewise.
53691         * modules/unistr/u8-mblen (License): Likewise.
53692         * modules/unistr/u8-mbtouc (License): Likewise.
53693         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
53694         * modules/unistr/u8-mbtoucr (License): Likewise.
53695         * modules/unistr/u8-prev (License): Likewise.
53696         * modules/unistr/u8-strlen (License): Likewise.
53697         * modules/unistr/u8-to-u32 (License): Likewise.
53698         * modules/unistr/u8-uctomb (License): Likewise.
53699         * modules/unitypes (License): Likewise.
53700         Requested by Simon Josefsson.
53702 2011-03-29  Simon Josefsson  <simon@josefsson.org>
53704         lib-symbol-visibility: Add a notice.
53705         * modules/lib-symbol-visibility (Notice): New field.
53707 2011-03-29  Bruno Haible  <bruno@clisp.org>
53709         getaddrinfo: Doc fix.
53710         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
53711         section "fixed in Gnulib".
53713 2011-03-28  Simon Josefsson  <simon@josefsson.org>
53715         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
53716         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
53718 2011-03-26  Bruno Haible  <bruno@clisp.org>
53720         unictype/property-byname: Reduce the number of load-time relocations.
53721         * lib/unictype/pr_byname.c: Include <stdlib.h>.
53722         (UC_PROPERTY_INDEX_*): New enumeration values.
53723         (uc_property_byname): Convert an index from the lookup table to an
53724         uc_property_t.
53725         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
53726         values.
53728 2011-03-26  Bruno Haible  <bruno@clisp.org>
53730         unictype/property-byname: Allow omitted word separators and aliases.
53731         * lib/unictype/pr_byname.gperf: Add property names without word
53732         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
53733         for 'space'.
53735 2011-03-26  Bruno Haible  <bruno@clisp.org>
53737         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
53738         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
53739         also hyphens to space.
53740         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
53741         without spaces.
53742         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
53744 2011-03-26  Bruno Haible  <bruno@clisp.org>
53746         unictype/joiningtype-byname: Recognize long names as well.
53747         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
53748         a long name.
53749         * lib/unictype/joiningtype_byname.c: Include <string.h>,
53750         unictype/joiningtype_byname.h.
53751         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
53752         * lib/unictype/joiningtype_byname.gperf: New file.
53753         * modules/unictype/joiningtype-byname (Files): Add
53754         lib/unictype/joiningtype_byname.gperf.
53755         (Depends-on): Add gperf.
53756         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
53757         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
53758         long names.
53760         Tests for module 'unictype/joiningtype-longname'.
53761         * modules/unictype/joiningtype-longname-tests: New file.
53762         * tests/unictype/test-joiningtype_longname.c: New file.
53764         New module 'unictype/joiningtype-longname'.
53765         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
53766         * lib/unictype/joiningtype_longname.c: New file.
53767         * modules/unictype/joiningtype-longname: New file.
53768         * modules/unictype/joiningtype-all (Depends-on): Add
53769         unictype/joiningtype-longname.
53771 2011-03-26  Bruno Haible  <bruno@clisp.org>
53773         unictype/bidiclass-byname: Recognize long names as well.
53774         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
53775         name.
53776         * lib/unictype/bidi_byname.c: Include <string.h>,
53777         unictype/bidi_byname.h.
53778         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
53779         * lib/unictype/bidi_byname.gperf: New file.
53780         * modules/unictype/bidiclass-byname (Files): Add
53781         lib/unictype/bidi_byname.gperf.
53782         (Depends-on): Add gperf.
53783         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
53784         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
53785         long names.
53787         Tests for module 'unictype/bidiclass-longname'.
53788         * modules/unictype/bidiclass-longname-tests: New file.
53789         * tests/unictype/test-bidi_longname.c: New file.
53791         New module 'unictype/bidiclass-longname'.
53792         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
53793         * lib/unictype/bidi_longname.c: New file.
53794         * modules/unictype/bidiclass-longname: New file.
53795         * modules/unictype/bidiclass-all (Depends-on): Add
53796         unictype/bidiclass-longname.
53798 2011-03-26  Bruno Haible  <bruno@clisp.org>
53800         unictype/bidi*: Rename modules.
53801         * modules/unictype/bidiclass-all: Renamed from
53802         modules/unictype/bidicategory-all.
53803         * modules/unictype/bidiclass-name: Renamed from
53804         modules/unictype/bidiclass-name.
53805         (Description): Update.
53806         * modules/unictype/bidiclass-name-tests: Renamed from
53807         modules/unictype/bidicategory-name-tests.
53808         * modules/unictype/bidiclass-byname: Renamed from
53809         modules/unictype/bidicategory-byname.
53810         (Description): Update.
53811         * modules/unictype/bidiclass-byname-tests: Renamed from
53812         modules/unictype/bidicategory-byname-tests.
53813         * modules/unictype/bidiclass-of: Renamed from
53814         modules/unictype/bidicategory-of.
53815         (Description): Update.
53816         * modules/unictype/bidiclass-of-tests: Renamed from
53817         modules/unictype/bidicategory-of-tests.
53818         * modules/unictype/bidiclass-test: Renamed from
53819         modules/unictype/bidicategory-test.
53820         (Description): Update.
53821         * modules/unictype/bidiclass-test-tests: Renamed from
53822         modules/unictype/bidicategory-test-tests.
53823         * modules/unictype/bidicategory-all: New file, a simple redirection.
53824         * modules/unictype/bidicategory-name: Likewise.
53825         * modules/unictype/bidicategory-byname: Likewise.
53826         * modules/unictype/bidicategory-of: Likewise.
53827         * modules/unictype/bidicategory-test: Likewise.
53828         * modules/unictype/property-bidi-* (Dependencies): Update.
53829         * lib/unictype/bidi_*.c: Update comment.
53831 2011-03-26  Bruno Haible  <bruno@clisp.org>
53833         unictype/bidi*: Rename functions, part 2.
53834         * modules/unictype/bidicategory-name (configure.ac): Update required
53835         libunistring version.
53836         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
53838 2011-03-25  Bruno Haible  <bruno@clisp.org>
53840         New module 'unictype/combining-class-all'.
53841         * modules/unictype/combining-class-all: New file.
53843         Tests for module 'unictype/combining-class-byname'.
53844         * modules/unictype/combining-class-byname-tests: New file.
53845         * tests/unictype/test-combiningclass_byname.c: New file.
53847         New module 'unictype/combining-class-byname'.
53848         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
53849         * lib/unictype/combiningclass_byname.c: New file.
53850         * lib/unictype/combiningclass_byname.gperf: New file.
53851         * modules/unictype/combining-class-byname: New file.
53853         Tests for module 'unictype/combining-class-longname'.
53854         * modules/unictype/combining-class-longname-tests: New file.
53855         * tests/unictype/test-combiningclass_longname.c: New file.
53857         New module 'unictype/combining-class-longname'.
53858         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
53859         * lib/unictype/combiningclass_longname.c: New file.
53860         * modules/unictype/combining-class-longname: New file.
53862         Tests for module 'unictype/combining-class-name'.
53863         * modules/unictype/combining-class-name-tests: New file.
53864         * tests/unictype/test-combiningclass_name.c: New file.
53866         New module 'unictype/combining-class-name'.
53867         * lib/unictype.in.h (uc_combining_class_name): New declaration.
53868         * lib/unictype/combiningclass_name.c: New file.
53869         * modules/unictype/combining-class-name: New file.
53871 2011-03-25  Bruno Haible  <bruno@clisp.org>
53873         unictype/combining-class: Rename source files.
53874         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
53875         of unictype/combining.h.
53876         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
53877         Update.
53878         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
53879         * modules/unictype/combining-class (Description): Fix.
53880         (Files, Makefile.am): Update.
53881         * tests/unictype/test-combiningclass.c: Renamed from
53882         tests/unictype/test-combining.c.
53883         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
53885 2011-03-25  Bruno Haible  <bruno@clisp.org>
53887         unictype: Update list of canonical combining classes.
53888         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
53890 2011-03-25  Bruno Haible  <bruno@clisp.org>
53892         unictype/category-byname: Recognize long names as well.
53893         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
53894         a long name.
53895         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
53896         unictype/categ_byname.h.
53897         (UC_CATEGORY_INDEX_*): New enumeration values.
53898         (uc_general_category_byname): Use uc_general_category_lookup and
53899         convert from index to value.
53900         * lib/unictype/categ_byname.gperf: New file.
53901         * modules/unictype/category-byname (Files): Add
53902         lib/unictype/categ_byname.gperf.
53903         (Depends-on): Add gperf.
53904         (Makefile.am): Add rule for generating unictype/categ_byname.h.
53905         * tests/unictype/test-categ_byname.c (main): Test the recognition of
53906         long names.
53908         Tests for module 'unictype/category-longname'.
53909         * modules/unictype/category-longname-tests: New file.
53910         * tests/unictype/test-categ_longname.c: New file.
53912         New module 'unictype/category-longname'.
53913         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
53914         * lib/unictype/categ_longname.c: New file.
53915         * modules/unictype/category-longname: New file.
53916         * modules/unictype/category-all (Depends-on): Add it.
53918 2011-03-25  Bruno Haible  <bruno@clisp.org>
53920         Tests for module 'unictype/category-LC'.
53921         * modules/unictype/category-LC-tests: New file.
53922         * tests/unictype/test-categ_LC.c: New file, automatically generated.
53924         New module 'unictype/category-LC'.
53925         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
53926         (UC_CATEGORY_LC): New declaration.
53927         (UC_CASED_LETTER): New macro.
53928         * lib/gen-uni-tables.c (is_category_LC): New function.
53929         (output_categories): Also handle category LC.
53930         (UC_CATEGORY_MASK_LC): New enumeration value.
53931         (general_category_byname): Also handle category LC.
53932         * lib/unictype/categ_LC.c: New file.
53933         * lib/unictype/categ_LC.h: New file, automatically generated.
53934         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
53935         category LC.
53936         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
53937         * modules/unictype/category-LC: New file.
53938         * modules/unictype/category-byname (Depends-on): Add
53939         unictype/category-LC.
53940         * modules/unictype/category-all (Depends-on): Likewise.
53942 2011-03-25  Eric Blake  <eblake@redhat.com>
53944         xmalloc: revert yesterday's regression
53945         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
53946         realloc's underlying behavior (allowing allocation of zero-size
53947         objects, especially if malloc-gnu is also in use).
53949 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
53951         maint.mk: add missing version to VC-tag
53952         * top/maint.mk: git tag was missing actual tag name; add it.
53954         valgrind: do leak checking, and exit with code 1 on error (not 0)
53955         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
53956         to VALGRIND.
53958 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
53960         posix-modules: say what it does.
53961         * posix-modules: Add a line to the --help output saying what it does.
53963 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
53965         xmalloc: Do not leak if underlying realloc is C99 compatible.
53966         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
53967         This avoids a leak on C99-based systems.  See
53968         <http://lists.gnu.org/r/bug-gnulib/2011-03/msg00243.html>.
53970 2011-03-24  Eric Blake  <eblake@redhat.com>
53972         realloc: document portability problem
53973         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
53974         passing 0 size to realloc.
53976 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
53978         doc: update users.txt
53979         * users.txt: Add cvsps, tmpwatch
53981 2011-03-23  Matt Rice  <ratmice@gmail.com>
53983         doc: update users.txt
53984         * users.txt: Add gdb.
53986 2011-03-23  Jim Meyering  <meyering@redhat.com>
53988         doc: update users.txt
53989         Looking through matches up to the following URL (there are still
53990         several more pages), I found several projects that use gnulib:
53991         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
53992         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
53993         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
53995 2011-03-22  Bruno Haible  <bruno@clisp.org>
53997         unictype/bidi*: Rename functions.
53998         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
53999         uc_bidi_class, uc_is_bidi_class): New declarations.
54000         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
54001         uc_bidi_category_byname.
54002         (uc_bidi_category_byname): New function.
54003         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
54004         u_bidi_category_name.
54005         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
54006         (uc_bidi_category_name): New function.
54007         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
54008         uc_bidi_category.
54009         (uc_bidi_category): New function.
54010         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
54011         uc_is_bidi_category. Invoke uc_bidi_class.
54012         (uc_is_bidi_category): New function.
54013         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
54014         instead of uc_bidi_category_byname.
54015         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
54016         instead of uc_bidi_category_name.
54017         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
54018         uc_bidi_category.
54019         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
54020         instead of uc_is_bidi_category.
54022 2011-03-21  Bruno Haible  <bruno@clisp.org>
54024         New module 'unictype/joininggroup-all'.
54025         * modules/unictype/joininggroup-all: New file.
54027         Tests for module 'unictype/joininggroup-of'.
54028         * modules/unictype/joininggroup-of-tests: New file.
54029         * tests/unictype/test-joininggroup_of.c: New file.
54030         * tests/unictype/test-joininggroup_of.h: New file, automatically
54031         generated by gen-uni-tables.
54033         New module 'unictype/joininggroup-of'.
54034         * modules/unictype/joininggroup-of: New file.
54035         * lib/unictype/joininggroup_of.c: New file.
54036         * lib/unictype/joininggroup_of.h: New file, automatically generated by
54037         gen-uni-tables.
54039         Tests for module 'unictype/joininggroup-byname'.
54040         * modules/unictype/joininggroup-byname-tests: New file.
54041         * tests/unictype/test-joininggroup_byname.c: New file.
54043         New module 'unictype/joininggroup-byname'.
54044         * modules/unictype/joininggroup-byname: New file.
54045         * lib/unictype/joininggroup_byname.c: New file.
54046         * lib/unictype/joininggroup_byname.gperf: New file.
54048         Tests for module 'unictype/joininggroup-name'.
54049         * modules/unictype/joininggroup-name-tests: New file.
54050         * tests/unictype/test-joininggroup_name.c: New file.
54052         New module 'unictype/joininggroup-name'.
54053         * modules/unictype/joininggroup-name: New file.
54054         * lib/unictype/joininggroup_name.c: New file.
54055         * lib/unictype/joininggroup_name.h: New file.
54057         New module 'unictype/joiningtype-all'.
54058         * modules/unictype/joiningtype-all: New file.
54060         Tests for module 'unictype/joiningtype-of'.
54061         * modules/unictype/joiningtype-of-tests: New file.
54062         * tests/unictype/test-joiningtype_of.c: New file.
54063         * tests/unictype/test-joiningtype_of.h: New file, automatically
54064         generated by gen-uni-tables.
54066         New module 'unictype/joiningtype-of'.
54067         * modules/unictype/joiningtype-of: New file.
54068         * lib/unictype/joiningtype_of.c: New file.
54069         * lib/unictype/joiningtype_of.h: New file, automatically generated by
54070         gen-uni-tables.
54072         Tests for module 'unictype/joiningtype-byname'.
54073         * modules/unictype/joiningtype-byname-tests: New file.
54074         * tests/unictype/test-joiningtype_byname.c: New file.
54076         New module 'unictype/joiningtype-byname'.
54077         * modules/unictype/joiningtype-byname: New file.
54078         * lib/unictype/joiningtype_byname.c: New file.
54080         Tests for module 'unictype/joiningtype-name'.
54081         * modules/unictype/joiningtype-name-tests: New file.
54082         * tests/unictype/test-joiningtype_name.c: New file.
54084         New module 'unictype/joiningtype-name'.
54085         * modules/unictype/joiningtype-name: New file.
54086         * lib/unictype/joiningtype_name.c: New file.
54088         unictype: Add support for Arabic shaping properties.
54089         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
54090         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
54091         declarations.
54092         (UC_JOINING_GROUP_*): New enumeration values.
54093         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
54094         declarations.
54095         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
54096         (unicode_joining_type): New variable.
54097         (UC_JOINING_GROUP_*): New enumeration values.
54098         (unicode_joining_group): New variable.
54099         (fill_arabicshaping, joining_type_as_c_identifier,
54100         output_joining_type_test, output_joining_type,
54101         joining_group_as_c_identifier, output_joining_group_test,
54102         output_joining_group): New functions.
54103         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
54104         fill_arabicshaping and output_joining_type_test, output_joining_type,
54105         output_joining_group_test, output_joining_group.
54106         Reported by Simon Josefsson.
54108 2011-03-21  Jim Meyering  <meyering@redhat.com>
54110         strftime: fix a bug in yesterday's change
54111         * lib/strftime.c (add): Accommodate width's initial value of -1.
54112         Otherwise, nstrftime would copy uninitialized data into
54113         the result buffer.
54115 2011-03-21  Jim Meyering  <meyering@redhat.com>
54117         tests: add strftime-tests module
54118         * tests/test-strftime.c: New file.
54119         * modules/strftime-tests: New module.
54121 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
54123         strftime: don't assume a byte count fits in 'int'
54124         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
54125         found this problem by static analysis, using gcc -Wstrict-overflow
54126         (GCC 4.5.2, x86-64).  This reported an optimization that depended
54127         on an integer overflow having undefined behavior, but it turns out
54128         that the argument is a size, which might not fit in 'int' anyway,
54130 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
54132         stdio: don't require ignore_value around fwrite
54134         This patch works around libc bug 11959
54135         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
54136         Without this patch, applications must often write
54137         ignore_value (fwrite (...)) even though the ignore_value is
54138         not helpful here.  It's common to write many objects, using
54139         fwrite/printf/etc., and then use ferror to detect output error.
54141         I considered making this patch optional, but decided against it,
54142         because libc is obviously being inconsistent here: there is no
54143         reason libc should insist that user code must inspect fwrite
54144         return's value without also insisting that it inspect printf's,
54145         putchar's, etc.  If user code wants to have a strict style where
54146         all these functions' values are checked (so that ferror need not
54147         be checked), we could add support for that style in a new gnulib
54148         module, but in the meantime it's better to be consistent and to
54149         support common usage.
54151         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
54152         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
54153         that we are compiling in checking mode, and if not C++, and
54154         if not already wrapping fwrite for some other reason.
54155         (fwrite): #define to rpl_fwrite if the latter is defined.
54157 2011-03-20  Bruno Haible  <bruno@clisp.org>
54159         verror: Fix compilation error introduced on 2011-02-13.
54160         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
54161         instead of __attribute__.
54162         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
54164 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
54165             Bruno Haible  <bruno@clisp.org>
54167         socklen: do not depend on sys_socket
54168         While trying to modify Emacs to use gnulib's socklen module,
54169         I discovered a circular dependency: socklen depends on sys_socket
54170         and vice versa.  Emacs can use socklen, but it does not need
54171         sys_socket because it has its own substitute for sys/socket.h.
54172         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
54173         gl_TYPE_SOCKLEN_T.
54174         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
54175         gl_PREREQ_SYS_H_SOCKET.
54176         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
54177         gl_PREREQ_SYS_H_SOCKET.
54178         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
54179         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
54180         * modules/socklen (Depends-on): Do not depend on sys_socket.
54181         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
54183 2011-03-20  Jim Meyering  <meyering@redhat.com>
54185         maint.mk: sort file names *after* new transformation
54186         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
54187         prefix would have led to an unwarranted failure in GNU parted.
54188         Sort after that transformation.
54190 2011-03-19  Jim Meyering  <meyering@redhat.com>
54192         maint.mk: fix po-file syntax-check rule
54193         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
54194         Patch by Bruno Haible.
54196 2011-03-19  Bruno Haible  <bruno@clisp.org>
54198         socklen: Update comment.
54199         * m4/socklen.m4: Update comment about platforms.
54201 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
54202             Bruno Haible  <bruno@clisp.org>
54204         inet_ntop, inet_pton: Simplify.
54205         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
54206         documented to provide socklen_t and we already depend on sys_socket.
54207         * modules/inet_pton (Depends-on): Likewise.
54208         * lib/arpa_inet.in.h: Adjust comment.
54210 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
54211             Bruno Haible  <bruno@clisp.org>
54213         netdb: Simplify.
54214         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
54215         documented to provide socklen_t and we already depend on sys_socket.
54216         * lib/netdb.in.h: Adjust comment.
54218 2011-03-19  Bruno Haible  <bruno@clisp.org>
54220         sys_socket, netdb: Document problem with socklen_t.
54221         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
54222         platforms.
54223         * doc/posix-headers/netdb.texi: Likewise.
54225 2011-03-18  Eric Blake  <eblake@redhat.com>
54227         maint.mk: let po check work in VPATH build
54228         * top/maint.mk (po_file): Allow cfg.mk override.
54229         (sc_po_check): Allow VPATH use.
54230         Reported by Jiri Denemark.
54232 2011-03-16  Jim Meyering  <meyering@redhat.com>
54234         maint.mk: allow fine-grained syntax-check exclusion via Make variables
54235         Before, you would have had to create one .x-sc_ file per rule in order
54236         to exempt offending files.  Now, you may instead use a Make variable --
54237         usually defined in cfg.mk -- whose name identifies the affected rule.
54238         * top/maint.mk (_sc_excl): Define.
54239         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
54240         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
54242 2011-03-13  Bruno Haible  <bruno@clisp.org>
54244         ignore-value tests: Avoid warnings.
54245         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
54246         empty for gcc < 3.4.
54248 2011-03-13  Bruno Haible  <bruno@clisp.org>
54250         passfd: Fix link error on Solaris.
54251         * modules/passfd (Description): Correct.
54252         (Depends-on): Add socketlib.
54253         (Link): New section.
54254         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
54256 2011-03-13  Bruno Haible  <bruno@clisp.org>
54258         passfd: Fix link error on AIX 5.2.
54259         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
54261 2011-03-13  Bruno Haible  <bruno@clisp.org>
54263         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
54264         * lib/sys_socket.in.h: Include <stddef.h>.
54265         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
54266         CMSG_FIRSTHDR. Remove unused variable.
54268 2011-03-13  Bruno Haible  <bruno@clisp.org>
54270         passfd: Fix compilation error on OpenBSD.
54271         * lib/passfd.c: Include <sys/uio.h>.
54273 2011-03-13  Bruno Haible  <bruno@clisp.org>
54275         passfd test: Fix warnings.
54276         * tests/test-passfd.c: Include <sys/wait.h>.
54277         (main): Fix typo.
54279 2011-03-13  Bruno Haible  <bruno@clisp.org>
54281         passfd module, part 4, tweaks.
54282         * tests/test-passfd.c: Reorder includes.
54283         (main): Fix perror and printf calls.
54285 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
54287         passfd module, part 4.
54288         * modules/passfd-tests: New file.
54289         * tests/test-passfd.c: New file.
54291 2011-03-13  Jim Meyering  <meyering@redhat.com>
54293         Makefile: rely on GNU make; derive syntax-check rule names
54294         Rather than requiring that each sc_ rule be listed as a dependent
54295         of "check", use features of GNU make to derive the list.
54296         * Makefile (syntax-check-rules): Define.
54297         (check): Depend on the new variable, not the hard-coded list.
54299 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
54300             Bruno Haible  <bruno@clisp.org>
54302         passfd module, part 3.
54303         * lib/passfd.h (recvfd): Add a flags argument.
54304         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
54305         (recvfd): Add a flags argument.
54306         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
54307         exists.
54308         * modules/passfd (Depends-on): Add cloexec.
54309         Suggested by Eric Blake.
54311 2011-03-13  Bruno Haible  <bruno@clisp.org>
54313         passfd module, part 2, tweaks.
54314         * modules/passfd (Files): Reorder.
54315         (Depends-on): Remove errno.
54316         (Include): Remove <sys/socket.h>, <sys/un.h>.
54317         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
54318         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
54319         specification header. Include <sys/socket.h> always. Don't include
54320         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
54321         (sendfd): Clarify that it sets errno when it fails.
54322         (recvfd): Fix specification.
54324 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
54326         passfd module, part 2.
54327         * modules/passfd: New file.
54328         * lib/passfd.h: New file.
54329         * lib/passfd.c: New file.
54331 2011-03-12  Bruno Haible  <bruno@clisp.org>
54333         wcswidth, mbswidth: Avoid integer overflow.
54334         * lib/wcswidth.c: Include <limits.h>.
54335         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
54336         * lib/mbswidth.c: Include <limits.h>.
54337         (mbsnwidth): Avoid 'int' overflow.
54338         Reported by Jim Meyering.
54340 2011-03-12  Bruno Haible  <bruno@clisp.org>
54342         futimens, utimensat: Avoid endless recursion on Solaris 10.
54343         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
54344         Solaris.
54345         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
54346         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
54348 2011-03-11  Jim Meyering  <meyering@redhat.com>
54350         maint.mk: relax a regexp to accommodate other formatting styles
54351         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
54352         between "ngettext" and the following "(".
54354 2011-03-11  Pádraig Brady  <P@draigBrady.com>
54356         maint.mk: suppress a false positive warning
54357         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
54358         diagnostics are marked with ngettext.
54360 2011-03-10  Eric Blake  <eblake@redhat.com>
54362         wchar: add explicit dependencies, for Tru64
54363         * modules/mbmemcasecoll (Depends-on): Add wchar.
54364         * modules/mbtowc (Depends-on): Likewise.
54365         * modules/vasnprintf (Depends-on): Likewise.
54366         * modules/unistdio/u-printf-args (Depends-on): Likewise.
54367         * modules/wctomb (Depends-on): Likewise.
54368         Reported by Peter O'Gorman.
54370 2011-03-08  Bruno Haible  <bruno@clisp.org>
54372         passfd module, part 1, tweaks.
54373         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
54374         Improve indentation. Improve AC_MSG_CHECKING messages.
54375         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
54376         gl_SOCKET_FAMILIES.
54378 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
54380         passfd module, part 1.
54381         * m4/afunix.m4: New file.
54382         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
54383         sockets.
54385 2011-03-08  Bruno Haible  <bruno@clisp.org>
54387         regex-quote: New API.
54388         * lib/regex-quote.h: Include <stdbool.h>.
54389         (struct regex_quote_spec): New type.
54390         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
54391         New declarations.
54392         (regex_quote_length, regex_quote_copy, regex_quote): Take a
54393         'const struct regex_quote_spec *' argument.
54394         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
54395         (pcre_special): New constant.
54396         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
54397         New functions.
54398         (regex_quote_length, regex_quote_copy, regex_quote): Take a
54399         'const struct regex_quote_spec *' argument.
54400         * modules/regex-quote (Depends-on): Add stdbool.
54401         * tests/test-regex-quote.c (check): Update for new API. Add test for
54402         anchored results.
54403         * NEWS: Mention the API change.
54404         Reported by Reuben Thomas and Eric Blake.
54406 2011-03-06  Bruno Haible  <bruno@clisp.org>
54408         regex-quote: Fix creation of POSIX extended regular expressions.
54409         * lib/regex-quote.c (ere_special): Add grouping and alternation
54410         operators.
54412 2011-03-05  Bruno Haible  <bruno@clisp.org>
54414         doc: Improve doc regarding autopoint vs. gnulib.
54415         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
54416         disable autopoint while running autoreconf.
54417         Suggested by Ralf Wildenhues.
54419 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54421         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
54422         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
54424 2011-03-03  Bruce Korb  <bkorb@gnu.org>
54426         parse-duration: remove xalloc.h dependency
54427         * lib/parse-duration.c (parse_period): handle NULL return from
54428         strdup instead of calling xstrdup().
54429         * modules/parse-duration: remove "xalloc" dependency
54431 2011-03-03  Matthew Booth  <mbooth@redhat.com>
54433         bootstrap: honor m4_base when running aclocal
54434         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
54436 2011-03-02  Jim Meyering  <meyering@redhat.com>
54438         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
54439         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
54440         on request from Matt Booth.
54442 2011-03-01  Eric Blake  <eblake@redhat.com>
54444         test-link: work on Hurd
54445         * tests/test-link.h (test_link): Hurd rejects linking directories
54446         with EISDIR instead of the POSIX-mandated EPERM.
54448 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
54450         stdio: simplify by moving files to printf-posix, sigpipe
54451         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
54452         since this symbol is needed only if printf is replaced.
54453         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
54454         Require gl_ASM_SYMBOL_PREFIX.
54455         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
54456         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
54457         (Depends-on): Add 'raise'.
54458         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
54459         * modules/stdio (Files): Remove lib/stdio-write.c,
54460         m4/asm-underscore.m4.
54461         (Depends-on): Remove 'raise'.
54463         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
54464         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
54465         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
54466         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
54468 2011-02-28  Bruno Haible  <bruno@clisp.org>
54470         localcharset: Assume ANSI C behaviour of free().
54471         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
54472         calling free().
54473         Suggested by Simon Josefsson <simon@josefsson.org>.
54475 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
54476             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
54477             Bruno Haible  <bruno@clisp.org>  (tiny change)
54479         On Cygwin, use /proc file system instead of win32 API.
54480         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
54481         Win32 file names.
54482         (DllMain): Simplify by removing Cygwin specific code.
54483         (find_shared_library_fullname): Use Linux specific implementation also
54484         for Cygwin.
54485         (get_shared_library_fullname): Update accordingly.
54486         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
54487         Win32 file names.
54488         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
54489         Cygwin specific code.
54491 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
54492             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
54494         Fix OpenMP flag detection for various Fortran compilers.
54495         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
54496         OpenMP-conditional compilation construct, to force compile
54497         failure with missing OpenMP flag.
54498         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
54500 2011-02-25  Eric Blake  <eblake@redhat.com>
54502         strstr: expand test coverage
54503         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
54504         compilation.
54505         * tests/test-memmem.c (main): Duplicate tests.
54506         * tests/test-strcasestr.c (main): Likewise.
54507         * tests/test-c-strcasestr.c (main): Likewise.
54509 2011-02-25  Jim Meyering  <meyering@redhat.com>
54511         maint.mk: detect missing-NL-at-EOF, too
54512         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
54513         it also detects when a file lacks a newline at EOF.
54514         (require_exactly_one_NL_at_EOF_): Renamed from
54515         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
54516         since people may well have .x-sc_... file names tied to the
54517         existing name.  Suggested by Eric Blake.
54519 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
54521         dirname: move m4/dos.m4 functionality into lib/dosname.h
54523         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
54524         extracts symbols from it, puts them into config.h; but it's much
54525         easier to use the symbols directly.  filename.h already does this,
54526         but it disagrees with dos.m4 in some respects.  This patch
54527         introduces a different include file dosname.h that packages up
54528         dos.m4, and then later we can work on merging filename.h and
54529         dosname.h.  Applications that need only the easy-to-configure
54530         symbols should consider including dosname.h rather than dirname.h.
54531         * NEWS: Mention incompatible changes.
54532         * m4/dos.m4: Remove.
54533         * lib/dosname.h, modules/dosname: New files.
54534         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
54535         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
54536         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
54537         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
54538         Include dosname.h, not dirname.h.
54539         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
54540         Include dosname.h, for definitions of symbols like ISSLASH
54541         that used to be in config.h.
54542         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
54543         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
54544         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
54545         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
54546         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
54547         * modules/rmdir (Files): Likewise.
54548         * modules/stat (Files): Likewise.
54549         * modules/unlink (Files): Likewise.
54550         * modules/dirname-lgpl (Depends-on): Add dosname.
54551         * modules/lstat (Depends-on): Likewise.
54552         * modules/openat (Depends-on): Likewise.
54553         * modules/rmdir (Depends-on): Likewise.
54554         * modules/savewd (Depends-on): Likewise.
54555         * modules/stat (Depends-on): Likewise.
54556         * modules/unlink (Depends-on): Likewise.
54557         * modules/openat (Depends-on): Remove dirname-lgpl.
54558         * modules/savewd (Depends-on): Likewise.
54559         * tests/test-dirname.c: Do not use removed symbols like
54560         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
54561         the remaining symbols, e.g., ISSLASH ('\\').
54563 2011-02-25  Eric Blake  <eblake@redhat.com>
54565         strstr: revert patches that introduced bug and pessimization
54566         * lib/str-two-way.h: Add another reference.
54567         (two_way_short_needle, two_way_long_needle): Revert changes from
54568         2011-02-24; they pessimize search speed.
54569         (critical_factorization): Partially revert changes from
54570         2010-06-22; they violate the requirement that the left half of the
54571         needle be smaller than the period of the needle.
54573 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
54575         filenamecat: remove unnecessary dependency on dirname-lgpl
54576         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
54577         is no direct dependency, just an indirect one via filenamecat-lgpl.
54579         remove: remove unnecessary use of m4/dos.m4
54580         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
54581         * modules/remove (FILES): Remove m4/dos.m4.
54583         * lib/openat-proc.c: Don't include dirname.h; not needed.
54585         backupfile: remove unnecessary use of m4/dos.m4
54586         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
54587         of its symbols are used by the backupfile code.  backupfile.c does
54588         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
54589         for the rare case of programs that want all their backup file
54590         names to live within 8+3 limits, and dos.m4 doesn't address that.
54591         * modules/backupfile (Files): Remove m4/dos.m4.
54593 2011-02-24  Jim Meyering  <meyering@redhat.com>
54595         strstr: fix a bug whereby strstr would mistakenly return NULL
54596         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
54597         in period calculation.
54598         (two_way_long_needle): Likewise.
54599         The original problem was reported by Mike Stump in
54600         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
54601         Ralf Wildenhues provided the short needle and haystack.
54602         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
54603         Add a more involved test to trigger the bug in two_way_long_needle.
54605 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
54607         gnulib-tool: remove use of bold display in help screen
54608         * gnulib-tool (func_usage): Do not use bold display anymore in the
54609         help screen.  That was just meant to be a temporary emphasis for a
54610         backward-incompatible change.
54612 2011-02-23  Bruno Haible  <bruno@clisp.org>
54614         Fix misindentation of preprocessor directives.
54615         * lib/argp-namefrob.h: Reindent preprocessor directives.
54616         * lib/getopt_int.h (struct _getopt_data): Likewise.
54617         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
54618         * lib/vasnprintf.c (decode_long_double): Likewise.
54619         * tests/test-argmatch.c: Insert blank lines, for clarity.
54620         * tests/test-exclude.c: Likewise.
54622 2011-02-22  Bruno Haible  <bruno@clisp.org>
54624         ioctl: Fix for MacOS X in 64-bit mode.
54625         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
54626         value.
54627         Suggested by Eric Blake.
54628         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
54630 2011-02-22  Jim Meyering  <meyering@redhat.com>
54632         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
54633         * Makefile (sc_cpp_indent_check): Don't limit the check to files
54634         in lib/.
54636 2011-02-22  Eric Blake  <eblake@redhat.com>
54638         maint: avoid any CDPATH issue
54639         * Makefile (sc_cpp_indent_check): Anchor cd argument.
54641         maint: adjust cpp indentation for my modules, as well
54642         * Makefile (sc_cpp_indent_check): Add my name.
54643         * lib/fbufmode.c: Filter through cppi.
54644         * lib/fpurge.c: Likewise.
54645         * lib/freadable.c: Likewise.
54646         * lib/freading.c: Likewise.
54647         * lib/fwritable.c: Likewise.
54648         * lib/fwriting.c: Likewise.
54649         * lib/sigaction.c: Likewise.
54651 2011-02-22  Jim Meyering  <meyering@redhat.com>
54653         maint: adjust cpp indentation to reflect nesting depth
54654         I.e., in a block of code that begins with an unnested "#if",
54655         put one space between the "#" in column 1 and following token.
54656         For example,
54657         -#include <sys/vfs.h>
54658         +# include <sys/vfs.h>
54659         Do this only in .c files that are part of a module I maintain.
54660         * lib/linkat.c: Filter through cppi.
54661         * lib/nanosleep.c: Likewise.
54662         * lib/openat.c: Likewise.
54663         * lib/openat-die.c: Likewise.
54664         * lib/dup3.c: Likewise.
54665         * lib/fchownat.c: Likewise.
54666         * lib/flock.c: Likewise.
54667         * lib/fsync.c: Likewise.
54668         * lib/fts.c: Likewise.
54669         * lib/getpass.c: Likewise.
54670         * lib/gettimeofday.c: Likewise.
54671         * lib/userspec.c: Likewise.
54672         * Makefile (sc_cpp_indent_check): New rule, to check this.
54674 2011-02-22  Bruno Haible  <bruno@clisp.org>
54676         New module 'wctomb'.
54677         * lib/stdlib.in.h (wctomb): New declaration.
54678         * lib/wctomb.c: New file.
54679         * lib/wctomb-impl.h: New file.
54680         * m4/wctomb.m4: New file.
54681         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
54682         REPLACE_WCTOMB.
54683         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
54684         REPLACE_WCTOMB.
54685         * modules/wctomb: New file.
54686         * tests/test-stdlib-c++.cc: Test signature of wctomb.
54687         * doc/posix-functions/wctomb.texi: Mention the new module.
54688         * modules/wctob (Depends-on): Add wctomb.
54690 2011-02-22  Bruno Haible  <bruno@clisp.org>
54692         New module 'mbtowc'.
54693         * lib/stdlib.in.h (mbtowc): New declaration.
54694         * lib/mbtowc.c: New file.
54695         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
54696         * m4/mbtowc.m4: New file.
54697         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
54698         REPLACE_MBTOWC.
54699         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
54700         REPLACE_MBTOWC.
54701         * modules/mbtowc: New file.
54702         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
54703         * doc/posix-functions/mbtowc.texi: Mention the new module.
54704         * modules/btowc (Depends-on): Add mbtowc.
54706 2011-02-22  Bruno Haible  <bruno@clisp.org>
54708         wcrtomb: Add more tests for native Windows platforms.
54709         * tests/test-wcrtomb-w32-1.sh: New file.
54710         * tests/test-wcrtomb-w32-2.sh: New file.
54711         * tests/test-wcrtomb-w32-3.sh: New file.
54712         * tests/test-wcrtomb-w32-4.sh: New file.
54713         * tests/test-wcrtomb-w32-5.sh: New file.
54714         * tests/test-wcrtomb-w32.c: New file.
54715         * modules/wcrtomb-tests (Files): Add them.
54716         (Makefile.am): Arrange to run these tests.
54717         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
54718         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
54720 2011-02-20  Bruno Haible  <bruno@clisp.org>
54722         wcrtomb: Enhance test.
54723         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
54725 2011-02-20  Bruno Haible  <bruno@clisp.org>
54727         mbrtowc: Tiny optimization.
54728         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
54730 2011-02-20  Jim Meyering  <meyering@redhat.com>
54732         test-exclude.c: remove unmatched #endif
54733         * tests/test-exclude.c: Remove stray #endif, left over from
54734         the change of a week ago.
54736 2011-02-19  Jim Meyering  <meyering@redhat.com>
54738         git-version-gen: skip "-dirty" check when appropriate
54739         * build-aux/git-version-gen: Don't run any git commands when the
54740         version string comes from .tarball-version.  Prior to this, we
54741         would run git update-index --refresh even from a just-unpacked
54742         tarball directory, and that could affect a .git/ directory in a
54743         parent of the build directory.  Reported by Mike Frysinger.
54745 2011-02-19  Bruno Haible  <bruno@clisp.org>
54747         unictype/property-byname: Reduce the size of the 'data' segment.
54748         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
54750 2011-02-19  Bruno Haible  <bruno@clisp.org>
54752         unictype/scripts: Reduce the size of the 'data' segment.
54753         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
54754         '%pic'.
54755         * lib/unictype/scripts_byname.gperf: Regenerated.
54757 2011-02-19  Bruno Haible  <bruno@clisp.org>
54759         stdint: Update documentation.
54760         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
54762 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
54764         stdint: omit redundant check for wchar.h
54765         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
54766         always tests whether wchar.h exists, so remove the now-redundant test.
54768 2011-02-18  Bruno Haible  <bruno@clisp.org>
54770         stdint: Cut dependency to module 'wchar'.
54771         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
54772         include the necessary prerequisites.
54773         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
54774         * modules/stdint (Depends-on): Remove wchar.
54775         (Makefile.am): Substitute HAVE_WCHAR_H.
54776         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
54778 2011-02-18  Eric Blake  <eblake@redhat.com>
54780         longlong: skip, rather than fail, on cross-compilation
54781         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
54782         when cross-compiling; regression from 2011-02-16.
54784 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
54786         * NEWS: Mention 2011-02-08 change to stdlib.
54788 2011-02-17  Bruno Haible  <bruno@clisp.org>
54790         getloadavg: Add comments about platforms.
54791         * m4/getloadavg.m4: Add comment.
54792         * lib/getloadavg.c: Likewise.
54794 2011-02-17  Bruno Haible  <bruno@clisp.org>
54796         getloadavg: Fix link error on Solaris 2.6.
54797         * modules/getloadavg (Link): New section.
54798         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
54799         linking test-getloadavg.
54800         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
54801         getloadavg.
54803 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
54805         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
54806         It was 'int', but this doesn't match the IRIX 6.5 manual.
54807         Suggested by Bruno Haible in
54808         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00207.html>.
54810 2011-02-17  Bruno Haible  <bruno@clisp.org>
54812         havelib: Fix comments.
54813         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
54814         change.
54816 2011-02-17  Bruno Haible  <bruno@clisp.org>
54818         havelib: Update config.rpath.
54819         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
54821 2011-02-17  Bruno Haible  <bruno@clisp.org>
54823         getloadavg test: Add some plausibility checks.
54824         * tests/test-getloadavg.c (check_avg): Print a warning when the value
54825         is improbable.
54827 2011-02-16  Eric Blake  <eblake@redhat.com>
54829         maintainer-makefile: make syntax-check a no-op from tarballs
54830         * top/maint.mk (no-vc-detected): New rule.
54831         (local-checks-available): Use it to avoid hanging if someone tries
54832         'make syntax-check' from a tarball.  Also append to any non-syntax
54833         checks already defined in cfg.mk.
54835 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
54837         longlong: tune, particularly for common case of c99
54839         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
54840         or running anything if c99, or if unsigned long long int does not
54841         work.  In either case, we know the answer without further tests.
54842         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
54843         it at most once, and use its results for both long long int and
54844         unsigned long long int.  This is more likely to be efficient in
54845         the common case where the program wants to check for both long
54846         long int and unsigned long long int.
54847         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
54848         since the answer is already known.
54850 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
54852         getloadavg: set errno
54853         * lib/getloadavg.c: Set errno when returning -1.  If no other
54854         error number looks appropriate, set it to ENOSYS if the getloadavg
54855         looks like it can't possibly ever work, ENOTSUP otherwise.
54856         Suggested by Bruno Haible in
54857         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00187.html>.
54859         getloadavg: trim unused parts and speed up 'configure'
54860         * NEWS: Document this.
54861         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
54862         always compiled if getloadavg is absent.
54863         Move test code to ...
54864         * tests/test-getloadavg.c: New file, containing previous
54865         contents of test from lib/getloadavg.c.  It also contains
54866         suggestions by Bruno Haible in
54867         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00186.html>.
54868         * modules/getloadavg-tests: New file.
54869         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
54870         Do tests in the same order as they're needed for getloadavg.c.
54871         Omit setgid-related tests that generate symbols KMEM_GROUP,
54872         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
54873         Do only the tests that are needed to see whether the system has
54874         getloadavg, moving the other tests into ...
54875         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
54876         NLIST_NAME_UNION; nobody should be using it.  Do not define
54877         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
54878         relevant, as the user of this module shouldn't care how getloadavg
54879         is implemented.
54881         getloadavg: omit unused var
54882         * lib/getloadavg.c (getloadavg): Omit unused local variable.
54884 2011-02-15  Jim Meyering  <meyering@redhat.com>
54886         doc: update users.txt
54887         * users.txt: Update iwhd's URL.
54889 2011-02-13  Bruno Haible  <bruno@clisp.org>
54891         Consistent macro naming for macros that use GCC __attribute__.
54892         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
54893         _ATTRIBUTE_NONNULL_.
54894         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
54895         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
54896         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
54897         ATTRIBUTE_DEPRECATED.
54898         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
54899         ATTRIBUTE_NORETURN.
54900         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
54901         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
54902         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
54903         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
54904         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
54905         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
54906         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
54907         ATTRIBUTE_SENTINEL.
54908         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
54909         ATTRIBUTE_RETURN_CHECK.
54910         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
54911         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
54912         ATTRIBUTE_NORETURN.
54913         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
54914         Reported by Paul Eggert.
54916 2011-02-13  Bruno Haible  <bruno@clisp.org>
54918         Don't interfere with a program's definition of __attribute__.
54919         * lib/argp.h (__attribute__): Remove definition.
54920         (_GL_ATTRIBUTE_FORMAT): New macro.
54921         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
54922         * lib/argp-fmtstream.h (__attribute__): Remove definition.
54923         (_GL_ATTRIBUTE_FORMAT): New macro.
54924         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
54925         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
54926         GCC 3 or newer.
54927         * lib/error.h (__attribute__): Remove definition.
54928         (_GL_ATTRIBUTE_FORMAT): New macro.
54929         (error, error_at_line): Use it.
54930         * lib/hash.h (__attribute__): Remove definition.
54931         (ATTRIBUTE_WUR): Update definition. Define always.
54932         * lib/openat.h (__attribute__): Remove definition.
54933         (ATTRIBUTE_NORETURN): Update definition. Define always.
54934         * lib/sigpipe-die.h (__attribute__): Remove definition.
54935         (ATTRIBUTE_NORETURN): Update definition. Define always.
54936         * lib/vasnprintf.h (__attribute__): Remove definition.
54937         (_GL_ATTRIBUTE_FORMAT): New macro.
54938         (asnprintf, vasnprintf): Use it.
54939         * lib/xalloc.h (__attribute__): Remove definition.
54940         (ATTRIBUTE_NORETURN): Update definition. Define always.
54941         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
54942         * lib/xmemdup0.h (__attribute__): Remove definition.
54943         (ATTRIBUTE_NORETURN): Update definition. Define always.
54944         * lib/xprintf.h (__attribute__): Remove definition.
54945         (_GL_ATTRIBUTE_FORMAT): New macro.
54946         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
54947         * lib/xstrtol.h (__attribute__): Remove definition.
54948         (ATTRIBUTE_NORETURN): Update definition. Define always.
54949         * lib/xvasprintf.h (__attribute__): Remove definition.
54950         (_GL_ATTRIBUTE_FORMAT): New macro.
54951         (xasprintf, xvasprintf): Use it.
54952         * tests/test-argmatch.c (__attribute__): Remove definition.
54953         (ATTRIBUTE_NORETURN): Update definition. Define always.
54954         * tests/test-exclude.c (__attribute__): Remove definition.
54955         (ATTRIBUTE_NORETURN): Update definition. Define always.
54956         Reported by Paul Eggert.
54958 2011-02-13  Bruno Haible  <bruno@clisp.org>
54960         mbrtowc: Add more tests for native Windows platforms.
54961         * tests/test-mbrtowc-w32-1.sh: New file.
54962         * tests/test-mbrtowc-w32-2.sh: New file.
54963         * tests/test-mbrtowc-w32-3.sh: New file.
54964         * tests/test-mbrtowc-w32-4.sh: New file.
54965         * tests/test-mbrtowc-w32-5.sh: New file.
54966         * tests/test-mbrtowc-w32.c: New file.
54967         * modules/mbrtowc-tests (Files): Add them.
54968         (Makefile.am): Arrange to run these tests.
54969         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
54970         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
54972 2011-02-13  Bruno Haible  <bruno@clisp.org>
54974         mbrtowc: Work around native Windows bug.
54975         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
54976         guess when no suitable locale for testing was found.
54977         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
54979 2011-02-13  Bruno Haible  <bruno@clisp.org>
54981         mbsinit: Work around mingw bug.
54982         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
54983         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
54984         Windows.
54985         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
54987 2011-02-13  Bruno Haible  <bruno@clisp.org>
54989         mbsinit: Don't crash for a NULL argument.
54990         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
54991         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
54993 2011-02-13  Bruno Haible  <bruno@clisp.org>
54995         Don't interfere with a program's definition of __attribute__.
54996         * lib/stdio.in.h (__attribute__): Remove definition.
54997         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
54998         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
54999         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
55000         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
55001         * lib/string.in.h (__attribute__): Remove definition.
55002         Reported by Paul Eggert.
55004 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
55006         stdlib: don't get in the way of non-GCC __attribute__
55007         See thread starting at
55008         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00161.html>.
55009         Revert previous stdlib change, installing the following instead:
55010         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
55011         to get in the way of a non-GCC compiler that supports __attribute__.
55012         (_GL_ATTRIBUTE_RETURN): New macro.
55013         (_Exit): Use it instead of __attribute__.
55015 2011-02-12  Bruno Haible  <bruno@clisp.org>
55017         quotearg test: Avoid test failure on mingw.
55018         * tests/test-quotearg.sh: Convert the locale identifier from native
55019         Windows syntax to Unix syntax.
55021 2011-02-12  Bruno Haible  <bruno@clisp.org>
55023         setlocale: Prefer gnulib's override over libintl's override.
55024         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
55025         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
55026         GNULIB_defined_setlocale is set.
55028 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
55030         stdlib: support non-GCC __attribute__
55032         Fix a serious and tricky problem encountered when attempting to
55033         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
55034         5.5, but it crashed due to memory corruption on Solaris 10 with
55035         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
55036         bits that are otherwise zero.  This tagging is optional inside
55037         Emacs but is preferred and is used when __attribute__ ((__aligned
55038         (8))) works, as it does with both recent-enough GCC and with Sun C
55039         5.11.  However, Sun C 5.11 is not GCC and does not #define
55040         __GNUC__ and __GNUC_MINOR__.
55042         When I added the getloadavg module to Emacs, it brought in
55043         stdlib.in.h, which contained this fragment:
55045            #ifndef __attribute__
55046            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
55047            #  define __attribute__(Spec)   /* empty */
55048            # endif
55049            #endif
55051         When files that include <stdlib.h> were compiled with Sun C 5.11,
55052         the above code disabled __attribute__ ((__aligned (8))), which
55053         caused variables to not be properly aligned, which eventually led
55054         to the pointer corruption mentioned above.  (This was a bit hard
55055         to diagnose, unfortunately.)
55057         Several "#define __attribute__(X) /* empty */" code snippets need
55058         to be eradicated from Gnulib to work with non-GCC compilers that
55059         support __attribute__.  The Autoconf way to do this is to test for
55060         each kind of attribute that we want support for, and selectively
55061         enable that in source code.
55063         Fix this problem just for stdlib.h, by adding a test for the
55064         __noreturn__ attribute, and change stdlib.in.h to use that test
55065         when needed.  This technique can be easily generalized to the
55066         other *.in.h files and attributes, and a similar technique can be
55067         used for *.h and *.c files.  This patch is enough to solve the
55068         problem for Emacs + getloadavg, and I thought I'd publish it for
55069         feedback before undertaking further, similar fixes in other
55070         modules.
55072         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
55073         because it's not needed for stdlib.h.  It merely substitutes the
55074         value directly into stdlib.h.  We may well need to #define it, or
55075         similar symbols, for other modules, but it's nice to also have an
55076         option to not #define it for applications like Emacs that do not
55077         need it.
55079         * lib/stdlib.in.h (__attribute__): Do not #define.
55080         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
55081         be defined only if the _Exit module is also used.
55082         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
55083         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
55084         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
55085         platforms.
55086         * modules/_Exit (Files): Add m4/attribute.m4.
55087         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
55088         * m4/attribute.m4: New file.
55090 2011-02-12  Bruno Haible  <bruno@clisp.org>
55092         wcsrtombs: Work around bug on native Windows.
55093         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
55094         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
55095         instead of len.
55096         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
55098 2011-02-12  Bruno Haible  <bruno@clisp.org>
55100         mbsrtowcs: Work around bug on native Windows.
55101         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
55102         against mingw bug.
55103         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
55105 2011-02-12  Bruno Haible  <bruno@clisp.org>
55107         Avoid setlocale bugs in tests.
55108         * modules/btowc (Dependencies): Add setlocale.
55109         * modules/c-strcase (Dependencies): Likewise.
55110         * modules/mbmemcasecmp (Dependencies): Likewise.
55111         * modules/mbmemcasecoll (Dependencies): Likewise.
55112         * modules/mbrtowc (Dependencies): Likewise.
55113         * modules/mbscasecmp (Dependencies): Likewise.
55114         * modules/mbscasestr (Dependencies): Likewise.
55115         * modules/mbschr (Dependencies): Likewise.
55116         * modules/mbscspn (Dependencies): Likewise.
55117         * modules/mbsinit (Dependencies): Likewise.
55118         * modules/mbsncasecmp (Dependencies): Likewise.
55119         * modules/mbsnrtowcs (Dependencies): Likewise.
55120         * modules/mbspbrk (Dependencies): Likewise.
55121         * modules/mbspcasecmp (Dependencies): Likewise.
55122         * modules/mbsrchr (Dependencies): Likewise.
55123         * modules/mbsrtowcs (Dependencies): Likewise.
55124         * modules/mbsspn (Dependencies): Likewise.
55125         * modules/mbsstr (Dependencies): Likewise.
55126         * modules/nl_langinfo (Dependencies): Likewise.
55127         * modules/quotearg (Dependencies): Likewise.
55128         * modules/unicase/locale-language (Dependencies): Likewise.
55129         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
55130         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
55131         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
55132         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
55133         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
55134         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
55135         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
55136         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
55137         * modules/vasnprintf-posix (Dependencies): Likewise.
55138         * modules/wcrtomb (Dependencies): Likewise.
55139         * modules/wcsnrtombs (Dependencies): Likewise.
55140         * modules/wcsrtombs (Dependencies): Likewise.
55142 2011-02-12  Bruno Haible  <bruno@clisp.org>
55144         setlocale: Workaround native Windows bug.
55145         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
55146         succeeds but sets LC_CTYPE to "C", report a failure.
55147         * tests/test-setlocale2.sh: New file.
55148         * tests/test-setlocale2.c: New file.
55149         * modules/setlocale-tests (Files): Add the new files.
55150         (Makefile.am): Enable test-setlocale2.sh test.
55151         * doc/posix-functions/setlocale.texi: Mention workaround.
55153 2011-02-11  Bruno Haible  <bruno@clisp.org>
55155         Tests for module 'setlocale'.
55156         * modules/setlocale-tests: New file.
55157         * tests/test-setlocale1.sh: New file.
55158         * tests/test-setlocale1.c: New file.
55160         New module 'setlocale'.
55161         * lib/locale.in.h (setlocale): New declaration.
55162         * lib/setlocale.c: New file, based on
55163         gettext/gettext-runtime/intl/setlocale.c.
55164         * m4/setlocale.m4: New file.
55165         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
55166         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
55167         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
55168         REPLACE_SETLOCALE.
55169         * modules/setlocale: New file.
55170         * tests/test-locale-c++.cc: Test the declaration of setlocale.
55171         * doc/posix-functions/setlocale.texi: Mention the new module.
55173 2011-02-11  Bruno Haible  <bruno@clisp.org>
55175         Prepare for locale dependent tests on mingw.
55176         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
55177         because it has the wrong locale encoding.
55178         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
55179         French_France.1252 instead of "fr".
55180         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
55181         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
55182         because it has the wrong locale encoding.
55183         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
55184         native Windows, try Turkish_Turkey.65001.
55185         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
55186         Chinese_China.54936.
55188         Prepare for locale dependent tests on mingw.
55189         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
55190         differently.
55191         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
55192         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
55193         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
55194         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
55196 2011-02-11  Eric Blake  <eblake@redhat.com>
55198         strptime: avoid compiler warnings
55199         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
55200         compiler warnings about dead code.
55201         Reported by Daniel P. Berrange.
55203 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
55205         doc: update users.txt
55206         * users.txt: Add rcs.
55208 2011-02-10  John W. Eaton  <jwe@gnu.org>
55210         doc: update users.txt
55211         * users.txt: Add octave.
55213 2011-02-10  Jim Meyering  <meyering@redhat.com>
55215         doc: update users.txt
55216         * users.txt: Add iwhd.
55218 2011-02-09  Bruno Haible  <bruno@clisp.org>
55220         gnulib-tool: Make copyright notice adjustment more robust.
55221         * gnulib-tool (func_import): In sed_transform_main_lib_file,
55222         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
55223         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
55224         License".
55225         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
55227 2011-02-06  Bruno Haible  <bruno@clisp.org>
55229         New module 'towctrans'.
55230         * modules/towctrans: New file.
55231         * lib/wctype.in.h (towctrans): New declaration.
55232         * lib/towctrans.c: New file.
55233         * lib/towctrans-impl.h: New file.
55234         * m4/towctrans.m4: New file.
55235         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
55236         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
55237         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
55238         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
55239         * doc/posix-functions/towctrans.texi: Mention the new module.
55241 2011-02-06  Bruno Haible  <bruno@clisp.org>
55243         New module 'wctrans'.
55244         * modules/wctrans: New file.
55245         * lib/wctype.in.h (wctrans): New declaration.
55246         * lib/wctrans.c: New file.
55247         * lib/wctrans-impl.h: New file.
55248         * m4/wctrans.m4: New file.
55249         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
55250         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
55251         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
55252         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
55253         * doc/posix-functions/wctrans.texi: Mention the new module.
55255 2011-02-06  Bruno Haible  <bruno@clisp.org>
55257         New module 'iswctype'.
55258         * modules/iswctype: New file.
55259         * lib/wctype.in.h (iswctype): New declaration.
55260         * lib/iswctype.c: New file.
55261         * lib/iswctype-impl.h: New file.
55262         * m4/iswctype.m4: New file.
55263         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
55264         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
55265         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
55266         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
55267         * doc/posix-functions/iswctype.texi: Mention the new module and the
55268         HP-UX 11.00 problem.
55270 2011-02-06  Bruno Haible  <bruno@clisp.org>
55272         New module 'wctype'.
55273         * modules/wctype: Change to represent the wctype() substitute.
55274         * lib/wctype.in.h (wctype): New declaration.
55275         * lib/wctype.c: New file.
55276         * lib/wctype-impl.h: New file.
55277         * m4/wctype.m4: New file.
55278         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
55279         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
55280         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
55281         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
55282         * doc/posix-functions/wctype.texi: Mention the new module and the
55283         HP-UX 11.00 problem.
55285 2011-02-06  Bruno Haible  <bruno@clisp.org>
55287         wctype-h: Ensure wctype_t and wctrans_t are defined.
55288         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
55289         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
55290         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
55291         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
55292         HAVE_WCTRANS_T.
55293         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
55295 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
55297         flock: fix license typo
55299         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
55300         omitted.
55302 2011-02-08  Bruno Haible  <bruno@clisp.org>
55304         Split large sed scripts, for HP-UX sed.
55305         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
55306         to avoid HP-UX limit of 99 commands, in the near future.
55307         * modules/stdlib (Makefile.am): Likewise.
55308         * modules/unistd (Makefile.am): Likewise.
55309         * modules/wchar (Makefile.am): Likewise.
55310         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
55311         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
55312         <http://lists.gnu.org/r/bug-gnulib/2010-01/msg00216.html>.
55314 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
55315             Bruno Haible  <bruno@clisp.org>
55317         stdlib: improve random_r modularization
55318         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
55319         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
55320         you also need the random_r module to get this material right.
55321         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
55322         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
55323         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
55325 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
55327         stdlib: don't depend on stdint
55328         * lib/stdlib.in.h: Don't include <stdint.h> merely because
55329         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
55330         be independent of whether stdint.h is needed.
55331         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
55332         here, instead of ...
55333         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
55334         struct random_data should be using the random_r module, not just
55335         the stdlib module (which wouldn't make sense: what package needs
55336         just struct random_data without also needing random_r?).
55337         * modules/stdlib (Depends-on): Remove stdint.
55339         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
55340         See the thread rooted at
55341         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00090.html>.
55342         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
55343         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
55344         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
55345         __VMS)); previously it was always included (via fcntl--.h).
55346         (getloadavg): Do not use c_strtod.  Instead, approximate it by
55347         hand; this is good enough for load averages.  Also, do not use
55348         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
55349         flags directly if available and don't bother otherwise.  (Packages
55350         that need the extra reliability should use the modules that define
55351         these flags on older platforms that lack them.)
55352         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
55353         fcntl-safer.
55355 2011-02-08  Jim Meyering  <meyering@redhat.com>
55357         di-set.h, ino-map.h: add multiple-inclusion guard
55358         Technically, the guard is required only for ino-map.h, due to its
55359         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
55360         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
55361         * lib/ino-map.h: Likewise.
55363 2011-02-06  Bruno Haible  <bruno@clisp.org>
55365         iswblank: Ensure declaration on glibc systems.
55366         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
55367         * modules/iswblank (Dependencies): Add 'extensions'.
55368         * doc/posix-functions/iswblank.texi: Document the glibc problem.
55370 2011-02-06  Bruno Haible  <bruno@clisp.org>
55372         New module 'iswblank'.
55373         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
55374         * modules/iswblank: New file.
55375         * modules/wctype-h (Files): Remove lib/iswblank.c.
55376         (Makefile.am): Substitute GNULIB_ISWBLANK.
55377         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
55378         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
55379         (gl_WCTYPE_H_DEFAULTS): New macro.
55380         (gl_WCTYPE_H): Require it. Remove iswblank related code.
55381         * modules/iswblank-tests: New file.
55382         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
55383         * tests/test-wctype-h.c (main): Remove iswblank tests.
55384         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
55385         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
55386         of 'wctype-h'.
55387         * NEWS: Mention the change.
55388         * modules/mbchar (Depends-on): Add iswblank.
55390 2011-02-08  Bruno Haible  <bruno@clisp.org>
55392         di-set tests: Refactor.
55393         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
55394         unnecessary includes.
55395         (ASSERT): Remove macro.
55396         (main): Make C90 compliant by avoiding variable declaration after
55397         statement.
55398         * modules/di-set-tests (Files): Add tests/macros.h.
55400 2011-02-08  Bruno Haible  <bruno@clisp.org>
55402         ino-map tests: Refactor.
55403         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
55404         unnecessary includes.
55405         (ASSERT): Remove macro.
55406         (main): Make C90 compliant by avoiding variable declaration after
55407         statement.
55408         * modules/ino-map-tests (Files): Add tests/macros.h.
55410 2011-02-08  Jim Meyering  <meyering@redhat.com>
55412         di-set: add "const" to a cast
55413         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
55414         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
55416 2011-02-06  Bruno Haible  <bruno@clisp.org>
55418         Rename module 'wctype' to 'wctype-h'.
55419         * modules/wctype-h: Renamed from modules/wctype.
55420         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
55421         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
55422         (Files, Depends-on, Makefile.am): Update.
55423         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
55424         (Files, Makefile.am): Update.
55425         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
55426         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
55427         * doc/posix-headers/wctype.texi: Update.
55428         * doc/posix-functions/iswalnum.texi: Update.
55429         * doc/posix-functions/iswalpha.texi: Update.
55430         * doc/posix-functions/iswblank.texi: Update.
55431         * doc/posix-functions/iswcntrl.texi: Update.
55432         * doc/posix-functions/iswdigit.texi: Update.
55433         * doc/posix-functions/iswgraph.texi: Update.
55434         * doc/posix-functions/iswlower.texi: Update.
55435         * doc/posix-functions/iswprint.texi: Update.
55436         * doc/posix-functions/iswpunct.texi: Update.
55437         * doc/posix-functions/iswspace.texi: Update.
55438         * doc/posix-functions/iswupper.texi: Update.
55439         * doc/posix-functions/iswxdigit.texi: Update.
55440         * doc/posix-functions/towlower.texi: Update.
55441         * doc/posix-functions/towupper.texi: Update.
55442         * NEWS: Mention the change.
55443         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
55444         * modules/mbchar (Dependencies): Likewise.
55445         * modules/mbswidth (Dependencies): Likewise.
55446         * modules/quotearg (Dependencies): Likewise.
55447         * modules/regex (Dependencies): Likewise.
55448         * modules/wcscasecmp (Dependencies): Likewise.
55449         * modules/wcsncasecmp (Dependencies): Likewise.
55450         * modules/wcwidth (Dependencies): Likewise.
55452 2011-02-06  Bruno Haible  <bruno@clisp.org>
55454         New module 'wcswidth'.
55455         * modules/wcswidth: New file.
55456         * lib/wchar.in.h (wcswidth): New declaration.
55457         * lib/wcswidth.c: New file.
55458         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
55459         * m4/wcswidth.m4: New file.
55460         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
55461         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
55462         REPLACE_WCSWIDTH.
55463         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
55464         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
55465         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
55466         * doc/posix-functions/wcswidth.texi: Mention the new module.
55468 2011-02-06  Bruno Haible  <bruno@clisp.org>
55470         New module 'wcstok'.
55471         * modules/wcstok: New file.
55472         * lib/wchar.in.h (wcstok): New declaration.
55473         * lib/wcstok.c: New file.
55474         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
55475         * m4/wcstok.m4: New file.
55476         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
55477         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
55478         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
55479         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
55480         * doc/posix-functions/wcstok.texi: Mention the new module.
55482 2011-02-06  Bruno Haible  <bruno@clisp.org>
55484         New module 'wcsstr'.
55485         * modules/wcsstr: New file.
55486         * lib/wchar.in.h (wcsstr): New declaration.
55487         * lib/wcsstr.c: New file.
55488         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
55489         * m4/wcsstr.m4: New file.
55490         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
55491         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
55492         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
55493         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
55494         * doc/posix-functions/wcsstr.texi: Mention the new module.
55496 2011-02-06  Bruno Haible  <bruno@clisp.org>
55498         New module 'wcspbrk'.
55499         * modules/wcspbrk: New file.
55500         * lib/wchar.in.h (wcspbrk): New declaration.
55501         * lib/wcspbrk.c: New file.
55502         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
55503         * m4/wcspbrk.m4: New file.
55504         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
55505         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
55506         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
55507         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
55508         * doc/posix-functions/wcspbrk.texi: Mention the new module.
55510 2011-02-06  Bruno Haible  <bruno@clisp.org>
55512         New module 'wcsspn'.
55513         * modules/wcsspn: New file.
55514         * lib/wchar.in.h (wcsspn): New declaration.
55515         * lib/wcsspn.c: New file.
55516         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
55517         * m4/wcsspn.m4: New file.
55518         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
55519         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
55520         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
55521         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
55522         * doc/posix-functions/wcsspn.texi: Mention the new module.
55524 2011-02-06  Bruno Haible  <bruno@clisp.org>
55526         New module 'wcscspn'.
55527         * modules/wcscspn: New file.
55528         * lib/wchar.in.h (wcscspn): New declaration.
55529         * lib/wcscspn.c: New file.
55530         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
55531         * m4/wcscspn.m4: New file.
55532         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
55533         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
55534         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
55535         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
55536         * doc/posix-functions/wcscspn.texi: Mention the new module.
55538 2011-02-06  Bruno Haible  <bruno@clisp.org>
55540         New module 'wcsrchr'.
55541         * modules/wcsrchr: New file.
55542         * lib/wchar.in.h (wcsrchr): New declaration.
55543         * lib/wcsrchr.c: New file.
55544         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
55545         * m4/wcsrchr.m4: New file.
55546         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
55547         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
55548         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
55549         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
55550         * doc/posix-functions/wcsrchr.texi: Mention the new module.
55552 2011-02-06  Bruno Haible  <bruno@clisp.org>
55554         New module 'wcschr'.
55555         * modules/wcschr: New file.
55556         * lib/wchar.in.h (wcschr): New declaration.
55557         * lib/wcschr.c: New file.
55558         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
55559         * m4/wcschr.m4: New file.
55560         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
55561         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
55562         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
55563         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
55564         * doc/posix-functions/wcschr.texi: Mention the new module.
55566 2011-02-06  Bruno Haible  <bruno@clisp.org>
55568         New module 'wcsdup'.
55569         * modules/wcsdup: New file.
55570         * lib/wchar.in.h (wcsdup): New declaration.
55571         * lib/wcsdup.c: New file.
55572         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
55573         * m4/wcsdup.m4: New file.
55574         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
55575         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
55576         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
55577         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
55578         * doc/posix-functions/wcsdup.texi: Mention the new module.
55580 2011-02-06  Bruno Haible  <bruno@clisp.org>
55582         New module 'wcsxfrm'.
55583         * modules/wcsxfrm: New file.
55584         * lib/wchar.in.h (wcsxfrm): New declaration.
55585         * lib/wcsxfrm.c: New file.
55586         * lib/wcsxfrm-impl.h: New file.
55587         * m4/wcsxfrm.m4: New file.
55588         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
55589         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
55590         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
55591         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
55592         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
55594 2011-02-06  Bruno Haible  <bruno@clisp.org>
55596         New module 'wcscoll'.
55597         * modules/wcscoll: New file.
55598         * lib/wchar.in.h (wcscoll): New declaration.
55599         * lib/wcscoll.c: New file.
55600         * lib/wcscoll-impl.h: New file.
55601         * m4/wcscoll.m4: New file.
55602         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
55603         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
55604         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
55605         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
55606         * doc/posix-functions/wcscoll.texi: Mention the new module.
55608 2011-02-06  Bruno Haible  <bruno@clisp.org>
55610         New module 'wcsncasecmp'.
55611         * modules/wcsncasecmp: New file.
55612         * lib/wchar.in.h (wcsncasecmp): New declaration.
55613         * lib/wcsncasecmp.c: New file.
55614         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
55615         * m4/wcsncasecmp.m4: New file.
55616         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
55617         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
55618         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
55619         HAVE_WCSNCASECMP.
55620         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
55621         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
55623 2011-02-06  Bruno Haible  <bruno@clisp.org>
55625         New module 'wcscasecmp'.
55626         * modules/wcscasecmp: New file.
55627         * lib/wchar.in.h (wcscasecmp): New declaration.
55628         * lib/wcscasecmp.c: New file.
55629         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
55630         * m4/wcscasecmp.m4: New file.
55631         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
55632         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
55633         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
55634         HAVE_WCSCASECMP.
55635         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
55636         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
55638 2011-02-05  Bruno Haible  <bruno@clisp.org>
55640         New module 'wcsncmp'.
55641         * modules/wcsncmp: New file.
55642         * lib/wchar.in.h (wcsncmp): New declaration.
55643         * lib/wcsncmp.c: New file.
55644         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
55645         * m4/wcsncmp.m4: New file.
55646         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
55647         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
55648         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
55649         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
55650         * doc/posix-functions/wcsncmp.texi: Mention the new module.
55652 2011-02-05  Bruno Haible  <bruno@clisp.org>
55654         New module 'wcscmp'.
55655         * modules/wcscmp: New file.
55656         * lib/wchar.in.h (wcscmp): New declaration.
55657         * lib/wcscmp.c: New file.
55658         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
55659         * m4/wcscmp.m4: New file.
55660         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
55661         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
55662         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
55663         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
55664         * doc/posix-functions/wcscmp.texi: Mention the new module.
55666 2011-02-05  Bruno Haible  <bruno@clisp.org>
55668         New module 'wcsncat'.
55669         * modules/wcsncat: New file.
55670         * lib/wchar.in.h (wcsncat): New declaration.
55671         * lib/wcsncat.c: New file.
55672         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
55673         * m4/wcsncat.m4: New file.
55674         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
55675         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
55676         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
55677         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
55678         * doc/posix-functions/wcsncat.texi: Mention the new module.
55680 2011-02-05  Bruno Haible  <bruno@clisp.org>
55682         New module 'wcscat'.
55683         * modules/wcscat: New file.
55684         * lib/wchar.in.h (wcscat): New declaration.
55685         * lib/wcscat.c: New file.
55686         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
55687         * m4/wcscat.m4: New file.
55688         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
55689         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
55690         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
55691         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
55692         * doc/posix-functions/wcscat.texi: Mention the new module.
55694 2011-02-05  Bruno Haible  <bruno@clisp.org>
55696         New module 'wcpncpy'.
55697         * modules/wcpncpy: New file.
55698         * lib/wchar.in.h (wcpncpy): New declaration.
55699         * lib/wcpncpy.c: New file.
55700         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
55701         * m4/wcpncpy.m4: New file.
55702         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
55703         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
55704         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
55705         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
55706         * doc/posix-functions/wcpncpy.texi: Mention the new module.
55708 2011-02-05  Bruno Haible  <bruno@clisp.org>
55710         New module 'wcsncpy'.
55711         * modules/wcsncpy: New file.
55712         * lib/wchar.in.h (wcsncpy): New declaration.
55713         * lib/wcsncpy.c: New file.
55714         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
55715         * m4/wcsncpy.m4: New file.
55716         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
55717         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
55718         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
55719         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
55720         * doc/posix-functions/wcsncpy.texi: Mention the new module.
55722 2011-02-05  Bruno Haible  <bruno@clisp.org>
55724         New module 'wcpcpy'.
55725         * modules/wcpcpy: New file.
55726         * lib/wchar.in.h (wcpcpy): New declaration.
55727         * lib/wcpcpy.c: New file.
55728         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
55729         * m4/wcpcpy.m4: New file.
55730         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
55731         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
55732         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
55733         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
55734         * doc/posix-functions/wcpcpy.texi: Mention the new module.
55736 2011-02-05  Bruno Haible  <bruno@clisp.org>
55738         New module 'wcscpy'.
55739         * modules/wcscpy: New file.
55740         * lib/wchar.in.h (wcscpy): New declaration.
55741         * lib/wcscpy.c: New file.
55742         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
55743         * m4/wcscpy.m4: New file.
55744         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
55745         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
55746         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
55747         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
55748         * doc/posix-functions/wcscpy.texi: Mention the new module.
55750 2011-02-05  Bruno Haible  <bruno@clisp.org>
55752         New module 'wcsnlen'.
55753         * modules/wcsnlen: New file.
55754         * lib/wchar.in.h (wcsnlen): New declaration.
55755         * lib/wcsnlen.c: New file.
55756         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
55757         * m4/wcsnlen.m4: New file.
55758         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
55759         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
55760         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
55761         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
55762         * doc/posix-functions/wcsnlen.texi: Mention the new module.
55764 2011-02-05  Bruno Haible  <bruno@clisp.org>
55766         New module 'wcslen'.
55767         * modules/wcslen: New file.
55768         * lib/wchar.in.h (wcslen): New declaration.
55769         * lib/wcslen.c: New file.
55770         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
55771         * m4/wcslen.m4: New file.
55772         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
55773         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
55774         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
55775         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
55776         * doc/posix-functions/wcslen.texi: Mention the new module.
55778 2011-02-05  Bruno Haible  <bruno@clisp.org>
55780         New module 'wmemset'.
55781         * modules/wmemset: New file.
55782         * lib/wchar.in.h (wmemset): New declaration.
55783         * lib/wmemset.c: New file.
55784         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
55785         * m4/wmemset.m4: New file.
55786         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
55787         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
55788         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
55789         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
55790         * doc/posix-functions/wmemset.texi: Mention the new module.
55792 2011-02-05  Bruno Haible  <bruno@clisp.org>
55794         New module 'wmemmove'.
55795         * modules/wmemmove: New file.
55796         * lib/wchar.in.h (wmemmove): New declaration.
55797         * lib/wmemmove.c: New file.
55798         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
55799         * m4/wmemmove.m4: New file.
55800         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
55801         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
55802         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
55803         HAVE_WMEMMOVE.
55804         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
55805         * doc/posix-functions/wmemmove.texi: Mention the new module.
55807 2011-02-05  Bruno Haible  <bruno@clisp.org>
55809         New module 'wmemcpy'.
55810         * modules/wmemcpy: New file.
55811         * lib/wchar.in.h (wmemcpy): New declaration.
55812         * lib/wmemcpy.c: New file.
55813         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
55814         * m4/wmemcpy.m4: New file.
55815         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
55816         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
55817         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
55818         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
55819         * doc/posix-functions/wmemcpy.texi: Mention the new module.
55821 2011-02-05  Bruno Haible  <bruno@clisp.org>
55823         New module 'wmemcmp'.
55824         * modules/wmemcmp: New file.
55825         * lib/wchar.in.h (wmemcmp): New declaration.
55826         * lib/wmemcmp.c: New file.
55827         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
55828         * m4/wmemcmp.m4: New file.
55829         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
55830         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
55831         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
55832         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
55833         * doc/posix-functions/wmemcmp.texi: Mention the new module.
55835 2011-02-07  Jim Meyering  <meyering@redhat.com>
55837         di-set, ino-map: new modules, from coreutils
55838         * lib/di-set.c: New file.
55839         * lib/di-set.h: Likewise.
55840         * lib/ino-map.c: Likewise.
55841         * lib/ino-map.h: Likewise.
55842         * modules/di-set: Likewise.
55843         * modules/di-set-tests: Likewise.
55844         * modules/ino-map: Likewise.
55845         * modules/ino-map-tests: Likewise.
55846         * tests/test-di-set.c: Likewise.
55847         * tests/test-ino-map.c: Likewise.
55849 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
55851         getloadavg: merge minor changes from Emacs
55853         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
55854         (getloadavg): Use memset, not bzero.
55856         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
55857         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
55858         clash (bug#86).
55860 2010-11-14  Bruno Haible  <bruno@clisp.org>
55862         Allow multiple gnulib generated replacements to coexist.
55863         * lib/getopt.in.h (struct option): Avoid identical redefinition.
55864         * lib/inttypes.in.h (imaxdiv_t): Likewise.
55865         * lib/langinfo.in.h (nl_item): Likewise.
55866         * lib/math.in.h (_NaN, NAN): Likewise.
55867         * lib/netdb.in.h (struct addrinfo): Likewise.
55868         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
55869         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
55870         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
55871         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
55872         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
55873         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
55874         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
55875         pthread_mutexattr_init, pthread_mutexattr_settype,
55876         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
55877         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
55878         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
55879         pthread_spin_trylock, pthread_spin_unlock): Likewise.
55880         * lib/sched.in.h (struct sched_param): Likewise.
55881         * lib/se-selinux.in.h (security_class_t, security_context_t,
55882         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
55883         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
55884         lsetfilecon, fsetfilecon, security_check_context,
55885         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
55886         Likewise.
55887         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
55888         Likewise.
55889         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
55890         _gl_function_taking_int_returning_void_t, union sigval,
55891         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
55892         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
55893         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
55894         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
55895         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
55896         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
55897         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
55898         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
55899         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
55900         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
55901         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
55902         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
55903         socklen_t, rpl_fd_isset): Likewise.
55904         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
55905         * lib/sys_time.in.h (struct timeval): Likewise.
55906         * lib/sys_times.in.h (struct tms): Likewise.
55907         * lib/sys_utsname.in.h (struct utsname):
55908         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
55909         * lib/unistd.in.h (getpagesize): Likewise.
55910         * lib/wchar.in.h (mbstate_t): Likewise.
55911         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
55912         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
55913         towlower, towupper): Likewise.
55914         Reported by Sam Steingold <sds@gnu.org>.
55916 2011-02-05  Eric Blake  <eblake@redhat.com>
55918         unsetenv: work around Haiku issues
55919         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
55920         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
55922 2010-12-30  Bruce Korb  <bkorb@gnu.org>
55924         libposix: avoid calling error() within libposix
55925         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
55926         is defined.
55928 2011-02-05  Eric Blake  <eblake@redhat.com>
55930         strerror_r-posix: port to cygwin
55931         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
55932         implementation.
55933         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
55934         * tests/test-strerror_r.c (main): Fix test.
55935         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
55936         issue.
55938 2011-02-05  Bruno Haible  <bruno@clisp.org>
55940         New module 'wmemchr'.
55941         * modules/wmemchr: New file.
55942         * lib/wchar.in.h (wmemchr): New declaration.
55943         * lib/wmemchr.c: New file.
55944         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
55945         * m4/wmemchr.m4: New file.
55946         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
55947         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
55948         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
55949         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
55950         * doc/posix-functions/wmemchr.texi: Mention the new module.
55952 2011-02-04  Eric Blake  <eblake@redhat.com>
55954         fdopendir: detect FreeBSD bug
55955         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
55956         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
55958 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
55960         stdbool: do not define HAVE_STDBOOL_H
55961         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
55962         AC_HEADER_STDBOOL.  All uses changed.  Do not define
55963         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
55964         imported from the latest Autoconf git.  It was motivated by Emacs,
55965         which uses gnulib but does not need HAVE_STDBOOL_H.
55967 2011-02-04  Bruno Haible  <bruno@clisp.org>
55969         wcsnrtombs: Prepare for new module wwcsnrtombs.
55970         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
55971         * lib/wcsnrtombs.c: Include it.
55972         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
55974         wcsrtombs: Prepare for new module wwcsrtombs.
55975         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
55976         * lib/wcsrtombs.c: Include it.
55977         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
55979         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
55980         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
55981         * lib/mbsnrtowcs.c: Include it.
55982         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
55984         mbsrtowcs: Prepare for new module mbsrtowwcs.
55985         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
55986         * lib/mbsrtowcs.c: Include it.
55987         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
55989 2011-02-04  Bruno Haible  <bruno@clisp.org>
55991         vasnprintf: Reduce use of malloc for small format strings.
55992         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
55993         (arguments): Add room for the first 7 arguments.
55994         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
55995         (char_directives, u8_directives, u16_directives, u32_directives): Add
55996         room for the first 7 directives.
55997         * lib/printf-parse.c: Include <string.h>.
55998         (PRINTF_PARSE): Change memory handling code so that it uses the first
55999         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
56000         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
56001         Reported by Pádraig Brady <P@draigbrady.com>.
56003 2011-01-31  Eric Blake  <eblake@redhat.com>
56005         dup2: work around Haiku bug
56006         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
56007         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
56008         * doc/posix-functions/dup2.texi (dup2): Document the bug.
56009         * tests/test-dup2.c (main): Enhance test.
56011 2011-01-31  Simon Josefsson  <simon@josefsson.org>
56013         doc: off_t is not available in eglibc 2.11.2 stdio.h.
56014         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
56015         declared by eglibc 2.11.2.
56016         * lib/stdio.in.h: Likewise.
56018 2011-01-31  Eric Blake  <eblake@redhat.com>
56020         ignore-value: add missing test dependency
56021         * tests/test-ignore-value.c: Revert previous change; stdio.h
56022         provides off_t.
56023         * modules/ignore-value-tests (Depends-on): Add missing dependency.
56025 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
56027         mktime: clarify long_int width checking
56028         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
56029         the top level, to make it clearer that the assumption about
56030         long_int width is being checked.  See
56031         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00554.html>.
56033 2011-01-30  Simon Josefsson  <simon@josefsson.org>
56035         ignore-value: Fix self-test.
56036         * tests/test-ignore-value.c: Include sys/types.h for off_t.
56038 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
56040         TYPE_MAXIMUM: avoid theoretically undefined behavior
56041         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
56042         negative number, which the C Standard says has undefined behavior.
56043         In practice this is not a problem, but might as well do it by the book.
56044         Reported by Rich Felker and Eric Blake; see
56045         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00493.html>.
56046         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
56047         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
56048         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
56049         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
56050         * m4/stdint.m4 (gl_STDINT_H): Likewise.
56051         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
56053         mktime: #undef mktime before #defining it
56054         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
56056         mktime: systematically normalize tm_isdst comparisons
56057         * lib/mktime.c (isdst_differ): New function.
56058         (__mktime_internal): Use it systematically for all isdst comparisons.
56059         This completes the fix for libc BZ #6723, and removes the need for
56060         normalizing tm_isdst.  See
56061         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
56062         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
56064         mktime: fix some integer overflow issues and sidestep the rest
56066         This was prompted by a bug report by Benjamin Lindner for MinGW
56067         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00472.html>.
56068         His bug is due to signed integer overflow (0 - INT_MIN), and I
56069         I scanned through mktime.c looking for other integer overflow
56070         problems, fixing all the bugs I found.
56072         Although the C Standard says the resulting code is still not safe
56073         in the presence of integer overflow, in practice it should be good
56074         enough for all real-world two's-complement implementations, except
56075         for debugging environments that deliberately trap on integer
56076         overflow (e.g., gcc -ftrapv).
56078         * lib/mktime.c (WRAPV): New macro.
56079         (SHR): Also check that long_int and time_t shift right in the
56080         usual way, before using the fast-but-unportable method.
56081         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
56082         used.  The code already assumed two's complement, so there's
56083         no need to test for alternatives.  All uses removed.
56084         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
56085         the C standard.  Problem reported by Rich Felker in
56086         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00488.html>.
56087         (twos_complement_arithmetic): Also check long_int and time_t.
56088         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
56089         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
56090         (__mktime_internal): Avoid integer overflow with unary subtraction
56091         in two instances where -1 - X is an adequate replacement for -X,
56092         since the calculations are approximate.
56094 2011-01-29  Eric Blake  <eblake@redhat.com>
56096         mktime: avoid infinite loop
56097         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
56098         type; behavior is still undefined but portable to all known targets.
56099         Reported by Rich Felker.
56101 2011-01-29  Simon Josefsson  <simon@josefsson.org>
56103         rename, unlink, same-inode: Relicense.
56104         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
56105         * modules/unlink (License): Likewise.
56106         * modules/same-inode (License): Likewise.
56108 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
56110         mktime: avoid problems on NetBSD 5 / i386
56111         * lib/mktime.c (long_int): New type.  This works around a problem
56112         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
56113         but time_t is 64 bits, and where I expect the existing code is
56114         wrong in some cases.
56115         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
56116         (ydhms_diff): Bring back the compile-time check for wide-enough
56117         year and yday.
56119         mktime: fix misspelling in comment
56120         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
56121         This merges all recent glibc changes of importance.
56123 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56125         move-if-change: cope with concurrent mv of identical file.
56126         * build-aux/move-if-change (CMPPROG): Accept environment
56127         variable as an override for `cmp'.
56128         (usage): Document CMPPROG.
56129         Adjust comparison to drop stdout.  Cope with failure of mv if
56130         the target file exists and is identical to the source, for
56131         parallel builds.
56132         Report from H.J. Lu against binutils in PR binutils/12283.
56134 2011-01-28  Bruce Korb  <bkorb@gnu.org>
56136         * users.txt: Mention sharutils.
56138 2011-01-28  Simon Josefsson  <simon@josefsson.org>
56140         * users.txt: Mention OATH Toolkit.
56142 2011-01-27  Bruno Haible  <bruno@clisp.org>
56144         Prepare for supporting FreeBSD 10.
56145         * build-aux/config.libpath: Remove handling of freebsd1*.
56147 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
56149         Prepare for supporting FreeBSD 10.
56150         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
56151         match FreeBSD 10.0.
56153 2011-01-27  Bruno Haible  <bruno@clisp.org>
56155         vma-iter, get-rusage-as: Add OpenBSD support.
56156         * modules/vma-iter (configure.ac): Test for mquery.
56157         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
56158         * lib/vma-iter.c: Include <sys/mman.h>.
56159         (vma_iterate): Add an implementation based on mquery().
56160         * lib/resource-ext.h (get_rusage_as): Update comments.
56161         * lib/get-rusage-as.c: Likewise.
56162         * lib/get-rusage-data.c: Likewise.
56164 2011-01-26  Karl Berry  <karl@gnu.org>
56166         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
56167         variables to make it easier to override the makeinfo program used.
56169 2011-01-26  Eric Blake  <eblake@redhat.com>
56171         fcntl: work around Haiku F_DUPFD bugs
56172         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
56173         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
56174         cloexec bit on duplication.
56175         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
56177 2011-01-26  Bruno Haible  <bruno@clisp.org>
56179         Enable memory leak tests on AIX.
56180         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
56181         * tests/test-fprintf-posix3.c (main): Likewise.
56183 2011-01-26  Bruno Haible  <bruno@clisp.org>
56185         Tests for module 'get-rusage-data'.
56186         * modules/get-rusage-data-tests: New file.
56187         * tests/test-get-rusage-data.c: New file.
56189         New module 'get-rusage-data'.
56190         * lib/resource-ext.h (get_rusage_data): New declaration.
56191         * lib/get-rusage-data.c: New file.
56192         * modules/get-rusage-data: New file.
56194 2011-01-25  Bruno Haible  <bruno@clisp.org>
56196         get-rusage-as: Allow for easier testing.
56197         * lib/resource-ext.h (get_rusage_as): Add comment.
56198         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
56199         (main): New function for interactive testing.
56201 2011-01-25  Bruno Haible  <bruno@clisp.org>
56203         vma-iter: Treat Haiku like BeOS.
56204         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
56205         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
56207 2011-01-25  Eric Blake  <eblake@redhat.com>
56209         c-stack: fix regression on cygwin when libsigsegv is present
56210         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
56212 2011-01-24  Bruno Haible  <bruno@clisp.org>
56214         vma-iter: Avoid empty intervals.
56215         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
56216         on an empty interval.
56218 2011-01-24  Jim Meyering  <meyering@redhat.com>
56220         u64: remove unnecessary #include
56221         * lib/u64.h: Don't include <stddef.h>.  It was not used.
56223 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
56225         Allow the user to avoid the HAVE_RAW_DECL_* macros.
56226         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
56228 2011-01-23  Bruno Haible  <bruno@clisp.org>
56230         New module 'vma-iter'.
56231         * lib/vma-iter.h: New file.
56232         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
56233         * modules/vma-iter: New file.
56234         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
56235         for get_rusage_as_via_iterator.
56236         (vma_iterate_callback): New function.
56237         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
56238         * modules/get-rusage-as (Depends-on): Add vma-iter.
56240 2011-01-23  Bruno Haible  <bruno@clisp.org>
56242         uninorm: Tweak includes.
56243         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
56244         Reported by Jim Meyering.
56246 2011-01-23  Bruno Haible  <bruno@clisp.org>
56248         get-rusage-as: Improve on NetBSD.
56249         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
56250         /proc, like on FreeBSD.
56252 2011-01-23  Jim Meyering  <meyering@redhat.com>
56254         xreadlink.h: remove unnecessary #include
56255         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
56257         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
56258         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
56260 2011-01-23  Bruno Haible  <bruno@clisp.org>
56262         get-rusage-as: Fix bug.
56263         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
56264         original limit when aborting the first loop.
56266 2011-01-23  Bruno Haible  <bruno@clisp.org>
56268         wctype: Ensure valid C syntax.
56269         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
56270         unconditionally, instead of gl_NEXT_HEADERS conditionally.
56272 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
56274         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
56275         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
56276         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
56277         as they are needed only for configure's test case.
56278         This removes two unnecessary symbols from config.h.
56280         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
56281         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
56282         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
56283         AC_CHECK_HEADERS_ONCE on a header that we also invoke
56284         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
56285         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
56286         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
56287         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
56288         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
56289         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
56290         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
56291         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
56292         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
56293         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
56294         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
56295         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
56296         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
56297         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
56299 2011-01-21  Eric Blake  <eblake@redhat.com>
56301         maintainer-makefile: work with older git for submodule check
56302         * top/maint.mk (public-submodule-commit): Rewrite to avoid
56303         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
56304         Reported by Matthias Bolte.
56306         bootstrap: minor portability fixes
56307         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
56308         (usage): Omit leading capital and trailing . on help phrases, per
56309         GNU Coding Standards.
56310         (check_versions, top level): Prefix messages with script name.
56312 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
56314         bootstrap: support --no-git option
56315         * build-aux/bootstrap: Add --no-git option, to be used when
56316         --gnulib-srcdir points to the exact desired checkout.
56318 2011-01-21  Eric Blake  <eblake@redhat.com>
56320         strerror_r-posix: work with glibc 2.13
56321         * lib/strerror_r.c (strerror_r): Fix return type.
56323 2011-01-21  Pádraig Brady  <P@draigBrady.com>
56324             Bruno Haible  <bruno@clisp.org>
56326         uN_strstr: New unit tests.
56327         * modules/unistr/u8-strstr-tests: New file.
56328         * modules/unistr/u16-strstr-tests: New file.
56329         * modules/unistr/u32-strstr-tests: New file.
56330         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
56331         * tests/unistr/test-u8-strstr.c: New file.
56332         * tests/unistr/test-u16-strstr.c: New file.
56333         * tests/unistr/test-u32-strstr.c: New file.
56335 2011-01-21  Pádraig Brady  <P@draigBrady.com>
56336             Bruno Haible  <bruno@clisp.org>
56338         Make uN_strstr functions O(n) worst-case.
56339         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
56340         16-bit and 32-bit unit cases, use the unibyte algorithm from
56341         lib/mbsstr.c.
56342         * lib/unistr/u8-strstr.c: Include <string.h>.
56343         (UNIT_IS_UINT8_T): New macro.
56344         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
56345         (U_STRLEN, U_STRNLEN): New macros.
56346         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
56347         (U_STRLEN, U_STRNLEN): New macros.
56348         * modules/unistr/u8-strstr (Depends-on): Add strstr.
56349         (configure.ac): Update required libunistring version.
56350         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
56351         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
56352         malloca.
56353         (configure.ac): Update required libunistring version.
56354         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
56355         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
56356         malloca.
56357         (configure.ac): Update required libunistring version.
56359 2011-01-21  Pádraig Brady  <P@draigBrady.com>
56360             Bruno Haible  <bruno@clisp.org>
56362         Prepare for faster uN_strstr functions.
56363         * lib/str-kmp.h: Support definable UNITs.
56364         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
56365         needle_len argument.
56366         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
56367         * lib/mbscasestr.c (mbscasestr): Likewise.
56369 2011-01-21  Pádraig Brady  <P@draigBrady.com>
56371         malloca-tests: make faster by unsetting MALLOC_PERTURB_
56372         * tests/test-malloca.c (main): Unset the environment variable
56373         to greatly speed up the test.
56374         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
56375         * modules/malloca-tests: Depend on unsetenv.
56377 2011-01-21  Pádraig Brady  <P@draigBrady.com>
56379         ignore-value: remove stdint dependency
56380         * lib/ignore-value.h: Remove <stdint.h>
56381         * modules/ignore-value: Remove stdint dependency.
56383 2011-01-21  Jim Meyering  <meyering@redhat.com>
56385         maint.mk: adjust variable name to be consistent with other gl_ vars
56386         * top/maint.mk (gl_public_submodule_commit): Rename the variable
56387         to be lower case.
56389 2011-01-20  Jim Meyering  <meyering@redhat.com>
56391         maint.mk: make "check" depend on public-submodule-commit by default
56392         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
56394 2011-01-20  Bruno Haible  <bruno@clisp.org>
56396         mbfile, mbiter: Complete change from 2008-12-21.
56397         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
56398         * m4/mbiter.m4 (gl_MBITER): Likewise.
56400 2011-01-20  Jim Meyering  <meyering@redhat.com>
56402         init.sh: insert space between each function name and "()"
56403         * tests/init.sh: Make it a little easier to see that a function's
56404         name is "warn_", and not "warn" when looking at the first part of
56405         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
56407 2011-01-20  Jim Meyering  <meyering@redhat.com>
56409         mountlist: clean up code formatting
56410         * lib/mountlist.c (read_file_system_list): Split a long line,
56411         correct bracing style, use NULL in place of "(struct statfs *)0",
56412         don't parenthesize return value, add spaces around "=" and after
56413         ";-in-for-stmt".
56415 2011-01-14  Markus Duft  <mduft@gentoo.org>
56417         mountlist: add support for Interix
56418         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
56419         Apply statvfs to all entries of /dev/fs.
56420         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
56421         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
56423 2011-01-20  Jim Meyering  <meyering@redhat.com>
56425         maint.mk: improve the public-submodule-commit rule
56426         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
56427         to suppress printing of its commands... unless V=1.
56428         Add git submodule's --quiet option to suppress printing of e.g.,
56429         "Entering gnulib" output.
56430         "cd" into $(srcdir) before running git submodule.
56432 2011-01-20  Bruno Haible  <bruno@clisp.org>
56434         include_next: Fix bug introduced on 2011-01-18.
56435         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
56436         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
56437         ac_cv_header_... variable if the second argument is not 'check'.
56438         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
56439         gl_NEXT_HEADERS_INTERNAL.
56441 2011-01-20  Bruno Haible  <bruno@clisp.org>
56443         Allow the user to avoid the GNULIB_TEST_* macros.
56444         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
56445         Suggested by Paul Eggert.
56447 2011-01-14  Jim Meyering  <meyering@redhat.com>
56449         bootstrap: avoid failure when there is no .gitmodules file
56450         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
56451         has been assigned to, even when its value is the empty string.
56452         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
56453         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
56454         Reported by John W. Eaton <jwe@gnu.org>.
56456 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
56458         assume <ctype.h>, ..., <time.h> exist
56459         For years gnulib has been assuming the existence of the headers
56460         <ctype.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
56461         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
56462         them, since they don't appear to be needed.
56463         * README (Portability guidelines): Document this.
56464         * lib/flock.c: Assume <fcntl.h> exists.
56465         * lib/regex_internal.h: Assume <locale.h> exists.
56466         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
56467         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
56468         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
56469         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
56470         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
56471         * m4/regex.m4 (gl_REGEX): Likewise.
56472         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
56473         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
56474         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
56475         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
56476         * tests/test-argp.c: Likewise.
56477         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
56479         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
56480         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
56481         AA_APPLE_UNIVERSAL_BUILD.  See
56482         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00247.html>.
56483         * NEWS: Document this.
56485 2011-01-19  Eric Blake  <eblake@redhat.com>
56487         c-stack: assume stack overflow if SA_SIGINFO unsupported
56488         * lib/c-stack.c (SIGACTION_WORKS): Rename...
56489         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
56490         sigaction will work.
56491         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
56492         behavior match Linux.
56493         * tests/test-c-stack.c (main): Prefer NULL for pointers.
56495         stdbool-tests: accommodate Haiku
56496         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
56498         binary-io: fix O_TEXT on Haiku
56499         * modules/binary-io (Depends-on): Add fcntl-h.
56500         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
56501         than blindly undefining O_TEXT.
56502         Reported by Scott McCreary.
56504 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
56506         include_next: do not check for standard headers like stddef.h
56508         I found this problem when modifying Emacs to use gnulib.
56509         I noticed that it added HAVE_STDDEF_H to config.h, even though
56510         gnulib always assumes <stddef.h> exists as per README and this
56511         symbol is unnecessary.
56512         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
56513         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
56514         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
56515         faster for headers like stddef.h that are known to exist.
56516         (gl_CHECK_NEXT_HEADERS): Use it.
56517         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
56518         rather than gl_CHECK_NEXT_HEADERS.
56519         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
56520         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
56522 2011-01-18  Eric Blake  <eblake@redhat.com>
56524         ansi-c++-opt: skip C++ dependency style if C++ is unused
56525         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
56526         tests when we know C++ compilation is not desired.
56527         Reported by Scott McCreary.
56529 2011-01-18  Bruno Haible  <bruno@clisp.org>
56531         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
56532         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
56533         (main): Perform test also when getrlimit and setrlimit don't exist or
56534         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
56535         limiting the address space size using setrlimit, compare the address
56536         space size before and after the test.
56537         * tests/test-dprintf-posix2.c: Likewise.
56538         * tests/test-fprintf-posix3.sh: Update skip messages.
56539         * tests/test-dprintf-posix2.sh: Likewise.
56540         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
56541         * modules/dprintf-posix-tests (Depends-on): Likewise.
56542         Reported by Bruce Korb <bkorb@gnu.org> and
56543         Gary V. Vaughan <gary@gnu.org>.
56545 2011-01-18  Bruno Haible  <bruno@clisp.org>
56547         get-rusage-as: Improvement for Cygwin.
56548         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
56549         areas that are merely reserved.
56551 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
56553         strftime: remove dependencies on multibyte modules
56555         strftime depended on mbrlen, mbsinit, and wchar, but these modules
56556         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
56557         only if __osf__ is defined, and I suspect OSF doesn't need these
56558         other modules.  If my guess is wrong, we'll need to come up with a
56559         variant of strftime that doesn't need the multibyte modules.
56561         I discovered this problem when attempting modify Emacs to use the
56562         strftime module.  With the previous gnulib, this caused Emacs to
56563         need 31 new files, ranging from lib/config.charset to
56564         m4/wint_t.m4.  This was overkill and I expect would be offputting
56565         to the Emacs maintainers.  After this change, only 6 new files are
56566         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
56567         stdbool.m4, and tm_gmtoff.m4.
56569         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
56570         Suggested by Bruno Haible in
56571         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00238.html>.
56572         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
56573         and do not check for wchar.h.
56574         * modules/strftime (Files): Remove m4/mbstate_t.m4.
56575         (Depends-on): Remove mbrlen, mbsinit, wchar.
56577 2011-01-18  Bruno Haible  <bruno@clisp.org>
56579         Tests for module 'get-rusage-as'.
56580         * modules/get-rusage-as-tests: New file.
56581         * tests/test-get-rusage-as.c: New file.
56583         New module 'get-rusage-as'.
56584         * modules/get-rusage-as: New file.
56585         * lib/resource-ext.h: New file.
56586         * lib/get-rusage-as.c: New file.
56588 2011-01-17  Eric Blake  <eblake@redhat.com>
56590         sigaction: relax license from LGPLv3+ to LGPLv2+
56591         * modules/sigaction (License): Relax to LGPLv2+.
56593 2011-01-14  Bruno Haible  <bruno@clisp.org>
56595         filemode: Make function declarations usable in C++ mode.
56596         * lib/filemode.h: Enclose function declarations in extern "C" block.
56597         Reported by John W. Eaton <jwe@gnu.org>.
56599 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
56601         save-cwd: no longer include "xgetcwd.h"
56602         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
56603         This avoids a compilation failure in projects that use save-cwd
56604         without also using the xgetcwd module.
56606 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
56608         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
56609         This is so that a program like Emacs, which needs only dtoastr,
56610         does not have to bother with distributing and compiling ftoastr
56611         and ldtoastr.
56612         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
56613         * modules/dtoastr, modules/ldtoastr: New files.
56614         * modules/ftoastr: Now works just for 'float'.
56615         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
56616         (Makefile.am): Remove ftoastr.h (not needed and no effect),
56617         dtoastr.c, ldtoastr.c.
56619 2011-01-11  Jim Meyering  <meyering@redhat.com>
56621         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
56622         There is no need to work around the lack of the fchdir function,
56623         since gnulib can now provide a replacement when required.
56624         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
56625         * modules/save-cwd (Depends-on): Add fchdir.
56627 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
56629         openat, save-cwd: avoid xmalloc
56631         This removes a direct (but undocumented) dependency of openat on
56632         xalloc, along with an indirect dependency via save-cwd.  It also
56633         removes a dependency of save-cwd on xgetcwd, and thereby
56634         indirectly on xalloc.  This change causes the openat substitute
56635         to fall back on save_cwd when memory is tight, and for save_cwd to
56636         fail instead of dying when memory is tight, but that's good enough.
56637         Problem and initial idea for fix reported by Bastien Roucaries in
56638         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00170.html>.
56640         * lib/openat-proc.c: Include stdlib.h (for malloc), not
56641         xalloc.h (for xmalloc).
56642         (openat_proc_name): Use malloc, not xmalloc.
56643         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
56644         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
56646         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
56647         This avoids heap allocation for file names whose lengths are in
56648         the range 512..1023, with the upper bound increasing to at most
56649         4031 depending on the platform's PATH_MAX.  (We do not want
56650         pathmax.h here as it might supply a non-constant PATH_MAX.)
56651         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
56652         Perhaps they should be moved to malloca.h?
56653         (OPENAT_BUFFER_SIZE): Use them.
56655 2011-01-10  Bruno Haible  <bruno@clisp.org>
56657         doc: Update users.txt.
56658         * users.txt: Add recutils.
56660 2011-01-09  Karl Berry  <karl@gnu.org>
56662         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
56664         * doc/configmake.texi: New file.
56665         * doc/gnulib.texi: Include it.
56666         * modules/configmake: Move documentation from here.
56668 2011-01-09  Bruno Haible  <bruno@clisp.org>
56670         Update to Unicode 6.0.0.
56671         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
56672         (get_lbp): Update for Unicode 6.0.0.
56673         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
56674         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
56675         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
56676         U+11001, U+11038..U+11046. Remove U+06DE.
56677         (uc_width): Fix bounds of planes.
56678         * tests/uniwidth/test-uc_width2.sh: Same updates as in
56679         lib/uniwidth/width.c.
56680         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
56681         trailing whitespace removed.
56682         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
56683         without comments, but with the original copyright notice.
56684         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
56685         * lib/unicase/ignorable.h: Likewise.
56686         * lib/unicase/tocasefold.h: Likewise.
56687         * lib/unicase/tolower.h: Likewise.
56688         * lib/unicase/totitle.h: Likewise.
56689         * lib/unicase/toupper.h: Likewise.
56690         * lib/unictype/bidi_of.h: Likewise.
56691         * lib/unictype/blocks.h: Likewise.
56692         * lib/unictype/categ_C.h: Likewise.
56693         * lib/unictype/categ_Cn.h: Likewise.
56694         * lib/unictype/categ_L.h: Likewise.
56695         * lib/unictype/categ_Ll.h: Likewise.
56696         * lib/unictype/categ_Lm.h: Likewise.
56697         * lib/unictype/categ_Lo.h: Likewise.
56698         * lib/unictype/categ_Lu.h: Likewise.
56699         * lib/unictype/categ_M.h: Likewise.
56700         * lib/unictype/categ_Mc.h: Likewise.
56701         * lib/unictype/categ_Me.h: Likewise.
56702         * lib/unictype/categ_Mn.h: Likewise.
56703         * lib/unictype/categ_N.h: Likewise.
56704         * lib/unictype/categ_Nd.h: Likewise.
56705         * lib/unictype/categ_No.h: Likewise.
56706         * lib/unictype/categ_P.h: Likewise.
56707         * lib/unictype/categ_Po.h: Likewise.
56708         * lib/unictype/categ_S.h: Likewise.
56709         * lib/unictype/categ_Sc.h: Likewise.
56710         * lib/unictype/categ_Sk.h: Likewise.
56711         * lib/unictype/categ_Sm.h: Likewise.
56712         * lib/unictype/categ_So.h: Likewise.
56713         * lib/unictype/categ_of.h: Likewise.
56714         * lib/unictype/combining.h: Likewise.
56715         * lib/unictype/ctype_alnum.h: Likewise.
56716         * lib/unictype/ctype_alpha.h: Likewise.
56717         * lib/unictype/ctype_graph.h: Likewise.
56718         * lib/unictype/ctype_lower.h: Likewise.
56719         * lib/unictype/ctype_print.h: Likewise.
56720         * lib/unictype/ctype_punct.h: Likewise.
56721         * lib/unictype/ctype_upper.h: Likewise.
56722         * lib/unictype/decdigit.h: Likewise.
56723         * lib/unictype/digit.h: Likewise.
56724         * lib/unictype/numeric.h: Likewise.
56725         * lib/unictype/pr_alphabetic.h: Likewise.
56726         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
56727         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
56728         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
56729         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
56730         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
56731         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
56732         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
56733         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
56734         * lib/unictype/pr_case_ignorable.h: Likewise.
56735         * lib/unictype/pr_cased.h: Likewise.
56736         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
56737         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
56738         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
56739         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
56740         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
56741         * lib/unictype/pr_combining.h: Likewise.
56742         * lib/unictype/pr_composite.h: Likewise.
56743         * lib/unictype/pr_currency_symbol.h: Likewise.
56744         * lib/unictype/pr_decimal_digit.h: Likewise.
56745         * lib/unictype/pr_deprecated.h: Likewise.
56746         * lib/unictype/pr_format_control.h: Likewise.
56747         * lib/unictype/pr_grapheme_base.h: Likewise.
56748         * lib/unictype/pr_grapheme_extend.h: Likewise.
56749         * lib/unictype/pr_grapheme_link.h: Likewise.
56750         * lib/unictype/pr_id_continue.h: Likewise.
56751         * lib/unictype/pr_id_start.h: Likewise.
56752         * lib/unictype/pr_ideographic.h: Likewise.
56753         * lib/unictype/pr_lowercase.h: Likewise.
56754         * lib/unictype/pr_math.h: Likewise.
56755         * lib/unictype/pr_numeric.h: Likewise.
56756         * lib/unictype/pr_other_alphabetic.h: Likewise.
56757         * lib/unictype/pr_other_id_continue.h: Likewise.
56758         * lib/unictype/pr_other_math.h: Likewise.
56759         * lib/unictype/pr_punctuation.h: Likewise.
56760         * lib/unictype/pr_sentence_terminal.h: Likewise.
56761         * lib/unictype/pr_terminal_punctuation.h: Likewise.
56762         * lib/unictype/pr_unassigned_code_value.h: Likewise.
56763         * lib/unictype/pr_unified_ideograph.h: Likewise.
56764         * lib/unictype/pr_uppercase.h: Likewise.
56765         * lib/unictype/pr_xid_continue.h: Likewise.
56766         * lib/unictype/pr_xid_start.h: Likewise.
56767         * lib/unictype/scripts.h: Likewise.
56768         * lib/unictype/scripts_byname.gperf: Likewise.
56769         * lib/unictype/sy_java_ident.h: Likewise.
56770         * lib/unigbrk/gbrkprop.h: Likewise.
56771         * lib/unilbrk/lbrkprop1.h: Likewise.
56772         * lib/unilbrk/lbrkprop2.h: Likewise.
56773         * lib/uninorm/decomposition-table2.h: Likewise.
56774         * lib/uniwbrk/wbrkprop.h: Likewise.
56775         * tests/unicase/test-cased.c: Likewise.
56776         * tests/unicase/test-ignorable.c: Likewise.
56777         * tests/unicase/test-uc_tolower.c: Likewise.
56778         * tests/unicase/test-uc_totitle.c: Likewise.
56779         * tests/unicase/test-uc_toupper.c: Likewise.
56780         * tests/unictype/test-categ_C.c: Likewise.
56781         * tests/unictype/test-categ_Cn.c: Likewise.
56782         * tests/unictype/test-categ_L.c: Likewise.
56783         * tests/unictype/test-categ_Ll.c: Likewise.
56784         * tests/unictype/test-categ_Lm.c: Likewise.
56785         * tests/unictype/test-categ_Lo.c: Likewise.
56786         * tests/unictype/test-categ_Lu.c: Likewise.
56787         * tests/unictype/test-categ_M.c: Likewise.
56788         * tests/unictype/test-categ_Mc.c: Likewise.
56789         * tests/unictype/test-categ_Me.c: Likewise.
56790         * tests/unictype/test-categ_Mn.c: Likewise.
56791         * tests/unictype/test-categ_N.c: Likewise.
56792         * tests/unictype/test-categ_Nd.c: Likewise.
56793         * tests/unictype/test-categ_No.c: Likewise.
56794         * tests/unictype/test-categ_P.c: Likewise.
56795         * tests/unictype/test-categ_Po.c: Likewise.
56796         * tests/unictype/test-categ_S.c: Likewise.
56797         * tests/unictype/test-categ_Sc.c: Likewise.
56798         * tests/unictype/test-categ_Sk.c: Likewise.
56799         * tests/unictype/test-categ_Sm.c: Likewise.
56800         * tests/unictype/test-categ_So.c: Likewise.
56801         * tests/unictype/test-ctype_alnum.c: Likewise.
56802         * tests/unictype/test-ctype_alpha.c: Likewise.
56803         * tests/unictype/test-ctype_graph.c: Likewise.
56804         * tests/unictype/test-ctype_lower.c: Likewise.
56805         * tests/unictype/test-ctype_print.c: Likewise.
56806         * tests/unictype/test-ctype_punct.c: Likewise.
56807         * tests/unictype/test-ctype_upper.c: Likewise.
56808         * tests/unictype/test-decdigit.h: Likewise.
56809         * tests/unictype/test-digit.h: Likewise.
56810         * tests/unictype/test-numeric.h: Likewise.
56811         * tests/unictype/test-pr_alphabetic.c: Likewise.
56812         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
56813         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
56814         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
56815         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
56816         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
56817         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
56818         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
56819         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
56820         * tests/unictype/test-pr_case_ignorable.c: Likewise.
56821         * tests/unictype/test-pr_cased.c: Likewise.
56822         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
56823         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
56824         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
56825         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
56826         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
56827         * tests/unictype/test-pr_combining.c: Likewise.
56828         * tests/unictype/test-pr_composite.c: Likewise.
56829         * tests/unictype/test-pr_currency_symbol.c: Likewise.
56830         * tests/unictype/test-pr_decimal_digit.c: Likewise.
56831         * tests/unictype/test-pr_deprecated.c: Likewise.
56832         * tests/unictype/test-pr_format_control.c: Likewise.
56833         * tests/unictype/test-pr_grapheme_base.c: Likewise.
56834         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
56835         * tests/unictype/test-pr_grapheme_link.c: Likewise.
56836         * tests/unictype/test-pr_id_continue.c: Likewise.
56837         * tests/unictype/test-pr_id_start.c: Likewise.
56838         * tests/unictype/test-pr_ideographic.c: Likewise.
56839         * tests/unictype/test-pr_lowercase.c: Likewise.
56840         * tests/unictype/test-pr_math.c: Likewise.
56841         * tests/unictype/test-pr_numeric.c: Likewise.
56842         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
56843         * tests/unictype/test-pr_other_id_continue.c: Likewise.
56844         * tests/unictype/test-pr_other_math.c: Likewise.
56845         * tests/unictype/test-pr_punctuation.c: Likewise.
56846         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
56847         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
56848         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
56849         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
56850         * tests/unictype/test-pr_uppercase.c: Likewise.
56851         * tests/unictype/test-pr_xid_continue.c: Likewise.
56852         * tests/unictype/test-pr_xid_start.c: Likewise.
56853         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
56854         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
56855         changes.
56856         * lib/unictype/categ_Cc.h: Likewise.
56857         * lib/unictype/categ_Cf.h: Likewise.
56858         * lib/unictype/categ_Co.h: Likewise.
56859         * lib/unictype/categ_Cs.h: Likewise.
56860         * lib/unictype/categ_Lt.h: Likewise.
56861         * lib/unictype/categ_Nl.h: Likewise.
56862         * lib/unictype/categ_Pc.h: Likewise.
56863         * lib/unictype/categ_Pd.h: Likewise.
56864         * lib/unictype/categ_Pe.h: Likewise.
56865         * lib/unictype/categ_Pf.h: Likewise.
56866         * lib/unictype/categ_Pi.h: Likewise.
56867         * lib/unictype/categ_Ps.h: Likewise.
56868         * lib/unictype/categ_Z.h: Likewise.
56869         * lib/unictype/categ_Zl.h: Likewise.
56870         * lib/unictype/categ_Zp.h: Likewise.
56871         * lib/unictype/categ_Zs.h: Likewise.
56872         * lib/unictype/ctype_blank.h: Likewise.
56873         * lib/unictype/ctype_cntrl.h: Likewise.
56874         * lib/unictype/ctype_digit.h: Likewise.
56875         * lib/unictype/ctype_space.h: Likewise.
56876         * lib/unictype/ctype_xdigit.h: Likewise.
56877         * lib/unictype/mirror.h: Likewise.
56878         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
56879         * lib/unictype/pr_bidi_block_separator.h: Likewise.
56880         * lib/unictype/pr_bidi_common_separator.h: Likewise.
56881         * lib/unictype/pr_bidi_control.h: Likewise.
56882         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
56883         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
56884         * lib/unictype/pr_bidi_european_digit.h: Likewise.
56885         * lib/unictype/pr_bidi_pdf.h: Likewise.
56886         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
56887         * lib/unictype/pr_bidi_whitespace.h: Likewise.
56888         * lib/unictype/pr_dash.h: Likewise.
56889         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
56890         * lib/unictype/pr_diacritic.h: Likewise.
56891         * lib/unictype/pr_extender.h: Likewise.
56892         * lib/unictype/pr_hex_digit.h: Likewise.
56893         * lib/unictype/pr_hyphen.h: Likewise.
56894         * lib/unictype/pr_ids_binary_operator.h: Likewise.
56895         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
56896         * lib/unictype/pr_ignorable_control.h: Likewise.
56897         * lib/unictype/pr_iso_control.h: Likewise.
56898         * lib/unictype/pr_join_control.h: Likewise.
56899         * lib/unictype/pr_left_of_pair.h: Likewise.
56900         * lib/unictype/pr_line_separator.h: Likewise.
56901         * lib/unictype/pr_logical_order_exception.h: Likewise.
56902         * lib/unictype/pr_non_break.h: Likewise.
56903         * lib/unictype/pr_not_a_character.h: Likewise.
56904         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
56905         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
56906         * lib/unictype/pr_other_id_start.h: Likewise.
56907         * lib/unictype/pr_other_lowercase.h: Likewise.
56908         * lib/unictype/pr_other_uppercase.h: Likewise.
56909         * lib/unictype/pr_paired_punctuation.h: Likewise.
56910         * lib/unictype/pr_paragraph_separator.h: Likewise.
56911         * lib/unictype/pr_pattern_syntax.h: Likewise.
56912         * lib/unictype/pr_pattern_white_space.h: Likewise.
56913         * lib/unictype/pr_private_use.h: Likewise.
56914         * lib/unictype/pr_quotation_mark.h: Likewise.
56915         * lib/unictype/pr_radical.h: Likewise.
56916         * lib/unictype/pr_soft_dotted.h: Likewise.
56917         * lib/unictype/pr_space.h: Likewise.
56918         * lib/unictype/pr_titlecase.h: Likewise.
56919         * lib/unictype/pr_variation_selector.h: Likewise.
56920         * lib/unictype/pr_white_space.h: Likewise.
56921         * lib/unictype/pr_zero_width.h: Likewise.
56922         * lib/unictype/sy_c_ident.h: Likewise.
56923         * lib/unictype/sy_c_whitespace.h: Likewise.
56924         * lib/unictype/sy_java_whitespace.h: Likewise.
56925         * lib/uninorm/composition-table.gperf: Likewise.
56926         * lib/uninorm/decomposition-table1.h: Likewise.
56927         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
56928         LB8.
56929         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
56930         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
56931         * modules/unictype/*: Bump version number of expected libunistring
56932         version.
56934 2011-01-09  Bruno Haible  <bruno@clisp.org>
56936         Update to Unicode 5.2.0.
56937         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
56938         trailing whitespace removed.
56940 2011-01-09  Bruno Haible  <bruno@clisp.org>
56942         New Unicode character properties, from Unicode 5.2.0.
56943         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
56944         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
56945         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
56946         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
56947         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
56948         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
56949         uc_is_property_cased, uc_is_property_case_ignorable,
56950         uc_is_property_changes_when_lowercased,
56951         uc_is_property_changes_when_uppercased,
56952         uc_is_property_changes_when_titlecased,
56953         uc_is_property_changes_when_casefolded,
56954         uc_is_property_changes_when_casemapped): New declarations.
56955         * lib/unictype/pr_byname.gperf: Add the new properties.
56956         * modules/unictype/property-byname (Depends-on): Depend on the new
56957         properties modules.
56958         * modules/unictype/property-all (Depends-on): Likewise.
56959         * MODULES.html.sh (Unicode string functions): Add
56960         unictype/property-case-ignorable, unictype/property-cased,
56961         unictype/property-changes-when-casefolded,
56962         unictype/property-changes-when-casemapped,
56963         unictype/property-changes-when-lowercased,
56964         unictype/property-changes-when-titlecased,
56965         unictype/property-changes-when-uppercased.
56967         New module 'unictype/property-changes-when-casemapped'.
56968         * modules/unictype/property-changes-when-casemapped: New file.
56969         * lib/unictype/pr_changes_when_casemapped.c: New file.
56970         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
56971         generated by gen-uni-tables.
56972         * modules/unictype/property-changes-when-casemapped-tests: New file.
56973         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
56974         automatically generated by gen-uni-tables.
56976         New module 'unictype/property-changes-when-casefolded'.
56977         * modules/unictype/property-changes-when-casefolded: New file.
56978         * lib/unictype/pr_changes_when_casefolded.c: New file.
56979         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
56980         generated by gen-uni-tables.
56981         * modules/unictype/property-changes-when-casefolded-tests: New file.
56982         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
56983         automatically generated by gen-uni-tables.
56985         New module 'unictype/property-changes-when-titlecased'.
56986         * modules/unictype/property-changes-when-titlecased: New file.
56987         * lib/unictype/pr_changes_when_titlecased.c: New file.
56988         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
56989         generated by gen-uni-tables.
56990         * modules/unictype/property-changes-when-titlecased-tests: New file.
56991         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
56992         automatically generated by gen-uni-tables.
56994         New module 'unictype/property-changes-when-uppercased'.
56995         * modules/unictype/property-changes-when-uppercased: New file.
56996         * lib/unictype/pr_changes_when_uppercased.c: New file.
56997         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
56998         generated by gen-uni-tables.
56999         * modules/unictype/property-changes-when-uppercased-tests: New file.
57000         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
57001         automatically generated by gen-uni-tables.
57003         New module 'unictype/property-changes-when-lowercased'.
57004         * modules/unictype/property-changes-when-lowercased: New file.
57005         * lib/unictype/pr_changes_when_lowercased.c: New file.
57006         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
57007         generated by gen-uni-tables.
57008         * modules/unictype/property-changes-when-lowercased-tests: New file.
57009         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
57010         automatically generated by gen-uni-tables.
57012         New module 'unictype/property-case-ignorable'.
57013         * modules/unictype/property-case-ignorable: New file.
57014         * lib/unictype/pr_case_ignorable.c: New file.
57015         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
57016         by gen-uni-tables.
57017         * modules/unictype/property-case-ignorable-tests: New file.
57018         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
57019         generated by gen-uni-tables.
57021         New module 'unictype/property-cased'.
57022         * modules/unictype/property-cased: New file.
57023         * lib/unictype/pr_cased.c: New file.
57024         * lib/unictype/pr_cased.h: New file, automatically generated by
57025         gen-uni-tables.
57026         * modules/unictype/property-cased-tests: New file.
57027         * tests/unictype/test-pr_cased.c: New file, automatically generated by
57028         gen-uni-tables.
57030 2011-01-09  Bruno Haible  <bruno@clisp.org>
57032         Update to Unicode 5.2.0.
57033         * lib/gen-uni-tables.c (output_predicate, output_category,
57034         output_combclass, output_bidi_category, output_decimal_digit_test,
57035         output_decimal_digit, output_digit_test, output_digit,
57036         output_numeric_test, output_numeric, output_mirror, output_scripts,
57037         output_scripts_byname, output_blocks, output_ident_category): Fix
57038         comment header.
57039         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
57040         get_wbp.
57041         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
57042         items.
57043         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
57044         Changes_When_Lowercased, Changes_When_Uppercased,
57045         Changes_When_Titlecased, Changes_When_Casefolded,
57046         Changes_When_Casemapped.
57047         (is_property_alphabetic, is_property_default_ignorable_code_point):
57048         Update for Unicode 5.2.0.
57049         (is_property_cased, is_property_case_ignorable,
57050         is_property_changes_when_lowercased,
57051         is_property_changes_when_uppercased,
57052         is_property_changes_when_titlecased,
57053         is_property_changes_when_casefolded,
57054         is_property_changes_when_casemapped): New functions.
57055         (output_properties): Output also the properties cased, case_ignorable,
57056         changes_when_lowercased, changes_when_uppercased,
57057         changes_when_titlecased, changes_when_casefolded,
57058         changes_when_casemapped.
57059         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
57060         Unicode TR#11 revision 17 -> 19.
57061         (LBP_CP): New enumeration value.
57062         (LBP_*): Adjust values accordingly.
57063         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
57064         TR#14 revision 22 -> 24.
57065         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
57066         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
57067         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
57068         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
57069         is_WBP_MIDLETTER.
57070         (output_composition_tables): Allow for 24 bits instead of 16 bits in
57071         the code1 and code2 of each composition rule.
57072         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
57073         * lib/unicase/ignorable.h: Likewise.
57074         * lib/unicase/tocasefold.h: Likewise.
57075         * lib/unicase/tolower.h: Likewise.
57076         * lib/unicase/totitle.h: Likewise.
57077         * lib/unicase/toupper.h: Likewise.
57078         * lib/unictype/bidi_of.h: Likewise.
57079         * lib/unictype/blocks.h: Likewise.
57080         * lib/unictype/categ_C.h: Likewise.
57081         * lib/unictype/categ_Cf.h: Likewise.
57082         * lib/unictype/categ_Cn.h: Likewise.
57083         * lib/unictype/categ_L.h: Likewise.
57084         * lib/unictype/categ_Ll.h: Likewise.
57085         * lib/unictype/categ_Lm.h: Likewise.
57086         * lib/unictype/categ_Lo.h: Likewise.
57087         * lib/unictype/categ_Lu.h: Likewise.
57088         * lib/unictype/categ_M.h: Likewise.
57089         * lib/unictype/categ_Mc.h: Likewise.
57090         * lib/unictype/categ_Mn.h: Likewise.
57091         * lib/unictype/categ_N.h: Likewise.
57092         * lib/unictype/categ_Nd.h: Likewise.
57093         * lib/unictype/categ_Nl.h: Likewise.
57094         * lib/unictype/categ_No.h: Likewise.
57095         * lib/unictype/categ_P.h: Likewise.
57096         * lib/unictype/categ_Pd.h: Likewise.
57097         * lib/unictype/categ_Po.h: Likewise.
57098         * lib/unictype/categ_S.h: Likewise.
57099         * lib/unictype/categ_Sc.h: Likewise.
57100         * lib/unictype/categ_So.h: Likewise.
57101         * lib/unictype/categ_of.h: Likewise.
57102         * lib/unictype/combining.h: Likewise.
57103         * lib/unictype/ctype_alnum.h: Likewise.
57104         * lib/unictype/ctype_alpha.h: Likewise.
57105         * lib/unictype/ctype_graph.h: Likewise.
57106         * lib/unictype/ctype_lower.h: Likewise.
57107         * lib/unictype/ctype_print.h: Likewise.
57108         * lib/unictype/ctype_punct.h: Likewise.
57109         * lib/unictype/ctype_upper.h: Likewise.
57110         * lib/unictype/decdigit.h: Likewise.
57111         * lib/unictype/digit.h: Likewise.
57112         * lib/unictype/numeric.h: Likewise.
57113         * lib/unictype/pr_alphabetic.h: Likewise.
57114         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
57115         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
57116         * lib/unictype/pr_bidi_european_digit.h: Likewise.
57117         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
57118         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
57119         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
57120         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
57121         * lib/unictype/pr_combining.h: Likewise.
57122         * lib/unictype/pr_composite.h: Likewise.
57123         * lib/unictype/pr_currency_symbol.h: Likewise.
57124         * lib/unictype/pr_dash.h: Likewise.
57125         * lib/unictype/pr_decimal_digit.h: Likewise.
57126         * lib/unictype/pr_deprecated.h: Likewise.
57127         * lib/unictype/pr_diacritic.h: Likewise.
57128         * lib/unictype/pr_extender.h: Likewise.
57129         * lib/unictype/pr_grapheme_base.h: Likewise.
57130         * lib/unictype/pr_grapheme_extend.h: Likewise.
57131         * lib/unictype/pr_grapheme_link.h: Likewise.
57132         * lib/unictype/pr_id_continue.h: Likewise.
57133         * lib/unictype/pr_id_start.h: Likewise.
57134         * lib/unictype/pr_ideographic.h: Likewise.
57135         * lib/unictype/pr_ignorable_control.h: Likewise.
57136         * lib/unictype/pr_logical_order_exception.h: Likewise.
57137         * lib/unictype/pr_lowercase.h: Likewise.
57138         * lib/unictype/pr_numeric.h: Likewise.
57139         * lib/unictype/pr_other_alphabetic.h: Likewise.
57140         * lib/unictype/pr_punctuation.h: Likewise.
57141         * lib/unictype/pr_sentence_terminal.h: Likewise.
57142         * lib/unictype/pr_terminal_punctuation.h: Likewise.
57143         * lib/unictype/pr_unassigned_code_value.h: Likewise.
57144         * lib/unictype/pr_unified_ideograph.h: Likewise.
57145         * lib/unictype/pr_uppercase.h: Likewise.
57146         * lib/unictype/pr_xid_continue.h: Likewise.
57147         * lib/unictype/pr_xid_start.h: Likewise.
57148         * lib/unictype/pr_zero_width.h: Likewise.
57149         * lib/unictype/scripts.h: Likewise.
57150         * lib/unictype/scripts_byname.gperf: Likewise.
57151         * lib/unictype/sy_java_ident.h: Likewise.
57152         * lib/unigbrk/gbrkprop.h: Likewise.
57153         * lib/unilbrk/lbrkprop1.h: Likewise.
57154         * lib/unilbrk/lbrkprop2.h: Likewise.
57155         * lib/unilbrk/lbrktables.h: Likewise.
57156         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
57157         LBP_CP. Implement rule LB30.
57158         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
57159         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
57160         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
57161         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
57162         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
57163         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
57164         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
57165         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
57166         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
57167         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
57168         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
57169         bits instead of 16 bits in the code1 and code2 of each composition
57170         rule.
57171         (uc_composition): Update for Unicode 5.2.0.
57172         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
57173         * lib/uninorm/decomposition-table2.h: Likewise.
57174         * lib/uniwbrk/wbrkprop.h: Likewise.
57175         * tests/unicase/test-cased.c: Likewise.
57176         * tests/unicase/test-ignorable.c: Likewise.
57177         * tests/unicase/test-uc_tolower.c: Likewise.
57178         * tests/unicase/test-uc_totitle.c: Likewise.
57179         * tests/unicase/test-uc_toupper.c: Likewise.
57180         * tests/unictype/test-categ_C.c: Likewise.
57181         * tests/unictype/test-categ_Cf.c: Likewise.
57182         * tests/unictype/test-categ_Cn.c: Likewise.
57183         * tests/unictype/test-categ_L.c: Likewise.
57184         * tests/unictype/test-categ_Ll.c: Likewise.
57185         * tests/unictype/test-categ_Lm.c: Likewise.
57186         * tests/unictype/test-categ_Lo.c: Likewise.
57187         * tests/unictype/test-categ_Lu.c: Likewise.
57188         * tests/unictype/test-categ_M.c: Likewise.
57189         * tests/unictype/test-categ_Mc.c: Likewise.
57190         * tests/unictype/test-categ_Mn.c: Likewise.
57191         * tests/unictype/test-categ_N.c: Likewise.
57192         * tests/unictype/test-categ_Nd.c: Likewise.
57193         * tests/unictype/test-categ_Nl.c: Likewise.
57194         * tests/unictype/test-categ_No.c: Likewise.
57195         * tests/unictype/test-categ_P.c: Likewise.
57196         * tests/unictype/test-categ_Pd.c: Likewise.
57197         * tests/unictype/test-categ_Po.c: Likewise.
57198         * tests/unictype/test-categ_S.c: Likewise.
57199         * tests/unictype/test-categ_Sc.c: Likewise.
57200         * tests/unictype/test-categ_So.c: Likewise.
57201         * tests/unictype/test-ctype_alnum.c: Likewise.
57202         * tests/unictype/test-ctype_alpha.c: Likewise.
57203         * tests/unictype/test-ctype_graph.c: Likewise.
57204         * tests/unictype/test-ctype_lower.c: Likewise.
57205         * tests/unictype/test-ctype_print.c: Likewise.
57206         * tests/unictype/test-ctype_punct.c: Likewise.
57207         * tests/unictype/test-ctype_upper.c: Likewise.
57208         * tests/unictype/test-decdigit.h: Likewise.
57209         * tests/unictype/test-digit.h: Likewise.
57210         * tests/unictype/test-numeric.h: Likewise.
57211         * tests/unictype/test-pr_alphabetic.c: Likewise.
57212         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
57213         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
57214         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
57215         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
57216         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
57217         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
57218         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
57219         * tests/unictype/test-pr_combining.c: Likewise.
57220         * tests/unictype/test-pr_composite.c: Likewise.
57221         * tests/unictype/test-pr_currency_symbol.c: Likewise.
57222         * tests/unictype/test-pr_dash.c: Likewise.
57223         * tests/unictype/test-pr_decimal_digit.c: Likewise.
57224         * tests/unictype/test-pr_deprecated.c: Likewise.
57225         * tests/unictype/test-pr_diacritic.c: Likewise.
57226         * tests/unictype/test-pr_extender.c: Likewise.
57227         * tests/unictype/test-pr_grapheme_base.c: Likewise.
57228         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
57229         * tests/unictype/test-pr_grapheme_link.c: Likewise.
57230         * tests/unictype/test-pr_id_continue.c: Likewise.
57231         * tests/unictype/test-pr_id_start.c: Likewise.
57232         * tests/unictype/test-pr_ideographic.c: Likewise.
57233         * tests/unictype/test-pr_ignorable_control.c: Likewise.
57234         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
57235         * tests/unictype/test-pr_lowercase.c: Likewise.
57236         * tests/unictype/test-pr_numeric.c: Likewise.
57237         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
57238         * tests/unictype/test-pr_punctuation.c: Likewise.
57239         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
57240         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
57241         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
57242         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
57243         * tests/unictype/test-pr_uppercase.c: Likewise.
57244         * tests/unictype/test-pr_xid_continue.c: Likewise.
57245         * tests/unictype/test-pr_xid_start.c: Likewise.
57246         * tests/unictype/test-pr_zero_width.c: Likewise.
57247         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
57248         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
57249         changed behaviour: line breaking is now disallowed between a letter
57250         or '=' and '('.
57251         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
57252         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
57253         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
57254         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
57255         * tests/uniwidth/test-uc_width2.sh: Same updates as in
57256         lib/uniwidth/width.c.
57257         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
57258         without comments, but with the original copyright notice.
57259         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
57260         changes.
57261         * lib/unictype/categ_Cc.h: Likewise.
57262         * lib/unictype/categ_Co.h: Likewise.
57263         * lib/unictype/categ_Cs.h: Likewise.
57264         * lib/unictype/categ_Lt.h: Likewise.
57265         * lib/unictype/categ_Me.h: Likewise.
57266         * lib/unictype/categ_Pc.h: Likewise.
57267         * lib/unictype/categ_Pe.h: Likewise.
57268         * lib/unictype/categ_Pf.h: Likewise.
57269         * lib/unictype/categ_Pi.h: Likewise.
57270         * lib/unictype/categ_Ps.h: Likewise.
57271         * lib/unictype/categ_Sk.h: Likewise.
57272         * lib/unictype/categ_Sm.h: Likewise.
57273         * lib/unictype/categ_Z.h: Likewise.
57274         * lib/unictype/categ_Zl.h: Likewise.
57275         * lib/unictype/categ_Zp.h: Likewise.
57276         * lib/unictype/categ_Zs.h: Likewise.
57277         * lib/unictype/ctype_blank.h: Likewise.
57278         * lib/unictype/ctype_cntrl.h: Likewise.
57279         * lib/unictype/ctype_digit.h: Likewise.
57280         * lib/unictype/ctype_space.h: Likewise.
57281         * lib/unictype/ctype_xdigit.h: Likewise.
57282         * lib/unictype/mirror.h: Likewise.
57283         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
57284         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
57285         * lib/unictype/pr_bidi_block_separator.h: Likewise.
57286         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
57287         * lib/unictype/pr_bidi_common_separator.h: Likewise.
57288         * lib/unictype/pr_bidi_control.h: Likewise.
57289         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
57290         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
57291         * lib/unictype/pr_bidi_pdf.h: Likewise.
57292         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
57293         * lib/unictype/pr_bidi_whitespace.h: Likewise.
57294         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
57295         * lib/unictype/pr_format_control.h: Likewise.
57296         * lib/unictype/pr_hex_digit.h: Likewise.
57297         * lib/unictype/pr_hyphen.h: Likewise.
57298         * lib/unictype/pr_ids_binary_operator.h: Likewise.
57299         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
57300         * lib/unictype/pr_iso_control.h: Likewise.
57301         * lib/unictype/pr_join_control.h: Likewise.
57302         * lib/unictype/pr_left_of_pair.h: Likewise.
57303         * lib/unictype/pr_line_separator.h: Likewise.
57304         * lib/unictype/pr_math.h: Likewise.
57305         * lib/unictype/pr_non_break.h: Likewise.
57306         * lib/unictype/pr_not_a_character.h: Likewise.
57307         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
57308         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
57309         * lib/unictype/pr_other_id_continue.h: Likewise.
57310         * lib/unictype/pr_other_id_start.h: Likewise.
57311         * lib/unictype/pr_other_lowercase.h: Likewise.
57312         * lib/unictype/pr_other_math.h: Likewise.
57313         * lib/unictype/pr_other_uppercase.h: Likewise.
57314         * lib/unictype/pr_paired_punctuation.h: Likewise.
57315         * lib/unictype/pr_paragraph_separator.h: Likewise.
57316         * lib/unictype/pr_pattern_syntax.h: Likewise.
57317         * lib/unictype/pr_pattern_white_space.h: Likewise.
57318         * lib/unictype/pr_private_use.h: Likewise.
57319         * lib/unictype/pr_quotation_mark.h: Likewise.
57320         * lib/unictype/pr_radical.h: Likewise.
57321         * lib/unictype/pr_soft_dotted.h: Likewise.
57322         * lib/unictype/pr_space.h: Likewise.
57323         * lib/unictype/pr_titlecase.h: Likewise.
57324         * lib/unictype/pr_variation_selector.h: Likewise.
57325         * lib/unictype/pr_white_space.h: Likewise.
57326         * lib/unictype/sy_c_ident.h: Likewise.
57327         * lib/unictype/sy_c_whitespace.h: Likewise.
57328         * lib/unictype/sy_java_whitespace.h: Likewise.
57329         * modules/uni*/*: Bump version number of expected libunistring version.
57330         Reported by Simon Josefsson.
57332 2011-01-09  Karl Heuer  <kwzh@gnu.org>
57334         useless-if-before-free: fix typo in --help and make the internal,
57335         automatic version date update process work once again.
57336         --help output contained a NUL character instead of the
57337         backslash-zero that was intended.  Also, the "must lie within
57338         the first 8 lines" line is on line 9, and hence not getting
57339         automatically updated.
57340         * build-aux/useless-if-before-free: Fix the former by adding a
57341         backslash, and the latter by condensing the three lines of what-it-does
57342         to a single line, leaving one line of slack for the future.
57344 2011-01-09  Bruno Haible  <bruno@clisp.org>
57346         uniwidth/width: Fix width of U+1D173..U+1D17A.
57347         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
57348         symbolic_width, output_width_property_test): New functions.
57349         (main): Invoke output_nonspacing_property, output_width_property_test.
57350         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
57351         U+1D173..U+1D17A.
57352         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
57353         1.
57354         * modules/uniwidth/*: Bump version number of expected libunistring
57355         version.
57356         * modules/unilbrk/*: Likewise.
57358 2011-01-08  Bruno Haible  <bruno@clisp.org>
57360         uninorm tests: Preserve copyright of Unicode data file.
57361         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
57362         Mention modifications.
57364 2011-01-08  Bruno Haible  <bruno@clisp.org>
57366         gen-uni-tables: Prepare for Unicode 5.2.0.
57367         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
57368         (debug_output_lbp, output_lbp): Update.
57370 2011-01-08  Bruno Haible  <bruno@clisp.org>
57372         unilbrk: Clarify gen-uni-tables.c code.
57373         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
57374         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
57375         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
57377 2011-01-07  Bruno Haible  <bruno@clisp.org>
57379         strtod: Restore errno when successfully parsing Infinity or NaN.
57380         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
57381         restore the original errno.
57383 2011-01-07  Bruno Haible  <bruno@clisp.org>
57385         remove test: Avoid failure on HP-UX 11.
57386         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
57388 2011-01-07  Bruno Haible  <bruno@clisp.org>
57390         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
57391         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
57392         error code.
57394 2011-01-07  Pádraig Brady  <P@draigBrady.com>
57396         ignore-value: fixup comments, and add Eric Blake
57397         as an author since he rewrote the macros.
57398         * lib/ignore-value.h (ignore_value):  State that
57399         we now support aggregates.  Also specify exactly
57400         when the GCC warn_unused_result feature was added.
57402 2011-01-06  Eric Blake  <eblake@redhat.com>
57404         ignore-value: support aggregate types
57405         * lib/ignore-value.h (ignore_value): Provide separate gcc
57406         definition.
57407         * modules/ignore-value-tests: New test module.
57408         * tests/test-ignore-value.c: New test.
57410         maint.mk: improve sc_prohibit_strcmp regex
57411         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
57412         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
57413         definition of STRNEQ.
57415         signal: work around Haiku issue with SIGBUS
57416         * lib/siglist.h: Add comment.
57417         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
57418         strsignal's favoring of SIGSEGV.
57419         * tests/test-signal.c (main): Avoid test failure.
57420         * doc/posix-headers/signal.texi (signal.h): Document the issue.
57421         Reported by Scott McCreary.
57423         maint.mk: add pre-release check to ensure submodule commits are public
57424         * top/maint.mk (public-submodule-commit): New rule.
57425         (submodule-checks): New variable.
57426         (alpha beta stable): Depend on the variable.
57428 2011-01-05  Pádraig Brady  <P@draigBrady.com>
57429         and Jim Meyering  <meyering@redhat.com>
57431         ignore-value: make ignore_value more generic; deprecate ignore_ptr
57432         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
57433         (ATTRIBUTE_DEPRECATED): Define.
57434         (_ignore_case): New function.
57435         (ignore_value): New macro, to replace the old function.
57436         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
57437         * modules/ignore-value (Depends-on): Add stdint.
57439 2011-01-04  Eric Blake  <eblake@redhat.com>
57441         doc: regenerate INSTALL
57442         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
57443         @firstparagraphindent support, now that autoconf dropped it.
57444         (INSTALL_PRELUDE): Reinstate old macro.
57445         * doc/install.texi: Resync from autoconf.
57446         * doc/INSTALL: Reflect recent autoconf update.
57447         * doc/INSTALL.ISO: Likewise.
57448         * doc/INSTALL.UTF-8: Likewise.
57449         Reported by Karl Berry.
57451 2011-01-04  Bruce Korb  <address@hidden>
57453         git-version-gen: avoid a sub-shell
57454         * build-aux/git-version-gen: Redirect stderr in `...` via
57455         "exec 2>...", rather than via an added sub-shell.
57457 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
57459         git-version-gen: use (...) rather than sh -c '...'
57460         * build-aux/git-version-gen: Rather than hard-coding a shell's name
57461         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
57463 2011-01-03  Jim Meyering  <meyering@redhat.com>
57465         git-version-gen: convert leading TABs to spaces
57466         * build-aux/git-version-gen: Expand leading TABs.
57468         git-version-gen: handle failed "git rev-list"
57469         * build-aux/git-version-gen: Rather than leaking a "fatal" error
57470         from git and proceeding as if it had succeeded but printed no SHA1
57471         checksums, suppress the diagnostic and handle the failure.
57472         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
57474         git-version-gen: include command name in one more diagnostic
57475         * build-aux/git-version-gen: When the required .tarball-version file
57476         was missing or unreadable, you might see the diagnostic from "cat",
57477         but no trace of the name of the invoking script.  Now, you still see
57478         the diagnostic from cat, but also get one from "git-version-gen: ".
57479         Inspired by a patch from Bruce Korb.
57481         update-copyright: adjust test to match changed code
57482         * tests/test-update-copyright.sh: Change test's expected output
57483         to match new actual output.
57485 2011-01-02  Bruno Haible  <bruno@clisp.org>
57487         getlogin_r: Avoid test failure on HP-UX 11.
57488         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
57489         ERANGE when the second argument is zero.
57490         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
57491         portability problem.
57493 2011-01-02  Bruce Korb  <bkorb@gnu.org>
57495         * build-aux/update-copyright: doc Simon's changes
57497 2011-01-02  Simon Josefsson  <simon@josefsson.org>
57499         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
57500         environment variable.
57502 2011-01-02  Bruno Haible  <bruno@clisp.org>
57504         unigbrk: Avoid gcc warnings.
57505         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
57506         unused variable.
57507         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
57508         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
57509         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
57510         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
57511         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
57512         Change type of first argument to 'const char *'.
57513         (main): Remove unused variable.
57514         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
57515         type of first argument to 'const char *'.
57516         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
57517         Likewise.
57518         (main): Change type of variable 's'.
57519         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
57520         to 'int'.
57522 2011-01-02  Bruno Haible  <bruno@clisp.org>
57524         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
57525         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
57526         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
57527         bug.
57528         * lib/pwrite.c: Undo 2010-12-31 patch.
57529         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
57531 2011-01-02  Bruno Haible  <bruno@clisp.org>
57533         pread: Fix test whether it works.
57534         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
57536 2011-01-02  Bruno Haible  <bruno@clisp.org>
57538         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
57539         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
57540         ends in "6". Don't require a specific month name. Try also the locale
57541         names found on HP-UX 11 and Solaris 7.
57543 2011-01-02  Bruno Haible  <bruno@clisp.org>
57545         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
57546         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
57547         C linkage.
57548         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
57550 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
57552         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
57553         for consistency, since the "cluster" term is not used elsewhere.
57554         * lib/unigbrk.in.h: Update name.
57555         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
57556         * lib/unigbrk/u16-grapheme-next.c: Update name.
57557         * lib/unigbrk/u16-grapheme-prev.c: Update name.
57558         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
57559         * lib/unigbrk/u32-grapheme-next.c: Update name.
57560         * lib/unigbrk/u32-grapheme-prev.c: Update name.
57561         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
57562         * lib/unigbrk/u8-grapheme-next.c: Update name.
57563         * lib/unigbrk/u8-grapheme-prev.c: Update name.
57564         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
57565         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
57566         Suggested by Bruno Haible.
57568 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
57570         Remove module 'u8-grapheme-len' as too redundant with
57571         'u8-grapheme-next'.
57572         * modules/unigbrk/u8-grapheme-len: Delete file.
57573         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
57574         * lib/unigbrk.in.h: Remove prototype for deleted function.
57575         * lib/unigbrk/u8-grapheme-len.c: Delete file.
57576         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
57578         Remove module 'u16-grapheme-len' as too redundant with
57579         'u16-grapheme-next'.
57580         * modules/unigbrk/u16-grapheme-len: Delete file.
57581         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
57582         * lib/unigbrk.in.h: Remove prototype for deleted function.
57583         * lib/unigbrk/u16-grapheme-len.c: Delete file.
57584         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
57586         Remove module 'u32-grapheme-len' as too redundant with
57587         'u32-grapheme-next'.
57588         * modules/unigbrk/u32-grapheme-len: Delete file.
57589         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
57590         * lib/unigbrk.in.h: Remove prototype for deleted function.
57591         * lib/unigbrk/u32-grapheme-len.c: Delete file.
57592         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
57594         Suggested by Bruno Haible.
57596 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
57598         * unigbrk.in.h: Fix typo: "ben" => "been".
57599         Reported by Bruno Haible.
57601 2011-01-01  Jim Meyering  <meyering@redhat.com>
57603         maint: update almost all copyright ranges to include 2011
57604         Run the new "make update-copyright" rule.
57606 2011-01-01  Jim Meyering  <meyering@redhat.com>
57608         maint: update-copyright: exempt doc/INSTALL*
57609         * Makefile (update-copyright): Also exclude doc/INSTALL*,
57610         since they are generated.  Suggested by Bruno Haible.
57612 2011-01-01  Jim Meyering  <meyering@redhat.com>
57614         maint: refine the update-copyright rule
57615         * Makefile (update-copyright): Also exclude any file that includes
57616         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
57617         code that merely generates the comment.
57619 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
57621         New module 'u8-grapheme-len'.
57622         * modules/unigbrk/u8-grapheme-len: New file.
57623         * modules/unigbrk/u8-grapheme-len-tests: New file.
57624         * lib/unigbrk.in.h: Add prototype for new function.
57625         * lib/unigbrk/u8-grapheme-len.c: New file.
57626         * tests/unigbrk/test-u8-grapheme-len.c: New file.
57628         New module 'u16-grapheme-len'.
57629         * modules/unigbrk/u16-grapheme-len: New file.
57630         * modules/unigbrk/u16-grapheme-len-tests: New file.
57631         * lib/unigbrk.in.h: Add prototype for new function.
57632         * lib/unigbrk/u16-grapheme-len.c: New file.
57633         * tests/unigbrk/test-u16-grapheme-len.c: New file.
57635         New module 'u32-grapheme-len'.
57636         * modules/unigbrk/u32-grapheme-len: New file.
57637         * modules/unigbrk/u32-grapheme-len-tests: New file.
57638         * lib/unigbrk.in.h: Add prototype for new function.
57639         * lib/unigbrk/u32-grapheme-len.c: New file.
57640         * tests/unigbrk/test-u32-grapheme-len.c: New file.
57642         New module 'u8-grapheme-next'.
57643         * modules/unigbrk/u8-grapheme-next: New file.
57644         * modules/unigbrk/u8-grapheme-next-tests: New file.
57645         * lib/unigbrk.in.h: Add prototype for new function.
57646         * lib/unigbrk/u8-grapheme-next.c: New file.
57647         * tests/unigbrk/test-u8-grapheme-next.c: New file.
57649         New module 'u16-grapheme-next'.
57650         * modules/unigbrk/u16-grapheme-next: New file.
57651         * modules/unigbrk/u16-grapheme-next-tests: New file.
57652         * lib/unigbrk.in.h: Add prototype for new function.
57653         * lib/unigbrk/u16-grapheme-next.c: New file.
57654         * tests/unigbrk/test-u16-grapheme-next.c: New file.
57656         New module 'u32-grapheme-next'.
57657         * modules/unigbrk/u32-grapheme-next: New file.
57658         * modules/unigbrk/u32-grapheme-next-tests: New file.
57659         * lib/unigbrk.in.h: Add prototype for new function.
57660         * lib/unigbrk/u32-grapheme-next.c: New file.
57661         * tests/unigbrk/test-u32-grapheme-next.c: New file.
57663         New module 'u8-grapheme-prev'.
57664         * modules/unigbrk/u8-grapheme-prev: New file.
57665         * modules/unigbrk/u8-grapheme-prev-tests: New file.
57666         * lib/unigbrk.in.h: Add prototype for new function.
57667         * lib/unigbrk/u8-grapheme-prev.c: New file.
57668         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
57670         New module 'u16-grapheme-prev'.
57671         * modules/unigbrk/u16-grapheme-prev: New file.
57672         * modules/unigbrk/u16-grapheme-prev-tests: New file.
57673         * lib/unigbrk.in.h: Add prototype for new function.
57674         * lib/unigbrk/u16-grapheme-prev.c: New file.
57675         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
57677         New module 'u32-grapheme-prev'.
57678         * modules/unigbrk/u32-grapheme-prev: New file.
57679         * modules/unigbrk/u32-grapheme-prev-tests: New file.
57680         * lib/unigbrk.in.h: Add prototype for new function.
57681         * lib/unigbrk/u32-grapheme-prev.c: New file.
57682         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
57684         New module 'u8-grapheme-breaks'.
57685         * modules/unigbrk/u8-grapheme-breaks: New file.
57686         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
57687         * lib/unigbrk.in.h: Add prototype for new function.
57688         * lib/unigbrk/u8-grapheme-breaks.c: New file.
57689         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
57691         New module 'u16-grapheme-breaks'.
57692         * modules/unigbrk/u16-grapheme-breaks: New file.
57693         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
57694         * lib/unigbrk.in.h: Add prototype for new function.
57695         * lib/unigbrk/u16-grapheme-breaks.c: New file.
57696         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
57698         New module 'u32-grapheme-breaks'.
57699         * modules/unigbrk/u32-grapheme-breaks: New file.
57700         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
57701         * lib/unigbrk.in.h: Add prototype for new function.
57702         * lib/unigbrk/u32-grapheme-breaks.c: New file.
57703         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
57705         New module 'ulc-grapheme-breaks'.
57706         * modules/unigbrk/ulc-grapheme-breaks: New file.
57707         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
57708         * m4/locale-ar.m4: New file.
57709         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
57710         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
57711         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
57713 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
57715         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
57716         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
57717         modified how this file was generated before I initially submitted
57718         the module, but failed to regenerate it.  This meant that several
57719         of the level2 entries were wrong.
57720         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
57721         Remove the division-by-2 that is folded into the table now that
57722         gbrkprop.h has been regenerated properly.  Now -1 entries are
57723         handled correctly.
57725         New module 'unigbrk/uc-gbrk-prop-tests'.
57726         * modules/unigbrk/uc-gbrk-prop-tests: New file.
57727         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
57728         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
57729         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
57731 2011-01-01  Bruno Haible  <bruno@clisp.org>
57733         Avoid use of hexadecimal escapes.
57734         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
57735         instead of hexadecimal escapes.
57737 2011-01-01  Jim Meyering  <meyering@redhat.com>
57739         maint: new rule to update copyright year ranges
57740         * Makefile (update-copyright): New rule.
57742         maint: indent with TABs in Makefile
57743         * Makefile: Expand leading sequences of spaces to TABs
57745         version-etc: update the copyright year it reports
57746         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
57748 2010-12-31  Bruno Haible  <bruno@clisp.org>
57750         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
57751         * lib/isfinite.c (zerof, zerod, zerol): New variables.
57752         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
57753         zero.
57755 2010-12-31  Bruno Haible  <bruno@clisp.org>
57757         pwrite: Work around HP-UX 11.11 bug.
57758         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
57759         works and set REPLACE_PWRITE if not.
57760         * lib/pwrite.c (pwrite): Add an implementation that uses the system
57761         function.
57762         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
57764 2010-12-31  Bruno Haible  <bruno@clisp.org>
57766         pread: Work around HP-UX 11 bugs.
57767         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
57768         and set REPLACE_PREAD if not.
57769         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
57771 2010-12-31  Eric Blake  <eblake@redhat.com>
57773         nl_langinfo: fix YESEXPR on Irix 6.5
57774         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
57775         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
57776         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
57777         it.
57779 2010-12-31  Bruno Haible  <bruno@clisp.org>
57781         iconv: Document HP-UX 11 bug.
57782         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
57784 2010-12-31  Bruno Haible  <bruno@clisp.org>
57786         ldexpl: Fix link error on HP-UX 11.
57787         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
57788         LDEXPL_LIBM, using $ISNANL_LIBM.
57790 2010-12-31  Eric Blake  <eblake@redhat.com>
57792         ftello: avoid compilation failure with SunStudio c89
57793         * lib/ftello.c (ftello): Use lseek, not llseek.
57795         tests: avoid failing coreutils tests on cygwin
57796         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
57797         (create_exe_shims_): Return 0 when skipping.
57799 2010-12-31  Bruno Haible  <bruno@clisp.org>
57801         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
57802         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
57804 2010-12-31  Bruno Haible  <bruno@clisp.org>
57806         waitpid: Fix link error in C++ mode.
57807         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
57809 2010-12-31  Bruno Haible  <bruno@clisp.org>
57811         isnan: Use GCC built-ins when possible.
57812         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
57813         __builtin_isnan.
57814         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
57815         (isnan): Define using GCC built-ins for GCC >= 4.0.
57817 2010-12-31  Bruno Haible  <bruno@clisp.org>
57819         isnand: Fix mistake.
57820         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
57821         __builtin_isnand.
57823 2010-12-31  Bruno Haible  <bruno@clisp.org>
57825         open: Avoid C++ error on HP-UX 11.
57826         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
57828 2010-12-31  Bruno Haible  <bruno@clisp.org>
57830         time_r: Add missing declarations on HP-UX 11.
57831         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
57832         instead of HAVE_LOCALTIME_R.
57833         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
57834         HAVE_LOCALTIME_R always.
57835         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
57836         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
57837         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
57838         HAVE_LOCALTIME_R.
57839         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
57840         * doc/posix-functions/localtime_r.texi: Likewise.
57842 2010-12-29  Eric Blake  <eblake@redhat.com>
57844         mountlist: tweak previous commit
57845         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
57846         Reported by Paul Eggert.
57848         mountlist: fix local drive detection on cygwin
57849         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
57850         that works for cygwin.
57852 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
57854         ftoastr, snprintf: ftoastr + snprintf module
57855         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
57856         since the snprintf module now should be good enough here.
57857         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
57858         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
57859         and gl_MODULE_INDICATOR([snprintf]), but the former enables
57860         GNULIB_SNPRINTF only for the test directory, and the latter
57861         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
57862         seems to suffice by itself.
57864 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
57866         alloca: one step towards thread-safety
57867         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
57868         need for a static variable.  All callers changed.  This does not
57869         make the alloca replacement thread-safe, but it's one step.
57871         tests: minor indenting change
57872         * tests/init.sh: Sync from coreutils housekeeping patch
57873         <http://lists.gnu.org/r/coreutils/2010-12/msg00116.html>
57874         to keep lines within 80 columns.
57876 2010-12-28  Jim Meyering  <meyering@redhat.com>
57878         regex: don't infloop on persistent failing calloc
57879         * lib/regexec.c (build_trtable): Return failure indication upon
57880         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
57881         In glibc, this was fixed for version 2.13:
57882         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
57884 2010-12-28  Bruno Haible  <bruno@clisp.org>
57885             Paul Eggert <eggert@cs.ucla.edu>
57887         linkat: Make implementation robust against system behaviour variations.
57888         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
57889         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
57890         way, and to -2 if it needs a generic runtime test.
57891         * lib/linkat.c (solaris_optimized_link_immediate,
57892         solaris_optimized_link_follow): New functions.
57893         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
57894         (check_same_link): Use it.
57896 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
57898         New module 'unigbrk/base'.
57899         * modules/unigbrk/base: New file.
57900         * lib/unigbrk.in.h: New file.
57902         New module 'unigbrk/uc-gbrk-prop'.
57903         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
57904         * modules/unigbrk/uc-gbrk-prop: New file.
57905         * lib/unigbrk/gbrkprop.h: New file.
57906         * lib/unigbrk/uc-gbrk-prop.c: New file.
57908         New module 'unigbrk/uc-is-grapheme-break'.
57909         * modules/unigbrk/uc-is-grapheme-break: New file.
57910         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
57911         * lib/unigbrk/uc-is-grapheme-break.c: New file.
57912         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
57913         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
57914         * tests/unigbrk/GraphemeBreakTest.txt: New file.
57916         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
57918 2010-12-27  Bruno Haible  <bruno@clisp.org>
57920         linkat test: Avoid failure on Solaris 11 2010-11.
57921         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
57923 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
57925         utimens: work around glibc rounding bug on more platforms
57926         * lib/utimens.c (fdutimens): Work around rounding bug even if
57927         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
57928         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00298.html>.
57930 2010-12-27  Bruno Haible  <bruno@clisp.org>
57932         select tests: Improve comments.
57933         * tests/test-select.c (do_select): Add comments.
57935 2010-12-27  Bruno Haible  <bruno@clisp.org>
57937         select tests: Safer way of handling timeout.
57938         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
57939         at every invocation.
57941 2010-12-27  Bruno Haible  <bruno@clisp.org>
57943         select tests: Use 'bool' where appropriate.
57944         * tests/test-select.c (connect_to_socket): Change argument type to
57945         'bool'.
57947 2010-12-27  Bruno Haible  <bruno@clisp.org>
57949         select tests: Use existing modules.
57950         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
57951         (configure.ac): Don't test for unistd.h.
57952         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
57953         declared in <unistd.h>.
57955 2010-12-27  Bruno Haible  <bruno@clisp.org>
57957         mbrtowc: Work around a Solaris 7 bug.
57958         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
57959         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
57960         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
57961         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
57962         MBRTOWC_NULL_ARG1_BUG.
57963         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
57964         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
57965         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
57966         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
57968 2010-12-27  Jim Meyering  <meyering@redhat.com>
57970         read-file.c: tweak syntax
57971         * lib/read-file.c (fread_file): Remove space after "*" in function
57972         definitions.
57974 2010-12-27  Bruno Haible  <bruno@clisp.org>
57976         times test: Avoid gcc warnings on OSF/1.
57977         * tests/test-times.c (main): Cast printf arguments from clock_t to
57978         'long int'.
57980 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
57982         utimens: work around glibc rounding bug on older Linux kernels
57983         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
57984         on Linux with a glibc whose utimes might not work, then work
57985         around a longstanding glibc bug involving rounding rather than
57986         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
57987         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html>.
57989 2010-12-26  Bruno Haible  <bruno@clisp.org>
57991         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
57992         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
57993         _GL_CXXALIAS_SYS.
57994         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
57996 2010-12-26  Bruno Haible  <bruno@clisp.org>
57998         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
57999         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
58000         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
58001         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
58002         looking for the declaration.
58003         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
58004         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
58005         problem.
58006         * doc/posix-functions/inet_pton.texi: Likewise.
58008 2010-12-26  Bruno Haible  <bruno@clisp.org>
58010         arpa_inet: Use the common idioms with C++ support.
58011         * lib/arpa_inet.in.h: Include c++defs.h.
58012         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
58013         support.
58014         * modules/arpa_inet (Depends-on): Add c++defs.
58015         (Makefile.am): Substitute the contents of c++defs.h.
58016         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
58017         * modules/arpa_inet-c++-tests: New file.
58018         * tests/test-arpa_inet-c++.cc: New file.
58020 2010-12-25  Bruno Haible  <bruno@clisp.org>
58022         Fix more C++ link errors on Solaris 8.
58023         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
58024         $(LIB_EACCESS).
58025         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
58026         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
58027         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
58028         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
58029         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
58031 2010-12-25  Bruno Haible  <bruno@clisp.org>
58033         printf-posix: Fix link error when a non-GCC compiler is used.
58034         * lib/stdio.in.h (printf): When not using GCC, override printf
58035         correctly.
58036         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
58038 2010-12-25  Bruno Haible  <bruno@clisp.org>
58040         strerror_r-posix: Update doc.
58041         * doc/posix-functions/strerror_r.texi: Update doc about the return
58042         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
58044 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
58046         utimens: simplify the logic of the previous change
58047         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
58048         This should not affect whether the test succeeds or fails.
58050         utimens: configure better on hosts with NFS clock skew
58051         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
58052         uses the clock of the local host.  It might use the clock of the
58053         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
58054         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html>.
58056 2010-12-25  Bruno Haible  <bruno@clisp.org>
58058         ptsname test: Avoid failure on Solaris.
58059         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
58060         open a pseudo-terminal; don't use BSD-style ptys.
58061         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
58063 2010-12-25  Bruno Haible  <bruno@clisp.org>
58065         ptsname: Avoid ERANGE failure on some systems.
58066         * lib/ptsname.c (buffer): Increase size.
58068 2010-12-25  Bruno Haible  <bruno@clisp.org>
58070         rename, renameat: Avoid test failures at NFS mounted locations.
58071         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
58072         so that subsequent mkdir calls succeed.
58074 2010-12-25  Bruno Haible  <bruno@clisp.org>
58076         iswblank: Fix C++ link error on Solaris 8.
58077         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
58078         _GL_FUNCDECL_SYS.
58080 2010-12-25  Bruno Haible  <bruno@clisp.org>
58082         unistd: Fix C++ link error on Solaris 8.
58083         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
58085 2010-12-25  Bruno Haible  <bruno@clisp.org>
58087         readlink doc: Mention an old glibc bug.
58088         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
58090 2010-12-25  Bruno Haible  <bruno@clisp.org>
58092         fcntl-h: Fix for use of C++ on glibc systems.
58093         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
58094         also on glibc systems in C++ mode.
58095         Reported by Gary V. Vaughan <gary@gnu.org>.
58097 2010-12-25  Bruno Haible  <bruno@clisp.org>
58099         roundl-ieee: Make it work on OSF/1 5.1 with cc.
58100         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
58102 2010-12-25  Bruno Haible  <bruno@clisp.org>
58104         truncl-ieee: Make it work on OSF/1 5.1 with cc.
58105         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
58106         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
58107         test whether truncl works according to ISO C 99 with IEC 60559.
58108         * m4/truncl-ieee.m4: New file.
58109         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
58110         m4/signbit.m4.
58111         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
58113 2010-12-25  Bruno Haible  <bruno@clisp.org>
58115         ceill-ieee: Make it work on OSF/1 5.1 with cc.
58116         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
58117         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
58118         test whether ceill works according to ISO C 99 with IEC 60559.
58119         * m4/ceill-ieee.m4: New file.
58120         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
58121         m4/signbit.m4.
58122         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
58124 2010-12-25  Bruno Haible  <bruno@clisp.org>
58126         Ensure all prerequisites of <wchar.h> are included.
58127         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
58128         before <wchar.h>.
58129         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
58130         gl_MBRLEN_NUL_RETVAL): Likewise.
58131         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
58132         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
58133         AC_FUNC_MBRTOWC): Likewise.
58134         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
58135         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
58136         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
58137         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
58138         Likewise.
58139         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
58140         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
58141         (gl_WCHAR_H): Improve comments.
58142         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
58144 2010-12-25  Bruno Haible  <bruno@clisp.org>
58146         strtok_r: Fix C syntax error in autoconf macro.
58147         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
58148         characters in test program.
58150 2010-12-24  Bruno Haible  <bruno@clisp.org>
58152         ceil, trunc, round: Fix gcc warnings.
58153         * lib/ceil.c (MIN): Undefine before redefining.
58154         * lib/trunc.c (MIN): Likewise.
58155         * lib/round.c (MIN): Likewise.
58156         Include <math.h> first.
58158 2010-12-24  Bruno Haible  <bruno@clisp.org>
58160         select tests: Avoid failures on OSF/1 5.1.
58161         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
58162         failure of closing the last socket; it may fail with ECONNRESET.
58164 2010-12-24  Eric Blake  <eblake@redhat.com>
58166         stdint: avoid HP-UX 10.20 preprocessor bug
58167         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
58168         than #if.
58169         * tests/test-floor2.c (main): Likewise.
58170         Reported by Peter O'Gorman.
58172         pipe: make obsoletion transition easier
58173         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
58174         * modules/pipe (Files): Include revived file.
58175         (Include): Drop reference, to mirror getdate's behavior.
58177 2010-12-24  Bruno Haible  <bruno@clisp.org>
58179         sys_socket: Hide mismatch of declarations on NonStop Kernel.
58180         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
58181         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
58182         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
58184 2010-12-24  Bruno Haible  <bruno@clisp.org>
58186         gethostname: Ensure declaration on NonStop Kernel.
58187         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
58188         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
58190 2010-12-24  Bruno Haible  <bruno@clisp.org>
58192         sys_select: Ensure all necessary types on NonStop Kernel.
58193         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
58194         include <sys/time.h>.
58195         * doc/posix-headers/sys_select.texi: Mention that it's missing on
58196         NonStop Kernel.
58197         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
58199 2010-12-24  Bruno Haible  <bruno@clisp.org>
58201         sys_select: Remove unneeded include.
58202         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
58203         have <sys/select.h>.
58205 2010-12-24  Bruno Haible  <bruno@clisp.org>
58207         gethostname: Provide a fallback for HOST_NAME_MAX.
58208         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
58209         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
58210         instead.
58211         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
58213 2010-12-24  Bruno Haible  <bruno@clisp.org>
58215         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
58216         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
58217         (SA_RESTART): Likewise.
58218         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
58220 2010-12-24  Bruno Haible  <bruno@clisp.org>
58222         signal: Define NSIG.
58223         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
58224         * tests/test-signal.c (nsig): New variable.
58225         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
58227 2010-12-24  Bruno Haible  <bruno@clisp.org>
58229         rename, renameat: Avoid test failures on OSF/1 5.1.
58230         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
58231         alternative error codes.
58232         * tests/test-renameat.c (main): Likewise.
58234 2010-12-24  Bruno Haible  <bruno@clisp.org>
58236         *printf: Detect large precisions bug on Solaris 10/SPARC.
58237         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
58238         by Paul Eggert.
58239         * tests/test-snprintf-posix.h (test_function): Add this test code here
58240         too.
58241         * tests/test-sprintf-posix.h (test_function): Likewise.
58242         * tests/test-vasnprintf-posix.c (test_function): Likewise.
58243         * tests/test-vasprintf-posix.c (test_function): Likewise.
58244         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
58245         around by gnulib.
58246         * doc/posix-functions/printf.texi: Likewise.
58247         * doc/posix-functions/snprintf.texi: Likewise.
58248         * doc/posix-functions/sprintf.texi: Likewise.
58249         * doc/posix-functions/vfprintf.texi: Likewise.
58250         * doc/posix-functions/vprintf.texi: Likewise.
58251         * doc/posix-functions/vsnprintf.texi: Likewise.
58252         * doc/posix-functions/vsprintf.texi: Likewise.
58253         * doc/posix-functions/dprintf.texi: Undo last commit.
58254         * doc/posix-functions/vdprintf.texi: Likewise.
58256 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
58258         tests: port test-fdutimensat.c to Solaris 8
58259         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
58260         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
58261         On Solaris 8, it fails with errno == ENOSYS, because there is no
58262         futimens (so it can't use the fd), and there is no lutimens (so it
58263         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
58265         vsnprintf: make more consistent with snprintf; doc fixes
58267         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
58268         the byte count return problem was promoted from the snprintf-posix
58269         to the snprintf module.
58270         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
58271         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
58272         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
58273         * tests/test-snprintf.c (main): Check the byte count returned.
58274         * tests/test-vsnprintf.c (main): Likewise.
58276 2010-12-23  Eric Blake  <eblake@redhat.com>
58278         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
58279         * modules/sigpipe (License): Relax license.
58281 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
58283         doc: document Solaris printf bug with large float precisions
58284         * doc/posix-functions/dprintf.texi (dprintf):
58285         * doc/posix-functions/fprintf.texi (fprintf):
58286         * doc/posix-functions/printf.texi (printf):
58287         * doc/posix-functions/snprintf.texi (snprintf):
58288         * doc/posix-functions/sprintf.texi (sprintf):
58289         * doc/posix-functions/vdprintf.texi (vdprintf):
58290         * doc/posix-functions/vfprintf.texi (vfprintf):
58291         * doc/posix-functions/vprintf.texi (vprintf):
58292         * doc/posix-functions/vsnprintf.texi (vsnprintf):
58293         * doc/posix-functions/vsprintf.texi (vsprintf):
58294         Mention that these functions mishandle large floating point
58295         precisions on Solaris 10.  The same bug is also present in Solaris
58296         8, and I assume earlier.  This causes "cd gnulib-tests; make
58297         check" to fail on Solaris 8 (and I assume, later) when building
58298         the latest coreutils, in test-vasprintf-posix's call to
58299         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
58300         the wide flavors (e.g., wprintf) so this patch just updates the
58301         documentation for the narrow ones.
58303         test-posixtm.c: add two tests
58304         * tests/test-posixtm.c: Add two tests, to highlight the
58305         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
58306         around this bug; this is merely to document it.
58308 2010-12-22  Bruno Haible  <bruno@clisp.org>
58310         getlogin_r: Work around portability problem on OSF/1.
58311         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
58312         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
58313         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
58314         test for a truncated result.
58315         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
58316         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
58317         * modules/getlogin_r (Depends-on): Add memchr.
58318         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
58320 2010-12-22  Bruno Haible  <bruno@clisp.org>
58322         ptsname: Avoid test failure on OSF/1 5.1.
58323         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
58324         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
58325         (same_slave): New function.
58326         (main): Use it to compare ptsname's result with the expected file name.
58328 2010-12-22  Bruno Haible  <bruno@clisp.org>
58330         Port extended stdio modules to HP NonStop Kernel.
58331         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
58332         macros.
58333         * lib/fbufmode.c: Update comments.
58334         * lib/fflush.c: Likewise.
58335         * lib/fpurge.c: Likewise.
58336         * lib/freadable.c: Likewise.
58337         * lib/freadahead.c: Likewise.
58338         * lib/freading.c: Likewise.
58339         * lib/freadptr.c: Likewise.
58340         * lib/freadseek.c: Likewise.
58341         * lib/fseeko.c: Likewise.
58342         * lib/fseterr.c: Likewise.
58343         * lib/fwritable.c: Likewise.
58344         * lib/fwriting.c: Likewise.
58345         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
58347 2010-12-22  Bruno Haible  <bruno@clisp.org>
58349         ttyname_r: Work around bug on OSF/1 5.1.
58350         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
58351         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
58352         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
58353         present.
58354         * lib/ttyname_r.c (ttyname_r): Update comments.
58356 2010-12-22  Bruno Haible  <bruno@clisp.org>
58358         round: Implement result sign according to IEEE 754.
58359         * lib/round.c (MIN, MINUS_ZERO): New macros.
58360         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
58361         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
58362         * tests/test-round-ieee.c (main): Likewise.
58363         * tests/test-roundl-ieee.c (main): Likewise.
58365         trunc: Implement result sign according to IEEE 754.
58366         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
58367         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
58368         * tests/test-trunc2.c: Include minus-zero.h.
58369         (MINUS_ZERO): New macro.
58370         (trunc_reference): Keep in sync with lib/trunc.c.
58371         * tests/test-truncf2.c: Include minus-zero.h.
58372         (MINUS_ZERO): New macro.
58373         (truncf_reference): Keep in sync with lib/trunc.c.
58374         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
58375         * tests/test-trunc-ieee.c (main): Likewise.
58376         * tests/test-truncl-ieee.c (main): Likewise.
58378         ceil: Implement result sign according to IEEE 754.
58379         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
58380         (FUNC): Return -0.0 for -1 < x < 0.
58381         * tests/test-ceil2.c: Include minus-zero.h.
58382         (MINUS_ZERO): New macro.
58383         (ceil_reference): Keep in sync with lib/ceil.c.
58384         * tests/test-ceilf2.c: Include minus-zero.h.
58385         (MINUS_ZERO): New macro.
58386         (ceilf_reference): Keep in sync with lib/ceil.c.
58387         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
58388         * tests/test-ceil-ieee.c (main): Likewise.
58389         * tests/test-ceill-ieee.c (main): Likewise.
58391         floor: Implement result sign according to IEEE 754.
58392         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
58393         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
58394         * tests/test-floorf2.c (floorf_reference): Likewise.
58395         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
58396         * tests/test-floor-ieee.c (main): Likewise.
58397         * tests/test-floorl-ieee.c (main): Likewise.
58399 2010-12-22  Bruno Haible  <bruno@clisp.org>
58401         getaddrinfo: Update doc.
58402         * doc/posix-functions/gai_strerror.texi: Return type is also different
58403         on AIX and HP-UX.
58405 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
58407         getaddrinfo, inet_ntop: Update doc for Solaris.
58408         * doc/posix-functions/gai_strerror.texi: Return type is also an
58409         issue on Solaris 9 and earlier.
58410         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
58411         on Solaris 10 and earlier.
58413 2010-12-21  Bruno Haible  <bruno@clisp.org>
58415         New module 'roundl-ieee'.
58416         * modules/roundl-ieee: New file.
58417         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
58418         test whether roundl works according to ISO C 99 with IEC 60559.
58419         * m4/roundl-ieee.m4: New file.
58420         * modules/roundl-ieee-tests: New file.
58421         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
58422         * tests/test-roundl.c (main): Remove signbit tests.
58423         * modules/roundl-tests (Depends-on): Remove signbit.
58424         * doc/posix-functions/roundl.texi: Mention the new module.
58426 2010-12-21  Bruno Haible  <bruno@clisp.org>
58428         New module 'truncl-ieee'.
58429         * modules/truncl-ieee: New file.
58430         * modules/truncl-ieee-tests: New file.
58431         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
58432         * tests/test-truncl.c (main): Remove signbit tests.
58433         * modules/truncl-tests (Depends-on): Remove signbit.
58434         * doc/posix-functions/truncl.texi: Mention the new module.
58436 2010-12-21  Bruno Haible  <bruno@clisp.org>
58438         New module 'ceill-ieee'.
58439         * modules/ceill-ieee: New file.
58440         * modules/ceill-ieee-tests: New file.
58441         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
58442         * tests/test-ceill.c (main): Remove signbit tests.
58443         * modules/ceill-tests (Depends-on): Remove signbit.
58444         * doc/posix-functions/ceill.texi: Mention the new module.
58446 2010-12-21  Bruno Haible  <bruno@clisp.org>
58448         New module 'floorl-ieee'.
58449         * modules/floorl-ieee: New file.
58450         * modules/floorl-ieee-tests: New file.
58451         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
58452         * tests/test-floorl.c (main): Remove signbit tests.
58453         * modules/floorl-tests (Depends-on): Remove signbit.
58454         * doc/posix-functions/floorl.texi: Mention the new module.
58456 2010-12-21  Bruno Haible  <bruno@clisp.org>
58458         New module 'round-ieee'.
58459         * modules/round-ieee: New file.
58460         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
58461         whether round works according to ISO C 99 with IEC 60559.
58462         * m4/round-ieee.m4: New file.
58463         * modules/round-ieee-tests: New file.
58464         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
58465         * tests/test-round1.c (main): Remove signbit tests.
58466         * modules/round-tests (Depends-on): Remove 'signbit'.
58467         * doc/posix-functions/round.texi: Mention the new module.
58469 2010-12-21  Bruno Haible  <bruno@clisp.org>
58471         New module 'trunc-ieee'.
58472         * modules/trunc-ieee: New file.
58473         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
58474         whether trunc works according to ISO C 99 with IEC 60559.
58475         * m4/trunc-ieee.m4: New file.
58476         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
58477         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
58478         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
58479         * modules/trunc-ieee-tests: New file.
58480         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
58481         * tests/test-trunc1.c (main): Remove signbit tests.
58482         * modules/trunc-tests (Depends-on): Remove 'signbit'.
58483         * doc/posix-functions/trunc.texi: Mention the new module.
58485 2010-12-21  Bruno Haible  <bruno@clisp.org>
58487         New module 'ceil-ieee'.
58488         * modules/ceil-ieee: New file.
58489         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
58490         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
58491         ISO C 99 with IEC 60559.
58492         * m4/ceil-ieee.m4: New file.
58493         * modules/ceil (Files): Add lib/ceil.c.
58494         (Depends-on): Add 'float'.
58495         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
58496         * lib/math.in.h (ceil): New declaration.
58497         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
58498         REPLACE_CEIL.
58499         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
58500         * modules/ceil-ieee-tests: New file.
58501         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
58502         * tests/test-math-c++.cc: Check the signature of 'ceil'.
58503         * doc/posix-functions/ceil.texi: Mention the new module.
58505 2010-12-21  Bruno Haible  <bruno@clisp.org>
58507         New module 'floor-ieee'.
58508         * modules/floor-ieee: New file.
58509         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
58510         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
58511         ISO C 99 with IEC 60559.
58512         * m4/floor-ieee.m4: New file.
58513         * modules/floor (Files): Add lib/floor.c.
58514         (Depends-on): Add 'float'.
58515         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
58516         * lib/math.in.h (floor): New declaration.
58517         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
58518         REPLACE_FLOOR.
58519         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
58520         * modules/floor-ieee-tests: New file.
58521         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
58522         * tests/test-math-c++.cc: Check the signature of 'floor'.
58523         * doc/posix-functions/floor.texi: Mention the new module.
58525 2010-12-21  Bruno Haible  <bruno@clisp.org>
58527         New module 'roundf-ieee'.
58528         * modules/roundf-ieee: New file.
58529         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
58530         test whether roundf works according to ISO C 99 with IEC 60559.
58531         * m4/roundf-ieee.m4: New file.
58532         * modules/roundf-ieee-tests: New file.
58533         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
58534         * tests/test-roundf1.c (main): Remove signbit tests.
58535         * modules/roundf-tests (Depends-on): Remove 'signbit'.
58536         * doc/posix-functions/roundf.texi: Mention the new module.
58538 2010-12-21  Bruno Haible  <bruno@clisp.org>
58540         New module 'truncf-ieee'.
58541         * modules/truncf-ieee: New file.
58542         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
58543         test whether truncf works according to ISO C 99 with IEC 60559.
58544         * m4/truncf-ieee.m4: New file.
58545         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
58546         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
58547         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
58548         * modules/truncf-ieee-tests: New file.
58549         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
58550         * tests/test-truncf1.c (main): Remove signbit tests.
58551         * modules/truncf-tests (Depends-on): Remove 'signbit'.
58552         * doc/posix-functions/truncf.texi: Mention the new module.
58554 2010-12-21  Bruno Haible  <bruno@clisp.org>
58556         New module 'ceilf-ieee'.
58557         * modules/ceilf-ieee: New file.
58558         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
58559         test whether ceilf works according to ISO C 99 with IEC 60559.
58560         * m4/ceilf-ieee.m4: New file.
58561         * modules/ceilf-ieee-tests: New file.
58562         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
58563         * tests/test-ceilf1.c (main): Remove signbit tests.
58564         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
58565         * doc/posix-functions/ceilf.texi: Mention the new module.
58567 2010-12-21  Bruno Haible  <bruno@clisp.org>
58569         New module 'floorf-ieee'.
58570         * modules/floorf-ieee: New file.
58571         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
58572         test whether floorf works according to ISO C 99 with IEC 60559.
58573         * m4/floorf-ieee.m4: New file.
58574         * modules/floorf-ieee-tests: New file.
58575         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
58576         * tests/test-floorf1.c (main): Remove signbit tests.
58577         * modules/floorf-tests (Depends-on): Remove 'signbit'.
58578         * doc/posix-functions/floorf.texi: Mention the new module.
58580 2010-12-21  Bruno Haible  <bruno@clisp.org>
58582         Support for minus zero in autoconf macros.
58583         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
58584         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
58585         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
58586         * tests/minus-zero.h: Update comments.
58588 2010-12-21  Bruno Haible  <bruno@clisp.org>
58590         Tests for module 'ceil'.
58591         * modules/ceil-tests: New file.
58592         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
58593         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
58595 2010-12-21  Bruno Haible  <bruno@clisp.org>
58597         Tests for module 'floor'.
58598         * modules/floor-tests: New file.
58599         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
58600         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
58602 2010-12-21  Bruno Haible  <bruno@clisp.org>
58604         math: Fix indentation.
58605         * lib/math.in.h (floorf): Fix indentation.
58607 2010-12-21  Bruno Haible  <bruno@clisp.org>
58609         Fix cross-compilation guesses on Solaris.
58610         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
58611         not match "solaris2.10".
58612         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
58613         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
58614         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
58616 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
58618         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
58619         This fixes a problem observed with the latest coreutils snapshot
58620         that caused a test to fail on Solaris 8.  src/csplit.c's call
58621         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
58622         earlier, instead of returning the number of bytes that would have
58623         been generated; this causes csplit to incorrectly report memory
58624         exhaustion.
58625         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
58626         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
58627         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
58628         comments to match.
58629         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
58630         Fix typo in matching older versions of Solaris: "solaris2.10"
58631         is matched by the shell pattern "solaris2.[0-9]*".  This matters
58632         only for guessing while cross-compiling.
58633         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
58635 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
58637         ftoastr: fix comment again
58638         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
58639         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00149.html>.
58640         Also, simplify example a bit by using flags = 0.
58642 2010-12-20  Bruno Haible  <bruno@clisp.org>
58644         round*, trunc*: Update documentation regarding glibc.
58645         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
58646         * doc/posix-functions/round.texi: Likewise.
58647         * doc/posix-functions/roundl.texi: Likewise.
58648         * doc/posix-functions/truncf.texi: Likewise.
58649         * doc/posix-functions/trunc.texi: Likewise.
58650         * doc/posix-functions/truncl.texi: Likewise.
58652 2010-12-20  Bruno Haible  <bruno@clisp.org>
58654         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
58655         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
58656         * doc/posix-functions/round.texi: Likewise.
58657         * doc/posix-functions/roundl.texi: Likewise.
58659 2010-12-20  Bruno Haible  <bruno@clisp.org>
58661         ttyname_r: Add missing declaration on HP-UX 11.
58662         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
58663         HAVE_TTYNAME_R.
58664         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
58665         declared. Set HAVE_TTYNAME_R always.
58666         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
58667         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
58668         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
58669         HAVE_TTYNAME_R.
58670         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
58672 2010-12-20  Bruno Haible  <bruno@clisp.org>
58674         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
58675         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
58676         * doc/posix-functions/getlogin_r.texi: Likewise.
58677         * tests/test-getlogin.c: Include <errno.h>.
58678         (main): Avoid test failure on HP-UX 11.11.
58679         * tests/test-getlogin_r.c (main): Likewise.
58681 2010-12-20  Bruno Haible  <bruno@clisp.org>
58683         getlogin_r: Add missing declaration on HP-UX 11.
58684         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
58685         declared also when it exists as a function.
58686         * doc/posix-functions/getlogin_r.texi: Document this workaround.
58688 2010-12-20  Bruno Haible  <bruno@clisp.org>
58690         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
58691         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
58692         through wcrtomb.
58694 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
58696         ftoastr: fix comment
58697         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
58698         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00130.html>.
58700 2010-12-19  Bruno Haible  <bruno@clisp.org>
58702         isnan: Ensure it is a macro.
58703         * lib/math.in.h (isnan): Define as a macro if not already a macro.
58704         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
58705         Solaris.
58707 2010-12-19  Bruno Haible  <bruno@clisp.org>
58709         ldexpl test: Fix link error on OSF/1 5.1.
58710         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
58712 2010-12-19  Bruno Haible  <bruno@clisp.org>
58714         wctype: Make it work in C++ mode on OSF/1 5.1.
58715         * lib/wctype.in.h (iswblank): Declare but not define here.
58716         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
58717         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
58718         * modules/wctype (Files): Add lib/iswblank.c.
58720 2010-12-19  Bruno Haible  <bruno@clisp.org>
58722         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
58723         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
58724         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
58726 2010-12-19  Bruno Haible  <bruno@clisp.org>
58728         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
58729         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
58730         _POSIX_PII_SOCKET.
58731         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
58732         * doc/posix-functions/recvfrom.texi: Likewise.
58733         * doc/posix-functions/send.texi: Likewise.
58734         * doc/posix-functions/sendto.texi: Likewise.
58736 2010-12-19  Bruno Haible  <bruno@clisp.org>
58738         tcgetsid: Add missing declaration on OSF/1 5.1.
58739         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
58740         HAVE_TCGETSID.
58741         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
58742         Don't set HAVE_TCGETSID.
58743         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
58744         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
58745         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
58746         HAVE_TCGETSID.
58747         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
58749 2010-12-19  Bruno Haible  <bruno@clisp.org>
58751         stdio: Fix problem with popen() declaration on OSF/1 5.1.
58752         * lib/stdio.in.h: During the include_next statement, let recursive
58753         includes of this file include only the system header file.
58755 2010-12-19  Bruno Haible  <bruno@clisp.org>
58757         iconv_open: Fix regression from 2010-12-04.
58758         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
58759         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
58761 2010-12-19  Bruno Haible  <bruno@clisp.org>
58763         stdbool test: Avoid a gcc warning.
58764         * tests/test-stdbool.c (main): Fail if e1 is false.
58765         Reported by Jim Meyering.
58767 2010-12-19  Jim Meyering  <meyering@redhat.com>
58769         setenv: restore to working order
58770         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
58771         mistakenly removed.
58772         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
58773         HAVE_SETENV.
58774         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
58775         HAVE_SETENV.
58777 2010-12-19  Bruno Haible  <bruno@clisp.org>
58779         Document some different function declarations on OSF/1 5.1.
58780         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
58781         * doc/posix-functions/inet_ntop.texi: Likewise.
58782         * doc/posix-functions/gethostname.texi: Likewise.
58783         * lib/unistd.in.h (gethostname): Update comment.
58785 2010-12-19  Bruno Haible  <bruno@clisp.org>
58787         doc: Mention vasprintf-posix module.
58788         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
58789         the 'vasprintf-posix' module.
58790         * doc/glibc-functions/vasprintf.texi: Likewise.
58792 2010-12-19  Bruno Haible  <bruno@clisp.org>
58794         unsetenv: Add missing declaration on OSF/1 5.1.
58795         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
58796         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
58797         Don't set HAVE_UNSETENV. In the test program, set _BSD.
58798         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
58799         not HAVE_UNSETENV.
58800         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
58801         HAVE_UNSETENV.
58802         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
58804 2010-12-19  Bruno Haible  <bruno@clisp.org>
58806         setenv: Add missing declaration on OSF/1 5.1.
58807         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
58808         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
58809         declared. Don't set HAVE_SETENV.
58810         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
58811         not HAVE_SETENV.
58812         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
58813         HAVE_SETENV.
58814         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
58816 2010-12-19  Bruno Haible  <bruno@clisp.org>
58818         nl_langinfo tests: Avoid gcc warning.
58819         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
58821 2010-12-19  Bruno Haible  <bruno@clisp.org>
58823         mknod: Avoid error in C++ mode on OSF/1 with GCC.
58824         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
58825         _GL_CXXALIAS_SYS.
58827 2010-12-19  Bruno Haible  <bruno@clisp.org>
58829         stdbool: Relax test.
58830         * tests/test-stdbool.c (e): Don't require that casts from a variable's
58831         address to 'bool' work in static initializer, for compilers other than
58832         GCC.
58834 2010-12-19  Bruno Haible  <bruno@clisp.org>
58836         ftello: Add missing declaration on OSF/1 5.1.
58837         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
58838         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
58839         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
58840         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
58841         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
58843 2010-12-19  Bruno Haible  <bruno@clisp.org>
58845         fseeko: Add missing declaration on OSF/1 5.1.
58846         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
58847         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
58848         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
58849         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
58850         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
58852 2010-12-19  Bruno Haible  <bruno@clisp.org>
58854         fchdir: Add missing declaration on OSF/1 5.1.
58855         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
58856         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
58857         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
58858         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
58859         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
58861 2010-12-19  Bruno Haible  <bruno@clisp.org>
58863         relocatable-prog-wrapper: Separate from relocatable-prog.
58864         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
58865         uninstall-relocwrapper rule here.
58866         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
58867         Reported by Ian Beckwith <ianb@erislabs.net>.
58869 2010-12-19  Bruno Haible  <bruno@clisp.org>
58871         unistr/u8-mbsnlen: Add missing dependency.
58872         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
58873         Reported by Ian Beckwith <ianb@erislabs.net>.
58875 2010-12-19  Bruno Haible  <bruno@clisp.org>
58877         iconv: Make it possible again to use this module without 'iconv-h'.
58878         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
58879         if it is not defined.
58880         Reported by Ian Beckwith <ianb@erislabs.net>.
58882 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
58884         acl: port to Solaris 8 when copying from tmpfs to ufs
58885         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
58886         error number.  Problem observed on Solaris 8 with latest
58887         coreutils, with "mv A B", where A is on a tmpfs file system and B
58888         is on a ufs file system.  This caused coreutils' mv/part-symlink
58889         test to fail.
58891         tests: set fail=0 at start
58892         * tests/init.sh (setup_): Move fail=0 initialization here ...
58893         (mktempd_): ... from here, so that tests can rely on fail being
58894         set to 0 initially.  This fixes a problem in coreutils; see:
58895         http://lists.gnu.org/r/coreutils/2010-12/msg00083.html
58897 2010-12-18  Bruno Haible  <bruno@clisp.org>
58899         memmem-simple: Stylistic changes.
58900         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
58901         Fix preprocessor directive indentation.
58903 2010-12-15  Pádraig Brady  <P@draigBrady.com>
58905         memmem, memmem-simple: reorganize and expand empty needle check
58906         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
58907         functional checks to memmem-simple so that one has a fully functional
58908         memmem by using just this module.
58909         Restrict the performance only check to the memmem module.
58910         Also expand the empty needle check to ensure the correct
58911         pointer is returned, not just a non NULL pointer.
58912         * doc/glibc-functions/memmem.texi: Rearrange the portability
58913         documentation to correlate with the rearranged checks.
58914         Clarify exactly how the memmem and memmem-simple modules
58915         relate to each other.
58917 2010-12-15  Pádraig Brady  <P@draigBrady.com>
58918             Bruno Haible  <bruno@clisp.org>
58920         Improve cross-compilation guesses for uClibc.
58921         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
58922         that uClibc does not have the glibc bug.
58923         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
58924         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
58926 2010-12-14  Eric Blake  <eblake@redhat.com>
58928         configmake: provide fallbacks for oldest supported autotools
58929         * m4/configmake.m4: New file.
58930         * modules/configmake (Files): Ship it.
58931         (configure.ac): Use it to guarantee fallbacks.
58933 2010-12-13  Pádraig Brady  <P@draigBrady.com>
58935         read-file: Improve handling of large files
58936         * lib/read-file.c (fread_file): Minimize realloc()s
58937         for regular files, and better manage sizes around SIZE_MAX.
58939 2010-12-13  Eric Blake  <eblake@redhat.com>
58941         cloexec, fcntl: relax license
58942         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
58943         consent from all contributors.
58944         * modules/fcntl (License): Likewise.
58946 2010-12-10  Bruno Haible  <bruno@clisp.org>
58948         Tests for module 'pipe-posix'.
58949         * modules/pipe-posix-tests: New file.
58950         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
58952 2010-12-10  Bruno Haible  <bruno@clisp.org>
58954         pipe-posix: Make it work in C++ mode.
58955         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
58956         (pipe): Use common idiom, not a macro definition.
58957         * lib/pipe.c: New file.
58958         * m4/pipe.m4: New file.
58959         * modules/pipe-posix (Description): Enhance.
58960         (Files): Add lib/pipe.c, m4/pipe.m4.
58961         (configure.ac): Invoke gl_FUNC_PIPE.
58962         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
58963         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
58964         * tests/test-unistd-c++.cc: Check the signature of pipe.
58966 2010-12-10  Bruno Haible  <bruno@clisp.org>
58968         Rename module 'pipe' to 'spawn-pipe'.
58969         * modules/spawn-pipe: New file, renamed from modules/pipe.
58970         (Files, configure.ac, Makefile.am): Update.
58971         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
58972         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
58973         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
58974         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
58975         "spawn-pipe.h" instead of "pipe.h".
58976         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
58977         to gl_SPAWN_PIPE.
58978         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
58979         (Files, Makefile.am): Update.
58980         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
58981         Update.
58982         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
58983         Include "spawn-pipe.h" instead of "pipe.h".
58984         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
58985         * lib/javacomp.c: Likewise.
58986         * lib/javaversion.c: Likewise.
58987         * lib/pipe-filter-gi.c: Likewise.
58988         * lib/pipe-filter-ii.c: Likewise.
58989         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
58990         * modules/javacomp (Depends-on): Likewise.
58991         * modules/javaversion (Depends-on): Likewise.
58992         * modules/pipe-filter-gi (Depends-on): Likewise.
58993         * modules/pipe-filter-ii (Depends-on): Likewise.
58994         * MODULES.html.sh (Executing programs): Update.
58995         * NEWS: Mention the change.
58997 2010-12-10  Eric Blake  <eblake@redhat.com>
58999         pipe-posix: new module
59000         * modules/pipe-posix: New file.
59001         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
59002         (gl_UNISTD_H): Check for declaration.
59003         * modules/unistd (Makefile.am): Substitute it.
59004         * lib/unistd.in.h (pipe): Provide it for mingw.
59005         * doc/posix-functions/pipe.texi (pipe): Update documentation.
59006         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
59008 2010-12-07  Bruno Haible  <bruno@clisp.org>
59010         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
59011         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
59012         u8_strcmp_gnu.
59013         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
59015 2010-12-06  Bruno Haible  <bruno@clisp.org>
59017         Update internal documentation.
59018         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
59020 2010-12-04  Bruno Haible  <bruno@clisp.org>
59022         Put more information about failed tests into the test return codes.
59023         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
59024         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
59025         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
59026         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
59027         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
59028         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
59029         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
59030         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
59031         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
59032         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
59033         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
59034         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
59035         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
59036         * m4/stdint.m4 (gl_STDINT_H): Likewise.
59037         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
59038         returns a bit mask.
59039         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
59040         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
59041         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
59042         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
59043         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
59044         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
59045         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
59046         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
59047         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
59048         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
59049         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
59050         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
59051         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
59052         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
59053         * m4/link.m4 (gl_FUNC_LINK): Likewise.
59054         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
59055         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
59056         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
59057         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
59058         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
59059         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
59060         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
59061         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
59062         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
59063         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
59064         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
59065         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
59066         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
59067         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
59068         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
59069         gl_PRINTF_PRECISION): Likewise.
59070         * m4/regex.m4 (gl_REGEX): Likewise.
59071         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
59072         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
59073         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
59074         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
59075         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
59076         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
59077         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
59078         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
59079         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
59080         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
59081         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
59082         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
59083         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
59084         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
59085         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
59086         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
59087         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
59088         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
59089         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
59090         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
59091         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
59092         enumerated value.
59093         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
59095 2010-12-04  Bruno Haible  <bruno@clisp.org>
59097         Update for Solaris 11 2010-11.
59098         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
59099         Express, released in November 2010.
59101 2010-12-04  Bruno Haible  <bruno@clisp.org>
59103         nproc: Relax license.
59104         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
59105         and Paul Eggert.
59106         Requested by Ludovic Courtès <ludo@gnu.org>.
59108 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
59110         utimecmp: fine-grained src to nearby coarse-grained dest
59112         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
59113         and the source is on a file system with higher-resolution time
59114         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
59115         not work, and the time stamps are close together, the algorithm to
59116         determine the exact resolution from the read-back mtime was buggy:
59117         it had a "!=" where it should have had an "==".  This bug has been
59118         in the code ever since it was introduced to gnulib.
59119         Problem reported by Dan Jacobson in
59120         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
59122 2010-11-30  Bruno Haible  <bruno@clisp.org>
59124         strerror_r-posix: Fix autoconf test.
59125         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
59127 2010-11-28  Bruno Haible  <bruno@clisp.org>
59128             Paul Eggert  <eggert@cs.ucla.edu>
59130         Tests for module 'getdomainname'.
59131         * modules/getdomainname-tests: New file.
59132         * tests/test-getdomainname.c: New file, based on
59133         tests/test-gethostname.c.
59135 2010-11-28  Bruno Haible  <bruno@clisp.org>
59136             Paul Eggert  <eggert@cs.ucla.edu>
59138         getdomainname: Use the system function when possible.
59139         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
59140         (getdomainname): Replace if needed. Provide the declaration if it is
59141         missing. Don't use _GL_CXXALIAS_SYS_CAST.
59142         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
59143         (getdomainname): When the system has getdomainname, call the system
59144         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
59145         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
59146         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
59147         found in libnsl. Look for the declaration also in <netdb.h>. Replace
59148         the function if its second argument is of type 'int' or if it is found
59149         in libnsl.
59150         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
59151         <sys/systeminfo.h> and sysinfo().
59152         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
59153         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
59154         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
59155         HAVE_GETDOMAINNAME.
59156         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
59157         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
59158         * doc/glibc-functions/getdomainname.texi: Document the problems with
59159         the getdomainname declaration.
59161 2010-11-28  Bruno Haible  <bruno@clisp.org>
59163         sys_socket: Ensure ss_family field on AIX.
59164         * lib/sys_socket.in.h (ss_family): New macro definition.
59165         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
59166         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
59167         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
59168         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
59169         * modules/sys_socket (Makefile.am): Substitute
59170         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
59171         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
59173 2010-11-27  Bruno Haible  <bruno@clisp.org>
59175         readline: Improve configure output.
59176         * m4/readline.m4 (gl_FUNC_READLINE): Make the
59177         "checking for readline..." result understandable.
59179 2010-11-27  Bruno Haible  <bruno@clisp.org>
59181         *printf-posix: Detect a bug on Solaris 10/x86.
59182         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
59183         for floating-point output.
59184         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
59185         directive.
59186         * tests/test-snprintf-posix.h (test_function): Likewise.
59187         * tests/test-sprintf-posix.h (test_function): Likewise.
59188         * tests/test-vasprintf-posix.c (test_function): Likewise.
59189         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
59190         * doc/posix-functions/printf.texi: Likewise.
59191         * doc/posix-functions/snprintf.texi: Likewise.
59192         * doc/posix-functions/sprintf.texi: Likewise.
59193         * doc/posix-functions/vfprintf.texi: Likewise.
59194         * doc/posix-functions/vprintf.texi: Likewise.
59195         * doc/posix-functions/vsnprintf.texi: Likewise.
59196         * doc/posix-functions/vsprintf.texi: Likewise.
59197         * doc/glibc-functions/obstack_printf.texi: Likewise.
59198         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
59200 2010-11-27  Bruno Haible  <bruno@clisp.org>
59202         Fix link error when module libunistring-optional is in use.
59203         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
59204         * modules/striconveha-tests (Makefile.am): Likewise.
59206 2010-11-27  Bruno Haible  <bruno@clisp.org>
59208         regex: Mention link dependencies.
59209         * modules/regex (Link): New section.
59210         * modules/rpmatch (Link): Likewise.
59211         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
59213 2010-11-27  Bruno Haible  <bruno@clisp.org>
59215         ftoastr: Fix compilation error on Solaris.
59216         * lib/ftoastr.c: Include <config.h>.
59218 2010-11-27  Bruno Haible  <bruno@clisp.org>
59220         getloadavg: Update documentation.
59221         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
59223 2010-11-27  Bruno Haible  <bruno@clisp.org>
59225         sys_socket: Fix test whether the functions are declared.
59226         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
59227         not <sys/select.h>.
59229 2010-11-27  Bruno Haible  <bruno@clisp.org>
59231         getpass: Make sure to get system declaration on some platforms.
59232         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
59233         gl_USE_SYSTEM_EXTENSIONS.
59234         * modules/getpass (Depends-on): Add extensions.
59236 2010-11-26  Bruno Haible  <bruno@clisp.org>
59238         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
59239         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
59240         'iconv' module is present.
59241         (ICONV_CONST): New macro.
59242         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
59243         ICONV_CONST.
59244         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
59245         set ICONV_CONST.
59246         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
59247         here.
59248         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
59249         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
59250         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
59251         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
59252         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
59253         present.
59255 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
59257         ftoastr: comment fix
59258         * lib/ftoastr.c: "little" -> "little or no" in comment
59260 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
59262         stdint: port to GCC 4.3 + OSX + Octave
59263         On this platform, stdint.h is buggy and defines int64_t to long
59264         long int.  The replacement defined it to long int, causing
59265         problems with C++ style name mangling.  Instead, trust the system
59266         definition if INT64_MAX is defined, and likewise for the unsigned
59267         variant.   Problem reported by Jarno Rajahalme in
59268         <http://lists.gnu.org/r/bug-gnulib/2010-04/msg00143.html>.
59269         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
59270         and don't mess with int64_t and INT64_MAX in this case.
59271         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
59273 2010-11-24  Bruno Haible  <bruno@clisp.org>
59275         doc: Corrections regarding MacOS X 10.4 and 10.5.
59276         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
59277         MacOS X.
59278         Reported by Simon Josefsson.
59280 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
59282         Uninstall ".bin" files installed by relocwrapper.
59283         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
59284         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
59285         unless it is already there.
59287 2010-11-21  Bruno Haible  <bruno@clisp.org>
59289         Update for NetBSD 5.0.
59290         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
59291         NetBSD; the test fails on NetBSD 5.0.
59292         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
59293         about NetBSD.
59295 2010-11-21  Bruno Haible  <bruno@clisp.org>
59297         Update for HP-UX 11.23 and HP-UX 11.31.
59298         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
59299         HP-UX.
59301 2010-11-21  Bruno Haible  <bruno@clisp.org>
59303         Update for MacOS X 10.5.
59304         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
59305         MacOS X; the test fails on MacOS X 10.5.8.
59306         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
59307         about MacOS X.
59309 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
59311         bootstrap: add bootstrap_sync option.
59312         See discussion at
59313         <http://lists.gnu.org/r/bug-gnulib/2010-10/msg00369.html>,
59314         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00200.html>.
59315         * build-aux/bootstrap: Accept --bootstrap-sync to update
59316         bootstrap if it is not identical to the local gnulib's
59317         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
59318         enable this by default.  Accept --no-bootstrap-sync to disable
59319         it.
59321 2010-11-20  Bruno Haible  <bruno@clisp.org>
59323         Ensure that <features.h> is included before __GLIBC__ is tested.
59324         * lib/printf-parse.h: Include <features.h>.
59325         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
59326         Reported by Mike Frysinger <vapier@gentoo.org>.
59328         Ensure that <features.h> is included before __GLIBC__ is tested.
59329         * lib/wchar.in.h: Include <features.h>.
59330         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
59331         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
59332         Reported by Mike Frysinger <vapier@gentoo.org>.
59334         Ensure that <features.h> is included before __GLIBC__ is tested.
59335         * lib/arpa_inet.in.h: Include <features.h>.
59336         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
59337         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
59338         Reported by Mike Frysinger <vapier@gentoo.org>.
59340         Ensure that <features.h> is included before __GLIBC__ is tested.
59341         * build-aux/link-warning.h: Include <features.h>.
59342         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
59343         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
59344         Reported by Mike Frysinger <vapier@gentoo.org>.
59346         Ensure that <features.h> is included before __GLIBC__ is tested.
59347         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
59348         Reported by Mike Frysinger <vapier@gentoo.org>.
59350 2010-11-20  Bruno Haible  <bruno@clisp.org>
59352         memmem: Fix autoconf test.
59353         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
59355 2010-11-20  Bruno Haible  <bruno@clisp.org>
59357         Port to uClibc.
59358         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
59359         * lib/fcntl.in.h: Likewise.
59360         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
59361         * lib/mbrtowc.c (mbrtowc): Likewise.
59362         * lib/relocatable.c (find_shared_library_fullname): Likewise.
59363         * lib/strerror_r.c: Likewise.
59364         * lib/unistr/u8-strnlen.c: Likewise.
59365         * lib/vasnprintf.c (decimal_point_char): Likewise.
59366         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
59367         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
59368         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
59369         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
59370         * tests/test-sigaction.c (handler, main): Likewise.
59371         * lib/freading.h: Treat uClibc like a non-glibc platform.
59372         * lib/freading.c: Likewise.
59373         * lib/gettext.h: Likewise.
59374         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
59375         Likewise.
59376         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
59377         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
59378         * lib/propername.c (proper_name_utf8): Likewise.
59379         * lib/spawn.in.h: Likewise.
59380         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
59381         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
59382         mem_cd_iconveh_internal): Likewise.
59383         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
59384         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
59385         strstr, strcasestr): Likewise.
59386         * lib/unicodeio.c (unicode_to_mb): Likewise.
59387         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
59388         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
59389         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
59390         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
59391         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
59392         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
59393         * lib/unistr/u8-stpncpy.c: Likewise.
59394         * lib/vasnprintf.c (VASNPRINTF): Likewise.
59395         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
59396         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
59397         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
59398         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
59399         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
59400         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
59401         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
59402         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
59403         Likewise.
59404         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
59405         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
59406         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
59407         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
59408         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
59409         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
59410         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
59411         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
59412         * tests/test-getopt.h (OPTIND_MIN): Likewise.
59413         * tests/test-striconveha.c (main): Likewise.
59414         * tests/test-vasnprintf-posix.c (test_function): Likewise.
59415         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
59416         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
59417         * doc/posix-functions/getline.texi: Likewise.
59418         Reported by Mike Frysinger <vapier@gentoo.org>.
59420 2010-11-20  Bruno Haible  <bruno@clisp.org>
59422         nproc: Fix condition.
59423         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
59424         HAVE_PTHREAD_AFFINITY_NP.
59426 2010-11-20  Bruno Haible  <bruno@clisp.org>
59428         Fix a comment.
59429         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
59431 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
59433         ftoastr: don't assume snprintf
59434         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
59435         Implement a subset of snprintf here, by using sprintf safely.
59436         * modules/ftoastr (Depends-on): Remove snprintf.
59438 2010-11-19  Jim Meyering  <meyering@redhat.com>
59440         test-rename.h: fix compilation failure
59441         * tests/test-rename.h (test_rename): Add omitted "}".
59443 2010-11-17  Jim Meyering  <meyering@redhat.com>
59445         maint.mk: add a URL discussing the no-@acronym policy
59446         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
59448 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
59450         ftoastr: depend on snprintf, improve comments
59451         * lib/ftoastr.c: Also mention Loitsch's draft.
59452         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
59453         needed in the current implementation, but it might simplify
59454         speeding up the code later.
59455         * modules/ftoastr: Depend on snprintf; this improves portability.
59456         Suggested by Bruno Haible in the same email.
59458         ftoastr: port to hosts lacking strtof and strtold
59459         Problem reported by Bruno Haible in
59460         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00242.html>.
59461         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
59462         environment and strtold (and presumably strtof) are not available.
59463         * modules/ftoastr (Files): Add m4/c-strtod.m4.
59464         (configure.ac): Require gl_C99_STRTOLD.
59466 2010-11-18  Bruno Haible  <bruno@clisp.org>
59468         c-strtold: Avoid link error on AIX 7.
59469         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
59470         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
59471         (gl_C_STRTOLD): Test whether strtold_l exists.
59472         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
59474 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
59476         intprops: new macro INT_BITS_STRLEN_BOUND
59477         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
59478         ftoastr.h.  This exposes an internal of intprops.h that was formerly
59479         not exposed.  Also, it uses a slightly tighter bound than before;
59480         though this makes no practical difference, we might as well be as
59481         tight as we easily can.
59483         ftoastr: new module, for lossless conversion of floats to short strings
59484         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
59485         * modules/ftoastr: New files.
59487 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
59489         bootstrap: port to Solaris sed
59490         * build-aux/bootstrap (get_version): Port to Solaris sed.
59491         See Ralf Wildenhues's note in
59492         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00156.html>.
59494 2010-11-14  Jim Meyering  <meyering@redhat.com>
59496         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
59497         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
59498         and move definition closer to sole use.
59500 2010-11-13  Jim Meyering  <meyering@redhat.com>
59502         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
59503         Now we require at least autoconf-2.59, which means the work-around
59504         is no longer needed.
59505         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
59506         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
59507         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
59508         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
59509         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
59511 2010-11-13  Bruno Haible  <bruno@clisp.org>
59513         rename, renameat: Avoid test failures at NFS mounted locations.
59514         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
59515         functions.
59516         (test_rename): Use assert_nonexistent.
59517         * tests/test-rename.c: Include <dirent.h>.
59518         * tests/test-renameat.c: Likewise.
59519         Reported by Gary V. Vaughan <gary@gnu.org>.
59521         rename, renameat: Document Linux bug with NFS
59522         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00154.html>.
59523         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
59524         * doc/posix-functions/renameat.texi: Likewise.
59525         Suggested by Eric Blake.
59527 2010-11-13  Bruno Haible  <bruno@clisp.org>
59529         rename test: Add comments.
59530         * tests/test-rename.h (test_rename): Add structure and comments.
59532 2010-11-13  Eric Blake  <eblake@redhat.com>
59534         maintainer-makefile: cover a few more files
59535         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
59536         scripts generated within C files, for libvirt.
59538 2010-11-13  Bruno Haible  <bruno@clisp.org>
59540         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
59541         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
59542         character, return the number of bytes that belong together, not always
59543         1.
59544         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
59545         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
59546         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
59547         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
59548         number of bytes of an invalid character.
59549         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
59550         (main): Invoke it.
59551         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
59552         results.
59553         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
59554         malformed byte sequences.
59555         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
59556         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
59557         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
59558         Reported by Ben Pfaff and Paolo Bonzini.
59560 2010-11-13  Bruno Haible  <bruno@clisp.org>
59562         openat: Work around glibc bug with fchownat() and empty file names.
59563         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
59564         (gl_FUNC_FCHOWNAT): Invoke it.
59565         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
59566         * doc/posix-functions/fchownat.texi: Document the glibc bug.
59567         Reported by Gary V. Vaughan <gary@gnu.org>.
59569 2010-11-13  Bruno Haible  <bruno@clisp.org>
59571         openat: Ensure autoconf macro ordering.
59572         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
59573         gl_USE_SYSTEM_EXTENSIONS.
59574         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
59576 2010-11-13  Bruno Haible  <bruno@clisp.org>
59578         Update comments.
59579         * lib/unistr/u8-check.c: Update file name in comments.
59580         * lib/unistr/u8-mblen.c: Likewise.
59581         * lib/unistr/u8-prev.c: Likewise.
59582         * lib/unistr/u8-strmblen.c: Likewise.
59583         * lib/unistr/u8-strmbtouc.c: Likewise.
59585 2010-11-13  Jim Meyering  <meyering@redhat.com>
59587         tests: avoid test failure on Solaris 10 due to lack of PATH export
59588         * tests/test-update-copyright.sh: Don't forget to export PATH.
59590         init.sh: ensure that IFS is defined, just in case...
59591         * tests/init.sh (setup_): Ensure that IFS is defined,
59592         so that saving and restoring it works as expected.  This
59593         appears to be useful at least for an old version of dash
59594         from a long time ago (RH 6).  See here for details:
59595         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
59597         maint.mk: tighten "test a == b" check
59598         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
59599         test to files that contain something like #!/bin/sh.
59600         Without this, coreutils would get two false positives in
59601         the comments of C source files.
59603 2010-11-12  Eric Blake  <eblake@redhat.com>
59605         bootstrap: fix typo in previous attempt
59606         * build-aux/bootstrap (buildreq): Correct the grouping.
59607         Reported by Paul Eggert.
59609         maintainer-makefile: prohibit test x == x
59610         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
59611         Based on a report by Matthias Bolte.
59613         bootstrap: allow FreeBSD gzip
59614         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
59615         which has no '.' and goes to stderr.
59616         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
59617         Reported by Matthias Bolte.
59619         maintainer-makefile: check for i18n setup
59620         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
59621         will likely work.
59623 2010-11-12  Bruno Haible  <bruno@clisp.org>
59625         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
59626         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
59627         * lib/nanosleep.c (nanosleep): Likewise.
59629 2010-11-11  Bruno Haible  <bruno@clisp.org>
59631         fcntl-h: Fix for use of C++ on glibc systems.
59632         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
59633         also on glibc systems in C++ mode.
59634         Reported by Gary V. Vaughan <gary@gnu.org>.
59636 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
59638         mknod: avoid false failure with dash
59639         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
59641 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
59643         unlink: Fix "is it should" typo in diagnostic.
59644         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
59645         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00106.html>.
59647 2010-11-11  Bruno Haible  <bruno@clisp.org>
59649         Tests for module 'strerror_r-posix'.
59650         * modules/strerror_r-posix-tests: New file.
59651         * tests/test-strerror_r.c: New file.
59652         * tests/test-string-c++.cc: Check the signature of strerror_r.
59654         New module 'strerror_r-posix'.
59655         * lib/string.in.h (strerror_r): New declaration.
59656         * lib/strerror_r.c: New file.
59657         * m4/strerror_r.m4: New file.
59658         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
59659         of strerror_r.
59660         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
59661         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
59662         * modules/strerror_r-posix: New file.
59663         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
59664         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
59665         * doc/posix-functions/strerror_r.texi: Mention the new module and the
59666         portability problems.
59668 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
59670         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
59671         line is also considered for output. Quoted function name in shell
59672         command, so temporary files for functions like MyClass::operator()
59673         are removed correctly without errors.
59675 2010-11-09  Bruno Haible  <bruno@clisp.org>
59677         * doc/posix-functions/strerror.texi: List more failing platforms.
59679         * doc/posix-functions/strerror.texi: Add a comment.
59681 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
59683         fdopendir: fix bug on MacOS X when low on file descriptors
59685         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
59686         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
59687         All callers changed.
59688         (fdopendir): Invoke save_cwd at the top level, not after using
59689         multiple dup() calls to use up file descriptors.  Then retry
59690         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
59691         less than the maximum number of open file descriptors, because
59692         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
59693         on Mac OS X 10.6.4 for tar 1.24
59694         <http://lists.gnu.org/r/bug-tar/2010-10/msg00084.html>
59695         <http://lists.gnu.org/r/bug-tar/2010-11/msg00000.html>
59696         and for tar 1.25
59697         <http://lists.gnu.org/r/bug-tar/2010-11/msg00038.html>.
59699 2010-11-07  Bruno Haible  <bruno@clisp.org>
59701         vasnprintf: Support I flag on glibc systems.
59702         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
59703         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
59704         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
59705         snprintf function.
59706         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
59707         glibc systems.
59708         * tests/test-vasnprintf-posix3.c: New file.
59709         * modules/vasnprintf-posix-tests (Files): Add it.
59710         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
59712 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
59714         [html] Fix copy/paste bug: Use unique name for compiler warnings.
59715         * MODULES.html.sh: For compiler warnings, use name
59716         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
59718 2010-11-05  Eric Blake  <eblake@redhat.com>
59720         ceil, floor: avoid spurious failure with icc
59721         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
59722         [denormals-as-zero] when optimizing without -mieee-fp option.
59723         * tests/test-floorf2.c (floorf_reference): Likewise.
59724         * tests/test-ceilf1.c (dummy): New function.
59725         (main): Use it to outsmart icc's optimization.
59726         * tests/test-floorf1.c (dummy, main): Likewise.
59728         tests: require working signbit
59729         * modules/ceilf-tests (Depends-on): Add signbit.
59730         * modules/ceill-tests (Depends-on): Likewise.
59731         * modules/floorf-tests (Depends-on): Likewise.
59732         * modules/floorl-tests (Depends-on): Likewise.
59733         * modules/round-tests (Depends-on): Likewise.
59734         * modules/roundf-tests (Depends-on): Likewise.
59735         * modules/roundl-tests (Depends-on): Likewise.
59736         * modules/trunc-tests (Depends-on): Likewise.
59737         * modules/truncf-tests (Depends-on): Likewise.
59738         * modules/truncl-tests (Depends-on): Likewise.
59740         strtod: work around icc bug
59741         * lib/strtod.c (minus_zero): Define to working value.
59742         (strtod): Use it to avoid icc bug.
59744         copysign: enhance tests
59745         * modules/copysign-tests (Files): Add minus-zero.h.
59746         * tests/test-copysign.c (main): Also test zeros.
59748 2010-11-04  Eric Blake  <eblake@redhat.com>
59750         ceil, floor, round, trunc: enhance tests of -0
59751         * tests/test-ceilf1.c (main): Ensure correct sign of result.
59752         * tests/test-ceill.c (main): Likewise.
59753         * tests/test-floorf1.c (main): Likewise.
59754         * tests/test-floorl.c (main): Likewise.
59755         * tests/test-round1.c (main): Likewise.
59756         * tests/test-roundf1.c (main): Likewise.
59757         * tests/test-roundl.c (main): Likewise.
59758         * tests/test-trunc1.c (main): Likewise.
59759         * tests/test-truncf1.c (main): Likewise.
59760         * tests/test-truncl.c (main): Likewise.
59762 2010-11-04  Eric Blake  <eblake@redhat.com>
59764         frexp, tests: work around ICC bug with -zero
59765         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
59766         works with more compilers.
59767         * tests/minus-zero.h: New file.
59768         * modules/ceilf-tests (Files): Include it.
59769         * modules/ceill-tests (Files): Likewise.
59770         * modules/floorf-tests (Files): Likewise.
59771         * modules/floorl-tests (Files): Likewise.
59772         * modules/frexp-nolibm-tests (Files): Likewise.
59773         * modules/frexp-tests (Files): Likewise.
59774         * modules/frexpl-nolibm-tests (Files): Likewise.
59775         * modules/frexpl-tests (Files): Likewise.
59776         * modules/isnan-tests (Files): Likewise.
59777         * modules/isnand-nolibm-tests (Files): Likewise.
59778         * modules/isnand-tests (Files): Likewise.
59779         * modules/isnanf-nolibm-tests (Files): Likewise.
59780         * modules/isnanf-tests (Files): Likewise.
59781         * modules/isnanl-nolibm-tests (Files): Likewise.
59782         * modules/isnanl-tests (Files): Likewise.
59783         * modules/round-tests (Files): Likewise.
59784         * modules/roundf-tests (Files): Likewise.
59785         * modules/roundl-tests (Files): Likewise.
59786         * modules/ldexpl-tests (Files): Likewise.
59787         * modules/signbit-tests (Files): Likewise.
59788         * modules/snprintf-posix-tests (Files): Likewise.
59789         * modules/sprintf-posix-tests (Files): Likewise.
59790         * modules/strtod-tests (Files): Likewise.
59791         * modules/trunc-tests (Files): Likewise.
59792         * modules/truncf-tests (Files): Likewise.
59793         * modules/truncl-tests (Files): Likewise.
59794         * modules/vsnprintf-posix-tests (Files): Likewise.
59795         * modules/vsprintf-posix-tests (Files): Likewise.
59796         * modules/vasnprintf-posix-tests (Files): Likewise.
59797         * modules/vasprintf-posix-tests (Files): Likewise.
59798         * tests/test-ceilf1.c (main): Use it.
59799         * tests/test-ceill.c (main): Likewise.
59800         * tests/test-floorf1.c (main): Likewise.
59801         * tests/test-floorl.c (main): Likewise.
59802         * tests/test-frexp.c (main): Likewise.
59803         * tests/test-frexpl.c (main): Likewise.
59804         * tests/test-isnan.c (main): Likewise.
59805         * tests/test-isnand.h (main): Likewise.
59806         * tests/test-isnanf.h (main): Likewise.
59807         * tests/test-isnanl.h (main): Likewise.
59808         * tests/test-ldexpl.c (main): Likewise.
59809         * tests/test-round.c (main): Likewise.
59810         * tests/test-roundf.c (main): Likewise.
59811         * tests/test-roundl.c (main): Likewise.
59812         * tests/test-signbit.c (test_signbitf, test_signbitd)
59813         (test_signbitl): Likewise.
59814         * tests/test-snprintf-posix.h (test_function): Likewise.
59815         * tests/test-sprintf-posix.h (test_function): Likewise.
59816         * tests/test-strtod.c (main): Likewise.
59817         * tests/test-trunc1.c (main): Likewise.
59818         * tests/test-truncf1.c (main): Likewise.
59819         * tests/test-truncl.c (main): Likewise.
59821         isnanl: work around icc bug
59822         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
59824 2010-11-03  Eric Blake  <eblake@redhat.com>
59826         tests: fix compiler warnings
59827         * tests/test-getopt.h (test_getopt): Fix condition.
59828         * tests/test-getopt_long.h (test_getopt_long): Likewise.
59829         * tests/test-pipe2.c (main): Likewise.
59830         * tests/test-quotearg-simple.c (main): Avoid icc warning.
59832         utimens: fix broken m4 test
59833         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
59835 2010-10-28  Bruno Haible  <bruno@clisp.org>
59837         posix_spawn*, getdtablesize: Relax license.
59838         * modules/posix_spawn (License): Change to LGPLv2+.
59839         * modules/posix_spawnp (License): Likewise.
59840         * modules/posix_spawn-internal (License): Likewise.
59841         * modules/posix_spawnattr_init (License): Likewise.
59842         * modules/posix_spawnattr_getflags (License): Likewise.
59843         * modules/posix_spawnattr_setflags (License): Likewise.
59844         * modules/posix_spawnattr_getpgroup (License): Likewise.
59845         * modules/posix_spawnattr_setpgroup (License): Likewise.
59846         * modules/posix_spawnattr_getschedparam (License): Likewise.
59847         * modules/posix_spawnattr_setschedparam (License): Likewise.
59848         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
59849         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
59850         * modules/posix_spawnattr_getsigdefault (License): Likewise.
59851         * modules/posix_spawnattr_setsigdefault (License): Likewise.
59852         * modules/posix_spawnattr_getsigmask (License): Likewise.
59853         * modules/posix_spawnattr_setsigmask (License): Likewise.
59854         * modules/posix_spawnattr_destroy (License): Likewise.
59855         * modules/posix_spawn_file_actions_init (License): Likewise.
59856         * modules/posix_spawn_file_actions_addclose (License): Likewise.
59857         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
59858         * modules/posix_spawn_file_actions_addopen (License): Likewise.
59859         * modules/posix_spawn_file_actions_destroy (License): Likewise.
59860         * modules/getdtablesize (License): Likewise.
59861         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
59863 2010-10-26  Bruno Haible  <bruno@clisp.org>
59865         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
59866         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
59867         Cygwin and mingw.
59868         Suggested by Eric Blake.
59870 2010-10-26  Bruno Haible  <bruno@clisp.org>
59872         stdio: Work around compilation error due to renameat() on Solaris 10.
59873         * lib/stdio.in.h: Include <unistd.h> on Solaris.
59874         * lib/renameat.c: Don't include <unistd.h> here.
59875         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
59876         Reported by Paul Eggert and Eric Blake.
59878 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
59880         renameat: port to Solaris 10, which declares renameat in unistd.h
59882         * lib/renameat.c: Include unistd.h before stdio.h, because
59883         Solaris 10 declares renameat in unistd.h.  Problem encountered
59884         when building GNU tar 1.24 on Solaris 10.
59886 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
59888         fdopendir: fix C89 compilation
59889         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
59890         compilers.
59892 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
59894         inttostr: simplify by removing unnecessary redundancy
59895         * lib/anytostr.c: Don't include verify.h.
59896         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
59897         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
59898         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
59899         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
59900         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
59901         Likewise.
59902         * modules/inttostr (Depends-on): Remove 'verify'.
59904 2010-10-23  Bruno Haible  <bruno@clisp.org>
59906         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
59907         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
59908         Reported by Eric Blake.
59910 2010-10-23  Bruno Haible  <bruno@clisp.org>
59912         Tests: Fix LOCALE_JA on MirBSD 10.
59913         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
59914         to an UTF-8 locale.
59915         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
59916         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
59917         Reported by Eric Blake.
59919 2010-10-21  Bruno Haible  <bruno@clisp.org>
59921         nl_langinfo test: Avoid test failure on NetBSD 5.
59922         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
59923         Reported by Eric Blake.
59925 2010-10-21  Eric Blake  <eblake@redhat.com>
59927         c-stack: work around libsigsegv 2.8 bug
59928         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
59929         overflow on at least PowerPC64.
59931 2010-10-17  Bruno Haible  <bruno@clisp.org>
59933         userspec: Drop redundant file.
59934         * modules/userspec (Files): Remove lib/inttostr.h.
59936 2010-10-17  Bruno Haible  <bruno@clisp.org>
59938         nl_langinfo tests: Silence some warnings.
59939         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
59940         Reported by Jim Meyering.
59942 2010-10-17  Bruno Haible  <bruno@clisp.org>
59944         Make use of GCC's attribute __alloc_size__.
59945         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
59946         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
59947         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
59948         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
59949         __alloc_size__.
59950         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
59951         Suggested by Jim Meyering.
59953 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
59955         bootstrap: anchor .gitignore entries.
59956         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
59957         with...
59958         (insert_vc_ignore): ... this new function, which prepends `/' to
59959         all .gitignore entries before passing them to
59960         insert_sorted_if_absent.
59962 2010-10-16  Bruno Haible  <bruno@clisp.org>
59964         nextafter: Fix configure check.
59965         * modules/nextafter (configure.ac): Correct expected prototype.
59967 2010-10-16  Bruno Haible  <bruno@clisp.org>
59969         termios: Update documentation.
59970         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
59972 2010-10-16  Bruno Haible  <bruno@clisp.org>
59974         tests: Make them compile with TinyCC.
59975         * tests/test-strstr.c (main): Remove parentheses around array
59976         initializer.
59978 2010-10-15  Eric Blake  <eblake@redhat.com>
59980         ignore-value: make header idempotent
59981         * lib/ignore-value.h: Add double-inclusion guards.
59982         Reported by Stefan Berger.
59984 2010-10-15  Jim Meyering  <meyering@redhat.com>
59986         GNUmakefile: handle "stable" target, not "major"
59987         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
59988         lists in maint.mk and announce-gen.  Without this, "make stable"
59989         would fail to ensure that $(VERSION) is up to date.
59991 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
59993         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
59994         & co.
59996 2010-10-14  Bruno Haible  <bruno@clisp.org>
59998         vasnprintf: Don't set errno to 0.
59999         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
60000         block that sets it to 0.
60001         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
60003 2010-10-14  Bruno Haible  <bruno@clisp.org>
60005         socketlib: Fix.
60006         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
60007         gl_PREREQ_SYS_H_WINSOCK2.
60008         Reported by Ian Beckwith <ianb@erislabs.net>.
60010 2010-10-13  Jim Meyering  <meyering@redhat.com>
60012         test-select-stdin.c: avoid warn_unused_result warnings
60013         * tests/test-select-stdin.c: Include "macros.h".
60014         ASSERT that read and fflush succeed.
60016 2010-10-13  Jim Meyering  <meyering@redhat.com>
60018         git-version-gen: do require git-VC'd files in cwd
60019         * build-aux/git-version-gen: Reject a git version string
60020         if there are no commits associated with the current directory.
60021         This avoids an unlikely false-positive (unrelated dir whose parent
60022         repository also contains a tag matching v*), as pointed out
60023         by Giuseppe Scrivano in
60024         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
60026 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
60028         argv-iter: omit nonconforming declaration
60029         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
60030         enum arg_iter_err declaration, which doesn't conform to C99.
60031         Solaris 10 cc warns about this.
60033 2010-10-13  Eric Blake  <eblake@redhat.com>
60035         termios: fix compilation on mingw
60036         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
60037         (gl_TERMIOS_H): Adjust it on mingw.
60038         * modules/termios (Makefile.am): Substitute new key.
60039         * lib/termios.in.h (includes): Make include_next conditional.
60040         * doc/posix-headers/termios.texi (termios.h): Update
60041         documentation.
60042         Reported by Daniel P. Berrange.
60044 2010-10-13  Jim Meyering  <meyering@redhat.com>
60046         git-version-gen: don't require that .git/ be in the current dir
60047         * build-aux/git-version-gen: Adjust this script so that it works
60048         when run from any working directory beneath the top-level .git/-
60049         containing directory.  Inspired by a patch from Giuseppe Scrivano,
60050         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
60052         test-select: avoid warn_unused_result warnings
60053         * tests/test-select.c: Include "macros.h".
60054         ASSERT that each call to read, write, and pipe succeeds.
60055         While not technically required, also check each "close".
60056         * modules/select-tests (Files): Add tests/macros.h.
60058         test-symlinkat: remove declaration of unused local
60059         * tests/test-symlinkat.c (main): Remove unused local, "buf".
60061         test-inttostr: avoid shadowing warnings
60062         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
60063         and use malloc rather than the stack for the same reason as
60064         mentioned in the comment justifying the other allocation.
60066 2010-10-11  Bruno Haible  <bruno@clisp.org>
60068         stdlib: Allow multiple gnulib generated replacements to coexist.
60069         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
60070         Reported by Sam Steingold <sds@gnu.org>.
60072 2010-10-11  Jim Meyering  <meyering@redhat.com>
60074         fix a documentation typo
60075         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
60077 2010-10-11  Eric Blake  <eblake@redhat.com>
60079         futimens: work around Solaris 11 bug
60080         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
60081         * tests/test-futimens.h (test_futimens): Enhance, rather than
60082         weaken test.
60083         * doc/posix-functions/futimens.texi (futimens): Document the bug.
60085 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
60087         Indentation.
60088         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
60089         higher-level operators more to the left.
60091 2010-10-11  Jim Meyering  <meyering@redhat.com>
60093         test-futimens: avoid unwarranted test failure on Solaris 5.11
60094         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
60095         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
60096         because it tries to dereference the NULL name argument.
60098 2010-10-11  Bruno Haible  <bruno@clisp.org>
60100         Indentation.
60101         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
60102         indentation.
60104 2010-10-11  Jim Meyering  <meyering@redhat.com>
60106         spawn.in.h: make indentation consistent with parentheses
60107         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
60108         Make indentation consistent with parentheses.
60110 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
60112         Fix mismatched parens in previous commit
60113         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
60114         parens.
60116 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
60118         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
60120         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
60121         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
60122         * lib/malloca.c: Include "verify.h".
60123         (verify1): Remove, replacing with a verify call.
60124         * lib/relocwrapper.c (verify1): Likewise.
60125         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
60126         Likewise.
60127         * modules/malloca (Depends-on): Add 'verify'.
60128         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
60129         * modules/vasnprintf (Depends-on): Add 'verify'.
60130         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
60131         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
60132         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
60133         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
60134         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
60135         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
60136         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
60138         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
60140         Formerly the style was sometimes 2*X - 1, because the C standard
60141         was wrongly thought to disallow ?: in integral constant expressions.
60142         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
60143         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
60144         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
60145         * lib/stdint.in.h (_verify_intmax_size): Likewise.
60146         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
60147         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
60148         verify that time_t cannot be floating.
60150 2010-10-08  Eric Blake  <eblake@redhat.com>
60152         time: enforce recent POSIX ruling that time_t is integral
60153         * lib/time.in.h (__time_t_must_be_integral): Detect any
60154         problematic systems, allowing the rest of gnulib to assume POSIX.
60156 2010-10-08  Jim Meyering  <meyering@redhat.com>
60158         fdopendir: fix a bug on systems lacking openat and /proc support
60159         OpenBSD 4.7 is one such system.  The most noticeable effect was
60160         failure of any application making nontrivial use of fts: rm, du,
60161         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
60162           ./rm: traversal failed: `a': Bad file descriptor
60163         Debugging that, you see that even though FD 6 was closed just
60164         prior to the opendir call in fd_clone_opendir, its resulting
60165         dir->dd_fd was 8, rather than the expected value of 6:
60167         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
60168         93                close (fd);
60169         (gdb) n
60170         94                dir = fd_clone_opendir (dupfd);
60171         (gdb) n
60172         95                saved_errno = errno;
60173         (gdb) p dir->dd_fd
60174         $11 = 8
60176         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
60177         The problem is that on OpenBSD, fd_clone_opendir has to resort
60178         to using the old-style save/restore CWD mechanism, due to its
60179         lack of openat/proc support, and *that* would steal the FD (6)
60180         that opendir was supposed to use.
60182         The fix is to squirrel away the desired FD so that save_cwd uses a
60183         different one, and then free the dest FD right before calling opendir.
60184         That guarantees opendir will use the required file descriptor.
60186         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
60188 2010-10-08  Bruno Haible  <bruno@clisp.org>
60190         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
60191         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
60193 2010-10-08  Bruno Haible  <bruno@clisp.org>
60195         nanosleep: Make replacement POSIX compliant.
60196         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
60197         is out of range.
60198         Reported by Jim Meyering.
60200 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
60202         bootstrap: add hook for altering gnulib.mk, for Bison
60203         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
60204         the Bison bootstrapping process can rewrite file names and variables
60205         in this file before later parts of 'bootstrap' use the file.
60206         Bison wants to include lib/gnulib.mk from the top-level makefile,
60207         so it needs the file names in this file to be relative to the top
60208         level, not relative to lib; plus it needs variable names to be
60209         rewritten.
60210         (slurp): Use the new function.
60212         bootstrap: reformat for readability
60213         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
60215 2010-10-08  Eric Blake  <eblake@redhat.com>
60217         docs: update cygwin progress
60218         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
60219         1.7.7.
60220         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
60221         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
60222         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
60223         * doc/posix-functions/carg.texi (carg): Likewise.
60224         * doc/posix-functions/cargf.texi (cargf): Likewise.
60225         * doc/posix-functions/casin.texi (casin): Likewise.
60226         * doc/posix-functions/casinf.texi (casinf): Likewise.
60227         * doc/posix-functions/casinh.texi (casinh): Likewise.
60228         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
60229         * doc/posix-functions/catan.texi (catan): Likewise.
60230         * doc/posix-functions/catanf.texi (catanf): Likewise.
60231         * doc/posix-functions/catanh.texi (catanh): Likewise.
60232         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
60233         * doc/posix-functions/ccos.texi (ccos): Likewise.
60234         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
60235         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
60236         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
60237         * doc/posix-functions/cexp.texi (cexp): Likewise.
60238         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
60239         * doc/posix-functions/cimag.texi (cimag): Likewise.
60240         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
60241         * doc/posix-functions/clog.texi (clog): Likewise.
60242         * doc/posix-functions/clogf.texi (clogf): Likewise.
60243         * doc/posix-functions/conj.texi (conj): Likewise.
60244         * doc/posix-functions/conjf.texi (conjf): Likewise.
60245         * doc/posix-functions/cpow.texi (cpow): Likewise.
60246         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
60247         * doc/posix-functions/cproj.texi (cproj): Likewise.
60248         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
60249         * doc/posix-functions/creal.texi (creal): Likewise.
60250         * doc/posix-functions/crealf.texi (crealf): Likewise.
60251         * doc/posix-functions/csin.texi (csin): Likewise.
60252         * doc/posix-functions/csinf.texi (csinf): Likewise.
60253         * doc/posix-functions/csinh.texi (csinh): Likewise.
60254         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
60255         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
60256         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
60257         * doc/posix-functions/ctan.texi (ctan): Likewise.
60258         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
60259         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
60260         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
60261         * doc/posix-headers/complex.texi (complex.h): Likewise.
60263 2010-10-07  Jim Meyering  <meyering@redhat.com>
60265         parse-datetime: avoid compilation failure on OpenBSD 4.7
60266         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
60267         This works around a compilation failure on OpenBSD 4.7:
60268         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
60270 2010-10-07  Eric Blake  <eblake@redhat.com>
60272         docs: update cygwin progress
60273         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
60274         1.7.6.
60275         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
60276         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
60277         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
60278         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
60279         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
60280         Likewise.
60281         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
60282         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
60283         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
60284         Likewise.
60285         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
60286         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
60287         Likewise.
60288         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
60289         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
60290         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
60291         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
60292         Likewise.
60293         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
60294         Likewise.
60295         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
60297         docs: update parse-datetime history
60298         * doc/parse-datetime.texi (Authors of parse_datetime): Better
60299         documentation of this function's history and alternatives.
60301         cygwin: use more robust version check
60302         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
60303         exclude an eventual cygwin 1.9.1.
60304         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
60305         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
60306         (gl_FUNC_STRCASESTR): Likewise.
60307         Reported by Bruno Haible.
60309 2010-10-06  Bruno Haible  <bruno@clisp.org>
60311         string, sys_select: Avoid #including large headers unless necessary.
60312         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
60313         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
60314         OSF/1, BeOS, Haiku.
60315         Reported by Jim Meyering.
60317 2010-10-05  Eric Blake  <eblake@redhat.com>
60319         memmem, strstr, strcasestr: fix bug with long periodic needle
60320         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
60321         periodic needle having false positive.
60322         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
60323         and cygwin 1.7.7.
60324         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
60325         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
60326         (gl_FUNC_STRCASESTR): Likewise.
60327         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
60328         * tests/test-memmem.c (main): Expose the bug.
60329         * tests/test-strcasestr.c (main): Likewise.
60330         * tests/test-strstr.c (main): Likewise.
60331         * tests/test-c-strcasestr.c (main): Likewise.
60332         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
60333         * doc/posix-functions/strstr.texi (strstr): Likewise.
60334         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
60335         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
60337 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
60339         parse-datetime: do some more renaming
60340         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
60341         parse_datetime, not get_date.  Mention the renaming.
60342         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
60343         in comments.
60344         * m4/bison.m4: Likewise.
60346 2010-10-05  Eric Blake  <eblake@redhat.com>
60348         parse-datetime: better name than get_date
60349         * NEWS: Reword the deprecation notice.
60350         * modules/get_date: Rename to modules/parse-datetime.
60351         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
60352         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
60353         * lib/get_date.y: Rename to lib/parse-datetime.y.
60354         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
60355         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
60356         * doc/getdate.texi: Provide fallback wrapper.
60357         * lib/getdate.h: Move guts, and wrap...
60358         * lib/parse-datetime.h: ...new file.
60359         * lib/parse-datetime.y (get_date): Rename...
60360         (parse_datetime): ...to this.
60361         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
60362         (gl_PARSE_DATETIME): ...to this.
60363         * doc/posix-functions/getdate.texi (get_date): Provide fallback
60364         documentation.
60365         * modules/getdate (Files): Provide fallback docs and header.
60366         (Notice, Depends-on): Update references.
60367         * tests/test-parse-datetime.c: Likewise.
60368         * DEPENDENCIES: Likewise.
60369         * MODULES.html.sh (Date and time <time.h>): Likewise.
60370         * doc/parse-datetime.texi (Date input formats)
60371         (Authors of parse_datetime): Likewise.
60372         * modules/parse-datetime (Files, configure.ac, Makefile.am)
60373         (Include): Likewise.
60374         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
60375         * gnulib-tool: Likewise.
60376         * m4/bison.m4 (gl_BISON): Likewise.
60377         Suggested by Bruno Haible.
60379 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
60381         more ports to Solaris tr, which needs [] around ranges
60382         * gnulib-tool: Solaris tr needs [] around ranges.
60383         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
60384         * tests/test-pipe-filter-gi1.c (main): Likewise.
60385         * tests/test-pipe-filter-ii1.c (main): Likewise.
60387 2010-10-05  Eric Blake  <eblake@redhat.com>
60389         bootstrap: fix Solaris regression
60390         * build-aux/bootstrap (check_versions): Solaris tr still needs []
60391         around ranges.
60392         Reported by Pádraig Brady.
60394         bootstrap: work with pkg-config
60395         * build-aux/bootstrap (check_versions): Also transliterate - in
60396         prerequisite name.
60397         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
60398         prerequisites that were already found, to avoid confusion.
60399         Reported by Justin Clift.
60401         faccessat: remove unused wrappers
60402         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
60403         presence of these wrappers dragged in -lgen on Solaris.
60404         Reported by Clemens Brogi; fix suggested by Paul Eggert.
60406 2010-10-05  Jim Meyering  <meyering@redhat.com>
60408         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
60409         * Makefile (sc_pragma_columns): New syntax-check rule.
60411 2010-10-04  Bruno Haible  <bruno@clisp.org>
60413         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
60414         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
60415         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
60416         Reported by Bruce Korb and Eric Blake.
60418 2010-10-04  Bruno Haible  <bruno@clisp.org>
60420         threadlib: Make option --with-libpth-prefix work.
60421         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
60422         use $LIBPTH, not just -lpth.
60424 2010-10-04  Bruno Haible  <bruno@clisp.org>
60426         Avoid line length limitation from HP NonStop system header files.
60427         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
60428         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
60429         * lib/ctype.in.h: Likewise.
60430         * lib/dirent.in.h: Likewise.
60431         * lib/errno.in.h: Likewise.
60432         * lib/fcntl.in.h: Likewise.
60433         * lib/float.in.h: Likewise.
60434         * lib/getopt.in.h: Likewise.
60435         * lib/iconv.in.h: Likewise.
60436         * lib/inttypes.in.h: Likewise.
60437         * lib/langinfo.in.h: Likewise.
60438         * lib/locale.in.h: Likewise.
60439         * lib/math.in.h: Likewise.
60440         * lib/netdb.in.h: Likewise.
60441         * lib/netinet_in.in.h: Likewise.
60442         * lib/poll.in.h: Likewise.
60443         * lib/pthread.in.h: Likewise.
60444         * lib/pty.in.h: Likewise.
60445         * lib/sched.in.h: Likewise.
60446         * lib/se-selinux.in.h: Likewise.
60447         * lib/search.in.h: Likewise.
60448         * lib/signal.in.h: Likewise.
60449         * lib/spawn.in.h: Likewise.
60450         * lib/stdarg.in.h: Likewise.
60451         * lib/stddef.in.h: Likewise.
60452         * lib/stdint.in.h: Likewise.
60453         * lib/stdio.in.h: Likewise.
60454         * lib/stdlib.in.h: Likewise.
60455         * lib/string.in.h: Likewise.
60456         * lib/strings.in.h: Likewise.
60457         * lib/sys_file.in.h: Likewise.
60458         * lib/sys_ioctl.in.h: Likewise.
60459         * lib/sys_select.in.h: Likewise.
60460         * lib/sys_socket.in.h: Likewise.
60461         * lib/sys_stat.in.h: Likewise.
60462         * lib/sys_time.in.h: Likewise.
60463         * lib/sys_times.in.h: Likewise.
60464         * lib/sys_utsname.in.h: Likewise.
60465         * lib/sys_wait.in.h: Likewise.
60466         * lib/sysexits.in.h: Likewise.
60467         * lib/termios.in.h: Likewise.
60468         * lib/time.in.h: Likewise.
60469         * lib/unistd.in.h: Likewise.
60470         * lib/wchar.in.h: Likewise.
60471         * lib/wctype.in.h: Likewise.
60472         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
60473         * modules/ctype (Makefile.am): Likewise.
60474         * modules/dirent (Makefile.am): Likewise.
60475         * modules/errno (Makefile.am): Likewise.
60476         * modules/fcntl-h (Makefile.am): Likewise.
60477         * modules/float (Makefile.am): Likewise.
60478         * modules/getopt-posix (Makefile.am): Likewise.
60479         * modules/iconv-h (Makefile.am): Likewise.
60480         * modules/inttypes (Makefile.am): Likewise.
60481         * modules/langinfo (Makefile.am): Likewise.
60482         * modules/locale (Makefile.am): Likewise.
60483         * modules/math (Makefile.am): Likewise.
60484         * modules/netdb (Makefile.am): Likewise.
60485         * modules/netinet_in (Makefile.am): Likewise.
60486         * modules/poll-h (Makefile.am): Likewise.
60487         * modules/pthread (Makefile.am): Likewise.
60488         * modules/pty (Makefile.am): Likewise.
60489         * modules/sched (Makefile.am): Likewise.
60490         * modules/search (Makefile.am): Likewise.
60491         * modules/selinux-h (Makefile.am): Likewise.
60492         * modules/signal (Makefile.am): Likewise.
60493         * modules/spawn (Makefile.am): Likewise.
60494         * modules/stdarg (Makefile.am): Likewise.
60495         * modules/stddef (Makefile.am): Likewise.
60496         * modules/stdint (Makefile.am): Likewise.
60497         * modules/stdio (Makefile.am): Likewise.
60498         * modules/stdlib (Makefile.am): Likewise.
60499         * modules/string (Makefile.am): Likewise.
60500         * modules/strings (Makefile.am): Likewise.
60501         * modules/sys_file (Makefile.am): Likewise.
60502         * modules/sys_ioctl (Makefile.am): Likewise.
60503         * modules/sys_select (Makefile.am): Likewise.
60504         * modules/sys_socket (Makefile.am): Likewise.
60505         * modules/sys_stat (Makefile.am): Likewise.
60506         * modules/sys_time (Makefile.am): Likewise.
60507         * modules/sys_times (Makefile.am): Likewise.
60508         * modules/sys_utsname (Makefile.am): Likewise.
60509         * modules/sys_wait (Makefile.am): Likewise.
60510         * modules/sysexits (Makefile.am): Likewise.
60511         * modules/termios (Makefile.am): Likewise.
60512         * modules/time (Makefile.am): Likewise.
60513         * modules/unistd (Makefile.am): Likewise.
60514         * modules/wchar (Makefile.am): Likewise.
60515         * modules/wctype (Makefile.am): Likewise.
60517 2010-10-04  Bruno Haible  <bruno@clisp.org>
60519         read-file tests: Avoid a test failure on NonStop Kernel.
60520         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
60521         a regular file.
60522         Reported by Joachim Schmitz <schmitz@hp.com>.
60524 2010-10-03  Bruno Haible  <bruno@clisp.org>
60526         gnulib-tool: Fixes for --create-testdir with --libtool.
60527         * gnulib-tool (func_get_automake_snippet): Don't augment
60528         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
60529         an executable.
60530         (func_create_testdir): Handle module 'alloca' like func_import.
60531         Reported by Bruce Korb <bruce.korb@gmail.com>.
60533 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
60535         Avoid some lines longer than 80 characters.
60536         * lib/stdint.in.h: Break long comment lines.
60537         * lib/math.in.h: Likewise.
60538         (_GL_NUM_UINT_WORDS): New macro, for readability.
60539         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
60540         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
60541         * lib/stdlib.in.h: Likewise.
60542         * lib/spawn.in.h: Likewise.
60543         * lib/sys_socket.in.h: Update an URL.
60544         * lib/sys_stat.in.h: Break long line.
60546 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
60548         Improve pmccabe2html.
60549         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
60550         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
60551         when the sources change. Remove the line in the HTML about "Used
60552         ranges" (which implied that there might be other unused ranges),
60553         rename "Resume" to "Summary" (easier to understand for more users).
60554         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
60555         styles, and some unnecessary blank lines.
60557 2010-10-03  Bruno Haible  <bruno@clisp.org>
60558             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
60560         acl: Add support for ACLs on NonStop Kernel.
60561         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
60562         Check whether the function aclsort() exists.
60563         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
60564         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
60565         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
60566         (acl_nontrivial [HAVE_ACLSORT]: New function.
60567         (file_has_acl): Implement for NonStop Kernel.
60568         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
60569         (qset_acl): Implement for NonStop Kernel.
60570         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
60571         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
60572         (main): Implement for NonStop Kernel.
60573         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
60574         Kernel. Handle this flavor.
60575         * tests/test-set-mode-acl.sh: Likewise.
60576         * tests/test-copy-acl.sh: Likewise.
60577         * tests/test-copy-file.sh: Likewise.
60579 2010-10-03  Bruno Haible  <bruno@clisp.org>
60581         Info about ACLs on NonStop Kernel.
60582         * doc/acl-resources.txt: Add info about NonStop Kernel.
60583         References by Joachim Schmitz <schmitz@hp.com>.
60585 2010-10-02  Bruno Haible  <bruno@clisp.org>
60587         Define missing EDQUOT on NonStop Kernel.
60588         * lib/errno.in.h (EDQUOT): Assign a value if missing.
60589         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
60590         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
60591         missing.
60592         * doc/posix-headers/errno.texi: Mention the NSK bug.
60593         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
60594         Reported by Joachim Schmitz <schmitz@hp.com>.
60596 2010-10-02  Bruno Haible  <bruno@clisp.org>
60598         Update doc for POSIX:2008.
60599         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
60600         Update URL of POSIX specification.
60602 2010-10-02  Bruno Haible  <bruno@clisp.org>
60604         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
60605         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
60606         from gnulib, not from Automake.
60608 2010-10-02  Bruno Haible  <bruno@clisp.org>
60610         New module 'system-posix'.
60611         * modules/system-posix: New file.
60612         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
60613         module is present.
60614         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
60615         GNULIB_SYSTEM_POSIX.
60616         * modules/stdlib (Depends-on): Remove sys_wait.
60617         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
60618         * doc/posix-functions/system.texi: Mention the new module.
60619         * doc/posix-headers/stdlib.texi: Likewise.
60620         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
60621         define test_sys_wait_macros to a no-op.
60622         Reported by Sam Steingold <sds@gnu.org>.
60624 2010-09-30  Bruno Haible  <bruno@clisp.org>
60626         More renaming from 'getdate' to 'get_date'.
60627         * doc/get_date.texi: Renamed from doc/getdate.texi.
60628         * modules/get_date (Files): Update.
60629         * MODULES.html.sh (Date and time <time.h>): Update.
60630         * DEPENDENCIES: Update.
60631         * gnulib-tool: Update comment.
60632         * m4/bison.m4 (gl_BISON): Likewise.
60633         * m4/get_date.m4 (gl_GET_DATE): Likewise.
60635 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
60637         bootstrap: support ACLOCAL_FLAGS during aclocal
60638         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
60639         can add additional -I dir for third-party .m4 files.
60641 2010-09-30  Eric Blake  <eblake@redhat.com>
60643         bootstrap: use glibtoolize on MacOS
60644         * build-aux/bootstrap (check_versions): Convert libtool into
60645         libtoolize.
60646         (tool search): Move libtool check earlier, and look for
60647         glibtoolize for MacOS.
60648         (gnulib_tool_options): Auto-add --libtool when appropriate.
60649         Reported by Justin Clift.
60651         poll: fix typo that broke test on MacOS
60652         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
60653         Reported by Justin Clift.
60655         getdate: rename to get_date
60656         Note: getdate.h is not renamed, to minimize client impact.
60657         * modules/getdate: Mark obsolete.  Move old contents...
60658         * modules/get_date: ...to new module name.
60659         * modules/getdate-tests: Move...
60660         * modules/get_date-tests: ...here.
60661         * m4/getdate.m4: Move...
60662         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
60663         * lib/getdate.y: Move...
60664         * lib/get_date.y: ...here.
60665         * tests/test-getdate.c: Move...
60666         * tests/test-get_date.c: ...here.
60667         * doc/posix-functions/getdate.texi (getdate): Update name.
60668         * NEWS: Mention the change.
60670 2010-09-29  Bruno Haible  <bruno@clisp.org>
60672         Separate the module 'waitpid' from the module 'sys_wait'.
60673         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
60674         present.
60675         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
60676         gl_MODULE_INDICATOR_FOR_TESTS.
60677         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
60678         * modules/sys_wait (Depends-on): Remove waitpid.
60679         (Makefile.am): Substitute GNULIB_WAITPID.
60680         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
60681         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
60682         signature only if the 'waitpid' module is present.
60683         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
60684         * NEWS: Mention the change.
60685         * modules/grantpt (Depends-on): Add waitpid.
60686         * modules/wait-process (Depends-on): Likewise.
60688 2010-09-29  Bruno Haible  <bruno@clisp.org>
60690         More tests for module 'sys_wait'.
60691         * modules/sys_wait-c++-tests: New file.
60692         * tests/test-sys_wait-c++.cc: New file.
60693         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
60694         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
60696 2010-09-29  Bruno Haible  <bruno@clisp.org>
60698         New module 'waitpid'.
60699         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
60700         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
60701         Don't include <process.h>.
60702         (waitpid): Declare only, using modern idiom.
60703         * m4/waitpid.m4: New file.
60704         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
60705         * modules/waitpid: New file.
60706         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
60707         (Makefile.am): Update.
60708         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
60710 2010-09-28  Bruno Haible  <bruno@clisp.org>
60712         poll: Assume ANSI C.
60713         * lib/poll.c (poll): Use an ANSI C declaration.
60715 2010-09-28  Bruno Haible  <bruno@clisp.org>
60717         poll-h: Create poll.h on all platforms.
60718         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
60719         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
60720         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
60721         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
60722         (gl_REPLACE_POLL_H): Don't set POLL_H.
60723         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
60724         * modules/poll-h (Depends-on): Add include_next.
60725         (Makefile.am): Create poll.h unconditionally. Substitute also
60726         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
60728 2010-09-28  Bruno Haible  <bruno@clisp.org>
60730         Tests for module 'poll-h'.
60731         * modules/poll-h-c++-tests: New file.
60732         * tests/test-poll-h-c++.cc: New file.
60734         Tests for module 'poll-h'.
60735         * modules/poll-h-tests: New file.
60736         * tests/test-poll-h.c: New file.
60738 2010-09-28  Bruno Haible  <bruno@clisp.org>
60740         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
60741         * modules/poll-h (Depends-on): Add 'extensions'.
60743 2010-09-28  Bruno Haible  <bruno@clisp.org>
60745         New module 'poll-h'.
60746         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
60747         (poll): Use modern idiom.
60748         * modules/poll-h: New file.
60749         * modules/poll (Files): Remove lib/poll.in.h.
60750         (Depends-on): Add poll-h.
60751         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
60752         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
60753         * m4/poll_h.m4: New file.
60754         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
60755         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
60756         and invoke gl_REPLACE_POLL_H.
60757         * lib/poll.c: Use common idiom.
60758         * tests/test-poll.c: Likewise.
60759         * doc/posix-headers/poll.texi: Mention the poll-h module.
60760         Suggested by Eric Blake.
60762 2010-09-26  Bruno Haible  <bruno@clisp.org>
60764         sys_wait: Implement WSTOPSIG.
60765         * lib/sys_wait.in.h (WSTOPSIG): New macro.
60766         Reported by Simon Josefsson.
60768 2010-09-26  Simon Josefsson  <simon@josefsson.org>
60770         stdlib, sys_wait: Avoid compilation error on mingw.
60771         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
60773 2010-09-26  Bruno Haible  <bruno@clisp.org>
60775         stdlib tests: Avoid code duplication.
60776         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
60777         * modules/sys_wait-tests (Files): Likewise.
60778         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
60779         * tests/test-stdlib.c: Include test-sys_wait.h.
60780         (main): Invoke test_sys_wait_macros.
60781         * tests/test-sys_wait.c: Include test-sys_wait.h.
60782         (main): Invoke test_sys_wait_macros.
60784 2010-09-25  Simon Josefsson  <simon@josefsson.org>
60786         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
60787         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
60788         sure Windows sockets are working before calling getaddrinfo.
60789         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
60790         * doc/gnulib.texi (Windows sockets): Fix typo.
60792 2010-09-25  Bruno Haible  <bruno@clisp.org>
60794         Tests for module 'regex-quote'.
60795         * modules/regex-quote-tests: New file.
60796         * tests/test-regex-quote.c: New file.
60798         New module 'regex-quote'.
60799         * lib/regex-quote.h: New file.
60800         * lib/regex-quote.c: New file.
60801         * modules/regex-quote: New file.
60802         Suggested by Reuben Thomas <rrt@sc3d.org>.
60804 2010-09-24  Bruno Haible  <bruno@clisp.org>
60806         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
60807         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
60809 2010-09-23  Bruno Haible  <bruno@clisp.org>
60811         setenv: Relax license.
60812         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
60813         Blake.
60814         Requested by Eric Blake.
60816 2010-09-22  Bruno Haible  <bruno@clisp.org>
60818         termios: Relax license.
60819         * modules/termios (License): Change to LGPLv2+.
60820         Requested by Eric Blake.
60822 2010-09-22  Bruno Haible  <bruno@clisp.org>
60824         threadlib: Allow the package to change the default to 'no'.
60825         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
60826         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
60827         Reported by Paul Eggert.
60829 2010-09-22  Pádraig Brady  <P@draigbrady.com>
60830             Bruno Haible  <bruno@clisp.org>
60832         Fix endless loop in mbmemcasecoll.
60833         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
60834         byte.
60835         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
60837 2010-09-22  Bruno Haible  <bruno@clisp.org>
60839         Tests for module 'memcoll'.
60840         * modules/memcoll-tests: New file.
60841         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
60843         memcoll, xmemcoll: Clarify size vs. length.
60844         * modules/memcoll.c (memcoll0): Clarify specification.
60845         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
60846         passed to collate_error.
60848 2010-09-22  Bruno Haible  <bruno@clisp.org>
60850         Tests for module 'memcasecmp'.
60851         * modules/memcasecmp-tests: New file.
60852         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
60854 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
60856         * lib/pthread.in.h: Add split double-inclusion guard, and include
60857         system <pthread.h> if there is one.  Use @@-style as in other
60858         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
60859         pthread.h doesn't.
60860         (pthread_mutexattr_destroy, pthread_mutexattr_init):
60861         (pthread_mutexattr_settype, pthread_mutex_trylock):
60862         New static inline functions, if there's no system <pthread.h>.
60863         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
60864         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
60865         Approximate with mutexes if the system lacks spinlocks, as in
60866         MacOS.
60867         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
60868         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
60869         @@-style.  Check for spinlocks separately.
60870         (gl_PTHREAD_DEFAULTS): New macro.
60871         * modules/pthread: Redo to use a more typical style for in.h files.
60873 2010-09-21  Eric Blake  <eblake@redhat.com>
60875         net_if: enhance tests
60876         * tests/test-net_if.c (main): Move signature checks earlier.
60877         Print failures to stderr.
60878         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
60879         Document the bug that we do not yet fix.
60881 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
60883         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
60884         about gnulib, not GSS.
60886 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
60888         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
60889         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
60890         for Emacs.
60891         * build-aux/pmccabe2html: Make Makefile.am example code more
60892         cut-and-paste friendly.
60894 2010-09-21  Simon Josefsson  <simon@josefsson.org>
60896         * tests/test-net_if.c: New file.
60897         * modules/net_if-tests: New file.
60899 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
60901         pthread: add pthread_spin_destroy
60902         * lib/pthread.in.h (pthread_spin_destroy): New function.
60904 2010-09-19  Bruno Haible  <bruno@clisp.org>
60906         gnulib-tool: Fix --help output.
60907         * gnulib-tool (func_usage): Fix help message.
60908         Reported by Reuben Thomas <rrt@sc3d.org>.
60910 2010-09-18  Jim Meyering  <meyering@redhat.com>
60912         maint.mk: avoid unexpanded \n in two diagnostics
60913         * top/maint.mk (sc_prohibit_always_true_header_tests):
60914         Don't use a literal \n in a halt=... assignment.  It would not be
60915         expanded, and the two \n bytes would appear in the diagnostic output
60916         rather than the desired newline.  Use halt=$$(printf ... instead.
60917         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
60919 2010-09-18  Bruno Haible  <bruno@clisp.org>
60921         netinet_in: Doc tweak.
60922         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
60923         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
60925 2010-09-18  Jim Meyering  <meyering@redhat.com>
60927         init.sh: correct an outdated comment
60928         * tests/init.sh (create_exe_shims_):  s/function/alias/
60930         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
60931         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
60932         a file named "*.exe" is removed between the glob expansion and the
60933         processing of that oddly named file.
60935 2010-09-17  Eric Blake  <eblake@redhat.com>
60937         mirbsd: add some more support
60938         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
60939         in BSD family.
60940         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
60941         devices as OpenBSD.
60942         * m4/host-os.m4 (mirbsd): Add MirBSD.
60944         tests: fix unportable assumption on sys/wait.h
60945         * tests/test-sys_wait.c (main): Relax test.
60946         * tests/test-stdlib.c (main): Likewise.
60948         init.sh: accommodate directory with no .exes
60949         * tests/init.sh: Accomodate directory containing only scripts.
60951         tests: avoid compiler warning
60952         * tests/test-stdlib.c (main): Use the variable.
60954         fdutimens, fdutimensat: update signature, again
60955         * lib/utimens.h (gl_futimens): Delete, and move signature...
60956         (fdutimens): ...here.
60957         (fdutimensat): Rearrange signature.
60958         (lutimensat): Rename variable for clarity.
60959         * lib/fdutimensat.c (fdutimensat): Update signature.
60960         * lib/utimens.c (fdutimens): Likewise.
60961         (gl_futimens): Delete.
60962         (utimens, lutimens): Update callers.
60963         * lib/futimens.c (futimens): Likewise.
60964         * tests/test-fdutimensat.c: Likewise.
60965         * tests/test-utimens.c: Likewise.
60966         * tests/test-futimens.h: Update comment.
60967         * NEWS: Mention this.
60968         Suggested by Paul Eggert.
60970 2010-09-17  Bruno Haible  <bruno@clisp.org>
60972         Take over the maintenance of some older macros from Autoconf.
60973         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
60974         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
60975         GNU Autoconf.
60976         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
60977         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
60979 2010-09-17  Eric Blake  <eblake@redhat.com>
60981         fdutimensat: drop atflag validation
60982         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
60983         with valid fd, to close a race scenario where futimens is
60984         unsupported and FILE was replaced by a symlink.
60985         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
60986         accordingly.
60987         Suggested by Paul Eggert.
60989 2010-09-16  Bruno Haible  <bruno@clisp.org>
60991         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
60992         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
60994 2010-09-16  Bruno Haible  <bruno@clisp.org>
60996         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
60997         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
60998         login_tty exists.
60999         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
61001 2010-09-16  Bruno Haible  <bruno@clisp.org>
61003         login_tty: Make the replacement code work on BSD systems.
61004         * lib/login_tty.c: Include <sys/ioctl.h>.
61005         (login_tty): Use ioctl TIOCSCTTY when available.
61006         * modules/login_tty (Depends-on): Add sys_ioctl.
61007         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
61009 2010-09-16  Bruno Haible  <bruno@clisp.org>
61011         login_tty: Stricter unit test.
61012         * modules/login_tty-tests (Depends-on): Add tcgetsid.
61013         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
61014         and tcgetsid() after login_tty.
61015         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
61017 2010-09-16  Bruno Haible  <bruno@clisp.org>
61019         New module 'tcgetsid'.
61020         * lib/tcgetsid.c: New file.
61021         * m4/tcgetsid.m4: New file.
61022         * modules/tcgetsid: New file.
61023         * modules/termios (Depends-on): Add c++defs, warn-on-use.
61024         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
61025         GNULIB_TCGETSID, HAVE_TCGETSID.
61026         * lib/termios.in.h: Include <sys/types.h>.
61027         (tcgetsid): New declaration.
61028         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
61029         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
61030         * doc/posix-functions/tcgetsid.texi: Mention the new module.
61031         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
61033 2010-09-16  Bruno Haible  <bruno@clisp.org>
61035         Tests for module 'termios'.
61036         * modules/termios-c++-tests: New file.
61037         * modules/termios-tests: New file.
61038         * tests/test-termios-c++.cc: New file.
61039         * tests/test-termios.c: New file.
61041         New module 'termios'.
61042         * modules/termios: New file.
61043         * lib/termios.in.h: New file.
61044         * m4/termios_h.m4: New file.
61045         * doc/posix-headers/termios.texi: Mention the new module.
61047 2010-09-16  Eric Blake  <eblake@redhat.com>
61049         fdutimensat: add an atflag parameter
61050         * lib/fdutimensat.c (fdutimensat): Add new parameter.
61051         * lib/utimens.h (fdutimensat): Update prototype.
61052         * tests/test-fdutimensat.c: Adjust test to match.
61053         * NEWS: Document the change.
61054         Suggested by Paul Eggert.
61056 2010-09-16  Bruno Haible  <bruno@clisp.org>
61058         Fix typos in comments.
61059         * lib/striconveh.h: Fix typo in comment.
61060         * lib/login_tty.c (login_tty): Likewise.
61062 2010-09-15  Bruno Haible  <bruno@clisp.org>
61064         stdlib: clarify MirBSD WEXITSTATUS bug
61065         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
61066         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
61068 2010-09-15  Eric Blake  <eblake@redhat.com>
61070         stdlib: work around MirBSD WEXITSTATUS bug
61071         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
61072         * modules/stdlib (Depends-on): Add sys_wait.
61073         * tests/test-sys_wait.c (main): Enhance test.
61074         * tests/test-stdlib.c (main): Likewise.
61075         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
61077         docs: mention MacOS issue with WEXITSTATUS(constant)
61078         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
61079         issue.
61080         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
61082         strnlen: add tests
61083         * modules/strnlen-tests: New file.
61084         * tests/test-strnlen.c: Likewise.
61086 2010-09-14  Bruno Haible  <bruno@clisp.org>
61088         unistr/base: Avoid link errors when module 'libunistring' is also used.
61089         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
61090         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
61091         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
61092         Declare also when HAVE_LIBUNISTRING is set.
61093         Reported by Pádraig Brady <P@draigbrady.com>.
61095 2010-09-14  Eric Blake  <eblake@redhat.com>
61097         test-rawmemchr: make more robust
61098         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
61099         (Depends-on, configure.ac): Add needed prerequisites to use it.
61100         * modules/memchr-tests (Files, Depends-on, configure.ac):
61101         Likewise, to avoid implicit reliance on memchr module prereqs.
61102         * tests/test-memchr.c (main): Ensure proper masking.
61103         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
61104         reads.
61106         memchr: detect glibc Alpha bug
61107         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
61108         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
61109         Alpha.
61110         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
61111         * tests/test-memchr.c (main): Enhance test.
61112         Reported by Nelson H. F. Beebe.
61114 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
61116         fts, getcwd, glob: audit for dirfd returning -1
61117         * lib/fts.c (opendir): Remove #define; no longer used.
61118         (opendirat): New arg PDIR_FD.  All callers changed.
61119         (fts_build, _opendir2): Use new opendirat to avoid the need for
61120         dirfd, or for checking whether dirfd returns a negative value.
61121         Don't use opendir; always use openat followed by fdopendir.
61122         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
61123         it.
61124         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
61125         returns -1 here.
61126         * modules/fts (Depends-on): Remove dirfd.
61127         * modules/getcwd (Depends-on): Likewise.
61129 2010-09-13  Eric Blake  <eblake@redhat.com>
61131         float: fix broken MirBSD header
61132         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
61133         * doc/posix-headers/float.texi (float.h): Document it.
61135 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
61137         fts: use O_NOFOLLOW to avoid race condition when opening a directory
61138         * lib/fts.c (opendirat): New arg extra_flags.
61139         (__opendir2): Use it to avoid following symlinks when opening
61140         a directory, if symlinks are not supposed to be followed.  See
61141         <http://lists.gnu.org/r/bug-gnulib/2010-09/msg00213.html>.
61143         fdopendir: preserve argument fd before returning
61144         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
61145         (fdopendir_with_dup, fd_clone_opendir): New static functions.
61146         (fdopendir): Use them, arranging for FD to be open to the same
61147         directory that it was when it started.  (It might be temporarily
61148         closed while fdopendir is running, so this not thread- or
61149         signal-safe.)  Be careful to do the right thing even when file
61150         descriptors are scarce and dup fails with errno == EMFILE.  See
61151         <http://lists.gnu.org/r/bug-gnulib/2010-09/msg00208.html>.
61153 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
61155         regex: Pass the system regex if its only problem is 32-bit regoff_t.
61156         * NEWS: Document change.
61157         * m4/regex.m4: Disable test for regoff_t size.
61159 2010-09-13  Jim Meyering  <meyering@redhat.com>
61161         fts: don't operate on an invalid file descriptor after failed dup
61162         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
61163         negative file descriptor.
61165 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
61167         savedir: add streamsavedir, deprecate fdsavedir
61168         * NEWS: Mention deprecation of fdsavedir.
61169         * lib/savedir.c (streamsavedir): New extern function, whose name
61170         ends in "savedir" to be consistent with the others.  This differs
61171         from savedirstream in that it doesn't close its argument.  The
61172         next version of GNU tar will use this instead of fdsavedir, to
61173         avoid some race conditions and conserve file descriptors.
61174         (savedirstream): Reimplement as a wrapper around streamsavedir.
61175         (fdsavedir): Add a comment deprecating this function.  As far as
61176         I know, only GNU tar used it, and GNU tar doesn't need it any more.
61177         * lib/savedir.h (streamsavedir): New decl.
61178         (fdsavedir): Add a comment deprecating this.
61180 2010-09-10  Bruno Haible  <bruno@clisp.org>
61182         langinfo: Fix last commit.
61183         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
61184         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
61185         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
61187 2010-09-10  Bruno Haible  <bruno@clisp.org>
61189         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
61190         * lib/progreloc.c (O_EXEC): Define fallback.
61192 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
61194         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
61195         * NEWS: Document recent changes to fcntl-h.
61196         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
61197         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
61198         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
61199         Similarly for O_SEARCH; this last was already true, but not documented.
61200         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
61201         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
61202         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
61203         Likewise.
61204         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
61205         is zero, not whether it is defined.
61206         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
61207         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
61208         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
61210 2010-09-10  Bruno Haible  <bruno@clisp.org>
61212         langinfo, nl_langinfo: Fix for IRIX 5.3.
61213         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
61214         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
61215         HAVE_LANGINFO_YESEXPR.
61216         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
61217         HAVE_LANGINFO_YESEXPR.
61218         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
61219         HAVE_LANGINFO_T_FMT_AMPM is 0.
61220         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
61221         HAVE_LANGINFO_YESEXPR is 0.
61222         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
61223         NOEXPR.
61224         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
61225         * doc/posix-functions/nl_langinfo.texi: Likewise.
61226         Reported by Eric Blake.
61228 2010-09-10  Bruno Haible  <bruno@clisp.org>
61230         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
61231         * doc/glibc-functions/login_tty.texi: Mention the include file problem
61232         on FreeBSD 8.0 and OpenBSD 4.6.
61233         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
61234         * m4/pty_h.m4 (gl_PTY_H): Likewise.
61235         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
61236         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
61237         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
61238         ac_includes_default.
61239         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
61241 2010-09-09  Eric Blake  <eblake@redhat.com>
61243         strsignal: work around NetBSD bug
61244         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
61245         * lib/string.in.h (includes): Likewise.
61246         * doc/posix-functions/strsignal.texi (strsignal): Document the
61247         bug.
61248         Reported by Nelson H. F. Beebe.
61250         gnulib-tool: work with NetBSD /bin/sh
61251         * gnulib-tool (func_cache_var, func_cache_lookup_module)
61252         (func_get_description, func_get_comment, func_get_status)
61253         (func_get_notice, func_get_applicability, func_get_filelist)
61254         (func_get_dependencies, func_get_autoconf_early_snippet)
61255         (func_get_autoconf_snippet, func_get_automake_snippet)
61256         (func_get_include_directive, func_get_link_directive)
61257         (func_get_license, func_get_maintainer, func_import): Avoid
61258         shell syntax errors from parsing syntax extensions.
61260 2010-09-09  Bruno Haible  <bruno@clisp.org>
61262         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
61263         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
61264         a reliable way to determine whether the 'alias' command works.
61266 2010-09-08  Jim Meyering  <meyering@redhat.com>
61268         init.sh: penalize a set-x-impaired shell; don't disqualify it
61269         * tests/init.sh: Too many shells corrupt application stderr when
61270         you set -x, so we can't afford to disqualify them, since at least
61271         on Irix-6.5, that would disqualify all bourne shells.
61272         Instead, use a two-pass approach.
61273         On the first pass, try to find a shell that meets the stricter
61274         condition that set -x does not corrupt stderr.
61275         If no shell meets the stricter condition, retest each candidate
61276         shell, but without that extra condition.  Finally, when
61277         VERBOSE=yes is requested and set -x might cause trouble, simply
61278         issue a warning and refrain from enabling debug output.
61280 2010-09-08  Eric Blake  <eblake@redhat.com>
61282         unsetenv: fix OpenBSD bug
61283         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
61284         * doc/posix-functions/unsetenv.texi (unsetenv): Update
61285         documentation.
61286         Reported by Jim Meyering.
61288         strtod: work around IRIX 6.5 bug
61289         * lib/strtod.c (strtod): Reparse number on shorter string if
61290         exponent parse was invalid.
61291         * tests/test-strtod.c (main): Add check for "0x1p 2".
61292         Reported by Tom G. Christensen.
61294         getopt: optimize previous patch
61295         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
61296         empty variable.  Speed up awk script.
61297         Reported by Paolo Bonzini.
61299 2010-09-08  Jim Meyering  <meyering@redhat.com>
61301         test.sh: disqualify shells for which set -x corrupts stderr
61302         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
61303         and OpenBSD 4.7.  They make it so with "set -x", environment settings
61304         appear in stderr output.  For example, this command:
61305             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
61306         prints "P=1" on those two systems:
61308 2010-09-08  Bruno Haible  <bruno@clisp.org>
61310         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
61311         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
61312         commands, because some shells ignore redirections when there is an
61313         error in the command lookup.
61314         Reported by Eric Blake.
61316 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
61318         * lib/regex.h: Fix a mention of `regex_compile' (should be
61319         `re_compile_pattern').
61320         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
61321         (re_set_registers): Correct name of parameter in comment.
61323         * doc/regex.texi: Add documentation for missing syntax flags.
61324         Remove commented-out documentation of defunct syntax option
61325         RE_NO_EMPTY_ALTS.
61326         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
61327         Add documentation of re_set_registers.
61328         Document trick to re-use a pattern buffer by setting fastmap manually.
61329         Update documentation of struct re_pattern_buffer per public members.
61330         Uncomment documentation of equivalence class operators and
61331         collating symbol operators, since they are now implemented,
61332         Explain leftmost-longest matching in relation to alternatives.
61333         Tidy documentation of substring matching.
61334         Remove POSIX documentation, which is done better in
61335         glibc, and refer the reader there. Keep BSD API documentation, as
61336         that is not readily available elsewhere.
61338 2010-09-07  Eric Blake  <eblake@redhat.com>
61340         getopt: handle POSIXLY_CORRECT set but not exported
61341         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
61342         export state of POSIXLY_CORRECT, due to bash set -o posix.
61343         Reported by Dustin J. Mitchell.
61345 2010-09-05  Bruno Haible  <bruno@clisp.org>
61347         gnulib-tool: Highlight the changed options.
61348         * gnulib-tool (func_usage): Display the --import, --add-import,
61349         --remove-import explanations in bold font.
61351 2010-09-06  Karl Berry  <karl@gnu.org>
61353         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
61355 2010-09-05  Bruno Haible  <bruno@clisp.org>
61357         uniwidth/width: Update comment.
61358         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
61359         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
61361 2010-09-05  Bruno Haible  <bruno@clisp.org>
61363         isinf, isnan: Relax license.
61364         * modules/isinf (License): Change from GPL to LGPL, with consent from
61365         Ben Pfaff.
61366         * modules/isnan (License): Likewise.
61367         Requested by Ludovic Courtès.
61369 2010-09-04  Bruno Haible  <bruno@clisp.org>
61371         gnulib-tool: Help migration from --import to --add-import or --update.
61372         * gnulib-tool: Emit a verbose error message when --import is used
61373         without any module name.
61375 2010-09-04  Bruno Haible  <bruno@clisp.org>
61377         Update doc about gnulib-tool.
61378         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
61379         'gnulib-tool --update' in more detail.
61380         Reported by Eric Blake.
61382 2010-09-04  Bruno Haible  <bruno@clisp.org>
61384         gnulib-tool: Change --import. New options --add/remove-import.
61385         * gnulib-tool: New options --add-import, --remove-import.
61386         (func_usage): Document them.
61387         (have_associative): Define always.
61388         (func_import): In import mode, don't merge the specified settings with
61389         the cached settings. Implement remove-import mode.
61390         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
61391         Explain when to use them versus --import.
61392         (Simple update): Use --add-import instead of --import.
61393         * NEWS: Mention the change.
61395 2010-09-04  Bruno Haible  <bruno@clisp.org>
61397         * doc/gnulib-tool.texi (Initial import): Update paragraph about
61398         separate gnulib.mk.
61400 2010-09-04  Bruno Haible  <bruno@clisp.org>
61402         gnulib-tool: Don't talk about CVS any more.
61403         * gnulib-tool (func_usage, func_import): Write "version control"
61404         instead of CVS.
61406 2010-09-04  Jim Meyering  <meyering@redhat.com>
61408         maint.mk: avoid obscure sc_copyright_check failure in coreutils
61409         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
61410         false positives (whose names may be ill-chosen) when searching
61411         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
61412         would cause a false-positive.
61414         avoid coreutils "make distcheck" failure
61415         Coreutils tests with an absolute build directory name that contains
61416         a space.  Not quoting this directory name caused a failure.
61417         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
61418         * tests/test-vc-list-files-cvs.sh: Likewise.
61420 2010-09-04  Bruno Haible  <bruno@clisp.org>
61422         gnulib-tool: Avoid error when run in a package without Makefile.am.
61423         * gnulib-tool: When collecting the m4dirs in a package that does not
61424         have a Makefile.am, eliminate those directories that contain no
61425         gnulib-cache.m4. Fix expression that counts these directories.
61427 2010-09-04  Bruno Haible  <bruno@clisp.org>
61429         update-copyright test: Improve output when perl is missing or too old.
61430         * tests/test-update-copyright.sh: Move test of Perl version down after
61431         the test whether Perl exists. Provide an explanation relating Perl's
61432         error message to Automake's SKIP: message.
61434 2010-09-04  Bruno Haible  <bruno@clisp.org>
61436         Don't augment PATH in TESTS_ENVIRONMENT.
61437         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
61438         set abs_aux_dir instead of augmenting PATH.
61439         * modules/vc-list-files-tests (Makefile.am): Likewise.
61440         * tests/test-update-copyright.sh: Augment PATH here.
61441         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
61442         path_prepend_.
61443         * tests/test-vc-list-files-git.sh: Likewise.
61445 2010-09-04  Jim Meyering  <meyering@redhat.com>
61447         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
61448         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
61450 2010-09-04  Bruno Haible  <bruno@clisp.org>
61452         strdup: Fix compilation error in C++ mode.
61453         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
61454         the macro.
61456 2010-09-04  Bruno Haible  <bruno@clisp.org>
61458         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
61459         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
61460         macro into a function.
61461         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
61463 2010-09-04  Bruno Haible  <bruno@clisp.org>
61465         Set PATH_SEPARATOR the same way autoconf does.
61466         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
61467         the value of PATH_SEPARATOR the same way autoconf-generated configure
61468         scripts do.
61469         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
61470         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
61472 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
61474         Set PATH_SEPARATOR the same way autoconf does.
61475         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
61476         the same way autoconf-generated configure scripts do.
61477         * posix-modules: Likewise.
61479 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
61481         hash: fix safe_hasher const typo
61482         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
61483         const; otherwise, there is a type error later.
61485 2010-09-02  Jim Meyering  <meyering@redhat.com>
61487         test-update-copyright.sh: require perl 5.8.0
61488         * tests/test-update-copyright.sh: Require 5.8.0,
61489         which Tom G. Christensen has confirmed is adequate,
61490         while 5.6.1 is not.
61492 2010-09-02  Eric Blake  <eblake@redhat.com>
61494         tests: init.sh improvements for re-exec'ing with zsh
61495         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
61496         -vx through shell re-exec.
61497         Reported by Tom G. Christensen.
61499         wctype: fix typo in previous commit
61500         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
61501         Reported by Ludovic Courtès.
61503 2010-09-02  Jim Meyering  <meyering@redhat.com>
61505         test-update-copyright.sh: skip test if Perl is too old
61506         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
61507         Reported by Tom G. Christensen.
61509 2010-09-02  Bruno Haible  <bruno@clisp.org>
61511         wctype: Avoid compilation error on IRIX 6.5.30.
61512         * lib/wctype.in.h (iswblank): Declare with a replacement if
61513         REPLACE_ISWBLANK is set.
61514         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
61515         declared. Set REPLACE_ISWBLANK.
61516         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
61517         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
61518         * doc/posix-headers/wctype.texi: Likewise.
61519         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
61521 2010-09-01  Bruno Haible  <bruno@clisp.org>
61523         New module 'socketlib'.
61524         * modules/socketlib: New file.
61525         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
61526         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
61527         * modules/sockets (Depends-on): Add socketlib.
61528         Suggested by Sam Steingold <sds@gnu.org>.
61530 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
61532         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
61534         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
61535         when one needs search access to a directory but not read access.
61536         On systems where it is available, it works in some cases where
61537         O_RDONLY does not, namely on directories that are searchable but
61538         not readable, and which need only to be searchable.  If O_SEARCH
61539         is not available, fall back to the traditional method of using
61540         O_RDONLY.
61542         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
61543         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
61544         when opening a directory that needs only to be searchable.
61545         * lib/chdir-safer.c (chdir_no_follow): Likewise.
61546         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
61547         * lib/openat-proc.c (openat_proc_name): Likewise.
61548         * lib/openat.c (openat_needs_fchdir): Likewise.
61549         * lib/save-cwd.c (save_cwd): Likewise.
61550         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
61552 2010-08-28  Bruno Haible  <bruno@clisp.org>
61554         New module 'host-cpu-c-abi'.
61555         * modules/host-cpu-c-abi: New file.
61556         * m4/host-cpu-c-abi.m4: New file, based on part of
61557         clisp/src/m4/general.m4.
61558         Requested by Sam Steingold <sds@gnu.org>.
61560 2010-08-31  Eric Blake  <eblake@redhat.com>
61561         and Jim Meyering  <meyering@redhat.com>
61563         hash: factor, and guard against misbehaving hasher function
61564         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
61565         of table->hasher's return value.  Also protect against a hash value
61566         so large that adding it to table->bucket results in a NULL pointer.
61567         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
61568         Use it in place of open-coded check-and-abort.
61570 2010-08-30  Bruno Haible  <bruno@clisp.org>
61572         hash: silence spurious clang warning
61573         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
61574         Reported by Eric Blake.
61576 2010-08-30  Eric Blake  <eblake@redhat.com>
61578         strstr, memmem, strcasestr: avoid leaked shell message
61579         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
61580         FreeBSD.
61581         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
61582         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
61584         tests: silence clang warning
61585         * tests/test-malloca.c (do_allocation): Avoid dead store.
61587 2010-08-29  Bruno Haible  <bruno@clisp.org>
61589         gettext: Fix recent mistake.
61590         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
61592 2010-08-29  Bruno Haible  <bruno@clisp.org>
61594         selinux-h: Offer a --without-selinux option.
61595         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
61596         --without-selinux was specified, skip all tests and define
61597         HAVE_SELINUX_SELINUX_H to 0.
61598         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
61599         set LIB_SELINUX to empty.
61600         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
61601         gl_LIBSELINUX. If --without-selinux was specified, replace
61602         selinux/context.h.
61603         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
61605 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61606             Bruno Haible  <bruno@clisp.org>
61608         Make the module 'realloc-gnu' work again on AIX and OSF/1.
61609         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
61610         of HAVE_REALLOC.
61611         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
61612         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
61613         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
61614         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
61616 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61617             Bruno Haible  <bruno@clisp.org>
61619         Make the module 'calloc-gnu' work again on AIX and OSF/1.
61620         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
61621         HAVE_CALLOC.
61622         * lib/xmalloc.c: Update accordingly.
61623         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
61624         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
61625         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
61627 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61628             Bruno Haible  <bruno@clisp.org>
61630         Make the module 'malloc-gnu' work again on AIX and OSF/1.
61631         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
61632         HAVE_MALLOC.
61633         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
61634         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
61635         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
61637 2010-08-29  Bruno Haible  <bruno@clisp.org>
61639         Update modules list.
61640         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
61641         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
61642         (String handling <string.h>): Add astrxfrm.
61643         (File system functions): Add readlinkat.
61645 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61647         Tests for module 'realloc-gnu'.
61648         * modules/realloc-gnu-tests: New file.
61649         * tests/test-realloc-gnu.c: New file.
61651         Tests for module 'calloc-gnu'.
61652         * modules/calloc-gnu-tests: New file.
61653         * tests/test-calloc-gnu.c: New file.
61655         Tests for module 'malloc-gnu'.
61656         * modules/malloc-gnu-tests: New file.
61657         * tests/test-malloc-gnu.c: New file.
61659 2010-08-28  Bruno Haible  <bruno@clisp.org>
61661         Rename module 'realloc' -> 'realloc-gnu'.
61662         * modules/realloc-gnu: New file, copied from modules/realloc.
61663         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
61664         obsolete.
61665         * modules/mgetgroups (Depends-on): Update.
61666         * doc/posix-functions/realloc.texi: Update.
61667         * NEWS: Mention the change.
61669         Rename module 'calloc' -> 'calloc-gnu'.
61670         * modules/calloc-gnu: New file, copied from modules/calloc.
61671         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
61672         obsolete.
61673         * doc/posix-functions/calloc.texi: Update.
61674         * NEWS: Mention the change.
61676         Rename module 'malloc' -> 'malloc-gnu'.
61677         * modules/malloc-gnu: New file, copied from modules/malloc.
61678         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
61679         obsolete.
61680         * modules/argp (Depends-on): Update.
61681         * modules/regex (Depends-on): Update.
61682         * doc/posix-functions/malloc.texi: Update.
61683         * NEWS: Mention the change.
61685 2010-08-28  Eric Blake  <eblake@redhat.com>
61687         pread, pwrite: add missing dependency
61688         * modules/pread (Depends-on): Add extensions.
61689         * modules/pwrite (Depends-on): Likewise.
61691 2010-08-28  Bruno Haible  <bruno@clisp.org>
61693         unistr/u*-strchr: Fix tests dependencies.
61694         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
61695         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
61696         Reported by Ian Beckwith <ianb@erislabs.net>.
61698 2010-08-28  Bruno Haible  <bruno@clisp.org>
61700         read-file: Don't occupy too much unused memory.
61701         * lib/read-file.c (fread_file): Shrink the buffer at the end.
61703 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
61704             Eric Blake  <eblake@redhat.com>
61705             Bruno Haible  <bruno@clisp.org>
61707         read-file: Avoid memory reallocations with regular files.
61708         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
61709         (fread_file): With regular files, use the remaining length as the
61710         initial buffer size.  Check against overflow.
61711         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
61712         sys_stat.
61714 2010-08-28  Bruno Haible  <bruno@clisp.org>
61716         ftello: Relax license.
61717         * modules/ftello (License): Relax to LGPLv2+.
61718         Reported by Eric Blake.
61720 2010-08-28  Bruno Haible  <bruno@clisp.org>
61722         Avoid relocwrapper link errors due to gnulib replacement functions.
61723         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
61724         function.
61725         Reported by Ben Pfaff <blp@cs.stanford.edu>.
61727 2010-08-28  Bruno Haible  <bruno@clisp.org>
61729         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
61730         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
61731         defined.
61732         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
61733         Suggested by Eric Blake.
61735 2010-08-28  Bruno Haible  <bruno@clisp.org>
61737         sys_socket, netdb: Ensure socklen_t gets defined.
61738         * modules/sys_socket (Depends-on): Add socklen.
61739         * modules/netdb (Depends-on): Likewise.
61740         * modules/getaddrinfo (Depends-on): Remove socklen.
61741         * modules/getsockopt (Depends-on): Likewise.
61742         * modules/setsockopt (Depends-on): Likewise.
61743         * tests/test-sys_socket.c: Check that socklen_t is defined.
61744         * tests/test-netdb.c: Likewise.
61745         * m4/socklen.m4: Update comments.
61746         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
61748 2010-08-27  Eric Blake  <eblake@redhat.com>
61750         login_tty: add missing dependency
61751         * modules/login_tty (Depends-on): Add pty.
61753 2010-08-26  Eric Blake  <eblake@redhat.com>
61755         lib-symbol-versions: fix m4 quoting
61756         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
61757         format for AC_LINK_IFELSE.
61759         glob: fix compile test
61760         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
61762         btowc: fix missing file
61763         * modules/btowc (Files): Also ship locale-fr.m4.
61765         lseek: fix link test
61766         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
61767         AC_LINK_IFELSE.
61769         include_next: silence autoconf 2.68 warning
61770         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
61771         AC_COMPILE_IFELSE as special.
61772         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
61773         autoconf < 2.68.
61775         acl: fix compilation test
61776         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
61777         AC_COMPILE_IFELSE.
61779 2010-08-26  Bruno Haible  <bruno@clisp.org>
61781         Modernize AC_TRY_RUN invocations.
61782         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
61783         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
61784         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
61785         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
61786         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
61787         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
61788         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
61789         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
61790         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
61791         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
61792         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
61793         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
61794         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
61795         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
61796         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
61797         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
61798         gl_MBRLEN_NUL_RETVAL): Likewise.
61799         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
61800         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
61801         Likewise.
61802         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
61803         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
61804         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
61805         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
61806         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
61807         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
61808         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
61809         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
61810         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
61811         Likewise.
61812         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
61813         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
61814         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
61815         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
61816         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
61817         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
61818         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
61819         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
61820         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
61821         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
61823 2010-08-26  Bruno Haible  <bruno@clisp.org>
61825         Modernize AC_TRY_LINK invocations.
61826         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
61827         AC_TRY_LINK.
61828         * m4/argp.m4 (gl_ARGP): Likewise.
61829         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
61830         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
61831         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
61832         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
61833         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
61834         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
61835         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
61836         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
61837         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
61838         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
61839         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
61840         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
61841         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
61842         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
61843         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
61844         * m4/hostent.m4 (gl_HOSTENT): Likewise.
61845         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
61846         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
61847         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
61848         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
61849         Likewise.
61850         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
61851         Likewise.
61852         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
61853         Likewise.
61854         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
61855         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
61856         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
61857         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
61858         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
61859         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
61860         * m4/servent.m4 (gl_SERVENT): Likewise.
61861         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
61862         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
61863         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
61864         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
61865         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
61866         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
61867         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
61868         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
61869         * modules/tsearch-tests (configure.ac): Likewise.
61871 2010-08-26  Bruno Haible  <bruno@clisp.org>
61873         Modernize AC_TRY_COMPILE invocations.
61874         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
61875         AC_TRY_COMPILE.
61876         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
61877         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
61878         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
61879         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
61880         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
61881         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
61882         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
61883         * m4/lock.m4 (gl_LOCK): Likewise.
61884         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
61885         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
61886         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
61887         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
61888         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
61889         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
61890         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
61891         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
61892         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
61893         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
61894         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
61895         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
61896         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
61897         extraneous semicolon.
61899 2010-08-26  Jim Meyering  <meyering@redhat.com>
61901         stat-time: relax license LGPL
61902         * modules/stat-time (License): Change from GPL to LGPL,
61903         with consent from all contributors, for use in libguile.
61904         Requested by Ludovic Courtès.
61906 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
61908         poll: return immediately on POLLHUP.
61909         * lib/poll.c (poll): Always set timeout before wait_timeout is
61910         computed.
61912 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61914         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
61915         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
61916         rmdir ("dir/.//"), unlinkat.
61918 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
61920         stdbool: avoid spurious failure with modern xlc
61921         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
61923 2010-08-24  Bruno Haible  <bruno@clisp.org>
61925         getloadavg: simplify code
61926         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
61927         gl_have_func. Update comments.
61929 2010-08-24  Eric Blake  <eblake@redhat.com>
61931         getloadavg: don't define SVR4 on cygwin
61932         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
61933         only define SVR4 when -lkvm is required.
61934         Reported by Yaakov Selkowitz.
61936 2010-08-24  Bruno Haible  <bruno@clisp.org>
61938         priv-set: fix comment
61939         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
61941 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
61943         priv-set: fix comments
61944         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
61945         to match code, as suggested by David Bartley in:
61946         http://lists.gnu.org/r/bug-tar/2010-08/msg00018.html
61948 2010-08-23  Eric Blake  <eblake@redhat.com>
61950         stdbool: avoid rejecting clang
61951         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
61952         * tests/test-stdbool.c: Enable more tests if using the system
61953         <stdbool.h> instead of the gnulib replacement.
61954         (main): Move xlc bug test to a runtime test for all compilers.
61955         Reported by Anders Kaseorg.
61957         argz: fix shell quoting issue
61958         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
61959         Reported by Charles Wilson.
61961 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
61962             Erik Faye-Lund <kusmabite@gmail.com>
61964         poll, select: handle ERROR_BROKEN_PIPE.
61965         * lib/poll.c (win32_compute_revents): Return POLLHUP when
61966         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
61967         * lib/select.c (win32_compute_revents): Do not mark a pipe
61968         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
61970 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
61972         fts: allow compilation with C++
61973         * lib/fts_.h: Specify extern "C" linkage with C++.
61975 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61977         Fix gnulib-tool sed script de-commentation for AIX sed.
61978         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
61979         sed.
61981 2010-08-17  Eric Blake  <eblake@redhat.com>
61983         test-stddef: test for (some) offsetof bugs
61984         * tests/test-stddef.c: Enhance test to ensure correct type of
61985         offsetof.
61986         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
61987         that we are not fixing at this time.
61989 2010-08-15  Bruno Haible  <bruno@clisp.org>
61991         stpncpy: Allow stpncpy to be defined as a macro.
61992         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
61993         if it's already correctly declared.
61994         * lib/string.in.h (stpncpy): Undefine before redefining.
61995         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
61997 2010-08-14  Bruno Haible  <bruno@clisp.org>
61999         Rename module 'memxfrm' to 'amemxfrm'.
62000         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
62001         (amemxfrm): Renamed from memxfrm.
62002         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
62003         (amemxfrm): Renamed from memxfrm.
62004         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
62005         * NEWS: Mention the change.
62006         * MODULES.html.sh (String handling <string.h>): Update.
62007         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
62008         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
62009         * lib/unicase/u16-casexfrm.c: Likewise.
62010         * lib/unicase/u32-casexfrm.c: Likewise.
62011         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
62012         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
62013         * lib/uninorm/u16-normxfrm.c: Likewise.
62014         * lib/uninorm/u32-normxfrm.c: Likewise.
62015         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
62016         memxfrm.
62017         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
62018         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
62019         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
62020         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
62021         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
62022         Suggested by Paul Eggert.
62024 2010-08-14  Bruno Haible  <bruno@clisp.org>
62026         Tests for module 'astrxfrm'.
62027         * modules/astrxfrm-tests: New file.
62028         * tests/test-astrxfrm.c: New file.
62030         New module 'astrxfrm'.
62031         * lib/astrxfrm.h: New file.
62032         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
62033         * modules/astrxfrm: New file.
62035 2010-08-14  Reuben Thomas  <rrt@sc3d.org>
62037         regex: Tweak doc.
62038         * doc/regex.texi (Overview): Don't mention regex.c.
62039         (GNU Regular Expression Compiling): Likewise.
62040         (Match-end-of-line Operator): Mention 'not_eol'.
62042 2010-08-14  Brian Gough  <bjg@gnu.org>
62043             Bruno Haible  <bruno@clisp.org>
62045         git-merge-changelog: add doc relating to use with bzr and hg.
62046         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
62048 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
62050         pthread: fix pthread.h creation for srcdir != builddir
62051         * modules/pthread (Makefile.am): Fix the rule to work also in a
62052         non-srcdir build.
62054 2010-08-13  Karl Berry  <karl@gnu.org>
62056         * doc/regex.texi (Predefined Syntaxes): @smallexample.
62057         * doc/posix-*/*: force line break before @url of POSIX
62058         specifications.
62059         Suggested by Werner Lemberg.
62061 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
62063         strtod: fix const diagnostic
62064         * lib/strtod.c (strtod): Don't assign const char * to char *,
62065         as this elicits a warning from GCC when warnings are enabled.
62067 2010-08-10  Pádraig Brady  <P@draigbrady.com>
62068         and Eric Blake  <eblake@redhat.com>
62070         copy-acl: ignore ENOTSUP on HP-UX
62071         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
62072         so that it is available for HP-UX.
62073         * lib/copy-acl.c (qcopy_acl): Use it.
62074         Reported by Patrick M. Callahan.
62076 2010-08-10  Eric Blake  <eblake@redhat.com>
62078         open, chown: relax license
62079         * modules/open (License): Change to LGPLv2+, with consent by all
62080         authors, for use in augeas.
62081         * modules/chown (License): Likewise.
62082         * modules/lchown (Likewise): Likewise.
62083         Requested by Adam Stokes.
62085 2010-08-09  Karl Berry  <karl@gnu.org>
62087         * build-aux/ar-lib: new file, import from Automake.
62088         * config/srclist.txt: autocheck for updates.
62090 2010-08-09  Eric Blake  <eblake@redhat.com>
62092         readlinkat: adjust client modules
62093         * modules/areadlinkat (Depends-on): Use readlinkat, not
62094         symlinkat.
62095         * modules/areadlinkat-with-size (Depends-on): Likewise.
62097         mknod: be more vocal about danger of running tests as root
62098         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
62099         root, since that is just asking for problems.
62100         Suggested by Bruno Haible, based on a report by Rainer Tammer.
62102         readlinkat: split into its own module
62103         * modules/symlinkat: Split readlinkat...
62104         * modules/readlinkat: ...into separate module.
62105         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
62106         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
62107         * lib/symlinkat.c (readlinkat): Move...
62108         * lib/readlinkat.c: ...into new file.
62109         * modules/symlinkat-tests: Split readlinkat test...
62110         * modules/readlinkat-tests: ...into separate module.
62111         * tests/test-symlinkat.c: Split...
62112         * tests/test-readlinkat.c: ...into new file.
62113         * NEWS: Document the split.
62114         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
62115         * lib/unistd.in.h (readlinkat): Likewise.
62116         Suggested by Bruno Haible.
62118 2010-08-08  Bruno Haible  <bruno@clisp.org>
62120         memxfrm: Speed up.
62121         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
62122         that usually only one call to strxfrm is necessary for each string
62123         part.
62124         Reported by Paul Eggert <eggert@cs.ucla.edu>.
62126 2010-08-07  Karl Berry  <karl@gnu.org>
62128         * doc/posix-headers/limits.texi,
62129         * doc/posix-functions/malloc.texi,
62130         * doc/posix-functions/strsignal.texi: missing @item.
62131         * doc/ld-version-script.texi: spurious leading i.
62132         * doc/regex.texi (Interval Operators): no commas inside @var.
62134 2010-08-01  Bruno Haible  <bruno@clisp.org>
62136         Integrate the regex documentation.
62137         * doc/gnulib.texi: Define 'cn' index.
62138         (Regular expressions): New a chapter that includes regex.texi and
62139         regexprops-generic.texi.
62140         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
62141         syntax.
62143         Whitespace cleanup.
62144         * doc/regex.texi: Remove trailing spaces.
62146         Add regex documentation.
62147         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
62148         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
62149         Written by Kathy A. Hargreaves and Karl Berry.
62151 2010-08-01  Bruno Haible  <bruno@clisp.org>
62153         link: Update documentation.
62154         * doc/posix-functions/link.texi: Update regarding Solaris.
62156 2010-07-31  Bruno Haible  <bruno@clisp.org>
62158         Update modules list.
62159         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
62160         (String handling <string.h>): Add memcmp2, memxfrm.
62161         (Container data structures): Add xlist, xsublist, xoset.
62162         (Core language properties): Add alignof, unused-parameter.
62163         (Process control, Numeric conversion functions <stdlib.h>): Renamed
62164         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
62165         (Unibyte characters <ctype.h>): New section.
62166         (String handling <string.h>): New section.
62167         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
62168         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
62169         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
62170         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
62171         tan, tanh, tanl, y0, y1, yn.
62172         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
62173         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
62174         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
62175         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
62176         unlockpt, vdprintf, vdprintf-posix.
62177         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
62178         (File system functions): Add concat-filename, sys_file, sys_ioctl,
62179         xconcat-filename.
62180         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
62181         getdtablesize, pipe2, pipe2-safer.
62182         (Security): New section.
62183         (Networking functions): Add accept4.
62184         (Signal handling): Add sigpipe.
62185         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
62186         mbmemcasecoll.
62187         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
62188         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
62189         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
62190         pipe-filter-ii.
62191         (Misc): Add argp-version-etc, login_tty, parse-duration.
62193 2010-07-31  Bruno Haible  <bruno@clisp.org>
62195         Improve doc in MODULES.html.
62196         * modules/linkat (Description): Add the word "function".
62197         * modules/mkfifo (Description): Likewise.
62198         * modules/mknod (Description): Likewise.
62199         * modules/remove (Description): Likewise.
62200         * modules/renameat (Description): Likewise.
62201         * modules/stat (Description): Likewise.
62202         * modules/symlink (Description): Likewise.
62203         * modules/unlink (Description): Likewise.
62205 2010-07-31  Bruno Haible  <bruno@clisp.org>
62207         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
62208         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
62209         option --enable/disable-c++ instead of --enable/disable-cxx.
62210         * NEWS: Mention the change.
62212 2010-07-31  Bruno Haible  <bruno@clisp.org>
62214         readlink, areadlink: Relax test a bit.
62215         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
62216         alternative to ENOTDIR.
62217         * tests/test-areadlink.h (test_areadlink): Likewise.
62218         Reported by Rainer Tammer.
62220 2010-07-31  Bruno Haible  <bruno@clisp.org>
62222         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
62223         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
62224         character, perform the search using U_STRCHR.
62225         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
62226         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
62227         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
62228         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
62229         Suggested by Paolo Bonzini.
62231 2010-07-31  Bruno Haible  <bruno@clisp.org>
62233         unistr/u*-strstr: Fix dependencies.
62234         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
62235         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
62236         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
62238 2010-07-31  Bruno Haible  <bruno@clisp.org>
62240         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
62241         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
62242         the beginning of the loop.
62243         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
62244         cases in 'switch' statement.
62246         unistr/u8-strchr: Fix several bugs.
62247         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
62248         the string. When not found, return NULL, not a pointer near the end.
62250         More tests for unistr/u8-strchr.
62251         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
62252         that the function does not read past the first occurrence of the byte
62253         being searched.
62254         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
62255         * tests/unistr/test-u16-strchr.c (main): New function.
62256         * tests/unistr/test-u32-strchr.c (main): New function.
62258 2010-07-31  Bruno Haible  <bruno@clisp.org>
62260         posix-modules: Ignore backup files of documentation files.
62261         * posix-modules: grep only through files named *.texi.
62263 2010-07-31  Bruno Haible  <bruno@clisp.org>
62265         symlinkat: Fix documentation.
62266         * doc/posix-functions/readlinkat.texi: Fix module name.
62268 2010-07-31  Bruno Haible  <bruno@clisp.org>
62270         fchownat: Replace also when chown has the trailing slash bug.
62271         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
62272         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
62273         introduced on 2010-04-10.
62274         Reported by Rainer Tammer.
62276 2010-07-31  Bruno Haible  <bruno@clisp.org>
62278         linkat: Work around AIX 7.1 bug.
62279         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
62280         whether linkat handles trailing slash correctly. If not, replace linkat
62281         and define LINKAT_TRAILING_SLASH_BUG.
62282         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
62283         check whether (fd1,file1) points to a directory if file1 or file2 ends
62284         in a slash. Code taken from lib/link.c.
62285         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
62286         Reported by Rainer Tammer.
62288 2010-07-31  Bruno Haible  <bruno@clisp.org>
62290         Correctly determine whether pow is available in libc on AIX 7 with xlc.
62291         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
62292         This disables an xlc optimization that was causing wrong test results.
62293         Reported by Rainer Tammer.
62295 2010-07-31  Bruno Haible  <bruno@clisp.org>
62297         iconv: Work around AIX 6.1..7.1 bug.
62298         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
62299         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
62300         cross-compiling, guess no on all versions of AIX.
62301         Reported by Rainer Tammer.
62303 2010-07-31  Bruno Haible  <bruno@clisp.org>
62305         readlink: Relax test a bit.
62306         * tests/test-readlink.h (test_readlink): Allow different errno value
62307         when readlink is called with a file name that ends in / and refers to
62308         a file.
62309         Suggested by Eric Blake.
62310         Reported by Rainer Tammer.
62312 2010-07-31  Bruno Haible  <bruno@clisp.org>
62314         copysign: Does not require -lm on glibc systems.
62315         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
62316         gl_COMMON_DOUBLE_MATHFUNC.
62317         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
62319 2010-07-31  Bruno Haible  <bruno@clisp.org>
62321         duplocale: Work around AIX 7.1 bug.
62322         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
62323         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
62324         * lib/duplocale.c (rpl_duplocale): Update comment.
62325         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
62326         Reported by Rainer Tammer.
62328 2010-07-30  Bruno Haible  <bruno@clisp.org>
62330         dirfd: Avoid link error on AIX 7.1.
62331         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
62332         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
62333         exist, set REPLACE_DIRFD.
62334         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
62335         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
62336         * doc/posix-functions/dirfd.texi: Update.
62337         Reported by Rainer Tammer.
62339 2010-07-30  Eric Blake  <eblake@redhat.com>
62341         strtod: next round of AIX fixes
62342         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
62343         exponent.
62344         * tests/test-strtod.c (main): Enhance tests.
62345         * doc/posix-functions/strtod.texi (strtod): Document next bug.
62346         Reported by Rainer Tammer.
62348         futimens: fix configure check
62349         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
62350         Reported by Bruno Haible.
62352 2010-07-30  Bruno Haible  <bruno@clisp.org>
62354         getline: Update regarding AIX.
62355         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
62356         Reported by Rainer Tammer.
62358 2010-07-30  Bruno Haible  <bruno@clisp.org>
62360         wcwidth: Drop replacement on AIX 7.
62361         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
62362         AIX 7.
62363         Reported by Rainer Tammer.
62365 2010-07-30  Bruno Haible  <bruno@clisp.org>
62367         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
62368         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
62369         a 'char *'.
62370         Reported by Rainer Tammer.
62372 2010-07-30  Bruno Haible  <bruno@clisp.org>
62374         unlink: Update regarding AIX.
62375         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
62376         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
62377         Reported by Rainer Tammer.
62379 2010-07-30  Bruno Haible  <bruno@clisp.org>
62381         symlink: Update regarding AIX.
62382         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
62383         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
62384         Reported by Rainer Tammer.
62386 2010-07-30  Bruno Haible  <bruno@clisp.org>
62388         strndup: Update regarding AIX.
62389         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
62390         AIX 7.
62391         Reported by Rainer Tammer.
62393 2010-07-30  Bruno Haible  <bruno@clisp.org>
62395         stat: Update regarding AIX.
62396         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
62397         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
62398         Reported by Rainer Tammer.
62400 2010-07-30  Bruno Haible  <bruno@clisp.org>
62402         truncl: Fix autoconf test.
62403         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
62404         whether truncl works.
62405         Reported by Rainer Tammer.
62407 2010-07-30  Bruno Haible  <bruno@clisp.org>
62409         round: Update regarding AIX.
62410         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
62411         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
62412         Reported by Rainer Tammer.
62414 2010-07-30  Bruno Haible  <bruno@clisp.org>
62416         rename: Update regarding AIX.
62417         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
62418         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
62419         Reported by Rainer Tammer.
62421 2010-07-30  Bruno Haible  <bruno@clisp.org>
62423         printf.m4: Update regarding AIX.
62424         * m4/printf.m4: Update comments regarding AIX.
62425         Reported by Rainer Tammer.
62427 2010-07-30  Bruno Haible  <bruno@clisp.org>
62429         iconv: Update regarding AIX.
62430         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
62431         AIX 7.
62432         Reported by Rainer Tammer.
62434 2010-07-30  Bruno Haible  <bruno@clisp.org>
62436         getopt: Update regarding AIX.
62437         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
62438         no on AIX.
62439         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
62440         Reported by Rainer Tammer.
62442 2010-07-30  Bruno Haible  <bruno@clisp.org>
62444         ldexpl; Update regarding AIX.
62445         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
62446         on AIX 7.
62447         Reported by Rainer Tammer.
62449 2010-07-30  Bruno Haible  <bruno@clisp.org>
62451         frexpl: Update regarding AIX.
62452         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
62453         on AIX 7.
62454         Reported by Rainer Tammer.
62456 2010-07-30  Bruno Haible  <bruno@clisp.org>
62458         open, fopen: Update regarding AIX.
62459         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
62460         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
62461         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
62462         * doc/posix-functions/fopen.texi: Likewise.
62463         Reported by Rainer Tammer.
62465 2010-07-30  Bruno Haible  <bruno@clisp.org>
62467         chown: Update doc regarding AIX.
62468         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
62469         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
62470         Reported by Rainer Tammer.
62472 2010-07-30  Eric Blake  <eblake@redhat.com>
62474         strtod: fix bug in replacement function on AIX
62475         * lib/strtod.c (strtod): Special case broken "0x" parse in
62476         underlying strtod.
62477         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
62478         * doc/posix-functions/strtod.texi (strtod): Likewise.
62479         Reported by Rainer Tammer.
62481 2010-07-30  Bruno Haible  <bruno@clisp.org>
62483         mbrlen: Fix cross-compilation guess for AIX.
62484         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
62485         guess. Leftover from 2008-12-22.
62487 2010-07-30  Bruno Haible  <bruno@clisp.org>
62489         mbrtowc: Fix cross-compilation guess for AIX.
62490         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
62491         guess. Leftover from 2008-12-21.
62493 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
62495         init.sh: work around trap limitation of some shells
62496         * tests/init.sh (setup_): Move exit trap outside of shell function.
62498 2010-07-29  Eric Blake  <eblake@redhat.com>
62500         strtod: aid debugging
62501         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
62502         understanding why strtod is rejected.
62504 2010-07-28  Bruno Haible  <bruno@clisp.org>
62506         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
62507         * lib/unistr/u8-chr.c: Include <string.h>.
62508         * tests/unistr/test-u8-chr.c: Likewise.
62509         * tests/unistr/test-u16-chr.c: Likewise.
62510         * tests/unistr/test-u32-chr.c: Likewise.
62511         * tests/unistr/test-u8-strchr.c: Likewise.
62512         * tests/unistr/test-u16-strchr.c: Likewise.
62513         * tests/unistr/test-u32-strchr.c: Likewise.
62514         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
62515         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
62516         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
62517         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
62519 2010-07-28  Bruno Haible  <bruno@clisp.org>
62521         Use spaces for indentation, not tabs.
62522         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
62524 2010-07-27  Bruno Haible  <bruno@clisp.org>
62526         mbspcasecmp: Fix function specification.
62527         * lib/string.in.h (mbspcasecmp): Fix specification comment.
62528         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
62529         Reported by Eric Blake <eblake@redhat.com>.
62531 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
62533         timespec: use cast and not conditional, as truncation isn't possible
62534         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
62535         instead of a conditional.  Comment about the situation in more detail.
62536         This undoes most of the 2009-10-29 patch.
62538 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
62540         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
62541         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
62542         * lib/unistr/u8-strchr.c: Likewise.
62543         * modules/unistr/u8-chr: Depend on memchr.
62545         unistr/u*-strchr: add tests
62546         * modules/unistr/u8-strchr-tests: New file.
62547         * modules/unistr/u16-strchr-tests: New file.
62548         * modules/unistr/u32-strchr-tests: New file.
62549         * tests/unistr/test-strchr.h: New file.
62550         * tests/unistr/test-u8-strchr.c: New file.
62551         * tests/unistr/test-u16-strchr.c: New file.
62552         * tests/unistr/test-u32-strchr.c: New file.
62554         unistr/u*-chr: test multibyte sequences more
62555         * tests/unistr/test-chr.h: Do complete testing of the characters in the
62556         test vector.
62557         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
62558         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
62559         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
62561         unistr/u*-chr: test multibyte sequences
62562         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
62564         unistr/u*-chr: prepare for multibyte tests
62565         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
62566         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
62567         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
62568         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
62569         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
62570         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
62572 2010-07-18  Bruno Haible  <bruno@clisp.org>
62574         unistr/u8-strchr: Optimize non-ASCII argument case.
62575         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
62576         because the first byte often matches anyway.
62577         Reported by Pádraig Brady <P@draigbrady.com>.
62579 2010-07-15  Karl Berry  <karl@gnu.org>
62581         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
62583 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
62585         getcwd: on Solaris, work better if ancestors are inaccessible
62586         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
62587         buffer and size, try again with a large buffer.  This works better
62588         on Solaris, since its getcwd succeeds even if the path to the root
62589         is inaccessible, and this is helpful in common cases such as .zfs
62590         hidden directories.  Problem reported by J Chapman Flack in
62591         http://lists.gnu.org/r/bug-tar/2010-06/msg00000.html
62592         Use system getcwd if it's declared, not merely if it's partly
62593         working; use the partly-working test only to avoid needless effort
62594         if the system getcwd fails.
62595         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
62596         comment that was already obsolete and is now even more obsolete.
62597         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
62598         now might call strdup.
62600 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
62602         pthread: Add enough so that coreutils/src/sort.c compiles.
62603         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
62604         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
62605         gnulib. Include <sched.h> and <time.h>, as per POSIX.
62606         Include <sys/types.h>, in case it defines pthread_t.
62607         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
62608         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
62609         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
62610         (pthread_rwlockattr_t, pthread_spinlock_t):
62611         New typedefs, if HAVE_PTHREAD_T is not defined.
62612         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
62613         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
62614         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
62615         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
62616         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
62617         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
62618         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
62619         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
62620         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
62621         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
62622         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
62623         New macros.
62624         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
62625         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
62626         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
62627         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
62628         (pthread_spin_unlock): New dummy functions.
62629         (pthread_create): Return EAGAIN; don't set errno.
62630         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
62631         require AC_C_INLINE.
62632         * modules/pthread (Depends-on): Add sched, time.
62633         (pthread.h): Use AM_V_GEN.
62635 2010-07-13  Bruno Haible  <bruno@clisp.org>
62637         striconveh: Don't malloc memory if the result buffer is sufficient.
62638         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
62639         buffer if its size is sufficient.
62640         Reported by Ludovic Courtès <ludo@gnu.org>.
62642 2010-07-13  Bruno Haible  <bruno@clisp.org>
62644         strtod: Add safety check.
62645         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
62647 2010-07-12  Bruno Haible  <bruno@clisp.org>
62649         Unify tests that set gl_cv_func_ldexpl_no_libm.
62650         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
62651         gl_FUNC_LDEXPL.
62652         (gl_FUNC_LDEXPL): Invoke it.
62653         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
62655 2010-07-12  Bruno Haible  <bruno@clisp.org>
62657         Unify tests that set gl_cv_func_ldexp_no_libm.
62658         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
62659         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
62660         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
62661         (configure.ac): Simply invoke gl_FUNC_LDEXP.
62662         * modules/strtod (Files): Add m4/ldexp.m4.
62664 2010-07-12  Bruno Haible  <bruno@clisp.org>
62666         Unify tests that set gl_cv_func_frexpl_no_libm.
62667         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
62668         gl_FUNC_FREXPL_NO_LIBM.
62669         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
62670         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
62672 2010-07-12  Bruno Haible  <bruno@clisp.org>
62674         Unify tests that set gl_cv_func_frexp_no_libm.
62675         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
62676         gl_FUNC_FREXP_NO_LIBM.
62677         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
62678         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
62680 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
62682         memcoll: clarify sizes versus lengths, document better, and tweak perf
62683         * lib/memcoll.c (strcoll_loop, memcoll0):
62684         Improve quality of descriptive comments.  Name variables
62685         consistently as to whether they are lengths (which do not include
62686         terminating null) versus sizes (which do).
62687         * lib/xmemcoll.c (xmemcoll0): Likewise.
62688         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
62689         returned when s1size == 0; this is easier to compile and saves
62690         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
62692 2010-07-12  Bruno Haible  <bruno@clisp.org>
62694         Tests for module '_Exit'.
62695         * modules/_Exit-tests: New file.
62696         * tests/test-_Exit.sh: New file.
62697         * tests/test-_Exit.c: New file.
62699         New module '_Exit'.
62700         * lib/stdlib.in.h (__attribute__): New macro.
62701         (_Exit): New declaration.
62702         * lib/_Exit.c: New file.
62703         * m4/_Exit.m4: New file.
62704         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
62705         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
62706         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
62707         * modules/_Exit: New file.
62708         * tests/test-stdlib-c++.cc (_Exit): Check signature.
62709         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
62711 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
62713         strtod: make it more-accurate typically, and don't require libm
62714         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
62715         Include limits.h.  Don't include string.h.
62716         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
62717         (locale_isspace): New function, so that no casts are needed to
62718         check whether *s is a space.
62719         (ldexp): Provide an unused dummy if not available.
62720         (scale_radix_exp, parse_number, underlying_strtod): New functions.
62721         (strtod): Use them.  This implementation prefers to use the
62722         underlying strtod if available, falling back on our own code
62723         only to fix known bugs.  This is more likely to produce an
62724         accurate result.  Also, it avoids the use of libm functions.
62725         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
62726         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
62727         was absent, but it caused a test failure with coreutils.
62728         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
62729         with libm.
62730         * modules/strtod (Makefile.am, Link): libm is no longer needed.
62731         * modules/strtod-tests (Makefile.am): Likewise.
62733 2010-07-11  Pádraig Brady  <P@draigBrady.com>
62734             Bruno Haible  <bruno@clisp.org>
62736         unistr/u8-strchr: Optimize ASCII argument case.
62737         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
62739 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
62741         (x)memcoll: minor tweaks
62742         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
62743         is after the type that it qualifies.
62744         (memcoll0): Likewise.
62745         * lib/memcoll.h (memcoll0): Likewise.
62746         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
62747         * lib/xmemcoll.h (xmemcoll0): Likewise.
62748         * lib/memcoll.c (memcoll0): Correct the comment.  This function
62749         differs from memcoll in that the NUL byte is part of the argument.
62750         Omit the abort-checks, as performance is a real issue here.  Plus,
62751         the checks were wrong anyway (an off-by-one error).  Omit local
62752         variable 'diff', as it's a bit clearer that way.
62753         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
62754         no longer needed.
62756 2010-07-08  Chen Guo  <chenguo4@yahoo.com>
62758         (x)memcoll: speedup when input is known to be NUL delimited
62759         * lib/memcoll.c: Include stdlib.
62760         (memcoll0): New function.
62761         (strcoll_loop): New function, refactored for use in both memcoll
62762         and memcoll0.
62763         * lib/memcoll.h (memcoll0): Add prototype.
62764         * lib/xmemcoll.c (xmemcoll0): New function.
62765         (collate_error): New function, refactored for use in both xmemcoll
62766         and xmemcoll0.
62767         * lib/xmemcoll.h (xmemcoll0): Add prototype.
62768         * m4/memcoll.m4: add inline invocation.
62770 2010-07-06  Pádraig Brady  <P@draigBrady.com>
62772         * build-aux/bootstrap: Remove any local translations
62773         from the translation project synchronization directory,
62774         so that local only translations are not distributed.
62776 2010-07-04  Bruno Haible  <bruno@clisp.org>
62778         fsusage: Clarify which code applies to which platforms.
62779         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
62780         platform.
62781         * lib/fsusage.c (get_fs_usage): Likewise.
62783 2010-07-04  Bruno Haible  <bruno@clisp.org>
62785         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
62786         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
62787         Reported by Martin Lambers <marlam@marlam.de>.
62789 2010-07-04  Jim Meyering  <meyering@redhat.com>
62791         hash: once again explicitly disallow insertion of NULL
62792         * lib/hash.c (hash_insert0): Reinstate just-removed test:
62793         inserting a NULL pointer cannot work with these functions.
62794         Add a comment with details.
62795         This reverts part of the 2010-07-01 commit, 5bef1a35
62796         "hash: extend module to deal with non-pointer keys".
62798 2010-07-01  Bruno Haible  <bruno@clisp.org>
62800         stdbool: Update doc.
62801         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
62802         Info from Christian Weisgerber <naddy@mips.inka.de>.
62804 2010-07-01  Jim Meyering  <meyering@redhat.com>
62806         hash: extend module to deal with non-pointer keys
62807         * lib/hash.c (hash_insert0): New interface, much like hash_insert
62808         but that allows insertion of non-pointer entries.
62809         Do not disallow an ENTRY value of NULL.
62810         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
62811         * lib/hash.h (hash_insert0): Declare.
62813 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
62815         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
62816         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
62817         not present (i.e. with autoconf 2.59 and when using gettextize, not
62818         gnulib), require AC_GNU_SOURCE instead.
62820 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
62822         idpriv-drop: Fix tests.
62823         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
62824         not to the test-idpriv-droptemp program.
62826 2010-06-29  Bruno Haible  <bruno@clisp.org>
62828         string: Fix syntax error with g++ 2.96.
62829         * lib/string.in.h (__pure__): Remove definition.
62830         (_GL_ATTRIBUTE_PURE): New macro.
62831         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
62832         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
62833         Reported by Christian Weisgerber <naddy@mips.inka.de>.
62835 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
62837         unitypes: Fix bug introduced on 2010-05-18.
62838         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
62840 2010-06-22  Eric Blake  <eblake@redhat.com>
62842         memmem: slight optimization
62843         * lib/str-two-way.h (critical_factorization): Update comments.
62844         Reduce work during factorization phase.
62845         Reported by Carlos Bueno <carlos@bueno.org>.
62847 2010-06-21  Bruno Haible  <bruno@clisp.org>
62849         Fix HAVE_CALLOC_POSIX misnomer.
62850         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
62851         !HAVE_CALLOC_POSIX.
62852         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
62853         HAVE_CALLOC_POSIX.
62854         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
62855         instead of HAVE_CALLOC_POSIX.
62856         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
62857         HAVE_CALLOC_POSIX.
62859         Use modern idiom for calloc() replacement.
62860         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
62861         AC_FUNC_CALLOC.
62862         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
62863         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
62864         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
62865         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
62866         (gl_REPLACE_CALLOC): New macro.
62868 2010-06-21  Bruno Haible  <bruno@clisp.org>
62870         Fix HAVE_REALLOC_POSIX misnomer.
62871         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
62872         !HAVE_REALLOC_POSIX.
62873         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
62874         HAVE_REALLOC_POSIX.
62875         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
62876         instead of HAVE_REALLOC_POSIX.
62877         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
62878         HAVE_REALLOC_POSIX.
62880         Use modern idiom for realloc() replacement.
62881         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
62882         AC_FUNC_REALLOC.
62883         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
62884         Autoconf's AC_FUNC_REALLOC.
62885         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
62886         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
62887         (gl_REPLACE_REALLOC): New macro.
62888         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
62890 2010-06-21  Bruno Haible  <bruno@clisp.org>
62892         Fix HAVE_MALLOC_POSIX misnomer.
62893         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
62894         !HAVE_MALLOC_POSIX.
62895         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
62896         HAVE_MALLOC_POSIX.
62897         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
62898         instead of HAVE_MALLOC_POSIX.
62899         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
62900         HAVE_MALLOC_POSIX.
62902         Use modern idiom for malloc() replacement.
62903         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
62904         AC_FUNC_MALLOC.
62905         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
62906         Autoconf's AC_FUNC_MALLOC.
62907         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
62908         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
62909         (gl_REPLACE_MALLOC): New macro.
62910         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
62912 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
62914         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
62915         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
62916         This macro takes 3 arguments, not 4.
62918 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
62920         ipv6: fix detection under mingw
62921         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
62922         in6_addr.
62924 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
62926         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
62927         that strtod() works when cross-compiling to a glibc version known
62928         to work.
62930 2010-06-15  Bruno Haible  <bruno@clisp.org>
62932         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
62934 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
62936         select: Correct timeout.
62937         * lib/select.c (rpl_select): Compute wait_timeout correctly.
62939 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
62941         git-version-gen: init shell var to avoid env var influence
62942         * build-aux/git-version-gen (v): Init shell var to empty.
62944 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
62946         priv-set: Don't assume that priv.h exists merely because getppriv does.
62947         See Jan Andersen's bug report about AIX 5L in
62948         http://lists.gnu.org/r/bug-tar/2010-06/msg00019.html
62949         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
62950         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
62951         * lib/priv-set.h: Likewise.
62952         * tests/test-priv-set.c: Likewise.
62954 2010-06-13  Bruno Haible  <bruno@clisp.org>
62956         relocatable: Make it easier to test whether to install wrappers.
62957         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
62958         RELOCATABLE_VIA_WRAPPER.
62960 2010-06-13  Bruno Haible  <bruno@clisp.org>
62962         gnulib-tool: Display specified modules and dependencies differently.
62963         * gnulib-tool (func_show_module_list): New function.
62964         (func_import, func_create_testdir): Invoke it.
62965         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
62967 2010-06-13  Bruno Haible  <bruno@clisp.org>
62969         gnulib-tool: Align code of func_import and func_create_testdir.
62970         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
62971         specified_modules.
62973 2010-06-12  Jim Meyering  <meyering@redhat.com>
62975         test-inttostr: avoid spurious failure on Solaris 9
62976         * tests/test-inttostr.c (main): Skip the test when snprintf fails
62977         to accept "%ju".  Reported by Bruno Haible.
62979 2010-06-11  Jim Meyering  <meyering@redhat.com>
62981         test-sys_socket: mark variables as used more readably
62982         * tests/test-sys_socket.c (main): Mark otherwise unused variables
62983         as "used" explicitly via (void) statement casts.  This is more
62984         readable than using them in an artificial return expression.
62985         Suggestion from Bruno Haible.
62987 2010-06-11  Bruno Haible  <bruno@clisp.org>
62989         Avoid some more warnings from "gcc -Wwrite-strings".
62990         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
62991         to 'const char *'.
62992         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
62993         * tests/test-c-strcasestr.c (main): Likewise.
62994         * tests/test-mbscasestr1.c (main): Likewise.
62995         * tests/test-mbscasestr2.c (main): Likewise.
62996         * tests/test-memmem.c (main): Likewise.
62997         * tests/test-strstr.c (main): Likewise.
62998         * tests/test-strcasestr.c (main): Likewise.
63000 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63002         init.sh: change framework_failure_ to fail with status 99, not 1
63003         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
63004         automake's parallel-tests rule that this is an unexpected failure,
63005         even if the test is listed in XFAIL_TESTS.
63007 2010-06-11  Jim Meyering  <meyering@redhat.com>
63009         test-inttostr: avoid warnings about 4-6KB literal strings
63010         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
63011         Include "macros.h", for its definition of ASSERT.
63012         (CK): s/assert/ASSERT/
63013         * modules/inttostr-tests (Files): Add macros.h.
63015         init.sh: don't use $ME_ or skip_ before they are defined
63016         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
63017         their first uses.  Also hoist their companions: warn_, fail_,
63018         framework_failure_, $stderr_fileno.  Prompted by a patch from
63019         Stefano Lattarini.
63021         test-sys_socket: avoid set-but-not-used warnings from gcc
63022         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
63023         avoid warning about set-but-not-used variables.
63025         test-xvasprintf: avoid 'const' discard warnings
63026         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
63027         "const" when assigning from literal strings.
63028         (test_xasprintf): Add "void" in function argument list to placate
63029         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
63031         tests: avoid compilation warnings in argmatch and exclude tests...
63032         in packages that define ARGMATCH_DIE_DECL, like coreutils.
63033         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
63034         Since it always exits, declare with the "noreturn" attribute.
63035         * tests/test-argmatch.c: Likewise.
63037         tests: avoid 'const' discard warnings in mbsstr tests
63038         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
63039         * tests/test-mbsstr2.c (main): Likewise.
63041         test-verify: avoid warning from gcc's -Wmissing-declarations
63042         * tests/test-verify.c (function): Declare to be static.
63044         test-inttostr.c: include <string.h> for use of strcmp
63045         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
63047         test-linkat: avoid failed assertion on "other" architectures
63048         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
63049         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
63050         sparc: https://bugs.launchpad.net/bugs/591968
63052 2010-06-11  Jim Meyering  <meyering@redhat.com>
63054         printf.m4: avoid autoconf's "Expanded Before Required" warning
63055         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
63056         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
63057         autoconf warning.
63059 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
63061         Replacement header templates are now named with ".in", not "_".
63062         * doc/gnulib-intro.texi: Correct.
63064 2010-06-10  Jim Meyering  <meyering@redhat.com>
63066         inttostr-tests: depend on snprintf, not snprintf-posix
63067         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
63068         snprintf-posix, to avoid this aclocal failure:
63069           missing file gnulib-tests/vasnprintf.c
63070           configure.ac:45: error: expected source file, required through \
63071           AC_LIBSOURCES, not found
63073 2010-06-10  Jim Meyering  <meyering@redhat.com>
63075         inttostr: add a new function, inttostr, and tests
63076         The namesake function was not available.  The existence of the
63077         template file, inttostr.c makes its addition nontrivial.
63078         * lib/anytostr.c: Rename from inttostr.c.
63079         (anytostr): Rename from inttostr.
63080         * lib/inttostr.c: New file.
63081         * modules/inttostr (Files): Add anytostr.c.
63082         (Makefile.am): Set lib_SOURCES instead of ...
63083         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
63084         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
63085         * lib/offtostr.c: Likewise.
63086         * lib/uinttostr.c: Likewise.
63087         * lib/umaxtostr.c: Likewise.
63088         * modules/inttostr-tests: New file.
63089         * tests/test-inttostr.c: New file.  Test these functions.
63091 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
63092             Bruno Haible  <bruno@clisp.org>
63094         Add "Extending Gnulib" chapter to manual.
63095         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
63096         chapter.
63097         (Extending Gnulib): New chapter.
63098         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
63099         chapter.
63101 2010-06-09  Bruno Haible  <bruno@clisp.org>
63103         Avoid relocwrapper link errors due to gnulib replacement functions.
63104         * lib/areadlink.c: Use the system's malloc, realloc functions.
63105         (areadlink): Set errno to ENOMEM explicitly.
63106         * modules/areadlink (Depends-on): Remove malloc-posix.
63107         Reported by Ben Pfaff <blp@cs.stanford.edu>.
63109 2010-06-09  Bruno Haible  <bruno@clisp.org>
63111         Avoid relocwrapper link errors due to gnulib replacement functions.
63112         * lib/canonicalize-lgpl.c: Use the system's malloc function.
63113         * lib/malloca.c: Likewise.
63114         * lib/relocatable.c: Likewise.
63115         * lib/progreloc.c: Use the system's malloc, sprintf functions.
63116         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
63117         * lib/setenv.c: Use the system's malloc, realloc functions.
63118         * lib/strerror.c: Use the system's sprintf function.
63119         Reported by Ben Pfaff <blp@cs.stanford.edu>.
63121 2010-06-04  Bruno Haible  <bruno@clisp.org>
63123         Prefer documented low-level autoconf macro names.
63124         * m4/lib-link.m4: Use m4_translit instead of translit.
63125         * m4/environ.m4: Likewise.
63126         * m4/mathfunc.m4: Likewise.
63127         * m4/onceonly.m4: Likewise.
63128         * m4/stdint.m4: Likewise.
63129         Suggested by Eric Blake.
63131 2010-06-04  Martin Lambers  <marlam@marlam.de>
63132             Bruno Haible  <bruno@clisp.org>
63134         havelib: Allow library names with '+' characters.
63135         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
63136         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
63138 2010-06-09  Bruno Haible  <bruno@clisp.org>
63140         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
63141         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
63142         realloc failed.
63144 2010-06-08  Peter Simons  <simons@cryp.to>
63146         maint.mk: make the news-check rule more configurable
63147         * top/maint.mk (news-check-lines-spec): New variable.
63148         (news-check): Use "sed -n 1,10p" in place of "head".
63150 2010-06-07  Jim Meyering  <meyering@redhat.com>
63152         do-release-commit-and-tag: fix typo in --help
63153         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
63155         regex: avoid new dead-code warning with gcc-4.6.0
63156         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
63157         if-block containing a while-loop.  It's been unused for at least
63158         5 years.
63160 2010-06-05  Bruno Haible  <bruno@clisp.org>
63162         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
63163         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
63165 2010-06-04  Bruno Haible  <bruno@clisp.org>
63167         Update to GNU gettext 0.18.1.
63168         * modules/gettext (configure.ac): Require gettext infrastructure from
63169         version 0.18.1.
63171 2010-06-03  Bruno Haible  <bruno@clisp.org>
63173         Don't use AC_LIBOBJ with file names in subdirectories.
63174         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
63175         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
63176         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
63177         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
63178         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
63179         gl_LIBUNISTRING_LIBSOURCE.
63180         (Makefile.am): Augment lib_SOURCES here, conditionally.
63181         * NEWS: Drop requirement for Automake option 'subdir-objects'.
63183 2010-06-03  Bruno Haible  <bruno@clisp.org>
63185         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
63186         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
63187         expansion does not end with a newline.
63188         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
63189         unnecessary newline.
63191 2010-06-03  Bruno Haible  <bruno@clisp.org>
63193         Reduce dependencies.
63194         * tests/test-quotearg.h: New file, extracted from
63195         tests/test-quotearg.c.
63196         * tests/test-quotearg-simple.c: New file, extracted from
63197         tests/test-quotearg.c.
63198         * tests/test-quotearg.c: Don't include <ctype.h>.
63199         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
63200         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
63201         use_quote_double_quotes, use_quotearg_colon): Moved to
63202         tests/test-quotearg.h.
63203         (results_g, flag_results, custom_quotes, custom_results): Moved
63204         to tests/test-quotearg-simple.c.
63205         (main): Moved the part that does not depend on gettext to
63206         tests/test-quotearg-simple.c. Return 77 if the test cannot be
63207         performed.
63208         * modules/quotearg-simple: New file.
63209         * modules/quotearg-simple-tests: New file.
63210         * modules/quotearg (Depends-on): Add quotearg-simple.
63211         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
63212         (Files): Add tests/test-quotearg.h.
63213         Reported by Paolo Bonzini.
63215 2010-06-03  Bruno Haible  <bruno@clisp.org>
63217         Reduce dependencies.
63218         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
63220 2010-06-03  Bruno Haible  <bruno@clisp.org>
63222         time: Undefine more broken macros.
63223         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
63224         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
63225         Reported by Eric Blake.
63227 2010-06-03  Bruno Haible  <bruno@clisp.org>
63229         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
63230         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
63231         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
63232         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
63233         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
63234         Reported by Ludovic Courtès <ludo@gnu.org>.
63236 2010-06-02  Eric Blake  <eblake@redhat.com>
63238         time: work with mingw + pthreads-win32 library
63239         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
63240         if timespec is defined only in pthread.h.
63241         * modules/time (Makefile.am): Substitute it.
63242         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
63243         <pthread.h>, when needed.
63244         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
63245         from the library.
63247 2010-05-31  Bruno Haible  <bruno@clisp.org>
63249         Avoid expanding two macros in the wrong order.
63250         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
63251         gl_LIBUNISTRING if it is defined.
63252         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
63253         autoconf >= 2.64.
63254         Reported by Ludovic Courtès <ludo@gnu.org>.
63256 2010-05-27  Jim Meyering  <meyering@redhat.com>
63258         maint.mk: also prohibit "#undef" of always-defined symbols
63259         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
63260         Allow more than one space before the symbol name.
63261         (sc_prohibit_always-defined_macros): Use grep's -E, now that
63262         the regexp uses alternation.
63264 2010-05-26  Eric Blake  <eblake@redhat.com>
63266         maint.mk: avoid echo -e
63267         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
63268         Convert all uses of echo -* to printf.
63269         Reported by Matthias Bolte.
63271 2010-05-25  Bruno Haible  <bruno@clisp.org>
63273         Update to GNU gettext 0.18, part 2.
63274         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
63275         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
63277 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63279         Add missing include in test-pwrite.c.
63280         * tests/test-pwrite.c: Include string.h, for strcmp.
63282 2010-05-24  Bruno Haible  <bruno@clisp.org>
63284         * NEWS: Mention requirement for Automake option 'subdir-objects'.
63286 2010-05-24  Bruno Haible  <bruno@clisp.org>
63288         Don't use conversion with transliteration in u{8,16,32}_strcoll.
63289         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
63290         iconveh_error argument.
63291         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
63292         U_STRCONV_TO_LOCALE.
63293         * lib/unistr/u16-strcoll.c: Likewise.
63294         * lib/unistr/u32-strcoll.c: Likewise.
63295         * modules/unistr/u8-strcoll (Depends-on): Add
63296         uniconv/u8-strconv-to-enc, localcharset. Remove
63297         uniconv/u8-strconv-to-locale.
63298         (configure.ac): Bump version number.
63299         * modules/unistr/u16-strcoll (Depends-on): Add
63300         uniconv/u16-strconv-to-enc, localcharset. Remove
63301         uniconv/u16-strconv-to-locale.
63302         (configure.ac): Bump version number.
63303         * modules/unistr/u32-strcoll (Depends-on): Add
63304         uniconv/u32-strconv-to-enc, localcharset. Remove
63305         uniconv/u32-strconv-to-locale.
63306         (configure.ac): Bump version number.
63308 2010-05-24  Bruno Haible  <bruno@clisp.org>
63310         Avoid a test failure on NetBSD 5.0.
63311         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
63312         an iconv() bug.
63314 2010-05-24  Bruno Haible  <bruno@clisp.org>
63316         Adjust #include directive style.
63317         * modules/regex (Includes): Recommend to write <regex.h>.
63319 2010-05-24  Bruno Haible  <bruno@clisp.org>
63321         regex: Don't require alloca.
63322         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
63323         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
63324         only inside if (0).
63326 2010-05-23  Jim Meyering  <meyering@redhat.com>
63328         test-renameat.c: include <sys/stat.h>
63329         * tests/test-renameat.c: Include <sys/stat.h>; required for
63330         definition of S_IS* macros.
63332 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
63334         Update maintainer documentation for 'relocatable-prog' module.
63335         * doc/relocatable-maint.texi: Update.
63336         Comments by Bruno Haible.
63338 2010-05-23  Bruno Haible  <bruno@clisp.org>
63340         git-merge-changelog: Enable --split-merged-entry by default.
63341         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
63342         (usage): Don't mention this option any more.
63343         Reported by Ralf Wildenhues.
63345 2010-05-23  Jim Meyering  <meyering@redhat.com>
63347         test-pwrite: do not leave behind a test file named "out"
63348         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
63349         The trivial-looking use of init.sh is really necessary.
63350         It ensures that the temporary file, "out", is created in
63351         a temporary directory, and removed upon termination.
63352         * tests/test-pwrite.sh: Re-add file.
63353         * modules/pwrite-tests: Reference it.
63355 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63357         Fix output redirection buglet in init.sh.
63358         * tests/init.sh: Fix redirection of stderr.
63360 2010-05-20  Simon Josefsson  <simon@josefsson.org>
63362         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
63364 2010-05-17  Simon Josefsson  <simon@josefsson.org>
63366         * modules/valgrind-tests: New file.
63367         * m4/valgrind-tests.m4: New file.
63368         * doc/valgrind-tests.texi: New file.
63369         * doc/gnulib.texi (Running self-tests under valgrind): New
63370         section.
63372 2010-05-19  Bruno Haible  <bruno@clisp.org>
63374         Clean up dead code in recent commit.
63375         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
63376         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
63377         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
63378         Suggested by Paolo Bonzini.
63380 2010-05-19  Bruno Haible  <bruno@clisp.org>
63382         Avoid valgrind error reports from libunistring.
63383         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
63384         * modules/libunistring (Files): Add it.
63385         * modules/libunistring-optional (Files): Likewise.
63387 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
63388             Bruno Haible  <bruno@clisp.org>
63390         New module 'libunistring-optional'.
63391         * modules/libunistring-optional: New file.
63392         * m4/libunistring-base.m4: New file.
63393         * m4/libunistring-optional.m4: New file.
63394         * lib/unicase.in.h: Renamed from lib/unicase.h.
63395         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
63396         * lib/unictype.in.h: Renamed from lib/unictype.h.
63397         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
63398         * lib/uniname.in.h: Renamed from lib/uniname.h.
63399         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
63400         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
63401         * lib/unistr.in.h: Renamed from lib/unistr.h.
63402         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
63403         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
63404         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
63405         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
63406         gl_LIBUNISTRING. If the library was found, determine the installed
63407         version and set LIBUNISTRING_VERSION.
63408         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
63409         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
63410         handle a configuration option --with-included-libunistring.
63411         * modules/libunistring (Files): Add m4/absolute-header.m4.
63412         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
63413         Add m4/libunistring-base.m4.
63414         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
63415         (Makefile.am): Build unicase.h from unicase.in.h.
63416         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
63417         Add m4/libunistring-base.m4.
63418         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
63419         (Makefile.am): Build uniconv.h from uniconv.in.h.
63420         * modules/unictype/base (Files): Use unictype.in.h instead of
63421         unictype.h. Add m4/libunistring-base.m4.
63422         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
63423         (Makefile.am): Build unictype.h from unictype.in.h.
63424         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
63425         Add m4/libunistring-base.m4.
63426         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
63427         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
63428         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
63429         Add m4/libunistring-base.m4.
63430         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
63431         (Makefile.am): Build uniname.h from uniname.in.h.
63432         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
63433         Add m4/libunistring-base.m4.
63434         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
63435         (Makefile.am): Build uninorm.h from uninorm.in.h.
63436         * modules/unistdio/base (Files): Use unistdio.in.h instead of
63437         unistdio.h. Add m4/libunistring-base.m4.
63438         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
63439         (Makefile.am): Build unistdio.h from unistdio.in.h.
63440         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
63441         Add m4/libunistring-base.m4.
63442         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
63443         (Makefile.am): Build unistr.h from unistr.in.h.
63444         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
63445         Add m4/libunistring-base.m4.
63446         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
63447         (Makefile.am): Build unitypes.h from unitypes.in.h.
63448         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
63449         Add m4/libunistring-base.m4.
63450         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
63451         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
63452         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
63453         uniwidth.h. Add m4/libunistring-base.m4.
63454         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
63455         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
63456         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
63457         instead of augmenting lib_SOURCES.
63458         * modules/unicase/empty-suffix-context: Likewise.
63459         * modules/unicase/locale-language: Likewise.
63460         * modules/unicase/tolower: Likewise.
63461         * modules/unicase/totitle: Likewise.
63462         * modules/unicase/toupper: Likewise.
63463         * modules/unicase/u8-casecmp: Likewise.
63464         * modules/unicase/u8-casecoll: Likewise.
63465         * modules/unicase/u8-casefold: Likewise.
63466         * modules/unicase/u8-casexfrm: Likewise.
63467         * modules/unicase/u8-ct-casefold: Likewise.
63468         * modules/unicase/u8-ct-tolower: Likewise.
63469         * modules/unicase/u8-ct-totitle: Likewise.
63470         * modules/unicase/u8-ct-toupper: Likewise.
63471         * modules/unicase/u8-is-cased: Likewise.
63472         * modules/unicase/u8-is-casefolded: Likewise.
63473         * modules/unicase/u8-is-lowercase: Likewise.
63474         * modules/unicase/u8-is-titlecase: Likewise.
63475         * modules/unicase/u8-is-uppercase: Likewise.
63476         * modules/unicase/u8-prefix-context: Likewise.
63477         * modules/unicase/u8-suffix-context: Likewise.
63478         * modules/unicase/u8-tolower: Likewise.
63479         * modules/unicase/u8-totitle: Likewise.
63480         * modules/unicase/u8-toupper: Likewise.
63481         * modules/unicase/u16-casecmp: Likewise.
63482         * modules/unicase/u16-casecoll: Likewise.
63483         * modules/unicase/u16-casefold: Likewise.
63484         * modules/unicase/u16-casexfrm: Likewise.
63485         * modules/unicase/u16-ct-casefold: Likewise.
63486         * modules/unicase/u16-ct-tolower: Likewise.
63487         * modules/unicase/u16-ct-totitle: Likewise.
63488         * modules/unicase/u16-ct-toupper: Likewise.
63489         * modules/unicase/u16-is-cased: Likewise.
63490         * modules/unicase/u16-is-casefolded: Likewise.
63491         * modules/unicase/u16-is-lowercase: Likewise.
63492         * modules/unicase/u16-is-titlecase: Likewise.
63493         * modules/unicase/u16-is-uppercase: Likewise.
63494         * modules/unicase/u16-prefix-context: Likewise.
63495         * modules/unicase/u16-suffix-context: Likewise.
63496         * modules/unicase/u16-tolower: Likewise.
63497         * modules/unicase/u16-totitle: Likewise.
63498         * modules/unicase/u16-toupper: Likewise.
63499         * modules/unicase/u32-casecmp: Likewise.
63500         * modules/unicase/u32-casecoll: Likewise.
63501         * modules/unicase/u32-casefold: Likewise.
63502         * modules/unicase/u32-casexfrm: Likewise.
63503         * modules/unicase/u32-ct-casefold: Likewise.
63504         * modules/unicase/u32-ct-tolower: Likewise.
63505         * modules/unicase/u32-ct-totitle: Likewise.
63506         * modules/unicase/u32-ct-toupper: Likewise.
63507         * modules/unicase/u32-is-cased: Likewise.
63508         * modules/unicase/u32-is-casefolded: Likewise.
63509         * modules/unicase/u32-is-lowercase: Likewise.
63510         * modules/unicase/u32-is-titlecase: Likewise.
63511         * modules/unicase/u32-is-uppercase: Likewise.
63512         * modules/unicase/u32-prefix-context: Likewise.
63513         * modules/unicase/u32-suffix-context: Likewise.
63514         * modules/unicase/u32-tolower: Likewise.
63515         * modules/unicase/u32-totitle: Likewise.
63516         * modules/unicase/u32-toupper: Likewise.
63517         * modules/unicase/ulc-casecmp: Likewise.
63518         * modules/unicase/ulc-casecoll: Likewise.
63519         * modules/unicase/ulc-casexfrm: Likewise.
63520         * modules/uniconv/u8-conv-from-enc: Likewise.
63521         * modules/uniconv/u8-conv-to-enc: Likewise.
63522         * modules/uniconv/u8-strconv-from-enc: Likewise.
63523         * modules/uniconv/u8-strconv-from-locale: Likewise.
63524         * modules/uniconv/u8-strconv-to-enc: Likewise.
63525         * modules/uniconv/u8-strconv-to-locale: Likewise.
63526         * modules/uniconv/u16-conv-from-enc: Likewise.
63527         * modules/uniconv/u16-conv-to-enc: Likewise.
63528         * modules/uniconv/u16-strconv-from-enc: Likewise.
63529         * modules/uniconv/u16-strconv-from-locale: Likewise.
63530         * modules/uniconv/u16-strconv-to-enc: Likewise.
63531         * modules/uniconv/u16-strconv-to-locale: Likewise.
63532         * modules/uniconv/u32-conv-from-enc: Likewise.
63533         * modules/uniconv/u32-conv-to-enc: Likewise.
63534         * modules/uniconv/u32-strconv-from-enc: Likewise.
63535         * modules/uniconv/u32-strconv-from-locale: Likewise.
63536         * modules/uniconv/u32-strconv-to-enc: Likewise.
63537         * modules/uniconv/u32-strconv-to-locale: Likewise.
63538         * modules/unictype/bidicategory-byname: Likewise.
63539         * modules/unictype/bidicategory-name: Likewise.
63540         * modules/unictype/bidicategory-of: Likewise.
63541         * modules/unictype/bidicategory-test: Likewise.
63542         * modules/unictype/block-list: Likewise.
63543         * modules/unictype/block-test: Likewise.
63544         * modules/unictype/category-C: Likewise.
63545         * modules/unictype/category-Cc: Likewise.
63546         * modules/unictype/category-Cf: Likewise.
63547         * modules/unictype/category-Cn: Likewise.
63548         * modules/unictype/category-Co: Likewise.
63549         * modules/unictype/category-Cs: Likewise.
63550         * modules/unictype/category-L: Likewise.
63551         * modules/unictype/category-Ll: Likewise.
63552         * modules/unictype/category-Lm: Likewise.
63553         * modules/unictype/category-Lo: Likewise.
63554         * modules/unictype/category-Lt: Likewise.
63555         * modules/unictype/category-Lu: Likewise.
63556         * modules/unictype/category-M: Likewise.
63557         * modules/unictype/category-Mc: Likewise.
63558         * modules/unictype/category-Me: Likewise.
63559         * modules/unictype/category-Mn: Likewise.
63560         * modules/unictype/category-N: Likewise.
63561         * modules/unictype/category-Nd: Likewise.
63562         * modules/unictype/category-Nl: Likewise.
63563         * modules/unictype/category-No: Likewise.
63564         * modules/unictype/category-P: Likewise.
63565         * modules/unictype/category-Pc: Likewise.
63566         * modules/unictype/category-Pd: Likewise.
63567         * modules/unictype/category-Pe: Likewise.
63568         * modules/unictype/category-Pf: Likewise.
63569         * modules/unictype/category-Pi: Likewise.
63570         * modules/unictype/category-Po: Likewise.
63571         * modules/unictype/category-Ps: Likewise.
63572         * modules/unictype/category-S: Likewise.
63573         * modules/unictype/category-Sc: Likewise.
63574         * modules/unictype/category-Sk: Likewise.
63575         * modules/unictype/category-Sm: Likewise.
63576         * modules/unictype/category-So: Likewise.
63577         * modules/unictype/category-Z: Likewise.
63578         * modules/unictype/category-Zl: Likewise.
63579         * modules/unictype/category-Zp: Likewise.
63580         * modules/unictype/category-Zs: Likewise.
63581         * modules/unictype/category-and: Likewise.
63582         * modules/unictype/category-and-not: Likewise.
63583         * modules/unictype/category-byname: Likewise.
63584         * modules/unictype/category-name: Likewise.
63585         * modules/unictype/category-none: Likewise.
63586         * modules/unictype/category-of: Likewise.
63587         * modules/unictype/category-or: Likewise.
63588         * modules/unictype/category-test: Likewise.
63589         * modules/unictype/combining-class: Likewise.
63590         * modules/unictype/ctype-alnum: Likewise.
63591         * modules/unictype/ctype-alpha: Likewise.
63592         * modules/unictype/ctype-blank: Likewise.
63593         * modules/unictype/ctype-cntrl: Likewise.
63594         * modules/unictype/ctype-digit: Likewise.
63595         * modules/unictype/ctype-graph: Likewise.
63596         * modules/unictype/ctype-lower: Likewise.
63597         * modules/unictype/ctype-print: Likewise.
63598         * modules/unictype/ctype-punct: Likewise.
63599         * modules/unictype/ctype-space: Likewise.
63600         * modules/unictype/ctype-upper: Likewise.
63601         * modules/unictype/ctype-xdigit: Likewise.
63602         * modules/unictype/decimal-digit: Likewise.
63603         * modules/unictype/digit: Likewise.
63604         * modules/unictype/mirror: Likewise.
63605         * modules/unictype/numeric: Likewise.
63606         * modules/unictype/property-alphabetic: Likewise.
63607         * modules/unictype/property-ascii-hex-digit: Likewise.
63608         * modules/unictype/property-bidi-arabic-digit: Likewise.
63609         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
63610         * modules/unictype/property-bidi-block-separator: Likewise.
63611         * modules/unictype/property-bidi-boundary-neutral: Likewise.
63612         * modules/unictype/property-bidi-common-separator: Likewise.
63613         * modules/unictype/property-bidi-control: Likewise.
63614         * modules/unictype/property-bidi-embedding-or-override: Likewise.
63615         * modules/unictype/property-bidi-eur-num-separator: Likewise.
63616         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
63617         * modules/unictype/property-bidi-european-digit: Likewise.
63618         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
63619         * modules/unictype/property-bidi-left-to-right: Likewise.
63620         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
63621         * modules/unictype/property-bidi-other-neutral: Likewise.
63622         * modules/unictype/property-bidi-pdf: Likewise.
63623         * modules/unictype/property-bidi-segment-separator: Likewise.
63624         * modules/unictype/property-bidi-whitespace: Likewise.
63625         * modules/unictype/property-byname: Likewise.
63626         * modules/unictype/property-combining: Likewise.
63627         * modules/unictype/property-composite: Likewise.
63628         * modules/unictype/property-currency-symbol: Likewise.
63629         * modules/unictype/property-dash: Likewise.
63630         * modules/unictype/property-decimal-digit: Likewise.
63631         * modules/unictype/property-default-ignorable-code-point: Likewise.
63632         * modules/unictype/property-deprecated: Likewise.
63633         * modules/unictype/property-diacritic: Likewise.
63634         * modules/unictype/property-extender: Likewise.
63635         * modules/unictype/property-format-control: Likewise.
63636         * modules/unictype/property-grapheme-base: Likewise.
63637         * modules/unictype/property-grapheme-extend: Likewise.
63638         * modules/unictype/property-grapheme-link: Likewise.
63639         * modules/unictype/property-hex-digit: Likewise.
63640         * modules/unictype/property-hyphen: Likewise.
63641         * modules/unictype/property-id-continue: Likewise.
63642         * modules/unictype/property-id-start: Likewise.
63643         * modules/unictype/property-ideographic: Likewise.
63644         * modules/unictype/property-ids-binary-operator: Likewise.
63645         * modules/unictype/property-ids-trinary-operator: Likewise.
63646         * modules/unictype/property-ignorable-control: Likewise.
63647         * modules/unictype/property-iso-control: Likewise.
63648         * modules/unictype/property-join-control: Likewise.
63649         * modules/unictype/property-left-of-pair: Likewise.
63650         * modules/unictype/property-line-separator: Likewise.
63651         * modules/unictype/property-logical-order-exception: Likewise.
63652         * modules/unictype/property-lowercase: Likewise.
63653         * modules/unictype/property-math: Likewise.
63654         * modules/unictype/property-non-break: Likewise.
63655         * modules/unictype/property-not-a-character: Likewise.
63656         * modules/unictype/property-numeric: Likewise.
63657         * modules/unictype/property-other-alphabetic: Likewise.
63658         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
63659         * modules/unictype/property-other-grapheme-extend: Likewise.
63660         * modules/unictype/property-other-id-continue: Likewise.
63661         * modules/unictype/property-other-id-start: Likewise.
63662         * modules/unictype/property-other-lowercase: Likewise.
63663         * modules/unictype/property-other-math: Likewise.
63664         * modules/unictype/property-other-uppercase: Likewise.
63665         * modules/unictype/property-paired-punctuation: Likewise.
63666         * modules/unictype/property-paragraph-separator: Likewise.
63667         * modules/unictype/property-pattern-syntax: Likewise.
63668         * modules/unictype/property-pattern-white-space: Likewise.
63669         * modules/unictype/property-private-use: Likewise.
63670         * modules/unictype/property-punctuation: Likewise.
63671         * modules/unictype/property-quotation-mark: Likewise.
63672         * modules/unictype/property-radical: Likewise.
63673         * modules/unictype/property-sentence-terminal: Likewise.
63674         * modules/unictype/property-soft-dotted: Likewise.
63675         * modules/unictype/property-space: Likewise.
63676         * modules/unictype/property-terminal-punctuation: Likewise.
63677         * modules/unictype/property-test: Likewise.
63678         * modules/unictype/property-titlecase: Likewise.
63679         * modules/unictype/property-unassigned-code-value: Likewise.
63680         * modules/unictype/property-unified-ideograph: Likewise.
63681         * modules/unictype/property-uppercase: Likewise.
63682         * modules/unictype/property-variation-selector: Likewise.
63683         * modules/unictype/property-white-space: Likewise.
63684         * modules/unictype/property-xid-continue: Likewise.
63685         * modules/unictype/property-xid-start: Likewise.
63686         * modules/unictype/property-zero-width: Likewise.
63687         * modules/unictype/scripts: Likewise.
63688         * modules/unictype/syntax-c-ident: Likewise.
63689         * modules/unictype/syntax-c-whitespace: Likewise.
63690         * modules/unictype/syntax-java-ident: Likewise.
63691         * modules/unictype/syntax-java-whitespace: Likewise.
63692         * modules/unilbrk/u8-possible-linebreaks: Likewise.
63693         * modules/unilbrk/u8-width-linebreaks: Likewise.
63694         * modules/unilbrk/u16-possible-linebreaks: Likewise.
63695         * modules/unilbrk/u16-width-linebreaks: Likewise.
63696         * modules/unilbrk/u32-possible-linebreaks: Likewise.
63697         * modules/unilbrk/u32-width-linebreaks: Likewise.
63698         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
63699         * modules/unilbrk/ulc-width-linebreaks: Likewise.
63700         * modules/uniname/uniname: Likewise.
63701         * modules/uninorm/canonical-decomposition: Likewise.
63702         * modules/uninorm/composition: Likewise.
63703         * modules/uninorm/decomposing-form: Likewise.
63704         * modules/uninorm/decomposition: Likewise.
63705         * modules/uninorm/filter: Likewise.
63706         * modules/uninorm/nfc: Likewise.
63707         * modules/uninorm/nfd: Likewise.
63708         * modules/uninorm/nfkc: Likewise.
63709         * modules/uninorm/nfkd: Likewise.
63710         * modules/uninorm/u8-normalize: Likewise.
63711         * modules/uninorm/u8-normcmp: Likewise.
63712         * modules/uninorm/u8-normcoll: Likewise.
63713         * modules/uninorm/u8-normxfrm: Likewise.
63714         * modules/uninorm/u16-normalize: Likewise.
63715         * modules/uninorm/u16-normcmp: Likewise.
63716         * modules/uninorm/u16-normcoll: Likewise.
63717         * modules/uninorm/u16-normxfrm: Likewise.
63718         * modules/uninorm/u32-normalize: Likewise.
63719         * modules/uninorm/u32-normcmp: Likewise.
63720         * modules/uninorm/u32-normcoll: Likewise.
63721         * modules/uninorm/u32-normxfrm: Likewise.
63722         * modules/unistdio/u8-asnprintf: Likewise.
63723         * modules/unistdio/u8-asprintf: Likewise.
63724         * modules/unistdio/u8-snprintf: Likewise.
63725         * modules/unistdio/u8-sprintf: Likewise.
63726         * modules/unistdio/u8-u8-asnprintf: Likewise.
63727         * modules/unistdio/u8-u8-asprintf: Likewise.
63728         * modules/unistdio/u8-u8-snprintf: Likewise.
63729         * modules/unistdio/u8-u8-sprintf: Likewise.
63730         * modules/unistdio/u8-u8-vasnprintf: Likewise.
63731         * modules/unistdio/u8-u8-vasprintf: Likewise.
63732         * modules/unistdio/u8-u8-vsnprintf: Likewise.
63733         * modules/unistdio/u8-u8-vsprintf: Likewise.
63734         * modules/unistdio/u8-vasnprintf: Likewise.
63735         * modules/unistdio/u8-vasprintf: Likewise.
63736         * modules/unistdio/u8-vsnprintf: Likewise.
63737         * modules/unistdio/u8-vsprintf: Likewise.
63738         * modules/unistdio/u16-asnprintf: Likewise.
63739         * modules/unistdio/u16-asprintf: Likewise.
63740         * modules/unistdio/u16-snprintf: Likewise.
63741         * modules/unistdio/u16-sprintf: Likewise.
63742         * modules/unistdio/u16-u16-asnprintf: Likewise.
63743         * modules/unistdio/u16-u16-asprintf: Likewise.
63744         * modules/unistdio/u16-u16-snprintf: Likewise.
63745         * modules/unistdio/u16-u16-sprintf: Likewise.
63746         * modules/unistdio/u16-u16-vasnprintf: Likewise.
63747         * modules/unistdio/u16-u16-vasprintf: Likewise.
63748         * modules/unistdio/u16-u16-vsnprintf: Likewise.
63749         * modules/unistdio/u16-u16-vsprintf: Likewise.
63750         * modules/unistdio/u16-vasnprintf: Likewise.
63751         * modules/unistdio/u16-vasprintf: Likewise.
63752         * modules/unistdio/u16-vsnprintf: Likewise.
63753         * modules/unistdio/u16-vsprintf: Likewise.
63754         * modules/unistdio/u32-asnprintf: Likewise.
63755         * modules/unistdio/u32-asprintf: Likewise.
63756         * modules/unistdio/u32-snprintf: Likewise.
63757         * modules/unistdio/u32-sprintf: Likewise.
63758         * modules/unistdio/u32-u32-asnprintf: Likewise.
63759         * modules/unistdio/u32-u32-asprintf: Likewise.
63760         * modules/unistdio/u32-u32-snprintf: Likewise.
63761         * modules/unistdio/u32-u32-sprintf: Likewise.
63762         * modules/unistdio/u32-u32-vasnprintf: Likewise.
63763         * modules/unistdio/u32-u32-vasprintf: Likewise.
63764         * modules/unistdio/u32-u32-vsnprintf: Likewise.
63765         * modules/unistdio/u32-u32-vsprintf: Likewise.
63766         * modules/unistdio/u32-vasnprintf: Likewise.
63767         * modules/unistdio/u32-vasprintf: Likewise.
63768         * modules/unistdio/u32-vsnprintf: Likewise.
63769         * modules/unistdio/u32-vsprintf: Likewise.
63770         * modules/unistdio/ulc-asnprintf: Likewise.
63771         * modules/unistdio/ulc-asprintf: Likewise.
63772         * modules/unistdio/ulc-fprintf: Likewise.
63773         * modules/unistdio/ulc-snprintf: Likewise.
63774         * modules/unistdio/ulc-sprintf: Likewise.
63775         * modules/unistdio/ulc-vasnprintf: Likewise.
63776         * modules/unistdio/ulc-vasprintf: Likewise.
63777         * modules/unistdio/ulc-vfprintf: Likewise.
63778         * modules/unistdio/ulc-vsnprintf: Likewise.
63779         * modules/unistdio/ulc-vsprintf: Likewise.
63780         * modules/unistr/u8-check: Likewise.
63781         * modules/unistr/u8-chr: Likewise.
63782         * modules/unistr/u8-cmp: Likewise.
63783         * modules/unistr/u8-cmp2: Likewise.
63784         * modules/unistr/u8-cpy: Likewise.
63785         * modules/unistr/u8-cpy-alloc: Likewise.
63786         * modules/unistr/u8-endswith: Likewise.
63787         * modules/unistr/u8-mblen: Likewise.
63788         * modules/unistr/u8-mbsnlen: Likewise.
63789         * modules/unistr/u8-mbtouc: Likewise.
63790         * modules/unistr/u8-mbtouc-unsafe: Likewise.
63791         * modules/unistr/u8-mbtoucr: Likewise.
63792         * modules/unistr/u8-move: Likewise.
63793         * modules/unistr/u8-next: Likewise.
63794         * modules/unistr/u8-prev: Likewise.
63795         * modules/unistr/u8-set: Likewise.
63796         * modules/unistr/u8-startswith: Likewise.
63797         * modules/unistr/u8-stpcpy: Likewise.
63798         * modules/unistr/u8-stpncpy: Likewise.
63799         * modules/unistr/u8-strcat: Likewise.
63800         * modules/unistr/u8-strchr: Likewise.
63801         * modules/unistr/u8-strcmp: Likewise.
63802         * modules/unistr/u8-strcoll: Likewise.
63803         * modules/unistr/u8-strcpy: Likewise.
63804         * modules/unistr/u8-strcspn: Likewise.
63805         * modules/unistr/u8-strdup: Likewise.
63806         * modules/unistr/u8-strlen: Likewise.
63807         * modules/unistr/u8-strmblen: Likewise.
63808         * modules/unistr/u8-strmbtouc: Likewise.
63809         * modules/unistr/u8-strncat: Likewise.
63810         * modules/unistr/u8-strncmp: Likewise.
63811         * modules/unistr/u8-strncpy: Likewise.
63812         * modules/unistr/u8-strnlen: Likewise.
63813         * modules/unistr/u8-strpbrk: Likewise.
63814         * modules/unistr/u8-strrchr: Likewise.
63815         * modules/unistr/u8-strspn: Likewise.
63816         * modules/unistr/u8-strstr: Likewise.
63817         * modules/unistr/u8-strtok: Likewise.
63818         * modules/unistr/u8-to-u16: Likewise.
63819         * modules/unistr/u8-to-u32: Likewise.
63820         * modules/unistr/u8-uctomb: Likewise.
63821         * modules/unistr/u16-check: Likewise.
63822         * modules/unistr/u16-chr: Likewise.
63823         * modules/unistr/u16-cmp: Likewise.
63824         * modules/unistr/u16-cmp2: Likewise.
63825         * modules/unistr/u16-cpy: Likewise.
63826         * modules/unistr/u16-cpy-alloc: Likewise.
63827         * modules/unistr/u16-endswith: Likewise.
63828         * modules/unistr/u16-mblen: Likewise.
63829         * modules/unistr/u16-mbsnlen: Likewise.
63830         * modules/unistr/u16-mbtouc: Likewise.
63831         * modules/unistr/u16-mbtouc-unsafe: Likewise.
63832         * modules/unistr/u16-mbtoucr: Likewise.
63833         * modules/unistr/u16-move: Likewise.
63834         * modules/unistr/u16-next: Likewise.
63835         * modules/unistr/u16-prev: Likewise.
63836         * modules/unistr/u16-set: Likewise.
63837         * modules/unistr/u16-startswith: Likewise.
63838         * modules/unistr/u16-stpcpy: Likewise.
63839         * modules/unistr/u16-stpncpy: Likewise.
63840         * modules/unistr/u16-strcat: Likewise.
63841         * modules/unistr/u16-strchr: Likewise.
63842         * modules/unistr/u16-strcmp: Likewise.
63843         * modules/unistr/u16-strcoll: Likewise.
63844         * modules/unistr/u16-strcpy: Likewise.
63845         * modules/unistr/u16-strcspn: Likewise.
63846         * modules/unistr/u16-strdup: Likewise.
63847         * modules/unistr/u16-strlen: Likewise.
63848         * modules/unistr/u16-strmblen: Likewise.
63849         * modules/unistr/u16-strmbtouc: Likewise.
63850         * modules/unistr/u16-strncat: Likewise.
63851         * modules/unistr/u16-strncmp: Likewise.
63852         * modules/unistr/u16-strncpy: Likewise.
63853         * modules/unistr/u16-strnlen: Likewise.
63854         * modules/unistr/u16-strpbrk: Likewise.
63855         * modules/unistr/u16-strrchr: Likewise.
63856         * modules/unistr/u16-strspn: Likewise.
63857         * modules/unistr/u16-strstr: Likewise.
63858         * modules/unistr/u16-strtok: Likewise.
63859         * modules/unistr/u16-to-u32: Likewise.
63860         * modules/unistr/u16-to-u8: Likewise.
63861         * modules/unistr/u16-uctomb: Likewise.
63862         * modules/unistr/u32-check: Likewise.
63863         * modules/unistr/u32-chr: Likewise.
63864         * modules/unistr/u32-cmp: Likewise.
63865         * modules/unistr/u32-cmp2: Likewise.
63866         * modules/unistr/u32-cpy: Likewise.
63867         * modules/unistr/u32-cpy-alloc: Likewise.
63868         * modules/unistr/u32-endswith: Likewise.
63869         * modules/unistr/u32-mblen: Likewise.
63870         * modules/unistr/u32-mbsnlen: Likewise.
63871         * modules/unistr/u32-mbtouc: Likewise.
63872         * modules/unistr/u32-mbtouc-unsafe: Likewise.
63873         * modules/unistr/u32-mbtoucr: Likewise.
63874         * modules/unistr/u32-move: Likewise.
63875         * modules/unistr/u32-next: Likewise.
63876         * modules/unistr/u32-prev: Likewise.
63877         * modules/unistr/u32-set: Likewise.
63878         * modules/unistr/u32-startswith: Likewise.
63879         * modules/unistr/u32-stpcpy: Likewise.
63880         * modules/unistr/u32-stpncpy: Likewise.
63881         * modules/unistr/u32-strcat: Likewise.
63882         * modules/unistr/u32-strchr: Likewise.
63883         * modules/unistr/u32-strcmp: Likewise.
63884         * modules/unistr/u32-strcoll: Likewise.
63885         * modules/unistr/u32-strcpy: Likewise.
63886         * modules/unistr/u32-strcspn: Likewise.
63887         * modules/unistr/u32-strdup: Likewise.
63888         * modules/unistr/u32-strlen: Likewise.
63889         * modules/unistr/u32-strmblen: Likewise.
63890         * modules/unistr/u32-strmbtouc: Likewise.
63891         * modules/unistr/u32-strncat: Likewise.
63892         * modules/unistr/u32-strncmp: Likewise.
63893         * modules/unistr/u32-strncpy: Likewise.
63894         * modules/unistr/u32-strnlen: Likewise.
63895         * modules/unistr/u32-strpbrk: Likewise.
63896         * modules/unistr/u32-strrchr: Likewise.
63897         * modules/unistr/u32-strspn: Likewise.
63898         * modules/unistr/u32-strstr: Likewise.
63899         * modules/unistr/u32-strtok: Likewise.
63900         * modules/unistr/u32-to-u16: Likewise.
63901         * modules/unistr/u32-to-u8: Likewise.
63902         * modules/unistr/u32-uctomb: Likewise.
63903         * modules/uniwbrk/u8-wordbreaks: Likewise.
63904         * modules/uniwbrk/u16-wordbreaks: Likewise.
63905         * modules/uniwbrk/u32-wordbreaks: Likewise.
63906         * modules/uniwbrk/ulc-wordbreaks: Likewise.
63907         * modules/uniwbrk/wordbreak-property: Likewise.
63908         * modules/uniwidth/u8-strwidth: Likewise.
63909         * modules/uniwidth/u8-width: Likewise.
63910         * modules/uniwidth/u16-strwidth: Likewise.
63911         * modules/uniwidth/u16-width: Likewise.
63912         * modules/uniwidth/u32-strwidth: Likewise.
63913         * modules/uniwidth/u32-width: Likewise.
63914         * modules/uniwidth/width: Likewise.
63915         * modules/unicase/cased-tests (Makefile.am): Link all test programs
63916         with $(LIBUNISTRING).
63917         * modules/unicase/ignorable-tests: Likewise.
63918         * modules/unicase/locale-language-tests: Likewise.
63919         * modules/unicase/tolower-tests: Likewise.
63920         * modules/unicase/totitle-tests: Likewise.
63921         * modules/unicase/toupper-tests: Likewise.
63922         * modules/unicase/u8-casecmp-tests: Likewise.
63923         * modules/unicase/u8-casecoll-tests: Likewise.
63924         * modules/unicase/u8-casefold-tests: Likewise.
63925         * modules/unicase/u8-is-cased-tests: Likewise.
63926         * modules/unicase/u8-is-casefolded-tests: Likewise.
63927         * modules/unicase/u8-is-lowercase-tests: Likewise.
63928         * modules/unicase/u8-is-titlecase-tests: Likewise.
63929         * modules/unicase/u8-is-uppercase-tests: Likewise.
63930         * modules/unicase/u8-tolower-tests: Likewise.
63931         * modules/unicase/u8-totitle-tests: Likewise.
63932         * modules/unicase/u8-toupper-tests: Likewise.
63933         * modules/unicase/u16-casecmp-tests: Likewise.
63934         * modules/unicase/u16-casecoll-tests: Likewise.
63935         * modules/unicase/u16-casefold-tests: Likewise.
63936         * modules/unicase/u16-is-cased-tests: Likewise.
63937         * modules/unicase/u16-is-casefolded-tests: Likewise.
63938         * modules/unicase/u16-is-lowercase-tests: Likewise.
63939         * modules/unicase/u16-is-titlecase-tests: Likewise.
63940         * modules/unicase/u16-is-uppercase-tests: Likewise.
63941         * modules/unicase/u16-tolower-tests: Likewise.
63942         * modules/unicase/u16-totitle-tests: Likewise.
63943         * modules/unicase/u16-toupper-tests: Likewise.
63944         * modules/unicase/u32-casecmp-tests: Likewise.
63945         * modules/unicase/u32-casecoll-tests: Likewise.
63946         * modules/unicase/u32-casefold-tests: Likewise.
63947         * modules/unicase/u32-is-cased-tests: Likewise.
63948         * modules/unicase/u32-is-casefolded-tests: Likewise.
63949         * modules/unicase/u32-is-lowercase-tests: Likewise.
63950         * modules/unicase/u32-is-titlecase-tests: Likewise.
63951         * modules/unicase/u32-is-uppercase-tests: Likewise.
63952         * modules/unicase/u32-tolower-tests: Likewise.
63953         * modules/unicase/u32-totitle-tests: Likewise.
63954         * modules/unicase/u32-toupper-tests: Likewise.
63955         * modules/unicase/ulc-casecmp-tests: Likewise.
63956         * modules/unicase/ulc-casecoll-tests: Likewise.
63957         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
63958         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
63959         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
63960         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
63961         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
63962         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
63963         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
63964         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
63965         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
63966         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
63967         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
63968         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
63969         * modules/unictype/bidicategory-byname-tests: Likewise.
63970         * modules/unictype/bidicategory-name-tests: Likewise.
63971         * modules/unictype/bidicategory-of-tests: Likewise.
63972         * modules/unictype/bidicategory-test-tests: Likewise.
63973         * modules/unictype/block-list-tests: Likewise.
63974         * modules/unictype/block-of-tests: Likewise.
63975         * modules/unictype/block-test-tests: Likewise.
63976         * modules/unictype/category-C-tests: Likewise.
63977         * modules/unictype/category-Cc-tests: Likewise.
63978         * modules/unictype/category-Cf-tests: Likewise.
63979         * modules/unictype/category-Cn-tests: Likewise.
63980         * modules/unictype/category-Co-tests: Likewise.
63981         * modules/unictype/category-Cs-tests: Likewise.
63982         * modules/unictype/category-L-tests: Likewise.
63983         * modules/unictype/category-Ll-tests: Likewise.
63984         * modules/unictype/category-Lm-tests: Likewise.
63985         * modules/unictype/category-Lo-tests: Likewise.
63986         * modules/unictype/category-Lt-tests: Likewise.
63987         * modules/unictype/category-Lu-tests: Likewise.
63988         * modules/unictype/category-M-tests: Likewise.
63989         * modules/unictype/category-Mc-tests: Likewise.
63990         * modules/unictype/category-Me-tests: Likewise.
63991         * modules/unictype/category-Mn-tests: Likewise.
63992         * modules/unictype/category-N-tests: Likewise.
63993         * modules/unictype/category-Nd-tests: Likewise.
63994         * modules/unictype/category-Nl-tests: Likewise.
63995         * modules/unictype/category-No-tests: Likewise.
63996         * modules/unictype/category-P-tests: Likewise.
63997         * modules/unictype/category-Pc-tests: Likewise.
63998         * modules/unictype/category-Pd-tests: Likewise.
63999         * modules/unictype/category-Pe-tests: Likewise.
64000         * modules/unictype/category-Pf-tests: Likewise.
64001         * modules/unictype/category-Pi-tests: Likewise.
64002         * modules/unictype/category-Po-tests: Likewise.
64003         * modules/unictype/category-Ps-tests: Likewise.
64004         * modules/unictype/category-S-tests: Likewise.
64005         * modules/unictype/category-Sc-tests: Likewise.
64006         * modules/unictype/category-Sk-tests: Likewise.
64007         * modules/unictype/category-Sm-tests: Likewise.
64008         * modules/unictype/category-So-tests: Likewise.
64009         * modules/unictype/category-Z-tests: Likewise.
64010         * modules/unictype/category-Zl-tests: Likewise.
64011         * modules/unictype/category-Zp-tests: Likewise.
64012         * modules/unictype/category-Zs-tests: Likewise.
64013         * modules/unictype/category-and-not-tests: Likewise.
64014         * modules/unictype/category-and-tests: Likewise.
64015         * modules/unictype/category-byname-tests: Likewise.
64016         * modules/unictype/category-name-tests: Likewise.
64017         * modules/unictype/category-none-tests: Likewise.
64018         * modules/unictype/category-of-tests: Likewise.
64019         * modules/unictype/category-or-tests: Likewise.
64020         * modules/unictype/category-test-withtable-tests: Likewise.
64021         * modules/unictype/combining-class-tests: Likewise.
64022         * modules/unictype/ctype-alnum-tests: Likewise.
64023         * modules/unictype/ctype-alpha-tests: Likewise.
64024         * modules/unictype/ctype-blank-tests: Likewise.
64025         * modules/unictype/ctype-cntrl-tests: Likewise.
64026         * modules/unictype/ctype-digit-tests: Likewise.
64027         * modules/unictype/ctype-graph-tests: Likewise.
64028         * modules/unictype/ctype-lower-tests: Likewise.
64029         * modules/unictype/ctype-print-tests: Likewise.
64030         * modules/unictype/ctype-punct-tests: Likewise.
64031         * modules/unictype/ctype-space-tests: Likewise.
64032         * modules/unictype/ctype-upper-tests: Likewise.
64033         * modules/unictype/ctype-xdigit-tests: Likewise.
64034         * modules/unictype/decimal-digit-tests: Likewise.
64035         * modules/unictype/digit-tests: Likewise.
64036         * modules/unictype/mirror-tests: Likewise.
64037         * modules/unictype/numeric-tests: Likewise.
64038         * modules/unictype/property-alphabetic-tests: Likewise.
64039         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
64040         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
64041         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
64042         * modules/unictype/property-bidi-block-separator-tests: Likewise.
64043         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
64044         * modules/unictype/property-bidi-common-separator-tests: Likewise.
64045         * modules/unictype/property-bidi-control-tests: Likewise.
64046         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
64047         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
64048         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
64049         * modules/unictype/property-bidi-european-digit-tests: Likewise.
64050         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
64051         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
64052         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
64053         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
64054         * modules/unictype/property-bidi-pdf-tests: Likewise.
64055         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
64056         * modules/unictype/property-bidi-whitespace-tests: Likewise.
64057         * modules/unictype/property-byname-tests: Likewise.
64058         * modules/unictype/property-combining-tests: Likewise.
64059         * modules/unictype/property-composite-tests: Likewise.
64060         * modules/unictype/property-currency-symbol-tests: Likewise.
64061         * modules/unictype/property-dash-tests: Likewise.
64062         * modules/unictype/property-decimal-digit-tests: Likewise.
64063         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
64064         * modules/unictype/property-deprecated-tests: Likewise.
64065         * modules/unictype/property-diacritic-tests: Likewise.
64066         * modules/unictype/property-extender-tests: Likewise.
64067         * modules/unictype/property-format-control-tests: Likewise.
64068         * modules/unictype/property-grapheme-base-tests: Likewise.
64069         * modules/unictype/property-grapheme-extend-tests: Likewise.
64070         * modules/unictype/property-grapheme-link-tests: Likewise.
64071         * modules/unictype/property-hex-digit-tests: Likewise.
64072         * modules/unictype/property-hyphen-tests: Likewise.
64073         * modules/unictype/property-id-continue-tests: Likewise.
64074         * modules/unictype/property-id-start-tests: Likewise.
64075         * modules/unictype/property-ideographic-tests: Likewise.
64076         * modules/unictype/property-ids-binary-operator-tests: Likewise.
64077         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
64078         * modules/unictype/property-ignorable-control-tests: Likewise.
64079         * modules/unictype/property-iso-control-tests: Likewise.
64080         * modules/unictype/property-join-control-tests: Likewise.
64081         * modules/unictype/property-left-of-pair-tests: Likewise.
64082         * modules/unictype/property-line-separator-tests: Likewise.
64083         * modules/unictype/property-logical-order-exception-tests: Likewise.
64084         * modules/unictype/property-lowercase-tests: Likewise.
64085         * modules/unictype/property-math-tests: Likewise.
64086         * modules/unictype/property-non-break-tests: Likewise.
64087         * modules/unictype/property-not-a-character-tests: Likewise.
64088         * modules/unictype/property-numeric-tests: Likewise.
64089         * modules/unictype/property-other-alphabetic-tests: Likewise.
64090         * modules/unictype/property-other-default-ignorable-code-point-tests:
64091         Likewise.
64092         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
64093         * modules/unictype/property-other-id-continue-tests: Likewise.
64094         * modules/unictype/property-other-id-start-tests: Likewise.
64095         * modules/unictype/property-other-lowercase-tests: Likewise.
64096         * modules/unictype/property-other-math-tests: Likewise.
64097         * modules/unictype/property-other-uppercase-tests: Likewise.
64098         * modules/unictype/property-paired-punctuation-tests: Likewise.
64099         * modules/unictype/property-paragraph-separator-tests: Likewise.
64100         * modules/unictype/property-pattern-syntax-tests: Likewise.
64101         * modules/unictype/property-pattern-white-space-tests: Likewise.
64102         * modules/unictype/property-private-use-tests: Likewise.
64103         * modules/unictype/property-punctuation-tests: Likewise.
64104         * modules/unictype/property-quotation-mark-tests: Likewise.
64105         * modules/unictype/property-radical-tests: Likewise.
64106         * modules/unictype/property-sentence-terminal-tests: Likewise.
64107         * modules/unictype/property-soft-dotted-tests: Likewise.
64108         * modules/unictype/property-space-tests: Likewise.
64109         * modules/unictype/property-terminal-punctuation-tests: Likewise.
64110         * modules/unictype/property-test-tests: Likewise.
64111         * modules/unictype/property-titlecase-tests: Likewise.
64112         * modules/unictype/property-unassigned-code-value-tests: Likewise.
64113         * modules/unictype/property-unified-ideograph-tests: Likewise.
64114         * modules/unictype/property-uppercase-tests: Likewise.
64115         * modules/unictype/property-variation-selector-tests: Likewise.
64116         * modules/unictype/property-white-space-tests: Likewise.
64117         * modules/unictype/property-xid-continue-tests: Likewise.
64118         * modules/unictype/property-xid-start-tests: Likewise.
64119         * modules/unictype/property-zero-width-tests: Likewise.
64120         * modules/unictype/scripts-tests: Likewise.
64121         * modules/unictype/syntax-c-ident-tests: Likewise.
64122         * modules/unictype/syntax-c-whitespace-tests: Likewise.
64123         * modules/unictype/syntax-java-ident-tests: Likewise.
64124         * modules/unictype/syntax-java-whitespace-tests: Likewise.
64125         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
64126         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
64127         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
64128         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
64129         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
64130         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
64131         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
64132         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
64133         * modules/uniname/uniname-tests: Likewise.
64134         * modules/uninorm/canonical-decomposition-tests: Likewise.
64135         * modules/uninorm/compat-decomposition-tests: Likewise.
64136         * modules/uninorm/composition-tests: Likewise.
64137         * modules/uninorm/decomposing-form-tests: Likewise.
64138         * modules/uninorm/decomposition-tests: Likewise.
64139         * modules/uninorm/filter-tests: Likewise.
64140         * modules/uninorm/nfc-tests: Likewise.
64141         * modules/uninorm/nfd-tests: Likewise.
64142         * modules/uninorm/nfkc-tests: Likewise.
64143         * modules/uninorm/nfkd-tests: Likewise.
64144         * modules/uninorm/u8-normcmp-tests: Likewise.
64145         * modules/uninorm/u8-normcoll-tests: Likewise.
64146         * modules/uninorm/u16-normcmp-tests: Likewise.
64147         * modules/uninorm/u16-normcoll-tests: Likewise.
64148         * modules/uninorm/u32-normcmp-tests: Likewise.
64149         * modules/uninorm/u32-normcoll-tests: Likewise.
64150         * modules/unistdio/u8-asnprintf-tests: Likewise.
64151         * modules/unistdio/u8-vasnprintf-tests: Likewise.
64152         * modules/unistdio/u8-vasprintf-tests: Likewise.
64153         * modules/unistdio/u8-vsnprintf-tests: Likewise.
64154         * modules/unistdio/u8-vsprintf-tests: Likewise.
64155         * modules/unistdio/u16-asnprintf-tests: Likewise.
64156         * modules/unistdio/u16-vasnprintf-tests: Likewise.
64157         * modules/unistdio/u16-vasprintf-tests: Likewise.
64158         * modules/unistdio/u16-vsnprintf-tests: Likewise.
64159         * modules/unistdio/u16-vsprintf-tests: Likewise.
64160         * modules/unistdio/u32-asnprintf-tests: Likewise.
64161         * modules/unistdio/u32-vasnprintf-tests: Likewise.
64162         * modules/unistdio/u32-vasprintf-tests: Likewise.
64163         * modules/unistdio/u32-vsnprintf-tests: Likewise.
64164         * modules/unistdio/u32-vsprintf-tests: Likewise.
64165         * modules/unistdio/ulc-asnprintf-tests: Likewise.
64166         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
64167         * modules/unistdio/ulc-vasprintf-tests: Likewise.
64168         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
64169         * modules/unistdio/ulc-vsprintf-tests: Likewise.
64170         * modules/unistr/u8-check-tests: Likewise.
64171         * modules/unistr/u8-chr-tests: Likewise.
64172         * modules/unistr/u8-cmp-tests: Likewise.
64173         * modules/unistr/u8-cmp2-tests: Likewise.
64174         * modules/unistr/u8-cpy-alloc-tests: Likewise.
64175         * modules/unistr/u8-cpy-tests: Likewise.
64176         * modules/unistr/u8-mblen-tests: Likewise.
64177         * modules/unistr/u8-mbsnlen-tests: Likewise.
64178         * modules/unistr/u8-mbtouc-tests: Likewise.
64179         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
64180         * modules/unistr/u8-mbtoucr-tests: Likewise.
64181         * modules/unistr/u8-move-tests: Likewise.
64182         * modules/unistr/u8-next-tests: Likewise.
64183         * modules/unistr/u8-prev-tests: Likewise.
64184         * modules/unistr/u8-set-tests: Likewise.
64185         * modules/unistr/u8-stpcpy-tests: Likewise.
64186         * modules/unistr/u8-stpncpy-tests: Likewise.
64187         * modules/unistr/u8-strcat-tests: Likewise.
64188         * modules/unistr/u8-strcmp-tests: Likewise.
64189         * modules/unistr/u8-strcoll-tests: Likewise.
64190         * modules/unistr/u8-strcpy-tests: Likewise.
64191         * modules/unistr/u8-strdup-tests: Likewise.
64192         * modules/unistr/u8-strlen-tests: Likewise.
64193         * modules/unistr/u8-strmblen-tests: Likewise.
64194         * modules/unistr/u8-strmbtouc-tests: Likewise.
64195         * modules/unistr/u8-strncat-tests: Likewise.
64196         * modules/unistr/u8-strncmp-tests: Likewise.
64197         * modules/unistr/u8-strncpy-tests: Likewise.
64198         * modules/unistr/u8-strnlen-tests: Likewise.
64199         * modules/unistr/u8-to-u16-tests: Likewise.
64200         * modules/unistr/u8-to-u32-tests: Likewise.
64201         * modules/unistr/u8-uctomb-tests: Likewise.
64202         * modules/unistr/u16-check-tests: Likewise.
64203         * modules/unistr/u16-chr-tests: Likewise.
64204         * modules/unistr/u16-cmp-tests: Likewise.
64205         * modules/unistr/u16-cmp2-tests: Likewise.
64206         * modules/unistr/u16-cpy-alloc-tests: Likewise.
64207         * modules/unistr/u16-cpy-tests: Likewise.
64208         * modules/unistr/u16-mblen-tests: Likewise.
64209         * modules/unistr/u16-mbsnlen-tests: Likewise.
64210         * modules/unistr/u16-mbtouc-tests: Likewise.
64211         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
64212         * modules/unistr/u16-mbtoucr-tests: Likewise.
64213         * modules/unistr/u16-move-tests: Likewise.
64214         * modules/unistr/u16-next-tests: Likewise.
64215         * modules/unistr/u16-prev-tests: Likewise.
64216         * modules/unistr/u16-set-tests: Likewise.
64217         * modules/unistr/u16-stpcpy-tests: Likewise.
64218         * modules/unistr/u16-stpncpy-tests: Likewise.
64219         * modules/unistr/u16-strcat-tests: Likewise.
64220         * modules/unistr/u16-strcmp-tests: Likewise.
64221         * modules/unistr/u16-strcoll-tests: Likewise.
64222         * modules/unistr/u16-strcpy-tests: Likewise.
64223         * modules/unistr/u16-strdup-tests: Likewise.
64224         * modules/unistr/u16-strlen-tests: Likewise.
64225         * modules/unistr/u16-strmblen-tests: Likewise.
64226         * modules/unistr/u16-strmbtouc-tests: Likewise.
64227         * modules/unistr/u16-strncat-tests: Likewise.
64228         * modules/unistr/u16-strncmp-tests: Likewise.
64229         * modules/unistr/u16-strncpy-tests: Likewise.
64230         * modules/unistr/u16-strnlen-tests: Likewise.
64231         * modules/unistr/u16-to-u32-tests: Likewise.
64232         * modules/unistr/u16-to-u8-tests: Likewise.
64233         * modules/unistr/u16-uctomb-tests: Likewise.
64234         * modules/unistr/u32-check-tests: Likewise.
64235         * modules/unistr/u32-chr-tests: Likewise.
64236         * modules/unistr/u32-cmp-tests: Likewise.
64237         * modules/unistr/u32-cmp2-tests: Likewise.
64238         * modules/unistr/u32-cpy-alloc-tests: Likewise.
64239         * modules/unistr/u32-cpy-tests: Likewise.
64240         * modules/unistr/u32-mblen-tests: Likewise.
64241         * modules/unistr/u32-mbsnlen-tests: Likewise.
64242         * modules/unistr/u32-mbtouc-tests: Likewise.
64243         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
64244         * modules/unistr/u32-mbtoucr-tests: Likewise.
64245         * modules/unistr/u32-move-tests: Likewise.
64246         * modules/unistr/u32-next-tests: Likewise.
64247         * modules/unistr/u32-prev-tests: Likewise.
64248         * modules/unistr/u32-set-tests: Likewise.
64249         * modules/unistr/u32-stpcpy-tests: Likewise.
64250         * modules/unistr/u32-stpncpy-tests: Likewise.
64251         * modules/unistr/u32-strcat-tests: Likewise.
64252         * modules/unistr/u32-strcmp-tests: Likewise.
64253         * modules/unistr/u32-strcoll-tests: Likewise.
64254         * modules/unistr/u32-strcpy-tests: Likewise.
64255         * modules/unistr/u32-strdup-tests: Likewise.
64256         * modules/unistr/u32-strlen-tests: Likewise.
64257         * modules/unistr/u32-strmblen-tests: Likewise.
64258         * modules/unistr/u32-strmbtouc-tests: Likewise.
64259         * modules/unistr/u32-strncat-tests: Likewise.
64260         * modules/unistr/u32-strncmp-tests: Likewise.
64261         * modules/unistr/u32-strncpy-tests: Likewise.
64262         * modules/unistr/u32-strnlen-tests: Likewise.
64263         * modules/unistr/u32-to-u16-tests: Likewise.
64264         * modules/unistr/u32-to-u8-tests: Likewise.
64265         * modules/unistr/u32-uctomb-tests: Likewise.
64266         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
64267         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
64268         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
64269         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
64270         * modules/uniwidth/u8-strwidth-tests: Likewise.
64271         * modules/uniwidth/u8-width-tests: Likewise.
64272         * modules/uniwidth/u16-strwidth-tests: Likewise.
64273         * modules/uniwidth/u16-width-tests: Likewise.
64274         * modules/uniwidth/u32-strwidth-tests: Likewise.
64275         * modules/uniwidth/u32-width-tests: Likewise.
64276         * modules/uniwidth/width-tests: Likewise.
64278 2010-05-18  Richard Jones  <rjones@redhat.com>
64280         doc: users.txt: list hivex
64281         * users.txt: Add hivex.
64283 2010-05-18  Richard Jones  <rjones@redhat.com>
64285         doc: users.txt: list febootstrap
64286         * users.txt: Add febootstrap.
64288 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
64290         bootstrap: fix an error when gnulib is not used as a git submodule
64291         * build-aux/bootstrap (gnulib_path): If its length is zero then
64292         assign "gnulib" to it.
64293         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
64295 2010-05-16  Bruno Haible  <bruno@clisp.org>
64297         Avoid autoconf warnings about AM_ICONV.
64298         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
64299         2.64.
64301 2010-05-16  Bruno Haible  <bruno@clisp.org>
64303         absolute-header: Make the macro usable in more situations.
64304         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
64305         from gl_ABSOLUTE_HEADER.
64306         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
64308 2010-05-16  James Youngman  <jay@gnu.org>
64310         doc: update users.txt
64311         * users.txt: Add CSSC.
64313 2010-05-16  Jim Meyering  <meyering@redhat.com>
64315         init.sh: fix an error in the previous change; add more comments
64316         * tests/init.sh: Compare exit code in loop against 9, not 2.
64317         Patch by Bruno Haible.
64318         Make the two tests more similar by adding an empty "then" clause.
64319         Add comments.
64321         init.sh: avoid unnecessary shell re-exec
64322         * tests/init.sh: Improve the re-exec-required check to first test the
64323         current shell.  If it passes the test, do not search for a shell that
64324         does pass, and do not re-exec.  This test is particularly contorted to
64325         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
64326         of $(...) evokes a syntax error and causes immediate shell exit with
64327         status 2.  Bruno Haible reported that the re-exec made it impossible
64328         to single-step through any init.sh-using script.
64330 2010-05-16  Bruno Haible  <bruno@clisp.org>
64332         Fix collision between gnulib's and libintl's printf replacements.
64333         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
64334         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
64335         (printf): When using GNU C, map the __printf__ function to rpl_printf
64336         via __asm__. When not using GNU C, define rpl_printf instead of
64337         __printf__.
64338         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
64339         commit.
64340         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
64341         commit.
64342         * m4/asm-underscore.m4: New file.
64343         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
64344         * modules/stdio (Files): Add m4/asm-underscore.m4.
64345         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
64346         Reported by Ben Pfaff.
64348 2010-05-16  Bruno Haible  <bruno@clisp.org>
64350         verify: Avoid skipping the test on openSUSE 11.0.
64351         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
64353 2010-05-13  Bruno Haible  <bruno@clisp.org>
64355         Avoid useless warnings from G++.
64356         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
64357         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
64358         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
64360 2010-05-11  Jim Meyering  <meyering@redhat.com>
64362         maint.mk: tweak preceding change
64363         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
64364         regexps tighter by anchoring at EOL, and make the new group "shy"
64365         for slightly decreased overhead.
64367 2010-05-11  Eric Blake  <eblake@redhat.com>
64369         maint.mk: gnulib doesn't guarantee NSIG
64370         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
64372 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
64374         test-pwrite.c: Remove unused variable declaration.
64375         * tests/test-pwrite.c (main): Remove read_buf declaration.
64377         Remove useless test-pwrite.sh file.
64378         * tests/test-pwrite.sh: Delete file.
64379         * modules/pwrite-tests: Remove references.
64380         Reported by Bruno Haible.
64382 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
64384         init.sh: fix a typo
64385         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
64387 2010-05-10  Jim Meyering  <meyering@redhat.com>
64389         maint.mk: avoid using a temporary file in the always-defined-macros check
64390         * top/maint.mk (.re-defmac): Remove rule.
64391         (gl_trap_): Remove definition.
64392         (sc_prohibit_always-defined_macros): Rewrite not to create and
64393         depend on a temporary file.  Instead, depend on GNU grep's ability
64394         to read a list of regular expressions from stdin when given "-f -".
64396 2010-05-09  Bruno Haible  <bruno@clisp.org>
64398         Update to GNU gettext 0.18, part 1.
64399         * m4/gettext.m4: Update to GNU gettext 0.18.
64400         * m4/intl.m4: Likewise.
64401         * m4/po.m4: Likewise.
64402         * modules/gettext (Files): Add m4/fcntl-o.m4.
64403         (configure.ac): Require gettext infrastructure from version 0.18.
64405 2010-05-09  Jim Meyering  <meyering@redhat.com>
64407         init.sh: enable MALLOC_PERTURB_
64408         * tests/init.sh: Enable glibc's malloc-perturbing option.
64410         maint.mk: improve sc_cross_check_PATH_usage_in_tests
64411         With my recent change in init.sh from the two-line form:
64412             -#   : ${srcdir=.}
64413             -#   . "$srcdir/init.sh"; path_prepend_ .
64414             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
64415         I noticed that using the one-line form would cause this test
64416         to fail with a false-positive, or to stop working altogether,
64417         depending on whether help-version changed or all the tests did.
64418         * top/maint.mk (_hv_regex): Remove this definition.
64419         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
64420         (_hv_regex_strong): Use a stronger regex to check for conformance.
64421         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
64422         Give a separate diagnostic for lack of conforming use.
64424         maint.mk: prohibit definition of symbols defined by gnulib
64425         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
64426         definition of symbols defined by gnulib.
64428 2010-05-09  Bruno Haible  <bruno@clisp.org>
64430         acl: Avoid test failure on Cygwin-hosted mingw.
64431         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
64433 2010-05-09  Bruno Haible  <bruno@clisp.org>
64435         error: Use system's fcntl function.
64436         * lib/error.c (fcntl): Undefine.
64438 2010-05-09  Jim Meyering  <meyering@redhat.com>
64440         verify: adjust formatting to be more consistent
64441         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
64442         argument-list '('s, and after one comma.
64444 2010-05-09  Bruno Haible  <bruno@clisp.org>
64446         error: More reliable output on mingw.
64447         * lib/error.c: Include <windows.h>.
64448         (is_open): New function.
64449         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
64450         defined.
64452 2010-05-09  Bruno Haible  <bruno@clisp.org>
64454         vasnprintf: Fix syntax errors in libintl build on mingw.
64455         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
64456         pad_ourselves and prec_ourselves after use.
64458 2010-05-08  Bruno Haible  <bruno@clisp.org>
64460         * lib/config.charset: Update comments for Cygwin 1.7.
64461         * lib/localcharset.c: Likewise.
64463 2010-05-07  Jim Meyering  <meyering@redhat.com>
64465         init.sh: improve comments
64466         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
64467         . "${srcdir=.}/init.sh"; path_prepend_ .
64468         Add a note about path_prepend_ and the alternative of using
64469         TESTS_ENVIRONMENT.
64471 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
64473         exclude: Unescape hashed patterns in wildcard mode.
64474         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
64475         to the hash list.
64476         * tests/test-exclude8.sh: New test case.
64477         * modules/exclude-tests: Add new test.
64479 2010-05-05  Eric Blake  <eblake@redhat.com>
64481         verify: automate tests
64482         * modules/verify-tests: New module.
64483         * tests/test-verify.sh: New file.
64484         * tests/test-verify.c: Guard each negative test with a unique id.
64485         Also avoid warning about unused left hand of comma expressions.
64487 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
64489         Further improvements to verify.h, suggested by Eric Blake.
64490         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
64491         the GL_* versions, to avoid collision with OpenGL.
64492         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
64493         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
64494         than testing merely whether it's defined.
64496         Modify verify.h to pacify gcc -Wredundant_decls.
64497         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
64498         These use the prefix "GL_" since they're likely to be useful elsewhere.
64499         We may need to break them out into a different .h file.
64500         (__COUNTER__): Define to 0 if the compiler doesn't support it.
64501         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
64502         of verify_function__.
64504 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
64506         Tests for module pwrite.
64507         * modules/pwrite-tests: New file.
64508         * tests/test-pwrite.sh: New file.
64509         * tests/test-pwrite.c: New file.
64511         New module pwrite.
64512         * lib/unistd.in.h (pwrite): New declaration.
64513         * lib/pwrite.c: New file, from glibc with modifications.
64514         * m4/pwrite.m4: New file.
64515         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
64516         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
64517         REPLACE_PWRITE.
64518         * modules/pwrite: New file.
64519         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
64520         REPLACE_PWRITE.
64521         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
64522         * doc/posix-functions/pwrite.texi: Mention the new module.
64524 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
64526         pread: Update documentation.
64527         * doc/posix-functions/pread.texi: Mention the 'pread' module.
64529 2010-05-04  Eric Blake  <eblake@redhat.com>
64531         docs: update cygwin progress
64532         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
64533         this bug.
64534         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
64535         Added in cygwin 1.7.2.
64536         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
64537         Likewise.
64538         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
64539         Likewise.
64540         * doc/glibc-functions/dup3.texi (dup3): Likewise.
64541         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
64542         * doc/glibc-functions/accept4.texi (accept4): Likewise.
64543         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
64544         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
64545         Mention nproc module.
64546         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
64547         bug in cygwin 1.7.5 addition.
64548         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
64549         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
64550         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
64551         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
64552         1.7.5.
64553         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
64554         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
64555         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
64556         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
64557         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
64558         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
64559         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
64560         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
64561         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
64562         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
64563         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
64564         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
64565         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
64566         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
64567         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
64568         Likewise.
64569         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
64570         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
64571         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
64572         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
64573         Likewise.
64574         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
64575         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
64576         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
64577         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
64578         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
64579         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
64580         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
64581         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
64582         Likewise.
64583         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
64584         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
64585         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
64586         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
64587         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
64588         Likewise.
64589         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
64590         Likewise.
64591         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
64592         Likewise.
64593         * doc/glibc-functions/xdrrec_endofrecord.texi
64594         (xdrrec_endofrecord): Likewise.
64595         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
64596         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
64597         Likewise.
64598         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
64599         Likewise.
64601 2010-05-04  Jim Meyering  <meyering@redhat.com>
64603         gendocs.sh: make its "-s FILE" option more useful
64604         * build-aux/gendocs.sh: When honoring the -s FILE option, update
64605         $PACKAGE to reflect the probably-different basename of "FILE".
64607 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
64609         bootstrap: don't ignore download_po_files failure
64610         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
64611         failure.
64613 2010-05-03  Jim Meyering  <meyering@redhat.com>
64615         maint.mk: allow to pass options to gendocs.sh
64616         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
64617         (gendocs_options_): New overridable variable.
64619         gnu-web-doc-update: don't ignore configure or build failure
64620         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
64622         announce-gen: backslash-escape '@'s in --help output
64623         * build-aux/announce-gen: Fix syntax errors.
64625         maint.mk, announce-gen: allow project-specific announcement mail headers
64626         * top/maint.mk (translation_project_): Define default.
64627         (announcement_Cc_, announcement_mail_headers_): Likewise.
64628         (announcement): Invoke announce-gen with new --mail-headers option.
64629         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
64631         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
64632         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
64633         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
64634         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
64635         line in the "err2" output file when running "make check" in verbose
64636         mode (i.e., with set -x enabled).
64638 2010-05-03  Bruno Haible  <bruno@clisp.org>
64640         wctob: Fix for weird platforms.
64641         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
64642         argument value.
64644 2010-05-03  Jim Meyering  <meyering@redhat.com>
64646         maint.mk: prohibit unwarranted use of <strings.h>
64647         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
64648         strings.h in a file that does not also use strcasecmp, strncasecmp,
64649         ffs or ffsll.
64651         maint.mk: remove obsolete comments
64652         * top/maint.mk: Remove stale, commented-out rules.
64654 2010-05-02  Bruno Haible  <bruno@clisp.org>
64656         wcwidth: Declare also when it's aliased.
64657         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
64658         macro.
64660 2010-05-02  Bruno Haible  <bruno@clisp.org>
64662         Fix regression from 2010-04-25.
64663         * gnulib-tool (func_modules_transitive_closure): Check the status of
64664         all modules, not only of the tests that are of the form foo-tests where
64665         foo is a module.
64667 2010-05-02  Bruno Haible  <bruno@clisp.org>
64669         wctob: Work around nasty Cygwin 1.7.2 bug.
64670         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
64671         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
64673 2010-05-01  Bruno Haible  <bruno@clisp.org>
64675         fpurge: Sharper test.
64676         * tests/test-fpurge.c (main): Add one more ftell check.
64677         * modules/fpurge-tests (Depends-on): Add ftell.
64678         Suggested by Eric Blake.
64680 2010-05-01  Bruno Haible  <bruno@clisp.org>
64682         ftello: Another test.
64683         * tests/test-ftello3.c: New file.
64684         * modules/ftello-tests (Files): Add it.
64685         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
64686         MOSTLYCLEANFILES.
64688         ftell: Another test.
64689         * tests/test-ftell3.c: New file.
64690         * modules/ftell-tests (Files): Add it.
64691         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
64692         MOSTLYCLEANFILES.
64694 2010-05-01  Bruno Haible  <bruno@clisp.org>
64696         ftell, ftello: Work around Solaris bug.
64697         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
64698         * lib/ftello.c: Include stdio-impl.h.
64699         (ftello): On Solaris, when _IOWRT is set, compute the result without
64700         looking at _IOREAD.
64701         * modules/ftello (Files): Add lib/stdio-impl.h.
64702         * doc/posix-functions/ftell.texi: Mention Solaris bug.
64703         * doc/posix-functions/ftello.texi: Likewise.
64704         Reported by Eric Blake.
64706 2010-05-01  Bruno Haible  <bruno@clisp.org>
64708         freading: Adapt to special meaning of _IOREAD flag on Solaris.
64709         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
64710         the _IOWRT flag is also set.
64712 2010-05-01  Bruno Haible  <bruno@clisp.org>
64714         Fix doc about a HP-UX stdio bug.
64715         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
64716         * doc/posix-functions/ftello.texi: Likewise.
64718 2010-05-01  Bruno Haible  <bruno@clisp.org>
64720         lseek test: Fix failure on Solaris.
64721         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
64722         output.
64724 2010-04-30  Jim Meyering  <meyering@redhat.com>
64726         bootstrap: don't ignore failure to generate po*/Makevars
64727         * build-aux/bootstrap (with_gettext): Don't ignore failure
64728         to create po/Makevars or runtime-po/Makevars.
64730 2010-04-29  Eric Blake  <eblake@redhat.com>
64732         headers: relax license to LGPLv2+
64733         * modules/fcntl-h (License): Relax license.
64734         * modules/getopt-posix (License): Likewise.
64735         * modules/locale (License): Likewise.
64736         * modules/math (License): Likewise.
64737         * modules/pty (License): Likewise.
64738         * modules/sched (License): Likewise.
64739         * modules/search (License): Likewise.
64740         * modules/spawn (License): Likewise.
64741         * modules/stdarg (License): Likewise.
64742         * modules/sysexits (License): Likewise.
64744 2010-04-29  Jim Meyering  <meyering@redhat.com>
64746         inttypes: relax license to LGPLv2+
64747         * modules/inttypes (License): Relax license.
64749 2010-04-29  Simon Josefsson  <simon@josefsson.org>
64751         * top/maint.mk (indent): Run twice to produce idempotent results.
64753 2010-04-28  Bruno Haible  <bruno@clisp.org>
64755         getdate: Generate getdate.c in the source directory.
64756         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
64757         MOSTLYCLEANFILES.
64758         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
64760 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
64762         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
64763         is not declared as a const *; avoid warnings in that case.
64765 2010-04-28  Eric Blake  <eblake@redhat.com>
64767         canonicalize-lgpl: avoid compiler warning
64768         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
64769         declaration' / 'extraneous semicolon' warning with some compilers.
64770         Reported by Andreas Gruenbacher.
64772 2010-04-28  Jim Meyering  <meyering@redhat.com>
64774         init.sh: ensure a more reliable exit status when exiting via trap
64775         * tests/init.sh (setup_): Don't rely on $? in signal handler.
64776         Inspired by patches from Dmitry V. Levin.
64777         Also trap on signal 3 (SIGQUIT).
64779 2010-04-27  Bruno Haible  <bruno@clisp.org>
64781         Update doc about utimes().
64782         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
64783         'utimens' module.
64784         Reported by Andreas Gruenbacher <agruen@suse.de>.
64786 2010-04-27  Eric Blake  <eblake@redhat.com>
64788         full-read, full-write: relax license
64789         * modules/full-read (License): Drop to LGPLv2+.
64790         * modules/full-write (License): Likewise.
64791         * modules/safe-read (License): Likewise.
64792         * modules/safe-write (License): Likewise.
64794         pthread: mention library for linking
64795         * modules/pthread (Link): Mention $(LIB_PTHREAD).
64797 2010-04-27  Jim Meyering  <meyering@redhat.com>
64799         maint.mk: fix a bug introduced in last change
64800         * top/maint.mk (gl_assured_headers_): Now that all names are on
64801         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
64802         is not anchored to end of word, it should be adequate.
64804         maint.mk: avoid side-effect in latest syntax-check
64805         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
64806         to run commands via $(shell...), and hence to incur cost only when
64807         the new rule is actually run.
64809         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
64810         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
64811         and use that to create a regexp used to detect all #if HAVE_..._H uses.
64812         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
64813         (gl_assured_headers_, az_, AZ_): Define.
64814         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
64816 2010-04-26  Jim Meyering  <jim@meyering.net>
64817             Bruno Haible  <bruno@clisp.org>
64819         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
64820         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
64821         Prompted by an exchange with Gilles Espinasse.
64823 2010-04-26  Jim Meyering  <meyering@redhat.com>
64825         git-version-gen: aesthetic tweak
64826         * build-aux/git-version-gen: Use "$nl" rather than a literal,
64827         so that the command remains on a single line.
64829 2010-04-26  Eric Blake  <eblake@redhat.com>
64831         git-version-gen: allow use on EBCDIC hosts
64832         * build-aux/git-version-gen (dirty): Use literal rather than tying
64833         ourselves to ascii.
64834         Reported by Steve Goetze.
64836 2010-04-25  Bruno Haible  <bruno@clisp.org>
64838         netdb: Add support for GNULIB_POSIXCHECK.
64839         * lib/netdb.in.h: Include warn-on-use.h.
64840         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
64841         functions are used when GNULIB_POSIXCHECK is defined and the
64842         getaddrinfo module is not in use.
64843         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
64844         freeaddrinfo, gai_strerror, getnameinfo are declared.
64845         * modules/netdb (Depends-on): Add warn-on-use.
64846         (Makefile.am): Include warn-on-use.h in netdb.h.
64848 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
64850         build: avoid "make check" failure without .git/ directory
64851         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
64852         there is no .git/ directory.
64854 2010-04-25  Bruno Haible  <bruno@clisp.org>
64856         ptsname: Fix misuse of ttyname_r.
64857         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
64858         of errno.
64860 2010-04-25  Bruno Haible  <bruno@clisp.org>
64862         ttyname_r: Make it work on Solaris 10.
64863         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
64864         if the system function has the POSIX declaration. Test whether the
64865         function fails if the buffer is less than 128 bytes large.
64866         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
64867         system's ttyname_r function. Provide a reasonably large buffer.
64868         * modules/ttyname_r (Depends-on): Add extensions.
64869         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
64871 2010-04-25  Bruno Haible  <bruno@clisp.org>
64873         Use the 'extensions' module for some more functions on Solaris.
64874         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
64875         module.
64876         * doc/posix-functions/ctime_r.texi: Likewise.
64877         * doc/posix-functions/getgrgid_r.texi: Likewise.
64878         * doc/posix-functions/getgrnam_r.texi: Likewise.
64879         * doc/posix-functions/getpwnam_r.texi: Likewise.
64880         * doc/posix-functions/getpwuid_r.texi: Likewise.
64881         * doc/posix-functions/readdir_r.texi: Likewise.
64882         * doc/posix-functions/sigwait.texi: Likewise.
64883         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
64884         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
64886 2010-04-25  Bruno Haible  <bruno@clisp.org>
64888         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
64889         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
64890         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
64891         * lib/ttyname_r.c: Include <limits.h>.
64892         (ttyname_r): Define using the system's ttyname_r function, if it exists
64893         and not on Solaris.
64894         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
64895         set.
64896         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
64897         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
64898         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
64899         Reported by Simon Josefsson.
64901 2010-04-25  Bruno Haible  <bruno@clisp.org>
64903         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
64904         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
64905         * doc/posix-functions/ctime_r.texi: Likewise.
64906         * doc/posix-functions/getgrgid_r.texi: Likewise.
64907         * doc/posix-functions/getgrnam_r.texi: Likewise.
64908         * doc/posix-functions/getlogin_r.texi: Likewise.
64909         * doc/posix-functions/getpwnam_r.texi: Likewise.
64910         * doc/posix-functions/getpwuid_r.texi: Likewise.
64911         * doc/posix-functions/readdir_r.texi: Likewise.
64912         * doc/posix-functions/sigwait.texi: Likewise.
64913         * doc/posix-functions/ttyname_r.texi: Likewise.
64914         Reported by Simon Josefsson.
64916 2010-04-25  Bruno Haible  <bruno@clisp.org>
64918         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
64919         * gnulib-tool (func_usage): Document that --with-*-tests options apply
64920         also to --create-testdir.
64921         (func_acceptable): Don't consider the status of *-tests modules here.
64922         (func_modules_transitive_closure): Consider it here, before including a
64923         test module.
64924         (func_import, func_create_testdir): Set inc_all_direct_tests,
64925         inc_all_indirect_tests.
64926         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
64927         --create-testdir and --create-megatestdir.
64929 2010-04-25  Bruno Haible  <bruno@clisp.org>
64931         gnulib-tool: Add --without-*-tests options.
64932         * gnulib-tool (func_usage): Document the --without-*-tests options.
64933         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
64934         excl_unportable_tests): New variables.
64935         Fail if they are specified with --import or --update.
64936         (func_acceptable): Respect the excl_*_tests variables.
64937         (func_import): Set the excl_*_tests variables to empty.
64939 2010-04-25  Simon Josefsson  <simon@josefsson.org>
64940             Bruno Haible  <bruno@clisp.org>
64942         Work around a MacOS X 10.4 bug with openpty.
64943         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
64944         * tests/test-openpty.c (main): Close the master side explicitly.
64946 2010-04-25  Bruno Haible  <bruno@clisp.org>
64948         strnlen: Fix a C++ test error on MacOS X and Solaris.
64949         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
64950         the function is not declared.
64951         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
64952         Simon Josefsson.
64954 2010-04-24  Bruno Haible  <bruno@clisp.org>
64956         Avoid a gcc warning.
64957         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
64958         of correct type for %08lx directive.
64959         Reported by Eric Blake.
64961 2010-04-24  Bruno Haible  <bruno@clisp.org>
64963         vasnprintf: Correct errno value in case of out-of-memory.
64964         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
64965         or sprintf. Use the errno value from SNPRINTF or sprintf.
64966         Reported by Ian Beckwith <ianb@erislabs.net>.
64968 2010-04-24  Bruno Haible  <bruno@clisp.org>
64970         ansi-c++-opt: Find correct compiler when cross-compiling.
64971         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
64972         AC_CHECK_PROGS.
64973         Reported by Simon Josefsson.
64975 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
64977         vc-list-files: Add support for subversion
64978         * build-aux/vc-list-files: Use "svn list" to generate the list of
64979         files controlled by subversion.
64981 2010-04-23  Jim Meyering  <meyering@redhat.com>
64983         vc-list-files tests: convert to use init.sh
64984         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
64985         path_prepend_.
64986         Use Exit, not exit.
64987         Use skip_ rather than open coding it.
64988         Remove trap set-up and compare definitions.
64989         * tests/test-vc-list-files-git.sh: Likewise.
64990         * modules/vc-list-files-tests (Files): Add tests/init.sh.
64992 2010-04-22  Simon Josefsson  <simon@josefsson.org>
64994         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
64995         backup files.
64997 2010-04-21  Simon Josefsson  <simon@josefsson.org>
64999         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
65001 2010-04-20  Eric Blake  <eblake@redhat.com>
65003         tests: be robust to ignored SIGPIPE
65004         * tests/test-select-in.sh: Consume all output.
65005         * tests/test-lseek.sh: Check correct exit status, while avoiding
65006         EPIPE.
65008 2010-04-20  Simon Josefsson  <simon@josefsson.org>
65009             Bruno Haible  <bruno@clisp.org>
65011         visibility: Don't use -fvisibility if it leads to a warning.
65012         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
65013         yes, don't pretend that visibility works if it leads to a warning.
65014         Reported by Mike Gran <spk121@yahoo.com>.
65016 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
65018         * build-aux/bootstrap: Use "git -h" for testing for supported options
65019         instead of "git --help".  The short-form option only shows a summary,
65020         and doesn't layout the full man page.  Grep for the full option name
65021         in the summary, too.
65023 2010-04-19  Bruno Haible  <bruno@clisp.org>
65025         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
65026         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
65027         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
65028         mention of RELOCATABLE_STRIP.
65029         Reported by Sylvain Beucler <beuc@beuc.net>.
65031 2010-04-19  Bruno Haible  <bruno@clisp.org>
65033         * lib/diffseq.h: Fix typo in comment.
65034         Reported by Eric Blake.
65036 2010-04-19  Bruno Haible  <bruno@clisp.org>
65038         ioctl: Move autoconf macro to a .m4 file.
65039         * m4/ioctl.m4: New file, extracted from modules/ioctl.
65040         * modules/ioctl (Files): Add it.
65041         (configure.ac): Simply invoke gl_FUNC_IOCTL.
65042         Reported by Ian Beckwith <ianb@erislabs.net>.
65044 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
65045             Bruno Haible  <bruno@clisp.org>
65047         diffseq: Accommodate use-case with abstract arrays.
65048         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
65049         is not defined.
65050         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
65051         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
65053 2010-04-18  Bruno Haible  <bruno@clisp.org>
65055         * doc/posix-headers/stdbool.texi: More precise wording.
65057 2010-04-17  Jim Meyering  <meyering@redhat.com>
65059         maint.mk: use gnu-style indentation in an embedded perl script
65060         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
65061         Rename variable: s/two/last_two_bytes/
65063 2010-04-16  Eric Blake  <eblake@redhat.com>
65065         test-stdbool: skip test that fails with Solaris CC
65066         * tests/test-stdbool.c (f): Skip test that causes compilation
65067         error under buggy C++ compiler.
65068         * lib/stdbool.in.h: Document the limitation.
65069         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
65071         setenv: allow compilation with C++
65072         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
65073         register keyword.
65075         stdint: allow test to pass with C++
65076         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
65078         getopt: allow compilation with C++
65079         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
65080         struct.
65081         * lib/getopt.c (_getopt_internal_r): Use correct type.
65082         Reported by Dagobert Michelson, via Joel E. Denny.
65084 2010-04-16  Bruno Haible  <bruno@clisp.org>
65086         Override netdb.h always.
65087         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
65088         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
65089         Reported by Ludovic Courtès <ludo@gnu.org>.
65091 2010-04-15  Bruno Haible  <bruno@clisp.org>
65093         openpty: Fix mistake from 2010-03-21.
65094         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
65095         Reported by Simon Josefsson.
65097 2010-04-15  Eric Blake  <eblake@redhat.com>
65099         test-forkpty: fix expected signature
65100         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
65101         Reported by Simon Josefsson.
65103 2010-04-15  Jim Meyering  <meyering@redhat.com>
65105         maint.mk: texinfo_suffix_re_: correct the default regexp
65106         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
65108         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
65109         make it configurable via texinfo_suffix_re_.
65111 2010-04-14  Eric Blake  <eblake@redhat.com>
65113         strtok_r: relax license to LGPLv2+
65114         * modules/strtok_r (License): Relax license.
65115         Reported by Matthias Bolte.
65117 2010-04-14  Simon Josefsson  <simon@josefsson.org>
65119         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
65120         version 1.4.4 by default instead of requiring the libgcrypt
65121         version used during build.  This makes it possible to use the
65122         application with older but still binary compatible libgcrypt
65123         versions.
65125 2010-04-13  Eric Blake  <eblake@redhat.com>
65127         getopt-gnu: match recent glibc fixes and posix ruling
65128         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
65129         '+' handling, when requesting extensions.
65130         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
65131         'W;' handling.
65132         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
65133         * doc/posix-functions/getopt.texi (getopt): Document this.
65134         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
65135         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
65136         Likewise.
65138         getopt: merge bug fixes from glibc
65139         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
65140         diagnostics.  Honor '+:' correctly.  Reject ';'.
65142         getopt-posix: detect MacOS bug
65143         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
65144         optind when missing a required argument.
65145         * doc/posix-functions/getopt.texi (getopt): Document the bug.
65146         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
65147         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
65148         Likewise.
65150         getopt-posix: avoid spurious failure on Solaris
65151         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
65152         an indicator that setting optind=1 is sufficient for reset.
65154         getopt-posix: avoid spurious failure on FreeBSD
65155         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
65156         in POSIX mode, since the m4 test uses it.
65158         gnulib-tool: silence warning on BSD sh
65159         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
65161 2010-04-13  Jim Meyering  <meyering@redhat.com>
65163         doc: users.txt: GNU patch now uses gnulib
65164         * users.txt: Add patch.
65166 2010-04-12  Jim Meyering  <meyering@redhat.com>
65168         maint.mk: generate more concise timing data for syntax-check rules
65169         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
65170         " done" from each line that reports a syntax-check test duration.
65172 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
65174         git-version-gen: use "git update-index..." rather than "git status"
65175         * build-aux/git-version-gen: Use git update-index --refresh, not
65176         "git status".  With some versions of git, "git status" would fail
65177         to update the index and result in an unwarranted "-dirty" suffix.
65179 2010-04-11  Jim Meyering  <meyering@redhat.com>
65181         openat: correct formatting (no semantic change)
65182         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
65183         Suggested by Bruno Haible.
65185 2010-04-11  Bruno Haible  <bruno@clisp.org>
65187         Stricter declaration checking in testdirs.
65188         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
65189         If for_tests is true, augment AM_CPPFLAGS to define
65190         GNULIB_STRICT_CHECKING.
65191         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
65192         GNULIB_STRICT_CHECKING is defined, verify that the function is
65193         declared.
65195 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
65196             Bruno Haible  <bruno@clisp.org>
65198         libunistring: Improve configure output.
65199         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
65200         Don't say "consider installing GNU libunistring" when checking again
65201         with libiconv.
65203 2010-04-11  Bruno Haible  <bruno@clisp.org>
65205         libunistring: Correct value of $LTLIBUNISTRING.
65206         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
65207         correct the value of $LTLIBUNISTRING.
65209 2010-04-11  Bruno Haible  <bruno@clisp.org>
65211         havelib: Add static libraries to LIBS in the right order.
65212         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
65213         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
65215 2010-04-11  Bruno Haible  <bruno@clisp.org>
65217         libunistring: Detect libunistring also when it depends on libiconv.
65218         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
65219         the second AC_LIB_HAVE_LINKFLAGS invocation.
65221 2010-04-11  James Youngman  <jay@gnu.org>
65223         close-stream: declare local scalars to be "const"
65224         * lib/close-stream.c (close_stream): Make boolean variables const
65225         to document the fact that we set but do not change them.
65227 2010-04-11  Bruno Haible  <bruno@clisp.org>
65229         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
65231 2010-04-11  Jim Meyering  <meyering@redhat.com>
65233         maint.mk: don't include dist-check.mk
65234         * top/maint.mk: Remove bogus include directive.
65236         maint.mk: improve empty-line-at-EOF check
65237         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
65238         solution, rather than tail+Perl-based one.  The latter would read
65239         a few kilobytes from the end of each file, and did not handle empty
65240         files properly.
65242         maint.mk: print the elapsed time for each syntax-check rule
65243         * top/maint.mk (sc_m_rules_): Save start time in a file.
65244         (sc_z_rules_): New rules: remove temp file and print elapsed time.
65245         (local-check): Interpose the .z rules
65247 2010-04-11  Jim Meyering  <meyering@redhat.com>
65249         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
65250         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
65251         empty file with one that ends in an empty line.
65253 2010-04-10  Bruno Haible  <bruno@clisp.org>
65255         mkdir: Make it work on mingw64.
65256         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
65257         * lib/mkdir.c: Update comment.
65258         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
65260 2010-04-10  Bruno Haible  <bruno@clisp.org>
65262         Don't override improved macro from newer autoconf.
65263         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
65264         autoconf >= 2.62.
65265         Reported by Joel E. Denny <jdenny@clemson.edu>.
65267 2010-04-10  Jim Meyering  <meyering@redhat.com>
65269         maint.mk: new syntax-check rule: prohibit empty lines at end of file
65270         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
65272         maint.mk: correct a diagnostic
65273         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
65274         in diagnostic; now use $prohibit.
65276 2010-04-10  Bruno Haible  <address@hidden>
65278         fchownat: Fix a C++ test error on Solaris 8.
65279         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
65280         the function does not exist.
65282 2010-04-10  Bruno Haible  <bruno@clisp.org>
65284         vasnprintf: Add more tests.
65285         * tests/test-vasnprintf-posix.c: Include <errno.h>.
65286         (test_function): Test converting an invalid wide string.
65288         vasnprintf: Correct handling of unconvertible wide string arguments.
65289         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
65290         VASNPRINTF.
65291         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
65292         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
65293         smaller than the expected maximum need for the directive. Set errno to
65294         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
65295         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
65296         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
65297         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
65298         * modules/vasnprintf (Files): Add m4/printf.m4.
65299         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
65301 2010-04-10  Bruno Haible  <bruno@clisp.org>
65303         vasnprintf: Fix crash in %ls directive.
65304         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
65305         string is passed as argument to %ls, with no precision and no width.
65306         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
65308 2010-04-10  Bruno Haible  <bruno@clisp.org>
65310         vasnprintf: Fix multiple test failures on mingw.
65311         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
65312         _snprintf, or snwprintf, not _snwprintf.
65314 2010-04-10  Bruno Haible  <bruno@clisp.org>
65316         write: Fix a C++ test error on mingw.
65317         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
65319 2010-04-10  Bruno Haible  <bruno@clisp.org>
65321         vasnprintf test: Reduce code duplication.
65322         * tests/test-vasnprintf.c (test_function): New function, extracted from
65323         test_vasnprintf.
65324         (test_vasnprintf, test_asnprintf): Invoke it.
65326 2010-04-10  Bruno Haible  <bruno@clisp.org>
65328         strnlen: Fix warning in C++ mode on MacOS X.
65329         * lib/string.in.h (strnlen): Use the modern idiom.
65330         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
65331         defining strnlen as a macro already in <config.h>.
65332         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
65333         REPLACE_STRNLEN.
65334         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
65335         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
65337 2010-04-08  James Youngman  <jay@gnu.org>
65339         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
65340         the example.
65342 2010-04-09  Jim Meyering  <meyering@redhat.com>
65344         maint.mk: print better diagnostic when there is no $(_hv_file)
65345         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
65346         announce that when $(_hv_file) (aka help-version) does not exist.
65348         init.sh: run tr in the "C" locale to avoid multibyte interpretation
65349         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
65350         not try to interpret its random input bytes.  Jarno Rajahalme reported
65351         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
65352         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
65353         (mktempd_): Likewise, just in case.
65355         ftruncate: add two years to projected module removal date: 2012
65356         * m4/ftruncate.m4: Adjust comments.
65358         ftruncate: mark module as obsolete; even MinGW provides it, now
65359         * modules/ftruncate (Status): Obsolete.
65360         (Notice): Say that.
65361         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
65362         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
65364 2010-04-08  Bruno Haible  <bruno@clisp.org>
65366         Fix side effects from tests-related modules.
65367         * modules/dprintf-posix (Comment): New section.
65368         * modules/fprintf-posix (Comment): Likewise.
65369         * modules/obstack-printf-posix (Comment): Likewise.
65370         * modules/printf-posix (Comment): Likewise.
65371         * modules/snprintf-posix (Comment): Likewise.
65372         * modules/sprintf-posix (Comment): Likewise.
65373         * modules/vasnprintf-posix (Comment): Likewise.
65374         * modules/vasprintf-posix (Comment): Likewise.
65375         * modules/vdprintf-posix (Comment): Likewise.
65376         * modules/vfprintf-posix (Comment): Likewise.
65377         * modules/vprintf-posix (Comment): Likewise.
65378         * modules/vsnprintf-posix (Comment): Likewise.
65379         * modules/vsprintf-posix (Comment): Likewise.
65380         * modules/xprintf-posix (Comment): Likewise.
65381         * modules/xvasprintf-posix (Comment): Likewise.
65382         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
65383         * modules/floorf-tests (Depends-on): Likewise.
65384         * modules/round-tests (Depends-on): Likewise.
65385         * modules/roundf-tests (Depends-on): Likewise.
65386         * modules/trunc-tests (Depends-on): Likewise.
65387         * modules/truncf-tests (Depends-on): Likewise.
65388         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
65389         'fprintf-posix' module is not present.
65390         * tests/test-floorf2.c (check): Likewise.
65391         * tests/test-trunc2.c (check): Likewise.
65392         * tests/test-truncf2.c (check): Likewise.
65393         * tests/test-round2.c (equal): Likewise.
65394         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
65396 2010-04-07  Karl Berry  <karl@gnu.org>
65398         * config/srclist.txt,
65399         * config/srclistvars.sh,
65400         * config/srclist-update: doc fixes.
65402 2010-04-07  Jim Meyering  <meyering@redhat.com>
65404         maint.mk: add a PATH crosschecking syntax-check rule
65405         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
65406         Useful if you use a test like the one in help-version (coreutils,
65407         diffutils, grep, gzip) that ensures $(VERSION) matches what is
65408         printed by prog --version.
65410 2010-04-06  Bruno Haible  <bruno@clisp.org>
65412         Fix link error on mingw.
65413         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
65414         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
65416 2010-04-06  Bruno Haible  <bruno@clisp.org>
65418         Assume rmdir exists.
65419         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
65421 2010-04-06  Giuseppe Scrivano  <gscrivano@gnu.org>
65423         doc: update users.txt
65424         * users.txt: Add gcal.
65426 2010-04-06  Jim Meyering  <meyering@redhat.com>
65428         init.sh: simply unset TMPDIR rather than risking env -i
65429         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
65430         although it probably works fine on all Unix-based systems, some
65431         systems (Cygwin?) cannot tolerate a totally cleared environment.
65432         Suggestion from Eric Blake.
65434 2010-04-06  Jim Meyering  <meyering@redhat.com>
65436         init.sh: portability fix: use env's POSIX-specified -i option not -u
65437         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
65438         than unportable env -u.  Solaris 5.11's env lacks support for -u.
65440 2010-04-05  Bruno Haible  <bruno@clisp.org>
65442         btowc: Work around Cygwin 1.7.2 bug.
65443         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
65444         does not map NUL to 0.
65445         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
65447 2010-04-05  Bruno Haible  <bruno@clisp.org>
65449         Make the multithread modules work on Cygwin 1.7.2.
65450         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
65451         imported symbols can be declared weak, so that it returns "no" on
65452         Cygwin 1.7.2.
65454 2010-04-05  Bruno Haible  <bruno@clisp.org>
65456         Use the module 'strncat'.
65457         * modules/unistr/u8-strncat (Depends-on): Add strncat.
65459         Tests for module 'strncat'.
65460         * modules/strncat-tests: New file.
65461         * tests/test-strncat.c: New file.
65463         New module 'strncat'.
65464         * lib/string.in.h (strncat): New declaration.
65465         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
65466         * m4/strncat.m4: New file, based on m4/memchr.m4.
65467         * modules/strncat: New file.
65468         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
65469         is declared.
65470         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
65471         REPLACE_STRNCAT.
65472         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
65473         REPLACE_STRNCAT.
65474         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
65475         module.
65476         * tests/test-string-c++.cc: Check signature of strncat.
65478 2010-04-05  Jim Meyering  <meyering@redhat.com>
65480         xstrtoumax-tests: convert to use init.sh
65481         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
65482         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
65483         Use Exit, not exit.
65484         Remove uses of $EXEEXT and "./" to run a program in the current dir.
65486         xstrtoimax-tests: convert to use init.sh
65487         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
65488         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
65489         Use Exit, not exit.
65490         Remove uses of $EXEEXT and "./" to run a program in the current dir.
65492 2010-04-05  Bruno Haible  <bruno@clisp.org>
65494         sys_socket: Avoid #define replacements in C++ mode.
65495         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
65496         warning to the function if possible, rather than #defining the symbol
65497         to a dysfunctional alias.
65499 2010-04-05  Bruno Haible  <bruno@clisp.org>
65501         fseeko: Fix C++ test error on mingw.
65502         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
65503         gl_FUNC_FSEEKO.
65504         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
65505         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
65506         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
65507         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
65509 2010-04-05  Bruno Haible  <bruno@clisp.org>
65511         duplocale: Improve test output.
65512         * tests/test-duplocale.c (main): Print reason for skipped test.
65514 2010-04-05  Bruno Haible  <bruno@clisp.org>
65516         Assume rmdir exists.
65517         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
65518         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
65520 2010-04-05  Bruno Haible  <bruno@clisp.org>
65522         Fix link error on Solaris 8 with cc.
65523         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
65525 2010-04-05  Bruno Haible  <bruno@clisp.org>
65527         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
65528         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
65530 2010-04-05  Bruno Haible  <bruno@clisp.org>
65532         vasprintf: Update documentation.
65533         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
65535 2010-04-05  Bruno Haible  <bruno@clisp.org>
65537         ptsname: Improve test.
65538         * tests/test-ptsname.c (main): Also try the various master names of BSD
65539         systems.
65541 2010-04-05  Bruno Haible  <bruno@clisp.org>
65543         memchr: Avoid a possible C++ test error.
65544         * lib/string.in.h (memchr): Provide declaration if function is missing.
65545         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
65546         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
65547         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
65548         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
65550 2010-04-05  Bruno Haible  <bruno@clisp.org>
65552         strtok_r: Improve idiom.
65553         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
65554         AC_LIBOBJ is used.
65556 2010-04-05  Bruno Haible  <bruno@clisp.org>
65558         strdup: Improve idiom.
65559         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
65560         AC_LIBOBJ is used.
65561         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
65562         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
65563         when AC_LIBOBJ is used.
65565 2010-04-05  Bruno Haible  <bruno@clisp.org>
65567         mbsinit, mbrtowc, wcrtomb: Improve idioms.
65568         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
65569         don't set REPLACE_MBSINIT to 1.
65570         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
65571         don't set REPLACE_MBRTOWC to 1.
65572         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
65573         exist, don't set REPLACE_MBSRTOWCS to 1.
65574         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
65575         exist, don't set REPLACE_MBSNRTOWCS to 1.
65576         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
65577         don't set REPLACE_WCRTOMB to 1.
65578         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
65579         exist, don't set REPLACE_WCSRTOMBS to 1.
65580         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
65581         exist, don't set REPLACE_WCSNRTOMBS to 1.
65583 2010-04-05  Bruno Haible  <bruno@clisp.org>
65585         ldexpl: Improve idiom.
65586         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
65587         make sure to set HAVE_DECL_LDEXPL to 0.
65589 2010-04-05  Jim Meyering  <meyering@redhat.com>
65591         xstrtol-tests: convert to use init.sh
65592         * modules/xstrtol-tests (Files): Add tests/init.sh.
65593         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
65594         Use Exit, not exit.
65595         Remove uses of $EXEEXT and "./" to run a program in the current dir.
65597         atexit-tests: convert to use init.sh
65598         * modules/atexit-tests (Files): Add tests/init.sh.
65599         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
65600         Use Exit, not exit.
65601         Remove uses of $EXEEXT and "./" to run a program in the current dir.
65603         init.sh: fix typo
65604         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
65606         init.sh: make it easier for a test script to write to the tty, ...
65607         when using automake's parallel-tests mode.
65608         * tests/init.sh (stderr_fileno_): Define overridable variable.
65609         (warn_): New function, to use it.
65610         (fail_, skip_, framework_failure_): Use warn_.
65612 2010-04-04  Bruno Haible  <bruno@clisp.org>
65614         btowc: Avoid warning.
65615         * lib/btowc.c: Include <stdlib.h>.
65616         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
65618 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
65619             Bruno Haible  <bruno@clisp.org>
65621         wchar: Port to NetBSD 1.5.
65622         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
65623         * lib/wctype.in.h (WEOF): Likewise.
65625 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
65626             Bruno Haible  <bruno@clisp.org>
65628         Port extended stdio to NetBSD 1.5.
65629         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
65630         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
65631         older.
65633 2010-04-04  Bruno Haible  <bruno@clisp.org>
65635         string: Remove unused substitution.
65636         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
65637         HAVE_DECL_STRERROR.
65638         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
65640 2010-04-04  Bruno Haible  <bruno@clisp.org>
65642         strtod: Avoid a possible C++ test error.
65643         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
65644         set REPLACE_STRTOD.
65646 2010-04-04  Bruno Haible  <bruno@clisp.org>
65648         strerror: Update documentation.
65649         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
65651 2010-04-04  Bruno Haible  <bruno@clisp.org>
65653         stdio: Fix some C++ test errors on Solaris 8 with GCC.
65654         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
65655         _GL_CXXALIAS_SYS_CAST.
65657 2010-04-04  Bruno Haible  <bruno@clisp.org>
65659         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
65660         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
65661         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
65662         REPLACE_FREXPL to 1.
65663         * doc/posix-functions/frexpl.texi: Update documentation.
65665 2010-04-04  Bruno Haible  <bruno@clisp.org>
65667         math: Fix some C++ test errors on Solaris 8 and Cygwin.
65668         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
65670 2010-04-04  Bruno Haible  <bruno@clisp.org>
65672         Implement nanosleep for native Windows.
65673         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
65675 2010-04-04  Bruno Haible  <bruno@clisp.org>
65677         math: Fix some C++ test errors on Solaris 8.
65678         * lib/math.in.h (truncf, trunc): Use simpler idiom.
65680 2010-04-04  Bruno Haible  <bruno@clisp.org>
65682         math: Fix some C++ test errors on Cygwin.
65683         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
65684         truncl): Provide declaration if the system does not have it.
65685         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
65686         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
65687         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
65688         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
65689         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
65690         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
65691         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
65692         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
65693         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
65694         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
65695         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
65696         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
65697         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
65698         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
65699         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
65700         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
65701         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
65702         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
65703         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
65704         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
65705         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
65706         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
65708 2010-04-04  Bruno Haible  <bruno@clisp.org>
65710         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
65711         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
65712         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
65713         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
65714         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
65715         * m4/isinf.m4 (gl_ISINF): Likewise.
65716         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
65718 2010-04-04  Bruno Haible  <bruno@clisp.org>
65720         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
65721         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
65723 2010-04-04  Bruno Haible  <bruno@clisp.org>
65725         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
65726         * modules/tmpfile (configure.ac): Update.
65728         tmpfile: Fix C++ test error on mingw.
65729         * lib/stdio.in.h (tmpfile): New declaration.
65730         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
65731         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
65732         * modules/tmpfile (Depends-on): Add stdio.
65733         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
65734         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
65735         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
65736         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
65737         REPLACE_TMPFILE.
65738         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
65740 2010-04-04  Bruno Haible  <bruno@clisp.org>
65742         ioctl: Fix C++ test error on mingw.
65743         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
65744         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
65745         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
65747 2010-04-03  Bruno Haible  <bruno@clisp.org>
65749         wcwidth: Fix C++ test error on mingw.
65750         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
65751         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
65752         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
65754 2010-04-03  Bruno Haible  <bruno@clisp.org>
65756         nanosleep: Fix C++ test error on mingw.
65757         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
65758         * lib/time.in.h (nanosleep): Use modern idiom.
65759         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
65760         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
65761         REPLACE_NANOSLEEP to 1.
65762         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
65763         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
65765 2010-04-03  Bruno Haible  <bruno@clisp.org>
65767         strptime: Fix C++ test error on mingw.
65768         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
65769         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
65770         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
65771         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
65772         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
65773         not REPLACE_STRPTIME.
65774         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
65775         REPLACE_STRPTIME.
65777 2010-04-03  Bruno Haible  <bruno@clisp.org>
65779         timegm: Fix C++ test error on mingw.
65780         * lib/time.in.h (timegm): Use modern idiom.
65781         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
65782         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
65783         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
65784         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
65786 2010-04-03  Bruno Haible  <bruno@clisp.org>
65788         timegm: Assume declaration if function exists.
65789         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
65790         if it exists. Don't clobber ac_cv_func_timegm.
65792 2010-04-03  Bruno Haible  <bruno@clisp.org>
65794         time_r: Fix C++ test error on mingw.
65795         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
65796         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
65797         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
65798         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
65799         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
65801 2010-04-03  Bruno Haible  <bruno@clisp.org>
65803         time_r: Minor updates.
65804         * modules/time_r (Description): Mention the provided functions.
65805         * lib/time_r.c: Don't include <string.h>.
65806         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
65807         * doc/posix-functions/localtime_r.texi: Likewise.
65809 2010-04-03  Bruno Haible  <bruno@clisp.org>
65811         time: Fix regression introduced on 2010-03-08.
65812         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
65813         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
65815 2010-04-03  Jim Meyering  <meyering@redhat.com>
65817         maint.mk: don't silently disable project-specific syntax-check rules
65818         * top/maint.mk (_prohibit_regexp): Define, to help people realize
65819         that they need to convert their project-specific syntax-check rules
65820         to use the new _sc_search_regexp.
65822 2010-04-03  Bruno Haible  <bruno@clisp.org>
65824         fchdir: Fix regression introduced on 2010-03-08.
65825         * lib/unistd.in.h (fchdir): Fix declaration.
65826         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
65827         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
65828         REPLACE_FCHDIR.
65829         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
65830         REPLACE_FCHDIR.
65832 2010-04-03  Bruno Haible  <bruno@clisp.org>
65834         getpagesize: Fix C++ test error on mingw.
65835         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
65836         system does not declare the function.
65837         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
65838         declared.
65839         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
65840         HAVE_DECL_GETPAGESIZE.
65841         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
65843 2010-04-03  Bruno Haible  <bruno@clisp.org>
65845         stdio: Make C++ tests work on mingw.
65846         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
65847         does not declare the function.
65849 2010-04-03  Bruno Haible  <bruno@clisp.org>
65851         ftello: Fix C++ test error on mingw.
65852         * lib/stdio.in.h (ftello): Use modern idiom.
65853         * lib/ftello.c (ftello): Renamed from rpl_ftello.
65854         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
65855         is missing and that it needs to be replaced.
65856         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
65857         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
65858         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
65860 2010-04-03  Bruno Haible  <bruno@clisp.org>
65862         fseeko: Fix C++ test error on mingw.
65863         * lib/stdio.in.h (fseeko): Use modern idiom.
65864         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
65865         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
65866         is missing and that it needs to be replaced.
65867         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
65868         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
65869         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
65871 2010-04-03  Bruno Haible  <bruno@clisp.org>
65873         mkstemp: Fix C++ test error on mingw.
65874         * lib/stdlib.in.h (mkstemp): Use modern idiom.
65875         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
65876         function is missing and that it needs to be replaced.
65877         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
65878         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
65880 2010-04-03  Bruno Haible  <bruno@clisp.org>
65882         stpncpy: Fix C++ test error on mingw.
65883         * lib/string.in.h (stpncpy): Use modern idiom.
65884         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
65885         function is missing and that it needs to be replaced.
65886         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
65887         REPLACE_STPNCPY.
65888         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
65890 2010-04-03  Bruno Haible  <bruno@clisp.org>
65892         sys_stat: Fix C++ test error on mingw.
65893         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
65894         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
65896 2010-04-03  Bruno Haible  <bruno@clisp.org>
65898         pty: Update doc.
65899         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
65901 2010-04-03  Bruno Haible  <bruno@clisp.org>
65903         unistd: Fix C++ test error on mingw.
65904         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
65906 2010-04-03  Bruno Haible  <bruno@clisp.org>
65908         Update doc regarding mingw.
65909         * doc/glibc-functions/openpty.texi: Update regarding mingw.
65910         * doc/glibc-functions/login_tty.texi: Likewise.
65911         * doc/glibc-functions/forkpty.texi: Likewise.
65913 2010-04-03  Bruno Haible  <bruno@clisp.org>
65915         stdlib: Avoid compilation failure of c-strtold on mingw.
65916         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
65918 2010-04-03  Bruno Haible  <bruno@clisp.org>
65920         locale: Make C++ tests work on Cygwin and mingw.
65921         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
65922         cannot provide the function.
65923         Reported by Simon Josefsson.
65925 2010-04-03  Bruno Haible  <bruno@clisp.org>
65927         localename: Port to MacOS X 10.6.
65928         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
65929         memory layout of the locales in MacOS X 10.6 as well.
65930         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
65932 2010-04-02  Bruno Haible  <bruno@clisp.org>
65934         gnulib-tool: Ensure that long-running tests are executed last.
65935         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
65936         running tests after the one for the other tests.
65938 2010-04-02  Bruno Haible  <bruno@clisp.org>
65940         gnulib-tool: Ensure the tests in the main directory are executed first.
65941         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
65942         start with the current directory.
65944 2010-04-02  Bruno Haible  <bruno@clisp.org>
65946         Tests for module 'havelib', moved here from GNU gettext.
65947         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
65948         modifications.
65949         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
65950         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
65951         with modifications.
65952         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
65953         modifications.
65954         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
65955         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
65956         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
65957         with modifications.
65958         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
65959         with modifications.
65960         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
65961         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
65962         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
65963         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
65964         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
65965         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
65966         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
65967         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
65968         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
65969         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
65970         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
65971         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
65972         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
65973         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
65974         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
65975         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
65976         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
65977         with modifications.
65978         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
65979         with modifications.
65980         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
65981         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
65982         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
65983         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
65984         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
65985         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
65986         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
65987         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
65988         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
65989         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
65990         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
65991         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
65992         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
65993         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
65994         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
65995         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
65996         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
65997         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
65998         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
65999         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
66000         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
66001         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
66002         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
66003         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
66004         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
66005         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
66006         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
66007         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
66008         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
66009         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
66010         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
66011         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
66012         * tests/havelib/rpathx/rpathx.c: New file, from
66013         gettext/autoconf-lib-link.
66014         * tests/havelib/rpathx/Makefile.am: New file, from
66015         gettext/autoconf-lib-link.
66016         * tests/havelib/rpathx/configure.ac: New file, from
66017         gettext/autoconf-lib-link with modifications.
66018         * tests/havelib/rpathy/rpathy.c: New file, from
66019         gettext/autoconf-lib-link.
66020         * tests/havelib/rpathy/Makefile.am: New file, from
66021         gettext/autoconf-lib-link.
66022         * tests/havelib/rpathy/configure.ac: New file, from
66023         gettext/autoconf-lib-link with modifications.
66024         * tests/havelib/rpathz/rpathz.c: New file, from
66025         gettext/autoconf-lib-link.
66026         * tests/havelib/rpathz/Makefile.am: New file, from
66027         gettext/autoconf-lib-link.
66028         * tests/havelib/rpathz/configure.ac: New file, from
66029         gettext/autoconf-lib-link with modifications.
66030         * tests/havelib/rpathlx/usex.c: New file, from
66031         gettext/autoconf-lib-link.
66032         * tests/havelib/rpathlx/Makefile.am: New file, from
66033         gettext/autoconf-lib-link.
66034         * tests/havelib/rpathlx/configure.ac: New file, from
66035         gettext/autoconf-lib-link with modifications.
66036         * tests/havelib/rpathly/usey.c: New file, from
66037         gettext/autoconf-lib-link.
66038         * tests/havelib/rpathly/Makefile.am: New file, from
66039         gettext/autoconf-lib-link.
66040         * tests/havelib/rpathly/configure.ac: New file, from
66041         gettext/autoconf-lib-link with modifications.
66042         * tests/havelib/rpathlz/usez.c: New file, from
66043         gettext/autoconf-lib-link.
66044         * tests/havelib/rpathlz/Makefile.am: New file, from
66045         gettext/autoconf-lib-link.
66046         * tests/havelib/rpathlz/configure.ac: New file, from
66047         gettext/autoconf-lib-link with modifications.
66048         * tests/havelib/rpathlyx/usey.c: New file, from
66049         gettext/autoconf-lib-link.
66050         * tests/havelib/rpathlyx/Makefile.am: New file, from
66051         gettext/autoconf-lib-link.
66052         * tests/havelib/rpathlyx/configure.ac: New file, from
66053         gettext/autoconf-lib-link with modifications.
66054         * tests/havelib/rpathlzyx/usez.c: New file, from
66055         gettext/autoconf-lib-link.
66056         * tests/havelib/rpathlzyx/Makefile.am: New file, from
66057         gettext/autoconf-lib-link.
66058         * tests/havelib/rpathlzyx/configure.ac: New file, from
66059         gettext/autoconf-lib-link with modifications.
66060         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
66061         with modifications.
66063 2010-04-02  Bruno Haible  <bruno@clisp.org>
66065         gnulib-tool: Create distributed built sources also for the tests.
66066         * gnulib-tool (func_create_testdir): Also generate distributed built
66067         sources in the tests directory.
66069 2010-04-02  Bruno Haible  <bruno@clisp.org>
66071         gnulib-tool: Obey user's environment variables.
66072         * gnulib-tool (func_create_testdir): When creating built sources,
66073         respect the environment variables for autoconf, automake, etc. given by
66074         the user.
66076 2010-04-02  Bruno Haible  <bruno@clisp.org>
66078         gnulib-tool: Provide the value of --m4-base to modules.
66079         * gnulib-tool (func_import, func_create_testdir): Emit a definition
66080         of gl_m4_base.
66082 2010-04-02  Eric Blake  <eblake@redhat.com>
66084         maint.mk: fix some fallout
66085         * NEWS: Document the incompatible change, and its effect on cfg.mk.
66086         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
66088 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
66090         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
66091         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
66092         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
66093         (sc_cast_of_x_alloc_return_value): Likewise.
66094         (sc_cast_of_alloca_return_value): Likewise.
66095         (sc_space_tab): Likewise.
66096         (sc_prohibit_atoi_atof): Likewise.
66097         (sc_prohibit_magic_number_exit): Likewise.
66098         (sc_error_exit_success): Likewise.
66099         (sc_file_system): Likewise.
66100         (sc_prohibit_have_config_h): Likewise.
66101         (sc_require_config_h): Likewise.
66102         (sc_prohibit_HAVE_MBRTOWC): Likewise.
66103         (sc_obsolete_symbols): Likewise.
66104         (sc_changelog): Likewise.
66105         (sc_program_name): Likewise.
66106         (sc_the_the): Likewise.
66107         (sc_trailing_blank): Likewise.
66108         (sc_two_space_separator_in_usage): Likewise.
66109         (sc_useless_cpp_parens): Likewise.
66110         (sc_GPL_version): Likewise.
66111         (sc_GFDL_version): Likewise.
66112         (sc_texinfo_acronym): Likewise.
66113         (sc_prohibit_cvs_keyword): Likewise.
66114         (sc_prohibit_stat_st_blocks): Likewise.
66115         (sc_prohibit_S_IS_definition): Likewise.
66116         (sc_redundant_const): Likewise.
66117         (sc_makefile_TAB_only_indentation): Likewise.
66118         (sc_m4_quote_check): Likewise.
66119         (sc_makefile_path_separator_check): Likewise.
66120         (sc_copyright_check): Likewise.
66121         (sc_Wundef_boolean): Likewise.
66122         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
66124         maint.mk: match 0 or more whitespace-before-function-call '('
66125         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
66126         that have zero or two-and-more spaces between the function name
66127         and the open parenthesis.
66128         (sc_error_message_warn_fatal): Likewise.
66129         (sc_error_message_uppercase): Likewise.
66130         (sc_error_message_period): Likewise.
66132 2010-03-31  Eric Blake  <eblake@redhat.com>
66134         maint.mk: check for [ as well as test
66135         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
66136         Based on a libvirt report by Matthias Bolte.
66138         gnumakefile: don't squelch _version output
66139         * top/GNUmakefile (_version): Create one-shot dependency rather
66140         than using $(shell) when version must be regenerated.
66141         (_autoreconf): Run verbosely, by default.
66143         sys_time: avoid compiler warnings
66144         * lib/sys_time.in.h (includes): Ensure gcc pragma is
66145         unconditional, fixing regression from 2010-03-29.
66146         Reported by Simon Josefsson.
66148 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
66150         maint.mk: s/_header_without_use/_sc_header_without_use/
66151         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
66152         (sc_prohibit_assert_without_use): Use the new name.
66153         (sc_prohibit_close_stream_without_use): Likewise.
66154         (sc_prohibit_getopt_without_use): Likewise.
66155         (sc_prohibit_quotearg_without_use): Likewise.
66156         (sc_prohibit_quote_without_use): Likewise.
66157         (sc_prohibit_long_options_without_use): Likewise.
66158         (sc_prohibit_inttostr_without_use): Likewise.
66159         (sc_prohibit_ignore_value_without_use): Likewise.
66160         (sc_prohibit_error_without_use): Likewise.
66161         (sc_prohibit_xalloc_without_use): Likewise.
66162         (sc_prohibit_hash_without_use): Likewise.
66163         (sc_prohibit_hash_pjw_without_use): Likewise.
66164         (sc_prohibit_safe_read_without_use): Likewise.
66165         (sc_prohibit_argmatch_without_use): Likewise.
66166         (sc_prohibit_canonicalize_without_use): Likewise.
66167         (sc_prohibit_root_dev_ino_without_use): Likewise.
66168         (sc_prohibit_openat_without_use): Likewise.
66169         (sc_prohibit_c_ctype_without_use): Likewise.
66170         (sc_prohibit_signal_without_use): Likewise.
66171         (sc_prohibit_intprops_without_use): Likewise.
66173 2010-03-30  Eric Blake  <eblake@redhat.com>
66175         maint: improve module indicators
66176         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
66177         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
66178         columns, and avoid extra macro expansion.
66180         fdopendir: work around FreeBSD bug
66181         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
66182         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
66183         * modules/dirent (Makefile.am): Substitute it.
66184         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
66185         declaration.
66186         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
66187         fix.
66188         Reported by Christian Weisgerber <naddy@mips.inka.de>.
66190 2010-03-29  Bruno Haible  <bruno@clisp.org>
66192         Emit #pragma system_header after the inclusion guard, not before.
66193         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
66194         guard that spans the entire file, not before. This enables an
66195         optimization in GCC's preprocessor.
66196         * lib/ctype.in.h: Likewise.
66197         * lib/dirent.in.h: Likewise.
66198         * lib/errno.in.h: Likewise.
66199         * lib/float.in.h: Likewise.
66200         * lib/getopt.in.h: Likewise.
66201         * lib/iconv.in.h: Likewise.
66202         * lib/langinfo.in.h: Likewise.
66203         * lib/locale.in.h: Likewise.
66204         * lib/math.in.h: Likewise.
66205         * lib/netdb.in.h: Likewise.
66206         * lib/netinet_in.in.h: Likewise.
66207         * lib/pty.in.h: Likewise.
66208         * lib/sched.in.h: Likewise.
66209         * lib/se-selinux.in.h: Likewise.
66210         * lib/search.in.h: Likewise.
66211         * lib/spawn.in.h: Likewise.
66212         * lib/stdarg.in.h: Likewise.
66213         * lib/stdint.in.h: Likewise.
66214         * lib/string.in.h: Likewise.
66215         * lib/strings.in.h: Likewise.
66216         * lib/sys_file.in.h: Likewise.
66217         * lib/sys_ioctl.in.h: Likewise.
66218         * lib/sys_time.in.h: Likewise.
66219         * lib/sys_times.in.h: Likewise.
66220         * lib/sys_utsname.in.h: Likewise.
66221         * lib/sys_wait.in.h: Likewise.
66222         * lib/sysexits.in.h: Likewise.
66223         * lib/wctype.in.h: Likewise.
66225 2010-03-28  James Youngman  <jay@gnu.org>
66227         save-cwd: don't leak a file descriptor when the caller execs.
66228         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
66229         saved file descriptor.
66230         * modules/save-cwd (Depends-on): Depend on cloexec.
66232 2010-03-29  Bruno Haible  <bruno@clisp.org>
66234         Remove vestiges of fts-lgpl module.
66235         * lib/fts_.h: Assume GNULIB_FTS is 1.
66236         * lib/fts.c: Likewise.
66237         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
66239 2010-03-28  Bruno Haible  <bruno@clisp.org>
66241         Fix definition of tests witness macro.
66242         * gnulib-tool (func_import): Fix definition of witness macro.
66244 2010-03-28  Bruno Haible  <bruno@clisp.org>
66246         Fix ioctl's protoype on glibc systems.
66247         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
66248         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
66249         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
66250         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
66251         signature. If not, arrange to replace the ioctl function.
66252         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
66253         REPLACE_IOCTL.
66254         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
66255         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
66256         Reported by Ludovic Courtès <ludo@gnu.org>.
66258 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
66260         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
66261         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
66262         made it so grep -r --include=GLOB* ... did not work.
66264 2010-03-26  Jim Meyering  <meyering@redhat.com>
66265             Eric Blake  <eblake@redhat.com>
66267         maint.mk: prohibit use of test's -o and -a operators
66268         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
66270 2010-03-28  Bruno Haible  <bruno@clisp.org>
66272         Remove unused GNULIB_XYZ macro definitions.
66273         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
66274         invocation.
66276 2010-03-28  Bruno Haible  <bruno@clisp.org>
66278         Mark privileged tests modules.
66279         * modules/idpriv-drop-tests (Status): New section.
66280         * modules/idpriv-droptemp-tests (Status): New section.
66282 2010-03-28  Bruno Haible  <bruno@clisp.org>
66284         Split C++ tests into separate tests modules.
66285         * modules/dirent-c++-tests: New file, extracted from
66286         modules/dirent-tests.
66287         * modules/dirent-tests: Depend on it.
66288         * modules/fcntl-h-c++-tests: New file, extracted from
66289         modules/fcntl-h-tests.
66290         * modules/fcntl-h-tests: Depend on it.
66291         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
66292         * modules/glob-tests: Depend on it.
66293         * modules/iconv-h-c++-tests: New file, extracted from
66294         modules/iconv-h-tests.
66295         * modules/iconv-h-tests: Depend on it.
66296         * modules/langinfo-c++-tests: New file, extracted from
66297         modules/langinfo-tests.
66298         * modules/langinfo-tests: Depend on it.
66299         * modules/locale-c++-tests: New file, extracted from
66300         modules/locale-tests.
66301         * modules/locale-tests: Depend on it.
66302         * modules/math-c++-tests: New file, extracted from modules/math-tests.
66303         * modules/math-tests: Depend on it.
66304         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
66305         * modules/pty-tests: Depend on it.
66306         * modules/search-c++-tests: New file, extracted from
66307         modules/search-tests.
66308         * modules/search-tests: Depend on it.
66309         * modules/signal-c++-tests: New file, extracted from
66310         modules/signal-tests.
66311         * modules/signal-tests: Depend on it.
66312         * modules/spawn-c++-tests: New file, extracted from
66313         modules/spawn-tests.
66314         * modules/spawn-tests: Depend on it.
66315         * modules/stdio-c++-tests: New file, extracted from
66316         modules/stdio-tests.
66317         * modules/stdio-tests: Depend on it.
66318         * modules/stdlib-c++-tests: New file, extracted from
66319         modules/stdlib-tests.
66320         * modules/stdlib-tests: Depend on it.
66321         * modules/string-c++-tests: New file, extracted from
66322         modules/string-tests.
66323         * modules/string-tests: Depend on it.
66324         * modules/sys_ioctl-c++-tests: New file, extracted from
66325         modules/sys_ioctl-tests.
66326         * modules/sys_ioctl-tests: Depend on it.
66327         * modules/sys_select-c++-tests: New file, extracted from
66328         modules/sys_select-tests.
66329         * modules/sys_select-tests: Depend on it.
66330         * modules/sys_socket-c++-tests: New file, extracted from
66331         modules/sys_socket-tests.
66332         * modules/sys_socket-tests: Depend on it.
66333         * modules/sys_stat-c++-tests: New file, extracted from
66334         modules/sys_stat-tests.
66335         * modules/sys_stat-tests: Depend on it.
66336         * modules/sys_time-c++-tests: New file, extracted from
66337         modules/sys_time-tests.
66338         * modules/sys_time-tests: Depend on it.
66339         * modules/time-c++-tests: New file, extracted from modules/time-tests.
66340         * modules/time-tests: Depend on it.
66341         * modules/unistd-c++-tests: New file, extracted from
66342         modules/unistd-tests.
66343         * modules/unistd-tests: Depend on it.
66344         * modules/wchar-c++-tests: New file, extracted from
66345         modules/wchar-tests.
66346         * modules/wchar-tests: Depend on it.
66347         * modules/wctype-c++-tests: New file, extracted from
66348         modules/wctype-tests.
66349         * modules/wctype-tests: Depend on it.
66350         Reported by Simon Josefsson.
66352 2010-03-28  Bruno Haible  <bruno@clisp.org>
66354         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
66355         * gnulib-tool (func_exists_module): New function, extracted from
66356         func_verify_module.
66357         (func_verify_module): Use it.
66358         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
66359         'foo' only if 'foo' exists.
66360         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
66361         module.
66363 2010-03-28  Bruno Haible  <bruno@clisp.org>
66365         gnulib-tool: Add support for special categories of tests.
66366         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
66367         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
66368         (func_usage): Document them.
66369         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
66370         inc_unportable_tests, inc_all_tests): New variables.
66371         (func_acceptable): Consider these variables.
66372         (func_modules_transitive_closure): Make it work when the 'Status' field
66373         consists of multiple words.
66374         (func_import): Store and restore the values of inc_cxx_tests,
66375         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
66376         inc_all_tests in gnulib-comp.m4.
66377         (func_create_testdir): Set inc_all_tests to true.
66378         * doc/gnulib.texi (Extra tests modules): New section.
66379         Suggested by Jim Meyering.
66381 2010-03-28  Bruno Haible  <bruno@clisp.org>
66383         ansi-c++-opt: Allow turning off the C++ build by default.
66384         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
66385         gl_CXX_CHOICE_DEFAULT_NO is defined.
66386         Requested by Eric Blake.
66388 2010-03-28  Bruno Haible  <bruno@clisp.org>
66390         unistd: Avoid #define replacements in C++ mode.
66391         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
66392         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
66393         setsockopt, shutdown, select): In C++, attach a warning to the function
66394         if possible, rather than #defining the symbol to a dysfunctional alias.
66395         Reported by John W. Eaton <jwe@gnu.org>.
66397 2010-03-28  Bruno Haible  <bruno@clisp.org>
66399         Fix link errors on mingw.
66400         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
66401         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
66402         $(LIBSOCKET).
66403         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
66404         $(LIBSOCKET).
66406 2010-03-28  Bruno Haible  <bruno@clisp.org>
66407             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66409         lib-ignore: Determine different options for different compilers.
66410         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
66411         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
66412         Add comments.
66413         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
66414         * NEWS: Mention the change.
66416 2010-03-27  Bruno Haible  <bruno@clisp.org>
66418         Remove unused GNULIB_XYZ macro definitions.
66419         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
66420         * modules/fseek (configure.ac): Likewise.
66421         * modules/ioctl (configure.ac): Likewise.
66422         * modules/open (configure.ac): Likewise.
66423         * modules/stdlib-safer (configure.ac): Likewise.
66425 2010-03-27  Bruno Haible  <bruno@clisp.org>
66427         Add a remark about certain modules.
66428         * modules/malloc (Comment): New section.
66429         * modules/realloc (Comment): Likewise.
66430         * modules/sigpipe (Comment): Likewise.
66432 2010-03-27  Bruno Haible  <bruno@clisp.org>
66434         Resolve conflict between the two kinds of module indicators.
66435         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
66436         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
66437         * modules/canonicalize (configure.ac): Invoke
66438         gl_MODULE_INDICATOR_FOR_TESTS.
66439         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
66440         GNULIB_XYZ.
66441         * tests/test-dirent-c++.cc: Likewise.
66442         * tests/test-dirent-safer.c: Likewise.
66443         * tests/test-dup2.c: Likewise.
66444         * tests/test-fchdir.c: Likewise.
66445         * tests/test-fcntl-h-c++.cc: Likewise.
66446         * tests/test-getopt.c: Likewise.
66447         * tests/test-getopt.h: Likewise.
66448         * tests/test-langinfo-c++.cc: Likewise.
66449         * tests/test-locale-c++.cc: Likewise.
66450         * tests/test-math-c++.cc: Likewise.
66451         * tests/test-pty-c++.cc: Likewise.
66452         * tests/test-search-c++.cc: Likewise.
66453         * tests/test-signal-c++.cc: Likewise.
66454         * tests/test-spawn-c++.cc: Likewise.
66455         * tests/test-stdio-c++.cc: Likewise.
66456         * tests/test-stdlib-c++.cc: Likewise.
66457         * tests/test-string-c++.cc: Likewise.
66458         * tests/test-sys_ioctl-c++.cc: Likewise.
66459         * tests/test-sys_select-c++.cc: Likewise.
66460         * tests/test-sys_socket-c++.cc: Likewise.
66461         * tests/test-sys_stat-c++.cc: Likewise.
66462         * tests/test-sys_time-c++.cc: Likewise.
66463         * tests/test-time-c++.cc: Likewise.
66464         * tests/test-unistd-c++.cc: Likewise.
66465         * tests/test-wchar-c++.cc: Likewise.
66466         * tests/uninorm/test-u8-nfc.c: Likewise.
66467         * tests/uninorm/test-u8-nfd.c: Likewise.
66468         * tests/uninorm/test-u8-nfkc.c: Likewise.
66469         * tests/uninorm/test-u8-nfkd.c: Likewise.
66470         * tests/uninorm/test-u16-nfc.c: Likewise.
66471         * tests/uninorm/test-u16-nfd.c: Likewise.
66472         * tests/uninorm/test-u16-nfkc.c: Likewise.
66473         * tests/uninorm/test-u16-nfkd.c: Likewise.
66474         * tests/uninorm/test-u32-nfc.c: Likewise.
66475         * tests/uninorm/test-u32-nfc-big.c: Likewise.
66476         * tests/uninorm/test-u32-nfd.c: Likewise.
66477         * tests/uninorm/test-u32-nfd-big.c: Likewise.
66478         * tests/uninorm/test-u32-nfkc.c: Likewise.
66479         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
66480         * tests/uninorm/test-u32-nfkd.c: Likewise.
66481         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
66482         * tests/uninorm/test-u32-normalize-big.c: Likewise.
66484 2010-03-27  Bruno Haible  <bruno@clisp.org>
66486         Distinguish two kinds of module indicators.
66487         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
66488         gl_MODULE_INDICATOR.
66489         (gl_MODULE_INDICATOR): New macro.
66490         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
66491         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
66492         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
66493         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
66494         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
66495         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
66496         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
66497         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
66498         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
66499         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
66500         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
66501         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
66502         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
66503         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
66504         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
66505         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
66506         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
66507         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
66508         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
66509         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
66510         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
66511         * modules/cloexec (configure.ac): Likewise.
66512         * modules/getopt-gnu (configure.ac): Likewise.
66513         * modules/uninorm/u8-normalize (configure.ac): Likewise.
66514         * modules/uninorm/u16-normalize (configure.ac): Likewise.
66515         * modules/uninorm/u32-normalize (configure.ac): Likewise.
66516         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
66518 2010-03-27  Bruno Haible  <bruno@clisp.org>
66520         New module description field 'Comment'.
66521         * gnulib-tool: New option --extract-comment.
66522         (func_usage): Document it.
66523         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
66524         (func_get_comment): New function.
66525         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
66527 2010-03-27  Bruno Haible  <bruno@clisp.org>
66529         Addendum to 2010-02-07 commit.
66530         * gnulib-tool (func_usage): Document --extract-applicability option.
66532 2010-03-27  Bruno Haible  <bruno@clisp.org>
66534         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
66535         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
66536         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
66537         rather than link errors.
66539 2010-03-27  Bruno Haible  <bruno@clisp.org>
66541         Avoid side effects from tests-related modules on the compilation of lib.
66542         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
66543         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
66544         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
66545         parameter. Emit into AM_CPPFLAGS a definition of the designated C
66546         macro.
66547         (func_import): Define a witness macro. Assign it a value that depends
66548         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
66549         tests-related modules.
66550         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
66551         Reported by Jim Meyering.
66553 2010-03-27  Bruno Haible  <bruno@clisp.org>
66555         Factorize common .m4 code.
66556         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
66557         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
66558         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
66559         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
66560         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
66561         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
66562         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
66563         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
66564         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
66565         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
66566         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
66567         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
66568         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
66569         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
66570         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
66571         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
66572         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
66573         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
66574         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
66575         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
66576         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
66577         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
66578         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
66579         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
66580         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
66581         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
66582         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
66583         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
66584         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
66585         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
66586         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
66587         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
66589 2010-03-27  Bruno Haible  <bruno@clisp.org>
66591         Fix a compilation error on Cygwin with g++ >= 4.3.
66592         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
66593         if it is undefined or if we alias it to chmod.
66594         (lstat): Don't warn about the use of this function if it is undefined
66595         or if we alias it to stat.
66596         Reported by Simon Josefsson.
66598 2010-03-27  Bruno Haible  <bruno@clisp.org>
66600         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
66601         * modules/getlogin (configure.ac): Update.
66603         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
66604         * modules/getlogin_r (configure.ac): Update.
66606         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
66607         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
66608         * modules/inet_ntop (configure.ac): Update.
66610         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
66611         * modules/inet_pton (configure.ac): Update.
66613         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
66614         * modules/mbslen (configure.ac): Update.
66616         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
66617         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
66618         * modules/forkpty (configure.ac): Update.
66619         * modules/openpty (configure.ac): Update.
66621 2010-03-26  Simon Josefsson  <simon@josefsson.org>
66623         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
66624         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
66626 2010-03-25  Eric Blake  <eblake@redhat.com>
66628         maint: use pragma consistently across replacement headers
66629         * lib/ctype.in.h (system_header): Hoist for consistent placement.
66630         * lib/dirent.in.h (system_header): Likewise.
66631         * lib/errno.in.h (system_header): Likewise.
66632         * lib/float.in.h (system_header): Likewise.
66633         * lib/getopt.in.h (system_header): Likewise.
66634         * lib/iconv.in.h (system_header): Likewise.
66635         * lib/inttypes.in.h (system_header): Likewise.
66636         * lib/langinfo.in.h (system_header): Likewise.
66637         * lib/locale.in.h (system_header): Likewise.
66638         * lib/math.in.h (system_header): Likewise.
66639         * lib/netdb.in.h (system_header): Likewise.
66640         * lib/netinet_in.in.h (system_header): Likewise.
66641         * lib/pty.in.h (system_header): Likewise.
66642         * lib/sched.in.h (system_header): Likewise.
66643         * lib/se-selinux.in.h (system_header): Likewise.
66644         * lib/search.in.h (system_header): Likewise.
66645         * lib/spawn.in.h (system_header): Likewise.
66646         * lib/stdarg.in.h (system_header): Likewise.
66647         * lib/stdint.in.h (system_header): Likewise.
66648         * lib/string.in.h (system_header): Likewise.
66649         * lib/strings.in.h (system_header): Likewise.
66650         * lib/sys_file.in.h (system_header): Likewise.
66651         * lib/sys_ioctl.in.h (system_header): Likewise.
66652         * lib/sys_socket.in.h (system_header): Likewise.
66653         * lib/sys_times.in.h (system_header): Likewise.
66654         * lib/sys_utsname.in.h (system_header): Likewise.
66655         * lib/sys_wait.in.h (system_header): Likewise.
66656         * lib/sysexits.in.h (system_header): Likewise.
66657         * lib/unistd.in.h (system_header): Likewise.
66658         * lib/wctype.in.h (system_header): Likewise.
66660         arpa/inet: fix mingw compilation warning
66661         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
66662         Reported by Matthew Bolte.
66664 2010-03-25  Bruno Haible  <bruno@clisp.org>
66666         Avoid collision between gnulib wrapper and libintl wrapper.
66667         * lib/printf.c (printf): Don't define if a printf wrapper is already
66668         defined in intl/printf.c.
66669         Reported by Michel Boaventura <michel@michelboaventura.com>.
66671 2010-03-25  Bruno Haible  <bruno@clisp.org>
66673         Use ANSI C.
66674         * lib/readutmp.h (getutent): Provide ANSI C prototype.
66676 2010-03-25  Bruno Haible  <bruno@clisp.org>
66678         Minor formatting changes.
66679         * lib/acosl.c: Insert space before function argument list.
66680         * lib/argz.c: Likewise.
66681         * lib/asinl.c: Likewise.
66682         * lib/expl.c: Likewise.
66683         * lib/gen-uni-tables.c: Likewise.
66684         * lib/gettext.h: Likewise.
66685         * lib/glthread/lock.h: Likewise.
66686         * lib/tanl.c: Likewise.
66687         * lib/uniname/uniname.c: Likewise.
66688         * tests/test-idpriv-drop.c: Likewise.
66689         * tests/test-idpriv-droptemp.c: Likewise.
66690         * tests/test-lock.c: Likewise.
66691         * tests/test-tls.c: Likewise.
66692         * lib/argp-help.c: Insert space before function-like macro argument
66693         list.
66694         * lib/memcmp.c: Likewise.
66695         * tests/test-base64.c: Likewise.
66696         * lib/localename.c: Insert space before sizeof's argument list.
66697         * lib/safe-alloc.h: Likewise.
66698         * lib/file-set.h: Insert space before macro argument list.
66699         * tests/test-argp.c: Likewise.
66700         * lib/argp-namefrob.h: Insert space before function parameter list.
66701         * lib/getaddrinfo.c: Likewise.
66702         * lib/netdb.in.h: Likewise.
66703         * lib/parse-duration.h: Likewise.
66704         * lib/parse-duration.c: Likewise.
66705         * lib/poll.c: Likewise.
66706         * lib/select.c: Likewise.
66707         * lib/trim.h: Likewise.
66708         * tests/test-usleep.c: Likewise.
66709         * lib/ldexpl.c: Insert space before function parameter list and before
66710         function argument list.
66711         * lib/logl.c: Likewise.
66712         * lib/sqrtl.c: Likewise.
66713         * lib/trim.c: Likewise.
66714         * lib/cosl.c: Use GNU style indentation. Insert space before function
66715         argument list.
66716         * lib/sinl.c: Likewise.
66717         * lib/tsearch.c: Insert space after 'for'.
66718         Reported by Jim Meyering.
66720 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
66722         * maint.mk (sc_Wundef_boolean): Check for the presence of the
66723         config header before grepping, as it's not present before
66724         autoreconf/configure are run.  Reported by Simon Josefsson.
66726 2010-03-23  Bruno Haible  <bruno@clisp.org>
66728         pt_chown: Make it work with automake < 1.11.
66729         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
66730         Reported by Simon Josefsson.
66732 2010-03-23  Bruno Haible  <bruno@clisp.org>
66734         pt_chown: Don't depend on GPLed modules.
66735         * lib/pt_chown.c: Don't include idpriv.h.
66736         (main): Don't drop privileges.
66737         * modules/pt_chown (Depends-on): Remove idpriv-drop.
66738         Reported by Simon Josefsson.
66740 2010-03-24  Simon Josefsson  <simon@josefsson.org>
66742         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
66743         suggestions from karl@freefriends.org (Karl Berry).
66745 2010-03-22  Eric Blake  <eblake@redhat.com>
66747         gethostname: further tweaks
66748         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
66749         are overriding gethostname.
66750         Suggested by Bruno Haible.
66752 2010-03-21  Bruno Haible  <bruno@clisp.org>
66754         Fix comments.
66755         * lib/forkpty.c (rpl_forkpty): Fix comment.
66756         * lib/openpty.c (rpl_openpty): Likewise.
66757         Reported by Eric Blake.
66759 2010-03-22  Eric Blake  <eblake@redhat.com>
66761         gethostname: fix build on mingw
66762         * lib/unistd.in.h (includes): Work around fact that mingw
66763         <winsock2.h> re-includes <unistd.h>, by avoiding any
66764         redeclarations if we are being included by <winsock2.h>.
66765         Reported by Matthias Bolte.
66767 2010-03-21  Bruno Haible  <bruno@clisp.org>
66769         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
66770         * lib/forkpty.c (forkpty): New replacement function, from glibc with
66771         modifications.
66772         * lib/pty.in.h (forkpty): Update declaration. Add comments.
66773         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
66774         provide the replacement.
66775         * modules/forkpty (Depends-on): Add openpty, login_tty.
66776         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
66777         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
66778         * doc/glibc-functions/forkpty.texi: More supported platforms.
66779         * config/srclist.txt: Add forkpty.c (commented).
66781 2010-03-21  Bruno Haible  <bruno@clisp.org>
66783         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
66784         (Makefile.am): Verify that PTY_LIB is defined.
66786         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
66788 2010-03-21  Bruno Haible  <bruno@clisp.org>
66790         Tests for module 'login_tty'.
66791         * modules/login_tty-tests: New file.
66792         * tests/test-login_tty.c: New file.
66794         New module 'login_tty'.
66795         * lib/login_tty.c: New file.
66796         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
66797         * modules/login_tty: New file.
66798         * doc/glibc-functions/login_tty.texi: Mention the new module.
66800 2010-03-21  Bruno Haible  <bruno@clisp.org>
66802         login_tty: Documentation.
66803         * doc/glibc-functions/login_tty.texi: New file.
66804         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
66806 2010-03-21  Bruno Haible  <bruno@clisp.org>
66808         pty: Consistent macro naming.
66809         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
66810         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
66811         * modules/pty (configure.ac): Update.
66813 2010-03-21  Bruno Haible  <bruno@clisp.org>
66815         Tests for openpty: Make stricter.
66816         * tests/test-openpty.c (main): Add test of canonical processing and
66817         erase.
66818         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
66820         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
66821         * lib/openpty.c (openpty): New replacement function.
66822         * lib/pty.in.h: Include <termios.h>.
66823         (openpty): Update declaration. Add comments.
66824         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
66825         is not declared, arrange to provide the replacement. Check for _getpty
66826         and posix_openpt.
66827         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
66828         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
66829         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
66830         * modules/pty-tests (test_pty_c___LDADD): New variable.
66831         * doc/glibc-functions/openpty.texi: More supported platforms.
66833 2010-03-21  Bruno Haible  <bruno@clisp.org>
66835         setenv: Tweaks.
66836         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
66837         the test program.
66838         * doc/posix-functions/setenv.texi: Update platforms list.
66840 2010-03-21  Bruno Haible  <bruno@clisp.org>
66842         New module 'unlockpt'.
66843         * lib/unlockpt.c: New file, from glibc with modifications.
66844         * m4/unlockpt.m4: New file.
66845         * modules/unlockpt: New file.
66846         * lib/stdlib.in.h (unlockpt): New declaration.
66847         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
66848         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
66849         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
66850         HAVE_UNLOCKPT.
66851         * doc/posix-functions/unlockpt.texi: Mention the new module.
66852         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
66853         * config/srclist.txt: Add unlockpt.c (commented).
66855 2010-03-21  Jim Meyering  <meyering@redhat.com>
66857         maint.mk: prohibit inclusion of "intprops.h" without use
66858         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
66860 2010-03-21  Bruno Haible  <bruno@clisp.org>
66862         New module 'grantpt'.
66863         * lib/grantpt.c: New file, from glibc with modifications.
66864         * m4/grantpt.m4: New file.
66865         * modules/grantpt: New file.
66866         * lib/stdlib.in.h (grantpt): New declaration.
66867         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
66868         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
66869         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
66870         HAVE_GRANTPT.
66871         * doc/posix-functions/grantpt.texi: Mention the new module.
66872         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
66873         * config/srclist.txt: Add grantpt.c (commented).
66875 2010-03-21  Bruno Haible  <bruno@clisp.org>
66877         New module 'pt_chown'.
66878         * lib/pt_chown.c: New file, from glibc with modifications.
66879         * lib/pty-private.h: New file, from glibc with modifications.
66880         * modules/pt_chown: New file.
66881         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
66883 2010-03-21  Bruno Haible  <bruno@clisp.org>
66885         Tests for module 'ptsname'.
66886         * modules/ptsname-tests: New file.
66887         * tests/test-ptsname.c: New file.
66889         New module 'ptsname'.
66890         * lib/ptsname.c: New file, from glibc with modifications.
66891         * m4/ptsname.m4: New file.
66892         * modules/ptsname: New file.
66893         * lib/stdlib.in.h (ptsname): New declaration.
66894         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
66895         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
66896         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
66897         HAVE_PTSNAME.
66898         * doc/posix-functions/ptsname.texi: Mention the new module.
66899         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
66900         * config/srclist.txt: Add ptsname.c (commented).
66902 2010-03-21  Bruno Haible  <bruno@clisp.org>
66904         Tests for module 'ttyname_r'.
66905         * modules/ttyname_r-tests: New file.
66906         * tests/test-ttyname_r.c: New file.
66908         New module 'ttyname_r'.
66909         * lib/ttyname_r.c: New file.
66910         * m4/ttyname_r.m4: New file.
66911         * modules/ttyname_r: New file.
66912         * lib/unistd.in.h (ttyname_r): New declaration.
66913         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
66914         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
66915         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
66916         HAVE_TTYNAME_R.
66917         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
66918         * doc/posix-functions/ttyname_r.texi: Mention the new module.
66920 2010-03-20  Bruno Haible  <bruno@clisp.org>
66922         signal: Undefine macro definitions in C++ mode.
66923         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
66924         sigfillset): Undefine macro definitions from the system header in C++
66925         mode.
66926         Reported by John W. Eaton <jwe@gnu.org>.
66928 2010-03-20  Bruno Haible  <bruno@clisp.org>
66930         Ensure no #include statements inside extern "C" { ... }.
66931         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
66932         contain #include statements.
66933         * lib/time.in.h: Likewise.
66935 2010-03-20  Bruno Haible  <bruno@clisp.org>
66937         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
66938         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
66939         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
66940         Reported by John W. Eaton <jwe@gnu.org>.
66942 2010-03-20  Bruno Haible  <bruno@clisp.org>
66944         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
66945         Reported by Jim Meyering.
66947 2010-03-20  Bruno Haible  <bruno@clisp.org>
66949         pipe: Set errno upon failure.
66950         * lib/pipe.h: Specify that when -1 is returned, errno is set.
66951         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
66952         errno value in error message.
66954 2010-03-20  Bruno Haible  <bruno@clisp.org>
66955             Jim Meyering  <meyering@redhat.com>
66957         lchown: Avoid "unused variable" warning.
66958         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
66960 2010-03-20  Bruno Haible  <bruno@clisp.org>
66962         Work around unlink() bug on MacOS X 10.5.6.
66963         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
66964         attempting to unlink a parent directory.
66965         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
66966         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
66967         activate for the replacement function.
66968         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
66970 2010-03-20  Bruno Haible  <bruno@clisp.org>
66972         Fix link errors on Solaris 8.
66973         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
66974         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
66976 2010-03-19  Jim Meyering  <meyering@redhat.com>
66978         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
66979         The _LIBC implementation of build_range_exp correctly honors the
66980         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
66981         However, the non-_LIBC implementation would ignore that syntax-bit
66982         flag and return REG_ERANGE unconditionally.
66983         This change makes it honor that flag.
66984         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
66985         Make two pointer parameters "const".
66986         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
66987         (parse_bracket_exp): Update caller.
66989         regex.m4: correct the reversed range endpoint ([b-a]) test
66990         * m4/regex.m4: When requiring that [b-a] evoke failure,
66991         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
66992         test pass once again for x86-based systems.
66994 2010-03-19  Bruno Haible  <bruno@clisp.org>
66996         scandir: Fix link error on Solaris 8.
66997         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
66998         macros.
67000 2010-03-19  Bruno Haible  <bruno@clisp.org>
67002         getusershell: Fix documentation.
67003         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
67004         module.
67005         * doc/glibc-functions/setusershell.texi: Likewise.
67007         getusershell: Provide declaration, missing on Solaris 9.
67008         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
67009         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
67010         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
67011         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
67012         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
67013         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
67014         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
67015         HAVE_GETUSERSHELL.
67016         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
67018 2010-03-19  Bruno Haible  <bruno@clisp.org>
67020         wctype: Provide iswblank function.
67021         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
67022         exists and is fine.
67023         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
67024         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
67025         * tests/test-wctype.c (main): Re-enable the iswblank tests.
67026         * doc/posix-functions/iswblank.texi: Update.
67028 2010-03-19  Bruno Haible  <bruno@clisp.org>
67030         Tests of module 'pty' in C++ mode.
67031         * modules/pty-tests: New file.
67032         * tests/test-pty-c++.cc: New file.
67033         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
67035 2010-03-19  Eric Blake  <eblake@redhat.com>
67037         logb: fix documentation
67038         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
67039         1.5 declaration bug.
67041         forkpty, openpty: prefer glibc's const-safe prototype
67042         * lib/forkpty.c (rpl_forkpty): New file.
67043         * lib/openpty.c (rpl_openpty): Likewise.
67044         * modules/forkpty (Files): Distribute it.
67045         * modules/openpty (Files): Likewise.
67046         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
67047         check...
67048         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
67049         replacement for non-const BSD signature.
67050         * modules/pty (Makefile.am): Substitute witnesses.
67051         * lib/pty.in.h (forkpty, openpty): Declare replacements.
67052         * tests/test-forkpty.c: Update signature check.
67053         * tests/test-openpty.c: Likewise.
67054         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
67055         * doc/glibc-functions/openpty.texi (openpty): Likewise.
67057         forkpty, openpty: split functions into new modules
67058         * modules/pty (Makefile.am): Substitute new witnesses.
67059         (Libraries): Move library detection...
67060         * modules/forkpty: ...into new module.
67061         * modules/openpty: Another new module.
67062         * modules/pty-tests: Rename and split...
67063         * modules/forkpty-tests: ...to this...
67064         * modules/openpty-tests: ...and this.
67065         * tests/test-pty.c: Rename and split...
67066         * tests/test-forkpty.c: ...to this...
67067         * tests/test-openpty.c: ...and this.
67068         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
67069         (gl_PTY): Split library searching...
67070         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
67071         (gl_FORKPTY, gl_OPENPTY): New macros.
67072         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
67073         * NEWS: Mention the split.
67074         * MODULES.html.sh (Misc): Document the modules.
67075         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
67076         * doc/glibc-functions/openpty.texi (openpty): Likewise.
67078         pty: improve replacement header
67079         * lib/pty.in.h: New file.
67080         * modules/pty (Files): Ship it.
67081         (Makefile.am): Always build replacement.
67082         * m4/pty.m4: Rename...
67083         * m4/pty_h.m4: ...to this.
67084         (gl_PTY): Modernize setting of witness macros; update check of
67085         forkpty to take proper advantage of cache.
67086         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
67088         getopt: avoid compiler warning
67089         * lib/getopt.c (attribute_hidden): Remove unused macro.
67091 2010-03-18  Bruno Haible  <bruno@clisp.org>
67093         Fix link errors on Solaris 8.
67094         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
67095         * modules/search-tests (test_search_c___LDADD): Likewise.
67096         * modules/signal-tests (test_signal_c___LDADD): Likewise.
67097         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
67098         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
67099         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
67100         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
67101         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
67102         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
67104 2010-03-18  Bruno Haible  <bruno@clisp.org>
67106         Fix bug introduced on 2010-03-14.
67107         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
67108         (gl_SPAWN_H): Require it.
67109         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
67110         Reported by Simon Josefsson.
67112 2010-03-18  Bruno Haible  <bruno@clisp.org>
67114         Fix typo introduced on 2009-12-31.
67115         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
67116         posix_spawn_file_actions_adddup2.
67118 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
67119         and Eric Blake  <eblake@redhat.com>
67121         test-vc-list-files-git: make more robust
67122         * tests/test-vc-list-files-git.sh: Unset problematic environment
67123         variables.  Chain commands together.
67125 2010-03-17  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
67127         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
67128         `AC_CHECK_DECL' invocation.
67130 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
67132         * lib/inttostr.c (inttostr): Make sure the invocation of verify
67133         appears before executable statements. Suggested by Petr Sumbera
67134         <Petr.Sumbera@Sun.COM>.
67136 2010-03-14  Bruno Haible  <bruno@clisp.org>
67138         * tests/test-flock.c (test_exclusive): Comment out a test that causes
67139         portability problems. Instead use a simpler test.
67140         (main): Check that invalid arguments are rejected only on Linux.
67142 2010-03-14  Bruno Haible  <bruno@clisp.org>
67144         Fix bug introduced on 2009-12-31.
67145         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
67146         gl_PREREQ_SYS_H_WINSOCK2 always.
67147         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
67148         SYS_SOCKET_H variable.
67149         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
67150         Update comments.
67151         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
67152         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
67153         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
67154         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
67155         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
67157 2010-03-14  Bruno Haible  <bruno@clisp.org>
67159         Fix values returned by sinl, cosl.
67160         * lib/trigl.h: Add specification comments.
67161         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
67162         that combines the values from the precomputed table with the values of
67163         the Chebyshev polynomials.
67165 2010-03-14  Bruno Haible  <bruno@clisp.org>
67167         Fix compilation error when modules 'posix_spawn[p]' are not used.
67168         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
67169         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
67171 2010-03-14  Bruno Haible  <bruno@clisp.org>
67173         Fix compilation error on mingw when module 'time_r' is not used.
67174         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
67175         is 1.
67176         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
67177         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
67178         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
67179         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
67181 2010-03-14  Bruno Haible  <bruno@clisp.org>
67183         Fix compilation error with Sun C.
67184         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
67185         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
67186         instead of GCC specific ULONG_LONG_MAX.
67187         * lib/xstrtoll.c: Likewise.
67188         * lib/xstrtoull.c: Likewise.
67190 2010-03-13  Bruno Haible  <bruno@clisp.org>
67192         Allow the user to disable C++ code and tests.
67193         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
67194         (gl_PROG_ANSI_CXX): Require it.
67196 2010-03-13  Bruno Haible  <bruno@clisp.org>
67198         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
67199         cases.
67201 2010-03-13  Bruno Haible  <bruno@clisp.org>
67203         Test that gnulib does not break the standard C++ headers.
67204         * tests/test-locale-c++2.cc: New file.
67205         * modules/locale-tests (Files): Add it.
67206         (Makefile.am): Compile it for test-locale-c++.
67207         * tests/test-math-c++2.cc: New file.
67208         * modules/math-tests (Files): Add it.
67209         (Makefile.am): Compile it for test-math-c++.
67210         * tests/test-signal-c++2.cc: New file.
67211         * modules/signal-tests (Files): Add it.
67212         (Makefile.am): Compile it for test-signal-c++.
67213         * tests/test-stdio-c++2.cc: New file.
67214         * modules/stdio-tests (Files): Add it.
67215         (Makefile.am): Compile it for test-stdio-c++.
67216         * tests/test-stdlib-c++2.cc: New file.
67217         * modules/stdlib-tests (Files): Add it.
67218         (Makefile.am): Compile it for test-stdlib-c++.
67219         * tests/test-string-c++2.cc: New file.
67220         * modules/string-tests (Files): Add it.
67221         (Makefile.am): Compile it for test-string-c++.
67222         * tests/test-time-c++2.cc: New file.
67223         * modules/time-tests (Files): Add it.
67224         (Makefile.am): Compile it for test-time-c++.
67225         Reported by John W. Eaton <jwe@gnu.org>.
67227 2010-03-13  Bruno Haible  <bruno@clisp.org>
67229         * gnulib-tool (func_usage): Clarify which options are available for
67230         --create-testdir and --create-megatestdir.
67232 2010-03-13  Bruno Haible  <bruno@clisp.org>
67234         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
67235         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
67236         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
67237         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
67238         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
67239         when appropriate.
67240         Reported by Jim Meyering.
67242 2010-03-12  Simon Josefsson  <simon@josefsson.org>
67244         * gnulib-tool (func_import): Explain origin of code.
67246 2010-03-12  Bruno Haible  <bruno@clisp.org>
67248         Fix problem with automake's definition of CXXLINK.
67249         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
67250         Reported by Simon Josefsson and Ludovic Courtès.
67252 2010-03-12  Bruno Haible  <bruno@clisp.org>
67254         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
67255         stable releases.
67257 2010-03-11  Bruno Haible  <bruno@clisp.org>
67259         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
67260         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
67261         whether the system provides one variant or multiple variants of the
67262         function.
67263         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
67264         C++ compilers.
67265         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
67266         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
67267         Reported by Jim Meyering.
67269 2010-03-09  Simon Josefsson  <simon@josefsson.org>
67271         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
67273 2010-03-08  Bruno Haible  <bruno@clisp.org>
67275         gnulib-tool: Add support for --libtool in --create-testdir.
67276         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
67277         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
67279 2010-03-08  Eric Blake  <eblake@redhat.com>
67281         gnulib-tool.texi: mention possibility of git submodule
67282         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
67283         submodules.
67284         * doc/.gitignore: Ignore another generated file.
67286 2010-03-08  Karl Berry  <karl@gnu.org>
67288         * doc/gnulib-tool.texi (VCS Issues): Mention third option
67289         of committing gnulib files while skipping others.
67291 2010-03-07  Bruno Haible  <bruno@clisp.org>
67293         Tests of module 'wctype' in C++ mode.
67294         * tests/test-wctype-c++.cc: New file.
67295         * modules/wctype-tests (Files): Add it and tests/signature.h.
67296         (Depends-on): Add ansi-c++-opt.
67297         (Makefile.am): Arrange to compile and run test-wctype-c++.
67299         Tests of module 'wchar' in C++ mode.
67300         * tests/test-wchar-c++.cc: New file.
67301         * modules/wchar-tests (Files): Add it and tests/signature.h.
67302         (Depends-on): Add ansi-c++-opt.
67303         (Makefile.am): Arrange to compile and run test-wchar-c++.
67304         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
67305         gl_MODULE_INDICATOR.
67307         Tests of module 'unistd' in C++ mode.
67308         * tests/test-unistd-c++.cc: New file.
67309         * modules/unistd-tests (Files): Add it and tests/signature.h.
67310         (Depends-on): Add ansi-c++-opt.
67311         (Makefile.am): Arrange to compile and run test-unistd-c++.
67312         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
67313         gl_MODULE_INDICATOR.
67315         Tests of module 'time' in C++ mode.
67316         * tests/test-time-c++.cc: New file.
67317         * modules/time-tests (Files): Add it and tests/signature.h.
67318         (Depends-on): Add ansi-c++-opt.
67319         (Makefile.am): Arrange to compile and run test-time-c++.
67320         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
67322         Tests of module 'sys_time' in C++ mode.
67323         * tests/test-sys_time-c++.cc: New file.
67324         * modules/sys_time-tests (Files): Add it and tests/signature.h.
67325         (Depends-on): Add ansi-c++-opt.
67326         (Makefile.am): Arrange to compile and run test-sys_time-c++.
67327         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
67328         gl_MODULE_INDICATOR.
67330         Tests of module 'sys_stat' in C++ mode.
67331         * tests/test-sys_stat-c++.cc: New file.
67332         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
67333         (Depends-on): Add ansi-c++-opt.
67334         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
67335         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
67336         gl_MODULE_INDICATOR.
67338         Tests of module 'sys_socket' in C++ mode.
67339         * tests/test-sys_socket-c++.cc: New file.
67340         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
67341         (Depends-on): Add ansi-c++-opt.
67342         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
67343         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
67344         gl_MODULE_INDICATOR.
67346         Tests of module 'sys_select' in C++ mode.
67347         * tests/test-sys_select-c++.cc: New file.
67348         * modules/sys_select-tests (Files): Add it and tests/signature.h.
67349         (Depends-on): Add ansi-c++-opt.
67350         (Makefile.am): Arrange to compile and run test-sys_select-c++.
67351         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
67352         gl_MODULE_INDICATOR.
67354         Tests of module 'sys_ioctl' in C++ mode.
67355         * tests/test-sys_ioctl-c++.cc: New file.
67356         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
67357         (Depends-on): Add ansi-c++-opt.
67358         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
67359         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
67360         gl_MODULE_INDICATOR.
67362         Tests of module 'string' in C++ mode.
67363         * tests/test-string-c++.cc: New file.
67364         * modules/string-tests (Files): Add it and tests/signature.h.
67365         (Depends-on): Add ansi-c++-opt.
67366         (Makefile.am): Arrange to compile and run test-string-c++.
67367         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
67368         gl_MODULE_INDICATOR.
67370         Tests of module 'stdlib' in C++ mode.
67371         * tests/test-stdlib-c++.cc: New file.
67372         * modules/stdlib-tests (Files): Add it and tests/signature.h.
67373         (Depends-on): Add ansi-c++-opt.
67374         (Makefile.am): Arrange to compile and run test-stdlib-c++.
67375         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
67376         gl_MODULE_INDICATOR.
67378         Tests of module 'stdio' in C++ mode.
67379         * tests/test-stdio-c++.cc: New file.
67380         * modules/stdio-tests (Files): Add it and tests/signature.h.
67381         (Depends-on): Add ansi-c++-opt.
67382         (Makefile.am): Arrange to compile and run test-stdio-c++.
67383         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
67384         gl_MODULE_INDICATOR.
67386         Tests of module 'spawn' in C++ mode.
67387         * tests/test-spawn-c++.cc: New file.
67388         * modules/spawn-tests (Files): Add it and tests/signature.h.
67389         (Depends-on): Add ansi-c++-opt.
67390         (Makefile.am): Arrange to compile and run test-spawn-c++.
67391         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
67392         gl_MODULE_INDICATOR.
67394         Tests of module 'signal' in C++ mode.
67395         * tests/test-signal-c++.cc: New file.
67396         * modules/signal-tests (Files): Add it and tests/signature.h.
67397         (Depends-on): Add ansi-c++-opt.
67398         (Makefile.am): Arrange to compile and run test-signal-c++.
67399         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
67400         gl_MODULE_INDICATOR.
67402         Tests of module 'search' in C++ mode.
67403         * tests/test-search-c++.cc: New file.
67404         * modules/search-tests (Files): Add it and tests/signature.h.
67405         (Depends-on): Add ansi-c++-opt.
67406         (Makefile.am): Arrange to compile and run test-search-c++.
67407         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
67408         gl_MODULE_INDICATOR.
67410         Tests of module 'math' in C++ mode.
67411         * tests/test-math-c++.cc: New file.
67412         * modules/math-tests (Files): Add it and tests/signature.h.
67413         (Depends-on): Add ansi-c++-opt.
67414         (Makefile.am): Arrange to compile and run test-math-c++.
67415         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
67417         Tests of module 'locale' in C++ mode.
67418         * tests/test-locale-c++.cc: New file.
67419         * modules/locale-tests (Files): Add it and tests/signature.h.
67420         (Depends-on): Add ansi-c++-opt.
67421         (Makefile.am): Arrange to compile and run test-locale-c++.
67422         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
67423         gl_MODULE_INDICATOR.
67425         Tests of module 'langinfo' in C++ mode.
67426         * tests/test-langinfo-c++.cc: New file.
67427         * modules/langinfo-tests (Files): Add it and tests/signature.h.
67428         (Depends-on): Add ansi-c++-opt.
67429         (Makefile.am): Arrange to compile and run test-langinfo-c++.
67430         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
67431         gl_MODULE_INDICATOR.
67433         Tests of module 'iconv-h' in C++ mode.
67434         * tests/test-iconv-h-c++.cc: New file.
67435         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
67436         (Depends-on): Add ansi-c++-opt.
67437         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
67439         Tests of module 'glob' in C++ mode.
67440         * tests/test-glob-c++.cc: New file.
67441         * modules/glob-tests (Files): Add it.
67442         (Depends-on): Add ansi-c++-opt.
67443         (Makefile.am): Arrange to compile and run test-glob-c++.
67445         Tests of module 'fcntl-h' in C++ mode.
67446         * tests/test-fcntl-h-c++.cc: New file.
67447         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
67448         (Depends-on): Add ansi-c++-opt.
67449         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
67450         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
67451         gl_MODULE_INDICATOR.
67453         Tests of module 'dirent' in C++ mode.
67454         * tests/test-dirent-c++.cc: New file.
67455         * modules/dirent-tests (Files): Add it and tests/signature.h.
67456         (Depends-on): Add ansi-c++-opt.
67457         (Makefile.am): Arrange to compile and run test-dirent-c++.
67458         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
67459         gl_MODULE_INDICATOR.
67461         New module 'ansi-c++-opt'.
67462         * modules/ansi-c++-opt: New file.
67463         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
67465         Document C++ namespace mode.
67466         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
67468         wctype: Avoid #define replacements in C++ mode.
67469         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
67470         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
67471         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
67472         In C++, define a namespaced alias symbol.
67473         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
67474         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
67475         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
67476         rule.
67478         wchar: Avoid #define replacements in C++ mode.
67479         * lib/wchar.in.h: Include c++defs.h.
67480         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
67481         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
67482         symbol.
67483         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
67484         * modules/wchar (Depends-on): Add c++defs.
67485         (Makefile.am): Update wchar.h rule.
67487         unistd: Avoid #define replacements in C++ mode.
67488         * lib/unistd.in.h: Include c++defs.h.
67489         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
67490         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
67491         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
67492         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
67493         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
67494         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
67495         symbol.
67496         (environ): Update.
67497         * modules/unistd (Depends-on): Add c++defs.
67498         (Makefile.am): Update unistd.h rule.
67500         time: Avoid #define replacements in C++ mode.
67501         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
67502         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
67503         define a namespaced alias symbol.
67504         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
67505         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
67506         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
67507         * modules/time (Depends-on): Add c++defs, warn-on-use.
67508         (Makefile.am): Update time.h rule.
67509         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
67510         * modules/nanosleep (configure.ac): Likewise.
67511         * modules/strptime (configure.ac): Likewise.
67512         * modules/timegm (configure.ac): Likewise.
67514         sys_time: Avoid #define replacements in C++ mode.
67515         * lib/sys_time.in.h: Include c++defs.h.
67516         (gettimeofday): In C++, define a namespaced alias symbol.
67517         * modules/sys_time (Depends-on): Add c++defs.
67518         (Makefile.am): Update sys/time.h rule.
67520         sys_stat: Avoid #define replacements in C++ mode.
67521         * lib/sys_stat.in.h: Include c++defs.h.
67522         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
67523         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
67524         namespaced alias symbol.
67525         In C++, define a namespaced alias symbol.
67526         * modules/sys_stat (Depends-on): Add c++defs.
67527         (Makefile.am): Update sys/stat.h rule.
67529         sys_socket: Avoid #define replacements in C++ mode.
67530         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
67531         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
67532         definitions also when the system has a <sys/socket.h>.
67533         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
67534         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
67535         In C++, define a namespaced alias symbol.
67536         * modules/sys_socket (Depends-on): Add c++defs.
67537         (Makefile.am): Update sys/socket.h rule.
67539         sys_select: Avoid #define replacements in C++ mode.
67540         * lib/sys_select.in.h: Include c++defs.h. Enable the function
67541         definitions also when the system has a <sys/select.h>.
67542         (select): In C++, define a namespaced alias symbol.
67543         * modules/sys_select (Depends-on): Add c++defs.
67544         (Makefile.am): Update sys/select.h rule.
67546         sys_ioctl: Avoid #define replacements in C++ mode.
67547         * lib/sys_ioctl.in.h: Include c++defs.h.
67548         (ioctl): In C++, define a namespaced alias symbol.
67549         * modules/sys_ioctl (Depends-on): Add c++defs.
67550         (Makefile.am): Update sys/ioctl.h rule.
67552         string: Avoid #define replacements in C++ mode.
67553         * lib/string.in.h: Include c++defs.h.
67554         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
67555         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
67556         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
67557         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
67558         strsignal, strverscmp): In C++, define a namespaced alias symbol.
67559         * modules/string (Depends-on): Add c++defs.
67560         (Makefile.am): Update string.h rule.
67562         stdlib: Avoid #define replacements in C++ mode.
67563         * lib/stdlib.in.h: Include c++defs.h.
67564         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
67565         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
67566         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
67567         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
67568         symbol.
67569         * modules/stdlib (Depends-on): Add c++defs.
67570         (Makefile.am): Update stdlib.h rule.
67572         stdio: Avoid #define replacements in C++ mode.
67573         * lib/stdio.in.h: Include c++defs.h.
67574         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
67575         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
67576         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
67577         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
67578         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
67579         namespaced alias symbol.
67580         * modules/stdio (Depends-on): Add c++defs.
67581         (Makefile.am): Update stdio.h rule.
67583         spawn: Avoid #define replacements in C++ mode.
67584         * lib/spawn.in.h: Include c++defs.h.
67585         (posix_spawn, posix_spawnp, posix_spawnattr_init,
67586         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
67587         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
67588         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
67589         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
67590         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
67591         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
67592         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
67593         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
67594         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
67595         In C++, define a namespaced alias symbol.
67596         * modules/spawn (Depends-on): Add c++defs.
67597         (Makefile.am): Update spawn.h rule.
67599         signal: Avoid #define replacements in C++ mode.
67600         * lib/signal.in.h: Include c++defs.h.
67601         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
67602         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
67603         namespaced alias symbol.
67604         * modules/signal (Depends-on): Add c++defs.
67605         (Makefile.am): Update signal.h rule.
67607         search: Avoid #define replacements in C++ mode.
67608         * lib/search.in.h: Include c++defs.h.
67609         (_gl_search_compar_fn, _gl_search_action_fn): New types.
67610         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
67611         symbol.
67612         * modules/search (Depends-on): Add c++defs.
67613         (Makefile.am): Update search.h rule.
67615         math: Avoid #define replacements in C++ mode.
67616         * lib/math.in.h: Include c++defs.h.
67617         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
67618         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
67619         trunc, truncl): In C++, define a namespaced alias symbol.
67620         * modules/math (Depends-on): Add c++defs.
67621         (Makefile.am): Update math.h rule.
67623         locale: Avoid #define replacements in C++ mode.
67624         * lib/locale.in.h: Include c++defs.h.
67625         (duplocale): In C++, define a namespaced alias symbol.
67626         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
67627         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
67628         * modules/locale (Depends-on): Add c++defs.
67629         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
67631         langinfo: Avoid #define replacements in C++ mode.
67632         * lib/langinfo.in.h: Include c++defs.h.
67633         (nl_langinfo): In C++, define a namespaced alias symbol.
67634         * modules/langinfo (Depends-on): Add c++defs.
67635         (Makefile.am): Update langinfo.h rule.
67637         iconv-h: Avoid #define replacements in C++ mode.
67638         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
67639         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
67640         symbol.
67641         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
67642         whenever iconv is present.
67643         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
67644         (Makefile.am): Update iconv.h rule.
67646         glob: Avoid #define replacements in C++ mode.
67647         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
67648         (_gl_glob_errfunc_fn): New type.
67649         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
67650         symbol.
67651         * modules/glob (Depends-on): Add c++defs, warn-on-use.
67652         (Makefile.am): Update glob.h rule.
67654         fcntl-h: Avoid #define replacements in C++ mode.
67655         * lib/fcntl.in.h: Include c++defs.h.
67656         (fcntl, open, openat): In C++, define a namespaced alias symbol.
67657         * modules/fcntl-h (Depends-on): Add c++defs.
67658         (Makefile.am): Update fcntl.h rule.
67660         dirent: Avoid #define replacements in C++ mode.
67661         * lib/dirent.in.h: Include c++defs.h.
67662         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
67663         namespaced alias symbol.
67664         (dirfd): Update declaration.
67665         * modules/dirent (Depends-on): Add c++defs.
67666         (Makefile.am): Update dirent.h rule.
67668         ctype: Make it usable in C++ code.
67669         * lib/ctype.in.h: Include c++defs.h.
67670         (isblank): Declare as extern "C".
67671         * modules/ctype (Depends-on): Add c++defs.
67672         (Makefile.am): Update ctype.h rule.
67674         New module 'c++defs'.
67675         * modules/c++defs: New file.
67676         * build-aux/c++defs.h: New file.
67677         Reported by John W. Eaton <jwe@gnu.org>.
67679 2010-03-07  Bruno Haible  <bruno@clisp.org>
67681         logb: Provide missing declaration for Cygwin.
67682         * lib/math.in.h (logb): New declaration.
67683         * m4/logb.m4: New file.
67684         * modules/logb (Files): Add m4/logb.m4.
67685         (Depends-on): Add math.
67686         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
67687         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
67688         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
67689         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
67690         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
67692 2010-03-07  Bruno Haible  <bruno@clisp.org>
67694         Fix test-cond link error.
67695         * tests/test-cond.c: Include <stdio.h>.
67697 2010-03-07  Bruno Haible  <bruno@clisp.org>
67699         Fix test-dirent-safer link error.
67700         * modules/dirent-safer-tests (Makefile.am): Define
67701         test_dirent_safer_LDADD.
67703 2010-03-07  Bruno Haible  <bruno@clisp.org>
67705         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
67706         among default module list.
67708 2010-03-07  Bruno Haible  <bruno@clisp.org>
67710         Fix link error on platforms with GNU libiconv.
67711         * modules/unistr/u8-strcoll-tests (Makefile): Define
67712         test_u8_strcoll_LDADD.
67713         * modules/unistr/u16-strcoll-tests (Makefile): Define
67714         test_u16_strcoll_LDADD.
67715         * modules/unistr/u32-strcoll-tests (Makefile): Define
67716         test_u32_strcoll_LDADD.
67718 2010-03-07  Bruno Haible  <bruno@clisp.org>
67720         Use POSIX declarations for socket functions.
67721         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
67722         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
67723         rpl_sendto): Change declaration to match POSIX.
67724         * lib/connect.c (rpl_connect): Likewise.
67725         * lib/accept.c (rpl_accept): Likewise.
67726         * lib/bind.c (rpl_bind): Likewise.
67727         * lib/getpeername.c (rpl_getpeername): Likewise.
67728         * lib/getsockname.c (rpl_getsockname): Likewise.
67729         * lib/recv.c (rpl_recv): Likewise.
67730         * lib/send.c (rpl_send): Likewise.
67731         * lib/recvfrom.c (rpl_recvfrom): Likewise.
67732         * lib/sendto.c (rpl_sendto): Likewise.
67734 2010-03-06  Bruno Haible  <bruno@clisp.org>
67736         Clarify access, euidaccess, faccessat.
67737         * doc/posix-functions/faccessat.texi: Mention security problem under
67738         "Other problems", not "Portability problems".
67739         * doc/posix-functions/access.texi: Likewise. Mention a related security
67740         problem.
67741         * doc/glibc-functions/euidaccess.texi: Mention security problems.
67742         * lib/euidaccess.c: Add comments about platforms.
67743         * lib/unistd.in.h (access, euidaccess): Add warnings.
67745 2010-03-07  Bruno Haible  <bruno@clisp.org>
67747         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
67748         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
67749         (POSIX_SPAWN_SETSCHEDULER): Likewise.
67750         (POSIX_SPAWN_USEVFORK): Define in a way that works when
67751         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
67752         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
67753         declare when POSIX_SPAWN_SETSCHEDULER is zero.
67754         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
67755         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
67756         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
67757         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
67758         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
67759         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
67760         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
67761         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
67762         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
67763         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
67764         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
67765         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
67766         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
67767         Likewise.
67768         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
67769         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
67770         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
67771         Likewise.
67772         * tests/test-spawn.c (main): Make it work when
67773         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
67775 2010-03-07  Bruno Haible  <bruno@clisp.org>
67777         Fix incorrect Makefile.am generation in German locale.
67778         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
67779         Execute sed command with character range in C locale.
67781 2010-03-06  Bruno Haible  <bruno@clisp.org>
67783         Tests for module 'iconv-h'.
67784         * modules/iconv-h-tests: New file.
67785         * tests/test-iconv-h.c: New file.
67787         New module 'iconv-h'.
67788         * modules/iconv-h: New file.
67789         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
67790         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
67791         (configure.ac): Remove gl_ICONV_H.
67792         (Makefile.am): Remove rule for iconv.h.
67794 2010-03-06  Bruno Haible  <bruno@clisp.org>
67796         More consistent naming of *.m4 files.
67797         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
67798         * modules/wctype (Files): Update.
67800         More consistent naming of *.m4 files.
67801         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
67802         * modules/wchar (Files): Update.
67804 2010-03-06  Jim Meyering  <meyering@redhat.com>
67806         euidaccess: relax license to LGPLv2+
67807         * modules/euidaccess (License): Relax to LGPLv2+.
67809 2010-03-06  Bruno Haible  <bruno@clisp.org>
67811         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
67812         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
67813         (Makefile.am): Augment lib_SOURCES instead.
67815 2010-03-04  Jim Meyering  <meyering@redhat.com>
67817         utime: remove obsolete module
67818         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
67819         unnecessary for years, and has been marked as obsolete for 10 months.
67820         * modules/utime: Remove file.
67821         * lib/utime.c: Remove file.
67822         * m4/utime.m4: Remove file.
67823         * m4/utimes-null.m4: Remove file.
67824         * doc/posix-functions/utime.texi (utime): Remove reference to
67825         the module.  Move the sole "fixed by gnulib" item into the
67826         "problems not fixed by Gnulib" list.
67827         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
67829 2010-03-05  Simon Josefsson  <simon@josefsson.org>
67831         * modules/exit (License): Relax license to LGPLv2+.
67832         (Status): Mark as obsolete.
67833         * NEWS: Mention deprecated 'exit' module.
67834         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
67835         of now obsolete 'exit'.
67837 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67839         fts-lgpl: remove unused module
67840         * modules/fts-lgpl: Remove.
67841         * MODULES.html.sh (func_all_modules): Adjust.
67842         * check-module (find_included_lib_files): Adjust.
67843         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
67845 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
67847         copy-acl: enhance Solaris ACL error handling
67848         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
67849         * lib/set-mode-acl.c (qset_acl): Likewise.
67851 2010-03-02  Bruno Haible  <bruno@clisp.org>
67853         spawn: Don't override the system defined values on FreeBSD 8.
67854         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
67855         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
67856         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
67857         if HAVE_POSIX_SPAWN is 1.
67858         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
67860 2010-03-01  Bruno Haible  <bruno@clisp.org>
67862         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
67863         regarding Automake.
67865 2010-02-25  Bruno Haible  <bruno@clisp.org>
67867         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
67868         * gnulib-tool: Define 'echo' as a function only before the ksh alias
67869         setting, not afterwards.
67870         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
67872 2010-02-24  Eric Blake  <eblake@redhat.com>
67874         bootstrap, git-version-gen: use timestamp
67875         * build-aux/git-version-gen (scriptversion): Force UTC.
67876         * build-aux/bootstrap (scriptversion): New variable.
67878         bootstrap: allow older git
67879         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
67880         older than 1.6.4.  Requested by the libvirt project.
67882 2010-02-23  Eric Blake  <eblake@redhat.com>
67884         warn-on-use: work with old autoconf
67885         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
67886         AS_VAR semantics of autoconf 2.60.
67887         Reported by Bruno Haible.
67889         bootstrap: improve some comments
67890         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
67891         clarification comments.
67893         gettimeofday: provide correct function
67894         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
67895         when replacement is declared, otherwise provide gettimeofday.
67896         Reported by Michael Goffioul.
67898 2010-02-23  Jim Meyering  <meyering@redhat.com>
67900         lib-ignore: relax license to "unlimited", not LGPLv2+
67901         * modules/lib-ignore (License): Relax to "unlimited".
67903 2010-02-23  Jim Meyering  <meyering@redhat.com>
67905         lib-ignore: relax license to LGPLv2+
67906         * modules/lib-ignore (License): Relax to LGPLv2+.
67908 2010-02-22  Eric Blake  <eblake@redhat.com>
67910         lseek: avoid bash 3.2 broken pipe bug
67911         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
67912         warning from bash 3.2.
67913         Reported by Ben Pfaff, with analysis from Bruno Haible.
67915         bootstrap: support non-FSF copyright holder
67916         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
67917         bootstrap.conf override of COPYRIGHT_HOLDER.
67918         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
67920         bootstrap: interoperate with gettext 0.14.1
67921         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
67923         bootstrap: allow for alternate submodule location
67924         * build-aux/bootstrap (gnulib_path): New variable; use instead of
67925         hardcoding submodule location.
67926         (gnulib_mk): Allow direct use of Makefile.am.
67928         bootstrap: use GNULIB_SRCDIR to reduce disk usage
67929         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
67930         rather than reconfiguring where the submodule points.
67932         gettimeofday: restore support for platforms that lack function
67933         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
67934         replacement if function is missing.
67935         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
67936         * modules/sys_time (Makefile.am): Substitute it.
67937         * lib/sys_time.in.h (gettimeofday): Check it.
67938         Reported by Michael Goffioul.
67940 2010-02-21  Bruno Haible  <bruno@clisp.org>
67942         * lib/stdio.in.h (obstack_printf): Fix typo.
67944 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
67946         vc-list-files: use bzr ls's -R option
67947         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
67948         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
67950 2010-02-21  Jim Meyering  <meyering@redhat.com>
67952         init.sh: fix EXEEXT shims to work also for names like test-prog
67953         * tests/init.sh: Re-exec a better shell, when needed.
67954         If the current shell lacks support for posix $(...), an init.sh-using
67955         test will now try to find a shell that supports that.  If EXEEXT is
67956         nonempty, we also require support for hyphen-in-alias-name and shell
67957         substitutions like ${var#glob}.  Failure to find such a shell results
67958         in a skipped test.
67960 2010-02-21  Bruno Haible  <bruno@clisp.org>
67962         Really work around "broken pipe" error message from bash 3.2.
67963         * gnulib-tool (func_reset_sigpipe): Remove function.
67964         (echo): In bash 3.2, define to a function that uses printf.
67965         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
67967 2010-02-20  Bruno Haible  <bruno@clisp.org>
67969         Restore support for automake 1.9.6 with autoconf 2.61.
67970         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
67971         Reported by James Youngman <jay@gnu.org>.
67973 2010-02-20  Bruno Haible  <bruno@clisp.org>
67975         Improve *printf warning condition.
67976         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
67977         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
67978         and the function is overridden due to SIGPIPE emulation.
67980 2010-02-20  Bruno Haible  <bruno@clisp.org>
67982         * lib/stdio.in.h: Tweak comments.
67984 2010-02-19  Bruno Haible  <bruno@clisp.org>
67986         Make it easier to find modules. New gnulib-tool option '--find'.
67987         * gnulib-tool: New option --find.
67988         (func_usage): Document it.
67989         (func_sanitize_modulelist): New function, extracted from
67990         func_all_modules.
67991         (func_all_modules): Invoke it.
67992         * doc/gnulib-tool.texi (Which modules?): New node.
67994 2010-02-18  Markus Duft  <mduft@gentoo.org>  (tiny change)
67996         * lib/sys_select.in.h: Provide select replacement even if
67997         sys/select.h exists on a system, for Interix.
67999 2010-02-18  Jim Meyering  <meyering@redhat.com>
68001         init.sh: don't use $(...) just yet
68002         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
68003         to accommodate e.g., Solaris' /bin/sh.
68005 2010-02-17  Bruno Haible  <bruno@clisp.org>
68007         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
68008         Reported by Ludovic Courtès <ludo@gnu.org>.
68010 2010-02-16  Simon Josefsson  <simon@josefsson.org>
68012         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
68013         linking with -lintl.
68015 2010-02-17  Simon Josefsson  <simon@josefsson.org>
68017         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
68018         if not provided by the system's netdb.h.  Reported by
68019         ludo@gnu.org (Ludovic Courtès).
68021 2010-02-15  Jim Meyering  <meyering@redhat.com>
68023         init.sh: improve portability and efficiency
68024         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
68025         "dummy" in a for loop.
68026         Use '!', not '^' to select the complement of a character set used
68027         in a "case" statement.
68028         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
68029         Suggestions from Eric Blake.
68031         init.sh: automatically accommodate programs with the .exe suffix
68032         Automatically arrange for an invocation of "prog" to execute the
68033         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
68034         may use the simpler "prog", yet still work when built on a system
68035         that requires specifying the added suffix.
68036         Do this by constructing a function named "prog" that invokes
68037         "prog.exe" for each .exe file in selected directories.
68038         * tests/init.sh (find_exe_basenames_): New function.
68039         (create_exe_shim_functions_): New function.
68040         (path_prepend_): Use it.
68042         maint.mk: mark syntax-check sc_*.m rules as .PHONY
68043         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
68044         "make -t syntax-check" doesn't create a ton of sc_*.m files.
68046 2010-02-14  Jim Meyering  <meyering@redhat.com>
68048         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
68049         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
68050         (sc_prohibit_hash_pjw_without_use): New rule.
68052         maint.mk: allow the default upload destination dir to be overridden
68053         * top/maint.mk (upload_dest_dir_): Define with a default that
68054         preserves the status quo.
68055         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
68056         Reported by Peter Simons.
68058         maint.mk: prohibit inclusion of "hash.h" without_use
68059         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
68061 2010-02-10  Jim Meyering  <meyering@redhat.com>
68063         maint.mk: prohibit inclusion of "ignore-value.h" without_use
68064         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
68066 2010-02-09  Eric Blake  <ebb9@byu.net>
68067         and Bruno Haible  <bruno@clisp.org>
68069         obstack-printf-posix: ensure declaration
68070         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
68071         extracted from gl_FUNC_OBSTACK_PRINTF.
68072         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
68073         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
68074         Likewise.
68075         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
68076         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
68077         0.
68079 2010-02-08  Bruno Haible  <bruno@clisp.org>
68081         gnulib-tool: Fix typo in 2010-02-07 commit.
68082         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
68083         Reported by Eric Blake.
68085 2010-02-07  Bruno Haible  <bruno@clisp.org>
68087         gnulib-tool: Fix up caching patches.
68088         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
68089         option --no-cache. Use associative arrays when supported by the shell.
68090         (sed_comments): New variable.
68091         (modcache): Renamed from do_cache.
68092         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
68093         abbreviate unnecessarily.
68094         (have_associative): New variable.
68095         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
68096         way also for ksh and zsh.
68097         (func_init_sed_convert_to_cache_statements): New function, extracted
68098         from func_cache_lookup_module. Add support for associative arrays.
68099         Don't set the c_MODULE_cached variable here. Ignore all lines before
68100         the first field header. Remove only the final newline, not all trailing
68101         newlines. Support empty fields correctly. Limit the use of 'eval' to
68102         assignments.
68103         (func_get_description, func_get_status, func_get_notice,
68104         func_get_applicability, func_get_filelist, func_get_dependencies,
68105         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
68106         func_get_automake_snippet, func_get_include_directive,
68107         func_get_link_directive, func_get_license, func_get_maintainer):
68108         Update documentation. List the unoptimized code first. Add support for
68109         associative arrays. Limit the use of 'eval' to assignments.
68110         (func_get_applicability): Undo stylistic pessimisations.
68111         (func_get_automake_snippet, func_get_include_directive): Reduce code
68112         duplication.
68113         (func_modules_transitive_closure, func_modules_add_dummy,
68114         func_modules_notice, func_modules_to_filelist, func_add_file,
68115         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
68116         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
68117         func_create_testdir, func_create_megatestdir): Update documentation.
68119 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68121         * gnulib-tool (func_cache_lookup_module): Store the module name
68122         belonging to the cache variable; error out if two different
68123         module names map to the same cache variable name.
68125 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68127         gnulib-tool: Make caching optional.
68128         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
68129         Update matching short versions of --no-changelog.
68130         (func_usage): Update.
68131         (sed_extract_cache_prog): Renamed from ...
68132         (sed_extract_prog): ... this; revert to old extraction script.
68133         (func_get_description, func_get_status)
68134         (func_get_notice, func_get_applicability, func_get_filelist)
68135         (func_get_dependencies, func_get_autoconf_early_snippet)
68136         (func_get_autoconf_snippet, func_get_automake_snippet)
68137         (func_get_include_directive, func_get_link_directive)
68138         (func_get_license, func_get_maintainer): If $do_cache is false,
68139         use old, non-caching extraction scripts.
68140         Suggestion by Bruno Haible.
68142 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68144         gnulib-tool: cache module metainformation.
68145         * gnulib-tool (sed_extract_prog): Match newline before each
68146         header, and rewrite header to a shell variable suffix.
68147         (func_cache_var, func_cache_lookup_module): New functions,
68148         to turn a module name into a cache variable prefix, and to
68149         look up and cache module metainformation.
68150         (func_get_description, func_get_status)
68151         (func_get_notice, func_get_applicability, func_get_filelist)
68152         (func_get_dependencies, func_get_autoconf_early_snippet)
68153         (func_get_autoconf_snippet, func_get_automake_snippet)
68154         (func_get_include_directive, func_get_link_directive)
68155         (func_get_license, func_get_maintainer): Use
68156         func_cache_lookup_module.
68158 2010-02-07  Bruno Haible  <bruno@clisp.org>
68160         fnctl: Fix missing dependency.
68161         * modules/fcntl (Depends-on): Add getdtablesize.
68162         Reported by John W. Eaton <jwe@gnu.org>.
68164 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
68166         Argp: fix recognition of short alias options.
68168         * lib/argp-parse.c (convert_options): Fix improper use of
68169         `|' between character values.
68170         * tests/test-argp.c (group1_option): New alias option
68171         --read (-r).
68172         (group1_parser): Special handling for 'r'.
68173         (test15): New test case.
68174         (test_fun): Add test15.
68175         * tests/test-argp-2.sh: Update expected --help and --usage
68176         outputs.
68178 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
68180         * tests/test-argp.c: Fix indentation.
68182 2010-02-04  Eric Blake  <ebb9@byu.net>
68184         gettimeofday: expose type of second argument
68185         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
68186         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
68187         * tests/test-gettimeofday.c: Use it to silence warning.
68188         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
68189         the issue.
68191 2010-02-03  Jim Meyering  <meyering@redhat.com>
68193         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
68194         * lib/regcomp.c (TYPE_SIGNED): Define.
68195         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
68197         regcomp.c: avoid a new -Wshadow warning
68198         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
68200 2010-02-01  Jim Meyering  <meyering@redhat.com>
68202         removing useless parentheses in cpp #define directives
68203         For motivation, see commit c0221df4, "define STREQ(a,b)
68204         consistently, removing useless parentheses"
68205         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
68206         * lib/mountlist.c (MNT_IGNORE): Likewise.
68207         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
68209 2010-02-01  Eric Blake  <ebb9@byu.net>
68211         sys_time: use link-warning
68212         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
68213         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
68214         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
68215         * modules/sys_time (Depends-on): Add warn-on-use.
68216         (Makefile.am): Always build replacement.
68217         (configure.ac): Update substitutions.
68218         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
68219         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
68220         bother with SYS_TIME_H.
68221         * modules/gettimeofday (configure.ac): Declare indicator.
68222         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
68223         in use.
68225         closein-tests: silence compiler warning
68226         * tests/test-closein.c (main): Ignore fread result.
68227         * modules/closein-tests (Depends-on): Add ignore-value.
68229         tests: silence warning about system return
68230         * tests/test-areadlink-with-size.c (main): Ignore system result.
68231         * tests/test-areadlink.c (main): Likewise.
68232         * tests/test-areadlinkat-with-size.c (main): Likewise.
68233         * tests/test-areadlinkat.c (main): Likewise.
68234         * tests/test-canonicalize-lgpl.c (main): Likewise.
68235         * tests/test-canonicalize.c (main): Likewise.
68236         * tests/test-chown.c (main): Likewise.
68237         * tests/test-fchownat.c (main): Likewise.
68238         * tests/test-fdutimensat.c (main): Likewise.
68239         * tests/test-fstatat.c (main): Likewise.
68240         * tests/test-futimens.c (main): Likewise.
68241         * tests/test-lchown.c (main): Likewise.
68242         * tests/test-link.c (main): Likewise.
68243         * tests/test-linkat.c (main): Likewise.
68244         * tests/test-lstat.c (main): Likewise.
68245         * tests/test-mkdir.c (main): Likewise.
68246         * tests/test-mkdirat.c (main): Likewise.
68247         * tests/test-mkfifo.c (main): Likewise.
68248         * tests/test-mkfifoat.c (main): Likewise.
68249         * tests/test-mknod.c (main): Likewise.
68250         * tests/test-readlink.c (main): Likewise.
68251         * tests/test-remove.c (main): Likewise.
68252         * tests/test-rename.c (main): Likewise.
68253         * tests/test-renameat.c (main): Likewise.
68254         * tests/test-rmdir.c (main): Likewise.
68255         * tests/test-symlink.c (main): Likewise.
68256         * tests/test-symlinkat.c (main): Likewise.
68257         * tests/test-unlink.c (main): Likewise.
68258         * tests/test-unlinkat.c (main): Likewise.
68259         * tests/test-utimens.c (main): Likewise.
68260         * tests/test-utimensat.c (main): Likewise.
68261         * modules/areadlink-tests (Depends-on): Add ignore-value.
68262         * modules/areadlink-with-size-tests (Depends-on): Likewise.
68263         * modules/areadlinkat-tests (Depends-on): Likewise.
68264         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
68265         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
68266         * modules/canonicalize-tests (Depends-on): Likewise.
68267         * modules/chown-tests (Depends-on): Likewise.
68268         * modules/fdutimensat-tests (Depends-on): Likewise.
68269         * modules/futimens-tests (Depends-on): Likewise.
68270         * modules/lchown-tests (Depends-on): Likewise.
68271         * modules/link-tests (Depends-on): Likewise.
68272         * modules/linkat-tests (Depends-on): Likewise.
68273         * modules/lstat-tests (Depends-on): Likewise.
68274         * modules/mkdir-tests (Depends-on): Likewise.
68275         * modules/mkfifo-tests (Depends-on): Likewise.
68276         * modules/mkfifoat-tests (Depends-on): Likewise.
68277         * modules/mknod-tests (Depends-on): Likewise.
68278         * modules/openat-tests (Depends-on): Likewise.
68279         * modules/readlink-tests (Depends-on): Likewise.
68280         * modules/remove-tests (Depends-on): Likewise.
68281         * modules/rename-tests (Depends-on): Likewise.
68282         * modules/renameat-tests (Depends-on): Likewise.
68283         * modules/rmdir-tests (Depends-on): Likewise.
68284         * modules/symlink-tests (Depends-on): Likewise.
68285         * modules/symlinkat-tests (Depends-on): Likewise.
68286         * modules/unlink-tests (Depends-on): Likewise.
68287         * modules/utimens-tests (Depends-on): Likewise.
68288         * modules/utimensat-tests (Depends-on): Likewise.
68290 2010-01-31  Bruno Haible  <bruno@clisp.org>
68292         Perform the same test for many <math.h> functions.
68293         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
68294         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
68295         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
68296         of gl_MATHFUNC.
68297         * modules/acos (configure.ac): Likewise.
68298         * modules/asin (configure.ac): Likewise.
68299         * modules/atan (configure.ac): Likewise.
68300         * modules/atan2 (configure.ac): Likewise.
68301         * modules/cbrt (configure.ac): Likewise.
68302         * modules/copysign (configure.ac): Likewise.
68303         * modules/cos (configure.ac): Likewise.
68304         * modules/cosh (configure.ac): Likewise.
68305         * modules/erf (configure.ac): Likewise.
68306         * modules/erfc (configure.ac): Likewise.
68307         * modules/exp (configure.ac): Likewise.
68308         * modules/fmod (configure.ac): Likewise.
68309         * modules/hypot (configure.ac): Likewise.
68310         * modules/j0 (configure.ac): Likewise.
68311         * modules/j1 (configure.ac): Likewise.
68312         * modules/jn (configure.ac): Likewise.
68313         * modules/lgamma (configure.ac): Likewise.
68314         * modules/log (configure.ac): Likewise.
68315         * modules/log10 (configure.ac): Likewise.
68316         * modules/log1p (configure.ac): Likewise.
68317         * modules/pow (configure.ac): Likewise.
68318         * modules/remainder (configure.ac): Likewise.
68319         * modules/sin (configure.ac): Likewise.
68320         * modules/sinh (configure.ac): Likewise.
68321         * modules/tan (configure.ac): Likewise.
68322         * modules/tanh (configure.ac): Likewise.
68323         * modules/y0 (configure.ac): Likewise.
68324         * modules/y1 (configure.ac): Likewise.
68325         * modules/yn (configure.ac): Likewise.
68326         Suggested by Paolo Bonzini.
68328 2010-01-31  Bruno Haible  <bruno@clisp.org>
68330         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
68332 2010-01-31  Bruno Haible  <bruno@clisp.org>
68334         Work around getdelim() bug on FreeBSD 8.0.
68335         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
68336         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
68337         not work.
68338         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
68339         is 1.
68340         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
68341         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
68342         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
68343         a non-zero size.
68344         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
68346 2010-01-31  Bruno Haible  <bruno@clisp.org>
68348         Work around getline() bug on FreeBSD 8.0.
68349         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
68350         and a non-zero size.
68351         * tests/test-getline.c (main): Likewise.
68352         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
68353         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
68355 2010-01-28  Eric Blake  <ebb9@byu.net>
68357         regex: fix build failure
68358         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
68359         platforms.
68361 2010-01-28  Jim Meyering  <meyering@redhat.com>
68363         regex: do not ignore memory allocation failure
68364         * lib/regex_internal.c (create_cd_newstate): Detect
68365         re_node_set_init_copy failure.   Extracted from glibc commit
68366         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
68368         regex: sync more white-space changes from libc
68369         * lib/regex_internal.c: White-space only changes.
68370         * lib/regexec.c: Likewise.
68372         regex: add many uses of __attribute_warn_unused_result__
68373         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
68374         * lib/regexec.c: Likewise.
68375         Extracted from a messy glibc commit.
68377         regcomp.c: spelling and merge-artifact from glibc
68378         * lib/regcomp.c: Merge remainder of glibc's
68379         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
68381         regcomp.c: sync white-space changes from glibc
68382         * lib/regcomp.c: Merge to accommodate white space
68383         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
68385         regcomp.c: do not ignore internal return values
68386         * lib/regcomp.c: Do not ignore internal return values.
68387         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
68388         but without its white-space changes and spelling fixes.
68390         regex_internal.h: define __attribute_warn_unused_result__
68391         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
68393         maint: add a syntax-check rule to check for vulnerable Makefile.in
68394         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
68396 2010-01-27  Jim Meyering  <meyering@redhat.com>
68398         ncftpput-ftp: clean up spaces
68399         * build-aux/ncftpput-ftp: Make Copyright line consistent.
68400         Remove trailing blanks.
68402 2010-01-27  Simon Josefsson  <simon@josefsson.org>
68404         * build-aux/git-version-gen: Fix copyright statement.
68405         * build-aux/gnupload: Likewise.
68406         * tests/test-arcfour.c: Likewise.
68407         * tests/test-arctwo.c: Likewise.
68408         * tests/test-count-one-bits.c: Likewise.
68409         * tests/test-crc.c: Likewise.
68410         * tests/test-des.c: Likewise.
68411         * tests/test-gc-arcfour.c: Likewise.
68412         * tests/test-gc-arctwo.c: Likewise.
68413         * tests/test-gc-des.c: Likewise.
68414         * tests/test-gc-hmac-md5.c: Likewise.
68415         * tests/test-gc-hmac-sha1.c: Likewise.
68416         * tests/test-gc-md2.c: Likewise.
68417         * tests/test-gc-md4.c: Likewise.
68418         * tests/test-gc-md5.c: Likewise.
68419         * tests/test-gc-pbkdf2-sha1.c: Likewise.
68420         * tests/test-gc-rijndael.c: Likewise.
68421         * tests/test-gc-sha1.c: Likewise.
68422         * tests/test-gc.c: Likewise.
68423         * tests/test-gethostname.c: Likewise.
68424         * tests/test-gettimeofday.c: Likewise.
68425         * tests/test-hash.c: Likewise.
68426         * tests/test-hmac-md5.c: Likewise.
68427         * tests/test-hmac-sha1.c: Likewise.
68428         * tests/test-md2.c: Likewise.
68429         * tests/test-md4.c: Likewise.
68430         * tests/test-md5.c: Likewise.
68431         * tests/test-memchr.c: Likewise.
68432         * tests/test-memchr2.c: Likewise.
68433         * tests/test-memcmp.c: Likewise.
68434         * tests/test-memmem.c: Likewise.
68435         * tests/test-memrchr.c: Likewise.
68436         * tests/test-rawmemchr.c: Likewise.
68437         * tests/test-read-file.c: Likewise.
68438         * tests/test-rijndael.c: Likewise.
68439         * tests/test-sockets.c: Likewise.
68440         * tests/test-strchrnul.c: Likewise.
68441         * tests/test-strstr.c: Likewise.
68442         * tests/test-strtod.c: Likewise.
68443         * build-aux/ncftpput-ftp: Likewise.
68445 2010-01-26  Eric Blake  <ebb9@byu.net>
68447         ignore-value: update recommended header name
68448         * modules/ignore-value (Include): Only use <> for headers that
68449         exist in glibc.
68451 2010-01-26  Jim Meyering  <meyering@redhat.com>
68453         test-userspec.c: avoid compiler warnings
68454         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
68455         and "initialization discards qualifiers..." warnings.
68456         Put the first "uid" in its own scope, and make char* members "const".
68458 2010-01-25  Bruno Haible  <bruno@clisp.org>
68460         gnulib-tool: Make warning diagnostics consistent.
68461         * gnulib-tool (func_warning): New function.
68462         Use it everywhere where gnulib-tool produces output to stderr and it is
68463         not a fatal error.
68465 2010-01-25  Bruno Haible  <bruno@clisp.org>
68467         Fix test dependencies.
68468         * modules/xstrtol-tests (Depends-on): Add inttypes.
68469         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
68471 2010-01-25  Pádraig Brady  <P@draigBrady.com>
68473         syntax-check: detect incorrect boolean macro values in config.h
68474         * modules/maintainer-makefile (configure.ac): Parameterize the location
68475         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
68476         The logic is from Eric Blake and the location indicated by Jim Meyering.
68477         Note the more natural CONFIG_HEADER name is prohibited by automake
68478         for backwards compatibility reasons.
68479         * top/maint.mk (sc_Wundef_boolean): New rule.
68481 2010-01-25  Jim Meyering  <meyering@redhat.com>
68483         bootstrap: detect MacOS 10.6's shasum, too
68484         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
68485         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
68487 2010-01-23  Jim Meyering  <meyering@redhat.com>
68489         xstrtoll: new module
68490         * modules/xstrtoll: New file.
68491         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
68492         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
68493         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
68494         ./configure fails if you use this module and lack "long long".
68495         * modules/xstrtoll-tests: New module.
68496         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
68497         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
68498         new init.sh-based test framework.
68500 2010-01-24  Bruno Haible  <bruno@clisp.org>
68502         Tests for module 'yn'.
68503         * modules/yn-tests: New file.
68504         * tests/test-yn.c: New file.
68506         Tests for module 'y1'.
68507         * modules/y1-tests: New file.
68508         * tests/test-y1.c: New file.
68510         Tests for module 'y0'.
68511         * modules/y0-tests: New file.
68512         * tests/test-y0.c: New file.
68514         Tests for module 'tanh'.
68515         * modules/tanh-tests: New file.
68516         * tests/test-tanh.c: New file.
68518         Tests for module 'tan'.
68519         * modules/tan-tests: New file.
68520         * tests/test-tan.c: New file.
68522         Tests for module 'sqrt'.
68523         * modules/sqrt-tests: New file.
68524         * tests/test-sqrt.c: New file.
68526         Tests for module 'sinh'.
68527         * modules/sinh-tests: New file.
68528         * tests/test-sinh.c: New file.
68530         Tests for module 'sin'.
68531         * modules/sin-tests: New file.
68532         * tests/test-sin.c: New file.
68534         Tests for module 'rint'.
68535         * modules/rint-tests: New file.
68536         * tests/test-rint.c: New file.
68538         Tests for module 'remainder'.
68539         * modules/remainder-tests: New file.
68540         * tests/test-remainder.c: New file.
68542         Tests for module 'pow'.
68543         * modules/pow-tests: New file.
68544         * tests/test-pow.c: New file.
68546         Tests for module 'nextafter'.
68547         * modules/nextafter-tests: New file.
68548         * tests/test-nextafter.c: New file.
68550         Tests for module 'modf'.
68551         * modules/modf-tests: New file.
68552         * tests/test-modf.c: New file.
68554         Tests for module 'logb'.
68555         * modules/logb-tests: New file.
68556         * tests/test-logb.c: New file.
68558         Tests for module 'log1p'.
68559         * modules/log1p-tests: New file.
68560         * tests/test-log1p.c: New file.
68562         Tests for module 'log10'.
68563         * modules/log10-tests: New file.
68564         * tests/test-log10.c: New file.
68566         Tests for module 'log'.
68567         * modules/log-tests: New file.
68568         * tests/test-log.c: New file.
68570         Tests for module 'lgamma'.
68571         * modules/lgamma-tests: New file.
68572         * tests/test-lgamma.c: New file.
68574         Tests for module 'ldexp'.
68575         * modules/ldexp-tests: New file.
68576         * tests/test-ldexp.c: New file.
68578         Tests for module 'jn'.
68579         * modules/jn-tests: New file.
68580         * tests/test-jn.c: New file.
68582         Tests for module 'j1'.
68583         * modules/j1-tests: New file.
68584         * tests/test-j1.c: New file.
68586         Tests for module 'j0'.
68587         * modules/j0-tests: New file.
68588         * tests/test-j0.c: New file.
68590         Tests for module 'hypot'.
68591         * modules/hypot-tests: New file.
68592         * tests/test-hypot.c: New file.
68594         Tests for module 'fmod'.
68595         * modules/fmod-tests: New file.
68596         * tests/test-fmod.c: New file.
68598         Tests for module 'fabs'.
68599         * modules/fabs-tests: New file.
68600         * tests/test-fabs.c: New file.
68602         Tests for module 'exp'.
68603         * modules/exp-tests: New file.
68604         * tests/test-exp.c: New file.
68606         Tests for module 'erfc'.
68607         * modules/erfc-tests: New file.
68608         * tests/test-erfc.c: New file.
68610         Tests for module 'erf'.
68611         * modules/erf-tests: New file.
68612         * tests/test-erf.c: New file.
68614         Tests for module 'cosh'.
68615         * modules/cosh-tests: New file.
68616         * tests/test-cosh.c: New file.
68618         Tests for module 'cos'.
68619         * modules/cos-tests: New file.
68620         * tests/test-cos.c: New file.
68622         Tests for module 'copysign'.
68623         * modules/copysign-tests: New file.
68624         * tests/test-copysign.c: New file.
68626         Tests for module 'cbrt'.
68627         * modules/cbrt-tests: New file.
68628         * tests/test-cbrt.c: New file.
68630         Tests for module 'atan2'.
68631         * modules/atan2-tests: New file.
68632         * tests/test-atan2.c: New file.
68634         Tests for module 'atan'.
68635         * modules/atan-tests: New file.
68636         * tests/test-atan.c: New file.
68638         Tests for module 'asin'.
68639         * modules/asin-tests: New file.
68640         * tests/test-asin.c: New file.
68642         Tests for module 'acos'.
68643         * modules/acos-tests: New file.
68644         * tests/test-acos.c: New file.
68646 2010-01-24  Bruno Haible  <bruno@clisp.org>
68648         Fix tests for common <math.h> functions.
68649         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
68650         code snippet that references the function pointer, rather than merely
68651         calling the function. Substitute the FUNC_LIBM variable.
68652         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
68653         * modules/acos (configure.ac): Likewise.
68654         * modules/asin (configure.ac): Likewise.
68655         * modules/atan (configure.ac): Likewise.
68656         * modules/atan2 (configure.ac): Likewise.
68657         * modules/cbrt (configure.ac): Likewise.
68658         * modules/copysign (configure.ac): Likewise.
68659         * modules/cos (configure.ac): Likewise.
68660         * modules/cosh (configure.ac): Likewise.
68661         * modules/erf (configure.ac): Likewise.
68662         * modules/erfc (configure.ac): Likewise.
68663         * modules/exp (configure.ac): Likewise.
68664         * modules/fabs (configure.ac): Likewise.
68665         * modules/fmod (configure.ac): Likewise.
68666         * modules/hypot (configure.ac): Likewise.
68667         * modules/j0 (configure.ac): Likewise.
68668         * modules/j1 (configure.ac): Likewise.
68669         * modules/jn (configure.ac): Likewise.
68670         * modules/ldexp (configure.ac): Likewise.
68671         * modules/lgamma (configure.ac): Likewise.
68672         * modules/log (configure.ac): Likewise.
68673         * modules/log10 (configure.ac): Likewise.
68674         * modules/log1p (configure.ac): Likewise.
68675         * modules/logb (configure.ac): Likewise.
68676         * modules/modf (configure.ac): Likewise.
68677         * modules/nextafter (configure.ac): Likewise.
68678         * modules/pow (configure.ac): Likewise.
68679         * modules/remainder (configure.ac): Likewise.
68680         * modules/rint (configure.ac): Likewise.
68681         * modules/sin (configure.ac): Likewise.
68682         * modules/sinh (configure.ac): Likewise.
68683         * modules/tan (configure.ac): Likewise.
68684         * modules/tanh (configure.ac): Likewise.
68685         * modules/y0 (configure.ac): Likewise.
68686         * modules/y1 (configure.ac): Likewise.
68687         * modules/yn (configure.ac): Likewise.
68689 2010-01-24  Bruno Haible  <bruno@clisp.org>
68691         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
68692         * tests/test-acosl.c (x): New variable.
68693         (main): Store argument in x and fetch it from x.
68694         * tests/test-asinl.c (x): New variable.
68695         (main): Store argument in x and fetch it from x.
68696         * tests/test-atanl.c (x): New variable.
68697         (main): Store argument in x and fetch it from x.
68698         * tests/test-cosl.c (x): New variable.
68699         (main): Store argument in x and fetch it from x.
68700         * tests/test-expl.c (x): New variable.
68701         (main): Store argument in x and fetch it from x.
68702         * tests/test-logl.c (x): New variable.
68703         (main): Store argument in x and fetch it from x.
68704         * tests/test-sinl.c (x): New variable.
68705         (main): Store argument in x and fetch it from x.
68706         * tests/test-sqrtl.c (x): New variable.
68707         (main): Store argument in x and fetch it from x.
68708         * tests/test-tanl.c (x): New variable.
68709         (main): Store argument in x and fetch it from x.
68711 2010-01-24  Bruno Haible  <bruno@clisp.org>
68713         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
68714         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
68715         assignments to the initial TESTS_ENVIRONMENT.
68716         * doc/gnulib.texi (Unit test modules): Document it.
68717         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
68718         TESTS_ENVIRONMENT.
68719         * modules/btowc-tests (Makefile.am): Likewise.
68720         * modules/c-stack-tests (Makefile.am): Likewise.
68721         * modules/c-strcase-tests (Makefile.am): Likewise.
68722         * modules/copy-file-tests (Makefile.am): Likewise.
68723         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
68724         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
68725         * modules/mbrtowc-tests (Makefile.am): Likewise.
68726         * modules/mbscasecmp-tests (Makefile.am): Likewise.
68727         * modules/mbscasestr-tests (Makefile.am): Likewise.
68728         * modules/mbschr-tests (Makefile.am): Likewise.
68729         * modules/mbscspn-tests (Makefile.am): Likewise.
68730         * modules/mbsinit-tests (Makefile.am): Likewise.
68731         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
68732         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
68733         * modules/mbspbrk-tests (Makefile.am): Likewise.
68734         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
68735         * modules/mbsrchr-tests (Makefile.am): Likewise.
68736         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
68737         * modules/mbsspn-tests (Makefile.am): Likewise.
68738         * modules/mbsstr-tests (Makefile.am): Likewise.
68739         * modules/nl_langinfo-tests (Makefile.am): Likewise.
68740         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
68741         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
68742         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
68743         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
68744         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
68745         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
68746         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
68747         * modules/wcrtomb-tests (Makefile.am): Likewise.
68748         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
68749         * modules/wcsrtombs-tests (Makefile.am): Likewise.
68750         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
68751         assignments from TESTS_ENVIRONMENT.
68752         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
68753         augmentation.
68754         * modules/argp-version-etc-tests (Makefile.am): Likewise.
68755         * modules/atexit-tests (Makefile.am): Likewise.
68756         * modules/binary-io-tests (Makefile.am): Likewise.
68757         * modules/closein-tests (Makefile.am): Likewise.
68758         * modules/dprintf-posix-tests (Makefile.am): Likewise.
68759         * modules/exclude-tests (Makefile.am): Likewise.
68760         * modules/fflush-tests (Makefile.am): Likewise.
68761         * modules/fpending-tests (Makefile.am): Likewise.
68762         * modules/fprintf-posix-tests (Makefile.am): Likewise.
68763         * modules/freadahead-tests (Makefile.am): Likewise.
68764         * modules/freadptr-tests (Makefile.am): Likewise.
68765         * modules/freadseek-tests (Makefile.am): Likewise.
68766         * modules/fseek-tests (Makefile.am): Likewise.
68767         * modules/fseeko-tests (Makefile.am): Likewise.
68768         * modules/ftell-tests (Makefile.am): Likewise.
68769         * modules/ftello-tests (Makefile.am): Likewise.
68770         * modules/idpriv-drop-tests (Makefile.am): Likewise.
68771         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
68772         * modules/lseek-tests (Makefile.am): Likewise.
68773         * modules/parse-duration-tests (Makefile.am): Likewise.
68774         * modules/perror-tests (Makefile.am): Likewise.
68775         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
68776         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
68777         * modules/pipe-tests (Makefile.am): Likewise.
68778         * modules/pread-tests (Makefile.am): Likewise.
68779         * modules/printf-posix-tests (Makefile.am): Likewise.
68780         * modules/select-tests (Makefile.am): Likewise.
68781         * modules/sigpipe-tests (Makefile.am): Likewise.
68782         * modules/tsearch-tests (Makefile.am): Likewise.
68783         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
68784         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
68785         * modules/uniname/uniname-tests (Makefile.am): Likewise.
68786         * modules/uniwidth/width-tests (Makefile.am): Likewise.
68787         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
68788         * modules/version-etc-tests (Makefile.am): Likewise.
68789         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
68790         * modules/vprintf-posix-tests (Makefile.am): Likewise.
68791         * modules/xalloc-die-tests (Makefile.am): Likewise.
68792         * modules/xprintf-posix-tests (Makefile.am): Likewise.
68793         * modules/xstrtoimax-tests (Makefile.am): Likewise.
68794         * modules/xstrtol-tests (Makefile.am): Likewise.
68795         * modules/xstrtoumax-tests (Makefile.am): Likewise.
68796         * modules/yesno-tests (Makefile.am): Likewise.
68797         Suggested by Jim Meyering.
68799 2010-01-24  Bruno Haible  <bruno@clisp.org>
68801         More documentation.
68802         * doc/gnulib.texi (Writing modules): New chapter.
68803         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
68804         the new chapter.
68806 2010-01-24  Jim Meyering  <meyering@redhat.com>
68808         maint.mk: do not prepend "./" after filtering
68809         * top/maint.mk (_prepend_srcdir_prefix): New variable
68810         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
68811         "./" when $(srcdir) is ".".
68813         define STREQ(a,b) consistently, removing useless parentheses
68814         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
68815         since the only risk is that "a" or "b" contains an unparenthesized
68816         comma, but if either did that, STREQ would have 3 or more arguments.
68817         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
68818         * lib/fts.c (STREQ): Remove unnecessary parentheses.
68819         * lib/hash-triple.c (STREQ): Likewise.
68820         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
68821         * lib/getugroups.c (STREQ): Likewise.
68823 2010-01-23  Jim Meyering  <meyering@redhat.com>
68825         maint.mk: fix syntax-check in a non-srcdir build directory
68826         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
68827         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
68829 2010-01-22  Jim Meyering  <meyering@redhat.com>
68831         userspec: add unit tests
68832         * tests/test-userspec.c: New file.
68833         * modules/userspec-tests: Likewise.
68835 2010-01-21  Jim Meyering  <meyering@redhat.com>
68837         maint.mk: handle source file names containing "." robustly
68838         * top/maint.mk (_dot_escaped_srcdir): Define.
68839         (VC_LIST): Use it in LHS of sed substitution.
68841 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
68843         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
68844         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
68845         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
68846         from a non-srcdir build.
68848 2010-01-20  Eric Blake  <ebb9@byu.net>
68850         warn-on-use: use instead of link-warning
68851         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
68852         * modules/unistd (Depends-on, Makefile.am): Likewise.
68853         * modules/arpa_inet (Depends-on): Replace link-warning with
68854         warn-on-use.
68855         (Makefile.am): Update rules accordingly.
68856         * modules/ctype (Depends-on, Makefile.am): Likewise.
68857         * modules/dirent (Depends-on, Makefile.am): Likewise.
68858         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
68859         * modules/inttypes (Depends-on, Makefile.am): Likewise.
68860         * modules/langinfo (Depends-on, Makefile.am): Likewise.
68861         * modules/locale (Depends-on, Makefile.am): Likewise.
68862         * modules/math (Depends-on, Makefile.am): Likewise.
68863         * modules/search (Depends-on, Makefile.am): Likewise.
68864         * modules/signal (Depends-on, Makefile.am): Likewise.
68865         * modules/spawn (Depends-on, Makefile.am): Likewise.
68866         * modules/stdlib (Depends-on, Makefile.am): Likewise.
68867         * modules/string (Depends-on, Makefile.am): Likewise.
68868         * modules/strings (Depends-on, Makefile.am): Likewise.
68869         * modules/sys_file (Depends-on, Makefile.am): Likewise.
68870         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
68871         * modules/sys_select (Depends-on, Makefile.am): Likewise.
68872         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
68873         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
68874         * modules/sys_times (Depends-on, Makefile.am): Likewise.
68875         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
68876         * modules/wchar (Depends-on, Makefile.am): Likewise.
68877         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
68878         should be poisoned.
68879         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
68880         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
68881         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
68882         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
68883         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
68884         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
68885         * m4/math_h.m4 (gl_MATH_H): Likewise.
68886         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
68887         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
68888         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
68889         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
68890         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
68891         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
68892         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
68893         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
68894         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
68895         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
68896         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
68897         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
68898         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
68899         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
68900         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
68901         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
68902         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
68903         GL_LINK_WARNING.
68904         * lib/ctype.in.h: Likewise.
68905         * lib/dirent.in.h: Likewise.
68906         * lib/fcntl.in.h: Likewise.
68907         * lib/inttypes.in.h: Likewise.
68908         * lib/langinfo.in.h: Likewise.
68909         * lib/locale.in.h: Likewise.
68910         * lib/math.in.h: Likewise.
68911         * lib/search.in.h: Likewise.
68912         * lib/signal.in.h: Likewise.
68913         * lib/spawn.in.h: Likewise.
68914         * lib/stdio.in.h: Likewise.
68915         * lib/stdlib.in.h: Likewise.
68916         * lib/string.in.h: Likewise.
68917         * lib/strings.in.h: Likewise.
68918         * lib/sys_file.in.h: Likewise.
68919         * lib/sys_ioctl.in.h: Likewise.
68920         * lib/sys_select.in.h: Likewise.
68921         * lib/sys_socket.in.h: Likewise.
68922         * lib/sys_stat.in.h: Likewise.
68923         * lib/sys_times.in.h: Likewise.
68924         * lib/sys_utsname.in.h: Likewise.
68925         * lib/unistd.in.h: Likewise.
68926         * lib/wchar.in.h: Likewise.
68928 2010-01-20  Bruno Haible  <bruno@clisp.org>
68930         Avoid duplicate -lm.
68931         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
68932         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
68933         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
68934         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
68935         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
68936         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
68937         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
68938         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
68939         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
68940         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
68941         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
68942         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
68943         Reported by Paolo Bonzini.
68945 2010-01-19  Bruno Haible  <bruno@clisp.org>
68947         langinfo, nl_langinfo: Relicense under LGPLv2+.
68948         * modules/langinfo (License): Change to LGPLv2+.
68949         * modules/nl_langinfo (License): Likewise.
68950         Patch by David Lutterkort <lutter@redhat.com>.
68952 2010-01-19  Bruno Haible  <bruno@clisp.org>
68954         Avoid compilation error with cc on OSF/1 5.1.
68955         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
68956         statement, not before.
68957         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68959 2010-01-18  Bruno Haible  <bruno@clisp.org>
68961         Avoid a link error due to the __printf__ symbol.
68962         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
68963         and 2.6.x.
68964         (__format__, __printf__): Remove definitions.
68965         * lib/argp-fmtstream.h: Likewise.
68966         * lib/argp.h: Likewise.
68967         * lib/error.h: Likewise.
68968         * lib/vasnprintf.h: Likewise.
68969         * lib/xprintf.h: Likewise.
68970         * lib/xvasprintf.h: Likewise.
68971         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68973 2010-01-18  Bruno Haible  <bruno@clisp.org>
68975         Tests for module 'tanl'.
68976         * modules/tanl-tests: New file.
68977         * tests/test-tanl.c: New file.
68979         Tests for module 'sqrtl'.
68980         * modules/sqrtl-tests: New file.
68981         * tests/test-sqrtl.c: New file.
68983         Tests for module 'sinl'.
68984         * modules/sinl-tests: New file.
68985         * tests/test-sinl.c: New file.
68987         Tests for module 'logl'.
68988         * modules/logl-tests: New file.
68989         * tests/test-logl.c: New file.
68991         Tests for module 'expl'.
68992         * modules/expl-tests: New file.
68993         * tests/test-expl.c: New file.
68995         Tests for module 'cosl'.
68996         * modules/cosl-tests: New file.
68997         * tests/test-cosl.c: New file.
68999         Tests for module 'atanl'.
69000         * modules/atanl-tests: New file.
69001         * tests/test-atanl.c: New file.
69003         Tests for module 'asinl'.
69004         * modules/asinl-tests: New file.
69005         * tests/test-asinl.c: New file.
69007         Tests for module 'acosl'.
69008         * modules/acosl-tests: New file.
69009         * tests/test-acosl.c: New file.
69011         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
69012         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
69013         tanl): Use the standard gnulib idiom.
69014         * lib/cosl.c: Don't include trigl.c and sincosl.c.
69015         * lib/sinl.c: Likewise.
69016         * lib/tanl.c: Don't include trigl.c.
69017         (kernel_tanl): Make static.
69018         * lib/sincosl.c: Include trigl.h first.
69019         * lib/trigl.c: Likewise.
69020         * m4/acosl.m4: New file.
69021         * m4/asinl.m4: New file.
69022         * m4/atanl.m4: New file.
69023         * m4/cosl.m4: New file.
69024         * m4/expl.m4: New file.
69025         * m4/logl.m4: New file.
69026         * m4/sinl.m4: New file.
69027         * m4/sqrtl.m4: New file.
69028         * m4/tanl.m4: New file.
69029         * m4/mathl.m4: Remove file.
69030         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
69031         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
69032         Don't initialize GNULIB_MATHL.
69033         * modules/acosl: New file.
69034         * modules/asinl: New file.
69035         * modules/atanl: New file.
69036         * modules/cosl: New file.
69037         * modules/expl: New file.
69038         * modules/logl: New file.
69039         * modules/sinl: New file.
69040         * modules/sqrtl: New file.
69041         * modules/tanl: New file.
69042         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
69043         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
69044         substitute GNULIB_MATHL.
69045         * modules/mathl: Rewritten.
69046         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
69047         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
69048         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
69049         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
69050         * doc/posix-functions/expl.texi: Mention the 'expl' module.
69051         * doc/posix-functions/logl.texi: Mention the 'logl' module.
69052         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
69053         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
69054         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
69056 2010-01-18  Bruno Haible  <bruno@clisp.org>
69058         sqrt: Make gl_FUNC_SQRT requirable.
69059         * m4/sqrt.m4: New file.
69060         * modules/sqrt (Files): Add it.
69061         (configure.ac): Invoke gl_FUNC_SQRT.
69063 2010-01-18  Bruno Haible  <bruno@clisp.org>
69065         New modules for common <math.h> functions.
69066         * m4/mathfunc.m4: New file.
69067         * modules/acos: New file.
69068         * modules/asin: New file.
69069         * modules/atan: New file.
69070         * modules/atan2: New file.
69071         * modules/cbrt: New file.
69072         * modules/copysign: New file.
69073         * modules/cos: New file.
69074         * modules/cosh: New file.
69075         * modules/erf: New file.
69076         * modules/erfc: New file.
69077         * modules/exp: New file.
69078         * modules/fabs: New file.
69079         * modules/fmod: New file.
69080         * modules/hypot: New file.
69081         * modules/j0: New file.
69082         * modules/j1: New file.
69083         * modules/jn: New file.
69084         * modules/ldexp: New file.
69085         * modules/lgamma: New file.
69086         * modules/log: New file.
69087         * modules/log10: New file.
69088         * modules/log1p: New file.
69089         * modules/logb: New file.
69090         * modules/modf: New file.
69091         * modules/nextafter: New file.
69092         * modules/pow: New file.
69093         * modules/remainder: New file.
69094         * modules/rint: New file.
69095         * modules/sin: New file.
69096         * modules/sinh: New file.
69097         * modules/sqrt: New file.
69098         * modules/tan: New file.
69099         * modules/tanh: New file.
69100         * modules/y0: New file.
69101         * modules/y1: New file.
69102         * modules/yn: New file.
69103         * doc/posix-functions/acos.texi: Mention the 'acos' module.
69104         * doc/posix-functions/asin.texi: Mention the 'asin' module.
69105         * doc/posix-functions/atan.texi: Mention the 'atan' module.
69106         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
69107         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
69108         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
69109         * doc/posix-functions/cos.texi: Mention the 'cos' module.
69110         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
69111         * doc/posix-functions/erf.texi: Mention the 'erf' module.
69112         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
69113         * doc/posix-functions/exp.texi: Mention the 'exp' module.
69114         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
69115         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
69116         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
69117         * doc/posix-functions/j0.texi: Mention the 'j0' module.
69118         * doc/posix-functions/j1.texi: Mention the 'j1' module.
69119         * doc/posix-functions/jn.texi: Mention the 'jn' module.
69120         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
69121         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
69122         * doc/posix-functions/log.texi: Mention the 'log' module.
69123         * doc/posix-functions/log10.texi: Mention the 'log10' module.
69124         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
69125         * doc/posix-functions/logb.texi: Mention the 'logb' module.
69126         * doc/posix-functions/modf.texi: Mention the 'modf' module.
69127         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
69128         * doc/posix-functions/pow.texi: Mention the 'pow' module.
69129         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
69130         * doc/posix-functions/rint.texi: Mention the 'rint' module.
69131         * doc/posix-functions/sin.texi: Mention the 'sin' module.
69132         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
69133         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
69134         * doc/posix-functions/tan.texi: Mention the 'tan' module.
69135         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
69136         * doc/posix-functions/y0.texi: Mention the 'y0' module.
69137         * doc/posix-functions/y1.texi: Mention the 'y1' module.
69138         * doc/posix-functions/yn.texi: Mention the 'yn' module.
69140 2010-01-18  Jim Meyering  <meyering@redhat.com>
69142         ignore-value: relax license to LGPLv2+
69143         * modules/ignore-value (License): Relax to LGPLv2+.
69145         getdate: don't leak when TZ contains two or more '"'s
69146         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
69147         double quote in TZ after the first one.
69149         readtokens: do not leak internal token_lengths buffer
69150         * lib/readtokens.c (readtokens): Free the local, lengths,
69151         when the supplied "token_lengths" parameter is NULL.
69153 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69155         Fix a couple of missing LIBTHREAD link failures on AIX.
69156         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
69157         $(LIBTHREAD).
69158         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
69160         Link test-poll against INET_PTON_LIB.
69161         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
69162         for inet_pton on Solaris 10.
69164 2010-01-17  Bruno Haible  <bruno@clisp.org>
69166         unistdio/*-sprintf: Fix typo in module description.
69167         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
69168         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
69169         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
69170         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
69171         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
69172         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
69173         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
69174         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
69176 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69178         gnulib-tool: fix filelist for AIX, HP-UX ksh.
69179         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
69180         variables in shell case patterns, for AIX and HP-UX ksh.
69182         Split large sed scripts, for HP-UX sed.
69183         * modules/stdio: Split sed scripts around 50 sed commands,
69184         to avoid HP-UX limit of 99 commands, in the near future.
69185         * modules/string: Likewise.
69186         * modules/unistd: Likewise.
69188         gnulib-tool: avoid writing in the current directory.
69189         * gnulib-tool (func_emit_lib_Makefile_am)
69190         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
69191         not in the current directory, so concurrent gnulib-tool
69192         instances do not interfere.
69194 2010-01-16  Jim Meyering  <meyering@redhat.com>
69196         doc: update users.txt
69197         * users.txt: Add grep.
69198         (diffutils, gzip): Update URLs.
69200 2010-01-12  Bruno Haible  <bruno@clisp.org>
69202         posix_spawn: Avoid test failure on Cygwin.
69203         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
69204         characters.
69205         Reported by Simon Josefsson.
69207 2010-01-12  Bruno Haible  <bruno@clisp.org>
69209         * tests/test-cond.c (main): When skipping the test, show the reason.
69211 2010-01-12  Simon Josefsson  <simon@josefsson.org>
69213         * lib/striconv.c (str_cd_iconv): Avoid if before free.
69215 2010-01-12  Simon Josefsson  <simon@josefsson.org>
69217         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
69218         VC_LIST_ALWAYS_EXCLUDE_REGEX.
69220 2010-01-12  Eric Blake  <ebb9@byu.net>
69222         build: guarantee AS_VAR_IF
69223         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
69224         (gl_AS_VAR_IF): Move...
69225         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
69226         Reported by Simon Josefsson.
69228 2010-01-12  Simon Josefsson  <simon@josefsson.org>
69230         * lib/stdio.in.h: Fix typo.
69232 2010-01-12  Simon Josefsson  <simon@josefsson.org>
69234         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
69235         libgpg-error.
69237 2010-01-12  Simon Josefsson  <simon@josefsson.org>
69239         * tests/test-xalloc-die.sh: Use $EXEEXT.
69241 2010-01-12  Simon Josefsson  <simon@josefsson.org>
69242             Bruno Haible  <bruno@clisp.org>
69244         getlogin, getlogin_r: Avoid test failure.
69245         * tests/test-getlogin.c: Include <stdio.h>.
69246         (main): Skip the test when the function fails because stdin is not a
69247         tty.
69248         * tests/test-getlogin_r.c: Include <stdio.h>.
69249         (main): Skip the test when the function fails because stdin is not a
69250         tty.
69252 2010-01-11  Eric Blake  <ebb9@byu.net>
69254         tests: avoid more large file warnings
69255         * tests/test-fflush.c: Avoid warning about ftell use.
69256         * tests/test-fseek.c: Avoid warning about fseek use.
69258 2010-01-10  Bruno Haible  <bruno@clisp.org>
69260         nproc: Work better on Linux when /proc and /sys are not mounted.
69261         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
69262         as lower bound when, on glibc/Linux systems,
69263         sysconf (_SC_NPROCESSORS_CONF) returns 1.
69264         Suggested by Pádraig Brady <P@draigbrady.com>.
69265         Reported by Dmitry V. Levin <ldv@altlinux.org>.
69267         nproc: Refactor.
69268         * lib/nproc.c (num_processors_via_affinity_mask): New function,
69269         extracted from num_processors.
69270         (num_processors): Call it.
69272 2010-01-11  Jim Meyering  <meyering@redhat.com>
69274         utimecmp: avoid new warning from upcoming gcc-4.5.0
69275         * lib/utimecmp.c (BILLION): Define using #define rather than an
69276         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
69278 2010-01-11  Eric Blake  <ebb9@byu.net>
69280         math: add portability warnings for classification macros
69281         * modules/math (Depends-on): Add warn-on-use.
69282         (Makefile.am): Provide new substitutions.
69283         * m4/math_h.m4 (gl_MATH_H): Require inline.
69284         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
69285         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
69286         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
69287         implement warnings.
69289         unistd: warn on use of environ without module
69290         * modules/unistd (Depends-on): Add warn-on-use.
69291         (Makefile.am): Provide new substitutions.
69292         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
69293         * lib/unistd.in.h (environ): Wrap with a warning helper function.
69295         stdio: warn on suspicious uses
69296         * modules/stdio (Depends-on): Add warn-on-use.
69297         (Makefile.am): Provide new substitutions.
69298         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
69299         fseeko.
69300         * lib/stdio.in.h (gets): Always warn on use.
69301         (fseek, ftell): Adjust when warnings are issued, and honor
69302         _GL_NO_LARGE_FILES as a way to silence the warning.
69303         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
69304         any warning about large file offsets.
69305         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
69306         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
69307         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
69308         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
69309         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
69310         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
69311         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
69312         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
69314         warn-on-use: new module
69315         * modules/warn-on-use: New file.
69316         * build-aux/warn-on-use.h: Likewise.
69317         * m4/warn-on-use.m4: Likewise.
69318         * MODULES.html.sh (Support for building): Mention it.
69320 2010-01-10  Bruno Haible  <bruno@clisp.org>
69322         Tests for module 'unistr/u32-strdup'.
69323         * modules/unistr/u32-strdup-tests: New file.
69324         * tests/unistr/test-u32-strdup.c: New file.
69326         Tests for module 'unistr/u16-strdup'.
69327         * modules/unistr/u16-strdup-tests: New file.
69328         * tests/unistr/test-u16-strdup.c: New file.
69330         Tests for module 'unistr/u8-strdup'.
69331         * modules/unistr/u8-strdup-tests: New file.
69332         * tests/unistr/test-u8-strdup.c: New file.
69333         * tests/unistr/test-strdup.h: New file.
69335         Tests for module 'unistr/u32-strncmp'.
69336         * modules/unistr/u32-strncmp-tests: New file.
69337         * tests/unistr/test-u32-strncmp.c: New file.
69339         Tests for module 'unistr/u16-strncmp'.
69340         * modules/unistr/u16-strncmp-tests: New file.
69341         * tests/unistr/test-u16-strncmp.c: New file.
69343         Tests for module 'unistr/u8-strncmp'.
69344         * modules/unistr/u8-strncmp-tests: New file.
69345         * tests/unistr/test-u8-strncmp.c: New file.
69346         * tests/unistr/test-strncmp.h: New file.
69348         Tests for module 'unistr/u32-strcoll'.
69349         * modules/unistr/u32-strcoll-tests: New file.
69350         * tests/unistr/test-u32-strcoll.c: New file.
69352         Tests for module 'unistr/u16-strcoll'.
69353         * modules/unistr/u16-strcoll-tests: New file.
69354         * tests/unistr/test-u16-strcoll.c: New file.
69356         Tests for module 'unistr/u8-strcoll'.
69357         * modules/unistr/u8-strcoll-tests: New file.
69358         * tests/unistr/test-u8-strcoll.c: New file.
69360         Tests for module 'unistr/u32-strcmp'.
69361         * modules/unistr/u32-strcmp-tests: New file.
69362         * tests/unistr/test-u32-strcmp.c: New file.
69363         * tests/unistr/test-u32-strcmp.h: New file.
69365         Tests for module 'unistr/u16-strcmp'.
69366         * modules/unistr/u16-strcmp-tests: New file.
69367         * tests/unistr/test-u16-strcmp.c: New file.
69368         * tests/unistr/test-u16-strcmp.h: New file.
69370         Tests for module 'unistr/u8-strcmp'.
69371         * modules/unistr/u8-strcmp-tests: New file.
69372         * tests/unistr/test-u8-strcmp.c: New file.
69373         * tests/unistr/test-u8-strcmp.h: New file.
69374         * tests/unistr/test-strcmp.h: New file.
69376         Tests for module 'unistr/u32-strncat'.
69377         * modules/unistr/u32-strncat-tests: New file.
69378         * tests/unistr/test-u32-strncat.c: New file.
69380         Tests for module 'unistr/u16-strncat'.
69381         * modules/unistr/u16-strncat-tests: New file.
69382         * tests/unistr/test-u16-strncat.c: New file.
69384         Tests for module 'unistr/u8-strncat'.
69385         * modules/unistr/u8-strncat-tests: New file.
69386         * tests/unistr/test-u8-strncat.c: New file.
69387         * tests/unistr/test-strncat.h: New file.
69389         Tests for module 'unistr/u32-strcat'.
69390         * modules/unistr/u32-strcat-tests: New file.
69391         * tests/unistr/test-u32-strcat.c: New file.
69393         Tests for module 'unistr/u16-strcat'.
69394         * modules/unistr/u16-strcat-tests: New file.
69395         * tests/unistr/test-u16-strcat.c: New file.
69397         Tests for module 'unistr/u8-strcat'.
69398         * modules/unistr/u8-strcat-tests: New file.
69399         * tests/unistr/test-u8-strcat.c: New file.
69400         * tests/unistr/test-strcat.h: New file.
69402         Tests for module 'unistr/u32-stpncpy'.
69403         * modules/unistr/u32-stpncpy-tests: New file.
69404         * tests/unistr/test-u32-stpncpy.c: New file.
69406         Tests for module 'unistr/u16-stpncpy'.
69407         * modules/unistr/u16-stpncpy-tests: New file.
69408         * tests/unistr/test-u16-stpncpy.c: New file.
69410         Tests for module 'unistr/u8-stpncpy'.
69411         * modules/unistr/u8-stpncpy-tests: New file.
69412         * tests/unistr/test-u8-stpncpy.c: New file.
69413         * tests/unistr/test-stpncpy.h: New file.
69415         Tests for module 'unistr/u32-strncpy'.
69416         * modules/unistr/u32-strncpy-tests: New file.
69417         * tests/unistr/test-u32-strncpy.c: New file.
69419         Tests for module 'unistr/u16-strncpy'.
69420         * modules/unistr/u16-strncpy-tests: New file.
69421         * tests/unistr/test-u16-strncpy.c: New file.
69423         Tests for module 'unistr/u8-strncpy'.
69424         * modules/unistr/u8-strncpy-tests: New file.
69425         * tests/unistr/test-u8-strncpy.c: New file.
69426         * tests/unistr/test-strncpy.h: New file.
69428         Tests for module 'unistr/u32-stpcpy'.
69429         * modules/unistr/u32-stpcpy-tests: New file.
69430         * tests/unistr/test-u32-stpcpy.c: New file.
69432         Tests for module 'unistr/u16-stpcpy'.
69433         * modules/unistr/u16-stpcpy-tests: New file.
69434         * tests/unistr/test-u16-stpcpy.c: New file.
69436         Tests for module 'unistr/u8-stpcpy'.
69437         * modules/unistr/u8-stpcpy-tests: New file.
69438         * tests/unistr/test-u8-stpcpy.c: New file.
69439         * tests/unistr/test-stpcpy.h: New file.
69441         Tests for module 'unistr/u32-strcpy'.
69442         * modules/unistr/u32-strcpy-tests: New file.
69443         * tests/unistr/test-u32-strcpy.c: New file.
69445         Tests for module 'unistr/u16-strcpy'.
69446         * modules/unistr/u16-strcpy-tests: New file.
69447         * tests/unistr/test-u16-strcpy.c: New file.
69449         Tests for module 'unistr/u8-strcpy'.
69450         * modules/unistr/u8-strcpy-tests: New file.
69451         * tests/unistr/test-u8-strcpy.c: New file.
69452         * tests/unistr/test-strcpy.h: New file.
69454         Tests for module 'unistr/u32-strnlen'.
69455         * modules/unistr/u32-strnlen-tests: New file.
69456         * tests/unistr/test-u32-strnlen.c: New file.
69458         Tests for module 'unistr/u16-strnlen'.
69459         * modules/unistr/u16-strnlen-tests: New file.
69460         * tests/unistr/test-u16-strnlen.c: New file.
69462         Tests for module 'unistr/u8-strnlen'.
69463         * modules/unistr/u8-strnlen-tests: New file.
69464         * tests/unistr/test-u8-strnlen.c: New file.
69465         * tests/unistr/test-strnlen.h: New file.
69467         Tests for module 'unistr/u32-strlen'.
69468         * modules/unistr/u32-strlen-tests: New file.
69469         * tests/unistr/test-u32-strlen.c: New file.
69471         Tests for module 'unistr/u16-strlen'.
69472         * modules/unistr/u16-strlen-tests: New file.
69473         * tests/unistr/test-u16-strlen.c: New file.
69475         Tests for module 'unistr/u8-strlen'.
69476         * modules/unistr/u8-strlen-tests: New file.
69477         * tests/unistr/test-u8-strlen.c: New file.
69479         Tests for module 'unistr/u32-prev'.
69480         * modules/unistr/u32-prev-tests: New file.
69481         * tests/unistr/test-u32-prev.c: New file.
69483         Tests for module 'unistr/u16-prev'.
69484         * modules/unistr/u16-prev-tests: New file.
69485         * tests/unistr/test-u16-prev.c: New file.
69487         Tests for module 'unistr/u8-prev'.
69488         * modules/unistr/u8-prev-tests: New file.
69489         * tests/unistr/test-u8-prev.c: New file.
69491         Tests for module 'unistr/u32-next'.
69492         * modules/unistr/u32-next-tests: New file.
69493         * tests/unistr/test-u32-next.c: New file.
69495         Tests for module 'unistr/u16-next'.
69496         * modules/unistr/u16-next-tests: New file.
69497         * tests/unistr/test-u16-next.c: New file.
69499         Tests for module 'unistr/u8-next'.
69500         * modules/unistr/u8-next-tests: New file.
69501         * tests/unistr/test-u8-next.c: New file.
69503         Tests for module 'unistr/u32-strmbtouc'.
69504         * modules/unistr/u32-strmbtouc-tests: New file.
69505         * tests/unistr/test-u32-strmbtouc.c: New file.
69507         Tests for module 'unistr/u16-strmbtouc'.
69508         * modules/unistr/u16-strmbtouc-tests: New file.
69509         * tests/unistr/test-u16-strmbtouc.c: New file.
69511         Tests for module 'unistr/u8-strmbtouc'.
69512         * modules/unistr/u8-strmbtouc-tests: New file.
69513         * tests/unistr/test-u8-strmbtouc.c: New file.
69515         Tests for module 'unistr/u32-strmblen'.
69516         * modules/unistr/u32-strmblen-tests: New file.
69517         * tests/unistr/test-u32-strmblen.c: New file.
69519         Tests for module 'unistr/u16-strmblen'.
69520         * modules/unistr/u16-strmblen-tests: New file.
69521         * tests/unistr/test-u16-strmblen.c: New file.
69523         Tests for module 'unistr/u8-strmblen'.
69524         * modules/unistr/u8-strmblen-tests: New file.
69525         * tests/unistr/test-u8-strmblen.c: New file.
69527         Tests for module 'unistr/u32-cpy-alloc'.
69528         * modules/unistr/u32-cpy-alloc-tests: New file.
69529         * tests/unistr/test-u32-cpy-alloc.c: New file.
69531         Tests for module 'unistr/u16-cpy-alloc'.
69532         * modules/unistr/u16-cpy-alloc-tests: New file.
69533         * tests/unistr/test-u16-cpy-alloc.c: New file.
69535         Tests for module 'unistr/u8-cpy-alloc'.
69536         * modules/unistr/u8-cpy-alloc-tests: New file.
69537         * tests/unistr/test-u8-cpy-alloc.c: New file.
69538         * tests/unistr/test-cpy-alloc.h: New file.
69540         Tests for module 'unistr/u32-mbsnlen'.
69541         * modules/unistr/u32-mbsnlen-tests: New file.
69542         * tests/unistr/test-u32-mbsnlen.c: New file.
69544         Tests for module 'unistr/u16-mbsnlen'.
69545         * modules/unistr/u16-mbsnlen-tests: New file.
69546         * tests/unistr/test-u16-mbsnlen.c: New file.
69548         Tests for module 'unistr/u8-mbsnlen'.
69549         * modules/unistr/u8-mbsnlen-tests: New file.
69550         * tests/unistr/test-u8-mbsnlen.c: New file.
69552         Tests for module 'unistr/u32-chr'.
69553         * modules/unistr/u32-chr-tests: New file.
69554         * tests/unistr/test-u32-chr.c: New file.
69556         Tests for module 'unistr/u16-chr'.
69557         * modules/unistr/u16-chr-tests: New file.
69558         * tests/unistr/test-u16-chr.c: New file.
69560         Tests for module 'unistr/u8-chr'.
69561         * modules/unistr/u8-chr-tests: New file.
69562         * tests/unistr/test-u8-chr.c: New file.
69563         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
69565         Tests for module 'unistr/u32-cmp2'.
69566         * modules/unistr/u32-cmp2-tests: New file.
69567         * tests/unistr/test-u32-cmp2.c: New file.
69569         Tests for module 'unistr/u16-cmp2'.
69570         * modules/unistr/u16-cmp2-tests: New file.
69571         * tests/unistr/test-u16-cmp2.c: New file.
69573         Tests for module 'unistr/u8-cmp2'.
69574         * modules/unistr/u8-cmp2-tests: New file.
69575         * tests/unistr/test-u8-cmp2.c: New file.
69576         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
69578         Tests for module 'unistr/u32-cmp'.
69579         * modules/unistr/u32-cmp-tests: New file.
69580         * tests/unistr/test-u32-cmp.c: New file.
69582         Tests for module 'unistr/u16-cmp'.
69583         * modules/unistr/u16-cmp-tests: New file.
69584         * tests/unistr/test-u16-cmp.c: New file.
69586         Tests for module 'unistr/u8-cmp'.
69587         * modules/unistr/u8-cmp-tests: New file.
69588         * tests/unistr/test-u8-cmp.c: New file.
69589         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
69591         Tests for module 'unistr/u32-set'.
69592         * modules/unistr/u32-set-tests: New file.
69593         * tests/unistr/test-u32-set.c: New file.
69595         Tests for module 'unistr/u16-set'.
69596         * modules/unistr/u16-set-tests: New file.
69597         * tests/unistr/test-u16-set.c: New file.
69599         Tests for module 'unistr/u8-set'.
69600         * modules/unistr/u8-set-tests: New file.
69601         * tests/unistr/test-u8-set.c: New file.
69602         * tests/unistr/test-set.h: New file.
69604         Tests for module 'unistr/u32-move'.
69605         * modules/unistr/u32-move-tests: New file.
69606         * tests/unistr/test-u32-move.c: New file.
69608         Tests for module 'unistr/u16-move'.
69609         * modules/unistr/u16-move-tests: New file.
69610         * tests/unistr/test-u16-move.c: New file.
69612         Tests for module 'unistr/u8-move'.
69613         * modules/unistr/u8-move-tests: New file.
69614         * tests/unistr/test-u8-move.c: New file.
69615         * tests/unistr/test-move.h: New file.
69617         Tests for module 'unistr/u32-cpy'.
69618         * modules/unistr/u32-cpy-tests: New file.
69619         * tests/unistr/test-u32-cpy.c: New file.
69621         Tests for module 'unistr/u16-cpy'.
69622         * modules/unistr/u16-cpy-tests: New file.
69623         * tests/unistr/test-u16-cpy.c: New file.
69625         Tests for module 'unistr/u8-cpy'.
69626         * modules/unistr/u8-cpy-tests: New file.
69627         * tests/unistr/test-u8-cpy.c: New file.
69628         * tests/unistr/test-cpy.h: New file.
69630 2010-01-09  Bruno Haible  <bruno@clisp.org>
69632         Tests for module 'unistr/u32-uctomb'.
69633         * modules/unistr/u32-uctomb-tests: New file.
69634         * tests/unistr/test-u32-uctomb.c: New file.
69636         Tests for module 'unistr/u16-uctomb'.
69637         * modules/unistr/u16-uctomb-tests: New file.
69638         * tests/unistr/test-u16-uctomb.c: New file.
69640         Tests for module 'unistr/u8-uctomb'.
69641         * modules/unistr/u8-uctomb-tests: New file.
69642         * tests/unistr/test-u8-uctomb.c: New file.
69644         Tests for module 'unistr/u32-mbtoucr'.
69645         * modules/unistr/u32-mbtoucr-tests: New file.
69646         * tests/unistr/test-u32-mbtoucr.c: New file.
69648         Tests for module 'unistr/u16-mbtoucr'.
69649         * modules/unistr/u16-mbtoucr-tests: New file.
69650         * tests/unistr/test-u16-mbtoucr.c: New file.
69652         Tests for module 'unistr/u8-mbtoucr'.
69653         * modules/unistr/u8-mbtoucr-tests: New file.
69654         * tests/unistr/test-u8-mbtoucr.c: New file.
69656         Tests for module 'unistr/u32-mbtouc'.
69657         * modules/unistr/u32-mbtouc-tests: New file.
69658         * tests/unistr/test-u32-mbtouc.c: New file.
69660         Tests for module 'unistr/u16-mbtouc'.
69661         * modules/unistr/u16-mbtouc-tests: New file.
69662         * tests/unistr/test-u16-mbtouc.c: New file.
69664         Tests for module 'unistr/u8-mbtouc'.
69665         * modules/unistr/u8-mbtouc-tests: New file.
69666         * tests/unistr/test-u8-mbtouc.c: New file.
69668         Tests for module 'unistr/u32-mbtouc-unsafe'.
69669         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
69670         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
69671         * tests/unistr/test-u32-mbtouc.h: New file.
69673         Tests for module 'unistr/u16-mbtouc-unsafe'.
69674         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
69675         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
69676         * tests/unistr/test-u16-mbtouc.h: New file.
69678         Tests for module 'unistr/u8-mbtouc-unsafe'.
69679         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
69680         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
69681         * tests/unistr/test-u8-mbtouc.h: New file.
69683         Tests for module 'unistr/u32-mblen'.
69684         * modules/unistr/u32-mblen-tests: New file.
69685         * tests/unistr/test-u32-mblen.c: New file.
69687         Tests for module 'unistr/u16-mblen'.
69688         * modules/unistr/u16-mblen-tests: New file.
69689         * tests/unistr/test-u16-mblen.c: New file.
69691         Tests for module 'unistr/u8-mblen'.
69692         * modules/unistr/u8-mblen-tests: New file.
69693         * tests/unistr/test-u8-mblen.c: New file.
69695         Tests for module 'unistr/u32-to-u16'.
69696         * modules/unistr/u32-to-u16-tests: New file.
69697         * tests/unistr/test-u32-to-u16.c: New file.
69699         Tests for module 'unistr/u32-to-u8'.
69700         * modules/unistr/u32-to-u8-tests: New file.
69701         * tests/unistr/test-u32-to-u8.c: New file.
69703         Tests for module 'unistr/u16-to-u32'.
69704         * modules/unistr/u16-to-u32-tests: New file.
69705         * tests/unistr/test-u16-to-u32.c: New file.
69707         Tests for module 'unistr/u16-to-u8'.
69708         * modules/unistr/u16-to-u8-tests: New file.
69709         * tests/unistr/test-u16-to-u8.c: New file.
69711         Tests for module 'unistr/u8-to-u32'.
69712         * modules/unistr/u8-to-u32-tests: New file.
69713         * tests/unistr/test-u8-to-u32.c: New file.
69715         Tests for module 'unistr/u8-to-u16'.
69716         * modules/unistr/u8-to-u16-tests: New file.
69717         * tests/unistr/test-u8-to-u16.c: New file.
69719         Tests for module 'unistr/u32-check'.
69720         * modules/unistr/u32-check-tests: New file.
69721         * tests/unistr/test-u32-check.c: New file.
69723         Tests for module 'unistr/u16-check'.
69724         * modules/unistr/u16-check-tests: New file.
69725         * tests/unistr/test-u16-check.c: New file.
69727         Tests for module 'unistr/u8-check'.
69728         * modules/unistr/u8-check-tests: New file.
69729         * tests/unistr/test-u8-check.c: New file.
69731         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
69732         (category_equals): New function.
69733         (main): Add more tests.
69734         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
69736         * tests/unictype/test-bidi_byname.c (main): Add more tests.
69738 2010-01-10  Bruno Haible  <bruno@clisp.org>
69740         unistr/u*-strcoll: Try harder to distinguish different strings.
69741         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
69742         compare s1 and s2 to see if they are different.
69744 2010-01-10  Bruno Haible  <bruno@clisp.org>
69746         unistr/u*-stpncpy: Fix the return value.
69747         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
69748         description of the return value consistent with stpncpy in glibc.
69749         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
69750         written non-NUL unit.
69752 2010-01-10  Bruno Haible  <bruno@clisp.org>
69754         unistr/u*-next: Add missing dependencies.
69755         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
69756         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
69757         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
69759 2010-01-10  Bruno Haible  <bruno@clisp.org>
69761         unistr/u8-mbsnlen: Fix return value for incomplete character.
69762         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
69763         u8_mblen.
69764         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
69765         Remove unistr/u8-mblen.
69766         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
69767         u16_mblen.
69768         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
69769         Remove unistr/u16-mblen.
69771 2010-01-10  Bruno Haible  <bruno@clisp.org>
69773         wchar: Fix compilation error when <wchar.h> is used from coreutils.
69774         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
69775         Reported by Brian Gough <bjg@gnu.org> and
69776         Chris Clayton <chris2553@googlemail.com> via
69777         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
69779 2010-01-09  Bruno Haible  <bruno@clisp.org>
69781         unistr/u16-to-u32: Reject invalid input.
69782         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
69783         u16_mbtouc.
69784         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
69785         Remove unistr/u16-mbtouc.
69787         unistr/u16-to-u8: Reject invalid input.
69788         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
69789         u16_mbtouc.
69790         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
69791         Remove unistr/u16-mbtouc.
69793         unistr/u8-to-u32: Reject invalid input.
69794         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
69795         u8_mbtouc.
69796         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
69797         Remove unistr/u8-mbtouc.
69799         unistr/u8-to-u16: Reject invalid input.
69800         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
69801         u8_mbtouc.
69802         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
69803         Remove unistr/u8-mbtouc.
69805 2010-01-09  Bruno Haible  <bruno@clisp.org>
69807         Tests for module 'getlogin'.
69808         * modules/getlogin-tests: New file.
69809         * tests/test-getlogin.c: New file.
69811         New module 'getlogin'.
69812         * lib/unistd.in.h (getlogin): New declaration.
69813         * lib/getlogin.c: New file.
69814         * m4/getlogin.m4: New file.
69815         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
69816         HAVE_GETLOGIN.
69817         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
69818         HAVE_GETLOGIN.
69819         * modules/getlogin: New file.
69820         * doc/posix-functions/getlogin.texi: Mention the new module.
69821         Reported by John W. Eaton <jwe@gnu.org>.
69823 2010-01-09  Bruno Haible  <bruno@clisp.org>
69825         getlogin_r: Support for native Windows.
69826         * lib/getlogin_r.c: Include <windows.h>
69827         (getlogin_r): Implement for native Windows.
69828         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
69829         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
69830         via John W. Eaton <jwe@gnu.org>.
69832 2010-01-09  Bruno Haible  <bruno@clisp.org>
69834         getlogin_r: Small fixes.
69835         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
69836         succeeds.
69837         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
69838         before testing whether getlogin_r is declared. No need to set
69839         HAVE_DECL_GETLOGIN_R to 1.
69840         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
69842 2010-01-09  Bruno Haible  <bruno@clisp.org>
69844         * lib/unistd.in.h (getlogin_r): Add comment.
69846 2010-01-09  Bruno Haible  <bruno@clisp.org>
69848         Tests for module 'getlogin_r'.
69849         * modules/getlogin_r-tests: New file.
69850         * tests/test-getlogin_r.c: New file.
69852 2010-01-09  Jim Meyering  <meyering@redhat.com>
69854         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
69855         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
69856         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
69858 2010-01-08  Simon Josefsson  <simon@josefsson.org>
69860         * lib/dup2.c (rpl_dup2): Improve comment.
69862 2010-01-08  Eric Blake  <ebb9@byu.net>
69864         maint.mk: allow packages to add makefile @@ exceptions
69865         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
69866         (sc_makefile_check): Rename...
69867         (sc_makefile_at_at_check): ...to this, and use hook.
69869         dup2: work around mingw bug
69870         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
69871         Reported by Simon Josefsson.
69873 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
69875         glob: Fix C++ compilation.
69876         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
69877         C++.
69879 2010-01-07  Bruno Haible  <bruno@clisp.org>
69881         Fix indentation of wctype.in.h, broken since 2007-01-06.
69882         * lib/wctype.in.h: Fix indentation of preprocessor directives.
69884 2010-01-07  Bruno Haible  <bruno@clisp.org>
69886         mbslen: Avoid collision with system function.
69887         * lib/string.in.h [MirBSD]: Include <wchar.h>.
69888         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
69889         * m4/mbslen.m4: New file.
69890         * modules/mbslen (Files): Add it.
69891         (configure.ac): Invoke gl_MBSLEN.
69892         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
69893         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
69894         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
69895         via Ian Beckwith <ianb@erislabs.net>.
69897 2010-01-07  Bruno Haible  <bruno@clisp.org>
69899         dirent: Document the last fix.
69900         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
69902 2010-01-07  Bruno Haible  <bruno@clisp.org>
69904         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
69905         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
69906         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
69907         va_list are defined.
69908         * doc/posix-headers/stdio.texi: Document the bug of missing types.
69909         Reported by Eric Blake.
69911 2010-01-07  Bruno Haible  <bruno@clisp.org>
69913         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
69914         * modules/xlist (Depends-on): Add 'list',
69915         * modules/xoset (Depends-on): Add 'oset'.
69916         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
69918 2010-01-07  Bruno Haible  <bruno@clisp.org>
69920         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
69921         * doc/posix-functions/strncasecmp.texi: Likewise.
69923 2010-01-07  Bruno Haible  <bruno@clisp.org>
69925         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
69927 2010-01-07  John W. Eaton  <jwe@octave.org>
69929         wctype: allow C++ use
69930         * lib/wctype.in.h: Add extern "C" block for C++.
69932 2010-01-06  Eric Blake  <ebb9@byu.net>
69934         maint.mk: detect incorrect GFDL usage
69935         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
69937 2010-01-06  Jim Meyering  <meyering@redhat.com>
69938         and Eric Blake  <ebb9@byu.net>
69940         maint.mk: ignore multi-line copyright in NEWS
69941         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
69943 2010-01-06  Eric Blake  <ebb9@byu.net>
69945         select: add missing dependency
69946         * modules/select-tests (Depends-on): Move sockets dependency...
69947         * modules/select (Depends-on): ...here.
69948         Reported by Ian Beckwith.
69950         doc: regenerate INSTALL
69951         * doc/INSTALL: Reflect recent autoconf update.
69952         * doc/INSTALL.ISO: Likewise.
69953         * doc/INSTALL.UTF-8: Likewise.
69955         pread: fix compilation on glibc
69956         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
69957         Reported by Ralf Wildenhues.
69959         dirent: fix test failure
69960         * lib/dirent.in.h (includes): Guarantee ino_t.
69961         Reported by Ralf Wildenhues.
69963 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
69965         linkat, renameat: avoid bad free
69966         * lib/at-func2.c (at_func2): Fix typo.
69967         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
69969 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69971         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
69972         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
69973         to avoid failure of symlink test later.
69975 2010-01-06  Eric Blake  <ebb9@byu.net>
69977         stdio, unistd: guarantee ssize_t
69978         * lib/unistd.in.h (includes): Ensure that types required by POSIX
69979         2008 are exposed when needed.
69980         * lib/stdio.in.h (includes): Likewise.
69981         Reported by Ralf Wildenhues.
69983 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
69985         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
69986         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
69987         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
69989 2010-01-06  Jim Meyering  <meyering@redhat.com>
69991         readtokens: this module *does* require xalloc.h
69992         It uses only functions that were omitted by the old syntax-check rule.
69993         * lib/readtokens.c: Include "xalloc.h" once again.
69994         * modules/readtokens (Depends-on): Add xalloc.
69995         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
69997 2010-01-05  Eric Blake  <ebb9@byu.net>
69999         maint: support 'make announcement' from a VPATH build
70000         * top/maint.mk (announcement): Look for correct NEWS file.
70002 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
70004         utimens (fdutimens): ignore a negative FD, per contract
70005         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
70006         when we have a valid file descriptor.  Otherwise, using a brand
70007         new glibc (with just-patched futimens that now fails with EBADF)
70008         would cause this function to fail with ENOSYS.
70009         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
70010         See also http://bugzilla.redhat.com/552320.
70012 2010-01-05  Eric Blake  <ebb9@byu.net>
70014         strcase: document what it provides
70015         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
70016         gnulib module.
70017         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
70018         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
70020 2010-01-05  Jim Meyering  <meyering@redhat.com>
70022         maint: remove useless inclusions of "xalloc.h"
70023         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
70024         * lib/readtokens.c: Likewise.
70025         * lib/same.c: Likewise.
70026         * modules/getloadavg (Depends-on): Remove xalloc.
70027         * modules/readtokens: Likewise.
70028         * modules/same: Likewise.
70030         maint.mk: include 4 more function names in alloca.h-checking regexp
70031         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
70032         regexp.  Before, we would give a false-positive (saying alloca.h
70033         is included unnecessarily) when the only uses involved omitted symbols.
70035         xalloc.h: use consistent formatting
70036         * lib/xalloc.h: Move declarations to start in the first column.
70038 2010-01-05  Eric Blake  <ebb9@byu.net>
70040         mkdir: avoid xalloc
70041         * lib/mkdir.c (includes): Drop unused header.
70042         Reported by John W. Eaton.
70044 2010-01-04  Jim Meyering  <meyering@redhat.com>
70046         nl_langinfo: avoid configure-time syntax error
70047         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
70048         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
70049         the empty string.  Don't let that provoke a shell syntax error.
70051         regcomp, regexec, fnmatch: avoid array bounds read error
70052         * lib/regcomp.c (build_equiv_class): From glibc:
70053         Use only the low 24 bits of a findidx return value as an index
70054         into the weights array.  Patch by Ulrich Drepper:
70055         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
70056         * lib/regexec.c (check_node_accept_bytes): Likewise.
70057         * lib/fnmatch_loop.c (FCT): Likewise.
70059         regcomp: skip collseq lookup when there are no rules
70060         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
70061         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
70063         regcomp: recognize ill-formed { } expressions
70064         * lib/regcomp.c (parse_dup_op): From glibc:
70065         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
70067         regcomp: fix typo in comment
70068         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
70069         s/satisfy/satisfies/.
70071         regcomp: sync from glibc: remove dead store
70072         * lib/regcomp.c (duplicate_node_closure): Remove useless
70073         search_duplicated_node call and dead store.
70075         regcomp: sync from glibc; always use nl_langinfo
70076         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
70077         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
70078         * modules/regex (Depends-on): Add nl_langinfo.
70080 2010-01-04  Eric Blake  <ebb9@byu.net>
70082         fdopendir: fix configure test
70083         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
70085 2010-01-01  Bruno Haible  <bruno@clisp.org>
70087         wchar: Remove unused configure check.
70088         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
70090 2010-01-01  Eric Blake  <ebb9@byu.net>
70092         headers: make check of system header explicit
70093         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
70094         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
70095         ourselves.
70096         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
70097         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
70098         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
70099         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
70100         internals.
70101         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
70102         missing.
70103         Suggested by Bruno Haible.
70105 2010-01-01  Jim Meyering  <meyering@redhat.com>
70107         ChangeLog: tweak to eliminate unnecessary copyright line
70108         * ChangeLog: Remove a copyright line that was mistakenly updated
70109         by today's update-copyright run.  Reported by Eric Blake.
70111         test-update-copyright: don't let envvar setting cause test failure
70112         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
70114 2010-01-01  Bruno Haible  <bruno@clisp.org>
70116         localename: Avoid gcc warning.
70117         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
70118         function if it is not used.
70120 2010-01-01  Jim Meyering  <meyering@redhat.com>
70122         update nearly all FSF copyright year lists to include 2010
70123         Use the same procedure as for 2009, outlined in
70124         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
70126         version-etc: set COPYRIGHT_YEAR to 2010
70127         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
70129 2009-12-31  Eric Blake  <ebb9@byu.net>
70131         doc: correct availability of cygwin 1.5.x getopt
70132         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
70133         variables.
70134         * doc/posix-functions/opterr.texi (opterr): Likewise.
70135         * doc/posix-functions/optind.texi (optind): Likewise.
70136         * doc/posix-functions/optopt.texi (optopt): Likewise.
70137         * doc/posix-functions/tzname.texi (tzname): Likewise.
70139         openat: update maintainer
70140         * modules/openat (Maintainer): Add myself.
70142         utimens: avoid shadowing warning
70143         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
70144         buffers into one, to avoid shadowing, as well as avoiding a
70145         redundant stat.
70146         Reported by Jim Meyering.
70148         test-dup2: avoid compiler warning
70149         * tests/test-dup2.c (is_inheritable): Only define if used.
70151 2010-01-01  Bruno Haible  <bruno@clisp.org>
70153         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
70154         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
70155         defined, use wctomb instead of wcrtomb.
70157 2010-01-01  Bruno Haible  <bruno@clisp.org>
70159         iconv: Reject native Solaris iconv.
70160         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
70161         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
70163 2009-12-31  Bruno Haible  <bruno@clisp.org>
70165         * tests/test-signal.c (main): Remove test of 'SIG'.
70167 2009-12-31  Bruno Haible  <bruno@clisp.org>
70169         spawn: Fix incomplete fix.
70170         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
70171         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
70172         warnings for GNULIB_POSIXCHECK again.
70173         Reported by Eric Blake.
70175 2009-12-31  Bruno Haible  <bruno@clisp.org>
70177         Avoid namespace pollution on glibc systems.
70178         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
70179         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
70180         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
70181         glibc systems.
70183 2009-12-31  Bruno Haible  <bruno@clisp.org>
70185         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
70186         (gl_REPLACE_WCHAR_H): Turn into a no-op.
70187         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
70188         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
70189         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
70190         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
70191         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
70193 2009-12-31  Bruno Haible  <bruno@clisp.org>
70195         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
70196         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
70197         afterwards.
70199 2009-12-31  Bruno Haible  <bruno@clisp.org>
70201         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
70202         SYS_UTSNAME_H.
70204 2009-12-31  Bruno Haible  <bruno@clisp.org>
70206         spawn: Fix misapplied patch.
70207         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
70208         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
70209         warnings for GNULIB_POSIXCHECK.
70211 2009-12-31  Bruno Haible  <bruno@clisp.org>
70213         times: Update after sys_times changed.
70214         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
70215         * modules/times (Files): Add it.
70216         (configure.ac): Invoke gl_FUNC_TIMES.
70218 2009-12-31  Bruno Haible  <bruno@clisp.org>
70220         Use AC_C_INLINE where necessary.
70221         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
70222         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
70223         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
70224         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
70225         * m4/mbfile.m4 (gl_MBFILE): Likewise.
70226         * m4/mbiter.m4 (gl_MBITER): Likewise.
70227         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
70228         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
70229         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
70230         * modules/u64 (configure.ac): Likewise.
70232 2009-12-31  Bruno Haible  <bruno@clisp.org>
70234         Use AC_C_INLINE instead of module 'inline' where possible.
70235         * modules/inline (Description): Clarify purpose.
70236         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
70237         * modules/count-one-bits (Depends-on): Remove inline.
70238         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
70239         * modules/openat (Depends-on): Remove inline.
70240         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
70241         instead of depending on module 'inline'.
70242         * modules/filevercmp (Depends-on, configure.ac): Likewise.
70243         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
70244         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
70245         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
70246         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
70247         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
70248         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
70249         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
70250         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
70251         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
70252         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
70253         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
70254         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
70255         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
70256         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
70257         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
70258         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
70259         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
70260         Likewise.
70261         * modules/unictype/property-ascii-hex-digit (Depends-on,
70262         configure.ac): Likewise.
70263         * modules/unictype/property-bidi-arabic-digit (Depends-on,
70264         configure.ac): Likewise.
70265         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
70266         configure.ac): Likewise.
70267         * modules/unictype/property-bidi-block-separator (Depends-on,
70268         configure.ac): Likewise.
70269         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
70270         configure.ac): Likewise.
70271         * modules/unictype/property-bidi-common-separator (Depends-on,
70272         configure.ac): Likewise.
70273         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
70274         Likewise.
70275         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
70276         configure.ac): Likewise.
70277         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
70278         configure.ac): Likewise.
70279         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
70280         configure.ac): Likewise.
70281         * modules/unictype/property-bidi-european-digit (Depends-on,
70282         configure.ac): Likewise.
70283         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
70284         configure.ac): Likewise.
70285         * modules/unictype/property-bidi-left-to-right (Depends-on,
70286         configure.ac): Likewise.
70287         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
70288         configure.ac): Likewise.
70289         * modules/unictype/property-bidi-other-neutral (Depends-on,
70290         configure.ac): Likewise.
70291         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
70292         Likewise.
70293         * modules/unictype/property-bidi-segment-separator (Depends-on,
70294         configure.ac): Likewise.
70295         * modules/unictype/property-bidi-whitespace (Depends-on,
70296         configure.ac): Likewise.
70297         * modules/unictype/property-combining (Depends-on, configure.ac):
70298         Likewise.
70299         * modules/unictype/property-composite (Depends-on, configure.ac):
70300         Likewise.
70301         * modules/unictype/property-currency-symbol (Depends-on,
70302         configure.ac): Likewise.
70303         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
70304         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
70305         Likewise.
70306         * modules/unictype/property-default-ignorable-code-point (Depends-on,
70307         configure.ac): Likewise.
70308         * modules/unictype/property-deprecated (Depends-on, configure.ac):
70309         Likewise.
70310         * modules/unictype/property-diacritic (Depends-on, configure.ac):
70311         Likewise.
70312         * modules/unictype/property-extender (Depends-on, configure.ac):
70313         Likewise.
70314         * modules/unictype/property-format-control (Depends-on, configure.ac):
70315         Likewise.
70316         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
70317         Likewise.
70318         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
70319         Likewise.
70320         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
70321         Likewise.
70322         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
70323         Likewise.
70324         * modules/unictype/property-hyphen (Depends-on, configure.ac):
70325         Likewise.
70326         * modules/unictype/property-id-continue (Depends-on, configure.ac):
70327         Likewise.
70328         * modules/unictype/property-id-start (Depends-on, configure.ac):
70329         Likewise.
70330         * modules/unictype/property-ideographic (Depends-on, configure.ac):
70331         Likewise.
70332         * modules/unictype/property-ids-binary-operator (Depends-on,
70333         configure.ac): Likewise.
70334         * modules/unictype/property-ids-trinary-operator (Depends-on,
70335         configure.ac): Likewise.
70336         * modules/unictype/property-ignorable-control (Depends-on,
70337         configure.ac): Likewise.
70338         * modules/unictype/property-iso-control (Depends-on, configure.ac):
70339         Likewise.
70340         * modules/unictype/property-join-control (Depends-on, configure.ac):
70341         Likewise.
70342         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
70343         Likewise.
70344         * modules/unictype/property-line-separator (Depends-on, configure.ac):
70345         Likewise.
70346         * modules/unictype/property-logical-order-exception (Depends-on,
70347         configure.ac): Likewise.
70348         * modules/unictype/property-lowercase (Depends-on, configure.ac):
70349         Likewise.
70350         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
70351         * modules/unictype/property-non-break (Depends-on, configure.ac):
70352         Likewise.
70353         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
70354         Likewise.
70355         * modules/unictype/property-numeric (Depends-on, configure.ac):
70356         Likewise.
70357         * modules/unictype/property-other-alphabetic (Depends-on,
70358         configure.ac): Likewise.
70359         * modules/unictype/property-other-default-ignorable-code-point
70360         (Depends-on, configure.ac): Likewise.
70361         * modules/unictype/property-other-grapheme-extend (Depends-on,
70362         configure.ac): Likewise.
70363         * modules/unictype/property-other-id-continue (Depends-on,
70364         configure.ac): Likewise.
70365         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
70366         Likewise.
70367         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
70368         Likewise.
70369         * modules/unictype/property-other-math (Depends-on, configure.ac):
70370         Likewise.
70371         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
70372         Likewise.
70373         * modules/unictype/property-paired-punctuation (Depends-on,
70374         configure.ac): Likewise.
70375         * modules/unictype/property-paragraph-separator (Depends-on,
70376         configure.ac): Likewise.
70377         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
70378         Likewise.
70379         * modules/unictype/property-pattern-white-space (Depends-on,
70380         configure.ac): Likewise.
70381         * modules/unictype/property-private-use (Depends-on, configure.ac):
70382         Likewise.
70383         * modules/unictype/property-punctuation (Depends-on, configure.ac):
70384         Likewise.
70385         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
70386         Likewise.
70387         * modules/unictype/property-radical (Depends-on, configure.ac):
70388         Likewise.
70389         * modules/unictype/property-sentence-terminal (Depends-on,
70390         configure.ac): Likewise.
70391         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
70392         Likewise.
70393         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
70394         * modules/unictype/property-terminal-punctuation (Depends-on,
70395         configure.ac): Likewise.
70396         * modules/unictype/property-titlecase (Depends-on, configure.ac):
70397         Likewise.
70398         * modules/unictype/property-unassigned-code-value (Depends-on,
70399         configure.ac): Likewise.
70400         * modules/unictype/property-unified-ideograph (Depends-on,
70401         configure.ac): Likewise.
70402         * modules/unictype/property-uppercase (Depends-on, configure.ac):
70403         Likewise.
70404         * modules/unictype/property-variation-selector (Depends-on,
70405         configure.ac): Likewise.
70406         * modules/unictype/property-white-space (Depends-on, configure.ac):
70407         Likewise.
70408         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
70409         Likewise.
70410         * modules/unictype/property-xid-start (Depends-on, configure.ac):
70411         Likewise.
70412         * modules/unictype/property-zero-width (Depends-on, configure.ac):
70413         Likewise.
70414         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
70415         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
70416         Likewise.
70418 2009-12-31  Bruno Haible  <bruno@clisp.org>
70420         Remove unnecessary AC_C_INLINE invocation.
70421         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
70422         since 2009-08-21.
70424 2009-12-31  Jim Meyering  <meyering@redhat.com>
70426         maint.mk: don't require explicit gpg_key_ID in cfg.mk
70427         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
70428         With this change, we can all remove the gpg_key_ID = ... definition
70429         from our respective cfg.mk files.
70431         maint.mk: create announcement template in ~/, not in /tmp
70432         * top/maint.mk (emit_upload_commands): Adjust.
70433         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
70434         Remove temporary file, .ci-msg.
70436 2009-12-31  Eric Blake  <ebb9@byu.net>
70438         link-warning: always build headers with link warnings
70439         * modules/arpa_inet (Makefile.am): Always build replacement
70440         header.
70441         * modules/ctype (Makefile.am): Likewise.
70442         * modules/dirent (Makefile.am): Likewise.
70443         * modules/inttypes (Makefile.am): Likewise.
70444         * modules/langinfo (Makefile.am): Likewise.
70445         * modules/locale (Makefile.am): Likewise.
70446         * modules/spawn (Makefile.am): Likewise.
70447         * modules/sys_file (Makefile.am): Likewise.
70448         * modules/sys_ioctl (Makefile.am): Likewise.
70449         * modules/sys_select (Makefile.am): Likewise.
70450         * modules/sys_socket (Makefile.am): Likewise.
70451         * modules/sys_times (Makefile.am): Likewise.
70452         * modules/sys_utsname (Makefile.am): Likewise.
70453         * modules/sys_wait (Makefile.am): Likewise.
70454         * modules/wchar (Makefile.am): Likewise.
70455         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
70456         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
70457         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
70458         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
70459         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
70460         Likewise.
70461         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
70462         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
70463         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
70464         Likewise.
70465         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
70466         Likewise.
70467         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
70468         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
70469         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
70470         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
70471         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
70472         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
70473         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
70474         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
70475         (gl_WCHAR_H_DEFAULTS): Likewise.
70477 2009-12-31  Eric Blake  <ebb9@byu.net>
70479         signal, spawn: use link warnings
70480         * lib/signal.in.h (sigset_t): Make unconditional.
70481         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
70482         (sigpending, sigprocmask, sigaction): Add link warnings.
70483         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
70484         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
70485         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
70486         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
70487         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
70488         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
70489         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
70490         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
70491         (posix_spawn_file_actions_destroy)
70492         (posix_spawn_file_actions_addopen)
70493         (posix_spawn_file_actions_addclose)
70494         (posix_spawn_file_actions_adddup2): Likewise.
70495         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
70496         * tests/test-signal.c (main): Enhance test.
70498         spawn: improve wrapper support
70499         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
70500         (gl_SPAWN_H_DEFAULTS): New defaults.
70501         * modules/spawn (Makefile.am): Substitute them.
70502         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
70503         Only declare if missing or broken.
70505         sys_times, sys_utsname: use include_next
70506         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
70507         header.
70508         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
70509         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
70510         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
70511         * modules/sys_times (Depends-on): Add include_next.
70512         (Makefile.am): Substitute additional values.
70513         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
70514         * lib/sys_times.in.h (includes): Include native header, if
70515         available.
70516         * lib/sys_utsname.in.h (includes): Likewise.
70517         * tests/test-sys_times.c (main): Enhance test.
70519         fdutimensat: revert prior patch
70520         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
70521         utimens.h.
70522         Reported by Bruno Haible.
70524 2009-12-30  Eric Blake  <ebb9@byu.net>
70526         sys_wait: drop link-warning dependency
70527         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
70528         link-warning efforts.
70529         * lib/sys_wait.in.h: Likewise.
70531         fdutimensat: remove bogus dependency
70532         * modules/fdutimensat (Depends-on): Drop inline.
70534         unistd: fix typo
70535         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
70537 2009-12-30  Bruno Haible  <bruno@clisp.org>
70539         Fix compilation error with Solaris cc.
70540         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
70541         * lib/unicase/u16-is-invariant.c: Likewise.
70542         * lib/unicase/u32-is-invariant.c: Likewise.
70543         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
70545 2009-12-30  Bruno Haible  <bruno@clisp.org>
70547         Fix test crash.
70548         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
70549         locales.
70550         Reported by Simon Josefsson <simon@josefsson.org>.
70552 2009-12-30  Bruno Haible  <bruno@clisp.org>
70554         Fix compilation error on most platforms.
70555         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
70556         Reported by Simon Josefsson <simon@josefsson.org>
70557         and Nelson H. F. Beebe <beebe@math.utah.edu>.
70559 2009-12-30  Eric Blake  <ebb9@byu.net>
70561         futimens, utimensat: work around ntfs-3g bug
70562         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
70563         a ctime bug is present, and expand workaround to cover ntfs-3g.
70564         * lib/utimens.c (fdutimens, lutimens): Likewise.
70565         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
70566         (validate_timespec): Adjust return value.
70567         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
70568         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
70569         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
70571 2009-12-29  Eric Blake  <ebb9@byu.net>
70573         link-warning: make usage consistent
70574         * modules/ctype (Depends-on): Add link-warning.
70575         (Makefile.am): Update rules accordingly.
70576         * modules/langinfo (Depends-on, Makefile.am): Likewise.
70577         * modules/locale (Depends-on, Makefile.am): Likewise.
70578         * modules/sys_file (Makefile.am): Likewise.
70579         * modules/getopt-posix (Makefile.am): Delete unused link warning
70580         efforts.
70581         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
70582         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
70583         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
70584         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
70586         stdio: remove unused variables
70587         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
70588         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
70589         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
70591         tests: test more substitute headers
70592         * modules/ctype-tests: New file.
70593         * modules/dirent-tests: Likewise.
70594         * modules/spawn-tests: Likewise.
70595         * modules/sys_file-tests: Likewise.
70596         * modules/sys_ioctl-tests: Likewise.
70597         * modules/sys_wait-tests: Likewise.
70598         * tests/test-ctype.c: Likewise.
70599         * tests/test-dirent.c: Likewise.
70600         * tests/test-spawn.c: Likewise.
70601         * tests/test-sys_file.c: Likewise.
70602         * tests/test-sys_ioctl.c: Likewise.
70603         * tests/test-sys_wait.c: Likewise.
70604         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
70605         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
70606         whether or not flock is in use.
70608         tests: remove License section from module
70609         * modules/arpa_inet-tests: Remove unneeded section.
70610         * modules/byteswap-tests: Likewise.
70611         * modules/ceilf-tests: Likewise.
70612         * modules/ceill-tests: Likewise.
70613         * modules/crypto/des-tests: Likewise.
70614         * modules/crypto/gc-arcfour-tests: Likewise.
70615         * modules/crypto/gc-arctwo-tests: Likewise.
70616         * modules/crypto/gc-des-tests: Likewise.
70617         * modules/crypto/gc-hmac-md5-tests: Likewise.
70618         * modules/crypto/gc-hmac-sha1-tests: Likewise.
70619         * modules/crypto/gc-md2-tests: Likewise.
70620         * modules/crypto/gc-md4-tests: Likewise.
70621         * modules/crypto/gc-md5-tests: Likewise.
70622         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
70623         * modules/crypto/gc-rijndael-tests: Likewise.
70624         * modules/crypto/gc-sha1-tests: Likewise.
70625         * modules/crypto/gc-tests: Likewise.
70626         * modules/crypto/md2-tests: Likewise.
70627         * modules/crypto/md4-tests: Likewise.
70628         * modules/fcntl-h-tests: Likewise.
70629         * modules/floorf-tests: Likewise.
70630         * modules/floorl-tests: Likewise.
70631         * modules/frexp-nolibm-tests: Likewise.
70632         * modules/frexp-tests: Likewise.
70633         * modules/frexpl-nolibm-tests: Likewise.
70634         * modules/frexpl-tests: Likewise.
70635         * modules/getaddrinfo-tests: Likewise.
70636         * modules/inttypes-tests: Likewise.
70637         * modules/isfinite-tests: Likewise.
70638         * modules/isinf-tests: Likewise.
70639         * modules/ldexpl-tests: Likewise.
70640         * modules/locale-tests: Likewise.
70641         * modules/math-tests: Likewise.
70642         * modules/netdb-tests: Likewise.
70643         * modules/netinet_in-tests: Likewise.
70644         * modules/printf-frexp-tests: Likewise.
70645         * modules/printf-frexpl-tests: Likewise.
70646         * modules/priv-set-tests: Likewise.
70647         * modules/random_r-tests: Likewise.
70648         * modules/round-tests: Likewise.
70649         * modules/roundf-tests: Likewise.
70650         * modules/roundl-tests: Likewise.
70651         * modules/search-tests: Likewise.
70652         * modules/select-tests: Likewise.
70653         * modules/signal-tests: Likewise.
70654         * modules/stdbool-tests: Likewise.
70655         * modules/stddef-tests: Likewise.
70656         * modules/stdint-tests: Likewise.
70657         * modules/stdio-tests: Likewise.
70658         * modules/stdlib-tests: Likewise.
70659         * modules/string-tests: Likewise.
70660         * modules/strings-tests: Likewise.
70661         * modules/sys_select-tests: Likewise.
70662         * modules/sys_socket-tests: Likewise.
70663         * modules/sys_stat-tests: Likewise.
70664         * modules/sys_time-tests: Likewise.
70665         * modules/sys_utsname-tests: Likewise.
70666         * modules/sysexits-tests: Likewise.
70667         * modules/time-tests: Likewise.
70668         * modules/trunc-tests: Likewise.
70669         * modules/truncf-tests: Likewise.
70670         * modules/truncl-tests: Likewise.
70671         * modules/tsearch-tests: Likewise.
70672         * modules/unistd-tests: Likewise.
70673         * modules/wchar-tests: Likewise.
70674         * modules/wctype-tests: Likewise.
70676         tests: fix license on several tests
70677         * tests/test-des.c: Update to GPLv3+.
70678         * tests/test-flock.c: Likewise.
70679         * tests/test-fsync.c: Likewise.
70680         * tests/test-futimens.h: Likewise.
70681         * tests/test-gc-arcfour.c: Likewise.
70682         * tests/test-gc-arctwo.c: Likewise.
70683         * tests/test-gc-des.c: Likewise.
70684         * tests/test-gc-hmac-md5.c: Likewise.
70685         * tests/test-gc-hmac-sha1.c: Likewise.
70686         * tests/test-gc-md2.c: Likewise.
70687         * tests/test-gc-md4.c: Likewise.
70688         * tests/test-gc-md5.c: Likewise.
70689         * tests/test-gc-pbkdf2-sha1.c: Likewise.
70690         * tests/test-gc-rijndael.c: Likewise.
70691         * tests/test-gc-sha1.c: Likewise.
70692         * tests/test-gc.c: Likewise.
70693         * tests/test-getcwd.c: Likewise.
70694         * tests/test-link.c: Likewise.
70695         * tests/test-link.h: Likewise.
70696         * tests/test-lutimens.h: Likewise.
70697         * tests/test-md2.c: Likewise.
70698         * tests/test-md4.c: Likewise.
70699         * tests/test-mkdir.h: Likewise.
70700         * tests/test-rename.c: Likewise.
70701         * tests/test-rename.h: Likewise.
70702         * tests/test-safe-alloc.c: Likewise.
70703         * tests/test-utimens-common.h: Likewise.
70704         * tests/test-utimens.h: Likewise.
70706         maint: sync license texts
70707         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
70708         * doc/gpl-3.0.texi: Revert copyright year update.
70709         * doc/lgpl-3.0.texi: Likewise.
70711 2009-12-29  Jim Meyering  <meyering@redhat.com>
70713         update nearly all FSF copyright year lists to include 2009
70714         The files named by the following are exempted:
70715             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
70716               test -f "$dst" && { echo "$dst"; continue; }
70717               test -d "$dst" || continue
70718               echo "$dst"/$(basename "$src")
70719             done > exempt
70720             git ls-files tests/unictype >> exempt
70721         In the remaining files, convert to all-interval notation if
70722         - there is already at least one year interval like 2000-2003
70723         - the file is maintained by me
70724         - the file is in lib/uni*/, where that style already prevails
70725         Otherwise, use update-copyright's default.
70727 2009-12-29  Simon Josefsson  <simon@josefsson.org>
70728         and Eric Blake  <ebb9@byu.net>
70730         tests: don't require debug system() to pass
70731         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
70732         * tests/test-rmdir.h (test_rmdir_func): Likewise.
70733         * tests/test-unlink.h (test_unlink_func): Likewise.
70734         * tests/test-fstatat.c (main): ...into callers.
70735         * tests/test-lstat.c (main): Likewise.
70736         * tests/test-rmdir.c (main): Likewise.
70737         * tests/test-unlink.c (main): Likewise.
70738         * tests/test-unlinkat.c (main): Likewise.
70739         * tests/test-areadlink-with-size.c (main): Don't require a
70740         debug-only system call to pass, aiding cross-testing to mingw.
70741         * tests/test-areadlink.c (main): Likewise.
70742         * tests/test-areadlinkat-with-size.c (main): Likewise.
70743         * tests/test-areadlinkat.c (main): Likewise.
70744         * tests/test-canonicalize-lgpl.c (main): Likewise.
70745         * tests/test-canonicalize.c (main): Likewise.
70746         * tests/test-chown.c (main): Likewise.
70747         * tests/test-fchownat.c (main): Likewise.
70748         * tests/test-lchown.c (main): Likewise.
70749         * tests/test-fdutimensat.c (main): Likewise.
70750         * tests/test-futimens.c (main): Likewise.
70751         * tests/test-link.c (main): Likewise.
70752         * tests/test-linkat.c (main): Likewise.
70753         * tests/test-mkdir.c (main): Likewise.
70754         * tests/test-mkdirat.c (main): Likewise.
70755         * tests/test-mkfifo.c (main): Likewise.
70756         * tests/test-mkfifoat.c (main): Likewise.
70757         * tests/test-mknod.c (main): Likewise.
70758         * tests/test-readlink.c (main): Likewise.
70759         * tests/test-remove.c (main): Likewise.
70760         * tests/test-rename.c (main): Likewise.
70761         * tests/test-renameat.c (main): Likewise.
70762         * tests/test-symlink.c (main): Likewise.
70763         * tests/test-symlinkat.c (main): Likewise.
70764         * tests/test-utimens.c (main): Likewise.
70765         * tests/test-utimensat.c (main): Likewise.
70767 2009-12-29  Simon Josefsson  <simon@josefsson.org>
70769         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
70770         on $(UNUSED_PARAMETER_H) to avoid build failure.
70772 2009-12-28  Jim Meyering  <meyering@redhat.com>
70774         update-copyright: you may specify a max. line length other than 72
70775         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
70777         maint: use consistent FSF copyright line syntax
70778         * lib/posixtm.c: Add missing comma in FSF copyright line.
70779         * lib/posixtm.h: Likewise.
70780         * lib/getugroups.c: Add missing ", Inc.".
70782         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
70783         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
70784         FSF copyright line.  Remove trailing blanks.
70786 2009-12-28  Eric Blake  <ebb9@byu.net>
70788         test-dup2: reduce dependencies
70789         * modules/cloexec (Configure.ac): Set witness.
70790         * modules/dup2-tests (Depends-on): Drop cloexec.
70791         * tests/test-dup2.c (main): Skip portion of test if cloexec module
70792         not present.
70793         Suggested by Bruno Haible.
70795 2009-12-26  Bruno Haible  <bruno@clisp.org>
70797         Remove an unneeded dependency.
70798         * modules/fseterr (Depends-on): Remove dup2.
70800 2009-12-26  Eric Blake  <ebb9@byu.net>
70802         tests: use macros.h in more places
70803         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
70804         (ASSERT_STREAM): Provide default of stderr.
70805         * tests/test-dirent-safer.c: Include macros.h, using alternate
70806         stream for assertions.
70807         * tests/test-dup-safer.c: Likewise.
70808         * tests/test-freopen-safer.c: Likewise.
70809         * tests/test-getopt.c: Likewise.
70810         * tests/test-openat-safer.c: Likewise.
70811         * tests/test-pipe.c: Likewise.
70812         * tests/test-popen-safer.c: Likewise.
70813         * modules/dirent-safer-tests (Files): Include macros.h.
70814         * modules/unistd-safer-tests (Files): Likewise.
70815         * modules/freopen-safer-tests (Files): Likewise.
70816         * modules/getopt-posix-tests (Files): Likewise.
70817         * modules/openat-safer-tests (Files): Likewise.
70818         * modules/pipe-tests (Files): Likewise.
70820 2009-12-26  Bruno Haible  <bruno@clisp.org>
70822         javacomp-script: Portability fix.
70823         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
70824         that it also works on Solaris.
70826 2009-12-26  Bruno Haible  <bruno@clisp.org>
70828         localename: Fix storage allocation of gl_locale_name_thread's result.
70829         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
70830         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
70831         all platforms that have 'uselocale'.
70832         (gl_locale_name_thread_unsafe): New function, extracted from
70833         gl_locale_name_thread.
70834         (gl_locale_name_thread): Call struniq on all platforms that have
70835         'uselocale'.
70836         * tests/test-localename.c (test_locale_name_thread): Check that the
70837         resulting strings are permanently allocated.
70838         * modules/localename-tests (Depends-on): Add strdup.
70840 2009-12-26  Bruno Haible  <bruno@clisp.org>
70842         * tests/test-localename.c (categories): Fill in the strings.
70844 2009-12-26  Jim Meyering  <meyering@redhat.com>
70846         isdir: complete the removal of m4/isdir.m4
70847         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
70849         isdir: clean up, since at least grep still uses it
70850         * lib/isdir.c: Include "isdir.h".
70851         (S_ISDIR): Remove now-unneeded definition.
70852         * modules/isdir (Files): Add lib/isdir.h.
70853         * lib/isdir.h: New file, with declaration.
70854         * m4/isdir.m4: Remove file -- unneeded.
70856 2009-12-25  Bruno Haible  <bruno@clisp.org>
70858         selinux-h: Make generated .h files standalone.
70859         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
70860         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
70861         * lib/se-selinux.in.h: Likewise.
70862         * modules/selinux-h (Depends-on): Add unused-parameter.
70863         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
70864         selinux/selinux.h and selinux/context.h.
70865         Suggested by Eric Blake.
70867 2009-12-25  Bruno Haible  <bruno@clisp.org>
70869         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
70870         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
70871         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
70872         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
70873         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
70875 2009-12-24  Bruno Haible  <bruno@clisp.org>
70877         openat: Fix warning.
70878         * lib/openat-proc.c: Include <unistd.h>.
70880 2009-12-24  Bruno Haible  <bruno@clisp.org>
70882         New module 'unused-parameter'.
70883         * build-aux/unused-parameter.h: New file, extracted from earlier
70884         gnulib-common.m4.
70885         * modules/unused-parameter: New file.
70886         * lib/unistr.h: Include unused-parameter.h.
70887         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
70888         _GL_UNUSED.
70889         * modules/unistr/base (Depends-on): Add unused-parameter.
70891 2009-12-24  Bruno Haible  <bruno@clisp.org>
70893         Add missing dependencies to 'extensions' module.
70894         * m4/extensions.m4: Add comment.
70895         * modules/accept4 (Depends-on): Add extensions.
70896         * modules/dup3 (Depends-on): Likewise.
70897         * modules/fcntl (Depends-on): Likewise.
70898         * modules/futimens (Depends-on): Likewise.
70899         * modules/mknod (Depends-on): Likewise.
70900         * modules/pipe2 (Depends-on): Likewise.
70901         * modules/stat-time (Depends-on): Likewise.
70902         * modules/strcasestr-simple (Depends-on): Likewise.
70903         * modules/strsignal (Depends-on): Likewise.
70904         * modules/utimensat (Depends-on): Likewise.
70905         * modules/localcharset (Depends-on): Likewise. Needed because of
70906         gl_FCNTL_O_FLAGS.
70907         * modules/wcrtomb (Depends-on): Likewise. Needed because of
70908         AC_TYPE_MBSTATE_T.
70909         * modules/wcsnrtombs (Depends-on): Likewise.
70910         * modules/wcsrtombs (Depends-on): Likewise.
70912 2009-12-24  Bruno Haible  <bruno@clisp.org>
70914         binary-io: Avoid gcc warning due to SET_BINARY.
70915         * lib/binary-io.h (SET_BINARY): Cast the result to void.
70916         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
70918 2009-12-24  Bruno Haible  <bruno@clisp.org>
70920         Avoid future namespace pollution on glibc systems.
70921         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
70922         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
70923         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
70924         glibc systems.
70926 2009-12-24  Bruno Haible  <bruno@clisp.org>
70928         Refactor common macros used in tests.
70929         * tests/macros.h: New file.
70930         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
70931         and/or <stdlib.h>, if appropriate.
70932         (ASSERT, SIZEOF): Remove macros.
70933         * tests/test-areadlink-with-size.c: Likewise.
70934         * tests/test-areadlinkat.c: Likewise.
70935         * tests/test-areadlinkat-with-size.c: Likewise.
70936         * tests/test-argmatch.c: Likewise.
70937         * tests/test-argv-iter.c: Likewise.
70938         * tests/test-array-mergesort.c: Likewise.
70939         * tests/test-array_list.c: Likewise.
70940         * tests/test-array_oset.c: Likewise.
70941         * tests/test-avltree_list.c: Likewise.
70942         * tests/test-avltree_oset.c: Likewise.
70943         * tests/test-avltreehash_list.c: Likewise.
70944         * tests/test-base64.c: Likewise.
70945         * tests/test-binary-io.c: Likewise.
70946         * tests/test-bitrotate.c: Likewise.
70947         * tests/test-btowc.c: Likewise.
70948         * tests/test-byteswap.c: Likewise.
70949         * tests/test-c-ctype.c: Likewise.
70950         * tests/test-c-stack.c: Likewise.
70951         * tests/test-c-strcasecmp.c: Likewise.
70952         * tests/test-c-strcasestr.c: Likewise.
70953         * tests/test-c-strncasecmp.c: Likewise.
70954         * tests/test-c-strstr.c: Likewise.
70955         * tests/test-canonicalize-lgpl.c: Likewise.
70956         * tests/test-canonicalize.c: Likewise.
70957         * tests/test-carray_list.c: Likewise.
70958         * tests/test-ceilf1.c: Likewise.
70959         * tests/test-ceilf2.c: Likewise.
70960         * tests/test-ceill.c: Likewise.
70961         * tests/test-chown.c: Likewise.
70962         * tests/test-cloexec.c: Likewise.
70963         * tests/test-copy-acl.c: Likewise.
70964         * tests/test-copy-file.c: Likewise.
70965         * tests/test-count-one-bits.c: Likewise.
70966         * tests/test-dprintf-posix.c: Likewise.
70967         * tests/test-dup2.c: Likewise.
70968         * tests/test-dup3.c: Likewise.
70969         * tests/test-duplocale.c: Likewise.
70970         * tests/test-fbufmode.c: Likewise.
70971         * tests/test-fchdir.c: Likewise.
70972         * tests/test-fchownat.c: Likewise.
70973         * tests/test-fcntl-safer.c: Likewise.
70974         * tests/test-fcntl.c: Likewise.
70975         * tests/test-fdopendir.c: Likewise.
70976         * tests/test-fdutimensat.c: Likewise.
70977         * tests/test-fflush2.c: Likewise.
70978         * tests/test-file-has-acl.c: Likewise.
70979         * tests/test-filevercmp.c: Likewise.
70980         * tests/test-flock.c: Likewise.
70981         * tests/test-floorf1.c: Likewise.
70982         * tests/test-floorf2.c: Likewise.
70983         * tests/test-floorl.c: Likewise.
70984         * tests/test-fnmatch.c: Likewise.
70985         * tests/test-fopen.h: Likewise.
70986         * tests/test-fpending.c: Likewise.
70987         * tests/test-fprintf-posix.c: Likewise.
70988         * tests/test-fpurge.c: Likewise.
70989         * tests/test-freadable.c: Likewise.
70990         * tests/test-freadahead.c: Likewise.
70991         * tests/test-freading.c: Likewise.
70992         * tests/test-freadptr.c: Likewise.
70993         * tests/test-freadptr2.c: Likewise.
70994         * tests/test-freadseek.c: Likewise.
70995         * tests/test-freopen.c: Likewise.
70996         * tests/test-frexp.c: Likewise.
70997         * tests/test-frexpl.c: Likewise.
70998         * tests/test-fseek.c: Likewise.
70999         * tests/test-fseeko.c: Likewise.
71000         * tests/test-fstatat.c: Likewise.
71001         * tests/test-fstrcmp.c: Likewise.
71002         * tests/test-fsync.c: Likewise.
71003         * tests/test-ftell.c: Likewise.
71004         * tests/test-ftello.c: Likewise.
71005         * tests/test-func.c: Likewise.
71006         * tests/test-futimens.c: Likewise.
71007         * tests/test-fwritable.c: Likewise.
71008         * tests/test-fwriting.c: Likewise.
71009         * tests/test-getcwd.c: Likewise.
71010         * tests/test-getdate.c: Likewise.
71011         * tests/test-getdelim.c: Likewise.
71012         * tests/test-getdtablesize.c: Likewise.
71013         * tests/test-getgroups.c: Likewise.
71014         * tests/test-getline.c: Likewise.
71015         * tests/test-getndelim2.c: Likewise.
71016         * tests/test-glob.c: Likewise.
71017         * tests/test-hash.c: Likewise.
71018         * tests/test-i-ring.c: Likewise.
71019         * tests/test-iconv-utf.c: Likewise.
71020         * tests/test-iconv.c: Likewise.
71021         * tests/test-idpriv-drop.c: Likewise.
71022         * tests/test-idpriv-droptemp.c: Likewise.
71023         * tests/test-inet_ntop.c: Likewise.
71024         * tests/test-inet_pton.c: Likewise.
71025         * tests/test-isblank.c: Likewise.
71026         * tests/test-isfinite.c: Likewise.
71027         * tests/test-isinf.c: Likewise.
71028         * tests/test-isnan.c: Likewise.
71029         * tests/test-isnand.h: Likewise.
71030         * tests/test-isnanf.h: Likewise.
71031         * tests/test-isnanl.h: Likewise.
71032         * tests/test-lchown.c: Likewise.
71033         * tests/test-ldexpl.c: Likewise.
71034         * tests/test-link.c: Likewise.
71035         * tests/test-linkat.c: Likewise.
71036         * tests/test-linked_list.c: Likewise.
71037         * tests/test-linkedhash_list.c: Likewise.
71038         * tests/test-localename.c: Likewise.
71039         * tests/test-lseek.c: Likewise.
71040         * tests/test-lstat.c: Likewise.
71041         * tests/test-mbmemcasecmp.c: Likewise.
71042         * tests/test-mbmemcasecoll.c: Likewise.
71043         * tests/test-mbrtowc.c: Likewise.
71044         * tests/test-mbscasecmp.c: Likewise.
71045         * tests/test-mbscasestr1.c: Likewise.
71046         * tests/test-mbscasestr2.c: Likewise.
71047         * tests/test-mbscasestr3.c: Likewise.
71048         * tests/test-mbscasestr4.c: Likewise.
71049         * tests/test-mbschr.c: Likewise.
71050         * tests/test-mbscspn.c: Likewise.
71051         * tests/test-mbsinit.c: Likewise.
71052         * tests/test-mbsncasecmp.c: Likewise.
71053         * tests/test-mbsnrtowcs.c: Likewise.
71054         * tests/test-mbspbrk.c: Likewise.
71055         * tests/test-mbspcasecmp.c: Likewise.
71056         * tests/test-mbsrchr.c: Likewise.
71057         * tests/test-mbsrtowcs.c: Likewise.
71058         * tests/test-mbsspn.c: Likewise.
71059         * tests/test-mbsstr1.c: Likewise.
71060         * tests/test-mbsstr2.c: Likewise.
71061         * tests/test-mbsstr3.c: Likewise.
71062         * tests/test-memchr.c: Likewise.
71063         * tests/test-memchr2.c: Likewise.
71064         * tests/test-memcmp.c: Likewise.
71065         * tests/test-memmem.c: Likewise.
71066         * tests/test-memrchr.c: Likewise.
71067         * tests/test-mkdir.c: Likewise.
71068         * tests/test-mkdirat.c: Likewise.
71069         * tests/test-mkfifo.c: Likewise.
71070         * tests/test-mkfifoat.c: Likewise.
71071         * tests/test-mknod.c: Likewise.
71072         * tests/test-nanosleep.c: Likewise.
71073         * tests/test-nl_langinfo.c: Likewise.
71074         * tests/test-obstack-printf.c: Likewise.
71075         * tests/test-open.c: Likewise.
71076         * tests/test-openat.c: Likewise.
71077         * tests/test-pipe-filter-gi1.c: Likewise.
71078         * tests/test-pipe-filter-gi2-main.c: Likewise.
71079         * tests/test-pipe-filter-ii1.c: Likewise.
71080         * tests/test-pipe-filter-ii2-main.c: Likewise.
71081         * tests/test-pipe2.c: Likewise.
71082         * tests/test-popen.h: Likewise.
71083         * tests/test-posixtm.c: Likewise.
71084         * tests/test-pread.c: Likewise.
71085         * tests/test-printf-frexp.c: Likewise.
71086         * tests/test-printf-frexpl.c: Likewise.
71087         * tests/test-printf-posix.c: Likewise.
71088         * tests/test-priv-set.c: Likewise.
71089         * tests/test-quotearg.c: Likewise.
71090         * tests/test-random_r.c: Likewise.
71091         * tests/test-rawmemchr.c: Likewise.
71092         * tests/test-rbtree_list.c: Likewise.
71093         * tests/test-rbtree_oset.c: Likewise.
71094         * tests/test-rbtreehash_list.c: Likewise.
71095         * tests/test-readlink.c: Likewise.
71096         * tests/test-remove.c: Likewise.
71097         * tests/test-rename.c: Likewise.
71098         * tests/test-renameat.c: Likewise.
71099         * tests/test-rmdir.c: Likewise.
71100         * tests/test-round1.c: Likewise.
71101         * tests/test-roundf1.c: Likewise.
71102         * tests/test-roundl.c: Likewise.
71103         * tests/test-safe-alloc.c: Likewise.
71104         * tests/test-sameacls.c: Likewise.
71105         * tests/test-set-mode-acl.c: Likewise.
71106         * tests/test-setenv.c: Likewise.
71107         * tests/test-sigaction.c: Likewise.
71108         * tests/test-signbit.c: Likewise.
71109         * tests/test-sleep.c: Likewise.
71110         * tests/test-snprintf-posix.c: Likewise.
71111         * tests/test-snprintf.c: Likewise.
71112         * tests/test-sprintf-posix.c: Likewise.
71113         * tests/test-stat-time.c: Likewise.
71114         * tests/test-stat.c: Likewise.
71115         * tests/test-strcasestr.c: Likewise.
71116         * tests/test-strchrnul.c: Likewise.
71117         * tests/test-strerror.c: Likewise.
71118         * tests/test-striconv.c: Likewise.
71119         * tests/test-striconveh.c: Likewise.
71120         * tests/test-striconveha.c: Likewise.
71121         * tests/test-strsignal.c: Likewise.
71122         * tests/test-strstr.c: Likewise.
71123         * tests/test-strtod.c: Likewise.
71124         * tests/test-strverscmp.c: Likewise.
71125         * tests/test-symlink.c: Likewise.
71126         * tests/test-symlinkat.c: Likewise.
71127         * tests/test-trunc1.c: Likewise.
71128         * tests/test-trunc2.c: Likewise.
71129         * tests/test-truncf1.c: Likewise.
71130         * tests/test-truncf2.c: Likewise.
71131         * tests/test-truncl.c: Likewise.
71132         * tests/test-uname.c: Likewise.
71133         * tests/test-unlink.c: Likewise.
71134         * tests/test-unlinkat.c: Likewise.
71135         * tests/test-unsetenv.c: Likewise.
71136         * tests/test-usleep.c: Likewise.
71137         * tests/test-utimens.c: Likewise.
71138         * tests/test-utimensat.c: Likewise.
71139         * tests/test-vasnprintf-posix.c: Likewise.
71140         * tests/test-vasnprintf-posix2.c: Likewise.
71141         * tests/test-vasnprintf.c: Likewise.
71142         * tests/test-vasprintf-posix.c: Likewise.
71143         * tests/test-vasprintf.c: Likewise.
71144         * tests/test-vdprintf-posix.c: Likewise.
71145         * tests/test-vfprintf-posix.c: Likewise.
71146         * tests/test-vprintf-posix.c: Likewise.
71147         * tests/test-vsnprintf-posix.c: Likewise.
71148         * tests/test-vsnprintf.c: Likewise.
71149         * tests/test-vsprintf-posix.c: Likewise.
71150         * tests/test-wcrtomb.c: Likewise.
71151         * tests/test-wcsnrtombs.c: Likewise.
71152         * tests/test-wcsrtombs.c: Likewise.
71153         * tests/test-wctype.c: Likewise.
71154         * tests/test-wcwidth.c: Likewise.
71155         * tests/test-xfprintf-posix.c: Likewise.
71156         * tests/test-xmemdup0.c: Likewise.
71157         * tests/test-xprintf-posix.c: Likewise.
71158         * tests/test-xvasprintf.c: Likewise.
71159         * tests/unicase/test-locale-language.c: Likewise.
71160         * tests/unicase/test-mapping-part1.h: Likewise.
71161         * tests/unicase/test-predicate-part1.h: Likewise.
71162         * tests/unicase/test-u8-casecmp.c: Likewise.
71163         * tests/unicase/test-u8-casecoll.c: Likewise.
71164         * tests/unicase/test-u8-casefold.c: Likewise.
71165         * tests/unicase/test-u8-is-cased.c: Likewise.
71166         * tests/unicase/test-u8-is-casefolded.c: Likewise.
71167         * tests/unicase/test-u8-is-lowercase.c: Likewise.
71168         * tests/unicase/test-u8-is-titlecase.c: Likewise.
71169         * tests/unicase/test-u8-is-uppercase.c: Likewise.
71170         * tests/unicase/test-u8-tolower.c: Likewise.
71171         * tests/unicase/test-u8-totitle.c: Likewise.
71172         * tests/unicase/test-u8-toupper.c: Likewise.
71173         * tests/unicase/test-u16-casecmp.c: Likewise.
71174         * tests/unicase/test-u16-casecoll.c: Likewise.
71175         * tests/unicase/test-u16-casefold.c: Likewise.
71176         * tests/unicase/test-u16-is-cased.c: Likewise.
71177         * tests/unicase/test-u16-is-casefolded.c: Likewise.
71178         * tests/unicase/test-u16-is-lowercase.c: Likewise.
71179         * tests/unicase/test-u16-is-titlecase.c: Likewise.
71180         * tests/unicase/test-u16-is-uppercase.c: Likewise.
71181         * tests/unicase/test-u16-tolower.c: Likewise.
71182         * tests/unicase/test-u16-totitle.c: Likewise.
71183         * tests/unicase/test-u16-toupper.c: Likewise.
71184         * tests/unicase/test-u32-casecmp.c: Likewise.
71185         * tests/unicase/test-u32-casecoll.c: Likewise.
71186         * tests/unicase/test-u32-casefold.c: Likewise.
71187         * tests/unicase/test-u32-is-cased.c: Likewise.
71188         * tests/unicase/test-u32-is-casefolded.c: Likewise.
71189         * tests/unicase/test-u32-is-lowercase.c: Likewise.
71190         * tests/unicase/test-u32-is-titlecase.c: Likewise.
71191         * tests/unicase/test-u32-is-uppercase.c: Likewise.
71192         * tests/unicase/test-u32-tolower.c: Likewise.
71193         * tests/unicase/test-u32-totitle.c: Likewise.
71194         * tests/unicase/test-u32-toupper.c: Likewise.
71195         * tests/unicase/test-ulc-casecmp.c: Likewise.
71196         * tests/unicase/test-ulc-casecoll.c: Likewise.
71197         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
71198         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
71199         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
71200         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
71201         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
71202         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
71203         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
71204         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
71205         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
71206         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
71207         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
71208         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
71209         * tests/unictype/test-bidi_byname.c: Likewise.
71210         * tests/unictype/test-bidi_name.c: Likewise.
71211         * tests/unictype/test-bidi_of.c: Likewise.
71212         * tests/unictype/test-bidi_test.c: Likewise.
71213         * tests/unictype/test-block_list.c: Likewise.
71214         * tests/unictype/test-block_of.c: Likewise.
71215         * tests/unictype/test-block_test.c: Likewise.
71216         * tests/unictype/test-categ_and.c: Likewise.
71217         * tests/unictype/test-categ_and_not.c: Likewise.
71218         * tests/unictype/test-categ_byname.c: Likewise.
71219         * tests/unictype/test-categ_name.c: Likewise.
71220         * tests/unictype/test-categ_none.c: Likewise.
71221         * tests/unictype/test-categ_of.c: Likewise.
71222         * tests/unictype/test-categ_or.c: Likewise.
71223         * tests/unictype/test-categ_test_withtable.c: Likewise.
71224         * tests/unictype/test-combining.c: Likewise.
71225         * tests/unictype/test-decdigit.c: Likewise.
71226         * tests/unictype/test-digit.c: Likewise.
71227         * tests/unictype/test-mirror.c: Likewise.
71228         * tests/unictype/test-numeric.c: Likewise.
71229         * tests/unictype/test-pr_byname.c: Likewise.
71230         * tests/unictype/test-pr_test.c: Likewise.
71231         * tests/unictype/test-predicate-part1.h: Likewise.
71232         * tests/unictype/test-scripts.c: Likewise.
71233         * tests/unictype/test-sy_c_ident.c: Likewise.
71234         * tests/unictype/test-sy_java_ident.c: Likewise.
71235         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
71236         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
71237         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
71238         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
71239         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
71240         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
71241         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
71242         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
71243         * tests/uninorm/test-canonical-decomposition.c: Likewise.
71244         * tests/uninorm/test-compat-decomposition.c: Likewise.
71245         * tests/uninorm/test-composition.c: Likewise.
71246         * tests/uninorm/test-decomposing-form.c: Likewise.
71247         * tests/uninorm/test-decomposition.c: Likewise.
71248         * tests/uninorm/test-u8-nfc.c: Likewise.
71249         * tests/uninorm/test-u8-nfd.c: Likewise.
71250         * tests/uninorm/test-u8-nfkc.c: Likewise.
71251         * tests/uninorm/test-u8-nfkd.c: Likewise.
71252         * tests/uninorm/test-u8-normcmp.c: Likewise.
71253         * tests/uninorm/test-u8-normcoll.c: Likewise.
71254         * tests/uninorm/test-u16-nfc.c: Likewise.
71255         * tests/uninorm/test-u16-nfd.c: Likewise.
71256         * tests/uninorm/test-u16-nfkc.c: Likewise.
71257         * tests/uninorm/test-u16-nfkd.c: Likewise.
71258         * tests/uninorm/test-u16-normcmp.c: Likewise.
71259         * tests/uninorm/test-u16-normcoll.c: Likewise.
71260         * tests/uninorm/test-u32-nfc.c: Likewise.
71261         * tests/uninorm/test-u32-nfd.c: Likewise.
71262         * tests/uninorm/test-u32-nfkc.c: Likewise.
71263         * tests/uninorm/test-u32-nfkd.c: Likewise.
71264         * tests/uninorm/test-u32-normalize-big.c: Likewise.
71265         * tests/uninorm/test-u32-normcmp.c: Likewise.
71266         * tests/uninorm/test-u32-normcoll.c: Likewise.
71267         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
71268         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
71269         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
71270         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
71271         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
71272         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
71273         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
71274         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
71275         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
71276         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
71277         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
71278         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
71279         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
71280         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
71281         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
71282         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
71283         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
71284         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
71285         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
71286         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
71287         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
71288         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
71289         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
71290         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
71291         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
71292         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
71293         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
71294         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
71295         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
71296         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
71297         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
71298         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
71299         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
71300         * tests/uniwidth/test-u8-strwidth.c: Likewise.
71301         * tests/uniwidth/test-u8-width.c: Likewise.
71302         * tests/uniwidth/test-u16-strwidth.c: Likewise.
71303         * tests/uniwidth/test-u16-width.c: Likewise.
71304         * tests/uniwidth/test-u32-strwidth.c: Likewise.
71305         * tests/uniwidth/test-u32-width.c: Likewise.
71306         * tests/uniwidth/test-uc_width.c: Likewise.
71307         * tests/uniwidth/test-uc_width2.c: Likewise.
71308         * modules/acl-tests (Files): Add tests/macros.h.
71309         * modules/areadlink-tests (Files): Likewise.
71310         * modules/areadlink-with-size-tests (Files): Likewise.
71311         * modules/areadlinkat-tests (Files): Likewise.
71312         * modules/areadlinkat-with-size-tests (Files): Likewise.
71313         * modules/argmatch-tests (Files): Likewise.
71314         * modules/argv-iter-tests (Files): Likewise.
71315         * modules/array-list-tests (Files): Likewise.
71316         * modules/array-mergesort-tests (Files): Likewise.
71317         * modules/array-oset-tests (Files): Likewise.
71318         * modules/avltree-list-tests (Files): Likewise.
71319         * modules/avltree-oset-tests (Files): Likewise.
71320         * modules/avltreehash-list-tests (Files): Likewise.
71321         * modules/base64-tests (Files): Likewise.
71322         * modules/binary-io-tests (Files): Likewise.
71323         * modules/bitrotate-tests (Files): Likewise.
71324         * modules/btowc-tests (Files): Likewise.
71325         * modules/byteswap-tests (Files): Likewise.
71326         * modules/c-ctype-tests (Files): Likewise.
71327         * modules/c-stack-tests (Files): Likewise.
71328         * modules/c-strcase-tests (Files): Likewise.
71329         * modules/c-strcasestr-tests (Files): Likewise.
71330         * modules/c-strstr-tests (Files): Likewise.
71331         * modules/canonicalize-lgpl-tests (Files): Likewise.
71332         * modules/canonicalize-tests (Files): Likewise.
71333         * modules/carray-list-tests (Files): Likewise.
71334         * modules/ceilf-tests (Files): Likewise.
71335         * modules/ceill-tests (Files): Likewise.
71336         * modules/chown-tests (Files): Likewise.
71337         * modules/cloexec-tests (Files): Likewise.
71338         * modules/copy-file-tests (Files): Likewise.
71339         * modules/count-one-bits-tests (Files): Likewise.
71340         * modules/dprintf-posix-tests (Files): Likewise.
71341         * modules/dup2-tests (Files): Likewise.
71342         * modules/dup3-tests (Files): Likewise.
71343         * modules/duplocale-tests (Files): Likewise.
71344         * modules/fbufmode-tests (Files): Likewise.
71345         * modules/fchdir-tests (Files): Likewise.
71346         * modules/fcntl-safer-tests (Files): Likewise.
71347         * modules/fcntl-tests (Files): Likewise.
71348         * modules/fdopendir-tests (Files): Likewise.
71349         * modules/fdutimensat-tests (Files): Likewise.
71350         * modules/fflush-tests (Files): Likewise.
71351         * modules/filevercmp-tests (Files): Likewise.
71352         * modules/flock-tests (Files): Likewise.
71353         * modules/floorf-tests (Files): Likewise.
71354         * modules/floorl-tests (Files): Likewise.
71355         * modules/fnmatch-tests (Files): Likewise.
71356         * modules/fopen-safer-tests (Files): Likewise.
71357         * modules/fopen-tests (Files): Likewise.
71358         * modules/fpending-tests (Files): Likewise.
71359         * modules/fprintf-posix-tests (Files): Likewise.
71360         * modules/fpurge-tests (Files): Likewise.
71361         * modules/freadable-tests (Files): Likewise.
71362         * modules/freadahead-tests (Files): Likewise.
71363         * modules/freading-tests (Files): Likewise.
71364         * modules/freadptr-tests (Files): Likewise.
71365         * modules/freadseek-tests (Files): Likewise.
71366         * modules/freopen-tests (Files): Likewise.
71367         * modules/frexp-nolibm-tests (Files): Likewise.
71368         * modules/frexp-tests (Files): Likewise.
71369         * modules/frexpl-nolibm-tests (Files): Likewise.
71370         * modules/frexpl-tests (Files): Likewise.
71371         * modules/fseek-tests (Files): Likewise.
71372         * modules/fseeko-tests (Files): Likewise.
71373         * modules/fstrcmp-tests (Files): Likewise.
71374         * modules/fsync-tests (Files): Likewise.
71375         * modules/ftell-tests (Files): Likewise.
71376         * modules/ftello-tests (Files): Likewise.
71377         * modules/func-tests (Files): Likewise.
71378         * modules/futimens-tests (Files): Likewise.
71379         * modules/fwritable-tests (Files): Likewise.
71380         * modules/fwriting-tests (Files): Likewise.
71381         * modules/getcwd-tests (Files): Likewise.
71382         * modules/getdate-tests (Files): Likewise.
71383         * modules/getdelim-tests (Files): Likewise.
71384         * modules/getdtablesize-tests (Files): Likewise.
71385         * modules/getgroups-tests (Files): Likewise.
71386         * modules/getline-tests (Files): Likewise.
71387         * modules/getndelim2-tests (Files): Likewise.
71388         * modules/glob-tests (Files): Likewise.
71389         * modules/hash-tests (Files): Likewise.
71390         * modules/i-ring-tests (Files): Likewise.
71391         * modules/iconv-tests (Files): Likewise.
71392         * modules/iconv_open-utf-tests (Files): Likewise.
71393         * modules/idpriv-drop-tests (Files): Likewise.
71394         * modules/idpriv-droptemp-tests (Files): Likewise.
71395         * modules/inet_ntop-tests (Files): Likewise.
71396         * modules/inet_pton-tests (Files): Likewise.
71397         * modules/isblank-tests (Files): Likewise.
71398         * modules/isfinite-tests (Files): Likewise.
71399         * modules/isinf-tests (Files): Likewise.
71400         * modules/isnan-tests (Files): Likewise.
71401         * modules/isnand-nolibm-tests (Files): Likewise.
71402         * modules/isnand-tests (Files): Likewise.
71403         * modules/isnanf-nolibm-tests (Files): Likewise.
71404         * modules/isnanf-tests (Files): Likewise.
71405         * modules/isnanl-nolibm-tests (Files): Likewise.
71406         * modules/isnanl-tests (Files): Likewise.
71407         * modules/lchown-tests (Files): Likewise.
71408         * modules/ldexpl-tests (Files): Likewise.
71409         * modules/link-tests (Files): Likewise.
71410         * modules/linkat-tests (Files): Likewise.
71411         * modules/linked-list-tests (Files): Likewise.
71412         * modules/linkedhash-list-tests (Files): Likewise.
71413         * modules/localename-tests (Files): Likewise.
71414         * modules/lseek-tests (Files): Likewise.
71415         * modules/lstat-tests (Files): Likewise.
71416         * modules/mbmemcasecmp-tests (Files): Likewise.
71417         * modules/mbmemcasecoll-tests (Files): Likewise.
71418         * modules/mbrtowc-tests (Files): Likewise.
71419         * modules/mbscasecmp-tests (Files): Likewise.
71420         * modules/mbscasestr-tests (Files): Likewise.
71421         * modules/mbschr-tests (Files): Likewise.
71422         * modules/mbscspn-tests (Files): Likewise.
71423         * modules/mbsinit-tests (Files): Likewise.
71424         * modules/mbsncasecmp-tests (Files): Likewise.
71425         * modules/mbsnrtowcs-tests (Files): Likewise.
71426         * modules/mbspbrk-tests (Files): Likewise.
71427         * modules/mbspcasecmp-tests (Files): Likewise.
71428         * modules/mbsrchr-tests (Files): Likewise.
71429         * modules/mbsrtowcs-tests (Files): Likewise.
71430         * modules/mbsspn-tests (Files): Likewise.
71431         * modules/mbsstr-tests (Files): Likewise.
71432         * modules/memchr-tests (Files): Likewise.
71433         * modules/memchr2-tests (Files): Likewise.
71434         * modules/memcmp-tests (Files): Likewise.
71435         * modules/memmem-tests (Files): Likewise.
71436         * modules/memrchr-tests (Files): Likewise.
71437         * modules/mkdir-tests (Files): Likewise.
71438         * modules/mkfifo-tests (Files): Likewise.
71439         * modules/mkfifoat-tests (Files): Likewise.
71440         * modules/mknod-tests (Files): Likewise.
71441         * modules/nanosleep-tests (Files): Likewise.
71442         * modules/nl_langinfo-tests (Files): Likewise.
71443         * modules/obstack-printf-tests (Files): Likewise.
71444         * modules/open-tests (Files): Likewise.
71445         * modules/openat-tests (Files): Likewise.
71446         * modules/pipe-filter-gi-tests (Files): Likewise.
71447         * modules/pipe-filter-ii-tests (Files): Likewise.
71448         * modules/pipe2-tests (Files): Likewise.
71449         * modules/popen-safer-tests (Files): Likewise.
71450         * modules/popen-tests (Files): Likewise.
71451         * modules/posixtm-tests (Files): Likewise.
71452         * modules/pread-tests (Files): Likewise.
71453         * modules/printf-frexp-tests (Files): Likewise.
71454         * modules/printf-frexpl-tests (Files): Likewise.
71455         * modules/printf-posix-tests (Files): Likewise.
71456         * modules/priv-set-tests (Files): Likewise.
71457         * modules/quotearg-tests (Files): Likewise.
71458         * modules/random_r-tests (Files): Likewise.
71459         * modules/rawmemchr-tests (Files): Likewise.
71460         * modules/rbtree-list-tests (Files): Likewise.
71461         * modules/rbtree-oset-tests (Files): Likewise.
71462         * modules/rbtreehash-list-tests (Files): Likewise.
71463         * modules/readlink-tests (Files): Likewise.
71464         * modules/remove-tests (Files): Likewise.
71465         * modules/rename-tests (Files): Likewise.
71466         * modules/renameat-tests (Files): Likewise.
71467         * modules/rmdir-tests (Files): Likewise.
71468         * modules/round-tests (Files): Likewise.
71469         * modules/roundf-tests (Files): Likewise.
71470         * modules/roundl-tests (Files): Likewise.
71471         * modules/safe-alloc-tests (Files): Likewise.
71472         * modules/setenv-tests (Files): Likewise.
71473         * modules/sigaction-tests (Files): Likewise.
71474         * modules/signbit-tests (Files): Likewise.
71475         * modules/sleep-tests (Files): Likewise.
71476         * modules/snprintf-posix-tests (Files): Likewise.
71477         * modules/snprintf-tests (Files): Likewise.
71478         * modules/sprintf-posix-tests (Files): Likewise.
71479         * modules/stat-tests (Files): Likewise.
71480         * modules/stat-time-tests (Files): Likewise.
71481         * modules/strcasestr-tests (Files): Likewise.
71482         * modules/strchrnul-tests (Files): Likewise.
71483         * modules/strerror-tests (Files): Likewise.
71484         * modules/striconv-tests (Files): Likewise.
71485         * modules/striconveh-tests (Files): Likewise.
71486         * modules/striconveha-tests (Files): Likewise.
71487         * modules/strsignal-tests (Files): Likewise.
71488         * modules/strstr-tests (Files): Likewise.
71489         * modules/strtod-tests (Files): Likewise.
71490         * modules/strverscmp-tests (Files): Likewise.
71491         * modules/symlink-tests (Files): Likewise.
71492         * modules/symlinkat-tests (Files): Likewise.
71493         * modules/trunc-tests (Files): Likewise.
71494         * modules/truncf-tests (Files): Likewise.
71495         * modules/truncl-tests (Files): Likewise.
71496         * modules/uname-tests (Files): Likewise.
71497         * modules/unicase/cased-tests (Files): Likewise.
71498         * modules/unicase/ignorable-tests (Files): Likewise.
71499         * modules/unicase/locale-language-tests (Files): Likewise.
71500         * modules/unicase/tolower-tests (Files): Likewise.
71501         * modules/unicase/totitle-tests (Files): Likewise.
71502         * modules/unicase/toupper-tests (Files): Likewise.
71503         * modules/unicase/u8-casecmp-tests (Files): Likewise.
71504         * modules/unicase/u8-casecoll-tests (Files): Likewise.
71505         * modules/unicase/u8-casefold-tests (Files): Likewise.
71506         * modules/unicase/u8-is-cased-tests (Files): Likewise.
71507         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
71508         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
71509         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
71510         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
71511         * modules/unicase/u8-tolower-tests (Files): Likewise.
71512         * modules/unicase/u8-totitle-tests (Files): Likewise.
71513         * modules/unicase/u8-toupper-tests (Files): Likewise.
71514         * modules/unicase/u16-casecmp-tests (Files): Likewise.
71515         * modules/unicase/u16-casecoll-tests (Files): Likewise.
71516         * modules/unicase/u16-casefold-tests (Files): Likewise.
71517         * modules/unicase/u16-is-cased-tests (Files): Likewise.
71518         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
71519         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
71520         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
71521         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
71522         * modules/unicase/u16-tolower-tests (Files): Likewise.
71523         * modules/unicase/u16-totitle-tests (Files): Likewise.
71524         * modules/unicase/u16-toupper-tests (Files): Likewise.
71525         * modules/unicase/u32-casecmp-tests (Files): Likewise.
71526         * modules/unicase/u32-casecoll-tests (Files): Likewise.
71527         * modules/unicase/u32-casefold-tests (Files): Likewise.
71528         * modules/unicase/u32-is-cased-tests (Files): Likewise.
71529         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
71530         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
71531         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
71532         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
71533         * modules/unicase/u32-tolower-tests (Files): Likewise.
71534         * modules/unicase/u32-totitle-tests (Files): Likewise.
71535         * modules/unicase/u32-toupper-tests (Files): Likewise.
71536         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
71537         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
71538         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
71539         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
71540         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
71541         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
71542         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
71543         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
71544         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
71545         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
71546         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
71547         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
71548         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
71549         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
71550         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
71551         * modules/unictype/bidicategory-name-tests (Files): Likewise.
71552         * modules/unictype/bidicategory-of-tests (Files): Likewise.
71553         * modules/unictype/bidicategory-test-tests (Files): Likewise.
71554         * modules/unictype/block-list-tests (Files): Likewise.
71555         * modules/unictype/block-of-tests (Files): Likewise.
71556         * modules/unictype/block-test-tests (Files): Likewise.
71557         * modules/unictype/category-C-tests (Files): Likewise.
71558         * modules/unictype/category-Cc-tests (Files): Likewise.
71559         * modules/unictype/category-Cf-tests (Files): Likewise.
71560         * modules/unictype/category-Cn-tests (Files): Likewise.
71561         * modules/unictype/category-Co-tests (Files): Likewise.
71562         * modules/unictype/category-Cs-tests (Files): Likewise.
71563         * modules/unictype/category-L-tests (Files): Likewise.
71564         * modules/unictype/category-Ll-tests (Files): Likewise.
71565         * modules/unictype/category-Lm-tests (Files): Likewise.
71566         * modules/unictype/category-Lo-tests (Files): Likewise.
71567         * modules/unictype/category-Lt-tests (Files): Likewise.
71568         * modules/unictype/category-Lu-tests (Files): Likewise.
71569         * modules/unictype/category-M-tests (Files): Likewise.
71570         * modules/unictype/category-Mc-tests (Files): Likewise.
71571         * modules/unictype/category-Me-tests (Files): Likewise.
71572         * modules/unictype/category-Mn-tests (Files): Likewise.
71573         * modules/unictype/category-N-tests (Files): Likewise.
71574         * modules/unictype/category-Nd-tests (Files): Likewise.
71575         * modules/unictype/category-Nl-tests (Files): Likewise.
71576         * modules/unictype/category-No-tests (Files): Likewise.
71577         * modules/unictype/category-P-tests (Files): Likewise.
71578         * modules/unictype/category-Pc-tests (Files): Likewise.
71579         * modules/unictype/category-Pd-tests (Files): Likewise.
71580         * modules/unictype/category-Pe-tests (Files): Likewise.
71581         * modules/unictype/category-Pf-tests (Files): Likewise.
71582         * modules/unictype/category-Pi-tests (Files): Likewise.
71583         * modules/unictype/category-Po-tests (Files): Likewise.
71584         * modules/unictype/category-Ps-tests (Files): Likewise.
71585         * modules/unictype/category-S-tests (Files): Likewise.
71586         * modules/unictype/category-Sc-tests (Files): Likewise.
71587         * modules/unictype/category-Sk-tests (Files): Likewise.
71588         * modules/unictype/category-Sm-tests (Files): Likewise.
71589         * modules/unictype/category-So-tests (Files): Likewise.
71590         * modules/unictype/category-Z-tests (Files): Likewise.
71591         * modules/unictype/category-Zl-tests (Files): Likewise.
71592         * modules/unictype/category-Zp-tests (Files): Likewise.
71593         * modules/unictype/category-Zs-tests (Files): Likewise.
71594         * modules/unictype/category-and-not-tests (Files): Likewise.
71595         * modules/unictype/category-and-tests (Files): Likewise.
71596         * modules/unictype/category-byname-tests (Files): Likewise.
71597         * modules/unictype/category-name-tests (Files): Likewise.
71598         * modules/unictype/category-none-tests (Files): Likewise.
71599         * modules/unictype/category-of-tests (Files): Likewise.
71600         * modules/unictype/category-or-tests (Files): Likewise.
71601         * modules/unictype/category-test-withtable-tests (Files): Likewise.
71602         * modules/unictype/combining-class-tests (Files): Likewise.
71603         * modules/unictype/ctype-alnum-tests (Files): Likewise.
71604         * modules/unictype/ctype-alpha-tests (Files): Likewise.
71605         * modules/unictype/ctype-blank-tests (Files): Likewise.
71606         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
71607         * modules/unictype/ctype-digit-tests (Files): Likewise.
71608         * modules/unictype/ctype-graph-tests (Files): Likewise.
71609         * modules/unictype/ctype-lower-tests (Files): Likewise.
71610         * modules/unictype/ctype-print-tests (Files): Likewise.
71611         * modules/unictype/ctype-punct-tests (Files): Likewise.
71612         * modules/unictype/ctype-space-tests (Files): Likewise.
71613         * modules/unictype/ctype-upper-tests (Files): Likewise.
71614         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
71615         * modules/unictype/decimal-digit-tests (Files): Likewise.
71616         * modules/unictype/digit-tests (Files): Likewise.
71617         * modules/unictype/mirror-tests (Files): Likewise.
71618         * modules/unictype/numeric-tests (Files): Likewise.
71619         * modules/unictype/property-alphabetic-tests (Files): Likewise.
71620         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
71621         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
71622         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
71623         Likewise.
71624         * modules/unictype/property-bidi-block-separator-tests (Files):
71625         Likewise.
71626         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
71627         Likewise.
71628         * modules/unictype/property-bidi-common-separator-tests (Files):
71629         Likewise.
71630         * modules/unictype/property-bidi-control-tests (Files): Likewise.
71631         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
71632         Likewise.
71633         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
71634         Likewise.
71635         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
71636         Likewise.
71637         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
71638         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
71639         Likewise.
71640         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
71641         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
71642         Likewise.
71643         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
71644         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
71645         * modules/unictype/property-bidi-segment-separator-tests (Files):
71646         Likewise.
71647         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
71648         * modules/unictype/property-byname-tests (Files): Likewise.
71649         * modules/unictype/property-combining-tests (Files): Likewise.
71650         * modules/unictype/property-composite-tests (Files): Likewise.
71651         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
71652         * modules/unictype/property-dash-tests (Files): Likewise.
71653         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
71654         * modules/unictype/property-default-ignorable-code-point-tests (Files):
71655         Likewise.
71656         * modules/unictype/property-deprecated-tests (Files): Likewise.
71657         * modules/unictype/property-diacritic-tests (Files): Likewise.
71658         * modules/unictype/property-extender-tests (Files): Likewise.
71659         * modules/unictype/property-format-control-tests (Files): Likewise.
71660         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
71661         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
71662         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
71663         * modules/unictype/property-hex-digit-tests (Files): Likewise.
71664         * modules/unictype/property-hyphen-tests (Files): Likewise.
71665         * modules/unictype/property-id-continue-tests (Files): Likewise.
71666         * modules/unictype/property-id-start-tests (Files): Likewise.
71667         * modules/unictype/property-ideographic-tests (Files): Likewise.
71668         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
71669         * modules/unictype/property-ids-trinary-operator-tests (Files):
71670         Likewise.
71671         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
71672         * modules/unictype/property-iso-control-tests (Files): Likewise.
71673         * modules/unictype/property-join-control-tests (Files): Likewise.
71674         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
71675         * modules/unictype/property-line-separator-tests (Files): Likewise.
71676         * modules/unictype/property-logical-order-exception-tests (Files):
71677         Likewise.
71678         * modules/unictype/property-lowercase-tests (Files): Likewise.
71679         * modules/unictype/property-math-tests (Files): Likewise.
71680         * modules/unictype/property-non-break-tests (Files): Likewise.
71681         * modules/unictype/property-not-a-character-tests (Files): Likewise.
71682         * modules/unictype/property-numeric-tests (Files): Likewise.
71683         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
71684         * modules/unictype/property-other-default-ignorable-code-point-tests
71685         (Files): Likewise.
71686         * modules/unictype/property-other-grapheme-extend-tests (Files):
71687         Likewise.
71688         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
71689         * modules/unictype/property-other-id-start-tests (Files): Likewise.
71690         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
71691         * modules/unictype/property-other-math-tests (Files): Likewise.
71692         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
71693         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
71694         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
71695         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
71696         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
71697         * modules/unictype/property-private-use-tests (Files): Likewise.
71698         * modules/unictype/property-punctuation-tests (Files): Likewise.
71699         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
71700         * modules/unictype/property-radical-tests (Files): Likewise.
71701         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
71702         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
71703         * modules/unictype/property-space-tests (Files): Likewise.
71704         * modules/unictype/property-terminal-punctuation-tests (Files):
71705         Likewise.
71706         * modules/unictype/property-test-tests (Files): Likewise.
71707         * modules/unictype/property-titlecase-tests (Files): Likewise.
71708         * modules/unictype/property-unassigned-code-value-tests (Files):
71709         Likewise.
71710         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
71711         * modules/unictype/property-uppercase-tests (Files): Likewise.
71712         * modules/unictype/property-variation-selector-tests (Files): Likewise.
71713         * modules/unictype/property-white-space-tests (Files): Likewise.
71714         * modules/unictype/property-xid-continue-tests (Files): Likewise.
71715         * modules/unictype/property-xid-start-tests (Files): Likewise.
71716         * modules/unictype/property-zero-width-tests (Files): Likewise.
71717         * modules/unictype/scripts-tests (Files): Likewise.
71718         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
71719         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
71720         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
71721         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
71722         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
71723         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
71724         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
71725         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
71726         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
71727         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
71728         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
71729         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
71730         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
71731         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
71732         * modules/uninorm/composition-tests (Files): Likewise.
71733         * modules/uninorm/decomposing-form-tests (Files): Likewise.
71734         * modules/uninorm/decomposition-tests (Files): Likewise.
71735         * modules/uninorm/filter-tests (Files): Likewise.
71736         * modules/uninorm/nfc-tests (Files): Likewise.
71737         * modules/uninorm/nfd-tests (Files): Likewise.
71738         * modules/uninorm/nfkc-tests (Files): Likewise.
71739         * modules/uninorm/nfkd-tests (Files): Likewise.
71740         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
71741         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
71742         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
71743         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
71744         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
71745         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
71746         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
71747         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
71748         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
71749         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
71750         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
71751         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
71752         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
71753         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
71754         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
71755         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
71756         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
71757         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
71758         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
71759         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
71760         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
71761         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
71762         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
71763         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
71764         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
71765         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
71766         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
71767         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
71768         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
71769         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
71770         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
71771         * modules/uniwidth/u8-width-tests (Files): Likewise.
71772         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
71773         * modules/uniwidth/u16-width-tests (Files): Likewise.
71774         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
71775         * modules/uniwidth/u32-width-tests (Files): Likewise.
71776         * modules/uniwidth/width-tests (Files): Likewise.
71777         * modules/unlink-tests (Files): Likewise.
71778         * modules/unsetenv-tests (Files): Likewise.
71779         * modules/usleep-tests (Files): Likewise.
71780         * modules/utimens-tests (Files): Likewise.
71781         * modules/utimensat-tests (Files): Likewise.
71782         * modules/vasnprintf-posix-tests (Files): Likewise.
71783         * modules/vasnprintf-tests (Files): Likewise.
71784         * modules/vasprintf-posix-tests (Files): Likewise.
71785         * modules/vasprintf-tests (Files): Likewise.
71786         * modules/vdprintf-posix-tests (Files): Likewise.
71787         * modules/vfprintf-posix-tests (Files): Likewise.
71788         * modules/vprintf-posix-tests (Files): Likewise.
71789         * modules/vsnprintf-posix-tests (Files): Likewise.
71790         * modules/vsnprintf-tests (Files): Likewise.
71791         * modules/vsprintf-posix-tests (Files): Likewise.
71792         * modules/wcrtomb-tests (Files): Likewise.
71793         * modules/wcsnrtombs-tests (Files): Likewise.
71794         * modules/wcsrtombs-tests (Files): Likewise.
71795         * modules/wctype-tests (Files): Likewise.
71796         * modules/wcwidth-tests (Files): Likewise.
71797         * modules/xmemdup0-tests (Files): Likewise.
71798         * modules/xprintf-posix-tests (Files): Likewise.
71799         * modules/xvasprintf-tests (Files): Likewise.
71801 2009-12-24  Eric Blake  <ebb9@byu.net>
71803         test-nanosleep: fix typo
71804         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
71805         patch.
71806         Reported by Bruno Haible.
71808 2009-12-24  Bruno Haible  <bruno@clisp.org>
71810         Reduce namespace pollution on glibc systems.
71811         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
71812         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
71813         systems.
71814         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
71815         <getopt.h> on glibc systems.
71816         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
71817         systems.
71818         * lib/fcntl.c: Include <unistd.h> here instead.
71820 2009-12-24  Bruno Haible  <bruno@clisp.org>
71822         * lib/stdlib.in.h (includes): Fix typo in today's commit.
71824 2009-12-24  Eric Blake  <ebb9@byu.net>
71826         tests: add signature checks
71827         * tests/signature.h (SIGNATURE_CHECK): New file.
71828         * modules/atexit-tests (Files): Use it.
71829         * modules/btowc-tests (Files): Likewise.
71830         * modules/canonicalize-lgpl-tests (Files): Likewise.
71831         * modules/ceilf-tests (Files): Likewise.
71832         * modules/ceill-tests (Files): Likewise.
71833         * modules/chown-tests (Files): Likewise.
71834         * modules/dprintf-posix-tests (Files): Likewise.
71835         * modules/dup2-tests (Files): Likewise.
71836         * modules/dup3-tests (Files): Likewise.
71837         * modules/duplocale-tests (Files): Likewise.
71838         * modules/fchdir-tests (Files): Likewise.
71839         * modules/fcntl-tests (Files): Likewise.
71840         * modules/fdopendir-tests (Files): Likewise.
71841         * modules/fflush-tests (Files): Likewise.
71842         * modules/flock-tests (Files): Likewise.
71843         * modules/floorf-tests (Files): Likewise.
71844         * modules/floorl-tests (Files): Likewise.
71845         * modules/fnmatch-tests (Files): Likewise.
71846         * modules/fopen-tests (Files): Likewise.
71847         * modules/fprintf-posix-tests (Files): Likewise.
71848         * modules/freopen-tests (Files): Likewise.
71849         * modules/frexp-nolibm-tests (Files): Likewise.
71850         * modules/frexp-tests (Files): Likewise.
71851         * modules/frexpl-nolibm-tests (Files): Likewise.
71852         * modules/frexpl-tests (Files): Likewise.
71853         * modules/fseek-tests (Files): Likewise.
71854         * modules/fseeko-tests (Files): Likewise.
71855         * modules/fsync-tests (Files): Likewise.
71856         * modules/ftell-tests (Files): Likewise.
71857         * modules/ftello-tests (Files): Likewise.
71858         * modules/futimens-tests (Files): Likewise.
71859         * modules/getaddrinfo-tests (Files): Likewise.
71860         * modules/getcwd-tests (Files): Likewise.
71861         * modules/getdelim-tests (Files): Likewise.
71862         * modules/getdtablesize-tests (Files): Likewise.
71863         * modules/getgroups-tests (Files): Likewise.
71864         * modules/gethostname-tests (Files): Likewise.
71865         * modules/getline-tests (Files): Likewise.
71866         * modules/getopt-posix-tests (Files): Likewise.
71867         * modules/gettimeofday-tests (Files): Likewise.
71868         * modules/glob-tests (Files): Likewise.
71869         * modules/iconv-tests (Files): Likewise.
71870         * modules/inet_ntop-tests (Files): Likewise.
71871         * modules/inet_pton-tests (Files): Likewise.
71872         * modules/isblank-tests (Files): Likewise.
71873         * modules/lchown-tests (Files): Likewise.
71874         * modules/ldexpl-tests (Files): Likewise.
71875         * modules/link-tests (Files): Likewise.
71876         * modules/linkat-tests (Files): Likewise.
71877         * modules/lseek-tests (Files): Likewise.
71878         * modules/lstat-tests (Files): Likewise.
71879         * modules/mbrtowc-tests (Files): Likewise.
71880         * modules/mbsinit-tests (Files): Likewise.
71881         * modules/mbsnrtowcs-tests (Files): Likewise.
71882         * modules/mbsrtowcs-tests (Files): Likewise.
71883         * modules/memchr-tests (Files): Likewise.
71884         * modules/memcmp-tests (Files): Likewise.
71885         * modules/memmem-tests (Files): Likewise.
71886         * modules/memrchr-tests (Files): Likewise.
71887         * modules/mkdir-tests (Files): Likewise.
71888         * modules/mkfifo-tests (Files): Likewise.
71889         * modules/mkfifoat-tests (Files): Likewise.
71890         * modules/mknod-tests (Files): Likewise.
71891         * modules/nanosleep-tests (Files): Likewise.
71892         * modules/nl_langinfo-tests (Files): Likewise.
71893         * modules/obstack-printf-tests (Files): Likewise.
71894         * modules/open-tests (Files): Likewise.
71895         * modules/openat-tests (Files): Likewise.
71896         * modules/perror-tests (Files): Likewise.
71897         * modules/pipe2-tests (Files): Likewise.
71898         * modules/poll-tests (Files): Likewise.
71899         * modules/popen-tests (Files): Likewise.
71900         * modules/posix_spawn-tests (Files): Likewise.
71901         * modules/posix_spawnp-tests (Files): Likewise.
71902         * modules/pread-tests (Files): Likewise.
71903         * modules/printf-posix-tests (Files): Likewise.
71904         * modules/pty-tests (Files): Likewise.
71905         * modules/random_r-tests (Files): Likewise.
71906         * modules/rawmemchr-tests (Files): Likewise.
71907         * modules/readlink-tests (Files): Likewise.
71908         * modules/remove-tests (Files): Likewise.
71909         * modules/rename-tests (Files): Likewise.
71910         * modules/renameat-tests (Files): Likewise.
71911         * modules/rmdir-tests (Files): Likewise.
71912         * modules/round-tests (Files): Likewise.
71913         * modules/roundf-tests (Files): Likewise.
71914         * modules/roundl-tests (Files): Likewise.
71915         * modules/select-tests (Files): Likewise.
71916         * modules/setenv-tests (Files): Likewise.
71917         * modules/sigaction-tests (Files): Likewise.
71918         * modules/sleep-tests (Files): Likewise.
71919         * modules/snprintf-posix-tests (Files): Likewise.
71920         * modules/snprintf-tests (Files): Likewise.
71921         * modules/sprintf-posix-tests (Files): Likewise.
71922         * modules/stat-tests (Files): Likewise.
71923         * modules/strcasestr-tests (Files): Likewise.
71924         * modules/strchrnul-tests (Files): Likewise.
71925         * modules/strerror-tests (Files): Likewise.
71926         * modules/strsignal-tests (Files): Likewise.
71927         * modules/strstr-tests (Files): Likewise.
71928         * modules/strtod-tests (Files): Likewise.
71929         * modules/strverscmp-tests (Files): Likewise.
71930         * modules/symlink-tests (Files): Likewise.
71931         * modules/symlinkat-tests (Files): Likewise.
71932         * modules/times-tests (Files): Likewise.
71933         * modules/trunc-tests (Files): Likewise.
71934         * modules/truncf-tests (Files): Likewise.
71935         * modules/truncl-tests (Files): Likewise.
71936         * modules/tsearch-tests (Files): Likewise.
71937         * modules/uname-tests (Files): Likewise.
71938         * modules/unlink-tests (Files): Likewise.
71939         * modules/unsetenv-tests (Files): Likewise.
71940         * modules/usleep-tests (Files): Likewise.
71941         * modules/utimensat-tests (Files): Likewise.
71942         * modules/vasprintf-tests (Files): Likewise.
71943         * modules/vdprintf-posix-tests (Files): Likewise.
71944         * modules/vfprintf-posix-tests (Files): Likewise.
71945         * modules/vprintf-posix-tests (Files): Likewise.
71946         * modules/vsnprintf-posix-tests (Files): Likewise.
71947         * modules/vsnprintf-tests (Files): Likewise.
71948         * modules/vsprintf-posix-tests (Files): Likewise.
71949         * modules/wcrtomb-tests (Files): Likewise.
71950         * modules/wcsnrtombs-tests (Files): Likewise.
71951         * modules/wcsrtombs-tests (Files): Likewise.
71952         * modules/wcwidth-tests (Files): Likewise.
71953         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
71954         * tests/test-isinf.c (isinf): Likewise.
71955         * tests/test-isnan.c (isnan): Likewise.
71956         * tests/test-signbit.c (signbit): Likewise.
71957         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
71958         declaration, either as macro or with correct signature.
71959         (select): Ensure function under test is declared with correct
71960         signature in correct header.
71961         * tests/test-atexit.c (atexit): Likewise.
71962         * tests/test-btowc.c (btowc): Likewise.
71963         * tests/test-canonicalize-lgpl.c (realpath)
71964         (canonicalize_file_name): Likewise.
71965         * tests/test-ceilf1.c (ceilf): Likewise.
71966         * tests/test-ceill.c (ceill): Likewise.
71967         * tests/test-chown.c (chown): Likewise.
71968         * tests/test-dprintf-posix.c (dprintf): Likewise.
71969         * tests/test-dup2.c (dup2): Likewise.
71970         * tests/test-dup3.c (dup3): Likewise.
71971         * tests/test-duplocale.c (duplocale): Likewise.
71972         * tests/test-fchdir.c (fchdir): Likewise.
71973         * tests/test-fchownat.c (fchownat): Likewise.
71974         * tests/test-fcntl.c (fcntl): Likewise.
71975         * tests/test-fdopendir.c (fdopendir): Likewise.
71976         * tests/test-fflush.c (fflush): Likewise.
71977         * tests/test-flock.c (flock): Likewise.
71978         * tests/test-floorf1.c (floorf): Likewise.
71979         * tests/test-floorl.c (floorl): Likewise.
71980         * tests/test-fnmatch.c (fnmatch): Likewise.
71981         * tests/test-fopen.c (fopen): Likewise.
71982         * tests/test-fprintf-posix.c (fprintf): Likewise.
71983         * tests/test-freopen.c (freopen): Likewise.
71984         * tests/test-frexp.c (frexp): Likewise.
71985         * tests/test-frexpl.c (frexpl): Likewise.
71986         * tests/test-fseek.c (fseek): Likewise.
71987         * tests/test-fseeko.c (fseeko): Likewise.
71988         * tests/test-fstatat.c (fstatat): Likewise.
71989         * tests/test-fsync.c (fsync): Likewise.
71990         * tests/test-ftell.c (ftell): Likewise.
71991         * tests/test-ftello.c (ftello): Likewise.
71992         * tests/test-futimens.c (futimens): Likewise.
71993         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
71994         (gai_strerror): Likewise.
71995         * tests/test-getcwd.c (getcwd): Likewise.
71996         * tests/test-getdelim.c (getdelim): Likewise.
71997         * tests/test-getdtablesize.c (getdtablesize): Likewise.
71998         * tests/test-getgroups.c (getgroups): Likewise.
71999         * tests/test-gethostname.c (gethostname): Likewise.
72000         * tests/test-getline.c (getline): Likewise.
72001         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
72002         Likewise.
72003         * tests/test-gettimeofday.c (gettimeofday): Likewise.
72004         * tests/test-glob.c (glob, globfree): Likewise.
72005         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
72006         * tests/test-inet_ntop.c (inet_ntop): Likewise.
72007         * tests/test-inet_pton.c (inet_pton): Likewise.
72008         * tests/test-isblank.c (isblank): Likewise.
72009         * tests/test-lchown.c (lchown): Likewise.
72010         * tests/test-ldexpl.c (ldexpl): Likewise.
72011         * tests/test-link.c (link): Likewise.
72012         * tests/test-linkat.c (linkat): Likewise.
72013         * tests/test-lseek.c (lseek): Likewise.
72014         * tests/test-lstat.c (lstat): Likewise.
72015         * tests/test-mbrtowc.c (mbrtowc): Likewise.
72016         * tests/test-mbsinit.c (mbsinit): Likewise.
72017         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
72018         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
72019         * tests/test-memchr.c (memchr): Likewise.
72020         * tests/test-memcmp.c (memcmp): Likewise.
72021         * tests/test-memmem.c (memmem): Likewise.
72022         * tests/test-memrchr.c (memrchr): Likewise.
72023         * tests/test-mkdir.c (mkdir): Likewise.
72024         * tests/test-mkdirat.c (mkdirat): Likewise.
72025         * tests/test-mkfifo.c (mkfifo): Likewise.
72026         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
72027         * tests/test-mknod.c (mknod): Likewise.
72028         * tests/test-nanosleep.c (nanosleep): Likewise.
72029         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
72030         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
72031         Likewise.
72032         * tests/test-open.c (open): Likewise.
72033         * tests/test-openat.c (openat): Likewise.
72034         * tests/test-perror.c (perror): Likewise.
72035         * tests/test-pipe2.c (pipe2): Likewise.
72036         * tests/test-poll.c (poll): Likewise.
72037         * tests/test-popen.c (popen, pclose): Likewise.
72038         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
72039         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
72040         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
72041         (posix_spawn_file_actions_destroy)
72042         (posix_spawn_file_actions_addclose)
72043         (posix_spawn_file_actions_addopen)
72044         (posix_spawn_file_actions_adddup2): Likewise.
72045         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
72046         * tests/test-pread.c (pread): Likewise.
72047         * tests/test-printf-posix.c (printf): Likewise.
72048         * tests/test-pty.c (openpty, forkpty): Likewise.
72049         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
72050         (random_r): Likewise.
72051         * tests/test-rawmemchr.c (rawmemchr): Likewise.
72052         * tests/test-readlink.c (readlink): Likewise.
72053         * tests/test-remove.c (remove): Likewise.
72054         * tests/test-rename.c (rename): Likewise.
72055         * tests/test-renameat.c (renameat): Likewise.
72056         * tests/test-rmdir.c (rmdir): Likewise.
72057         * tests/test-round1.c (round): Likewise.
72058         * tests/test-roundf1.c (roundf): Likewise.
72059         * tests/test-roundl.c (roundl): Likewise.
72060         * tests/test-setenv.c (setenv): Likewise.
72061         * tests/test-sigaction.c (sigaction): Likewise.
72062         * tests/test-sleep.c (sleep): Likewise.
72063         * tests/test-snprintf.c (snprintf): Likewise.
72064         * tests/test-sprintf-posix.c (sprintf): Likewise.
72065         * tests/test-stat.c (stat): Likewise.
72066         * tests/test-stpncpy.c (stpncpy): Likewise.
72067         * tests/test-strcasestr.c (strcasestr): Likewise.
72068         * tests/test-strchrnul.c (strchrnul): Likewise.
72069         * tests/test-strerror.c (strerror): Likewise.
72070         * tests/test-strsignal.c (strsignal): Likewise.
72071         * tests/test-strstr.c (strstr): Likewise.
72072         * tests/test-strtod.c (strtod): Likewise.
72073         * tests/test-strverscmp.c (strverscmp): Likewise.
72074         * tests/test-symlink.c (symlink): Likewise.
72075         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
72076         * tests/test-times.c (times): Likewise.
72077         * tests/test-trunc1.c (trunc): Likewise.
72078         * tests/test-truncf1.c (truncf): Likewise.
72079         * tests/test-truncl.c (truncl): Likewise.
72080         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
72081         Likewise.
72082         * tests/test-uname.c (uname): Likewise.
72083         * tests/test-unlink.c (unlink): Likewise.
72084         * tests/test-unlinkat.c (unlinkat): Likewise.
72085         * tests/test-unsetenv.c (unsetenv): Likewise.
72086         * tests/test-usleep.c (usleep): Likewise.
72087         * tests/test-utimensat.c (utimensat): Likewise.
72088         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
72089         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
72090         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
72091         * tests/test-vprintf-posix.c (vprintf): Likewise.
72092         * tests/test-vsnprintf.c (vsnprintf): Likewise.
72093         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
72094         * tests/test-wcrtomb.c (wcrtomb): Likewise.
72095         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
72096         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
72097         * tests/test-wcwidth.c (wcwidth): Likewise.
72099         build: pull in conditional headers during GNULIB_POSIXCHECK
72100         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
72101         definitions from any conditionally-included headers.
72102         * lib/stdlib.in.h (includes): Likewise.
72103         * lib/unistd.in.h (includes): Likewise.
72105 2009-12-24  Bruno Haible  <bruno@clisp.org>
72107         * tests/test-argv-iter.c: Include header file being tested immediately
72108         after config.h.
72109         * tests/test-base64.c: Likewise.
72110         * tests/test-flock.c: Likewise.
72111         * tests/test-fsync.c: Likewise.
72112         * tests/test-getdate.c: Likewise.
72113         * tests/test-getndelim2.c: Likewise.
72114         * tests/test-isfinite.c: Likewise.
72115         * tests/test-isinf.c: Likewise.
72116         * tests/test-strerror.c: Likewise.
72117         * tests/test-strsignal.c: Likewise.
72119 2009-12-23  Eric Blake  <ebb9@byu.net>
72121         unistd: work around cygwin bug
72122         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
72123         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
72124         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
72126 2009-12-23  Bruno Haible  <bruno@clisp.org>
72128         localename: More tests.
72129         * tests/test-localename.c (SIZEOF): New macro.
72130         (categories): New variable.
72131         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
72132         test_locale_name_default): Add test w.r.t. thread locale.
72133         (test_locale_name_thread): New function.
72134         (main): Invoke it.
72136         localename: Make aware of thread locale.
72137         * lib/localename.h (gl_locale_name_thread): New declaration.
72138         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
72139         behaviour with respect to thread locale.
72140         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
72141         <langinfo.h>, glthread/lock.h.
72142         (SIZE_BITS): New macro.
72143         (string_hash): New function.
72144         (struct hash_node): New type.
72145         (HASH_TABLE_SIZE): New macro.
72146         (struniq_hash_table, struniq_lock): New variables.
72147         (struniq): New function.
72148         (gl_locale_name_thread): New function.
72149         (gl_locale_name): Invoke it.
72150         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
72151         * modules/localename (Depends-on): Add lock.
72152         Reported by Mike Gran <spk121@yahoo.com>.
72154 2009-12-23  Eric Blake  <ebb9@byu.net>
72156         va-args: new module
72157         * modules/va-args: New file.
72158         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
72159         * MODULES.html.sh (Core language properties): Mention it.
72161         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
72162         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
72163         named alias for __attribute__((__unused__)).
72164         * lib/chown.c: Update client.
72165         * lib/fchmodat.c: Likewise.
72166         * lib/fts.c: Likewise.
72167         * lib/getdate.y: Likewise.
72168         * lib/getgroups.c: Likewise.
72169         * lib/getopt.c: Likewise.
72170         * lib/getugroups.c: Likewise.
72171         * lib/mkdir.c: Likewise.
72172         * lib/mkfifo.c: Likewise.
72173         * lib/mkfifoat.c: Likewise.
72174         * lib/mknod.c: Likewise.
72175         * lib/mknodat.c: Likewise.
72176         * lib/readlink.c: Likewise.
72177         * lib/se-context.in.h: Likewise.
72178         * lib/se-selinux.in.h: Likewise.
72179         * lib/sockets.c: Likewise.
72180         * lib/symlink.c: Likewise.
72181         * lib/symlinkat.c: Likewise.
72182         * lib/unicodeio.c: Likewise.
72183         * lib/unistr.h: Likewise.
72184         * tests/test-areadlink.c: Likewise.
72185         * tests/test-areadlinkat.c: Likewise.
72186         * tests/test-filenamecat.c: Likewise.
72187         * tests/test-fseeko.c: Likewise.
72188         * tests/test-ftello.c: Likewise.
72189         * tests/test-getdate.c: Likewise.
72190         * tests/test-getgroups.c: Likewise.
72191         * tests/test-gethostname.c: Likewise.
72192         * tests/test-quotearg.c: Likewise.
72193         * tests/test-version-etc.c: Likewise.
72194         * tests/test-xalloc-die.c: Likewise.
72195         * tests/test-xfprintf-posix.c: Likewise.
72196         * tests/test-xprintf-posix.c: Likewise.
72197         * tests/test-xvasprintf.c: Likewise.
72199         tests: avoid compiler warnings
72200         * tests/test-fcntl.c (main): Delete unused parameters.
72201         * tests/test-freopen-safer.c (main): Likewise.
72202         * tests/test-xalloc-die.c (main): Mark unused parameters.
72203         * tests/test-fseeko.c (main): Likewise.
72204         * tests/test-ftello.c (main): Likewise.
72205         * tests/test-nanosleep.c (main): Avoid declaration warning.
72206         * tests/test-sleep.c (main): Likewise.
72207         * tests/test-unsetenv.c (main): Silence warning about string
72208         literal.
72209         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
72211 2009-12-23  Bruno Haible  <bruno@clisp.org>
72213         * tests/test-localename.c (test_locale_name): New function, extracted
72214         from main. Also test mixed situations.
72215         (test_locale_name_posix, test_locale_name_environ,
72216         test_locale_name_default): New functions.
72217         (main): Invoke them all.
72218         * modules/localename-tests (configure.ac): Test for newlocale.
72220 2009-12-23  Bruno Haible  <bruno@clisp.org>
72222         unistd: Ensure getcwd gets declared before being overridden.
72223         * lib/unistd.in.h: Conditionally include <io.h>.
72225 2009-12-22  Bruno Haible  <bruno@clisp.org>
72227         wchar: Diagnose broken combination of glibc and gcc versions and flags.
72228         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
72229         (gl_WCHAR_H): Invoke it.
72230         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
72231         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
72232         Reported by Karl Berry <karl@freefriends.org>.
72234 2009-12-22  Eric Blake  <ebb9@byu.net>
72236         math, unistd: avoid redundant includes
72237         * lib/math.in.h (isnan): No need to re-include <math.h>.
72238         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
72240         getsubopt: work around cygwin bug
72241         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
72242         avoid conflicting with system getsubopt.
72243         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
72244         bug.
72246         getopt: synchronize from glibc
72247         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
72248         parameter order.  Adjust all callers.
72249         (_getopt_internal_r, main): Adjust quoting in error messages.
72250         Drop considerations for outdated POSIX 1003.2 error message.
72251         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
72252         callers.
72253         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
72255         test-getopt: test stderr behavior
72256         * modules/getopt-posix-tests (Depends-on): Add dup2.
72257         * tests/test-getopt.c (ASSERT): Avoid stderr.
72258         (main): Move stderr to a temporary file.
72259         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
72260         Instead, add parameter to inform caller if output occurred.
72261         (test_getopt): Adjust all existing tests to expect silence, and
72262         add new tests of leading ":".
72263         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
72264         glibc shortcomings with leading "-:" or "+:" in optstring.
72265         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
72266         Likewise.
72267         * doc/posix-functions/getopt.texi (getopt): Likewise.
72269         test-getopt: enhance test
72270         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
72271         supports optind=0.
72272         * tests/test-getopt.c (OPTIND_MIN): Move...
72273         * tests/test-getopt.h (OPTIND_MIN): ...here.
72274         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
72275         Require that optind=0 works, since modern BSD supports it in
72276         addition to optreset, and since coreutils expects it.
72277         (test_getopt_long_only): New test.
72278         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
72279         glibc shortcomings with 'W;', and enforcement of optind=0.
72280         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
72281         Likewise.
72283 2009-12-21  Bruno Haible  <bruno@clisp.org>
72285         localename: Improvements for MacOS X and Cygwin.
72286         * lib/localename.h (gl_locale_name_environ): New declaration.
72287         * lib/localename.c (gl_locale_name_environ): New function, extracted from
72288         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
72289         (gl_locale_name_posix): Invoke it.
72290         (gl_locale_name_default): Add comments. Use Windows native API also on
72291         Cygwin.
72293 2009-12-21  Bruno Haible  <bruno@clisp.org>
72295         Update list of Win32 locale ids.
72296         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
72297         (LANG_SAMI): Renamed from LANG_SAAMI.
72298         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
72299         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
72300         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
72301         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
72302         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
72303         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
72304         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
72305         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
72306         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
72307         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
72308         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
72309         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
72310         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
72311         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
72312         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
72313         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
72314         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
72315         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
72316         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
72317         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
72318         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
72319         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
72320         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
72321         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
72322         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
72323         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
72324         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
72325         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
72326         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
72327         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
72328         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
72329         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
72330         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
72331         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
72332         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
72333         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
72334         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
72335         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
72336         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
72337         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
72338         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
72339         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
72340         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
72341         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
72342         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
72343         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
72344         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
72345         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
72346         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
72347         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
72348         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
72349         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
72350         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
72351         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
72352         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
72353         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
72354         Add more languages and countries for Sami, Sorbian. Add more countries
72355         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
72356         for Pashto. Change country for Syriac, Tswana.
72358 2009-12-21  Eric Blake  <ebb9@byu.net>
72360         test-utimens: avoid spurious failure
72361         * tests/test-chown.h (nap): Factor...
72362         * tests/nap.h: ...into new file.
72363         * tests/test-lchown.h (nap): Avoid duplication.
72364         * tests/test-utimens-common.h (nap): Use shared implementation,
72365         necessary on file systems with 1-second resolution.
72366         * modules/chown-tests (Files): Include new file.
72367         * modules/fdutimensat-tests (Files): Likewise.
72368         * modules/futimens-tests (Files): Likewise.
72369         * modules/lchown-tests (Files): Likewise.
72370         * modules/openat-tests (Files): Likewise.
72371         * modules/utimens-tests (Files): Likewise.
72372         * modules/utimensat-tests (Files): Likewise.
72374 2009-12-19  Eric Blake  <ebb9@byu.net>
72376         futimens, utimensat: work around Linux bug
72377         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
72378         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
72379         * lib/utimensat.c (rpl_utimensat): Work around it.
72380         * lib/futimens.c (rpl_futimens): Adjust comment.
72382         utimens: work around Linux ctime bug
72383         * lib/utimens.c (detect_ctime_bug): New helper function.
72384         (update_timespec): Differentiate between workaround needed for
72385         this bug vs. what is needed for systems that lack utimensat.
72386         (fdutimens, lutimens): Work around bug.
72388         utimens: check for ctime update
72389         * tests/test-utimens-common.h (check_ctime): Define.
72390         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
72391         * tests/test-futimens.h (test_futimens): Likewise.
72392         * tests/test-lutimens.h (test_lutimens): Likewise.
72393         * doc/posix-functions/futimens.texi (futimens): Document the bug.
72394         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
72396 2009-12-19  Bruno Haible  <bruno@clisp.org>
72398         dprintf-posix: Check against memory leak fixed on 2009-12-15.
72399         * tests/test-dprintf-posix2.sh: New file.
72400         * tests/test-dprintf-posix2.c: New file.
72401         * modules/dprintf-posix-tests (Files): Add them.
72402         (configure.ac): Check for getrlimit and setrlimit.
72403         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
72405 2009-12-19  Bruno Haible  <bruno@clisp.org>
72407         fprintf-posix: Check against memory leak fixed on 2009-12-15.
72408         * tests/test-fprintf-posix3.sh: New file.
72409         * tests/test-fprintf-posix3.c: New file.
72410         * modules/fprintf-posix-tests (Files): Add them.
72411         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
72413 2009-12-19  Eric Blake  <ebb9@byu.net>
72415         dirfd: fix prototype
72416         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
72417         * lib/dirfd.c (dirfd): Likewise.
72419         canonicalize: reduce memory usage
72420         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
72421         allocation to size.
72422         Reported by Solar Designer <solar@openwall.com>.
72424 2009-12-19  Bruno Haible  <bruno@clisp.org>
72426         New module attribute 'Applicability'.
72427         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
72428         * gnulib-tool: New option --extract-applicability.
72429         (func_usage): Document it.
72430         (sed_extract_prog): Recognize it.
72431         (func_get_applicability): New function.
72432         (func_import): Generalize handling of 'link-warning' module.
72433         * modules/link-warning (Applicability): New section.
72434         * modules/arg-nonnull (Applicability): New section.
72435         Repoted by Simon Josefsson <simon@josefsson.org>.
72437 2009-12-19  Bruno Haible  <bruno@clisp.org>
72439         fflush: tweak
72440         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
72441         * lib/fseeko.c (rpl_fseeko): Likewise.
72443 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
72445         * lib/gl_list.h: Fix typo in comment.
72447 2009-12-16  Eric Blake  <ebb9@byu.net>
72449         fcntl: use to simplify other modules
72450         * modules/cloexec (Depends-on): Add fcntl.
72451         * modules/fchdir (Depends-on): Likewise.
72452         * modules/fd-safer-flag (Depends-on): Likewise.
72453         * modules/unistd-safer (Depends-on): Likewise.
72454         * modules/dup3 (configure.ac): Set module indicator.
72455         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
72456         missing.
72457         * lib/fchdir.c (_gl_register_dup): Fix comment.
72458         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
72459         * lib/dup-safer.c (dup_safer): Likewise.
72460         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
72461         * lib/dup3.c (dup3): Likewise.
72462         * tests/test-fchdir.c (main): Enhance test.
72463         Fixes a dup_cloexec bug reported by Ondřej Vašík.
72465         fcntl: port portions of fcntl to mingw
72466         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
72467         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
72468         replacement for mingw.
72469         * modules/fcntl (Description): Update.
72470         (Depends-on): Add dup2.
72471         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
72472         * modules/fcntl-h (Makefile.am): Substitute it.
72473         * lib/fcntl.in.h (fcntl): Update declaration.
72474         (F_DUPFD, F_GETFD): New macros, when needed.
72475         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
72476         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
72477         * tests/test-fcntl.c (check_flags, main): Enhance test for items
72478         we now guarantee.
72480         fcntl: work around cygwin bug in F_DUPFD
72481         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
72482         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
72483         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
72484         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
72485         * doc/posix-functions/fcntl.texi (fcntl): Document it.
72487         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
72488         * modules/fcntl (Files): List new files.
72489         (configure.ac): Run a test.
72490         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
72491         * lib/fcntl.c (rpl_fcntl): Likewise.
72492         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
72493         (gl_FCNTL_H): Always replace fcntl.h.
72494         * modules/fcntl-h (Makefile.am): Substitute witnesses.
72495         * lib/fcntl.in.h (fcntl): Declare replacement.
72496         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
72497         needed, plus a witness.
72498         * doc/posix-functions/fcntl.texi (fcntl): Document this.
72499         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
72500         * tests/test-fcntl.c: New file.
72501         * modules/fcntl-tests: Likewise.
72503         binary-io: avoid potential compilation warning
72504         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
72505         directives.
72507         fflush: avoid compilation error on NetBSD
72508         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
72509         between off_t and fpos_t, since the latter is sometimes a struct.
72510         * lib/fseeko.c (rpl_fseeko): Likewise.
72511         Reported by Alexander Nasonov <alnsn@yandex.ru>.
72513 2009-12-15  Eric Blake  <ebb9@byu.net>
72515         fcntl-h, stdio, sys_ioctl: fix declarations
72516         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
72517         function must not take arguments.
72518         * lib/sys_ioctl.in.h (ioctl): Likewise.
72519         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
72520         (open): Add a link warning.
72522 2009-12-15  Jim Meyering  <meyering@redhat.com>
72524         areadlink, areadlink-with-size: relax license to LGPLv2+
72525         * modules/areadlink (License): Relax to LGPLv2+.
72526         * modules/areadlink-with-size (License): Likewise.
72528 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
72529             Bruno Haible  <bruno@clisp.org>
72531         *printf: Fix memory leak.
72532         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
72533         * lib/vfprintf.c (vfprintf): Likewise.
72534         * lib/dprintf.c (dprintf): Likewise.
72535         * lib/vdprintf.c (vdprintf): Likewise.
72537 2009-12-14  Eric Blake  <ebb9@byu.net>
72539         accept4: adjust module dependencies
72540         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
72542         utimens: one more try at avoiding compiler warning
72543         * lib/utimens.c (lutimens): Lower scope of result.
72545 2009-12-13  Bruno Haible  <bruno@clisp.org>
72547         Move the malloc checking from module 'list' to new module 'xlist'.
72548         * modules/xlist: New file.
72549         * lib/gl_xlist.h: New file.
72550         * lib/gl_xlist.c: New file.
72551         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
72552         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
72553         gl_list_add_last, gl_list_add_before, gl_list_add_after,
72554         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
72555         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
72556         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
72557         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
72558         gl_sortedlist_nx_add): New declarations.
72559         (struct gl_list_implementation): Rename and change methods accordingly.
72560         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
72561         (gl_list_nx_create): Renamed from gl_list_create.
72562         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
72563         (gl_list_nx_set_at): Renamed from gl_list_set_at.
72564         (gl_list_nx_add_first): Renamed from gl_list_add_first.
72565         (gl_list_nx_add_last): Renamed from gl_list_add_last.
72566         (gl_list_nx_add_before): Renamed from gl_list_add_before.
72567         (gl_list_nx_add_after): Renamed from gl_list_add_after.
72568         (gl_list_nx_add_at): Renamed from gl_list_add_at.
72569         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
72570         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
72571         gl_list_create_empty.
72572         (gl_list_nx_create): Renamed from gl_list_create.
72573         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
72574         (gl_list_nx_set_at): Renamed from gl_list_set_at.
72575         (gl_list_nx_add_first): Renamed from gl_list_add_first.
72576         (gl_list_nx_add_last): Renamed from gl_list_add_last.
72577         (gl_list_nx_add_before): Renamed from gl_list_add_before.
72578         (gl_list_nx_add_after): Renamed from gl_list_add_after.
72579         (gl_list_nx_add_at): Renamed from gl_list_add_at.
72580         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
72581         * lib/gl_array_list.c: Don't include xalloc.h.
72582         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
72583         NULL upon out-of-memory.
72584         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
72585         out-of-memory.
72586         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
72587         Change return type to 'int'.
72588         (gl_array_nx_set_at): Renamed from gl_array_set_at.
72589         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
72590         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
72591         upon out-of-memory.
72592         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
72593         upon out-of-memory.
72594         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
72595         upon out-of-memory.
72596         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
72597         upon out-of-memory.
72598         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
72599         out-of-memory.
72600         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
72601         Update.
72602         (gl_array_list_implementation): Update.
72603         * lib/gl_carray_list.c: Don't include xalloc.h.
72604         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
72605         Return NULL upon out-of-memory.
72606         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
72607         out-of-memory.
72608         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
72609         Change return type to 'int'.
72610         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
72611         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
72612         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
72613         upon out-of-memory.
72614         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
72615         upon out-of-memory.
72616         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
72617         out-of-memory.
72618         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
72619         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
72620         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
72621         Update.
72622         (gl_carray_list_implementation): Update.
72623         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
72624         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
72625         gl_linked_create_empty. Return NULL upon out-of-memory.
72626         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
72627         out-of-memory.
72628         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
72629         Change return type to 'int'. Return -1 upon out-of-memory.
72630         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
72631         out-of-memory.
72632         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
72633         upon out-of-memory.
72634         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
72635         upon out-of-memory.
72636         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
72637         NULL upon out-of-memory.
72638         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
72639         upon out-of-memory.
72640         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
72641         out-of-memory.
72642         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
72643         Update.
72644         * lib/gl_linked_list.c: Don't include xalloc.h.
72645         (gl_linked_list_implementation): Update.
72646         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
72647         (add_to_bucket): Change return type to 'int'.
72648         (gl_linkedhash_list_implementation): Update.
72649         * lib/gl_anytree_list1.h (free_subtree): New function.
72650         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
72651         gl_tree_create_empty. Return NULL upon out-of-memory.
72652         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
72653         Change return type to 'int'. Return -1 upon out-of-memory.
72654         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
72655         out-of-memory.
72656         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
72657         (gl_tree_remove_node): New function, moved here from
72658         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
72659         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
72660         Update.
72661         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
72662         malloc, not xmalloc. Return NULL upon out-of-memory.
72663         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
72664         out-of-memory.
72665         (gl_tree_remove_node_from_tree): New function, extracted from
72666         gl_tree_remove_node.
72667         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
72668         upon out-of-memory.
72669         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
72670         out-of-memory.
72671         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
72672         upon out-of-memory.
72673         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
72674         upon out-of-memory.
72675         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
72676         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
72677         not xmalloc. Return NULL upon out-of-memory.
72678         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
72679         out-of-memory.
72680         (gl_tree_remove_node_from_tree): New function, extracted from
72681         gl_tree_remove_node.
72682         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
72683         upon out-of-memory.
72684         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
72685         out-of-memory.
72686         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
72687         upon out-of-memory.
72688         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
72689         upon out-of-memory.
72690         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
72691         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
72692         gl_anytree_list1.h before gl_anyavltree_list2.h.
72693         (gl_avltree_list_implementation): Update.
72694         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
72695         gl_anytree_list1.h before gl_anyavltree_list2.h.
72696         (gl_rbtree_list_implementation): Update.
72697         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
72698         Change return type to 'int'. Return -1 upon out-of-memory. Use
72699         __builtin_expect.
72700         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
72701         (gl_avltreehash_list_implementation): Update.
72702         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
72703         (gl_rbtreehash_list_implementation): Update.
72704         * modules/array-list (Depends-on): Remove xalloc.
72705         * modules/carray-list (Depends-on): Likewise.
72706         * modules/linked-list (Depends-on): Likewise.
72707         * modules/linkedhash-list (Depends-on): Likewise.
72708         * modules/avltree-list (Depends-on): Likewise.
72709         * modules/rbtree-list (Depends-on): Likewise.
72710         * modules/avltreehash-list (Depends-on): Likewise.
72711         * modules/rbtreehash-list (Depends-on): Likewise.
72713         * modules/xsublist: New file.
72714         * lib/gl_xsublist.h: New file.
72715         * lib/gl_xsublist.c: New file.
72716         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
72717         (gl_sublist_nx_create): New declaration.
72718         * lib/gl_sublist.c: Don't include xalloc.h.
72719         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
72720         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
72721         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
72722         Change return type to 'int'. Return -1 upon out-of-memory.
72723         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
72724         upon out-of-memory.
72725         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
72726         NULL upon out-of-memory.
72727         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
72728         upon out-of-memory.
72729         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
72730         NULL upon out-of-memory.
72731         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
72732         NULL upon out-of-memory.
72733         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
72734         upon out-of-memory.
72735         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
72736         (gl_sublist_list_implementation): Update.
72737         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
72738         upon out-of-memory.
72739         * modules/sublist (Depends-on): Remove xalloc.
72741         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
72742         * tests/test-carray_list.c: Likewise.
72743         * tests/test-linked_list.c: Likewise.
72744         * tests/test-linkedhash_list.c: Likewise.
72745         * tests/test-avltree_list.c: Likewise.
72746         * tests/test-rbtree_list.c: Likewise.
72747         * tests/test-avltreehash_list.c: Likewise.
72748         * tests/test-rbtreehash_list.c: Likewise.
72749         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
72750         * modules/carray-list-tests (Makefile.am): Likewise.
72751         * modules/linked-list-tests (Makefile.am): Likewise.
72752         * modules/linkedhash-list-tests (Makefile.am): Likewise.
72753         * modules/avltree-list-tests (Makefile.am): Likewise.
72754         * modules/rbtree-list-tests (Makefile.am): Likewise.
72755         * modules/avltreehash-list-tests (Makefile.am): Likewise.
72756         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
72758         * NEWS: Mention the changes.
72760         * lib/clean-temp.c: Include gl_xlist.h.
72761         * modules/clean-temp (Depends-on): Add xlist.
72763         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
72764         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
72766         * tests/test-array_oset.c: Include gl_xlist.h.
72767         * modules/array-oset-tests (Depends-on): Add xlist.
72769         Reported by José E. Marchesi <jemarch@gnu.org>.
72771 2009-12-13  Bruno Haible  <bruno@clisp.org>
72773         Move the malloc checking from module 'oset' to new module 'xoset'.
72774         * modules/xoset: New file.
72775         * lib/gl_xoset.h: New file.
72776         * lib/gl_xoset.c: New file.
72777         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
72778         declarations.
72779         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
72780         (struct gl_oset_implementation): Rename and change methods accordingly.
72781         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
72782         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
72783         'int'. Mark as __warn_unused_result__.
72784         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
72785         gl_oset_create_empty.
72786         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
72787         'int'.
72788         * lib/gl_array_oset.c: Don't include xalloc.h.
72789         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
72790         malloc, not xmalloc.
72791         (grow): Change return type to 'int'. Don't call xalloc_die.
72792         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
72793         to 'int'.
72794         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
72795         'int'.
72796         (gl_array_oset_implementation): Update.
72797         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
72798         gl_tree_create_empty.
72799         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
72800         'int'.
72801         * lib/gl_avltree_oset.c: Don't include xalloc.h.
72802         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
72803         xmalloc.
72804         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
72805         not xmalloc.
72806         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
72807         xmalloc.
72808         (gl_avltree_oset_implementation): Update.
72809         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
72810         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
72811         xmalloc.
72812         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
72813         not xmalloc.
72814         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
72815         xmalloc.
72816         (gl_rbtree_oset_implementation): Update.
72817         * modules/array-oset (Depends-on): Remove xalloc.
72818         * modules/avltree-oset (Depends-on): Likewise.
72819         * modules/rbtree-oset (Depends-on): Likewise.
72820         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
72821         * tests/test-avltree_oset.c: Likewise.
72822         * tests/test-rbtree_oset.c: Likewise.
72823         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
72824         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
72825         * modules/rbtree-oset-tests (Makefile.am): Likewise.
72826         * NEWS: Mention the change.
72828 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
72830         maint.mk: allow a project to override release-prep commands
72831         * top/maint.mk (alpha, beta, stable): Move release-preparatory
72832         commands into a new rule.
72833         (release-prep): New rule.
72834         (release-prep-hook): New overridable variable.
72836 2009-12-13  Bruno Haible  <bruno@clisp.org>
72838         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
72840 2009-12-13  Jim Meyering  <meyering@redhat.com>
72842         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
72843         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
72845 2009-12-12  Bruno Haible  <bruno@clisp.org>
72847         duplocale: Tweak.
72848         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
72850 2009-12-12  Karl Berry  <karl@gnu.org>
72852         * config/srclist.txt (strtoll.c): tab changes, no more sync.
72854 2009-12-12  Bruno Haible  <bruno@clisp.org>
72856         * m4/po.m4: Undo incorrect untabification.
72858 2009-12-12  Bruno Haible  <bruno@clisp.org>
72860         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
72861         * modules/c-strtod (Depends-on): Add locale.
72862         * modules/c-strtold (Depends-on): Likewise.
72864 2009-12-12  Bruno Haible  <bruno@clisp.org>
72866         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
72868 2009-12-11  Eric Blake  <ebb9@byu.net>
72870         setenv: relax requirement in light of POSIX ruling
72871         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
72872         not NULL.
72873         * tests/test-setenv.c (main): Relax test.
72874         * tests/test-unsetenv.c (main): Likewise.
72875         * doc/posix-functions/setenv.texi (setenv): Document this.
72876         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
72878 2009-12-11  Bruno Haible  <bruno@clisp.org>
72880         New module 'fd-safer-flag'.
72881         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
72882         * lib/dup-safer.c (dup_safer_flag): Remove function.
72883         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
72884         * lib/fd-safer.c (fd_safer_flag): Remove function.
72885         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
72886         * modules/cloexec (configure.ac): Drop indicator macro.
72887         * modules/fd-safer-flag: New file.
72888         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
72889         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
72890         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
72892 2009-12-11  Bruno Haible  <bruno@clisp.org>
72894         Tests for module 'nl_langinfo'.
72895         * modules/nl_langinfo-tests: New file.
72896         * tests/test-nl_langinfo.sh: New file.
72897         * tests/test-nl_langinfo.c: New file.
72899         New module 'nl_langinfo'.
72900         * lib/nl_langinfo.c: New file.
72901         * m4/nl_langinfo.m4: New file.
72902         * modules/nl_langinfo: New file.
72903         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
72905 2009-12-11  Bruno Haible  <bruno@clisp.org>
72907         Tests for module 'langinfo'.
72908         * modules/langinfo-tests: New file.
72909         * tests/test-langinfo.c: New file.
72911         New module 'langinfo'.
72912         * lib/langinfo.in.h: New file.
72913         * m4/langinfo_h.m4: New file.
72914         * modules/langinfo: New file.
72915         * doc/posix-headers/langinfo.texi: Mention the new module.
72917 2009-12-11  Bruno Haible  <bruno@clisp.org>
72919         * lib/config.charset: Untabify.
72921 2009-12-11  Bruno Haible  <bruno@clisp.org>
72923         * modules/unistd-safer (configure.ac): Drop indicator macro.
72925 2009-12-11  Bruno Haible  <bruno@clisp.org>
72927         Move pipe2-safer code to its own file.
72928         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
72929         * lib/pipe-safer.c (pipe2_safer): Remove function.
72930         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
72931         (Makefile.am): Add it to lib_SOURCES.
72933 2009-12-10  Bruno Haible  <bruno@clisp.org>
72935         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
72937 2009-12-10  Bruno Haible  <bruno@clisp.org>
72939         Declare which arguments expect non-NULL values, for GCC and clang.
72940         * build-aux/arg-nonnull.h: New file.
72941         * modules/arg-nonnull: New file.
72942         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
72943         (inet_ntop, inet_pton): Use it.
72944         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
72945         (closedir, dirfd, opendir, scandir, alphasort): Use it.
72946         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
72947         (open, openat): Use it.
72948         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
72949         (fnmatch): Use it.
72950         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
72951         (getopt, getopt_long, getopt_long_only): Use it.
72952         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
72953         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
72954         Use it.
72955         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
72956         (iconv_open): Use it.
72957         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
72958         (strtoimax, strtoumax): Use it.
72959         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
72960         (duplocale): Use it.
72961         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
72962         (frexp, frexpl): Use it.
72963         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
72964         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
72965         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
72966         (tsearch, tfind, tdelete, twalk): Use it.
72967         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
72968         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
72969         sigpending): Use it.
72970         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
72971         (posix_spawn, posix_spawnp, posix_spawnattr_init,
72972         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
72973         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
72974         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
72975         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
72976         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
72977         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
72978         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
72979         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
72980         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
72981         Use it.
72982         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
72983         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
72984         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
72985         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
72986         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
72987         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
72988         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
72989         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
72990         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
72991         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
72992         strtoull, unsetenv): Use it.
72993         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
72994         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
72995         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
72996         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
72997         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
72998         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
72999         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
73000         (strcasecmp, strncasecmp): Use it.
73001         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
73002         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
73003         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
73004         rpl_setsockopt): Use it.
73005         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
73006         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
73007         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
73008         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
73009         (gettimeofday): Use it.
73010         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
73011         (times): Use it.
73012         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
73013         (uname): Use it.
73014         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
73015         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
73016         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
73017         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
73018         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
73019         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
73020         unlinkat, write): Use it.
73021         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
73022         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
73023         * lib/argv-iter.h: Include arg-nonnull.h.
73024         (_ATTRIBUTE_NONNULL_): Remove macro.
73025         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
73026         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
73027         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
73028         optimization.
73029         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
73030         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
73031         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
73032         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
73033         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
73034         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
73035         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
73036         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
73037         * modules/arpa_inet (Depends-on): Add arg-nonnull.
73038         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
73039         * modules/dirent (Depends-on): Add arg-nonnull.
73040         (Makefile.am): Insert arg-nonnull.h into dirent.h.
73041         * modules/fcntl-h (Depends-on): Add arg-nonnull.
73042         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
73043         * modules/fnmatch (Depends-on): Add arg-nonnull.
73044         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
73045         * modules/getopt-posix (Depends-on): Add arg-nonnull.
73046         (Makefile.am): Insert arg-nonnull.h into getopt.h.
73047         * modules/glob (Depends-on): Add arg-nonnull.
73048         (Makefile.am): Insert arg-nonnull.h into glob.h.
73049         * modules/iconv_open (Depends-on): Add arg-nonnull.
73050         (Makefile.am): Insert arg-nonnull.h into iconv.h.
73051         * modules/inttypes (Depends-on): Add arg-nonnull.
73052         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
73053         * modules/locale (Depends-on): Add arg-nonnull.
73054         (Makefile.am): Insert arg-nonnull.h into locale.h.
73055         * modules/math (Depends-on): Add arg-nonnull.
73056         (Makefile.am): Insert arg-nonnull.h into math.h.
73057         * modules/netdb (Depends-on): Add arg-nonnull.
73058         (Makefile.am): Insert arg-nonnull.h into netdb.h.
73059         * modules/search (Depends-on): Add arg-nonnull.
73060         (Makefile.am): Insert arg-nonnull.h into search.h.
73061         * modules/signal (Depends-on): Add arg-nonnull.
73062         (Makefile.am): Insert arg-nonnull.h into signal.h.
73063         * modules/spawn (Depends-on): Add arg-nonnull.
73064         (Makefile.am): Insert arg-nonnull.h into spawn.h.
73065         * modules/stdio (Depends-on): Add arg-nonnull.
73066         (Makefile.am): Insert arg-nonnull.h into stdio.h.
73067         * modules/stdlib (Depends-on): Add arg-nonnull.
73068         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
73069         * modules/string (Depends-on): Add arg-nonnull.
73070         (Makefile.am): Insert arg-nonnull.h into string.h.
73071         * modules/strings (Depends-on): Add arg-nonnull.
73072         (Makefile.am): Insert arg-nonnull.h into strings.h.
73073         * modules/sys_socket (Depends-on): Add arg-nonnull.
73074         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
73075         * modules/sys_stat (Depends-on): Add arg-nonnull.
73076         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
73077         * modules/sys_time (Depends-on): Add arg-nonnull.
73078         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
73079         * modules/sys_times (Depends-on): Add arg-nonnull.
73080         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
73081         * modules/sys_utsname (Depends-on): Add arg-nonnull.
73082         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
73083         * modules/time (Depends-on): Add arg-nonnull.
73084         (Makefile.am): Insert arg-nonnull.h into time.h.
73085         * modules/unistd (Depends-on): Add arg-nonnull.
73086         (Makefile.am): Insert arg-nonnull.h into unistd.h.
73087         * modules/wchar (Depends-on): Add arg-nonnull.
73088         (Makefile.am): Insert arg-nonnull.h into wchar.h.
73089         * modules/argv-iter (Depends-on): Add arg-nonnull.
73090         * tests/test-canonicalize.c (null_ptr): New function.
73091         (main): Use it.
73092         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
73093         (main): Use it.
73094         * tests/test-memmem.c (null_ptr): New function.
73095         (main): Use it.
73096         Reported by Jim Meyering.
73098 2009-12-10  Bruno Haible  <bruno@clisp.org>
73100         Use spaces for indentation, not tabs.
73101         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
73102         * m4/*.m4: Untabify.
73103         * build-aux/*.h: Untabify.
73104         * tests/**/*.[hc]: Untabify.
73105         * README: New section "Indent with spaces, not TABs", based on
73106         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
73107         * NEWS: Mention the change.
73109 2009-12-10  Bruno Haible  <bruno@clisp.org>
73111         pty test: Fix link error.
73112         * modules/pty-tests (Makefile.am): Add the default LDADD value to
73113         test_pty_LDADD.
73115 2009-12-07  Simon Josefsson  <simon@josefsson.org>
73117         * modules/pty: New file.
73118         * modules/pty-tests: New file.
73119         * m4/pty.m4: New file.
73120         * tests/test-pty.c: New file.
73121         * doc/glibc-headers/pty.texi: Modified.
73122         * doc/glibc-functions/forkpty.texi: Modified.
73123         * doc/glibc-functions/openpty.texi: Modified.
73125 2009-12-10  Bruno Haible  <bruno@clisp.org>
73127         Avoid syntax error in C++ mode.
73128         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
73130 2009-12-10  Bruno Haible  <bruno@clisp.org>
73132         Use sed with option -e.
73133         * gnulib-tool (func_version, func_emit_copyright_notice,
73134         func_emit_initmacro_end, func_import, func_create_testdir): Pass
73135         option -e to sed.
73136         * modules/link-warning (Makefile.am): Likewise.
73138 2009-12-10  Jim Meyering  <meyering@redhat.com>
73140         mgetgroups: do not write bytes beyond end of malloc'd buffer
73141         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
73142         username, we call getgroups with a one-element-shorter buffer,
73143         but still told it the length was original, max_n_groups.
73145 2009-12-09  Eric Blake  <ebb9@byu.net>
73147         cloexec: relax license
73148         * modules/cloexec (Maintainer): Add myself.
73149         (License): Use LGPL, not GPL.
73151         link-warning: optimize generation
73152         * modules/link-warning (Makefile.am): Reduce process usage.
73154 2009-12-09  Bruno Haible  <bruno@clisp.org>
73156         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
73157         workaround was added on 2009-11-17.
73159 2009-12-09  Jim Meyering  <meyering@redhat.com>
73160             Bruno Haible  <bruno@clisp.org>
73162         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
73163         * modules/link-warning (Makefile.am): Make the comment-removing sed
73164         command more robust in the face of bootstrap-prepended comment lines.
73166 2009-12-09  Bruno Haible  <bruno@clisp.org>
73168         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
73169         most one group.
73171 2009-12-09  Simon Josefsson  <simon@josefsson.org>
73172             Bruno Haible  <bruno@clisp.org>
73174         * build-aux/link-warning.h: Add copyright notice.
73175         * modules/link-warning (Makefile.am): Generate link-warning.h from
73176         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
73177         * NEWS: Mention change in link-warning module.
73178         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
73179         * modules/dirent (Makefile.am): Add dependency to dirent.h.
73180         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
73181         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
73182         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
73183         * modules/math (Makefile.am): Add dependency to math.h.
73184         * modules/search (Makefile.am): Add dependency to search.h.
73185         * modules/signal (Makefile.am): Add dependency to signal.h.
73186         * modules/spawn (Makefile.am): Add dependency to spawn.h.
73187         * modules/stdio (Makefile.am): Add dependency to stdio.h.
73188         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
73189         * modules/string (Makefile.am): Add dependency to string.h.
73190         * modules/strings (Makefile.am): Add dependency to strings.h.
73191         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
73192         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
73193         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
73194         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
73195         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
73196         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
73197         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
73198         * modules/unistd (Makefile.am): Add dependency to unistd.h.
73199         * modules/wchar (Makefile.am): Add dependency to wchar.h.
73201 2009-12-09  Bruno Haible  <bruno@clisp.org>
73203         fchdir: Optimize away rpl_fstat when possible.
73204         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
73205         REPLACE_OPEN_DIRECTORY.
73206         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
73208 2009-12-09  Bruno Haible  <bruno@clisp.org>
73210         * lib/fchdir.c: Update comment.
73212 2009-12-09  Bruno Haible  <bruno@clisp.org>
73214         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
73216 2009-12-08  Eric Blake  <ebb9@byu.net>
73218         fchdir: avoid memory leak on re-registration.
73219         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
73221 2009-12-08  Jim Meyering  <meyering@redhat.com>
73223         init.sh: avoid Solaris 10 /bin/sh portability problem
73224         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
73225         sourced script:
73226           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
73227           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
73228           bar
73229         tests/init.sh relied on that, accepting a --set-path=DIR argument,
73230         and two tests used that idiom.
73231         * tests/init.sh: Update suggested usage comments.
73232         (path_prepend_): New function, to be used in place
73233         of the --src-path=DIR option.
73234         (setup_): Move PATH-prepending code into path_prepend_.
73235         * tests/test-pread.sh: Adapt to new usage.
73236         * tests/test-xalloc-die.sh: Likewise.
73238 2009-12-08  Simon Josefsson  <simon@josefsson.org>
73240         * doc/gnulib.texi (Glibc pty.h): Add.
73241         * doc/glibc-functions/forkpty.texi: Add.
73242         * doc/glibc-functions/openpty.texi: Add.
73243         Suggested by Bruno Haible.
73245 2009-12-08  Eric Blake  <ebb9@byu.net>
73247         fchdir: fix logic bugs
73248         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
73249         * tests/test-fchdir.c (main): Enhance test.
73250         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
73251         is in use.
73253         dup2: fix logic bugs
73254         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
73255         REPLACE_DUP2 to decide when rpl_dup2 is needed.
73256         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
73257         exists.
73258         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
73260 2009-12-07  Eric Blake  <ebb9@byu.net>
73262         unlink: fix m4 detection
73263         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
73265         unistd-safer: add unit test
73266         * modules/unistd-safer-tests: New file.
73267         * tests/test-dup-safer.c: Likewise.
73268         * tests/test-cloexec.c (setmode): Avoid compiler warning.
73269         * tests/test-dup2.c (setmode): Likewise.
73270         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
73272         cloexec: preserve text vs. binary across dup_cloexec
73273         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
73274         mode.
73275         * modules/dup2-tests (Depends-on): Add binary-io.
73276         * modules/cloexec-tests (Depends-on): Likewise.
73277         * tests/test-dup2.c (setmode, is_mode): New helpers.
73278         (main): Add tests that translation mode is preserved.
73279         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
73280         Reported by Bruno Haible.
73282         mgetgroups: reduce duplicate listings
73283         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
73284         resulting array.
73285         * tests/test-chown.h (test_chown): Simplify client.
73286         * tests/test-lchown.h (test_lchown): Likewise.
73288 2009-12-06  Bruno Haible  <bruno@clisp.org>
73290         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
73291         value.
73293 2009-12-06  Bruno Haible  <bruno@clisp.org>
73295         * lib/progname.c: Include stdio.h, stdlib.h.
73296         (set_program_name): Reject a NULL argument.
73298 2009-12-05  Eric Blake  <ebb9@byu.net>
73300         pipe2-safer: new module
73301         * modules/pipe2-safer: New file.
73302         * lib/unistd-safer.h (pipe2_safer): New prototype.
73303         * lib/unistd--.h (pipe2): New wrapper.
73304         * lib/pipe-safer.c (pipe2_safer): New function.
73305         * modules/pipe (Depends-on): Add pipe2-safer.
73306         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
73308         stdlib-safer: preserve cloexec flag for mkostemp[s]
73309         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
73310         fd_safer_flag.
73312         unistd-safer: allow preservation of cloexec status via flag
73313         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
73314         prototypes.
73315         * lib/dup-safer.c (dup_safer_flag): New function.
73316         * lib/fd-safer.c (fd_safer_flag): Likewise.
73317         * modules/cloexec (configure.ac): Set witness.
73319         test-dup2: enhance test
73320         * modules/dup2-tests (Depends-on): Add cloexec.
73321         * tests/test-dup2.c (main): Enhance test.
73323         cloexec: add dup_cloexec
73324         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
73325         header and comments.
73326         * lib/cloexec.c (set_cloexec_flag): Add comments.
73327         (dup_cloexec): New function, with mingw implementation borrowed
73328         from...
73329         * lib/w32spawn.h (dup_noinherit): ...here.
73330         * modules/execute (Depends-on): Add cloexec.
73331         * modules/pipe (Depends-on): Likewise.
73332         * modules/cloexec (Depends-on): Add dup2.
73333         * modules/cloexec-tests (Files): New file.
73334         * tests/test-cloexec.c: Likewise.
73336         test-xalloc-die: fix test for mingw
73337         * modules/xalloc-die-tests (Files): Add tests/init.sh.
73338         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
73339         directory and .exe suffix off argv[0] output.
73341         test-fseeko: fix test for mingw
73342         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
73343         than undefining fseek, so test will pass on mingw.
73345 2009-12-05  Bruno Haible  <bruno@clisp.org>
73347         * lib/progname.h (set_program_name): Clarify specification.
73348         * lib/progname.c (set_program_name): Likewise.
73349         Reported by Jim Meyering.
73351 2009-12-05  Jim Meyering  <meyering@redhat.com>
73353         maint.mk: backslash-escape parens in default regexp
73354         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
73355         backslash-escape the literal parentheses.
73357         maint.mk: news-date-check: use grep -E
73358         * top/maint.mk (today): Define a Make variable, not a...
73359         (news-date-check): ...shell variable.
73360         (news-date-regexp): Use the Make variable.
73361         Use grep's -E option.  Change the failing diagnostic to mention
73362         the variable, $(news-date-regexp).
73364 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
73366         maintainer-makefile: allow customization of NEWS entry format
73367         * top/maint.mk (news-date-regexp): New overridable variable.
73368         (news-date-check): Use it.
73370 2009-12-04  Eric Blake  <ebb9@byu.net>
73372         mgetgroups: add xgetgroups, and avoid ENOSYS failures
73373         * lib/mgetgroups.h (xgetgroups): New prototype.
73374         * lib/mgetgroups.c (xgetgroups): New wrapper.
73375         (mgetgroups): Handle ENOSYS.
73376         * modules/mgetgroups (Depends-on): Add realloc.
73377         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
73379         mgetgroups: avoid argument promotion issues with -1
73380         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
73381         for invalid gid_t.
73382         * tests/test-chown.h (getegid, test_chown): Likewise.
73383         * tests/test-lchown.h (getegid, test_lchown): Likewise.
73385 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
73387         exclude: Fix header file problems.
73388         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
73390 2009-12-01  Jim Meyering  <meyering@redhat.com>
73392         fts: fts_open: do not let an empty string cause immediate failure
73393         This is required in support of GNU rm, for which the command
73394         "rm A '' B" must process and remove both A and B, in spite of
73395         the empty string argument.
73396         * lib/fts.c (fts_open): Do not let the presence of an empty string
73397         cause fts_open to fail immediately.  Most fts-using tools must be
73398         able to process all arguments, in order, and can be expected to
73399         diagnose such arguments themselves.
73401 2009-11-30  Eric Blake  <ebb9@byu.net>
73403         utimens: fix compilation error
73404         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
73405         Declare variable at right scope.
73407 2009-11-29  Jim Meyering  <meyering@redhat.com>
73409         bootstrap: handle perl-5.11's changed --version output
73410         * build-aux/bootstrap (get_version): Handle perl separately,
73411         since perl-5.11's --version output is different.
73413 2009-11-28  Jim Meyering  <meyering@redhat.com>
73415         userspec: depend on the inttostr module, too
73416         * modules/userspec (Depends-on): Add inttostr.
73418         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
73419         * lib/userspec.c (parse_with_separator): Do not accept a user ID
73420         number of MAXUID when it evaluates to (uid_t) -1.
73421         Likewise for group ID.  Reported by Matt McCutchen in
73422         <http://savannah.gnu.org/bugs/?28113>
73424         userspec: reformat to use spaces, not TABs
73425         * lib/userspec.c: Expand TABs to spaces.
73426         Add Emacs' "indent-tabs-mode: nil" hint.
73428 2009-11-27  Eric Blake  <ebb9@byu.net>
73430         getopt-gnu: flush out another BSD bug
73431         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
73432         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
73433         flush out BSD bug.
73434         * tests/test-getopt.h (test_getopt): End lists with NULL.
73435         * tests/test-getopt_long.h (test_getopt_long): Likewise.
73436         (test_getopt_long_posix): Enhance test.
73437         * modules/getopt-posix-tests (Depends-on): Add stdbool.
73438         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
73439         getopt-gnu.
73440         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
73441         Likewise.
73443 2009-11-27  Simon Josefsson  <simon@josefsson.org>
73445         * modules/idpriv-droptemp-tests (Notice): Fix text.
73447 2009-11-27  Jim Meyering  <meyering@redhat.com>
73449         test-xalloc-die: avoid spurious failure due to libtool argv difference
73450         In a libtool-enabled project, this test would fail due to a difference
73451         in the emitted program name, e.g.,
73452         -test-xalloc-die: memory exhausted
73453         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
73454         Use program to avoid that.
73455         * modules/xalloc-die-tests (Depends-on): Add progname.
73456         * tests/test-xalloc-die.c: Include progname.h".
73457         (program_name): Remove decl.
73458         (main): Call set_program_name.
73459         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
73461 2009-11-26  Richard Jones  <rjones@redhat.com>
73463         w32sock: leave win32 error in place.
73464         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
73466 2009-11-26  Eric Blake  <ebb9@byu.net>
73468         init.sh: suggest to use skip_ and fail_ functions in comments
73469         * tests/init.sh: Add a sentence.
73471 2009-11-25  Bruno Haible  <bruno@clisp.org>
73473         init.sh: add documentation in comments
73474         * tests/init.sh: Add some developer and user documentation.
73476 2009-11-26  Jim Meyering  <meyering@redhat.com>
73478         init.sh: accommodate even those who specify bogus srcdir manually
73479         * tests/init.sh: Normally, srcdir is guaranteed by automake and
73480         configure-time tests to be sanitized, so that there is no need to
73481         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
73482         (with no double quotes) suffices.  However, since tests may be
73483         invoked manually, and since you may explicitly set srcdir to the
73484         name of a directory containing spaces, do quote its uses here.
73485         * tests/test-pread.sh: Likewise.
73486         Suggested by Bruno Haible.
73488         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
73489         * tests/test-pread.sh: Write no data into the pipe, because
73490         test-pread actually reads none.  This avoids a diagnostic,
73491         "bash: echo: write error: Broken pipe", that arises in the unusual
73492         event something is ignoring SIGPIPE, and might be interpreted
73493         as some sort of failure.  Reported by Bruno Haible.
73495 2009-11-25  Jim Meyering  <meyering@redhat.com>
73497         test-pread: cover failure with ESPIPE and EINVAL
73498         * tests/test-pread.c (main): Test for failure, too.
73499         * tests/test-pread.sh: Invoke with stdin on a pipe.
73500         Suggested by Eric Blake.
73502         pread: improvement and fix
73503         * modules/pread (Depends-on): Depend on lseek, for portability to
73504         e.g., mingw.  Suggested by Eric Blake.
73505         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
73507         unistd.in.h: correct declaration of pread
73508         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
73509         Reported by Richard W.M. Jones.
73511         test-pread.sh: distribute the test script
73512         * modules/pread-tests (Files): Include test-pread.sh.
73514         test-pread.sh: clean up
73515         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
73516         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
73517         That is unnecessary, since it's always ".".
73518         Suggestion from Eric Blake.
73520         test-pread.sh: make executable
73521         * tests/test-pread.sh: Set executable bit.
73522         Reported by Eric Blake.
73524         correct typo in test-pread.sh
73525         * tests/test-pread.sh: Add #! line.
73527         test pread
73528         * tests/test-pread.c: New file.
73529         * tests/test-pread.sh: Likewise.
73530         * modules/pread-tests: Likewise.
73532         pread: new module
73533         * modules/pread: New file.
73534         * lib/unistd.in.h (pread): Define/declare.
73535         * lib/pread.c (pread): New file.
73536         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
73537         * modules/unistd (Makefile.am): Substitute witnesses.
73538         * doc/posix-functions/pread.texi (pread): Update.
73539         * MODULES.html.sh: Add pread.
73541 2009-11-25  Jim Meyering  <meyering@redhat.com>
73543         tests/init.sh: new file to be used via most *.sh tests
73544         * tests/init.sh: New file.
73546 2009-11-25  Eric Blake  <ebb9@byu.net>
73548         utimens: work around older Linux failure with symlinks
73549         * lib/utimens.c (lutimensat_works_really): New variable.
73550         (fdutimens, lutimens): Use it to manage kernels that support
73551         nanosecond times on files, but not on symlinks.
73552         Reported by Ondřej Vašík.
73554         utimes: fix configure grammar
73555         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
73557 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
73559         regex: Fix fastmap for multibyte character ranges.
73560         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
73561         characters when a multibyte character range is included.
73563 2009-11-22  Andy Wingo  <wingo@pobox.com>
73565         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
73566         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
73568 2009-11-24  Bruno Haible  <bruno@clisp.org>
73570         doc: Most *_l functions exist in MacOS X 10.5.
73571         * doc/posix-functions/duplocale.texi: Update platforms list.
73572         * doc/posix-functions/freelocale.texi: Likewise.
73573         * doc/posix-functions/newlocale.texi: Likewise.
73574         * doc/posix-functions/uselocale.texi: Likewise.
73575         * doc/posix-functions/isalnum_l.texi: Likewise.
73576         * doc/posix-functions/isalpha_l.texi: Likewise.
73577         * doc/posix-functions/isblank_l.texi: Likewise.
73578         * doc/posix-functions/iscntrl_l.texi: Likewise.
73579         * doc/posix-functions/isdigit_l.texi: Likewise.
73580         * doc/posix-functions/isgraph_l.texi: Likewise.
73581         * doc/posix-functions/islower_l.texi: Likewise.
73582         * doc/posix-functions/isprint_l.texi: Likewise.
73583         * doc/posix-functions/ispunct_l.texi: Likewise.
73584         * doc/posix-functions/isspace_l.texi: Likewise.
73585         * doc/posix-functions/isupper_l.texi: Likewise.
73586         * doc/posix-functions/iswalnum_l.texi: Likewise.
73587         * doc/posix-functions/iswalpha_l.texi: Likewise.
73588         * doc/posix-functions/iswblank_l.texi: Likewise.
73589         * doc/posix-functions/iswcntrl_l.texi: Likewise.
73590         * doc/posix-functions/iswctype_l.texi: Likewise.
73591         * doc/posix-functions/iswdigit_l.texi: Likewise.
73592         * doc/posix-functions/iswgraph_l.texi: Likewise.
73593         * doc/posix-functions/iswlower_l.texi: Likewise.
73594         * doc/posix-functions/iswprint_l.texi: Likewise.
73595         * doc/posix-functions/iswpunct_l.texi: Likewise.
73596         * doc/posix-functions/iswspace_l.texi: Likewise.
73597         * doc/posix-functions/iswupper_l.texi: Likewise.
73598         * doc/posix-functions/iswxdigit_l.texi: Likewise.
73599         * doc/posix-functions/isxdigit_l.texi: Likewise.
73600         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
73601         * doc/posix-functions/strcasecmp_l.texi: Likewise.
73602         * doc/posix-functions/strcoll_l.texi: Likewise.
73603         * doc/posix-functions/strfmon_l.texi: Likewise.
73604         * doc/posix-functions/strftime_l.texi: Likewise.
73605         * doc/posix-functions/strncasecmp_l.texi: Likewise.
73606         * doc/posix-functions/strxfrm_l.texi: Likewise.
73607         * doc/posix-functions/tolower_l.texi: Likewise.
73608         * doc/posix-functions/toupper_l.texi: Likewise.
73609         * doc/posix-functions/towctrans_l.texi: Likewise.
73610         * doc/posix-functions/towlower_l.texi: Likewise.
73611         * doc/posix-functions/towupper_l.texi: Likewise.
73612         * doc/posix-functions/wcscoll_l.texi: Likewise.
73613         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
73614         * doc/posix-functions/wctrans_l.texi: Likewise.
73615         * doc/posix-functions/wctype_l.texi: Likewise.
73616         * doc/glibc-functions/strptime_l.texi: Likewise.
73617         * doc/glibc-functions/strtod_l.texi: Likewise.
73618         * doc/glibc-functions/strtof_l.texi: Likewise.
73619         * doc/glibc-functions/strtol_l.texi: Likewise.
73620         * doc/glibc-functions/strtold_l.texi: Likewise.
73621         * doc/glibc-functions/strtoll_l.texi: Likewise.
73622         * doc/glibc-functions/strtoul_l.texi: Likewise.
73623         * doc/glibc-functions/strtoull_l.texi: Likewise.
73624         * doc/glibc-functions/wcsftime_l.texi: Likewise.
73625         * doc/glibc-functions/wcstod_l.texi: Likewise.
73626         * doc/glibc-functions/wcstof_l.texi: Likewise.
73627         * doc/glibc-functions/wcstol_l.texi: Likewise.
73628         * doc/glibc-functions/wcstold_l.texi: Likewise.
73629         * doc/glibc-functions/wcstoll_l.texi: Likewise.
73630         * doc/glibc-functions/wcstoul_l.texi: Likewise.
73631         * doc/glibc-functions/wcstoull_l.texi: Likewise.
73633 2009-11-24  Bruno Haible  <bruno@clisp.org>
73635         duplocale: Fix logic bug.
73636         * lib/duplocale.c: Don't include <langinfo.h>.
73637         (_NL_LOCALE_NAME): Remove macro.
73638         (rpl_duplocale): Use setlocale instead of nl_langinfo.
73639         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
73641 2009-11-23  Jim Meyering  <meyering@redhat.com>
73643         test-update-copyright: don't hard-code /usr/bin/perl
73644         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
73645         perl to print the current year.  Gilles Espinasse reported that
73646         the replaced use of perl was hard-coded as /usr/bin/perl.
73648 2009-11-23  Bruno Haible  <bruno@clisp.org>
73650         duplocale: Add support for glibc 2.3.x.
73651         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
73653 2009-11-22  Bruno Haible  <bruno@clisp.org>
73655         vasnprintf: Tiny optimization.
73656         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
73657         MacOS X.
73659 2009-11-22  Bruno Haible  <bruno@clisp.org>
73661         Tests for module 'duplocale'.
73662         * modules/duplocale-tests: New file.
73663         * tests/test-duplocale.c: New file.
73665         New module 'duplocale'.
73666         * m4/duplocale.m4: New file.
73667         * lib/locale.in.h (duplocale): New declaration.
73668         * lib/duplocale.c: New file.
73669         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
73670         gl_LOCALE_H_DEFAULTS): New macros.
73671         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
73672         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
73673         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
73674         REPLACE_DUPLOCALE.
73675         * modules/duplocale: New file.
73676         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
73678 2009-11-22  Bruno Haible  <bruno@clisp.org>
73680         * modules/locale-tests (configure.ac): Test for newlocale function.
73681         * tests/test-locale.c: When the system has extended locale functions,
73682         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
73684         locale: Make locale_t available when possible.
73685         * lib/locale.in.h: Include <xlocale.h> when it exists.
73686         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
73687         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
73688         * modules/locale (Depends-on): Add extensions.
73689         (Makefile.am): Also substitute HAVE_XLOCALE_H.
73690         * doc/posix-headers/locale.texi: Document the problem with locale_t.
73692 2009-11-22  Bruno Haible  <bruno@clisp.org>
73694         Add comments.
73695         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
73696         invocation.
73697         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
73698         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
73699         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
73701 2009-11-22  Bruno Haible  <bruno@clisp.org>
73703         error: account for the possibility of freopen (stdout).
73704         * lib/error.c: Include <unistd.h>.
73705         (flush_stdout): New function, extracted from error and error_at_line.
73706         Determine stdout's fd dynamically.
73707         (error, error_at_line): Invoke flush_stdout.
73708         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
73709         * modules/error (Depends-on): Add unistd.
73711 2009-11-22  Bruno Haible  <bruno@clisp.org>
73713         diffseq: Add comment.
73714         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
73716 2009-11-22  Jim Meyering  <meyering@redhat.com>
73718         c-stack: avoid defining an unused static function
73719         * lib/c-stack.c (find_stack_direction): Do not define this function
73720         when it will not be used.
73722         diffseq: avoid spurious gcc warnings
73723         * lib/diffseq.h (IF_LINT2): Define.
73724         (compareseq): Use it to initialize two members of "part".
73725         This avoids two used-uninitialized warnings.
73727 2009-11-21  Jim Meyering  <meyering@redhat.com>
73729         c-stack: avoid "ignoring return value of `write'" warning
73730         * lib/c-stack.c: Include "ignore-value.h".
73731         (die): Explicitly ignore each write return value.
73732         * modules/c-stack (Depends-on): Add ignore-value.
73734 2009-11-21  Bruno Haible  <bruno@clisp.org>
73736         diffseq: reduce scope of variable 'best'.
73737         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
73738         variable, earlier used for two different purposes.
73740 2009-11-21  Jim Meyering  <meyering@redhat.com>
73742         diffseq: remove useless assignment to "best"
73743         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
73744         assignment.  At that point "best" is already guaranteed to be zero.
73746 2009-11-20  Eric Blake  <ebb9@byu.net>
73748         build: mention ftp redirector in release announcements
73749         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
73750         values that used to come from cfg.mk; mention FTP redirect URL.
73751         * build-aux/announce-gen: Mention the mirror list.
73752         Suggested by Karl Berry.
73754         nanosleep: improve port to mingw
73755         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
73756         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
73757         LIB_NANOSLEEP, but only when needed.
73758         * modules/select (Link): Document LIBSOCKET.
73759         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
73760         enough.
73762         nanosleep: work around cygwin bug
73763         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
73764         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
73765         bug.
73766         (getnow): Delete, not needed.
73767         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
73768         LIB_CLOCK_GETTIME.
73769         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
73770         clock-time, gettime.
73771         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
73772         bug.
73773         * modules/nanosleep-tests: New test.
73774         * tests/test-nanosleep.c: New file.
73776         sleep: work around cygwin bug
73777         * lib/sleep.c (rpl_sleep): Work around the bug.
73778         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
73779         (gl_PREREQ_SLEEP): Delete unused macro.
73780         * modules/sleep (Depends-on): Add verify.
73781         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
73782         * modules/unistd (Makefile.am): Substitute witness.
73783         * lib/unistd.in.h (sleep): Update prototype.
73784         * doc/posix-functions/sleep.texi (sleep): Document the bug.
73785         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
73786         * modules/sleep-tests (Depends-on): Check for alarm.
73788 2009-11-20  Jim Meyering  <meyering@redhat.com>
73790         maint.mk: improve sc_prohibit_magic_number_exit
73791         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
73792         so it does not match uses like System.exit(1).
73793         Add comments showing how to correct all offenders.
73795 2009-11-19  Eric Blake  <ebb9@byu.net>
73797         xalloc-die-tests: add missing library
73798         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
73800         test-xvasprintf: silence compiler warnings
73801         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
73802         empty string from gcc.
73804 2009-11-19  Jim Meyering  <meyering@redhat.com>
73806         xfreopen: new module, from coreutils
73807         * modules/xfreopen: New module.
73808         * lib/xfreopen.c: New file.
73809         * lib/xfreopen.h: New file.
73810         * MODULES.html.sh (File stream based Input/Output"): Add it.
73812 2009-11-19  Eric Blake  <ebb9@byu.net>
73814         manywarnings: depend on warnings
73815         * modules/manywarnings (Depends-on): Add warnings.
73817         build: avoid compiler warnings
73818         * lib/select.c (rpl_select): Delete unused variable.
73819         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
73821 2009-11-18  Eric Blake  <ebb9@byu.net>
73823         tests: avoid false negative with --with-packager
73824         * tests/test-version-etc.sh: Discard packager information.
73825         * tests/test-argp-version-etc-1.sh: Likewise.
73826         Reported by Mike Frysinger.
73828         utimens: fix regression on Solaris
73829         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
73830         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
73831         can only change fd timestamps via futimesat.  Instead, use an
73832         additional witness macro to avoid BSD bug.
73833         Reported by Jim Meyering.
73835 2009-11-17  Eric Blake  <ebb9@byu.net>
73837         usleep: use it to simplify tests
73838         * modules/stat-time-tests (Depends-on): Add usleep.
73839         (configure.ac): Drop usleep check.
73840         * modules/chown-tests (Depends-on, configure.ac): Likewise.
73841         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
73842         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
73843         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
73844         * modules/openat-tests (Depends-on, configure.ac): Likewise.
73845         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
73846         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
73847         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
73848         Likewise.
73849         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
73850         * tests/test-lchown.h (nap): Likewise.
73851         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
73852         * tests/test-stat-time.c (nap): Likewise.
73853         * tests/test-utimens-common.h (nap): Update comments.
73855         usleep: new module
73856         * modules/usleep: New file.
73857         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
73858         * lib/usleep.c (usleep): Likewise.
73859         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
73860         * modules/unistd (Makefile.am): Substitute witnesses.
73861         * lib/unistd.in.h (usleep): Add declaration.
73862         * doc/pastposix-functions/usleep.texi (usleep): Document this.
73863         * MODULES.html.sh (Date and time): Likewise.
73864         * modules/usleep-tests (Depends-on): New test.
73865         * tests/test-usleep.c: New file.
73867         chown: work around OpenBSD bug
73868         * lib/chown.c (rpl_chown): Work around the bug.
73869         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
73870         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
73871         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
73872         * modules/chown (Depends-on): Add stdbool.
73873         * modules/lchown (Depends-on): Likewise.
73874         * doc/posix-functions/chown.texi (chown): Document the bug.
73875         * doc/posix-functions/lchown.texi (lchown): Likewise.
73876         * tests/test-lchown.h (test_chown): Relax test.
73878         mkstemp: avoid conflict with C++ keyword template
73879         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
73880         * lib/mkostemp.c (mkostemp): Likewise.
73881         * lib/mkostemps.c (mkostemps): Likewise.
73882         * lib/mkstemp.c (mkstemp): Likewise.
73883         * lib/mkstemps.c (mkstemps): Likewise.
73885         xalloc-die-tests: optimize
73886         * tests/test-xalloc-die.sh: Reduce number of processes.
73888 2009-11-17  Simon Josefsson  <simon@josefsson.org>
73890         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
73891         patch from ludo@gnu.org (Ludovic Courtès).
73893 2009-11-17  Jim Meyering  <meyering@redhat.com>
73895         version-etc: use proper license string
73896         * modules/version-etc (License): Use LGPL, not LGPLv3+.
73897         * modules/version-etc-fsf: Likewise.
73899 2009-11-17  Simon Josefsson  <simon@josefsson.org>
73901         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
73902         printed to stdout.  Deal with EOL differences.
73904 2009-11-17  Eric Blake  <ebb9@byu.net>
73906         unsetenv: work around Solaris bug
73907         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
73908         * lib/unsetenv.c (rpl_unsetenv): Work around it.
73909         Reported by Jim Meyering.
73911         vasnprintf: avoid compiler warnings
73912         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
73913         variables.
73914         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
73916 2009-11-17  Simon Josefsson  <simon@josefsson.org>
73918         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
73919         settings since xalloc-die is no longer the self test,
73920         xalloc-die.sh is.
73922 2009-11-17  Jim Meyering  <meyering@redhat.com>
73924         test-xalloc-die.sh: make the code agree with the commit log
73925         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
73926         at the end, just in case you happen to have a test-xalloc-die
73927         program in some other PATH directory.
73929         test-xalloc-die.sh: fix a portability bug
73930         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
73931         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
73932         Otherwise, argv[0] (as often seen in diagnostics) would be too
73933         system-dependent, sometimes with, and sometimes without the leading "./".
73935         version-etc-fsf: relax license to LGPLv3+
73936         * modules/version-etc-fsf (License): Relax license.
73938 2009-11-16  Eric Blake  <ebb9@byu.net>
73940         xalloc-die-tests: avoid printing null pointer
73941         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
73942         shell script.
73943         * tests/test-xalloc-die.c (program_name): Declare.
73944         * tests/test-xalloc-die.sh (tmpfiles): New file.
73946         setenv, unsetenv: work around various bugs
73947         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
73948         (setenv) [HAVE_SETENV]: Work around bugs.
73949         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
73950         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
73951         for bugs.
73952         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
73953         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
73954         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
73955         * modules/stdlib (Makefile.am): Update substitutions.
73956         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
73957         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
73958         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
73959         * modules/setenv-tests: New test.
73960         * modules/unsetenv-tests: Likewise.
73961         * tests/test-setenv.c: New file.
73962         * tests/test-unsetenv.c: Likewise.
73964 2009-11-16  Jim Meyering  <meyering@redhat.com>
73966         version-etc: relax license to LGPLv3+
73967         * modules/version-etc (License): Relax license.
73969         better AC_REQUIRE expanded-before-required-warning avoidance
73970         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
73971         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
73972         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
73973         which is no longer needed.
73975 2009-11-16  Eric Blake  <ebb9@byu.net>
73977         test-freading: clean up temporary file
73978         * tests/test-freading.c (main): Remove file on success, and use
73979         ASSERT more liberally.
73980         Reported by Jim Meyering.
73982 2009-11-16  Jim Meyering  <meyering@redhat.com>
73984         avoid new AC_REQUIRE expanded-before-required warnings
73985         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
73986         merely using it.
73987         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
73988         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
73990 2009-11-15  Simon Josefsson  <simon@josefsson.org>
73992         * tests/test-xalloc-die.c: New file.
73993         * modules/xalloc-die-tests: New file.
73994         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
73995         XFAIL_TESTS so it can be appended by modules.
73997 2009-11-15  Simon Josefsson  <simon@josefsson.org>
73999         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
74000         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
74002 2009-11-14  Eric Blake  <ebb9@byu.net>
74004         fnmatch: avoid compiler warning
74005         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
74006         to silence compiler warning about mismatch signedness in ?:.
74007         Reported by Robert Millan.
74009         intprops: add double-inclusion guard
74010         * lib/intprops.h: Allow idempotent includes.
74011         Suggested by Bruce Korb.
74013         openat: detect Solaris fchownat bug
74014         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
74015         penalizing glibc chownat when only lchownat is broken.
74016         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
74017         trailing slash bugs.
74018         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
74019         * modules/openat-tests (Files): Include more files.
74020         (Depends-on): Add mgetgroups, sleep, stat-time.
74021         (configure.ac): Add additional checks.
74022         (Makefile.am): Build new test.
74023         * tests/test-fchownat.c: New file.
74025         lchown: detect Solaris and FreeBSD bug
74026         * lib/lchown.c (rpl_lchown): Work around bug.
74027         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
74028         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
74029         * modules/unistd (Makefile.am): Populate it.
74030         * lib/unistd.in.h (lchown): Update declaration.
74031         * doc/posix-functions/lchown.texi (lchown): Document the bug.
74032         * modules/lchown-tests: New file.
74033         * tests/test-lchown.h (test_lchown): Likewise.
74034         * tests/test-lchown.c (main): Likewise.
74036         chown: detect Solaris and FreeBSD bug
74037         * lib/chown.c (rpl_chown): Work around bug.
74038         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
74039         (gl_PREREQ_CHOWN): Delete.
74040         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
74041         * modules/unistd (Makefile.am): Populate it.
74042         * lib/unistd.in.h (chown): Update declaration.
74043         * lib/lchown.c (chown): Update client.
74044         * modules/lchown (Depends-on): Add lstat.
74045         * doc/posix-functions/chown.texi (chown): Document the bug.
74046         * doc/posix-functions/getgroups.texi (getgroups): Document
74047         getgroups pitfall.
74048         * modules/chown-tests: New file.
74049         * tests/test-chown.h (test_chown): Likewise.
74050         * tests/test-chown.c (main): Likewise.
74052 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
74054         gnulib-tool: correctly detect absence of m4 directories
74055         * gnulib-tool: Avoid extra newline on data passed to wc -l.
74057 2009-11-14  Jim Meyering  <meyering@redhat.com>
74059         maint.mk: Prohibit inclusion of "xalloc.h" without use.
74060         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
74062 2009-11-14  John W. Eaton  <jwe@gnu.org>
74064         strftime.h: wrap function declaration in extern "C" block
74065         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
74067 2009-11-13  Eric Blake  <ebb9@byu.net>
74069         getgroups: avoid compiler warning
74070         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
74072         getgroups: work around FreeBSD bug
74073         * lib/getgroups.c (rpl_getgroups): Work around the bug.
74074         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
74075         * doc/posix-functions/getgroups.texi (getgroups): Document it.
74076         * tests/test-getgroups.c (main): Fix buffer overrun.
74078         getgroups: avoid compilation failure
74079         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
74080         * modules/getgroups (Depends-on): Add stdint.
74082 2009-11-13  Jim Meyering  <meyering@redhat.com>
74084         test-getgroups: avoid compilation failure
74085         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
74087 2009-11-13  Eric Blake  <ebb9@byu.net>
74089         mgetgroups: new module, taken from coreutils
74090         * modules/mgetgroups: New file.
74091         * lib/mgetgroups.h: Likewise.
74092         * lib/mgetgroups.c (mgetgroups): Likewise.
74093         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
74094         * MODULES.html.sh (Users and groups): Mention it.
74096         getgroups: don't expose GETGROUPS_T to user
74097         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
74098         an element at a time if GETGROUPS_T is wrong size.
74099         * lib/getugroups.h (getugroups): Change signature.
74100         * lib/unistd.in.h (getgroups): Likewise.
74101         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
74102         signature needs fixing.
74103         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
74104         AC_TYPE_GETGROUPS.
74105         * modules/group-member (Depends-on): Add getgroups.
74106         * lib/group-member.c (group_info, get_group_info): Use gid_t.
74107         (group_member): Rely on getgroups replacement.
74108         * lib/getugroups.c (getugroups): Use gid_t.
74109         * tests/test-getgroups.c (main): Likewise.
74110         * NEWS: Mention the signature change.
74111         * doc/posix-functions/getgroups.texi (getgroups): Mention the
74112         problem with signature.
74113         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
74114         GETGROUPS_T is still useful for setgroups.
74116         getgroups, getugroups: provide stubs for mingw
74117         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
74118         * lib/getugroups.c (getugroups): Likewise.
74119         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
74120         function.  Modernize replacement scheme.
74121         (gl_PREREQ_GETGROUPS): Delete.
74122         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
74123         * modules/getgroups (configure.ac): Declare witness.
74124         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
74125         * modules/unistd (Depends-on): Substitute witness.
74126         * lib/unistd.in.h (getgroups): Declare replacement.
74128         getgroups: avoid calling exit
74129         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
74130         drop xalloc.
74131         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
74132         dependencies.
74133         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
74134         exiting, in the rare case of malloc failure.
74136         getgroups: fix logic error
74137         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
74138         has more than 20 groups.
74139         * modules/getgroups-tests: New test.
74140         * tests/test-getgroups.c: New file.
74142 2009-11-13  Simon Josefsson  <simon@josefsson.org>
74144         * tests/test-base64.c: Improve.
74146 2009-11-13  Simon Josefsson  <simon@josefsson.org>
74148         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
74149         Blake <ebb9@byu.net>.
74151 2009-11-13  Simon Josefsson  <simon@josefsson.org>
74153         * tests/test-xvasprintf.c: Add %s%s related checks.
74155 2009-11-12  Eric Blake  <ebb9@byu.net>
74157         version-etc: match standards.texi style
74158         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
74159         and use <> only for URLs.
74161 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
74163         fts: do not fail on a submount during traversal
74164         * lib/fts.c (fts_build): Read the stat info again after opening
74165         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
74166         Original report at http://bugzilla.redhat.com/501848.
74168 2009-11-12  Jim Meyering  <meyering@redhat.com>
74170         bootstrap: sync from coreutils
74171         * build-aux/bootstrap (bootstrap_epilogue): New function.
74172         Use git_modules_config in one more place.  This make bootstrap's
74173         --gnulib-srcdir option more useful for testing.
74175         bootstrap: generalize autoheader check
74176         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
74177         AC_CONFIG_HEADERS.
74179 2009-11-11  Eric Blake  <ebb9@byu.net>
74181         mkfifoat: use new modules for Solaris and BSD bugs
74182         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
74183         * lib/mkfifoat.c (mknodat): Split...
74184         * lib/mknodat.c (mknodat): ...into new file.
74185         * modules/mkfifoat (Files): Ship new file.
74186         (Depends-on): Add mkfifo, mknod.
74187         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
74188         (Depends-on): Add symlink.
74189         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
74190         redundant with test_mkfifo.h.
74191         (do_mkfifoat, do_mknodat): New helpers.
74193         mknod: new module
74194         * modules/mknod: New file.
74195         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
74196         * lib/mknod.c (mknod): Likewise.
74197         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
74198         defaults.
74199         * modules/sys_stat (Makefile.am): Substitute them.
74200         * lib/sys_stat.in.h (mknod): Declare replacement.
74201         * MODULES.html.sh (Support for systems lacking POSIX:2008):
74202         Document it.
74203         * doc/posix-functions/mknod.texi (mknod): Likewise.
74204         * modules/mknod-tests: New test.
74205         * tests/test-mknod.c: Likewise.
74207         mkfifo: new module
74208         * modules/mkfifo: New file.
74209         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
74210         * lib/mkfifo.c (mkfifo): Likewise.
74211         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
74212         defaults.
74213         * modules/sys_stat (Makefile.am): Substitute them.
74214         * lib/sys_stat.in.h (mkfifo): Declare replacement.
74215         * MODULES.html.sh (Support for systems lacking POSIX:2008):
74216         Document it.
74217         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
74218         * modules/mkfifo-tests: New test.
74219         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
74220         from test-mkfifoat.c.
74221         * tests/test-mkfifo.c: New file.
74223         readlink: detect FreeBSD bug
74224         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
74225         slash on symlink.
74226         * doc/posix-functions/readlink.texi (readlink): Document the bug.
74227         * tests/test-readlink.h (test_readlink): Enhance test.
74229         symlink: detect FreeBSD bug
74230         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
74231         slash on symlink.
74232         * doc/posix-functions/symlink.texi (symlink): Document the bug.
74233         * tests/test-symlink.h (test_symlink): Enhance test.
74235 2009-11-10  Eric Blake  <ebb9@byu.net>
74237         link: detect FreeBSD bug
74238         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
74239         symlink.
74240         * doc/posix-functions/link.texi (link): Document the bug.
74241         * tests/test-link.h (test_link): Enhance test.
74242         * tests/test-linkat.c (main): Update caller.
74244         unlink, remove: detect FreeBSD bug
74245         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
74246         slash on symlink.
74247         * doc/posix-functions/unlink.texi (unlink): Document the bug.
74248         * doc/posix-functions/remove.texi (remove): Likewise.
74249         * tests/test-unlink.h (test_unlink): Enhance test.
74250         * tests/test-remove.c (main): Likewise.
74252 2009-11-09  Eric Blake  <ebb9@byu.net>
74254         rename: detect FreeBSD bug
74255         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
74256         slash on symlink.
74257         * modules/renameat-tests (Depends-on): Add filenamecat.
74258         * tests/test-rename.h (test_rename): Allow one more errno.
74259         * tests/test-renameat.c (main): Likewise.
74260         * doc/posix-functions/rename.texi (rename): Document the bug.
74262         open: detect FreeBSD bug
74263         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
74264         symlink.
74265         * doc/posix-functions/open.texi (open): Document the bug.
74266         * doc/posix-functions/utimes.texi (utimes): Likewise.
74267         * tests/test-open.h (test_open): Add parameters, and test symlink
74268         handling.
74269         * tests/test-open.c (main): Adjust caller.
74270         * tests/test-fcntl-safer.c (main): Likewise.
74271         * modules/open-tests (Depends-on): Add stdbool, symlink.
74272         * modules/fcntl-safer-tests (Depends-on): Likewise.
74273         * tests/test-openat.c (main): Add test-open tests.
74275         stat: detect FreeBSD bug
74276         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
74277         symlink.
74278         * doc/posix-functions/stat.texi (stat): Document the bug.
74279         * tests/test-stat.h (test_stat_func): Add argument.
74280         * tests/test-stat.c (main): Adjust caller.
74281         * tests/test-fstatat.c (main): Likewise.
74282         * modules/stat-tests (Depends-on): Add stdbool, symlink.
74283         Reported by Jim Meyering.
74285 2009-11-09  James Youngman  <jay@gnu.org>
74287         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
74288         * lib/strftime.c: Correct placement of #include "ignore-value.h".
74290 2009-11-08  Jim Meyering  <meyering@redhat.com>
74292         utimens: remove invalid futimesat call
74293         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
74294         It used the file descriptor of the target file as the DIR_FD
74295         parameter and NULL as the file name.  That caused failure with
74296         errno == EFAULT on FreeBSD-8.0-rc2
74298 2009-11-07  Eric Blake  <ebb9@byu.net>
74300         fflush, freadseek: use fseeko, not fseek
74301         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
74302         (clear_ungetc_buffer): Avoid potential problems on large files.
74303         * lib/freadseek.c (freadseek): Likewise.
74304         * modules/freadseek (Depends-on): Add fseeko.
74305         * modules/fseek (configure.ac): Set a witness.
74306         * tests/test-fflush.c (main): Use fseeko.
74307         * tests/test-fpurge.c (fseek): Disable link warning.
74308         * tests/test-freadable.c (fseek): Likewise.
74309         * tests/test-freading.c (fseek): Likewise.
74310         * tests/test-fseeko.c (fseek): Likewise.
74311         * tests/test-ftell.c (fseek): Likewise.
74312         * tests/test-ftello.c (fseek): Likewise.
74313         * tests/test-fwritable.c (fseek): Likewise.
74314         * tests/test-fwriting.c (fseek): Likewise.
74316 2009-11-06  Simon Josefsson  <simon@josefsson.org>
74318         * modules/memchr (Depends-on): Drop getpagesize dependency.
74320 2009-11-06  Simon Josefsson  <simon@josefsson.org>
74322         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
74323         Reported by Ludovic Courtès.
74324         * build-aux/pmccabe2html: Improve example usage.
74325         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
74327 2009-11-06  Jim Meyering  <meyering@redhat.com>
74329         do-release-commit-and-tag: New module.
74330         Automate the release-commit and tag process.
74331         * build-aux/do-release-commit-and-tag: New script, from coreutils.
74332         * modules/do-release-commit-and-tag: New file.
74333         * MODULES.html.sh (Support for maintaining and releasing): Add it.
74335 2009-11-06  Simon Josefsson  <simon@josefsson.org>
74337         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
74338         because test-select.c uses inet_pton.
74340 2009-11-06  Simon Josefsson  <simon@josefsson.org>
74342         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
74343         GETADDRINFO_LIB.  Bump serial number.
74344         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
74345         Suggested by Eric Blake <ebb9@byu.net>.
74347 2009-11-05  Eric Blake  <ebb9@byu.net>
74349         strtod: detect darwin bug
74350         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
74351         Reported by Leo Davis.
74353         freopen-safer: new module
74354         * modules/freopen-safer: New module.
74355         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
74356         * lib/freopen-safer.c (freopen_safer): New file.
74357         * lib/stdio-safer.h (freopen_safer): New declaration.
74358         * lib/stdio--.h (freopen): New override.
74359         * MODULES.html.sh (File stream based Input/Output): Mention it.
74360         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
74361         freopen-safer module.
74362         * doc/posix-functions/stderr.texi (stderr): Likewise.
74363         * doc/posix-functions/stdin.texi (stdin): Likewise.
74364         * doc/posix-functions/stdout.texi (stdout): Likewise.
74365         * modules/freopen-safer-tests: New test.
74366         * tests/test-reopen-safer.c: New file.
74368 2009-11-05  Jim Meyering  <meyering@redhat.com>
74370         maint.mk: Prohibit inclusion of "close-stream.h" without use.
74371         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
74373 2009-11-05  Simon Josefsson  <simon@josefsson.org>
74375         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
74377 2009-11-05  Simon Josefsson  <simon@josefsson.org>
74379         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
74381 2009-11-05  Simon Josefsson  <simon@josefsson.org>
74383         Fix link error.
74384         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
74385         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
74387 2009-11-05  Simon Josefsson  <simon@josefsson.org>
74389         * tests/test-func.c: Also test value of __func__.
74391 2009-11-05  Simon Josefsson  <simon@josefsson.org>
74393         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
74394         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
74396 2009-11-05  Bruno Haible  <bruno@clisp.org>
74398         Fix link error.
74399         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
74400         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
74401         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
74403 2009-11-05  Bruno Haible  <bruno@clisp.org>
74405         Tests for module 'inet_pton'.
74406         * modules/inet_pton-tests: New file.
74407         * tests/test-inet_pton.c: New file.
74409 2009-11-05  Bruno Haible  <bruno@clisp.org>
74411         Tests for module 'inet_ntop'.
74412         * modules/inet_ntop-tests: New file.
74413         * tests/test-inet_ntop.c: New file.
74415 2009-11-04  Eric Blake  <ebb9@byu.net>
74417         stdlib-safer: wrap all mkstemp variants
74418         * modules/mkostemp (configure.ac): Set witness.
74419         * modules/mkostemps (configure.ac): Likewise.
74420         * modules/mkstemps (configure.ac): Likewise.
74421         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
74422         (mkstemps_safer): Wrap more functions.
74423         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
74424         wrapping.
74425         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
74426         (mkstemps_safer): Implement the wrappers.
74428         mkstemps, mkostemps: new modules
74429         * modules/mkostemps: New module.
74430         * modules/mkstemps: Likewise.
74431         * lib/mkostemps.c (mkostemps): New file.
74432         * lib/mkstemps.c (mkstemps): Likewise.
74433         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
74434         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
74435         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
74436         * modules/stdlib (Makefile.am): Substitute them.
74437         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
74438         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
74439         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
74440         * doc/gnulib.texi (Glibc stdlib.h): Include them.
74441         * MODULES.html.sh (File system functions): Mention them.
74443         tempname: resync from glibc
74444         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
74445         same values for __GT_FILE as glibc.  Abort even when assertions
74446         are disabled.
74447         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
74448         match its value otherwise.  Allow idempotent inclusion.
74449         * lib/mkdtemp.c (mkdtemp): Adjust caller.
74450         * lib/mkostemp.c (mkostemp): Likewise.
74451         * lib/mkstemp.c (mkstemp): Likewise.
74452         * lib/tmpfile.c (tmpfile): Likewise.
74453         * NEWS: Document this.
74455         utimens: fix use of futimens on older Linux
74456         * lib/utimens.c (fdutimens): Use updated, rather than original,
74457         timespec to avoid bug in older Linux kernel.
74458         Reported by Simon Josefsson.
74460 2009-11-04  Bruno Haible  <bruno@clisp.org>
74462         Make num_processors more flexible and consistent.
74463         * lib/nproc.h (enum nproc_query): New type.
74464         (num_processors): Add a 'query' argument.
74465         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
74466         (num_processors): Add a 'query' argument. Test the value of the
74467         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
74468         mingw, count the number of CPUs available for the current process.
74469         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
74470         Check for sched_getaffinity and sched_getaffinity_np.
74471         * modules/nproc (Depends-on): Add c-ctype, extensions.
74472         * NEWS: Mention the change.
74474 2009-11-03  Bruno Haible  <bruno@clisp.org>
74476         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
74478 2009-11-03  Jim Meyering  <meyering@redhat.com>
74480         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
74481         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
74482         if it is defined.
74484 2009-11-02  Eric Blake  <ebb9@byu.net>
74486         mktime, timegm: share common declaration
74487         * lib/mktime-internal.h: New file.
74488         * lib/mktime.c: Use it rather than open-coding a declaration.
74489         * lib/timegm.c: Likewise.
74490         * modules/mktime (Files): Ship it.
74491         * modules/timegm (Files): Likewise.
74492         Suggested by Bruno Haible.
74494         test-update-copyright: update test to match script changes
74495         * tests/test-update-copyright.sh: Avoid hard-coding perl
74496         location.  Don't update *.bak created by earlier runs.
74498 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
74499             Simon Josefsson  <simon@josefsson.org>
74500             Bruno Haible  <bruno@clisp.org>
74502         Fix link error on Solaris 8.
74503         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
74504         also in libnsl. Define also INET_PTON_LIB.
74505         * modules/inet_pton (Link): New section.
74507 2009-11-02  Simon Josefsson  <simon@josefsson.org>
74508             Bruno Haible  <bruno@clisp.org>
74510         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
74511         * modules/inet_ntop (Link): New section.
74512         Reported by Boyan Kasarov <bkasarov@gmail.com>.
74514 2009-11-02  Eric Blake  <ebb9@byu.net>
74516         maint: avoid compiler warnings in m4 macros
74517         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
74518         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
74520 2009-11-02  Simon Josefsson  <simon@josefsson.org>
74522         * m4/pmccabe2html.m4: Remove file.
74523         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
74524         function.  Change maintainer.
74525         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
74526         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
74527         Courtès).
74529 2009-10-31  Eric Blake  <ebb9@byu.net>
74531         fseeko: fix m4 regression
74532         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
74533         regression from 2009-10-27.
74534         Reported by Ralf Wildenhues.
74536 2009-10-31  Jim Meyering  <meyering@redhat.com>
74538         inttostr: aesthetics and improved (compile-time) safety
74539         Define inttype_is_signed rather than inttype_is_unsigned,
74540         since the sole use is via "#if inttype_is_signed".
74541         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
74542         inttype_is_unsigned.
74543         * lib/offtostr.c (inttype_is_signed): Likewise.
74544         * lib/uinttostr.c (inttype_is_signed): Likewise.
74545         * lib/umaxtostr.c (inttype_is_signed): Likewise.
74546         * lib/inttostr.c (inttostr): Use verify to cross-check the
74547         inttype_is_signed value and the signedness of the actual type.
74548         * modules/inttostr (Depends-on): Add verify.
74550 2009-10-30  Eric Blake  <ebb9@byu.net>
74552         build: avoid compiler warnings
74553         * lib/fchmodat.c (lchmod): Mark unused variables.
74554         * lib/getopt.c (_getopt_initialize): Likewise.
74555         * lib/mktime.c (__mktime_internal): Provide prototype.
74556         * lib/inttostr.c (inttostr): Avoid compiler warning even with
74557         older gcc that do not understand #pragma GCC diagnostic.
74558         * lib/uinttostr.c (inttype_is_unsigned): Define.
74559         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
74561 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
74563         stat: fix compilation on AIX
74564         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
74565         only see struct stat64.
74567 2009-10-30  Eric Blake  <ebb9@byu.net>
74569         exclude: make more robust
74570         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
74571         rather than masking a coding bug.
74572         Suggested by Bruno Haible.
74574 2009-10-30  Jim Meyering  <meyering@redhat.com>
74576         perl scripts: remove #!/usr/bin/perl in favor of more portable...
74577         Rather than putting #!/usr/bin/perl on the first line,
74578         start with a variant of what's recommended by "man perlrun" that
74579         invokes the first "perl" program from your shell's search path.
74580         * build-aux/gitlog-to-changelog: Replace #!... as above.
74581         Add a "Local Variables" perl mode setting.
74582         Prompted by a patch from Ludovic Courtès.
74583         Improved by Eric Blake.
74584         * build-aux/useless-if-before-free: Likewise.
74585         * build-aux/announce-gen: Likewise.
74586         * build-aux/update-copyright: Likewise.
74588 2009-10-29  Eric Blake  <ebb9@byu.net>
74590         filenamecat-lgpl: adjust clients
74591         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
74592         filenamecat.
74593         * modules/renameat (Depends-on): Likewise.
74595         filenamecat: split into filenamecat-lgpl
74596         * modules/filenamecat-lgpl: New module.
74597         * modules/filenamecat (Files): Move library-safe files into
74598         filenamecat-lgpl.
74599         (Depends-on): Add filenamecat-lgpl.
74600         (configure.ac): Declare witness.
74601         * lib/filenamecat.h (file_name_concat): Only declare when using
74602         GPL module.
74603         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
74604         Move...
74605         * lib/filenamecat-lgpl.c: ...into new file.
74606         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
74607         (gl_FILE_NAME_CONCAT): Use it.
74608         * MODULES.html.sh (File system functions): Mention new module.
74610         argp: avoid memory leak
74611         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
74612         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
74613         base_name, since the latter malloc()s and can call exit().
74614         Leak introduced 2006-07-03.
74616         dirname-lgpl: adjust clients that don't need full dirname
74617         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
74618         * modules/filenamecat (Depends-on): Likewise.
74619         * modules/linkat (Depends-on): Likewise.
74620         * modules/mkancesdirs (Depends-on): Likewise.
74621         * modules/mkdir (Depends-on): Likewise.
74622         * modules/openat (Depends-on): Likewise.
74623         * modules/savewd (Depends-on): Likewise.
74624         * modules/rename (Depends-on): Likewise.
74625         (License): Relax license.
74626         * modules/mkdir-tests (Depends-on): Drop progname.
74627         (Makefile.am): Delete unneeded LDADD.
74628         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
74630         dirname: split into dirname-lgpl
74631         * modules/dirname-lgpl: New module.
74632         * modules/dirname (Files): Move library-safe files into
74633         dirname-lgpl.
74634         (Depends-on): Add dirname-lgpl.
74635         (configure.ac): Declare witness.
74636         * modules/double-slash-root (License): Relax license.
74637         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
74638         module.
74639         * lib/dirname.c (dir_len, mdir_name): Move...
74640         * lib/dirname-lgpl.c: ...into new file.
74641         * lib/basename.c (last_component, base_len): Move...
74642         * lib/basename-lgpl.c: ...into new file.
74643         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
74644         (gl_DIRNAME): Use it.
74645         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
74646         Mention new module.
74647         * modules/dirname-tests (Depends-on): Add progname.
74648         * tests/test-dirname.c (program_name): Delete.
74650         mkdir: make safe for libraries
74651         * modules/mkdir (Depends-on): Drop xalloc.
74652         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
74653         exit.
74655         tests: avoid some compiler warnings
74656         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
74657         literals.
74658         * tests/test-memchr.c (main): Avoid type mismatch.
74659         * tests/test-arpa_inet.c (main): Avoid unused parameters.
74660         * tests/test-base64.c (main): Likewise.
74661         * tests/test-getdelim.c (main): Likewise.
74662         * tests/test-gethostname.c (main): Likewise.
74663         * tests/test-getline.c (main): Likewise.
74664         * tests/test-netinet_in.c (main): Likewise.
74665         * tests/test-select.c (open_server_socket, main): Likewise.
74666         * tests/test-select-stdin.c (main): Likewise.
74667         * tests/test-sockets.c (main): Likewise.
74668         * tests/test-strsignal.c (main): Likewise.
74669         * tests/test-sys_select.c (main): Likewise.
74670         * tests/test-sys_socket.c (main): Likewise.
74671         * tests/test-u64.c (main): Likewise.
74672         * tests/test-xfprintf-posix.c (main): Likewise.
74673         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
74675         sockets: avoid compiler warning
74676         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
74678         maint: detect usage(1) and other suspicious exits
74679         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
74681 2009-10-29  Jim Meyering  <meyering@redhat.com>
74683         timespec: long-to-int truncation could make timespec_cmp malfunction
74684         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
74685         a multiple of 2^32 nanoseconds as no difference.
74687 2009-10-28  Jim Meyering  <meyering@redhat.com>
74689         fprintftime: wrap macro code argument in "do {...} while(0)"
74690         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
74691         cpy macro must be a statement that can be followed by a semicolon.
74692         Now that the else clause contains a comment and is hence longer
74693         than one line, I require curly braces.  That in turn requires
74694         that we wrap this code block in the standard do...while(0).
74696         fprintftime: remove stray semicolon from previous change
74697         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
74699         fprintftime: avoid a warning about ignored fwrite return value
74700         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
74701         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
74702         that is unsafe.
74703         * modules/fprintftime (Depends-on): Add ignore-value.
74705         exclude: avoid an unwarranted warning
74706         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
74708 2009-10-27  Eric Blake  <ebb9@byu.net>
74710         fseek: avoid compilation failure when fflush is replaced
74711         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
74712         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
74713         module is in use.
74714         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
74715         module is not in use; since REPLACE_FSEEK worked otherwise.
74716         (GNULIB_FTELLO): Likewise for ftell.
74717         Reported by Ian Beckwith and others.
74719 2009-10-27  Bruno Haible  <bruno@clisp.org>
74721         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
74722         Reported by Jim Meyering.
74724 2009-10-27  Jim Meyering  <jim@meyering.net>
74725             Bruno Haible  <bruno@clisp.org>
74727         Avoid warning despite dropping the return value of fwrite.
74728         * lib/unicodeio.c: Include ignore-value.h.
74729         (fwrite_success_callback): Explicitly ignore fwrite's return value.
74730         * modules/unicodeio (Depends-on): Add ignore-value.
74732 2009-10-26  Eric Blake  <ebb9@byu.net>
74734         areadlinkat: fix fallback path
74735         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
74736         pointer and zero.
74738 2009-10-22  Pádraig Brady  <P@draigBrady.com>
74740         Use a better IO block size for modern systems
74741         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
74742         * lib/md2.c: Likewise.
74743         * lib/md4.c: Likewise.
74744         * lib/md5.c: Likewise.
74745         * lib/sha1.c: Likewise.
74746         * lib/sha256.c: Likewise.
74747         * lib/sha512.c: Likewise.
74749 2009-10-22  Eric Blake  <ebb9@byu.net>
74751         tests: avoid several compiler warnings
74752         * tests/test-getcwd.c (main): Avoid buffer underflow.
74753         * tests/test-getdate.c (main): String literals are not safe with
74754         putenv, so use setenv.  Declare unused argument.
74755         * modules/getdate-tests (Depends-on): Add setenv.
74756         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
74757         problems with string literals in char *.
74758         * tests/test-hash.c (main): Avoid shadowing declaration.
74759         (insert_new): Treat string literals as char const *.
74760         * tests/test-getopt.h (test_getopt): Likewise.
74761         (getopt_loop): Alter types to minimize casting elsewhere.
74762         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
74763         (test_getopt_long_posix): Likewise.
74764         (do_getopt_long): Add wrapper to minimize casting.
74765         * tests/test-atexit.c (clear_temp_file): Use void.
74766         * tests/test-areadlink-with-size.c (main): Declare unused
74767         arguments.
74768         * tests/test-areadlink.c (main): Likewise.
74769         * tests/test-areadlinkat-with-size.c (main): Likewise.
74770         * tests/test-areadlinkat.c (main): Likewise.
74771         * tests/test-canonicalize-lgpl.c (main): Likewise.
74772         * tests/test-canonicalize.c (main): Likewise.
74773         * tests/test-dirent-safer.c (main): Likewise.
74774         * tests/test-dirname.c (main): Likewise.
74775         * tests/test-dup2.c (main): Likewise.
74776         * tests/test-fchdir.c (main): Likewise.
74777         * tests/test-fcntl-h.c (main): Likewise.
74778         * tests/test-fcntl-safer.c (main): Likewise.
74779         * tests/test-fdopendir.c (main): Likewise.
74780         * tests/test-fdutimensat.c (main): Likewise.
74781         * tests/test-fflush.c (main): Likewise.
74782         * tests/test-filenamecat.c (main): Likewise.
74783         * tests/test-filevercmp.c (main): Likewise.
74784         * tests/test-fopen-safer.c (main): Likewise.
74785         * tests/test-fopen.c (main): Likewise.
74786         * tests/test-fpending.c (main): Likewise.
74787         * tests/test-fpurge.c (main): Likewise.
74788         * tests/test-freading.c (main): Likewise.
74789         * tests/test-fstatat.c (main): Likewise.
74790         * tests/test-fsync.c (main): Likewise.
74791         * tests/test-futimens.c (main): Likewise.
74792         * tests/test-getndelim2.c (main): Likewise.
74793         * tests/test-gettimeofday.c (main): Likewise.
74794         * tests/test-getopt.c (main): Likewise.
74795         * tests/test-i-ring.c (main): Likewise.
74796         * tests/test-inttypes.c (main): Likewise.
74797         * tests/test-link.c (main): Likewise.
74798         * tests/test-lstat.c (main): Likewise.
74799         * tests/test-math.c (main): Likewise.
74800         * tests/test-md5.c (main): Likewise.
74801         * tests/test-memchr2.c (main): Likewise.
74802         * tests/test-memrchr.c (main): Likewise.
74803         * tests/test-mkdir.c (main): Likewise.
74804         * tests/test-mkdirat.c (main): Likewise.
74805         * tests/test-mkfifoat.c (main): Likewise.
74806         * tests/test-open.c (main): Likewise.
74807         * tests/test-openat-safer.c (main): Likewise.
74808         * tests/test-openat.c (main): Likewise.
74809         * tests/test-quotearg.c (main): Likewise.
74810         * tests/test-rawmemchr.c (main): Likewise.
74811         * tests/test-readlink.c (main): Likewise.
74812         * tests/test-remove.c (main): Likewise.
74813         * tests/test-rename.c (main): Likewise.
74814         * tests/test-renameat.c (main): Likewise.
74815         * tests/test-rmdir.c (main): Likewise.
74816         * tests/test-sha1.c (main): Likewise.
74817         * tests/test-signal.c (main): Likewise.
74818         * tests/test-sigaction.c (main): Likewise.
74819         * tests/test-stat.c (main): Likewise.
74820         * tests/test-stat-time.c (main): Likewise.
74821         * tests/test-stddef.c (main): Likewise.
74822         * tests/test-stdint.c (main): Likewise.
74823         * tests/test-stdio.c (main): Likewise.
74824         * tests/test-stdlib.c (main): Likewise.
74825         * tests/test-strchrnul.c (main): Likewise.
74826         * tests/test-strerror.c (main): Likewise.
74827         * tests/test-string.c (main): Likewise.
74828         * tests/test-strtod.c (main): Likewise.
74829         * tests/test-strverscmp.c (main): Likewise.
74830         * tests/test-symlink.c (main): Likewise.
74831         * tests/test-symlinkat.c (main): Likewise.
74832         * tests/test-sys_stat.c (main): Likewise.
74833         * tests/test-sys_time.c (main): Likewise.
74834         * tests/test-time.c (main): Likewise.
74835         * tests/test-unistd.c (main): Likewise.
74836         * tests/test-unlink.c (main): Likewise.
74837         * tests/test-unlinkat.c (main): Likewise.
74838         * tests/test-utimens.c (main): Likewise.
74839         * tests/test-utimensat.c (main): Likewise.
74840         * tests/test-version-etc.c (main): Likewise.
74841         * tests/test-wchar.c (main): Likewise.
74842         * tests/test-wctype.c (main): Likewise.
74843         * tests/test-xprintf-posix.c (main): Likewise.
74844         * tests/test-posixtm.c (main): Likewise.
74845         (STREQ): Delete unused macro.
74846         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
74847         shadowed variables.
74848         * tests/test-memchr.c (main): Likewise.
74850 2009-10-21  Eric Blake  <ebb9@byu.net>
74852         areadlinkat: avoid failure on older glibc
74853         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
74854         rather than mis-comparing 0 against FUNC_RESULT of char*.
74856 2009-10-21  Bruno Haible  <bruno@clisp.org>
74858         * modules/stpncpy (License): Relicense under LGPLv2+.
74859         Reported by David Lutterkort <lutter@redhat.com>.
74861 2009-10-20  Eric Blake  <ebb9@byu.net>
74863         utimensat: work around Solaris 9 bug
74864         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
74865         has trailing slash bugs.
74866         * tests/test-lutimens.h (test_lutimens): Enhance test.
74867         * tests/test-utimens.h (test_utimens): Likewise.
74868         * doc/posix-functions/utime.texi (utime): Enhance documentation.
74869         * doc/posix-functions/utimes.texi (utimes): Likewise.
74870         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
74871         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
74872         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
74873         * doc/posix-functions/futimens.texi (futimens): Likewise.
74875         fdutimensat: new module
74876         * modules/fdutimensat: New file.
74877         * lib/fdutimensat.c (fdutimensat): Likewise.
74878         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
74879         * MODULES.html.sh (File system functions): Mention module.
74880         * modules/fdutimensat-tests: New test.
74881         * tests/test-fdutimensat.c: Likewise.
74883         doc: regenerate INSTALL
74884         * doc/INSTALL: Reflect recent autoconf update.
74885         * doc/INSTALL.ISO: Likewise.
74886         * doc/INSTALL.UTF-8: Likewise.
74888 2009-10-20  Pádraig Brady  <P@draigBrady.com>
74890         acl: warn if ACL support is not detected
74891         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
74893 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
74895         * lib/nproc.h: Add extern "C" block for C++.
74897 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
74898             Bruno Haible  <bruno@clisp.org>
74900         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
74901         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
74902         * doc/posix-functions/isalpha.texi: Likewise.
74903         * doc/posix-functions/isblank.texi: Likewise.
74904         * doc/posix-functions/iscntrl.texi: Likewise.
74905         * doc/posix-functions/isdigit.texi: Likewise.
74906         * doc/posix-functions/isgraph.texi: Likewise.
74907         * doc/posix-functions/islower.texi: Likewise.
74908         * doc/posix-functions/isprint.texi: Likewise.
74909         * doc/posix-functions/ispunct.texi: Likewise.
74910         * doc/posix-functions/isspace.texi: Likewise.
74911         * doc/posix-functions/isupper.texi: Likewise.
74912         * doc/posix-functions/isxdigit.texi: Likewise.
74914 2009-10-18  Bruno Haible  <bruno@clisp.org>
74916         Tests for module 'isblank'.
74917         * modules/isblank-tests: New file.
74918         * tests/test-isblank.c: New file.
74920         New module 'isblank'.
74921         * lib/isblank.c: New file.
74922         * m4/isblank.m4: New file.
74923         * modules/isblank: New file.
74924         * doc/posix-functions/isblank.texi: Mention the new module.
74926 2009-10-18  Bruno Haible  <bruno@clisp.org>
74928         New module 'ctype'.
74929         * lib/ctype.in.h: New file.
74930         * m4/ctype.m4: New file.
74931         * modules/ctype: New file.
74932         * doc/posix-headers/ctype.texi: Mention the new module.
74934 2009-10-18  Jim Meyering  <meyering@redhat.com>
74936         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
74937         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
74938         right after its initialization, rather than farther down.
74939         Keeping these in close proximity makes it easier to ensure
74940         that each such variable is initialized.  E.g.,
74942             LIB_CLOCK_GETTIME=
74943             AC_SUBST([LIB_CLOCK_GETTIME])
74945         This change also increments these serial numbers.
74946         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
74947         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
74948         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
74950 2009-10-18  Bruno Haible  <bruno@clisp.org>
74952         Don't let environment variables perturb build.
74953         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
74954         (gl_PREREQ_GETHRXTIME): ... not here.
74956 2009-10-18  Bruno Haible  <bruno@clisp.org>
74958         Avoid symlink attack in localcharset module.
74959         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
74960         (O_NOFOLLOW): Define fallback.
74961         (get_charset_aliases): Don't open the file if it is a symbolic link.
74962         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
74963         gl_FCNTL_H.
74964         (gl_FCNTL_H): Require it.
74965         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
74966         * modules/localcharset (Files): Add m4/fcntl_h.m4.
74967         Reported by Fergal Glynn <fglynn@veracode.com>.
74969 2009-10-18  Bruno Haible  <bruno@clisp.org>
74971         Implement nproc for mingw.
74972         * lib/nproc.c: Include <windows.h>
74973         (num_processors): On native Windows platforms, try GetSystemInfo.
74975 2009-10-18  Bruno Haible  <bruno@clisp.org>
74977         Implement nproc for IRIX.
74978         * lib/nproc.c: Include <sys/sysmp.h>.
74979         (num_processors): On IRIX systems, try sysmp.
74980         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
74982 2009-10-18  Bruno Haible  <bruno@clisp.org>
74984         Implement nproc for HP-UX.
74985         * lib/nproc.c: Include <sys/pstat.h>
74986         (num_processors): On HP-UX systems, try pstat_getdynamic.
74987         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
74988         pstat_getdynamic.
74990 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
74991             Bruno Haible  <bruno@clisp.org>
74993         Implement nproc for NetBSD, OpenBSD.
74994         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
74995         (ARRAY_SIZE): New macro.
74996         (num_processors): On BSD systems, try sysctl of HW_NCPU.
74997         * m4/nproc.m4: New file.
74998         * modules/nproc (Files): Add m4/nproc.m4.
74999         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
75000         (Makefile.am): Instead, augment lib_SOURCES.
75002 2009-10-18  Bruno Haible  <bruno@clisp.org>
75004         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
75005         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
75006         sys/param.h.
75008 2009-10-16  Eric Blake  <ebb9@byu.net>
75010         utimensat: new module
75011         * modules/utimensat: New file.
75012         * lib/utimensat.c (utimensat): Likewise.
75013         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
75014         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
75015         so we can work around Linux bugs.
75016         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
75017         * modules/sys_stat (Makefile.am): Substitute them.
75018         * lib/sys_stat.in.h (utimensat): Declare it.
75019         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
75020         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
75021         * modules/utimensat-tests: New test.
75022         * tests/test-utimensat.c: Likewise.
75024         utimens: let lutimens work on non-symlinks
75025         * lib/utimens.c (lutimens): Fall back to utimens rather than
75026         failing with ENOSYS, when file is not a symlink.
75027         (utimens): Reduce redirection.
75028         * tests/test-lutimens.h (test_lutimens): Update test to cover
75029         non-symlinks.
75030         * tests/test-utimens.h (test_utimens): Update test to cover
75031         symlinks.
75032         * tests/test-utimens.c (main): Update caller.
75034         utimens: cache whether utimensat syscall works
75035         * lib/utimens.c (utimensat_works_really): New cache variable.
75036         (fdutimens, lutimens): Use it to avoid failing syscall.
75038         test-stat-time, test-utimens: improve portability
75039         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
75040         ext4 on alpha, and for cygwin.
75041         * tests/test-utimens-common.h: New file.
75042         (nap): Factor delays into single function.
75043         * tests/test-lutimens.h (test_lutimens): Use new header.
75044         * tests/test-futimens.h (test_futimens): Likewise.
75045         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
75046         timestamps to occur from same machine, as was done previously for
75047         test_utimens.
75048         * modules/utimens-tests (Files): Ship new file.
75049         * modules/futimens-tests (Files): Likewise.
75050         Reported in part by Jim Meyering.
75052         sys_stat: sort replacement declarations
75053         * lib/sys_stat.in.h: Sort declarations.
75054         * lib/futimens.c (futimens): Fix typo.
75056 2009-10-15  Jim Meyering  <meyering@redhat.com>
75058         don't let environment settings perturb build
75059         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
75060         could cause a configure-time and/or build-time malfunction.
75061         Typically, a configure-time function-in-library test is performed
75062         via code like this:
75064           LIB_VAR=
75065           AC_SUBST([LIB_VAR])
75066           prefix_saved_LIBS=$LIBS
75067             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
75068                        [test "$ac_cv_search_FUNC" = "none required" ||
75069                         LIB_VAR=$ac_cv_search_FUNC])
75070           LIBS=$prefix_saved_LIBS
75072         However, in each of the files affected by this change, the LIB_VAR=
75073         initialization was omitted.  Thus, when set in the environment, its
75074         value would propagate into generated Makefiles when FUNC is not found
75075         in LIB_NAME.
75076         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
75077         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
75078         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
75080 2009-10-14  Eric Blake  <ebb9@byu.net>
75082         fchdir: avoid infinite recursion in mingw
75083         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
75084         recursing.
75086         test-stat-time: port to mingw
75087         * tests/test-stat-time.c (force_unlink): Return a value.
75088         (test_ctime) [W32]: Fix compilation error.
75089         (nap): Don't call usleep with too large an argument.  Use
75090         force_unlink.
75091         * doc/pastposix-functions/usleep.texi (usleep): Document the
75092         portability issue.
75094 2009-10-13  Jim Meyering  <meyering@redhat.com>
75096         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
75097         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
75098         * modules/pipe-filter-ii: Likewise.
75099         * modules/sys_socket-tests: Likewise.
75100         * modules/tsearch-tests: Likewise.
75101         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
75102         (check): Depend on it.
75104 2009-10-12  Eric Blake  <ebb9@byu.net>
75106         utimens-tests: port to NFS file systems
75107         * tests/test-utimens.h (test_utimens): Refactor utimecmp
75108         comparisons to avoid spurious failures from timestamp drift
75109         between NFS machines.
75111 2009-10-12  Eric Blake  <ebb9@byu.net>
75113         stat-time-tests: minor cleanups
75114         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
75115         * tests/test-stat-time.c (nap): Separate assignment from call.
75116         Suggested by Paolo Bonzini and Bruno Haible.
75118         sys_stat: guarantee struct timespec
75119         * lib/sys_stat.in.h (includes): Always include <time.h>
75120         * modules/sys_stat (Depends-on): Add time.
75121         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
75122         mode_t permission values.
75123         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
75124         get at subsecond timestamps.
75126 2009-10-10  Eric Blake  <ebb9@byu.net>
75128         futimens: new module
75129         * modules/futimens: New file.
75130         * lib/futimens.c (futimens): Likewise.
75131         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
75132         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
75133         we can work around Linux bugs.
75134         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
75135         * modules/sys_stat (Makefile.am): Substitute them.
75136         * lib/sys_stat.in.h (futimens): Declare it.
75137         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
75138         * doc/posix-functions/futimens.texi (futimens): Likewise.
75139         * modules/futimens-tests: New test.
75140         * tests/test-futimens.c: Likewise.
75142         utimens: introduce fdutimens
75143         * lib/utimens.h (fdutimens): New prototype.
75144         * lib/utimens.c (gl_futimens): Move guts...
75145         (fdutimens): ...to new interface.
75146         * tests/test-utimens.c (do_fdutimens): Use it.
75148         utimens: add UTIME_NOW and UTIME_OMIT support
75149         * lib/utimens.c (validate_timespec, update_timespec): New helper
75150         functions.
75151         (gl_futimens, lutimens): Use them.
75152         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
75153         stdbool, sys_stat.
75154         (Link): Mention resulting library dependency.
75155         * modules/utimecmp (Link): Likewise.
75156         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
75157         (Makefile.am): Pick up library dependency.
75158         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
75159         definition.
75160         * tests/test-sys_stat.c: Test the definitions.
75161         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
75162         * NEWS: Document library dependency.
75164         utimecmp: support symlink timestamps
75165         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
75166         hashing when possible.  Use pathconf when available.
75167         (SYSCALL_RESOLUTION): Recognize tighter resolution.
75168         * modules/utimecmp (Depends-on): Add lstat.
75170         utimens: add lutimens interface
75171         * lib/utimens.c (lutimens): New function.
75172         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
75173         * lib/utimens.h (lutimens): Declare new interface.
75174         * tests/test-utimens.c (main): Enhance test.
75175         * tests/test-lutimens.h (test_lutimens): New file.
75176         * modules/utimens-tests (Files): Distribute it.
75177         (Depends-on): Add symlink.
75178         (configure.ac): Check for usleep.
75180         utimens: validate futimens usage
75181         * lib/utimens.c (gl_futimens): Require valid fd up front, using
75182         fewer syscalls on failure later on.  Avoid compiler warning on
75183         mingw.
75184         * modules/utimens (Depends-on): Add dup2.
75186         utimens: add test
75187         * modules/utimens-tests: New test.
75188         * tests/test-utimens.h: New file.
75189         * tests/test-futimens.h: Likewise.
75190         * tests/test-utimens.c: Likewise.
75192         doc: mention timestamp portability issues
75193         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
75194         instead.
75195         * doc/posix-functions/utime.texi (utime): Likewise.
75196         * doc/posix-functions/utimes.texi (utimes): Likewise.
75197         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
75198         instead.
75199         * doc/posix-functions/futimens.texi (futimens): Mention utimens
75200         module.
75201         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
75202         Mention weakness with symlink timestamps.
75203         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
75204         to utimensat/futimens instead.
75205         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
75207         test-dup2: enhance test
75208         * tests/test-dup2.c (main): Also check AT_FDCWD.
75210         test-stat-time: avoid more spurious failures
75211         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
75212         xfs; and avoid race if the two timestamps cross quantization edge.
75214         relocatable: prefer 'file system' over 'filesystem'
75215         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
75216         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
75217         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
75218         * doc/relocatable.texi (Enabling Relocatability): Likewise.
75219         * lib/relocatable.c (compute_curr_prefix): Likewise.
75221 2009-10-10  Jim Meyering  <meyering@redhat.com>
75223         stat-time-tests: check for the usleep function
75224         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
75226 2009-10-10  Bruno Haible  <bruno@clisp.org>
75228         * modules/xnanosleep: Put the Link section after the Include section.
75230 2009-10-09  Eric Blake  <ebb9@byu.net>
75232         dup2: work around FreeBSD 6.1 bug
75233         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
75234         * doc/posix-functions/dup2.texi (dup2): Document it.
75235         Reported by Nelson H. F. Beebe and Jim Meyering.
75237         test-stat-time: port to buggy NFS clients
75238         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
75239         (test_ctime): Also skip test if mtime and ctime are skewed.
75241         maint: prefer 'file system' over 'filesystem'
75242         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
75243         * doc/posix-functions/lstat.texi (lstat): Likewise.
75244         * lib/file-has-acl.c (file_has_acl): Likewise.
75245         * lib/fwriteerror.c [TEST]: Likewise.
75246         * tests/test-areadlink.h (test_areadlink): Likewise.
75247         * tests/test-areadlinkat-with-size.c (main): Likewise.
75248         * tests/test-areadlinkat.c (main): Likewise.
75249         * tests/test-canonicalize-lgpl.c (main): Likewise.
75250         * tests/test-canonicalize.c (main): Likewise.
75251         * tests/test-fstatat.c (main): Likewise.
75252         * tests/test-linkat.c (main): Likewise.
75253         * tests/test-lstat.h (test_lstat_func): Likewise.
75254         * tests/test-mkdir.h (test_mkdir): Likewise.
75255         * tests/test-readlink.h (test_readlink): Likewise.
75256         * tests/test-remove.c (main): Likewise.
75257         * tests/test-rename.h (test_rename): Likewise.
75258         * tests/test-renameat.c (main): Likewise.
75259         * tests/test-rmdir.h (test_rmdir_func): Likewise.
75260         * tests/test-symlink.h (test_symlink): Likewise.
75261         * tests/test-symlinkat.c (main): Likewise.
75262         * tests/test-unlink.h (test_unlink_func): Likewise.
75263         * tests/test-unlinkat.c (main): Likewise.
75265         maint: make realtime library usage explicit
75266         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
75267         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
75268         * modules/settime (Link): Likewise.
75269         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
75271         test-stat-time: speed up execution
75272         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
75273         warning on mingw.
75274         (nap): New helper function.
75275         (prepare_test): Use it to reduce sleep time.
75276         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
75277         execution.
75278         * modules/stat-time-tests (configure.ac): Check for usleep.
75280 2009-10-09  Jim Meyering  <meyering@redhat.com>
75282         selinux-h: always use getfilecon wrappers
75283         * lib/getfilecon.c: New file.
75284         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
75285         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
75286         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
75287         (fgetfilecon): Provide a stub.
75288         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
75289         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
75290         file unconditionally.
75291         When <selinux/selinux.h> is found, arrange to use wrappers.
75292         * modules/selinux-h (Files): Add getfilecon.c.
75293         (Makefile.am): Substitute include-next-related bits
75294         into the now-always-generated selinux/selinux.h file.
75295         * doc/glibc-functions/lgetfilecon.texi: New file.
75296         * doc/glibc-functions/fgetfilecon.texi: New file.
75297         * doc/glibc-functions/getfilecon.texi: New file.
75298         * doc/glibc-functions/getfilecon-desc.texi: New file.
75299         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
75300         which to pull in the new files.
75301         * MODULES.html.sh (Misc): Add selinux-h.
75303 2009-10-08  Jim Meyering  <meyering@redhat.com>
75305         unistd: fix comment typo
75306         * lib/unistd.in.h (euidaccess): Fix a comment typo.
75308 2009-10-08  Eric Blake  <ebb9@byu.net>
75310         areadlink: use SIZE_MAX consistently
75311         * modules/areadlink (Depends-on): Add stdint.
75312         * modules/areadlink-with-size (Depends-on): Likewise.
75313         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
75314         gives NULL; drop sys/types, since unistd gives size_t; and add
75315         stdint for SIZE_MAX.
75316         (SIZE_MAX): Rely on headers.
75317         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
75318         and add stdint.
75319         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
75320         (SIZE_MAX): Likewise.
75321         (INITIAL_BUF_SIZE): Turn into enum.
75322         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
75324 2009-10-08  Jim Meyering  <meyering@redhat.com>
75326         areadlinkat: avoid compilation failure
75327         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
75328         Fix typo in comment.
75330 2009-10-07  Eric Blake  <ebb9@byu.net>
75332         areadlinkat-with-size: new module
75333         * modules/areadlinkat-with-size: New module.
75334         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
75335         * lib/areadlink.h (areadlinkat): Declare it.
75336         * MODULES.html.sh (File system functions): Mention it.
75337         * modules/areadlinkat-with-size-tests: New test.
75338         * tests/test-areadlinkat-with-size.c: New file.
75340         xreadlinkat: new module
75341         * modules/xreadlinkat: New module.
75342         * lib/xreadlinkat.c (xreadlinkat): New file.
75343         * lib/xreadlink.h (xreadlinkat): Declare it.
75344         * MODULES.html.sh (File system functions): Mention it.
75346         areadlinkat: new module
75347         * lib/at-func.c (FUNC_FAIL): New define.
75348         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
75349         * modules/areadlinkat: New module.
75350         * lib/linkat.c (areadlinkat): Move...
75351         * lib/areadlinkat.c (areadlinkat): ...to new file.
75352         * lib/areadlink.h (areadlinkat): Declare it.
75353         * modules/linkat (Depends-on): Add areadlinkat.
75354         * MODULES.html.sh (File system functions): Mention it.
75355         * modules/areadlinkat-tests: New test.
75356         * tests/test-areadlinkat.c: New file.
75358         areadlink, areadlink-with-size: add tests
75359         * modules/areadlink-tests: New test.
75360         * modules/areadlink-with-size-tests: Likewise.
75361         * tests/test-areadlink.h: New file.
75362         * tests/test-areadlink.c: Likewise.
75363         * tests/test-areadlink-with-size.c: Likewise.
75365         maint: minor cleanups
75366         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
75367         _UNUSED_PARAMETER_ instead.
75368         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
75369         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
75370         * modules/linkat-tests (Files): Distribute test-link.h.
75372         openat, utimens: whitespace cleanup
75373         * lib/openat.c: Prefer space throughout, rather than mix of 8
75374         spaces vs. tabs.
75375         * lib/at-func.c: Likewise.
75376         * lib/utimens.c: Likewise.
75378         openat: avoid using wrong fd
75379         * lib/openat.c (openat_permissive): Reject user's fd if saving the
75380         working directory chooses same fd.
75381         * lib/at-func.c (AT_FUNC_NAME): Likewise.
75383         mkdir, mkdirat: fix cygwin 1.5.x bug
75384         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
75385         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
75386         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
75387         bug.
75388         (gl_PREREQ_MKDIR): Delete unused macro.
75389         * modules/mkdir (Files): Track file rename.
75390         (configure.ac): Update macro name.
75391         * modules/openat (Depends-on): Add mkdir.
75392         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
75394         mkdir, mkdirat: add tests
75395         * modules/mkdir-tests: New test.
75396         * tests/test-mkdir.h: New file.
75397         * tests/test-mkdir.c: Likewise.
75398         * tests/test-mkdirat.c: Likewise.
75399         * modules/openat-tests (Files): Add new files.
75400         (Makefile.am): Run new test.
75402 2009-10-06  Eric Blake  <ebb9@byu.net>
75404         doc: tweak *at function documentation
75405         * doc/posix-functions/faccessat.texi (faccessat): Mention
75406         known issue with replacement.
75407         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
75408         * doc/posix-functions/linkat.texi (linkat): Likewise.
75409         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
75410         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
75411         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
75412         * doc/posix-functions/renameat.texi (renameat): Likewise.
75413         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
75415         openat: fix GNU/Hurd bug in unlinkat
75416         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
75417         broken.
75418         * doc/posix-functions/unlink.texi (unlink): Document this.
75419         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
75421         fdopendir: fix GNU/Hurd bug
75422         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
75423         allowing non-directory fds.
75424         * lib/fdopendir.c (rpl_fdopendir): Work around it.
75425         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
75426         * modules/dirent (Makefile.am): Substitute it.
75427         * lib/dirent.in.h (fdopendir): Declare replacement.
75428         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
75429         * tests/test-fdopendir.c (main): Test something other than
75430         /dev/null, since on Hurd that behaves like a directory.
75432         test-symlink: port to GNU/Hurd
75433         * tests/test-symlink.h (test_symlink): Relax expected errno.
75435         doc: tweak more cygwin information
75436         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
75437         now compatible with glibc.
75438         * doc/posix-functions/getopt.texi (getopt): Likewise.
75440         getopt-gnu: add another test
75441         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
75442         guarantee behavior relied on by m4.
75443         * tests/test-getopt.c (main): Use it.
75444         * modules/getopt-posix-tests (Depends-on): Add setenv.
75445         See http://lists.gnu.org/r/bug-m4/2006-09/msg00028.html.
75447         getopt: fix compilation on darwin
75448         * lib/getopt.in.h (includes): Leave breadcrumbs during system
75449         include.
75450         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
75451         Reported by Ludovic Courtès.
75453 2009-10-06  Bruno Haible  <bruno@clisp.org>
75455         * modules/size_max (Description): Discourage its use.
75456         Reported by Simon Josefsson.
75458 2009-10-06  Jim Meyering  <meyering@redhat.com>
75460         linkat: avoid compilation failure
75461         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
75463 2009-10-05  Eric Blake  <ebb9@byu.net>
75465         linkat: support Linux 2.6.17
75466         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
75467         linkat on Linux, but allow cache variable override.
75468         * lib/linkat.c (rpl_linkat): Define override.
75469         * modules/linkat (Depends-on): Add symlinkat.
75470         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
75471         * modules/unistd (Makefile.am): Substitute it.
75472         * lib/unistd.in.h (linkat): Declare replacement.
75473         Reported by Pádraig Brady.
75475         quotearg: port test to systems with C.UTF-8 locale
75476         * tests/test-quotearg.c (struct result_strings): Add another
75477         member, differentiating between C.ASCII and C.UTF-8 handling.
75478         (compare_strings): Add parameter.
75479         (main): Adjust all callers.
75481         getopt: avoid clash with FreeBSD _getopt_internal
75482         * lib/getopt.in.h (_getopt_internal): Override the name.
75483         * lib/getopt_int.h (includes): Pick up any overrides.
75484         Reported by Reuben Thomas.
75486         hash: allow C89 compilation
75487         * lib/hash.c (check_tuning): Move declaration before statement.
75488         Reported by Reuben Thomas.
75490 2009-10-05  Karl Berry  <karl@gnu.org>
75492         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
75494 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
75495             Bruno Haible  <bruno@clisp.org>
75497         * lib/uname.c (uname): Use a table-driven algorithm to compute
75498         Windows NT versions.
75500 2009-10-04  Bruno Haible  <bruno@clisp.org>
75502         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
75503         program_invocation_short_name.
75504         * modules/progname (configure.ac): Test for presence of
75505         program_invocation_short_name.
75506         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
75508 2009-10-04  Bruno Haible  <bruno@clisp.org>
75510         * lib/progname.c (set_program_name): Fix comment.
75511         Reported by Jim Meyering.
75513 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
75514             Bruno Haible  <bruno@clisp.org>
75516         * lib/uname.c: Include <string.h>.
75517         (uname): Do only one call to GetVersionEx in the common case.
75519 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
75520             Bruno Haible  <bruno@clisp.org>
75522         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
75523         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
75524         (uname): Add support for Windows CE and various non-x86 CPU types.
75526 2009-10-03  Bruno Haible  <bruno@clisp.org>
75528         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
75529         invocation to tests/configure.ac.
75530         Reported by Ian Beckwith <ianb@erislabs.net>.
75532 2009-10-02  Eric Blake  <ebb9@byu.net>
75534         fchdir: avoid compiler warning
75535         * lib/fchdir.c (canonicalize_file_name)
75536         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
75538         test-open: support mingw errno values
75539         * tests/test-open.h (test_open): Relax test.
75540         * tests/test-fopen.h (test_fopen): Likewise.
75541         * tests/test-openat-safer.c (main): Likewise.
75543         open: fix opening directory on mingw
75544         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
75546         test-open: on GNU/Hurd, /dev/null is a directory
75547         * tests/test-fopen.h (main): Rename...
75548         (test_fopen): ...to this.  Use a guaranteed non-directory when
75549         confirming open behavior on trailing slash.
75550         * tests/test-openat-safer.c (main): Likewise.
75551         * tests/test-open.h (main): Likewise....
75552         (test_open): ...to this.
75553         * tests/test-fopen.c (main): Adjust caller.
75554         * tests/test-fopen-safer.c (main): Likewise.
75555         * tests/test-open.c (main): Likewise.
75556         * tests/test-fcntl-safer.c (main): Likewise.
75557         Reported by Samuel Thibault.
75559         rename, fchdir: don't ignore chdir failure
75560         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
75561         * lib/rename.c (rpl_rename) [W32]: Likewise.
75562         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
75563         an empty destination directory if source cannot be renamed,
75564         although there is still possibility for failure.
75565         * doc/posix-functions/rename.texi (rename): Document the race.
75566         Reported by Jim Meyering.
75568         maint: cleanup whitespace in recent commits
75569         * lib/rename.c (rpl_rename): Remove tabs.
75570         * tests/test-link.h (test_link): Likewise.
75571         * lib/fchdir.c (get_name): Likewise.
75572         Reported by Jim Meyering.
75574 2009-10-02  Ben Pfaff  <blp@gnu.org>
75576         relocatable-prog-wrapper: Add missing dependency on
75577         double-slash-root.
75578         * modules/relocatable-prog-wrapper: Add dependency.
75579         Reported by Ian Beckwith <ianb@erislabs.net>.
75581 2009-10-02  Eric Blake  <ebb9@byu.net>
75583         renameat: fix Solaris bugs
75584         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
75585         needed fixing.
75586         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
75587         * modules/stdio (Makefile.am): Substitute it.
75588         * lib/stdio.in.h (renameat): Declare replacement.
75589         * lib/renameat.c (rpl_renameat): Implement fix.
75591         renameat: new module
75592         * modules/renameat: New file.
75593         * lib/renameat.c (renameat): Likewise.
75594         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
75595         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
75596         * modules/stdio (Makefile.am): Substitute them.
75597         * lib/stdio.in.h (renameat): Declare it.
75598         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
75599         * doc/posix-functions/renameat.texi (renameat): Likewise.
75600         * modules/renameat-tests: New test.
75601         * tests/test-renameat.c: Likewise.
75603         rename: fix mingw bugs
75604         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
75605         directory overwrite bugs.
75607         rename: fix another cygwin 1.5 bug
75608         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
75609         checks.
75610         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
75611         unnecessary cygwin workarounds.  Also work around bug with moving
75612         full directory onto an empty one.
75613         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
75615         rename-dest-slash: merge into rename module
75616         * modules/rename-dest-slash (Status): Mark obsolete.
75617         (Depends-on): Add rename.
75618         (Files): Let rename do it all.
75619         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
75620         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
75621         * m4/rename-dest-slash.m4: ...so this file can be deleted.
75622         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
75623         * lib/rename.c (rpl_rename): Update comments.
75625         rename: fix cygwin 1.5.x bugs
75626         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
75627         * lib/rename.c (rpl_rename): Work around them.
75628         * modules/rename (Depends-on): Add same-inode.
75630         rename: fix Solaris 10 bug
75631         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
75632         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
75633         was the only bug.
75635         rename: fix Solaris 9 bug
75636         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
75637         on non-directory.  Avoid calling exit.
75638         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
75639         strdup.
75640         * modules/rename-tests (Depends-on): Drop lstat.
75641         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
75642         (gl_PREREQ_RENAME): Delete unused macro.
75644         rename-dest-slash: fix NetBSD bug
75645         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
75646         links.
75647         * modules/rename-dest-slash (Depends-on): Add same-inode.
75649         rename-tests: new test, exposes several platform bugs
75650         * modules/rename-tests: New file.
75651         * tests/test-rename.h: Likewise.
75652         * tests/test-rename.c: Likewise.
75653         * doc/posix-functions/rename.texi (rename): Improve documentation,
75654         including bugs that will eventually be fixed in gnulib.
75656 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
75658         * lib/uname.c: Include <stdlib.h>
75659         (uname): Assume version info is available.
75661 2009-10-02  Jim Meyering  <meyering@redhat.com>
75663         gnu-web-doc-update: correct --help output
75664         * build-aux/gnu-web-doc-update: Make --help output relevant.
75666         gnu-web-doc-update: add standard options
75667         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
75669         gnu-web-doc-update: New module.
75670         Use this script to automatically update the on-line web documentation
75671         for your GNU project at http://www.gnu.org/software/$pkg/manual/
75672         * modules/gnu-web-doc-update: New file, from coreutils.
75673         * build-aux/gnu-web-doc-update: New script.
75675 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
75677         link: LoadLibrary is not needed.
75678         * lib/link.c: Use GetModuleHandle.
75680 2009-10-01  Eric Blake  <ebb9@byu.net>
75682         getopt: bump serial number
75683         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
75684         change.
75686         tests: tighten link, rmdir, and remove tests
75687         * tests/test-link.h (includes): No need to use <config.h> here.
75688         Clean up if directory hard link was created, otherwise test for
75689         trailing '.'.
75690         * tests/test-linkat.c (main): Simplify.
75691         * tests/test-remove.c (main): Enhance test for trailing '.'.
75692         * tests/test-rmdir.h (test_rmdir_func): Likewise.
75694 2009-10-01  Jim Meyering  <meyering@redhat.com>
75696         maint.mk: requiring "make major" was annoying, for a "minor" release.
75697         What is intended is "stable", to contrast with alpha and beta,
75698         so require "make stable", not "make major".
75699         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
75700         (get_tool_versions): Likewise.
75701         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
75703 2009-09-30  Ben Pfaff  <blp@gnu.org>
75705         Fix broken build of replacement for Windows tmpfile().
75706         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
75707         flags argument added along with the 'mkostemp' module.
75709 2009-09-28  Bruno Haible  <bruno@clisp.org>
75711         Avoid identifier clash with POSIX function 'remove' defined as a macro.
75712         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
75713         to 'remove_elt'.
75714         (gl_list_remove): Update.
75715         * lib/gl_list.c (gl_list_remove): Update.
75716         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
75717         to 'remove_elt'.
75718         (gl_oset_remove): Update.
75719         * lib/gl_list.c (gl_oset_remove): Update.
75720         Reported by Eric Blake.
75722 2009-09-28  Eric Blake  <ebb9@byu.net>
75724         doc: mention yet more cygwin 1.7 status
75725         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
75726         cygwin.
75727         * doc/glibc-functions/execvpe.texi (execvpe): New file.
75728         * doc/gnulib.texi (Glibc unistd.h): Mention it.
75730         argp: fix test failure
75731         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
75732         that are not upper-case.  Pass correct range to tolower.
75734 2009-09-27  Jim Meyering  <meyering@redhat.com>
75736         test-yesno: work around sparc-dash here-document infelicity
75737         Without this change, the literal \177 byte in a here document
75738         would make dash 0.5.5.1-3 access uninitialized memory.
75739         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
75740         Instead, use a marker, "@", and filter through tr to create the desired
75741         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
75743 2009-09-27  Bruno Haible  <bruno@clisp.org>
75745         Disable untested support for new flavours of ACLs on AIX.
75746         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
75747         progress.
75748         * lib/set-mode-acl.c (qset_acl): Likewise.
75750 2008-12-07  Bruno Haible  <bruno@clisp.org>
75752         Add support for new flavours of ACLs on AIX. (Untested.)
75753         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
75754         (file_has_acl): Add support for newer AIX.
75755         * lib/set-mode-acl.c (qset_acl): Likewise.
75756         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
75757         Rainer Tammer <tammer@tammer.net>.
75759 2009-09-26  Eric Blake  <ebb9@byu.net>
75761         argp: fix compilation of getopt
75762         * lib/getopt.in.h (includes): Use different guard than glibc.
75763         Reported by Sergey Poznyakoff.
75765         doc: mention more cygwin 1.7 status
75766         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
75767         bug.
75768         * doc/posix-functions/execl.texi (execl): Likewise.
75769         * doc/posix-functions/execle.texi (execle): Likewise.
75770         * doc/posix-functions/execlp.texi (execlp): Likewise.
75771         * doc/posix-functions/execv.texi (execv): Likewise.
75772         * doc/posix-functions/execve.texi (execve): Likewise.
75773         * doc/posix-functions/execvp.texi (execvp): Likewise.
75774         * doc/glibc-functions/canonicalize_file_name.texi
75775         (canonicalize_file_name): Cygwin 1.7 now provides this.
75776         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
75777         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
75778         on AT_SYMLINK_NOFOLLOW.
75780 2009-09-24  Eric Blake  <ebb9@byu.net>
75782         test-linkat: make test more robust
75783         * tests/test-linkat.c (main): Avoid collision with EEXIST.
75785         getopt: fix inclusion guards for cygwin
75786         * modules/getopt-posix (Depends-on): Add include-next.
75787         (Makefile.am): Substitute more items in replacement header.
75788         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
75789         <getopt.h>.
75790         * lib/getopt.in.h (includes): Use split inclusion guard, and
75791         prefer <getopt.h> over include <unistd.h> when one is present.
75792         (option): Also override name of 'struct option'.
75794         same-inode: revert prior change; it is not yet ready
75795         * NEWS: Undo mention of this change.
75796         * lib/same-inode.h (same-inode.h): Undo tri-state change.
75797         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
75798         * lib/cycle-check.c (cycle_check): Likewise.
75799         * lib/same.c (same_name): Likewise.
75800         * lib/at-func2.c (at_func2): Likewise.
75802 2009-09-23  Eric Blake  <ebb9@byu.net>
75804         linkat: new module
75805         * modules/linkat: New file.
75806         * lib/at-func2.c (at_func2): Likewise.
75807         * lib/linkat.c (linkat): Likewise.
75808         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
75809         * lib/openat-priv.h (at_func2): Add declaration.
75810         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
75811         * modules/unistd (Makefile.am): Substitute them.
75812         * lib/unistd.in.h (linkat): Declare it.
75813         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
75814         * doc/posix-functions/linkat.texi (linkat): Likewise.
75815         * doc/posix-functions/link.texi (link): Tweak wording.
75816         * tests/test-link.c (main): Move guts...
75817         * tests/test-link.h (test_link): ...into new file.
75818         * modules/linkat-tests: New test.
75819         * tests/test-linkat.c: Likewise.
75820         * modules/link-tests (Files): Ship new file.
75821         (Depends-on): Add stdbool.
75823         dirname: add library-safe mdir_name
75824         * lib/dirname.h (mdir_name): New prototype.
75825         * lib/dirname.c (dir_name): Move guts...
75826         (mdir_name): ...to new function that avoids xalloc_die.
75828         fchdir: another mingw fix
75829         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
75830         * lib/fchdir.c (get_name): New helper method; skips canonicalize
75831         on mingw (where it has not yet been ported), and make it optional
75832         elsewhere.
75833         (_gl_register_fd): Use it.
75835         same-inode: make SAME_INODE tri-state, to port to mingw
75836         * NEWS: Mention this change.
75837         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
75838         st_ino always being 0.
75839         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
75840         * lib/cycle-check.c (cycle_check): Likewise.
75841         * lib/same.c (same_name): Likewise.
75843         lstat: avoid mingw compilation error
75844         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
75845         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
75846         lstat ourselves.
75847         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
75848         was adequate.
75849         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
75850         the checks for lstat.
75851         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
75853         link: fix test failure on Solaris 9
75854         * lib/link.c (rpl_link): Don't assume link will catch bogus
75855         trailing slash on source.
75857         test-symlinkat: enhance test
75858         * tests/test-readlink.c (main): Move guts...
75859         * tests/test-readlink.h (test_readlink): ...into new file.
75860         * tests/test-symlink.c (main): Move guts...
75861         * tests/test-symlink.h (test_symlink): ...into new file.
75862         * tests/test-symlinkat.c (main): Use new files for further
75863         coverage.
75864         (do_symlink, do_readlink): New helper functions.
75865         * modules/symlink-tests (Files): Ship new file.
75866         (Depends-on): Add stdbool.
75867         * modules/readlink-tests (Files): Ship new file.
75868         (Depends-on): Add stdbool.
75869         * modules/symlinkat-tests (Files): Use new files.
75871 2009-09-23  Eric Blake  <ebb9@byu.net>
75873         readlink: document portability issue with symlink length
75874         * doc/posix-functions/lstat.texi (lstat): Mention that some file
75875         systems have bogus st_size on symlinks, and mention the
75876         areadlink-with-size module.
75877         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
75878         * doc/posix-functions/readlink.texi (readlink): Mention the
75879         areadlink module, and ERANGE failure.
75880         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
75881         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
75883         readlink: fix Solaris 9 bug with trailing slash
75884         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
75885         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
75886         * doc/posix-functions/readlink.texi (readlink): Document this.
75887         * modules/readlink-tests: New test.
75888         * tests/test-readlink.c: Likewise.
75890         readlink: fix cygwin 1.5.x bug with return type
75891         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
75892         * lib/unistd.in.h (readlink): Use ssize_t.
75893         * lib/readlink.c (readlink): Likewise.
75894         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
75895         * modules/unistd (Makefile.am): Substitute it.
75896         * lib/unistd.in.h (readlink): Declare replacement.
75897         * doc/posix-functions/readlink.texi (readlink): Document this.
75899         symlink: use throughout gnulib
75900         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
75901         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
75902         symlink is not used.
75903         * modules/symlinkat (Depends-on): Add symlink.
75904         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
75905         * modules/canonicalize-tests (Depends-on): Likewise.
75906         * modules/lstat-tests (Depends-on): Likewise.
75907         * modules/openat-tests (Depends-on): Likewise.
75908         * modules/remove-tests (Depends-on): Likewise.
75909         * modules/rmdir-tests (Depends-on): Likewise.
75910         * modules/unlink-tests (Depends-on): Likewise.
75911         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
75912         * tests/test-canonicalize.c (symlink): Likewise.
75913         * tests/test-fstatat.c (symlink): Likewise.
75914         * tests/test-lstat.c (symlink): Likewise.
75915         * tests/test-remove.c (symlink): Likewise.
75916         * tests/test-rmdir.c (symlink): Likewise.
75917         * tests/test-unlink.c (symlink): Likewise.
75918         * tests/test-unlinkat.c (symlink): Likewise.
75920         symlink: new module, for Solaris 9 bug
75921         * modules/symlink: New file.
75922         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
75923         * lib/symlink.c: Likewise.
75924         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
75925         * modules/unistd (Makefile.am): Substitute them.
75926         * lib/unistd.in.h (symlink): Declare replacement.
75927         * MODULES.html.sh (File system functions): Mention it.
75928         * doc/posix-functions/symlink.texi (symlink): Likewise.
75929         * modules/symlink-tests: New test.
75930         * tests/test-symlink.c: Likewise.
75932 2009-09-23  Bruno Haible  <bruno@clisp.org>
75934         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
75935         when needed.
75936         Test case: gnulib-tool --import --with-tests atexit inttypes.
75937         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
75939 2009-09-23  Bruno Haible  <bruno@clisp.org>
75941         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
75942         subcommand, not in a subshell.
75944 2009-09-22  Eric Blake  <ebb9@byu.net>
75946         unistd: sort replacement declarations
75947         * lib/unistd.in.h: Sort declarations.
75949         open, openat: minor optimization
75950         * lib/open.c (open): If open succeeded, len is non-zero.
75951         * lib/openat.c (rpl_openat): Likewise.
75953         link-follow: ensure correct result
75954         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
75955         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
75956         distinguish between possible failures.
75958 2009-09-21  Eric Blake  <ebb9@byu.net>
75960         fts: avoid compiler warning
75961         * lib/fts.c (dirent_inode_sort_may_be_useful)
75962         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
75964 2009-09-19  Bruno Haible  <bruno@clisp.org>
75966         * lib/progreloc.c (canonicalize_file_name): New declaration.
75968 2009-09-19  Eric Blake  <ebb9@byu.net>
75970         link: fix quoting
75971         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
75973         openat: fix openat bugs on Solaris 9
75974         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
75975         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
75976         * modules/openat (Depends-on): Add open.
75977         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
75978         * modules/fcntl-h (Makefile.am): Substitute it.
75979         * lib/fcntl.in.h (openat): Declare replacement.
75980         * doc/posix-functions/openat.texi (openat): Document this.
75982         openat: move fstatat and unlinkat into correct files
75983         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
75984         compiled.
75985         * lib/openat.c (fstatat, unlinkat): Move...
75986         * lib/fstatat.c (fstatat): ...into correct files.
75987         * lib/unlinkat.c (unlinkat): Likewise.
75989         openat: fix unlinkat bugs on Solaris 9
75990         * lib/unlinkat.c (unlinkat): New file.
75991         * modules/openat (Depends-on): Add unlink.
75992         (Files): Distribute it.
75993         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
75994         trailing slash behavior is broken.
75995         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
75996         * modules/unistd (Makefile.am): Substitute it.
75997         * lib/unistd.in.h (unlinkat): Declare replacement.
75998         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
76000         openat: fix fstatat bugs on Solaris 9
76001         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
76002         stat.
76003         * doc/posix-functions/fstatat.texi (fstatat): Document this.
76005         test-unlinkat: enhance test, to expose Solaris 9 bug
76006         * tests/test-unlink.c (main): Factor guts...
76007         * tests/test-unlink.h (test_rmdir_func): ...into new file.
76008         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
76009         * tests/test-rmdir.c (main): Adjust caller.
76010         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
76011         (unlinker): New helper function.
76012         (rmdirat): Enhance check.
76013         * modules/rmdir-tests (Depends-on): Add stdbool.
76014         * modules/unlink-tests (Depends-on): Likewise.
76015         (Files): Add test-unlink.h.
76016         * modules/openat-tests (Files): Likewise.
76017         (Depends-on): Add unlinkdir.
76019         test-fstatat: new test, to expose Solaris 9 bugs
76020         * tests/test-stat.c (main): Factor guts...
76021         * tests/test-stat.h (test_stat_func): ...into new file.
76022         * tests/test-lstat.c (main): Factor guts...
76023         * tests/test-lstat.h (test_lstat_func): ...into new file.
76024         * tests/test-fstatat.c: New file.
76025         * modules/stat-tests (Files): Add test-stat.h.
76026         * modules/lstat-tests (Files): Add test-lstat.h.
76027         (Depends-on): Add stdbool.
76028         * modules/openat-tests (Depends-on): Add pathmax.
76029         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
76030         (Makefile.am): Run new test.
76032         remove: new module, for mingw and Solaris 9 bugs
76033         * modules/remove: New file.
76034         * lib/remove.c: Likewise.
76035         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
76036         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
76037         * modules/stdio (Makefile.am): Use them.
76038         * lib/stdio.in.h (remove): Declare replacement.
76039         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
76040         * doc/posix-functions/remove.texi (remove): Likewise.
76041         * modules/remove-tests: New test.
76042         * tests/test-remove.c: Likewise.
76044         unlink: new module, for Solaris 9 bug
76045         * modules/unlink: New file.
76046         * lib/unlink.c: Likewise.
76047         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
76048         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
76049         * modules/unistd (Makefile.am): Use them.
76050         * lib/unistd.in.h (stat): Declare replacement.
76051         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
76052         * doc/posix-functions/unlink.texi (unlink): Likewise.
76053         * modules/unlink-tests: New test.
76054         * tests/test-unlink.c: Likewise.
76056         lstat: fix Solaris 9 bug
76057         * lib/lstat.c (lstat): Also check for trailing slash on
76058         non-symlink, non-directories.  Use stat module to simplify logic.
76059         * doc/posix-functions/lstat.texi (lstat): Document it.
76060         * modules/lstat-tests (Depends-on): Add errno, same-inode.
76061         (configure.ac): Check for symlink.
76062         * tests/test-lstat.c (main): Add more tests.
76064         stat: add as dependency to other modules
76065         * modules/chown (Depends-on): Add stat.
76066         * modules/euidaccess (Depends-on): Likewise.
76067         * modules/fchdir (Depends-on): Likewise.
76068         * modules/isdir (Depends-on): Likewise.
76069         * modules/link (Depends-on): Likewise.
76070         * modules/lstat (Depends-on): Likewise.
76071         * modules/mkdir-p (Depends-on): Likewise.
76072         * modules/modechange (Depends-on): Likewise.
76073         * modules/open (Depends-on): Likewise.
76074         * modules/readlink (Depends-on): Likewise.
76075         * modules/same (Depends-on): Likewise.
76077         stat: fix Solaris 9 bug
76078         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
76079         slash.
76080         * lib/stat.c (rpl_stat): Work around it.
76081         * doc/posix-functions/stat.texi (stat): Update documentation.
76083         stat: new module, for mingw bug
76084         * modules/stat: New file.
76085         * lib/stat.c: Likewise.
76086         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
76087         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
76088         * modules/sys_stat (Makefile.am): Use them.
76089         * lib/sys_stat.in.h (stat): Declare replacement.
76090         * lib/openat.c (fstatat): Deal with lstat and stat being function
76091         macros.
76092         * modules/openat (Depends-on): Add inline.
76093         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
76094         * doc/posix-functions/stat.texi (stat): Likewise.
76095         * modules/stat-tests: New test.
76096         * tests/test-stat.c: Likewise.
76098 2009-09-19  Jim Meyering  <meyering@redhat.com>
76100         syntax-check: detect unnecessary inclusion of canonicalize.h
76101         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
76103 2009-09-19  Eric Blake  <ebb9@byu.net>
76105         canonicalize-lgpl: adjust clients to use correct header
76106         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
76107         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
76108         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
76109         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
76110         * lib/progreloc.c (includes): Likewise.
76112 2009-09-19  Jim Meyering  <meyering@redhat.com>
76114         test-posixtm.c: correct a comment
76115         * tests/test-posixtm.c: Correct first-line comment.
76116         Spotted by Eric Blake.
76118 2009-09-16  Jim Meyering  <meyering@redhat.com>
76120         posixtm-tests: make T const-correct; add a test case
76121         * tests/test-posixtm.c (T): Declare const.
76122         Add a test for -(2^31+1).
76123         Remove useless can-succeed-only-in-2002 test.
76125         posixtm-tests: adjust the sole failing test
76126         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
76127         expected output matches what mktime now produces.  Cross-checked via
76128         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
76130         posixtm: move #ifdef'd tests into a new module
76131         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
76132         * tests/test-posixtm.c: ... this new file.
76133         * modules/posixtm-tests: New module.
76135 2009-09-19  Eric Blake  <ebb9@byu.net>
76137         openat: simplify use of at-func.c
76138         * lib/at-func.c (includes): Include prerequisites here, to
76139         simplify requirements on client files.
76140         * lib/openat-priv.h: Add double-inclusion guard.
76141         * lib/faccessat.c (includes): Simplify.
76142         * lib/fchmodat.c (includes): Likewise.
76143         * lib/fchownat.c (includes): Likewise.
76144         * lib/mkdirat.c (includes): Likewise.
76145         * lib/mkfifoat.c (includes): Likewise.
76146         * lib/symlinkat.c (includes): Likewise.
76148         openat: allow return of fd 0
76149         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
76150         * modules/save-cwd (Depends-on): Replace fcntl-safer with
76151         unistd-safer.
76152         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
76153         <fcntl.h>; this module does not leak fds.
76154         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
76155         must be allowed to return 0, leaving openat_safer to add the
76156         safety.
76157         (openat_permissive): Avoid writing to just-opened fd 2 if
76158         restoring the current directory fails.
76159         * lib/openat-die.c (openat_restore_fail): Add comment.
76160         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
76161         (save_cwd): Guarantee safe fd, but without use of open_safer.
76162         * tests/test-openat.c: New test.
76163         * modules/openat-tests (Files, Makefile.am): Distribute and build
76164         new file.
76166         relocatable-prog-wrapper: fix build
76167         * modules/relocatable-prog-wrapper (Files): Update name of
76168         canonicalize m4 file, broken on 2009-09-17.
76169         Reported by emad hajjar <aleppos@hotmail.com>.
76171 2009-09-19  Bruno Haible  <bruno@clisp.org>
76173         * lib/safe-alloc.h: Use the standard header with GPL copyright.
76174         * lib/safe-alloc.c: Likewise.
76175         Reported by Ian Beckwith <ianb@erislabs.net>.
76177 2009-09-18  Bruno Haible  <bruno@clisp.org>
76179         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
76180         Reported by <erobles@sensacd.com.mx>.
76182 2009-09-17  Eric Blake  <ebb9@byu.net>
76184         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
76185         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
76186         slashes when checking if last component is missing.
76187         * tests/test-canonicalize.c (main): Test this.
76189         canonicalize, canonicalize-lgpl: honor // if distinct from /
76190         * modules/canonicalize (Files): Add double-slash-root.m4.
76191         * modules/canonicalize-lgpl (Files): Likewise.
76192         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
76193         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
76194         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
76195         fallback definition.
76196         (canonicalize_filename_mode): Use it to protect //.
76197         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
76198         (__realpath): Likewise.
76199         * tests/test-canonicalize.c (main): Test this.
76200         * tests/test-canonicalize-lgpl.c (main): Likewise.
76201         * modules/canonicalize-tests (Depends-on): Add same-inode.
76202         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
76204         canonicalize-lgpl: fix glibc bug with trailing slash
76205         * m4/canonicalize-lgpl.m4: Move contents...
76206         * m4/canonicalize.m4: ...here.
76207         (gl_CANONICALIZE_LGPL): Factor realpath check...
76208         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
76209         glibc 2.3.5 bug, fixed 2005-04-27.
76210         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
76211         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
76212         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
76213         * modules/canonicalize-lgpl (Files): Manage file rename.
76214         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
76215         * modules/stdlib (Makefile.am): Substitute witness.
76216         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
76217         is needed.
76218         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
76219         replacement is required.
76220         * lib/canonicalize.c (canonicalize_file_name): Likewise.
76221         * doc/glibc-functions/canonicalize_file_name.texi
76222         (canonicalize_file_name): Document this.
76223         * doc/posix-functions/realpath.texi (realpath): Likewise.
76225         canonicalize-lgpl: reject non-directory with trailing slash
76226         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
76227         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
76228         catches failures in glibc 2.3.5.
76229         * tests/test-canonicalize.c (main): Likewise.
76231         canonicalize-lgpl: use native realpath if it works
76232         * lib/canonicalize-lgpl.c (realpath): Guard with
76233         FUNC_REALPATH_WORKS.
76234         * lib/stdlib.in.h (realpath): Make declaration optional based on
76235         HAVE_REALPATH.
76236         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
76237         native realpath works.
76238         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
76239         * modules/stdlib (Makefile.am): Substitute witness.
76241         canonicalize, canonicalize-lgpl: use <stdlib.h>
76242         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
76243         (Include): Mention <stdlib.h>.
76244         (configure.ac): Mention functions we provide.
76245         * modules/canonicalize (configure.ac): Likewise.
76246         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
76247         realpath if canonicalize_file_name is missing.
76248         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
76249         * modules/stdlib (Makefile.am): Substitute witnesses.
76250         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
76251         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
76252         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
76253         * NEWS: Document this.
76254         * doc/glibc-functions/canonicalize_file_name.texi
76255         (canonicalize_file_name): Likewise.
76256         * doc/posix-functions/realpath.texi (realpath): Likewise.
76257         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
76259         test-canonicalize: consolidate into single C program
76260         * tests/test-canonicalize.sh: Delete; move setup into...
76261         * tests/test-canonicalize.c (main): ...the program, making it
76262         easier to run in debugger.  Add some tests.
76263         * modules/canonicalize-tests (Files): Remove unused file.
76264         (Depends-on): Add progname.
76265         (configure.ac, Makefile.am): Simplify.
76267         test-canonicalize-lgpl: consolidate into single C program
76268         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
76269         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
76270         easier to run in debugger.  Add some tests.
76271         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
76272         (configure.ac, Makefile.am): Simplify.
76274         canonicalize: avoid resolvepath
76275         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
76276         unnecessary checks.
76277         * lib/canonicalize.c (includes): Simplify.
76278         (canonicalize_file_name): Drop resolvepath implementation.
76279         * modules/canonicalize (Depends-on): Drop filenamecat.
76281         canonicalize: don't lose errno
76282         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
76283         over calls to free.
76285         canonicalize: simplify errno handling
76286         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
76287         assignment.
76289         canonicalize, canonicalize-lgpl: update module dependencies
76290         * modules/canonicalize (Depends-on): Add extensions, lstat,
76291         pathmax, stdlib.
76292         (Files): Drop pathmax.h.
76293         (configure.ac): Adjust macro name.
76294         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
76295         lstat, stdlib, sys_stat.
76296         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
76297         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
76298         extensions.
76299         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
76300         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
76301         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
76302         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
76303         declaration, if available.
76304         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
76305         we can rely on the readlink module.
76306         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
76307         (includes): Use <unistd.h> unconditionally.
76309 2009-09-17  Eric Blake  <ebb9@byu.net>
76311         maint: make Include sections of modules consistent
76312         * modules/alloca: Use only header name; no need to list #include.
76313         * modules/alloca-opt: Likewise.
76314         * modules/arpa_inet: Likewise.
76315         * modules/canon-host: Likewise.
76316         * modules/configmake: Likewise.
76317         * modules/dirent: Likewise.
76318         * modules/eealloc: Likewise.
76319         * modules/environ: Likewise.
76320         * modules/fchdir: Likewise.
76321         * modules/fcntl: Likewise.
76322         * modules/fcntl-h: Likewise.
76323         * modules/gethrxtime: Likewise.
76324         * modules/gettime: Likewise.
76325         * modules/ignore-value: Likewise.
76326         * modules/inet_ntop: Likewise.
76327         * modules/inet_pton: Likewise.
76328         * modules/inttypes: Likewise.
76329         * modules/isnand-nolibm: Likewise.
76330         * modules/isnanf-nolibm: Likewise.
76331         * modules/mbchar: Likewise.
76332         * modules/mbfile: Likewise.
76333         * modules/mbiter: Likewise.
76334         * modules/mbuiter: Likewise.
76335         * modules/netdb: Likewise.
76336         * modules/netinet_in: Likewise.
76337         * modules/nproc: Likewise.
76338         * modules/pagealign_alloc: Likewise.
76339         * modules/poll: Likewise.
76340         * modules/printf-frexp: Likewise.
76341         * modules/pthread: Likewise.
76342         * modules/putenv: Likewise.
76343         * modules/random_r: Likewise.
76344         * modules/relocatable-prog: Likewise.
76345         * modules/search: Likewise.
76346         * modules/select: Likewise.
76347         * modules/selinux-h: Likewise.
76348         * modules/settime: Likewise.
76349         * modules/signal: Likewise.
76350         * modules/size_max: Likewise.
76351         * modules/socklen: Likewise.
76352         * modules/ssize_t: Likewise.
76353         * modules/stdarg: Likewise.
76354         * modules/stdbool: Likewise.
76355         * modules/stddef: Likewise.
76356         * modules/stdint: Likewise.
76357         * modules/stdio: Likewise.
76358         * modules/stdlib: Likewise.
76359         * modules/string: Likewise.
76360         * modules/strings: Likewise.
76361         * modules/sys_file: Likewise.
76362         * modules/sys_ioctl: Likewise.
76363         * modules/sys_select: Likewise.
76364         * modules/sys_socket: Likewise.
76365         * modules/sys_stat: Likewise.
76366         * modules/sys_time: Likewise.
76367         * modules/sys_times: Likewise.
76368         * modules/sys_utsname: Likewise.
76369         * modules/sys_wait: Likewise.
76370         * modules/sysexits: Likewise.
76371         * modules/time: Likewise.
76372         * modules/times: Likewise.
76373         * modules/tmpfile: Likewise.
76374         * modules/trim: Likewise.
76375         * modules/unistd: Likewise.
76376         * modules/wchar: Likewise.
76377         * modules/wctype: Likewise.
76379 2009-09-17  Bruno Haible  <bruno@clisp.org>
76381         Make getdate.y compile on QNX and NetBSD 5 / i386.
76382         * m4/getdate.m4 (gl_GETDATE): Conditionally define
76383         TIME_T_FITS_IN_LONG_INT.
76384         * lib/getdate.y (long_time_t): New type.
76385         (relative_time): Change type of 'seconds' field to long_time_t.
76386         (get_date): Update types of local variables. Check against overflow
76387         during conversion from long_time_t to time_t.
76388         Reported by Matt Kraai <kraai@ftbfs.org>
76389         and Hasso Tepper <hasso@netbsd.org>.
76391 2009-09-17  Bruno Haible  <bruno@clisp.org>
76393         * modules/COPYING: Update copyright years.
76394         * modules/README: Likeiwse.
76395         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
76396         Reported by Ian Beckwith <ianb@erislabs.net>.
76398 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
76400         * users.txt: Update references for gnuit package.
76402 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
76404         * m4/getdelim.m4: Fix typo in copyright line.
76406 2009-09-17  Bruno Haible  <bruno@clisp.org>
76408         * lib/atoll.c: Use the standard header with GPL copyright.
76409         * lib/argz.in.h: Likewise.
76410         * lib/glob.c: Likewise.
76411         * lib/glob-libc.h: Likewise.
76412         * lib/random_r.c: Likewise.
76413         * lib/siglist.h: Likewise.
76414         * lib/strsignal.c: Likewise.
76415         Reported by Ian Beckwith <ianb@erislabs.net>.
76417 2009-09-17  Eric Blake  <ebb9@byu.net>
76419         rmdir: ensure correct dependency order
76420         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
76422 2009-09-17  Bruno Haible  <bruno@clisp.org>
76424         Disable assertion that fails on NetBSD 5 / i386.
76425         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
76426         Reported by Sam Steingold <sds@gnu.org>
76427         and Hasso Tepper <hasso@netbsd.org>.
76429 2009-09-16  Eric Blake  <ebb9@byu.net>
76431         unlinkdir: port to mingw
76432         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
76433         on which no one can unlink a directory.
76435         stdlib: sort witness names
76436         * modules/stdlib (Makefile.am): Sort replacements.
76437         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
76438         * lib/stdlib.in.h: Likewise.
76440         parse-duration-tests: avoid link failure
76441         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
76442         LIBINTL.
76443         Reported by Tom G. Christensen.
76445         openat-tests: ensure unlinkat behaves like rmdir
76446         * tests/test-rmdir.c (main): Factor guts...
76447         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
76448         * modules/rmdir-tests (Files): Ship new file.
76449         * modules/openat-tests: New test.
76450         * tests/test-unlinkat.c: Likewise.
76452         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
76453         * modules/rmdir-errno (Status, Notice): Now obsolete.
76455         rmdir: work around cygwin 1.5.x and mingw bugs
76456         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
76457         * lib/rmdir.c (rmdir): Work around it.
76458         * modules/rmdir (Status, Notice): No longer obsolete.
76459         (Files): Add dos.m4.
76460         (Depends-on): Add unistd.
76461         (configure.ac): Set witnesses.
76462         (License): Relax to LGPLv2+.
76463         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
76464         * modules/unistd (Makefile.am): Substitute witnesses.
76465         * lib/unistd.in.h (rmdir): Declare replacement.
76466         * doc/posix-functions/rmdir.texi (rmdir): Document this.
76467         * modules/rmdir-tests: New tests.
76468         * tests/test-rmdir.c: Likewise.
76470 2009-09-15  Eric Blake  <ebb9@byu.net>
76472         fchdir: improve use of replacement functions
76473         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
76474         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
76475         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
76476         REPLACE_CLOSEDIR.
76477         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
76478         * modules/sys_stat (Makefile.am): Substitute correct witness.
76479         * modules/dirent (Makefile.am): Likewise.
76480         * modules/unistd (Makefile.am): Likewise.
76481         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
76482         * lib/unistd.in.h (dup): Likewise.
76483         * lib/sys_stat.in.h (fstat): Likewise.
76485         maint: ignore gnulib-tool temp files
76486         * .gitignore: Ignore files created during gnulib-tool --test.
76488 2009-09-13  Jim Meyering  <meyering@redhat.com>
76490         posixtm: don't reject a time that specify "60" as the number of seconds
76491         * lib/posixtm.c (posixtime): The code to reject invalid dates
76492         would also reject a time specified with the .60 suffix.
76493         But POSIX allows that, in order to accommodate leap seconds.
76494         So don't reject it.
76495         (main): Adjust tests accordingly.
76496         * modules/posixtm (Depends-on): Add stpcpy.
76498 2009-09-11  Jim Meyering  <meyering@redhat.com>
76500         announce-gen: include [$release_type] in emitted Subject:
76501         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
76502         e.g., [stable] in the emitted Subject: line.
76504 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76506         Remove obsolete macros from several modules.
76507         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
76508         obsolete Autoconf macros with their modern counterparts.
76509         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
76510         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
76511         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
76512         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
76513         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
76514         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
76515         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
76516         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
76517         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
76518         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
76519         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
76520         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
76521         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
76522         * m4/sockets.m4 (gl_SOCKETS): Likewise.
76523         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
76524         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
76525         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
76526         * m4/time_r.m4 (gl_TIME_R): Likewise.
76527         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
76528         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
76529         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
76531         Fix copyright header in build-aux scripts.
76532         * build-aux/git-version-gen: Fix copyright header to match GPLv3
76533         recommendation.
76534         * build-aux/ncftpput-ftp: Likewise.
76535         * build-aux/update-copyright: Likewise.
76537 2009-09-09  Eric Blake  <ebb9@byu.net>
76539         test-link: allow Linux choice of errno
76540         * tests/test-link.c (main): Relax test for alternate error.
76542         strndup: fix improper m4 caching
76543         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
76544         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
76545         (gl_PREREQ_STRNDUP): Delete.
76546         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
76547         * modules/string (Makefile.am): Substitute it.
76548         * lib/string.in.h (strndup): Modernize prototype.
76550         getcwd: port to mingw
76551         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
76552         different from the POSIX assumptions made throughout the getcwd
76553         module; fortunately, the mingw getcwd does not need replacement.
76554         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
76555         * modules/getcwd-tests: New test.
76556         * tests/test-getcwd.c: Likewise.
76558         link: fix platform bugs
76559         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
76560         * lib/link.c (link): Work around them.  Fix related mingw bug.
76561         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
76562         * modules/unistd (Makefile.am): Substitute it.
76563         * lib/unistd.in.h (link): Declare replacement.
76564         * doc/posix-functions/link.texi (link): Document this.
76565         * modules/link (Depends-on): Add strdup-posix, sys_stat.
76567         test-link: consolidate into single C program, test more cases
76568         * tests/test-link.sh: Delete.
76569         * tests/test-link.c: Test more error conditions.  Exposes bugs on
76570         at least Cygwin and Solaris.
76571         * modules/link-tests (Files): Remove unused file.
76572         (Depends-on): Add errno, sys_stat.
76573         (Makefile.am): Simplify.
76575 2009-09-08  Bruno Haible  <bruno@clisp.org>
76577         Work around towlower, towupper bug on mingw.
76578         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
76579         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
76580         * doc/posix-functions/towlower.texi: Mention the mingw bug.
76581         * doc/posix-functions/towupper.texi: Likewise.
76582         Reported by Eric Blake.
76584 2009-09-08  Jim Meyering  <meyering@redhat.com>
76586         build: don't try to run autoheader if we don't use it
76587         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
76588         is not used in configure.ac.
76590 2009-09-08  Eric Blake  <ebb9@byu.net>
76592         euidaccess: fix compilation error
76593         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
76595         rawmemchr: relax license
76596         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
76597         okay.
76598         Reported by Jim Meyering.
76600         mkfifoat: new module
76601         * modules/mkfifoat: New file.
76602         * lib/mkfifoat.c: Likewise.
76603         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
76604         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
76605         * modules/sys_stat (Makefile.am): Use them.
76606         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
76607         * MODULES.html.sh (File system functions): Mention module.
76608         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
76609         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
76610         * modules/mkfifoat-tests: New test.
76611         * tests/test-mkfifoat.c: Likewise.
76613         strchrnul: relax license
76614         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
76615         okay.
76616         Reported by Jim Meyering.
76618 2009-09-08  Eric Blake  <ebb9@byu.net>
76620         fstatat: fix compilation on Solaris
76621         * lib/fstatat.c (includes): Add fcntl.h.
76622         Reported by Pádraig Brady.
76624 2009-09-07  Eric Blake  <ebb9@byu.net>
76626         rename: modernize replacement
76627         * modules/rename (Depends-on): Add stdio.
76628         (configure.ac): Declare witness.
76629         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
76630         stdio take care of replacement.
76631         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
76632         * modules/stdio (Makefile.am): Substitute them.
76633         * lib/stdio.in.h (rename): Declare replacement.
76634         * lib/rename.c (includes): Allow cross-compilation to non-windows
76635         machines.
76636         * doc/posix-functions/rename.texi (rename): Improve
76637         documentation.
76639         stdio: sort witness names
76640         * modules/stdio (Makefile.am): Sort replacements.
76641         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
76642         * lib/stdio.in.h: Likewise.
76644         getcwd: minor cleanups
76645         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
76646         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
76648         openat: provide more convenience names
76649         * modules/faccessat (configure.ac): Add C witness.
76650         * lib/unistd.in.h (readlinkat): Fix typo.
76651         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
76652         convenience wrappers.
76653         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
76654         wrappers in syntax checks.
76656 2009-09-06  Eric Blake  <ebb9@byu.net>
76658         doc: fix comments in recent patches
76659         * lib/faccessat.c: Mention correct function.
76660         * lib/fchmodat.c: Likewise.
76661         * lib/fchownat.c: Likewise.
76662         * lib/symlinkat.c: Likewise.
76663         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
76664         constants.
76666         faccessat, symlinkat: continue cleanup of previous patch
76667         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
76668         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
76669         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
76670         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
76671         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
76672         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
76673         set.
76675 2009-09-06  Bruno Haible  <bruno@clisp.org>
76677         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
76678         (fstatat): Declare if GNULIB_FSTATAT is set.
76679         (mkdirat): Declare if GNULIB_MKDIRAT is set.
76680         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
76681         (unlinkat): Declare if GNULIB_UNLINKAT is set.
76682         * modules/fcntl-h (Files): Remove m4/openat.m4.
76683         * modules/sys_stat (Files): Remove m4/openat.m4.
76684         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
76685         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
76686         * modules/unistd (Files): Remove m4/openat.m4.
76687         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
76688         GNULIB_OPENAT.
76689         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
76690         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
76691         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
76692         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
76693         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
76694         gl_OPENAT_DEFAULTS.
76695         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
76696         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
76697         Don't require gl_OPENAT_DEFAULTS.
76698         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
76699         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
76700         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
76701         (gl_OPENAT_DEFAULTS): Remove macro.
76703 2009-09-06  Bruno Haible  <bruno@clisp.org>
76705         * modules/openat (configure.ac): Remove unneeded witness.
76707 2009-09-06  Bruno Haible  <bruno@clisp.org>
76709         Set errno to ENOSYS when a function is entirely unsupported.
76710         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
76711         EOPNOTSUPP.
76712         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
76713         * modules/chown (Depends-on): Remove errno.
76715 2009-09-06  Bruno Haible  <bruno@clisp.org>
76717         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
76719 2009-09-06  Bruno Haible  <bruno@clisp.org>
76721         * lib/sys_stat.in.h: Fix preprocessor command indentation.
76723 2009-09-06  Ben Pfaff  <blp@gnu.org>
76724             Bruno Haible  <bruno@clisp.org>
76726         Work around a glibc bug in strtok_r.
76727         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
76728         Undefine if UNDEFINE_STRTOK_R is set.
76729         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
76730         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
76731         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
76732         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
76733         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
76734         UNDEFINE_STRTOK_R.
76735         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
76737 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
76739         exclude: minor fix
76740         * lib/exclude.c: Include wctype.h
76742 2009-09-06  Akim Demaille  <demaille@gostai.com>
76744         bootstrap: improve error message
76745         * build-aux/bootstrap (find_tool): Upon failure, report the list
76746         of candidates.
76747         Honor the initial value of the envvar.
76749 2009-09-05  Eric Blake  <ebb9@byu.net>
76751         symlinkat: new module
76752         * modules/symlinkat: New file.
76753         * lib/symlinkat.c: Likewise.
76754         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
76755         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
76756         * modules/unistd (Makefile.am): Use them.
76757         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
76758         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
76759         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
76760         * MODULES.html.sh (File system functions): Mention module.
76761         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
76762         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
76763         * modules/symlinkat-tests: New test.
76764         * tests/test-symlinkat.c: Likewise.
76766         test-openat-safer: add more checks
76767         * tests/test-openat-safer.c (main): Check more code paths.
76769 2009-09-05  Jim Meyering  <meyering@redhat.com>
76771         syntax-check: detect unnecessary inclusion of openat.h
76772         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
76774 2009-09-05  Bruno Haible  <bruno@clisp.org>
76776         Support towlower, towupper.
76777         * doc/posix-functions/towlower.texi: Mention module wctype.
76778         * doc/posix-functions/towupper.texi: Likewise.
76779         * lib/wctype.in.h (towlower, towupper): New functions.
76780         * tests/test-wctype.c: Include stdio.h, stdlib.h.
76781         (ASSERT): New macro.
76782         (e): New variable.
76783         (main): Test also towlower, towupper. Test WEOF argument.
76784         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
76786 2009-09-05  Bruno Haible  <bruno@clisp.org>
76788         Fix conversion behaviour when the input is invalid.
76789         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
76790         mark occurring in first pass of indirect conversion.
76791         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
76792         input.
76793         Found by clang's static analyzer.
76795 2009-09-05  Bruno Haible  <bruno@clisp.org>
76797         * tests/test-striconveh.c (main): Test indirect conversion on platforms
76798         where direct conversion is possible.
76800 2009-09-04  Eric Blake  <ebb9@byu.net>
76802         openat: fail with ENOENT on empty name
76803         * lib/openat-proc.c (openat_proc_name): Special-case the empty
76804         buffer.
76806         link-follow: fix logic bug in prior patch
76807         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
76808         reversed sense of yes and no in prior patch.  Avoid confusing
76809         compilation failure with desired semantics.
76811         link-follow: accommodate mingw and cross-compilation
76812         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
76813         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
76814         cross-compilation results to -1, to make linkat easier to
76815         implement when cross-compiling.  Trivially support mingw.
76816         * modules/link-follow (configure.ac): Call new name.
76817         * NEWS: Mention this.
76819 2009-09-03  Eric Blake  <ebb9@byu.net>
76821         faccessat: compile replacement
76822         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
76823         needed.
76825         fts: fix compilation error
76826         * lib/fts.c (includes): Re-add "openat.h", for
76827         openat_needs_fchdir.
76829         faccessat: new module
76830         * modules/faccessat: New file.
76831         * lib/faccessat.c: Likewise.
76832         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
76833         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
76834         * modules/unistd (Makefile.am): Use it.
76835         * lib/unistd.in.h (faccessat): Declare it.
76836         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
76837         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
76838         * MODULES.html.sh (File system functions): Mention it.
76839         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
76840         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
76842         euidaccess: prefer POSIX over non-standard implementation
76843         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
76844         * lib/euidaccess.c (euidaccess): Use it if available.
76846         openat: make template easier to use
76847         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
76848         AT_FUNC_F2 to be undefined.
76849         (VALIDATE_FLAG): New macro; use it to reject bad flags.
76850         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
76851         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
76852         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
76853         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
76854         Likewise.
76855         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
76856         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
76857         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
76858         Likewise.
76860         openat: declare in POSIX headers
76861         * NEWS: Mention this.
76862         * modules/openat (configure.ac): Declare witnesses.
76863         (Depends-on): Add fcntl-h, sys_stat, unistd.
76864         (Include): Mention correct headers.
76865         * modules/fcntl-h (Depends-on): Add link-warning.
76866         (Files): Add openat.m4.
76867         (Makefile.am): Substitute witnesses.
76868         * modules/sys_stat (Files, Makefile.am): Likewise.
76869         * modules/unistd (Files, Makefile.am): Likewise.
76870         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
76871         (gl_OPENAT_DEFAULTS): New macro.
76872         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
76873         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
76874         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
76875         (SYS_STAT_H): Remove unused variable.
76876         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
76877         * lib/fcntl--.h (includes): Remove unneeded header.
76878         * lib/openat-safer.c (includes): Likewise.
76879         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
76880         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
76881         appropriate headers.
76882         (__OPENAT_PREFIX): Delete.
76883         * lib/fcntl.in.h (openat): Provide declaration.
76884         (AT_FDCWD): Fix Solaris bug.
76885         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
76886         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
76887         * lib/fchmodat.c (includes):  Adjust to find declaration.
76888         * lib/fchownat.c (includes): Likewise.
76889         * lib/mkdirat.c (includes): Likewise.
76890         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
76891         still visible.
76893 2009-09-02  Eric Blake  <ebb9@byu.net>
76895         errno: use consistently
76896         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
76897         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
76898         * lib/canonicalize.c (ELOOP): Likewise.
76899         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
76900         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
76901         * lib/lchown.c (EOPNOTSUPP): Likewise.
76902         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
76903         * lib/savewd.c (ESTALE): Likewise.
76904         * lib/settime.c (ENOSYS): Likewise.
76905         * lib/utimens.c (ENOSYS): Likewise.
76906         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
76907         * lib/chdir-safer.c (ELOOP): Likewise.
76908         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
76909         * modules/c-stack (Depends-on): Add errno.
76910         * modules/canonicalize (Depends-on): Likewise.
76911         * modules/chdir-safer (Depends-on): Likewise.
76912         * modules/fdopendir (Depends-on): Likewise.
76913         * modules/inet_ntop (Depends-on): Likewise.
76914         * modules/inet_pton (Depends-on): Likewise.
76915         * modules/lchown (Depends-on): Likewise.
76916         * modules/openat (Depends-on): Likewise.
76917         * modules/savewd (Depends-on): Likewise.
76918         * modules/settime (Depends-on): Likewise.
76919         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
76921         fts: avoid leaking fds
76922         * modules/fts (Depends-on): Add cloexec.
76923         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
76924         flag.
76926         fts: make directory fds more robust
76927         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
76928         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
76930         backupfile, chdir-long, fts, savedir: make safer
76931         * lib/backupfile.c (includes): Use "dirent--.h", since
76932         numbered_backup can write to stderr during readdir.
76933         * lib/savedir.c (includes): Likewise.
76934         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
76935         emulation can write to stderr on failure.
76936         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
76937         * lib/getcwd.c: Document why opendir_safer is unused.
76938         * lib/glob.c: Likewise.
76939         * lib/scandir.c: Likewise.
76940         * lib/openat-proc.c: Likewise, for open_safer.
76941         * modules/backupfile (Depends-on): Add dirent-safer.
76942         * modules/savedir (Depends-on): Likewise.
76943         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
76944         * modules/chdir-long (Depends-on): Add openat-safer.
76946         openat-safer: new module
76947         * modules/openat-safer: New file.
76948         * lib/openat-safer.c: Likewise.
76949         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
76950         * lib/fcntl-safer.h (openat_safer): Declare.
76951         * lib/fcntl--.h (openat): Override.
76952         * MODULES.html.sh (File descriptor based I/O): Mention it.
76953         * lib/openat.h: Add double-inclusion guards.
76954         * lib/openat.c (includes): Only include "fcntl-safer.h", not
76955         "fcntl--.h", so we can implement openat.
76956         * modules/openat-safer-tests: New test.
76957         * tests/test-openat-safer.c: New file.
76959         dirent-safer: new module
76960         * modules/dirent-safer: New file.
76961         * lib/dirent--.h: Likewise.
76962         * lib/dirent-safer.h: Likewise.
76963         * lib/opendir-safer.c: Likewise.
76964         * m4/dirent-safer.m4: Likewise.
76965         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
76966         * modules/dirent-safer-tests: New test.
76967         * tests/test-dirent-safer.c: New file.
76968         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
76970         fdopendir: optimize on mingw
76971         * lib/unistd.in.h (_gl_directory_name): New prototype.
76972         * lib/fchdir.c (_gl_directory_name): Implement it.
76973         (fchdir): Use it to simplify implementation.
76974         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
76975         fchdir, when available, to avoid calling [f]chdir().
76977         fdopendir: split into its own module
76978         * lib/openat.c (fdopendir): Move...
76979         * lib/fdopendir.c: ...into new file.
76980         * modules/fdopendir: New module.
76981         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
76982         * modules/openat (Depends-on): Add fdopendir.
76983         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
76984         fdopendir here.
76985         * modules/savedir (Depends-on): Only need fdopendir, not full
76986         openat.
76987         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
76988         * lib/openat.h (fdopendir): Drop prototype.
76989         * lib/dirent.in.h (fdopendir): Provide prototype.
76990         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
76991         * modules/dirent (Makefile.am): Substitute them.
76992         * MODULES.html.sh (File system functions): Mention it.
76993         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
76994         * modules/fdopendir-tests: New file.
76995         * tests/test-fdopendir.c: Likewise.
76997         fchdir: use more consistent macro convention
76998         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
76999         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
77000         REPLACE_FCHDIR, rather than relying on config.h macros.
77001         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
77002         inside a single make-time REPLACE_FCHDIR block, rather than using
77003         the config.h FCHDIR_REPLACEMENT.
77004         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
77005         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
77006         Manage fstat replacement.
77007         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
77008         REPLACE_FCHDIR.
77009         * modules/sys_stat (Files): Add m4/unistd_h.m4.
77010         (Makefile.am): Substitute REPLACE_FCHDIR.
77011         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
77012         FCHDIR_REPLACEMENT.
77013         * lib/dup-safer.c (dup_safer): Likewise.
77014         * lib/dup2.c (rpl_dup2): Likewise.
77015         * lib/dup3.c (rpl_dup3): Likewise.
77016         * lib/open.c (rpl_open): Likewise.
77018         fchdir: simplify error handling, and support dup3
77019         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
77020         stdbool, malloc-posix, realloc-posix.
77021         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
77022         (ensure_dirs_slot): Return false on allocation failure.
77023         (rpl_dup2): Delete.
77024         (_gl_register_dup): New function.
77025         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
77026         (_gl_register_fd): Close fd on allocation failure.
77027         * lib/fcntl.in.h (_gl_register_fd): Update signature.
77028         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
77029         prototype.
77030         (rpl_dup2_fchdir): Delete prototype.
77031         * lib/open.c (open): Update caller.
77032         * lib/dup2.c (dup2): Track fchdir metadata.
77033         * lib/dup3.c (dup3): Likewise.
77034         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
77035         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
77037 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77039         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
77040         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
77041         don't pass arguments to AC_OUTPUT.
77043 2009-09-02  Bruno Haible  <bruno@clisp.org>
77045         * modules/mkdtemp (License): Relicense under LGPLv2+.
77046         Reported by Paolo Bonzini.
77048 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77050         Replace uses of obsolete autoconf macros in Jim's modules.
77051         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
77052         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
77053         can evoke a warning from autoconf when run with -Wobsolete
77054         enabled.  They were declared obsolete for good reasons (see
77055         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
77056         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
77057         should not continue using the deprecated macros.
77058         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
77059         obsolete Autoconf macros with modern counterparts.
77060         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
77061         * m4/dos.m4 (gl_AC_DOS): Likewise.
77062         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
77063         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
77064         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
77065         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
77066         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
77067         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
77068         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
77069         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
77070         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
77071         Likewise.
77072         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
77073         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
77074         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
77075         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
77076         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
77077         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
77079 2009-09-01  Eric Blake  <ebb9@byu.net>
77081         fchdir: fix off-by-one bug in previous patch
77082         * lib/fchdir.c (rpl_fstat): Use correct bounds.
77083         (_gl_unregister_fd): Delete useless if.
77085 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
77087         maint.mk: sort the list of syntax-check rules
77088         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
77089         easier to get a sense of progress when the rules are run sequentially
77090         and take a long time.
77092 2009-09-01  Simon Josefsson  <simon@josefsson.org>
77094         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
77095         * modules/netinet_in: Likewise.
77096         * modules/sys_file: Likewise.
77097         * modules/sys_ioctl: Likewise.
77098         * modules/sys_select: Likewise.
77099         * modules/sys_socket: Likewise.
77100         * modules/sys_stat: Likewise.
77101         * modules/sys_time: Likewise.
77102         * modules/sys_times: Likewise.
77103         * modules/sys_utsname: Likewise.
77104         * modules/sys_wait: Likewise.
77106 2009-09-01  Jim Meyering  <meyering@redhat.com>
77108         fts: help ensure that return values are not ignored
77109         * lib/fts_.h (__GNUC_PREREQ): Define.
77110         (__attribute_warn_unused_result__): Define.
77111         (fts_children, fts_close, fts_open, fts_read): Declare with
77112         __attribute_warn_unused_result__.
77114         fts: fts_close now fails also when closing a dir file descriptor fails
77115         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
77116         and propagate to caller, along with errno.
77118         announce-gen: correct formatting in --help output
77119         * build-aux/announce-gen (usage): Move the one-line description in
77120         --help output "up", to where it belongs, just after Usage:.
77122 2009-08-31  Eric Blake  <ebb9@byu.net>
77124         fchdir: port to mingw
77125         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
77126         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
77127         opened, then use a substitute.
77128         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
77129         replacement.
77130         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
77131         (_gl_register_fd): No need to check stat if open already filters
77132         all directories.
77133         (fchdir): Fix error condition to match POSIX.
77134         * modules/fchdir (Depends-on): Add sys_stat.
77135         * doc/posix-functions/open.texi (open): Document the limitation.
77136         * modules/fchdir-tests: New file.
77137         * tests/test-fchdir.c: Likewise.
77139         canonicalize: allow cross-testing from cygwin to mingw
77140         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
77141         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
77142         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
77143         Likewise.
77144         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
77145         target does not support symlinks.
77146         * tests/test-canonicalize-lgpl.sh: Likewise.
77148         chown: avoid compilation warning on mingw
77149         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
77150         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
77151         mingw.
77152         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
77153         * modules/chown (Depends-on): Add errno.
77155 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
77157         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
77158         command.
77160 2009-08-31  Jim Meyering  <meyering@redhat.com>
77162         canonicalize: remove useless initialization
77163         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
77164         initialization of local, "end".
77166 2009-08-30  Bruno Haible  <bruno@clisp.org>
77168         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
77169         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
77170         ENOSYS.
77172 2009-08-30  Bruno Haible  <bruno@clisp.org>
77174         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
77175         /usr/xpg4/bin/tr when it exists.
77176         * tests/test-pipe-filter-gi1.sh: Likewise.
77178 2009-08-30  Bruno Haible  <bruno@clisp.org>
77180         Work around deficient /usr/bin/id program on Solaris.
77181         * tests/test-file-has-acl.sh (ID): New variable.
77182         * tests/test-set-mode-acl.sh (ID): Likewise.
77183         * tests/test-copy-acl.sh (ID): Likewise.
77184         * tests/test-copy-file.sh (ID): Likewise.
77186 2009-08-30  Bruno Haible  <bruno@clisp.org>
77188         New module 'xstriconveh'.
77189         * lib/xstriconveh.h: New file.
77190         * lib/xstriconveh.c: New file.
77191         * modules/xstriconveh: New file.
77193 2009-08-30  Bruno Haible  <bruno@clisp.org>
77195         Make it easier to use mem_cd_iconveh.
77196         * lib/striconveh.h (iconveh_t): New type.
77197         (iconveh_open, iconveh_close): New declarations.
77198         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
77199         with a single 'const iconveh_t *' argument.
77200         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
77201         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
77202         with a single 'const iconveh_t *' argument.
77203         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
77204         * tests/test-striconveh.c (main): Update.
77205         * NEWS: Mention the change.
77207 2009-08-30  Bruno Haible  <bruno@clisp.org>
77209         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
77210         problem.
77212 2009-08-30  Bruno Haible  <bruno@clisp.org>
77214         Work around iconv_open problem on Solaris.
77215         * lib/iconv_open-solaris.gperf: New file.
77216         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
77217         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
77218         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
77219         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
77220         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
77221         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
77223 2009-08-29  Jim Meyering  <meyering@redhat.com>
77225         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
77226         * top/maint.mk (cvs-check): Remove target; it was just an alias
77227         to the better-named vc-diff-check.
77228         (maintainer-distcheck): Remove rule.  It was used only from
77229         the (alpha/beta/major) target, and all of its commands but one
77230         were coreutils-specific.
77231         (vc-dist): Remove rule.
77232         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
77233         Run vc-diff-check, not vc-dist.
77234         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
77236 2009-08-27  Bruno Haible  <bruno@clisp.org>
77238         * tests/test-bitrotate.c (main): Remove test that uses a shift count
77239         of 0.
77241 2009-08-27  Bruno Haible  <bruno@clisp.org>
77243         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
77244         compilers.
77245         * doc/func.texi: Document the SunPRO C bug.
77247 2009-08-27  Bruno Haible  <bruno@clisp.org>
77249         Fix link error on Solaris.
77250         * tests/test-parse-duration.c (xstrdup): Remove function.
77252 2009-08-26  Pádraig Brady  <P@draigbrady.com>
77254         ignore-value: handle pointer types, too
77255         * lib/ignore-value.h (__attribute__): Remove definition.
77256         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
77257         of a more concise and more-often effective "(void) i" statement.
77258         (ignore_ptr): New function to suppress warnings from functions that
77259         return pointers, and to make it explicit that one function doesn't
77260         handle all cases.
77262 2009-08-25  Bruno Haible  <bruno@clisp.org>
77264         dup2: work around a Linux bug.
77265         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
77266         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
77267         * doc/posix-functions/dup2.texi: Mention the Linux bug.
77268         Reported by Simon Josefsson.
77270 2009-08-25  Jim Meyering  <meyering@redhat.com>
77272         libguestfs uses gnulib
77273         * users.txt: Add libguestfs.
77275 2009-08-24  Eric Blake  <ebb9@byu.net>
77277         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
77278         * lib/pipe2.c (includes): Add binary-io.h.
77279         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
77281 2009-08-24  Bruno Haible  <bruno@clisp.org>
77283         Tolerate declared but missing accept4 syscall.
77284         * lib/accept4.c (accept4): Invoke original accept4 function first, if
77285         available.
77286         * lib/sys_socket.in.h (accept4): If the function is already present,
77287         override it.
77288         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
77289         * modules/accept4 (Makefile.am): Compile accept4.c always.
77290         Reported by Paolo Bonzini and Eric Blake.
77292 2009-08-23  Bruno Haible  <bruno@clisp.org>
77294         New module 'accept4'.
77295         * lib/sys_socket.in.h (accept4): New declaration.
77296         * lib/accept4.c: New file.
77297         * m4/accept4.m4: New file.
77298         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
77299         GNULIB_ACCEPT4, HAVE_ACCEPT4.
77300         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
77301         HAVE_ACCEPT4.
77302         * modules/accept4: New file.
77303         * doc/glibc-functions/accept4.texi: Mention the new module.
77305 2009-08-24  Jim Meyering  <meyering@redhat.com>
77307         progname: also set global program_invocation_name, when possible
77308         Before this change, a libtool-enabled program that calls glibc's
77309         error function would report the program name as
77310         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
77311         * modules/progname (configure.ac): Check for a declaration of
77312         program_invocation_name.
77313         * lib/progname.c:  Include <errno.h>.
77314         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
77315         Set program_invocation_name.
77317 2009-08-23  Bruno Haible  <bruno@clisp.org>
77319         * lib/dup3.c: Include <string.h>.
77321 2009-08-23  Bruno Haible  <bruno@clisp.org>
77323         * lib/dup3.c (dup3): Test only once whether the system actually exists.
77324         * lib/pipe2.c (pipe2): Likewise.
77325         Suggested by Eric Blake.
77327 2009-08-23  Bruno Haible  <bruno@clisp.org>
77329         Tolerate declared but missing dup3 syscall.
77330         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
77331         * lib/unistd.in.h (dup3): If the function is already present,
77332         override it.
77333         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
77334         * modules/dup3 (Makefile.am): Compile dup3.c always.
77335         Reported by Paolo Bonzini.
77337 2009-08-23  Bruno Haible  <bruno@clisp.org>
77339         Tolerate declared but missing pipe2 syscall.
77340         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
77341         available.
77342         * lib/unistd.in.h (pipe2): If the function is already present,
77343         override it.
77344         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
77345         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
77346         Reported by Paolo Bonzini.
77348 2009-08-23  Bruno Haible  <bruno@clisp.org>
77350         * lib/pipe2.c (pipe2): Move #ifs inside function.
77352 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
77354         quotearg: document limitations of quote_these_too
77355         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
77356         those limitations are created.
77357         * lib/quotearg.h (set_char_quoting): Document that digits and
77358         letters that are special after backslash are not permitted.
77359         (quotearg_char): Cross-reference set_char_quoting documentation.
77361 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
77363         quotearg: implement custom_quoting_style
77364         * lib/quotearg.c: (struct quoting_options): Add left_quote and
77365         right_quote fields.
77366         (set_custom_quoting): New public function.
77367         (quotearg_buffer_restyled): Add left_quote and right_quote
77368         arguments, handle them very much like locale quoting, and update
77369         all uses.
77370         (quotearg_n_custom): New public function.
77371         (quotearg_n_custom_mem): New public function.
77372         (quotearg_custom): New public function.
77373         (quotearg_custom_mem): New public function.
77374         * lib/quotearg.h: Prototype and document new public functions.
77375         (enum quoting_style): For escape_quoting_style and
77376         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
77377         ignored even though they're otherwise like c_quoting_style.
77378         Add custom_quoting_style member and document with comparison to
77379         clocale_quoting_style.
77380         * tests/test-quotearg.c (custom_quotes): New array.
77381         (custom_results): New array.
77382         (main): Extend to test custom quoting.
77384 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
77386         quotearg: fix right quote escaping when it's in quote_these_too
77387         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
77388         quote, be sure to prepend only one backslash.
77389         * tests/test-quotearg.c (use_quote_double_quotes): New function.
77390         (main): Test it.
77392 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
77394         quotearg-tests: test escaping of embedded locale quotes
77395         * tests/test-quotearg.c (struct result_strings): Add member for
77396         new input.
77397         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
77398         (inputs): Add new input.
77399         (results_g): Add expected results.
77400         (flag_results): Likewise.
77401         (locale_results): Likewise.
77402         (compare_strings): Check those.
77404 2009-08-23  Bruno Haible  <bruno@clisp.org>
77406         Tests for module 'dup3'.
77407         * modules/dup3-tests: New file.
77408         * tests/test-dup3.c: New file.
77410         New module 'dup3'.
77411         * lib/unistd.in.h (dup3): New declaration.
77412         * lib/dup3.c: New file.
77413         * m4/dup3.m4: New file.
77414         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
77415         HAVE_DUP3.
77416         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
77417         * modules/dup3: New file.
77418         * doc/glibc-functions/dup3.texi: Mention the new module.
77420 2009-08-23  Bruno Haible  <bruno@clisp.org>
77422         Tweak the dup2 test.
77423         * tests/test-dup2.c (main): Create the test file empty. Verify that an
77424         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
77425         the test file is still empty. Fix argument order of lseek.
77427 2009-08-23  Bruno Haible  <bruno@clisp.org>
77429         Avoid test link errors when the modules getopt-gnu, gettext are used.
77430         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
77431         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
77433 2009-08-23  Bruno Haible  <bruno@clisp.org>
77435         Fix getdtablesize() on mingw.
77436         * lib/getdtablesize.c (getdtablesize): Implement differently.
77437         * lib/unistd.in.h (getdtablesize): Improve comment.
77439 2009-08-23  Bruno Haible  <bruno@clisp.org>
77441         New module 'mkostemp'.
77442         Based on Ulrich Drepper's 2007-08-10 change in glibc.
77443         * lib/stdlib.in.h (mksotemp): New declaration.
77444         * lib/mkostemp.c: New file, from glibc with modifications.
77445         * lib/tempname.h (GT_FILE): Remove outdated comment.
77446         (gen_tempname): Add flags argument.
77447         * lib/tempname.c (__GT_BIGFILE): Remove macro.
77448         (__GT_FILE): Map to 1.
77449         (small_open, large_open): Remove macros.
77450         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
77451         * lib/mkstemp.c (mkstemp): Update.
77452         * lib/mkdtemp.c (mkdtemp): Likewise.
77453         * m4/mkostemp.m4: New file.
77454         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
77455         HAVE_MKOSTEMP.
77456         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
77457         HAVE_MKOSTEMP.
77458         * modules/mkostemp: New file, based on modules/mkstemp.
77459         * doc/glibc-functions/mkostemp.texi: Mention the new module.
77460         * NEWS: Mention the change.
77462 2009-08-23  Bruno Haible  <bruno@clisp.org>
77464         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
77465         Reported by Eric Blake.
77467 2009-08-23  Bruno Haible  <bruno@clisp.org>
77469         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
77470         Reported by Eric Blake.
77472 2009-08-23  Bruno Haible  <bruno@clisp.org>
77474         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
77475         * modules/pipe2 (Depends-on): Likewise.
77477 2009-08-23  Eric Blake  <ebb9@byu.net>
77479         fcntl-h: add O_TTY_INIT support
77480         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
77481         * tests/test-fcntl-h.c (o): Test it.
77482         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
77484         fcntl-h: rename from fcntl, in preparation for fcntl(2)
77485         * modules/fcntl: Move <fcntl.h> header replacement...
77486         * modules/fcntl-h: ...to new name, so as not to collide with
77487         like-named function.
77488         * tests/test-fcntl.c: Rename...
77489         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
77490         * modules/fcntl-tests: Rename...
77491         * modules/fcntl-h-tests: ...to this.  Update test file name.
77492         * modules/chdir-long (Depends-on): Update clients.
77493         * modules/chdir-safer (Depends-on): Likewise.
77494         * modules/fcntl-safer (Depends-on): Likewise.
77495         * modules/fts (Depends-on): Likewise.
77496         * modules/mkancesdirs (Depends-on): Likewise.
77497         * modules/mkdir-p (Depends-on): Likewise.
77498         * modules/open (Depends-on): Likewise.
77499         * modules/savewd (Depends-on): Likewise.
77500         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
77501         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
77503 2009-08-22  Bruno Haible  <bruno@clisp.org>
77505         * modules/binary-io (License): Relicense under LGPL.
77506         * modules/pipe2 (License): Likewise.
77508 2009-08-22  Bruno Haible  <bruno@clisp.org>
77510         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
77511         return value.
77512         * lib/pipe-filter-gi.c (filter_init): Likewise.
77513         Reported by Eric Blake.
77515 2009-08-22  Bruno Haible  <bruno@clisp.org>
77517         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
77518         * modules/pipe (Depends-on): Add pipe2.
77520 2009-08-22  Bruno Haible  <bruno@clisp.org>
77522         Tests for module 'pipe2'.
77523         * modules/pipe2-tests: New file.
77524         * tests/test-pipe2.c: New file.
77526         New module 'pipe2'.
77527         * lib/unistd.in.h (pipe2): New declaration.
77528         * lib/pipe2.c: New file.
77529         * m4/pipe2.m4: New file.
77530         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
77531         HAVE_PIPE2.
77532         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
77533         * modules/pipe2: New file.
77534         * doc/glibc-functions/pipe2.texi: Mention the new module.
77536 2009-08-22  Bruno Haible  <bruno@clisp.org>
77538         Reference some new glibc functions.
77539         * doc/glibc-functions/accept4.texi: New file.
77540         * doc/glibc-functions/dup3.texi: New file.
77541         * doc/glibc-functions/mkostemp.texi: New file.
77542         * doc/glibc-functions/pipe2.texi: New file.
77543         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
77544         (Glibc sys/socket.h): Refer to accept4.
77545         (Glibc unistd.h): Refer to dup3, pipe2.
77546         Reported by Eric Blake.
77548 2009-08-22  Jim Meyering  <meyering@redhat.com>
77549             Bruno Haible  <bruno@clisp.org>
77551         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
77552         This makes it so packages using automake-1.11's silent-rules option
77553         can print e.g., a single "GEN    configmake.h" line, rather than
77554         the 30+ statements that perform the job.  If you want to see the
77555         actual commands, you can still run "make V=1".
77556         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
77557         so that make output is abbreviated when those variables are defined
77558         appropriately.
77559         * modules/argz: Likewise.
77560         * modules/arpa_inet: Likewise.
77561         * modules/byteswap: Likewise.
77562         * modules/configmake: Likewise.
77563         * modules/dirent: Likewise.
77564         * modules/errno: Likewise.
77565         * modules/fcntl: Likewise.
77566         * modules/float: Likewise.
77567         * modules/fnmatch: Likewise.
77568         * modules/getopt-posix: Likewise.
77569         * modules/glob: Likewise.
77570         * modules/iconv_open: Likewise.
77571         * modules/inttypes: Likewise.
77572         * modules/localcharset: Likewise.
77573         * modules/locale: Likewise.
77574         * modules/math: Likewise.
77575         * modules/netdb: Likewise.
77576         * modules/netinet_in: Likewise.
77577         * modules/poll: Likewise.
77578         * modules/posix_spawnp-tests: Likewise.
77579         * modules/sched: Likewise.
77580         * modules/search: Likewise.
77581         * modules/selinux-h: Likewise.
77582         * modules/signal: Likewise.
77583         * modules/spawn: Likewise.
77584         * modules/stdarg: Likewise.
77585         * modules/stdbool: Likewise.
77586         * modules/stddef: Likewise.
77587         * modules/stdint: Likewise.
77588         * modules/stdio: Likewise.
77589         * modules/stdlib: Likewise.
77590         * modules/string: Likewise.
77591         * modules/strings: Likewise.
77592         * modules/sys_file: Likewise.
77593         * modules/sys_ioctl: Likewise.
77594         * modules/sys_select: Likewise.
77595         * modules/sys_socket: Likewise.
77596         * modules/sys_stat: Likewise.
77597         * modules/sys_time: Likewise.
77598         * modules/sys_times: Likewise.
77599         * modules/sys_utsname: Likewise.
77600         * modules/sys_wait: Likewise.
77601         * modules/sysexits: Likewise.
77602         * modules/time: Likewise.
77603         * modules/unistd: Likewise.
77604         * modules/wchar: Likewise.
77605         * modules/wctype: Likewise.
77607 2009-08-22  Jim Meyering  <meyering@redhat.com>
77609         announce-gen: detect write failure
77610         * build-aux/announce-gen: Add Coda at end.
77611         Remove equivalent-but-more-verbose block at top.
77613 2009-08-19  Akim Demaille  <demaille@gostai.com>
77615         bootstrap: --help to stdout.
77616         * bootstrap (usage): Don't send --help to stderr.
77617         Use a here doc instead of a long string.
77619 2009-08-21  Eric Blake  <ebb9@byu.net>
77621         test-popen-safer: split from test-popen
77622         * tests/test-popen.c (main): Move...
77623         * tests/test-popen.h: ...into new file.
77624         * tests/test-popen-safer2.c: New file.
77625         * modules/popen-tests (Files): Add test-popen.h.
77626         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
77627         Suggested by Bruno Haible.
77629         test-fcntl-safer: split from test-open
77630         * tests/test-open.c (main): Move...
77631         * tests/test-open.h: ...into new file.
77632         * tests/test-fcntl-safer.c: New file.
77633         * modules/open-tests (Files): Add test-open.h.
77634         * modules/fcntl-safer-tests: New file.
77635         Suggested by Bruno Haible.
77637         test-fopen-safer: split from test-fopen
77638         * tests/test-fopen.c (main): Move...
77639         * tests/test-fopen.h: ...into new file.
77640         * tests/test-fopen-safer.c: New file.
77641         * modules/fopen-tests (Files): Add test-fopen.h.
77642         * modules/fopen-safer-tests: New file.
77643         Suggested by Bruno Haible.
77645 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
77647         popen-safer: test O_CLOEXEC at run-time.
77648         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
77650 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
77652         fcntl: move more flags to the header
77653         * lib/cloexec.c: Do not define FD_CLOEXEC here.
77654         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
77655         * lib/fcntl.in.h: Do both things here.
77657 2009-08-21  Jim Meyering  <meyering@redhat.com>
77659         consistently remove $@-t before redirecting to it
77660         * modules/argz: Remove $@-t and $@ before redirecting to the former.
77661         * modules/alloca-opt: Likewise.
77662         * modules/byteswap: Likewise.
77663         * modules/fnmatch: Likewise.
77664         * modules/getopt-posix: Likewise.
77665         * modules/glob: Likewise.
77666         * modules/poll: Likewise.
77667         * modules/posix_spawnp-tests: Likewise.
77668         * modules/sys_socket: Likewise.
77669         * modules/sysexits: Likewise.
77671 2009-08-21  Eric Blake  <ebb9@byu.net>
77673         popen: simplify access to original popen
77674         * lib/popen.c (rpl_popen): No need to worry about popen being a
77675         macro.
77676         Reported by Bruno Haible.
77678 2009-08-20  Eric Blake  <ebb9@byu.net>
77680         build: avoid some compiler warnings
77681         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
77682         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
77683         type.
77684         (new_exclude_segment, excluded_file_pattern_p)
77685         (excluded_file_name_p): Reduce scope.
77686         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
77687         old-style declaration.
77689 2009-08-20  Simon Josefsson  <simon@josefsson.org>
77691         * tests/test-exclude1.sh: Handle Windows EOL.
77692         * tests/test-exclude2.sh: Likewise.
77693         * tests/test-exclude3.sh: Likewise.
77694         * tests/test-exclude4.sh: Likewise.
77695         * tests/test-exclude5.sh: Likewise.
77696         * tests/test-exclude6.sh: Likewise.
77697         * tests/test-exclude7.sh: Likewise.
77699 2009-08-19  Akim Demaille  <demaille@gostai.com>
77701         bootstrap: find sha1sum when named gsha1sum.
77702         * bootstrap (find_tool): New.
77703         ($SHA1SUM): New.
77704         Use it.
77706 2009-08-20  Jim Meyering  <meyering@redhat.com>
77708         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
77709         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
77710         expression that converts "." in a file name to "\." in the resulting
77711         regexp.  Start with a dummy statement, so that prior shell variable
77712         definitions are expanded portably.  Reported by Simon Josefsson.
77714 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
77716         Fix polling for writeability of a screen buffer.
77717         * lib/poll.c: Distinguish input and screen buffers for the
77718         Win32 implementation.
77719         * lib/select.c: Likewise.
77721 2009-08-19  Eric Blake  <ebb9@byu.net>
77723         popen-safer: prevent popen from clobbering std descriptors
77724         * modules/popen-safer: New file.
77725         * lib/popen-safer.c: Likewise.
77726         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
77727         * lib/stdio--.h (popen): Provide override.
77728         * lib/stdio-safer.h (popen_safer): Provide declaration.
77729         * tests/test-popen.c (includes): Partially test this.
77730         * modules/popen-safer-tests: New file, for more tests.
77731         * tests/test-popen-safer.c: Likewise.
77732         * MODULES.html.sh (file stream based Input/Output): Mention it.
77734         tests: test some of the *-safer modules
77735         * modules/fopen-safer (Depends-on): Add fopen.
77736         * modules/fcntl-safer (Depends-on): Add fcntl.
77737         * modules/stdlib-safer (Depends-on): Add stdlib.
77738         (configure.ac): Set indicator.
77739         * modules/unistd-safer (configure.ac): Likewise.
77740         * modules/tmpfile-safer (configure.ac): Likewise.
77741         (Depends-on): Add tmpfile.
77742         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
77743         active.
77744         * tests/test-fopen.c (includes): Test safer versions when they are
77745         in use.
77746         * tests/test-open.c (includes): Likewise.
77748         popen: fix cygwin 1.5 bug when stdin closed
77749         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
77750         * modules/popen: New file.
77751         * modules/popen-tests: Likewise.
77752         * tests/test-popen.c: Likewise.
77753         * m4/popen.m4: Likewise.
77754         * lib/popen.c: Likewise.
77755         * lib/stdio.in.h (popen): New declaration.
77756         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
77757         * modules/stdio (Makefile.am): Likewise.
77758         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
77760 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
77762         maint.mk: give full control over update-copyright exclusions
77763         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
77764         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
77765         (update-copyright): Don't force inclusion of top-level
77766         ChangeLog.  Don't force exclusion of all COPYING files, but make
77767         them the default exclusion instead.
77769 2009-08-16  Bruno Haible  <bruno@clisp.org>
77771         Fix test failures on Solaris 10.
77772         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
77773         tests when Solaris iconv() is used.
77774         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
77775         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
77776         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
77777         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
77778         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
77780 2009-08-16  Bruno Haible  <bruno@clisp.org>
77782         Fix test failures on Solaris 10.
77783         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
77784         'tr' program and pass it as first argument.
77785         * tests/test-pipe-filter-gi1.sh: Likewise.
77786         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
77787         program as first argument.
77788         * tests/test-pipe-filter-gi1.c (main): Likewise.
77790 2009-08-16  Eric Blake  <ebb9@byu.net>
77792         fpurge: fix previous commits
77793         * modules/fpurge (Makefile.am): Make replacement conditional,
77794         partially reverting 2007-04-29 change; missed in previous
77795         attempt.
77796         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
77797         is missing.
77799 2009-08-16  Bruno Haible  <bruno@clisp.org>
77801         Clarify fpurge's effect on the file position.
77802         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
77803         * tests/test-fpurge.c (main): Make a second pass for checking the file
77804         position.
77806 2009-08-16  Bruno Haible  <bruno@clisp.org>
77808         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
77809         declaration of fpurge is missing.
77810         * tests/test-fpurge.c (main): Check that the file has not more contents
77811         than expected. Close the file before removing it.
77813 2009-08-15  Eric Blake  <ebb9@byu.net>
77815         fpurge: don't wrap working cygwin implementation
77816         * lib/fpurge.c (fpurge): Fix comment typo.
77817         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
77818         1.7 to avoid replacement.
77819         * tests/test-fpurge.c (main): Enhance test.
77821 2009-08-15  Eric Blake  <ebb9@byu.net>
77822         and Jim Meyering  <meyering@redhat.com>
77824         test-update-copyright: skip if perl is insufficient
77825         * tests/test-update-copyright.sh: Failure to run maintainer tool
77826         should not cause testsuite failure on cygwin 1.5.
77828 2009-08-14  Eric Blake  <ebb9@byu.net>
77830         doc: mention more functions added in cygwin 1.7.0
77831         * doc/posix-headers/limits.texi (limits.h): Update for recent
77832         cygwin additions.
77833         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
77834         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
77835         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
77836         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
77837         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
77839 2009-08-14  Eric Blake  <ebb9@byu.net>
77841         maint.mk: simplify update-copyright rule
77842         * top/maint.mk (update-copyright-local): Delete, and document how
77843         to do it in cfg.mk instead.
77844         (update-copyright-exclude-regexp): Delete, and document how to do
77845         it in .x-update-copyright instead.
77846         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
77847         exclude ChangeLog.
77849 2009-08-14  Bruno Haible  <bruno@clisp.org>
77851         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
77853 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
77855         maint.mk: support update-copyright-env
77856         * top/maint.mk (update-copyright-env): Define place-holder.
77857         (update-copyright): Expand $(update-copyright-env) before
77858         invoking update-copyright.
77860 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
77862         update-copyright: implement forced reformatting
77863         * build-aux/update-copyright: Implement and document
77864         UPDATE_COPYRIGHT_FORCE.
77865         * tests/test-update-copyright.sh: Test it.
77867 2009-08-14  Eric Blake  <ebb9@byu.net>
77868         and Bruno Haible  <bruno@clisp.org>
77870         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
77871         * tests/test-locale.c: Revert previous patch related to NULL.
77872         * tests/test-stdio.c: Likewise.
77873         * tests/test-stdlib.c: Likewise.
77874         * tests/test-string.c: Likewise.
77875         * tests/test-unistd.c: Likewise.
77876         * modules/time-tests (Depends-on): Add verify.
77877         * modules/wchar-tests (Depends-on): Likewise.
77878         * tests/test-time.c: Test for NULL compliance.
77879         * tests/test-wchar.c: Likewise.
77880         * modules/locale (Depends-on): Add stddef.
77881         * modules/stdio (Depends-on): Likewise.
77882         * modules/stdlib (Depends-on): Likewise.
77883         * modules/string (Depends-on): Likewise.
77884         * modules/time (Depends-on): Likewise.
77885         * modules/unistd (Depends-on): Likewise.
77886         * modules/wchar (Depends-on): Likewise.
77887         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
77888         * lib/stdlib.in.h (includes): Likewise.
77889         * lib/string.in.h (includes): Likewise.
77890         * lib/time.in.h (includes): Likewise.
77891         * lib/unistd.in.h (includes): Likewise.
77892         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
77893         replaced.
77894         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
77895         * m4/stddef_h.m4: New file.
77896         * modules/stddef: Likewise.
77897         * lib/stddef.in.h: Likewise.
77898         * modules/stddef-tests: Likewise.
77899         * tests/test-stddef.c: Likewise.
77900         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
77901         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
77902         * doc/posix-headers/locale.texi (locale.h): Likewise.
77903         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
77904         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
77905         * doc/posix-headers/string.texi (string.h): Likewise.
77906         * doc/posix-headers/time.texi (time.h): Likewise.
77907         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
77908         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
77910 2009-08-14  Eric Blake  <ebb9@byu.net>
77912         doc: improve git diff of texinfo files
77913         * .gitattributes: Add rule for *.texi files, with hint on how to
77914         use it.
77915         Copied from m4, and based on a report by Bruno Haible.
77917 2009-08-14  Bruno Haible  <bruno@clisp.org>
77919         Disable multithread support by default on Cygwin 1.5.x for real.
77920         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
77922 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
77924         update-copyright: much ado about intervals
77925         * build-aux/update-copyright: Implement and document
77926         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
77927         of copyright year intervals.
77928         Also, document UPDATE_COPYRIGHT_YEAR.
77929         * tests/test-update-copyright.sh: Test it.
77931         update-copyright: convert 2-digit to 4-digit years
77932         * build-aux/update-copyright: Implement and document.
77933         * tests/test-update-copyright.sh: Update.
77935 2009-08-14  Jim Meyering  <meyering@redhat.com>
77937         test-exclude: avoid coreutils "make check" failure
77938         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
77939         just as in test-argmatch.c.
77941 2009-08-13  Eric Blake  <ebb9@byu.net>
77943         test-dup2: fix bad assumption
77944         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
77945         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
77947         test-version-etc: fix CRLF portability issue
77948         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
77949         recognize \r.
77950         * tests/test-argp-version-etc-1.sh: Likewise.
77952         getopt: update client modules
77953         * modules/argp (Depends-on): Use getopt-gnu.
77954         * modules/git-merge-changelog (Depends-on): Likewise.
77955         * modules/long-options (Depends-on): Likewise.
77956         * modules/xstrtol (Depends-on): Likewise.
77958 2009-08-13  Simon Josefsson  <simon@josefsson.org>
77960         * tests/test-version-etc.sh: Don't fail on different
77961         project/version.  Don't fail on CRLF differences.  Rewrite to use
77962         multiple -e instead of multiple sed forks, suggested by Eric Blake
77963         <ebb9@byu.net>.
77964         * tests/test-argp-version-etc-1.sh: Likewise.
77966 2009-08-13  Simon Josefsson  <simon@josefsson.org>
77968         * tests/test-version-etc.sh: Don't fail on different
77969         project/version.
77971 2009-08-12  Bruno Haible  <bruno@clisp.org>
77973         Tests for modules 'getopt-posix', 'getopt-gnu'.
77974         * modules/getopt-posix-tests: New file.
77975         * tests/test-getopt.c: New file.
77976         * tests/test-getopt.h: New file.
77977         * tests/test-getopt_long.h: New file.
77979         New modules 'getopt-posix', 'getopt-gnu'.
77980         * modules/getopt-gnu: New file, renamed from modules/getopt.
77981         * modules/getopt-posix: New file.
77982         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
77983         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
77984         (gl_GETOPT): Remove macro.
77985         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
77986         Disable the test against BSD systems that declare optreset. Test
77987         against mingw bug. Test against lack of support of optional arguments
77988         on many platforms.
77989         * doc/glibc-headers/getopt.texi: Update module name and list of
77990         relevant platforms.
77991         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
77992         'getopt-gnu' and more portability problems.
77993         * NEWS: Mention the changes.
77995 2009-08-12  Bruno Haible  <bruno@clisp.org>
77997         Ensure that optarg etc. get declared by <unistd.h>.
77998         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
77999         AC_USE_SYSTEM_EXTENSIONS.
78000         * modules/getopt (Depends-on): Add 'extensions'.
78002 2009-08-12  Bruno Haible  <bruno@clisp.org>
78004         Avoid test link errors.
78005         * modules/pipe-filter-ii-tests (Makefile.am): Define
78006         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
78007         * modules/pipe-filter-gi-tests (Makefile.am): Define
78008         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
78009         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
78011 2009-08-12  Bruno Haible  <bruno@clisp.org>
78013         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
78014         gl_GETOPT_SUBSTITUTE before.
78015         (gl_GETOPT): Use it.
78016         * m4/argp.m4 (gl_ARGP): Update.
78017         Reported by Sergey Poznyakoff.
78019         * m4/getopt.m4: Reorder macros.
78020         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
78021         (gl_GETOPT_SUBSTITUTE): Remove macro.
78023 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
78025         Minor improvement in gitlog-to-changelog
78027         * build-aux/gitlog-to-changelog: New option `--format' makes
78028         output format string configurable.
78030 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
78032         Optimize exclude: use hash tables for non-wildcard patterns.
78034         * lib/exclude.c: Include hash.h and mbuiter.h
78035         (struct exclude_pattern, exclude_segment): New data types.
78036         (struct exclude): Rewrite.
78037         (fnmatch_pattern_has_wildcards): New function.
78038         (new_exclude_segment, free_exclude_segment): New functions.
78039         (excluded_file_pattern_p, excluded_file_name_p): New functions.
78040         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
78041         * lib/exclude.h (is_fnmatch_pattern): New prototype.
78042         * modules/exclude: Depend on hash and mbuiter.
78044         * modules/exclude-tests: New file.
78045         * tests/test-exclude.c: New file.
78046         * tests/test-exclude1.sh: New file.
78047         * tests/test-exclude2.sh: New file.
78048         * tests/test-exclude3.sh: New file.
78049         * tests/test-exclude4.sh: New file.
78050         * tests/test-exclude5.sh: New file.
78051         * tests/test-exclude6.sh: New file.
78052         * tests/test-exclude7.sh: New file.
78054 2009-08-12  Bruno Haible  <bruno@clisp.org>
78056         Ensure that getopt() gets declared by <unistd.h>.
78057         * lib/unistd.in.h: Conditionally include getopt.h.
78058         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
78059         Set GNULIB_UNISTD_H_GETOPT.
78060         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
78061         GNULIB_UNISTD_H_GETOPT.
78062         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
78064 2009-08-12  Bruno Haible  <bruno@clisp.org>
78066         Clarify logic.
78067         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
78068         gl_replace_getopt instead of GETOPT_H.
78070 2009-08-12  Bruno Haible  <bruno@clisp.org>
78072         * m4/getopt.m4: Add comments.
78074 2009-08-12  Bruno Haible  <bruno@clisp.org>
78076         Disable multithread support by default on Cygwin 1.5.x.
78077         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
78078         set gl_use_threads=no if not specified otherwise.
78080 2009-08-11  Bruno Haible  <bruno@clisp.org>
78082         Avoid compilation error on NetBSD 5.0.
78083         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
78084         * tests/test-stdio.c: Likewise.
78085         * tests/test-stdlib.c: Likewise.
78086         * tests/test-string.c: Likewise.
78087         * tests/test-unistd.c: Likewise.
78088         Reported by Greg Troxel <gdt@ir.bbn.com>
78089         at <https://savannah.gnu.org/support/?106973>.
78091 2009-08-11  Bruno Haible  <bruno@clisp.org>
78093         * modules/dup2-tests (Depends-on): Remove close.
78095         Undo 2009-07-19 commit.
78096         * modules/acl-tests (Depends-on): Remove close.
78097         * modules/binary-io-tests (Depends-on): Likewise.
78098         * modules/closein-tests (Depends-on): Likewise.
78099         * modules/flock-tests (Depends-on): Likewise.
78100         * modules/fsync-tests (Depends-on): Likewise.
78101         * modules/lseek-tests (Depends-on): Likewise.
78102         * modules/pipe-tests (Depends-on): Likewise.
78103         * modules/posix_spawn-tests (Depends-on): Likewise.
78104         * modules/posix_spawnp-tests (Depends-on): Likewise.
78105         * modules/stat-time-tests (Depends-on): Likewise.
78106         * modules/yesno-tests (Depends-on): Likewise.
78108 2009-08-10  Bruno Haible  <bruno@clisp.org>
78110         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
78112 2009-08-10  Bruno Haible  <bruno@clisp.org>
78114         Fix a gcc warning.
78115         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
78117 2009-08-10  Bruno Haible  <bruno@clisp.org>
78119         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
78120         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
78121         not only the first time.
78122         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
78123         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
78124         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
78125         is 1, not only the first time.
78127 2009-08-10  Bruno Haible  <bruno@clisp.org>
78129         Make it possible to use module 'gethostname' without module 'close'.
78130         * lib/unistd.in.h (close): Evoke a link error only if
78131         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
78132         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
78133         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
78134         * modules/unistd (Makefile.am): Substitute
78135         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
78136         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
78137         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
78138         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
78139         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
78140         * modules/sys_ioctl (Makefile.am): Substitute
78141         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
78142         * modules/socket (configure.ac): On native Windows, set
78143         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
78144         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
78145         Reported by Sam Steingold <sds@gnu.org>.
78147 2009-08-10  Bruno Haible  <bruno@clisp.org>
78149         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
78150         * modules/ioctl (configure.ac): Likewise.
78152 2009-08-10  Bruno Haible  <bruno@clisp.org>
78154         Avoid collision between gnulib wrapper and libintl wrapper.
78155         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
78156         already defined in intl/printf.c.
78157         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
78158         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
78160 2009-08-09  Bruno Haible  <bruno@clisp.org>
78162         Make <sys/select.h> really self-contained, also on Solaris 10.
78163         * lib/sys_select.in.h: Include <string.h>.
78164         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
78165         Solaris 10 problem.
78166         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
78167         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
78168         Reported by Jim Meyering.
78170 2009-08-09  Bruno Haible  <bruno@clisp.org>
78172         Avoid warnings from 'aclocal' that are due to a use of macro name
78173         AM_XGETTEXT_OPTION that is not defined in automake.
78174         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
78175         automake.
78176         * modules/error (configure.ac): Likewise.
78177         * modules/propername (configure.ac): Likewise.
78178         * modules/vasprintf (configure.ac): Likewise.
78179         * modules/verror (configure.ac): Likewise.
78180         * modules/xprintf (configure.ac): Likewise.
78181         * modules/xvasprintf (configure.ac): Likewise.
78183 2009-08-08  Bruno Haible  <bruno@clisp.org>
78185         Avoid compilation error in C++ mode.
78186         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
78187         Reported by Sam Steingold <sds@gnu.org>.
78189 2009-08-08  Bruno Haible  <bruno@clisp.org>
78191         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
78192         for the various Unix platforms.
78193         * doc/posix-headers/limits.texi: Update platforms list regarding
78194         HOST_NAME_MAX.
78195         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
78197 2009-08-07  Jim Meyering  <meyering@redhat.com>
78199         selinux-at: fix typo in a comment
78200         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
78201         Spotted by Paolo Bonzini.
78203         selinux-at: remove redundant m4 code, add documentation
78204         * modules/selinux-at (configure.ac): Remove redundant code.
78205         LIB_SELINUX is already set via the dependent module, selinux-h.
78206         (Include): Add quotes around selinux-at.h.
78207         * lib/selinux-at.h: Add documentation.
78208         Reported by Bruno Haible in
78209         http://marc.info/?l=gnulib-bug&m=124958988300749
78211 2009-08-07  Bruno Haible  <bruno@clisp.org>
78213         Avoid link error on MacOS X 10.3 and 10.4.
78214         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
78215         on non-ELF systems.
78216         * lib/argp-pv.c (argp_program_version): Likewise.
78217         Reported by Simon Josefsson.
78219 2009-08-07  Simon Josefsson  <simon@josefsson.org>
78221         * tests/test-version-etc.sh: Use $EXEEXT.
78223 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
78225         update-copyright: update documentation to point to maint.mk
78226         * build-aux/update-copyright: Here.
78228 2009-08-06  Jim Meyering  <meyering@redhat.com>
78230         maint.mk: support update-copyright-local
78231         * top/maint.mk (update-copyright-local): Define place-holder.
78232         (update-copyright): Depend on $(update-copyright-local).
78234 2009-08-06  Jim Meyering  <meyering@redhat.com>
78236         selinux-at: new module
78237         Initially written for coreutils, this module will soon be
78238         used by findutils, too.
78239         * MODULES.html.sh [Misc]: Add selinux-at.
78240         * lib/selinux-at.h: New file, from coreutils.
78241         * lib/selinux-at.c: Likewise.
78242         * modules/selinux-at: Likewise.
78243         (License): Change from LGPL to GPL, since it depends
78244         on the GPL'd openat module.
78246         doc: update README
78247         * README: Remove references to cogito.
78248         Remove cvs-repo-updating instructions from 2007.
78249         Don't imply that CVS is better if you have limited disk space.
78251 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
78253         update-copyright: support C-style comments
78254         * build-aux/update-copyright: Implement and document.
78255         * tests/test-update-copyright.sh: Test.
78257 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
78259         update-copyright: support omitted "(C)"
78260         * build-aux/update-copyright: Implement and document.  Also,
78261         allow variable whitespace before "(C)".
78262         * tests/test-update-copyright.sh: Test.
78264 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
78266         update-copyright: don't trip on non-FSF copyright statements
78267         * build-aux/update-copyright: Fix so that the first correctly
78268         formatted FSF copyright statement is recognized no matter what
78269         appears before it.  Update documentation.
78270         * tests/test-update-copyright.sh: Test that.
78272 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
78274         update-copyright: clean up code a little
78275         * build-aux/update-copyright: Append "_re" to the name of any
78276         variable holding a regular expression.
78277         Replace "old" and "new" with "stmt" in variable names.
78278         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
78279         handled correctly.
78280         Format code more consistently.
78282 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
78284         update-copyright-tests: improve portability
78285         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
78286         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
78288 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
78290         update-copyright: support @copyright{} and &copy;
78291         * build-aux/update-copyright: Implement and document.
78292         * tests/test-update-copyright.sh: Test.
78294 2009-08-04  Jim Meyering  <meyering@redhat.com>
78296         update-copyright-tests: correctly test EOL=\r\n handling
78297         * tests/test-update-copyright.sh: Put \r at the end of some lines
78298         for the dos-eol tests.  Based on a patch by Joel E. Denny.
78300         maint.mk: make update-copyright exclusion list more configurable
78301         * top/maint.mk (update-copyright): Default to excluding COPYING,
78302         but allow an override, in case someone does want to update that file.
78304         maint.mk: don't update copyright date in COPYING
78305         * top/maint.mk (update-copyright): Exclude COPYING.
78307         maint.mk: add a copyright-updating rule
78308         * top/maint.mk (update-copyright): New rule.
78309         Derived from coreutils/Makefile.am.
78311         update-copyright: rename some variables
78312         * build-aux/update-copyright: Rename a few variables for clarity.
78313         Tweak syntax.  List Joel E. Denny as coauthor.
78315 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
78317         update-copyright: fix bug for 2-digit last year and add tests
78318         * build-aux/update-copyright: Fix bug.
78319         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
78320         specified.
78321         * modules/update-copyright-tests: New
78322         * tests/test-update-copyright.sh: New.
78324 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
78326         update-copyright: handle leading tabs in line prefix
78327         * build-aux/update-copyright: Count leading tabs as 8 spaces
78328         when computing margin.  This helps with the formatting of
78329         ChangeLogs, for example.
78330         Fix documentation a little.
78332 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
78334         update-copyright: support EOL=\r\n
78335         * build-aux/update-copyright: Implement that.
78337 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
78339         update-copyright: automatically format copyright statements
78340         * build-aux/update-copyright: Implement that.
78341         Also, be a little more predictable and safer by always failing
78342         when the full copyright format is not perfectly recognized as an
78343         unbroken whole.  Discussed at
78344         <http://lists.gnu.org/r/bug-gnulib/2009-07/msg00131.html>.
78345         Rewrite documentation.
78347 2009-08-03  Bruno Haible  <bruno@clisp.org>
78349         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
78351 2009-08-02  Bruno Haible  <bruno@clisp.org>
78353         Tests for module 'uname'.
78354         * modules/uname-tests: New file.
78355         * tests/test-uname.c: New file.
78357         New module 'uname'.
78358         * lib/uname.c: New file.
78359         * m4/uname.m4: New file.
78360         * modules/uname: New file.
78361         * doc/posix-functions/uname.texi: Mention the new module.
78363 2009-08-02  Bruno Haible  <bruno@clisp.org>
78365         Tests for module 'sys_utsname'.
78366         * modules/sys_utsname-tests: New file.
78367         * tests/test-sys_utsname.c: New file.
78369         New module 'sys_utsname'.
78370         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
78371         * m4/sys_utsname_h.m4: New file.
78372         * modules/sys_utsname: New file.
78373         * doc/posix-headers/sys_utsname.texi: Mention the new module.
78375 2009-08-02  Bruno Haible  <bruno@clisp.org>
78377         Implicitly initialize the sockets library.
78378         * lib/gethostname.c: Include sockets.h.
78379         (rpl_gethostname): Invoke gl_sockets_startup.
78380         * lib/socket.c: Include sockets.h.
78381         (rpl_socket): Invoke gl_sockets_startup.
78382         * modules/gethostname (Depends-on): Add sockets.
78383         * modules/socket (Depends-on): Likewise.
78384         * tests/test-poll.c: Don't include sockets.h.
78385         (main): Don't invoke gl_sockets_startup.
78386         * tests/test-select.c: Don't include sockets.h.
78387         (main): Don't invoke gl_sockets_startup.
78389 2009-08-02  Bruno Haible  <bruno@clisp.org>
78391         Allow multiple calls to gl_sockets_startup.
78392         * lib/sockets.c (initialized_sockets_version): New variable.
78393         (gl_sockets_startup): Do nothing if already called for this or a higher
78394         version.
78395         (gl_sockets_cleanup): Reset initialized_sockets_version.
78397 2009-08-03  Simon Josefsson  <simon@josefsson.org>
78399         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
78400         different project/version.
78402 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
78403             Bruno Haible  <bruno@clisp.org>
78405         Tests for module 'pipe-filter-gi'.
78406         * modules/pipe-filter-gi-tests: New file.
78407         * tests/test-pipe-filter-gi1.sh: New file.
78408         * tests/test-pipe-filter-gi1.c: New file.
78409         * tests/test-pipe-filter-gi2.sh: New file.
78410         * tests/test-pipe-filter-gi2-main.c: New file.
78411         * tests/test-pipe-filter-gi2-child.c: New file.
78413         New module 'pipe-filter-gi'.
78414         * lib/pipe-filter-gi.c: New file.
78415         * modules/pipe-filter-gi: New file.
78417 2009-08-02  Bruno Haible  <bruno@clisp.org>
78418             Paolo Bonzini  <bonzini@gnu.org>
78420         Tests for module 'pipe-filter-ii'.
78421         * modules/pipe-filter-ii-tests: New file.
78422         * tests/test-pipe-filter-ii1.sh: New file.
78423         * tests/test-pipe-filter-ii1.c: New file.
78424         * tests/test-pipe-filter-ii2.sh: New file.
78425         * tests/test-pipe-filter-ii2-main.c: New file.
78426         * tests/test-pipe-filter-ii2-child.c: New file.
78428         New module 'pipe-filter-ii'.
78429         * lib/pipe-filter.h: New file.
78430         * lib/pipe-filter-ii.c: New file.
78431         * lib/pipe-filter-aux.h: New file.
78432         * modules/pipe-filter-ii: New file.
78434 2009-08-02  Simon Josefsson  <simon@josefsson.org>
78436         * lib/gc-libgcrypt.c: Change copyright to FSF.
78437         * lib/gc-gnulib.c: Likewise.
78439 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
78441         * lib/gethostname.c: Include limits.h.
78443 2009-08-02  Simon Josefsson  <simon@josefsson.org>
78444             Bruno Haible  <bruno@clisp.org>
78446         Ensure HOST_NAME_MAX as part of the gethostname module.
78447         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
78448         define also HOST_NAME_MAX.
78449         * tests/test-gethostname.c: Include <limits.h>.
78450         (main): Check also HOST_NAME_MAX.
78451         * doc/posix-headers/limits.texi: Document the mingw problem.
78453 2009-08-02  Bruno Haible  <bruno@clisp.org>
78455         * lib/gethostname.c (gethostname): Fix handling of large len argument.
78456         Add comments.
78458 2009-03-31  Simon Josefsson  <simon@josefsson.org>
78460         * lib/gethostname.c: Add Windows wrapper.
78461         * m4/gethostname.m4: Look for gethostname in -lws2_32.
78462         * modules/gethostname: Depend on sys_socket & errno, for also
78463         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
78464         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
78466 2009-07-31  Jim Meyering  <meyering@redhat.com>
78468         getloadavg: fix symbol name in comment
78469         * lib/getloadavg.c: Correct a typo I introduced when adding
78470         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
78471         Matt Kraai spotted the problem.
78473 2009-07-29  Matt Kraai  <mkraai@beckman.com>
78475         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
78476         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
78477         code also if ! defined N_NAME_POINTER.
78478         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
78479         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
78480         but the n_name member is a 12-byte array.
78482 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
78484         update-copyright: generalize comment handling
78485         * build-aux/update-copyright: Handle copyright statements
78486         within more comment styles.
78487         Document usage.
78488         Report any file with an external copyright holder or parse failure.
78490 2009-07-29  Jim Meyering  <meyering@redhat.com>
78492         mktime: correct setting of REPLACE_MKTIME
78493         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
78495         update-copyright: new module
78496         * modules/update-copyright: New file.
78497         * build-aux/update-copyright: New file.
78498         * MODULES.html.sh (maint+release support): Add update-copyright.
78500 2009-07-27  Bruno Haible  <bruno@clisp.org>
78502         Fix compilation error when <ctime> is used and mktime is replaced.
78503         * lib/time.in.h (mktime): New declaration.
78504         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
78505         REPLACE_MKTIME instead of defining mktime in config.h.
78506         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
78507         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
78508         Reported by Ross McFarland <rwmcfa1@neces.com>.
78510 2009-07-27  Bruno Haible  <bruno@clisp.org>
78512         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
78513         Reported by Matt Kraai <mkraai@beckman.com>.
78515 2009-07-25  Jim Meyering  <meyering@redhat.com>
78517         maint.mk: avoid warnings about missing files
78518         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
78519         diagnostic when .prev-version does not exist.
78520         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
78521         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
78522         nonexistent cfg.mk.
78523         Suggestions from Simon Josefsson.
78525 2009-07-25  Bruno Haible  <bruno@clisp.org>
78527         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
78528         defined as macros. Needed on QNX 6.4.1.
78529         Reported by Matt Kraai <mkraai@beckman.com>.
78531 2009-07-23  Jim Meyering  <meyering@redhat.com>
78533         maint.mk: invoke "make dist" with a working value of XZ_OPT
78534         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
78536 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
78538         Make fseeko.c compile on QNX.
78539         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
78541 2009-07-22  Peter Simons  <simons@cryp.to>
78543         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
78544         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
78545         * lib/md4.h: Likewise.
78546         * lib/md5.h: Likewise.
78547         * lib/sha1.h: Likewise.
78548         * lib/sha256.h: Likewise.
78549         * lib/sha512.h: Likewise.
78551         tests-sha1: don't assign literal string to 'char *' variable
78552         * tests/test-sha1.c (main): Declare locals with "const" to match
78553         attributes of the right hand side.
78555 2009-07-21  Eric Blake  <ebb9@byu.net>
78557         dup2: fix more mingw problems
78558         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
78559         fd to itself.
78560         * doc/posix-functions/dup2.texi (dup2): Document the bug.
78561         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
78562         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
78563         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
78564         care of mingw bugs.
78566 2009-07-21  Jim Meyering  <meyering@redhat.com>
78568         vc-list-files: avoid failure when /bin/sh is dash
78569         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
78570         On some Debian based systems, /bin/sh is a symlink to dash, and running
78571         this command would omit the "/" following each 'tests' prefix:
78572           dash -x build-aux/vc-list-files -C . tests
78573         That is because bash and dash work differently:
78574           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
78575           bash ok
78576           dash odd
78578 2009-07-21  Eric Blake  <ebb9@byu.net>
78580         dup2-tests: test previous patch
78581         * modules/dup2-tests: New file.
78582         * tests/test-dup2.c: Likewise.
78583         * tests/test-open.c (main): Avoid unspecified behavior.
78584         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
78585         test.
78587         dup2: work around mingw and cygwin 1.5 bug
78588         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
78589         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
78590         * modules/unistd (Makefile.am): Substitute it.
78591         * lib/unistd.in.h (dup2): Declare the replacement.
78592         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
78593         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
78594         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
78595         * modules/execute (Depends-on): Add dup2.
78596         * modules/fseterr (Depends-on): Likewise.
78597         * modules/pipe (Depends-on): Likewise.
78598         * modules/posix_spawn-internal (Depends-on): Likewise.
78600 2009-07-21  Bruno Haible  <bruno@clisp.org>
78602         * modules/.gitattributes: New file.
78604 2009-07-20  Bruno Haible  <bruno@clisp.org>
78606         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
78607         (main): Use it.
78609 2009-07-20  Eric Blake  <ebb9@byu.net>
78611         test-pipe: make a bit more robust.
78612         * tests/test-pipe.c (myerr): Allow error messages regardless of
78613         what we do to stderr.
78614         (test_pipe): Rearrange to avoid deadlock.
78615         (child_main): Try a larger read, to ensure we avoided deadlock.
78616         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
78617         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
78618         if misused.
78620 2009-07-19  Jim Meyering  <meyering@redhat.com>
78622         fts: avoid false-positive cycle-detection
78623         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
78624         for each new command line argument.
78626 2009-07-19  Bruno Haible  <bruno@clisp.org>
78628         Fix build error on mingw with the modules sys_select and unistd.
78629         * modules/acl-tests (Depends-on): Add close.
78630         * modules/binary-io-tests (Depends-on): Likewise.
78631         * modules/closein-tests (Depends-on): Likewise.
78632         * modules/flock-tests (Depends-on): Likewise.
78633         * modules/fsync-tests (Depends-on): Likewise.
78634         * modules/lseek-tests (Depends-on): Likewise.
78635         * modules/pipe-tests (Depends-on): Likewise.
78636         * modules/posix_spawn-tests (Depends-on): Likewise.
78637         * modules/posix_spawnp-tests (Depends-on): Likewise.
78638         * modules/stat-time-tests (Depends-on): Likewise.
78639         * modules/yesno-tests (Depends-on): Likewise.
78641 2009-07-19  Bruno Haible  <bruno@clisp.org>
78643         Unify conditionals.
78644         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
78645         macros, not at the compiler macros.
78646         * lib/pipe.c: Likewise.
78647         * lib/execute.c: Likewise.
78648         * lib/spawni.c: Likewise.
78650 2009-07-19  Bruno Haible  <bruno@clisp.org>
78652         Fix handling of closed stdin/stdout/stderr on mingw.
78653         * lib/w32spawn.h: Include unistd.h.
78654         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
78655         file descriptor with O_NOINHERIT flag.
78656         (fd_safer_noinherit): New function, based on fd-safer.c.
78657         (dup_safer_noinherit): New function, based on dup-safer.c.
78658         (undup_safer_noinherit): New function.
78659         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
78660         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
78661         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
78662         instead of fd_safer.
78663         * tests/test-pipe.c: Include <windows.h>.
78664         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
78665         result.
78667         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
78668         from main.
78669         (test_pipe): Pass an extra argument for disambiguation.
78670         (main): Invoke parent_main or child_main.
78672         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
78673         consistently.
78675 2009-07-18  Eric Blake  <ebb9@byu.net>
78677         test-pipe: fix mingw build
78678         * tests/test-pipe.c (main): Avoid fcntl on mingw.
78680 2009-07-18  Bruno Haible  <bruno@clisp.org>
78682         * modules/pipe-tests (Makefile.am): Fix typo.
78684 2009-07-18  Eric Blake  <ebb9@byu.net>
78686         error: fix mingw build
78687         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
78688         Reported by Bruno Haible.
78690         error: avoid undefined use of stdout
78691         * lib/error.c (error, error_at_line): Check that fd 1 is open
78692         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
78693         is handling faults and the close_stdout module wants to report the
78694         detection of closed stdout as an error.
78696 2009-07-17  Eric Blake  <ebb9@byu.net>
78698         pipe: be robust in face of closed fds
78699         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
78700         should cause child to misbehave.
78701         * modules/pipe-tests: New module.
78702         * tests/test-pipe.c: New file.
78703         * tests/test-pipe.sh: New file.
78704         Reported by Akim Demaille.
78706 2009-07-14  Bruno Haible  <bruno@clisp.org>
78708         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
78709         Reported by anonymous kc.
78711 2009-07-07  Jim Meyering  <meyering@redhat.com>
78713         maint.mk: don't look for translatable strings in *.m4 or *.mk
78714         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
78715         when searching for translatable strings.
78717 2009-07-05  Jim Meyering  <meyering@redhat.com>
78719         remove superfluous parentheses in STREQ definition
78720         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
78721         * lib/getugroups.c (STREQ): Likewise.
78722         * lib/fnmatch.c (STREQ): Likewise.
78723         Spotted by Bruno Haible.
78725 2009-07-04  Jim Meyering  <meyering@redhat.com>
78727         argv-iter: new module
78728         * MODULES.html.sh: Add argv-iter.
78729         * lib/argv-iter.c, lib/argv-iter.h: New files.
78730         * modules/argv-iter: New file.
78731         * modules/argv-iter-tests: New file.
78732         * tests/test-argv-iter.c: Test it.
78734 2009-07-04  Bruno Haible  <bruno@clisp.org>
78736         Fix assertion.
78737         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
78738         contains more exact copies of a given entry than file2, leave the extra
78739         copies unpaired rather than aborting.
78740         Reported by Eric Blake.
78742 2009-07-02  Bruno Haible  <bruno@clisp.org>
78744         Speedup git-merge-changelog for git cherry-pick.
78745         * lib/git-merge-changelog.c (struct entries_mapping): New type.
78746         (entries_mapping_get): New function, extracted from compute_mapping.
78747         (entries_mapping_reverse_get): New function.
78748         (compute_mapping): Add a 'full' argument. Return the result in a
78749         'struct entries_mapping'.
78750         (main): Update. Access the mappings through entries_mapping_get.
78751         Reported by Eric Blake.
78753 2009-07-02  Bruno Haible  <bruno@clisp.org>
78755         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
78756         best_i.
78758 2009-07-02  Bruno Haible  <bruno@clisp.org>
78760         Speed up approximate search for matching ChangeLog entries.
78761         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
78762         argument. Call fstrcmp_bounded instead of fstrcmp.
78763         (compute_mapping, try_split_merged_entry, main): Update callers.
78765 2009-07-02  Bruno Haible  <bruno@clisp.org>
78767         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
78769 2009-06-30  Bruno Haible  <bruno@clisp.org>
78771         Reduce the number of uc_is_cased calls.
78772         * lib/unicase.h (casing_suffix_context_t): Add
78773         'first_char_except_ignorable' field.
78774         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
78775         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
78776         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
78777         Update initializer.
78778         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
78779         case-ignorable characters.
78780         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
78781         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
78782         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
78783         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
78784         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
78786 2009-06-30  Bruno Haible  <bruno@clisp.org>
78788         Tests for module 'unicase/ignorable'.
78789         * modules/unicase/ignorable-tests: New file.
78790         * tests/unicase/test-ignorable.c: New file, generated by
78791         gen-uni-tables.
78793         Tests for module 'unicase/cased'.
78794         * modules/unicase/cased-tests: New file.
78795         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
78796         * tests/unicase/test-predicate-part1.h: New file, derived from
78797         tests/unictype/test-predicate-part1.h.
78798         * tests/unicase/test-predicate-part2.h: New file, same as
78799         tests/unictype/test-predicate-part2.h.
78801         Fix evaluation of "Before C" condition of FINAL_SIGMA.
78802         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
78803         (output_casing_properties): New function.
78804         (main): Call it.
78805         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
78806         * lib/unicase/cased.c: Include unictype/bitmap.h.
78807         (uc_is_cased): Define through a bitmap lookup.
78808         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
78809         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
78810         (uc_is_case_ignorable): Define through a bitmap lookup.
78811         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
78812         lib/unictype/bitmap.h.
78813         (Depends-on): Add inline. Clean up.
78814         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
78815         lib/unictype/bitmap.h.
78816         (Depends-on): Add inline. Clean up.
78817         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
78818         recognition.
78819         * tests/unicase/test-u16-tolower.c (main): Likewise.
78820         * tests/unicase/test-u32-tolower.c (main): Likewise.
78822 2009-06-30  Bruno Haible  <bruno@clisp.org>
78824         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
78825         * lib/unicase/u16-casemap.c: Likewise.
78826         * lib/unicase/u32-casemap.c: Likewise.
78828 2009-06-29  Bruno Haible  <bruno@clisp.org>
78830         Define u32_casefold as a wrapper around u32_ct_casefold.
78831         * lib/unicase/u32-casefold.c: Update.
78832         * modules/unicase/u32-casefold (Depends-on): Add
78833         unicase/u32-ct-casefold, unicase/empty-prefix-context,
78834         unicase/empty-suffix-context. Clean up.
78836         Define u16_casefold as a wrapper around u16_ct_casefold.
78837         * lib/unicase/u16-casefold.c: Update.
78838         * modules/unicase/u16-casefold (Depends-on): Add
78839         unicase/u16-ct-casefold, unicase/empty-prefix-context,
78840         unicase/empty-suffix-context. Clean up.
78842         Define u8_casefold as a wrapper around u8_ct_casefold.
78843         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
78844         * lib/unicase/u8-casefold.c: Update.
78845         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
78846         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
78848         Define u32_totitle as a wrapper around u32_ct_totitle.
78849         * lib/unicase/u32-totitle.c: Update.
78850         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
78851         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
78853         Define u16_totitle as a wrapper around u16_ct_totitle.
78854         * lib/unicase/u16-totitle.c: Update.
78855         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
78856         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
78858         Define u8_totitle as a wrapper around u8_ct_totitle.
78859         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
78860         functions.
78861         (FUNC): Delegate to U_CT_TOTITLE.
78862         * lib/unicase/u8-totitle.c: Update.
78863         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
78864         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
78866         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
78867         invocation.
78868         * modules/unicase/u32-tolower (Depends-on): Add
78869         unicase/empty-prefix-context, unicase/empty-suffix-context.
78871         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
78872         invocation.
78873         * modules/unicase/u16-tolower (Depends-on): Add
78874         unicase/empty-prefix-context, unicase/empty-suffix-context.
78876         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
78877         * modules/unicase/u8-tolower (Depends-on): Add
78878         unicase/empty-prefix-context, unicase/empty-suffix-context.
78880         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
78881         invocation.
78882         * modules/unicase/u32-toupper (Depends-on): Add
78883         unicase/empty-prefix-context, unicase/empty-suffix-context.
78885         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
78886         invocation.
78887         * modules/unicase/u16-toupper (Depends-on): Add
78888         unicase/empty-prefix-context, unicase/empty-suffix-context.
78890         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
78891         * modules/unicase/u8-toupper (Depends-on): Add
78892         unicase/empty-prefix-context, unicase/empty-suffix-context.
78894         New module 'unicase/u32-ct-casefold'.
78895         * lib/unicase/u32-ct-casefold.c: New file.
78896         * modules/unicase/u32-ct-casefold: New file.
78898         New module 'unicase/u16-ct-casefold'.
78899         * lib/unicase/u16-ct-casefold.c: New file.
78900         * modules/unicase/u16-ct-casefold: New file.
78902         New module 'unicase/u8-ct-casefold'.
78903         * lib/unicase/u8-ct-casefold.c: New file.
78904         * lib/unicase/u-ct-casefold.h: New file, derived from
78905         lib/unicase/u-casefold.h.
78906         * modules/unicase/u8-ct-casefold: New file.
78908         New module 'unicase/u32-ct-totitle'.
78909         * lib/unicase/u32-ct-totitle.c: New file.
78910         * modules/unicase/u32-ct-totitle: New file.
78912         New module 'unicase/u16-ct-totitle'.
78913         * lib/unicase/u16-ct-totitle.c: New file.
78914         * modules/unicase/u16-ct-totitle: New file.
78916         New module 'unicase/u8-ct-totitle'.
78917         * lib/unicase/u8-ct-totitle.c: New file.
78918         * lib/unicase/u-ct-totitle.h: New file, derived from
78919         lib/unicase/u-totitle.h.
78920         * modules/unicase/u8-ct-totitle: New file.
78922         New module 'unicase/u32-ct-tolower'.
78923         * lib/unicase/u32-ct-tolower.c: New file.
78924         * modules/unicase/u32-ct-tolower: New file.
78926         New module 'unicase/u16-ct-tolower'.
78927         * lib/unicase/u16-ct-tolower.c: New file.
78928         * modules/unicase/u16-ct-tolower: New file.
78930         New module 'unicase/u8-ct-tolower'.
78931         * lib/unicase/u8-ct-tolower.c: New file.
78932         * modules/unicase/u8-ct-tolower: New file.
78934         New module 'unicase/u32-ct-toupper'.
78935         * lib/unicase/u32-ct-toupper.c: New file.
78936         * modules/unicase/u32-ct-toupper: New file.
78938         New module 'unicase/u16-ct-toupper'.
78939         * lib/unicase/u16-ct-toupper.c: New file.
78940         * modules/unicase/u16-ct-toupper: New file.
78942         New module 'unicase/u8-ct-toupper'.
78943         * lib/unicase/u8-ct-toupper.c: New file.
78944         * modules/unicase/u8-ct-toupper: New file.
78946         Add context arguments to u*_casemap functions.
78947         * lib/unicase/unicasemap.h: Include unicase.h.
78948         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
78949         suffix_context arguments.
78950         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
78951         functions.
78952         (FUNC): Add prefix_context and suffix_context arguments. Use
78953         uc_is_cased and uc_is_case_ignorable.
78954         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
78955         * lib/unicase/u16-casemap.c: Likewise.
78956         * lib/unicase/u32-casemap.c: Likewise.
78957         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
78958         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
78959         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
78960         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
78961         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
78962         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
78964         New module 'unicase/u32-suffix-context'.
78965         * lib/unicase/u32-suffix-context.c: New file.
78966         * modules/unicase/u32-suffix-context: New file.
78968         New module 'unicase/u16-suffix-context'.
78969         * lib/unicase/u16-suffix-context.c: New file.
78970         * modules/unicase/u16-suffix-context: New file.
78972         New module 'unicase/u8-suffix-context'.
78973         * lib/unicase/u8-suffix-context.c: New file.
78974         * lib/unicase/u-suffix-context.h: New file.
78975         * modules/unicase/u8-suffix-context: New file.
78977         New module 'unicase/empty-suffix-context'.
78978         * lib/unicase/empty-suffix-context.c: New file.
78979         * modules/unicase/empty-suffix-context: New file.
78981         New module 'unicase/u32-prefix-context'.
78982         * lib/unicase/u32-prefix-context.c: New file.
78983         * modules/unicase/u32-prefix-context: New file.
78985         New module 'unicase/u16-prefix-context'.
78986         * lib/unicase/u16-prefix-context.c: New file.
78987         * modules/unicase/u16-prefix-context: New file.
78989         New module 'unicase/u8-prefix-context'.
78990         * lib/unicase/u8-prefix-context.c: New file.
78991         * lib/unicase/u-prefix-context.h: New file.
78992         * lib/unicase/context.h: New file.
78993         * modules/unicase/u8-prefix-context: New file.
78995         New module 'unicase/empty-prefix-context'.
78996         * lib/unicase/empty-prefix-context.c: New file.
78997         * modules/unicase/empty-prefix-context: New file.
78999         New module 'unicase/ignorable'.
79000         * lib/unicase/ignorable.c: New file.
79001         * modules/unicase/ignorable: New file.
79003         New module 'unicase/cased'.
79004         * lib/unicase/caseprop.h: New file.
79005         * lib/unicase/cased.c: New file.
79006         * modules/unicase/cased: New file.
79008         New functions for case mapping of substrings.
79009         * lib/unicase.h (casing_prefix_context_t): New type.
79010         (unicase_empty_prefix_context): New variable.
79011         (u8_casing_prefix_context, u16_casing_prefix_context,
79012         u32_casing_prefix_context, u8_casing_prefixes_context,
79013         u16_casing_prefixes_context, u32_casing_prefixes_context): New
79014         declarations.
79015         (casing_suffix_context_t): New type.
79016         (unicase_empty_suffix_context): New variable.
79017         (u8_casing_suffix_context, u16_casing_suffix_context,
79018         u32_casing_suffix_context, u8_casing_suffixes_context,
79019         u16_casing_suffixes_context, u32_casing_suffixes_context,
79020         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
79021         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
79022         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
79023         declarations.
79025 2009-06-28  Jim Meyering  <meyering@redhat.com>
79027         boostrap: indent only with spaces
79028         * build-aux/bootstrap: Indent only with spaces, never TABs.
79030         bootstrap: split long lines
79031         * build-aux/bootstrap: Keep line length < 80.
79033         bootstrap: sync from coreutils
79034         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
79035         just as autoreconf does.  Verify a list of prerequisite
79036         package-name,version-number pairs if defined in bootstrap.conf.
79037         Refer to README-prereq, if prerequisites are not satisfied.
79039 2009-06-27  Eric Blake  <ebb9@byu.net>
79041         tests: add test for bogus NULL definition
79042         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
79043         * tests/test-stdlib.c: Likewise.
79044         * tests/test-string.c: Likewise.
79045         * tests/test-locale.c: Likewise.
79046         * tests/test-unistd.c: Likewise.
79047         * modules/stdio-tests (Depends-on): Add verify.
79048         * modules/stdlib-tests (Depends-on): Likewise.
79049         * modules/string-tests (Depends-on): Likewise.
79050         * modules/locale-tests (Depends-on): Likewise.
79051         * modules/unistd-tests (Depends-on): Likewise.
79053 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
79055         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
79056         self-explaining comment.
79057         * m4/selinux-selinux-h: Update serial.
79058         (gl_LIBSELINUX): New macro, adding a warning for missing development
79059         packages to code extracted from...
79060         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
79061         Add warning for missing development packages here, too.
79063 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
79065         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
79067 2009-06-25  Eric Blake  <ebb9@byu.net>
79069         version-etc: fix regression
79070         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
79071         gcc.
79072         (version_etc): Use it, to catch bugs with trailing NULL.
79073         * lib/version-etc.c (version_etc_arn): Delete unused argument.
79074         (version_etc_va): Fix logic bug.
79075         * modules/version-etc-tests: Add test.
79076         * tests/test-version-etc.c: New file.
79077         * tests/test-version-etc.sh: Likewise.
79079 2009-06-25  Sam Steingold  <sds@gnu.org>
79081         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
79082         mbtowc declaration.
79084 2009-06-25  Eric Blake  <ebb9@byu.net>
79086         fpurge: migrate into <stdio.h>
79087         * lib/fpurge.h: Delete...
79088         * lib/stdio.in.h (fpurge): ...and declare here, instead.
79089         * lib/fpurge.c (fpurge): Change declaring header.
79090         * modules/fpurge (Files): Drop deleted file.
79091         (Depends-on): Add stdio.
79092         (configure.ac): Set witness.
79093         * modules/stdio (Makefile.am): Support fpurge macros.
79094         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
79095         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
79096         * lib/fflush.c: Update client.
79097         * tests/test-fpurge.c: Likewise.
79098         * NEWS: Mention the change.
79100 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
79102         * lib/argp-version-etc.c (program_authors): Add const
79103         qualifier.
79104         * lib/version-etc.c: Fix typos in the comments.
79105         * modules/argp-version-etc: Depends on version-etc.
79107 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
79109         argp-version-etc: new module.
79111         * lib/argp-version-etc.c: New file.
79112         * lib/argp-version-etc.h: New file.
79113         * modules/argp-version-etc: New file.
79114         * modules/argp-version-etc-tests: New file.
79115         * tests/test-argp-version-etc.c: New test.
79116         * tests/test-argp-version-etc-1.sh: New test.
79118 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
79120         Provide additional interfaces and documentation for version-etc
79121         module.
79123         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
79124         interfaces.
79125         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
79126         prototypes.
79128 2009-06-24  Bruno Haible  <bruno@clisp.org>
79130         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
79131         HAVE_LIB${NAME} macro.
79132         Reported by Sam Steingold <sds@gnu.org>.
79134 2009-06-23  Simon Josefsson  <simon@josefsson.org>
79136         * modules/hash-tests (test_hash_LDADD): Link to libintl when
79137         needed.
79139 2009-06-21  Bruno Haible  <bruno@clisp.org>
79141         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
79142         work.
79143         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
79144         together with LIB${NAME}, LTLIB${NAME}.
79145         Reported by Sam Steingold <sds@gnu.org>.
79147 2009-06-20  Jim Meyering  <meyering@redhat.com>
79149         tests: make sc_require_test_exit_idiom more generic
79150         * top/maint.mk (Exit_witness_file): New overridable variable.
79151         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
79152         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
79154 2009-06-19  Jim Meyering  <meyering@redhat.com>
79156         hash: reverse order of src/dst parameters in an internal interface
79157         * lib/hash.c (transfer_entries): Reverse order of parameters to
79158         put DST before SRC.  Adjust callers.
79160         tests: test-hash: avoid wholesale duplication
79161         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
79162         Instead, use a loop and add a single conditional.
79164         tests: test-hash: allow seed selection via a command line argument
79165         * tests/test-hash.c (get_seed): New function.
79166         (main): Use it.
79168 2009-06-19  Eric Blake  <ebb9@byu.net>
79170         hash: avoid memory leak on allocation failure
79171         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
79172         failure.  Factor repeated algorithm...
79173         (transfer_entries): ...into new helper routine.
79174         (hash_delete): React to hash_rehash return value.
79176         hash: reduce memory pressure in hash_rehash no-op case
79177         * lib/hash.c (next_prime): Avoid overflow.
79178         (hash_initialize): Factor bucket size computation...
79179         (compute_bucket_size): ...into new helper function.
79180         (hash_rehash): Use new function and open coding to reduce memory
79181         pressure, and avoid a memory leak in USE_OBSTACK code.
79182         Reported by Jim Meyering.
79184 2009-06-18  Eric Blake  <ebb9@byu.net>
79186         hash: make rotation more obvious
79187         * modules/hash (Depends-on): Add bitrotate and stdint.
79188         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
79189         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
79190         (SIZE_MAX): Rely on headers for definition.
79191         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
79192         (raw_hasher): Use rotr_sz.
79193         Suggested by Jim Meyering.
79195         hash: fix memory leak in last patch
79196         * lib/hash.c (hash_rehash): Avoid memory leak.
79198         hash: avoid no-op rehashing
79199         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
79201         hash: provide default callback functions
79202         * lib/hash.c (raw_hasher, raw_comparator): New functions.
79203         (hash_initialize): Use them as defaults.
79204         * tests/test-hash.c (main): Test this.
79206         hash: minor optimization
79207         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
79208         when possible.
79209         (hash_initialize): Document this promise.
79210         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
79211         * tests/test-hash.c (hash_compare_strings): Test this.
79213 2009-06-18  Bruno Haible  <bruno@clisp.org>
79215         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
79216         going to be replaced anyway.
79218 2009-06-18  Bruno Haible  <bruno@clisp.org>
79220         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
79221         in one place.
79222         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
79223         be replaced anyway.
79225 2009-06-18  Eric Blake  <ebb9@byu.net>
79227         hash: check for resize before insertion
79228         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
79229         threshold before insertion, so that a pathological hash_rehash
79230         that fills every bucket can still trigger another rehash.
79232 2009-06-18  Jim Meyering  <meyering@redhat.com>
79234         hash-tests: add a loop around the small tests
79235         * tests/test-hash.c (main): Repeat small tests with selected
79236         small initial table sizes.
79238 2009-06-17  Eric Blake  <ebb9@byu.net>
79240         hash: minor cleanups
79241         * lib/hash.h (hash_entry): Make opaque, by moving...
79242         * lib/hash.c (hash_entry): ...here.
79243         (hash_insert): Clarify restrictions on what can be inserted.
79244         (hash_get_next): Clarify when it is safe to remove an element
79245         during traversal.
79246         (check_tuning): Skip verification when tuning is known safe.
79247         (hash_initialize): Clarify restrictions on tuning.
79249 2009-06-17  Jim Meyering  <jim@meyering.net>
79250         and Eric Blake  <ebb9@byu.net>
79252         hash-tests: new module
79253         * modules/hash-tests: New file.
79254         * tests/test-hash.c: New file.
79256 2009-06-17  Eric Blake  <ebb9@byu.net>
79258         strstr-simple: document new module
79259         * MODULES.html.sh: Document new module.
79261         strstr, strcasestr: replace on platforms with broken memchr
79262         * modules/strstr: Split into...
79263         * modules/strstr-simple: ...new module that does not care about
79264         performance, but does care about glibc bug.
79265         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
79266         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
79267         if platform memchr is broken, per Debian bug 521737.
79268         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
79269         memchr.
79270         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
79271         * doc/posix-functions/strstr.texi (strstr): Document the fix.
79272         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
79273         * modules/mountlist (Depends-on): Add strstr-simple.
79274         * modules/gen-uni-tables (Depends-on): Likewise.
79275         * modules/argz (Depends-on): Add strstr.
79277 2009-06-17  Bruno Haible  <bruno@clisp.org>
79279         * modules/posix_spawn-internal (Depends-on): Add errno.
79281 2009-06-17  Bruno Haible  <bruno@clisp.org>
79283         Define missing ESTALE on Interix 3.5.
79284         * lib/errno.in.h (ESTALE): Assign a value if missing.
79285         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
79286         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
79287         missing.
79288         * doc/posix-headers/errno.texi: Mention the Interix bug.
79289         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
79291 2009-06-15  Eric Blake  <ebb9@byu.net>
79293         memchr, memchr2: add valgrind exception
79294         * lib/memchr.valgrind: New file.
79295         * lib/memchr2.valgrind: New file.
79296         * modules/memchr (Files): Distribute valgrind file.
79297         * modules/memchr2 (Files): Likewise.
79299         docs: memchr is no longer obsolete
79300         * MODULES.html.sh: Move memchr from obsolete to string.h section.
79301         * lib/string.in.h (memchr): Simplify logic.
79303 2009-06-14  Jim Meyering  <meyering@redhat.com>
79305         link-follow: fix the "checking..." message to not mention trailing slash
79306         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
79307         never considered trailing slashes.
79309 2009-06-14  Bruno Haible  <bruno@clisp.org>
79311         * m4/memchr.m4: Mention also the bug on IA-64.
79312         * doc/posix-functions/memchr.texi: Likewise.
79314 2009-06-12  Eric Blake  <ebb9@byu.net>
79316         memchr: detect broken x86_64 and alpha implementations
79317         * modules/memchr-tests (Depends-on): Move mmap detection...
79318         * modules/memchr (Depends-on): ...here.
79319         (configure.ac): Set indicator.
79320         * lib/string.in.h (memchr): Declare replacement.
79321         * modules/string (Makefile.am): Trigger replacement.
79322         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
79323         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
79324         bugs.
79325         * doc/posix-functions/memchr.texi (memchr): Document the bug.
79326         * modules/getpagesize (License): Relax license.
79328 2009-06-11  Bruno Haible  <bruno@clisp.org>
79330         * lib/idpriv.h: Add more references.
79332 2009-06-08  Bruno Haible  <bruno@clisp.org>
79334         Tests for module 'idpriv-droptemp'.
79335         * modules/idpriv-droptemp-tests: New file.
79336         * tests/test-idpriv-droptemp.sh: New file.
79337         * tests/test-idpriv-droptemp.su.sh: New file.
79338         * tests/test-idpriv-droptemp.c: New file.
79340         New module 'idpriv-droptemp'.
79341         * lib/idpriv-droptemp.c: New file.
79342         * modules/idpriv-droptemp: New file.
79344 2009-06-08  Bruno Haible  <bruno@clisp.org>
79346         Tests for module 'idpriv-drop'.
79347         * modules/idpriv-drop-tests: New file.
79348         * tests/test-idpriv-drop.sh: New file.
79349         * tests/test-idpriv-drop.su.sh: New file.
79350         * tests/test-idpriv-drop.c: New file.
79352         New module 'idpriv-drop'.
79353         * lib/idpriv.h: New file.
79354         * lib-idpriv-drop.c: New file.
79355         * m4/idpriv.m4: New file.
79356         * modules/idpriv-drop: New file.
79358 2009-06-08  Bruno Haible  <bruno@clisp.org>
79360         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
79361         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
79362         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
79363         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
79364         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
79365         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
79366         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
79368 2009-06-08  Eric Blake  <ebb9@byu.net>
79370         test-strstr: use memory fence, when possible
79371         * tests/test-strstr.c (main): Use memory fence, in order to be
79372         more likely to trigger Debian bug 521737.
79373         * modules/strstr-tests (Files): Pull in additional files.
79375         memchr: no longer obsolete, for wider field testing
79376         * modules/memchr (Status, Notice): Delete, this module is no
79377         longer obsolete.
79378         * modules/vasnprintf (Depends-on): Add memchr.
79380 2009-06-07  Jim Meyering  <meyering@redhat.com>
79382         hash: declare some functions with the warn_unused_result attribute
79383         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
79385 2009-06-07  Bruno Haible  <bruno@clisp.org>
79387         * tests/test-alignof.c: Don't test int64_t if it does not exist.
79388         Reported by Eric Blake.
79390 2009-06-06  Eric Blake  <ebb9@byu.net>
79392         test-alignof: fix typo with long double
79393         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
79394         compiler error.
79396 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
79398         Escape non-texinfo { and }s.
79399         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
79400         markup error.
79402 2009-06-04  Jim Meyering  <meyering@redhat.com>
79404         gitlog-to-changelog: don't infloop on an empty commit log
79405         * build-aux/gitlog-to-changelog: Warn about an empty log message.
79406         Reported by Boris Petersen <transacid@centerim.org>.
79408 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
79410         version-etc: extend for packagers
79411         Add three new configure options, intended for packagers:
79412           --with-packager="packager name"
79413           --with-packager-version="packager-specific version"
79414           --with-packager-bug-reports="packager bug reporting"
79415         An example with coreutils:
79416           $ ./configure \
79417             --with-packager=Gentoo \
79418             --with-packager-bug-report=http://bugs.gentoo.org/ \
79419             --with-packager-version="patchset 1.6"
79420           $ ./src/ls --version | head -n2
79421           ls (GNU coreutils) 7.1-dirty
79422           Packaged by Gentoo (patchset 1.6)
79423         Note that the bug reporting info via --help doesn't show up because
79424         coreutils uses its own custom emit_bug_reporting_address() implementation
79425         in src/system.h.  If it didn't, it'd look like:
79426           $ ./src/ls --help | tail -n4
79427           Report bugs to <bug-coreutils@gnu.org>.
79428           Report Gentoo bugs to <http://bugs.gentoo.org/>.
79429           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
79430           General help using GNU software: <http://www.gnu.org/gethelp/>.
79431         * lib/version-etc.c: Print new information, if provided.
79432         * m4/version-etc.m4: New file.
79433         * modules/version-etc (Files): Add m4/version-etc.m4.
79434         (configure.ac): Add gl_VERSION_ETC.
79436 2009-05-31  Bruno Haible  <bruno@clisp.org>
79438         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
79439         and 'int64_t'.
79440         * modules/alignof-tests (Dependencies): Add stdint.
79441         Reported by Eric Blake.
79443 2009-05-31  Bruno Haible  <bruno@clisp.org>
79445         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
79446         restriction due to compiler bugs.
79447         Reported by Eric Blake.
79449 2009-05-31  Simon Josefsson  <simon@josefsson.org>
79450             Bruno Haible  <bruno@clisp.org>
79452         Fix test-alignof failure.
79453         * lib/alignof.h (alignof_slot): New macro.
79454         (alignof_type): New macro, with the same semantics as the previous
79455         'alignof'.
79456         (alignof): Alias to alignof_slot.
79457         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
79458         check that the results are usable as constant expressions.
79460 2009-05-31  Bruno Haible  <bruno@clisp.org>
79462         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
79463         * tests/test-memchr.c (main): Check that memchr does not read past the
79464         first occurrence of the byte.
79465         * tests/test-strstr.c (main): Update comment.
79466         Suggested by Eric Blake.
79468 2009-05-30  Bruno Haible  <bruno@clisp.org>
79470         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
79471         detail how to use dumpbin.
79472         Reported by David Byron <dbyron@dbyron.com>.
79474 2009-06-02  Simon Josefsson  <simon@josefsson.org>
79476         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
79478 2009-06-02  Simon Josefsson  <simon@josefsson.org>
79480         * m4/manywarnings.m4: Add GCC 4.4 warnings.
79482 2009-05-28  Bruno Haible  <bruno@clisp.org>
79484         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
79485         build-aux/ files.
79487 2009-05-28  Simon Josefsson  <simon@josefsson.org>
79489         * gnulib-tool (func_import): Transform license on build-aux/ files too.
79491 2009-05-27  Simon Josefsson  <simon@josefsson.org>
79493         * gnulib-tool (sed_transform_main_lib_file)
79494         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
79495         regexps.
79497 2009-05-26  Simon Josefsson  <simon@josefsson.org>
79499         * tests/test-strstr.c: Add another self-test.
79500         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
79501         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
79503 2009-05-23  Bruno Haible  <bruno@clisp.org>
79505         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
79506         change.
79508 2009-05-21  Bruno Haible  <bruno@clisp.org>
79510         Simplify use of mode_t varargs.
79511         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
79512         uses 'mode_t' or 'int'.
79513         * lib/openat.c (openat): Likewise.
79514         * lib/open-safer.c (open_safer): Likewise.
79515         * m4/mode_t.m4: New file.
79516         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
79517         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
79518         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
79519         * modules/open (Files): Add m4/mode_t.m4.
79520         * modules/openat (Files): Likewise.
79521         * modules/fcntl-safer (Files): Likewise.
79522         Suggested by Eric Blake.
79524 2009-05-21  Pádraig Brady  <P@draigbrady.com>
79526         * doc/glibc-functions/fallocate.texi: New file.
79527         * doc/gnulib.texi: Include it.
79529 2009-05-21  Eric Blake  <ebb9@byu.net>
79530             Bruno Haible  <bruno@clisp.org>
79532         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
79533         invocations.
79534         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
79536 2009-05-21  Eric Blake  <ebb9@byu.net>
79537             Bruno Haible  <bruno@clisp.org>
79539         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
79540         include_next. Fix of 2008-11-20 commit.
79541         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
79542         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
79543         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
79544         NEXT_MATH_H.
79545         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
79546         instead of NEXT_MATH_H.
79548 2009-05-21  Bruno Haible  <bruno@clisp.org>
79550         Avoid redefinition warnings for SIZE_MAX.
79551         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
79552         Reported by Simon Josefsson.
79554 2009-05-21  Bruno Haible  <bruno@clisp.org>
79556         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
79557         AC_CACHE_VAL.
79559 2009-05-20  Bruno Haible  <bruno@clisp.org>
79561         Make zeroptr.h work on mingw.
79562         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
79563         mprotect.
79564         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
79565         * modules/memchr2-tests (configure.ac): Likewise.
79566         * modules/memcmp-tests (configure.ac): Likewise.
79567         * modules/memmem-tests (configure.ac): Likewise.
79568         * modules/memrchr-tests (configure.ac): Likewise.
79569         Reported by Simon Josefsson.
79571 2009-05-20  Simon Josefsson  <simon@josefsson.org>
79573         * tests/test-glob.c: Include string.h for strcmp prototype.
79575 2009-05-20  Simon Josefsson  <simon@josefsson.org>
79577         * modules/getdelim (Depends-on): Add explicit stdint, although it
79578         was implicitly already pulled in via realloc-posix.
79579         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
79581 2009-05-20  Simon Josefsson  <simon@josefsson.org>
79583         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
79584         G. Christensen" <tgc@jupiterrise.com>.
79585         * m4/sys_socket_h.m4: Check for sa_family_t.
79586         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
79587         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
79588         * tests/test-sys_socket.c: Check that sa_family_t works.
79590 2009-05-18  Eric Blake  <ebb9@byu.net>
79592         maint.mk: allow gnulib_dir in VPATH build
79593         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
79595 2009-05-15  Jim Meyering  <meyering@redhat.com>
79597         maint.mk: Give gnulib_dir a default definition.
79598         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
79599         Thus, most packages no longer need to specify this variable in cfg.mk
79601 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
79603         rename.m4: fix typos that would make non-mingw cross-configure fail
79604         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
79606 2009-05-13  Eric Blake  <ebb9@byu.net>
79608         mmap-anon: avoid out-of-order autoconf expansion
79609         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
79610         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
79611         * modules/memchr-tests (Depends-on): Add extensions.
79612         * modules/memchr2-tests (Depends-on): Add extensions.
79613         * modules/memcmp-tests (Depends-on): Add extensions.
79614         * modules/memmem-tests (Depends-on): Add extensions.
79615         * modules/memrchr-tests (Depends-on): Add extensions.
79617 2009-05-13  Bruno Haible  <bruno@clisp.org>
79619         Make some tests ISO C 99 compliant.
79620         * tests/zerosize-ptr.h: New file.
79621         * tests/test-memchr.c: Include zerosize-ptr.h.
79622         (main): Use a zero-size object pointer instead of NULL.
79623         * tests/test-memchr2.c: Include zerosize-ptr.h.
79624         (main): Use a zero-size object pointer instead of NULL.
79625         * tests/test-memcmp.c: Include zerosize-ptr.h.
79626         (main): Use a zero-size object pointer instead of NULL.
79627         * tests/test-memmem.c: Include zerosize-ptr.h.
79628         (main): Use a zero-size object pointer instead of NULL.
79629         * tests/test-memrchr.c: Include zerosize-ptr.h.
79630         (main): Use a zero-size object pointer instead of NULL.
79631         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
79632         m4/mmap-anon.m4.
79633         (Depends-on): Add getpagesize.
79634         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
79635         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
79636         m4/mmap-anon.m4.
79637         (Depends-on): Add getpagesize.
79638         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
79639         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
79640         m4/mmap-anon.m4.
79641         (Depends-on): Add getpagesize.
79642         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
79643         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
79644         m4/mmap-anon.m4.
79645         (Depends-on): Add getpagesize.
79646         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
79647         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
79648         m4/mmap-anon.m4.
79649         (Depends-on): Add getpagesize.
79650         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
79652 2009-05-12  Bruno Haible  <bruno@clisp.org>
79654         Tests for module 'alignof'.
79655         * modules/alignof-tests: New file.
79656         * tests/test-alignof.c: New file.
79658 2009-05-12  Bruno Haible  <bruno@clisp.org>
79660         Fix alignof macro.
79661         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
79662         vendor compilers that are always correct.
79664 2009-05-12  Bruno Haible  <bruno@clisp.org>
79666         Make the MAP_ANONYMOUS detection work on HP-UX 11.
79667         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
79668         not whether its fully works.
79670 2009-05-12  Bruno Haible  <bruno@clisp.org>
79672         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
79674 2009-05-12  Jim Meyering  <meyering@redhat.com>
79676         * top/maint.mk: Adjust backslash alignment.
79678 2009-05-11  Simon Josefsson  <simon@josefsson.org>
79680         * top/maint.mk: Make $(srcdir)/build-aux configurable.
79682 2009-05-11  Eric Blake  <ebb9@byu.net>
79684         argp: avoid undefined behavior
79685         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
79686         macros.
79688 2009-05-08  Simon Josefsson  <simon@josefsson.org>
79690         * tests/test-vc-list-files-git.sh: Do git config of user.email and
79691         user.name to prevent git commit from complaining.
79693 2009-05-10  Bruno Haible  <bruno@clisp.org>
79695         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
79696         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
79697         it rewrites every file name only once.
79698         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
79700 2009-05-08  Bruno Haible  <bruno@clisp.org>
79702         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
79703         instead of 'max'.
79705 2009-05-08  Simon Josefsson  <simon@josefsson.org>
79707         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
79708         sockaddr_storage test.
79710 2009-05-07  Simon Josefsson  <simon@josefsson.org>
79712         * modules/sys_socket (Makefile.am): Substitute
79713         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
79714         * m4/sys_socket_h.m4: Check for sockaddr_storage.
79715         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
79716         * tests/test-sys_socket.c: Check sockaddr_storage.
79718 2009-05-08  Bruno Haible  <bruno@clisp.org>
79720         New module 'alignof'.
79721         * lib/alignof.h: New file.
79722         * modules/alignof: New file.
79724 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
79725             Bruno Haible  <bruno@clisp.org>
79727         Fix test-file-has-acl on FreeBSD.
79728         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
79729         mask is implicitly added.
79730         * tests/test-file-has-acl.c: Include <signal.h>.
79731         (main): Terminate the test after 5 seconds.
79732         * modules/acl-tests (configure.ac): Check for alarm function.
79734 2009-05-04  Bruno Haible  <bruno@clisp.org>
79736         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
79737         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
79738         * modules/errno (configure.ac): Drop AC_REQUIRE.
79739         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
79740         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
79742 2009-05-04  Simon Josefsson  <simon@josefsson.org>
79744         * modules/glob-tests: New module.
79745         * tests/test-glob.c: Add.
79747 2009-05-04  Simon Josefsson  <simon@josefsson.org>
79749         * modules/fnmatch-tests: New module.
79750         * tests/test-fnmatch.c: Add.
79752 2009-05-04  Eric Blake  <ebb9@byu.net>
79754         maint: make the new no-submodule-changes rule VPATH-safe
79755         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
79757 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
79758             Bruno Haible  <bruno@clisp.org>
79760         acl: Fix infinite loop on FreeBSD.
79761         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
79762         of return value from acl_get_entry.
79763         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
79764         Likewise.
79766 2009-05-03  Bruno Haible  <bruno@clisp.org>
79768         * lib/acl-internal.h (acl_entries): Clarify return value.
79769         * lib/acl_entries.c (acl_entries): Likewise.
79771 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
79773         Bug fix in acl module.
79774         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
79776 2009-05-03  Bruno Haible  <bruno@clisp.org>
79778         Create gperf-generated file in the source dir, not in the build dir.
79779         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
79780         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
79781         * modules/unicase/locale-language (unicase/locale-languages.h):
79782         Likewise.
79783         * modules/unicase/special-casing (unicase/special-casing-table.h):
79784         Likewise.
79785         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
79786         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
79787         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
79788         Reported by Ralf Wildenhues.
79790 2009-05-03  Bruno Haible  <bruno@clisp.org>
79792         * modules/fnmatch (Description, configure.ac): Taken from
79793         fnmatch-posix.
79794         * modules/fnmatch-posix: Turn into a symbolic reference to the
79795         'fnmatch' module, and deprecate.
79796         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
79798 2009-05-03  Bruno Haible  <bruno@clisp.org>
79800         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
79801         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
79802         Reported by Ralf Wildenhues.
79804 2009-05-04  Simon Josefsson  <simon@josefsson.org>
79806         * m4/fnmatch.m4: Fix fnmatch re-define.
79808 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
79810         priv-set: new module and tests; adapt write-any-file
79811         * lib/priv-set.c: New file.
79812         * lib/priv-set.h: New file.
79813         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
79814         * lib/write-any-file.c: Simplify by using priv-set module.
79815         * m4/priv-set.m4: New file.
79816         * modules/priv-set: New file.
79817         * modules/unlinkdir: Add dependency on priv-set module.
79818         * modules/write-any-file: Likewise.
79820         Tests for module 'priv-set'.
79821         * modules/priv-set-tests: New file.
79822         * tests/test-priv-set.c: New file.
79824 2009-05-03  Jim Meyering  <meyering@redhat.com>
79825             Bruno Haible  <bruno@clisp.org>
79827         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
79828         use the converted UTF-8 variant of the name instead.
79830 2009-05-03  Jim Meyering  <meyering@redhat.com>
79832         tests: tighten some getdate tests
79833         * tests/test-getdate.c (main): Tighten tests: require equality,
79834         not just greater than.  Set TZ envvar to UTC0.
79836 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
79838         getdate: correctly interpret "next monday" when run on a Monday
79839         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
79840         that e.g., "next tues" (when run on a tuesday) results in a date
79841         that is one week in the future, and not today's date.
79842         I.e., add a week when the wday is the same as the current one.
79843         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
79844         and earlier by Martin Bernreuther and Jan Minář.
79845         * tests/test-getdate.c (main): Check that "next DAY" is always in
79846         the future and that "last DAY" is always in the past.
79848 2009-05-02  Jim Meyering  <meyering@redhat.com>
79850         build: ensure that a release build fails when a submodule is unclean
79851         * top/maint.mk (no-submodule-changes): New rule.
79852         (alpha beta major): Depend on it.
79854 2009-05-02  Bruno Haible  <bruno@clisp.org>
79856         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
79857         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
79858         shell variable gl_fnmatch_required to detect which variant is
79859         requested.
79860         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
79861         gl_FUNC_FNMATCH_POSIX.
79862         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
79863         exclude fnmatch-posix.
79865 2009-05-02  Bruno Haible  <bruno@clisp.org>
79867         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
79868         * modules/mbsrtowcs (License): Change to LGPLv2+.
79869         * modules/strnlen1 (License): Likewise.
79870         Reported by Simon Josefsson.
79872 2009-05-02  Bruno Haible  <bruno@clisp.org>
79874         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
79875         "cross".
79876         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
79877         gnulib-tool was called with option --source-base=lib.
79879 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79881         Use automake *-local hooks without commands, for extensibility.
79882         * modules/localcharset (Makefile.am): Rename install-exec-local
79883         rule to install-exec-localcharset, and make it a prerequisite of
79884         install-exec-local.  Likewise, rename the uninstall-local rule to
79885         uninstall-localcharset, and make it a prerequisite of the former.
79887 2009-05-01  Bruno Haible  <bruno@clisp.org>
79889         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
79890         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
79891         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
79892         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
79893         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
79894         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
79895         m4/locale-zh.m4, m4/codeset.m4.
79897         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
79898         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
79899         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
79900         m4/locale-zh.m4.
79902         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
79903         REPLACE_WCRTOMB if mbstate_t must be replaced.
79904         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
79905         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
79907 2009-05-01  Bruno Haible  <bruno@clisp.org>
79909         Avoid compiler warnings when redefining macros defined by <libintl.h>.
79910         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
79911         dngettext, dcngettext, textdomain, bindtextdomain,
79912         bind_textdomain_codeset): Undefine before redefining.
79914 2009-04-30  Bruno Haible  <bruno@clisp.org>
79916         Fix bug introduced on 2009-04-25.
79917         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
79918         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
79919         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
79920         is defined.
79921         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
79922         is defined.
79923         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
79924         is defined.
79925         Reported by Elbert_Pol <elbert.pol@gmail.com>.
79927 2009-04-28  Bruno Haible  <bruno@clisp.org>
79929         Comment tweaks.
79930         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
79931         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
79932         * lib/unicase.h (u*_casexfrm): Likewise.
79933         Reported by Paolo Bonzini.
79935 2009-04-28  Bruno Haible  <bruno@clisp.org>
79937         Fix a compilation error.
79938         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
79939         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
79940         Reported by Jim Meyering.
79942 2009-04-27  Bruno Haible  <bruno@clisp.org>
79944         New module 'libunistring'.
79945         * modules/libunistring: New file.
79946         * m4/libunistring.m4: New file.
79947         * MODULES.html.sh (Unicode string functions): Add it.
79949 2009-04-27  Eric Blake  <ebb9@byu.net>
79951         maint.mk: allow package-specific header to provide <config.h>
79952         * top/maint.mk (sc_require_config_h): New variable.
79953         (sc_require_config_h, sc_require_config_h_first): Use it.
79955 2009-04-27  Simon Josefsson  <simon@josefsson.org>
79957         * top/maint.mk (sc_avoid_if_before_free): Except
79958         useless-if-before-free script.
79960 2009-04-27  Eric Blake  <ebb9@byu.net>
79962         maintainer-makefile: depend on all required helper scripts
79963         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
79964         useless-if-before-free.
79965         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
79966         version, rather than assuming gnulib checkout is available.
79967         Reported by Simen Josefsson.
79969 2009-04-26  Bruno Haible  <bruno@clisp.org>
79971         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
79972         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
79973         "../" or "..".
79975 2009-04-26  Bruno Haible  <bruno@clisp.org>
79977         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
79978         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
79979         AC_LIB_HAVE_LINKFLAGS.
79981 2009-04-26  Bruno Haible  <bruno@clisp.org>
79983         Simplify calling convention of u*_conv_from_encoding.
79984         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
79985         u32_conv_from_encoding): Expect a resultbuf argument and return the
79986         result directly as a pointer.
79987         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
79988         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
79989         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
79990         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
79991         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
79992         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
79993         Update.
79994         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
79995         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
79996         * lib/vasnprintf.c (VASNPRINTF): Update.
79997         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
79998         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
79999         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
80000         * NEWS: Mention the change.
80002 2009-04-26  Bruno Haible  <bruno@clisp.org>
80004         Simplify calling convention of u*_conv_to_encoding.
80005         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
80006         u32_conv_to_encoding): Expect a resultbuf argument and return the
80007         result directly as a pointer.
80008         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
80009         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
80010         freeing scaled_offsets if mem_iconveha failed.
80011         * lib/unicase/u-casexfrm.h (FUNC): Update.
80012         * lib/uninorm/u-normxfrm.h (FUNC): Update.
80013         * lib/vasnprintf.c (VASNPRINTF): Update.
80014         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
80015         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
80016         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
80017         * NEWS: Mention the change.
80019 2009-04-26  Bruno Haible  <bruno@clisp.org>
80021         Avoid test failures on AIX and OSF/1.
80022         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
80023         malloc(0).
80024         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
80025         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
80026         Likewise.
80027         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
80028         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
80029         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
80030         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
80031         * doc/posix-functions/malloc.texi: Document the portability problem
80032         related to malloc(0).
80034 2009-04-26  Bruno Haible  <bruno@clisp.org>
80036         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
80037         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
80038         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
80040 2009-04-25  Bruno Haible  <bruno@clisp.org>
80042         Avoid link error when creating a namespace clean library.
80043         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
80044         as macro with arguments if already defined as an alias.
80045         * lib/signbitf.c (gl_signbitf): Don't undefine.
80046         * lib/signbitd.c (gl_signbitd): Don't undefine.
80047         * lib/signbitl.c (gl_signbitl): Don't undefine.
80049 2009-04-25  Jim Meyering  <meyering@redhat.com>
80051         vc-list-files: fix another quoting bug
80052         * build-aux/vc-list-files: Avoid sed backslash expansion
80053         of pathological directory names.
80055 2009-04-25  Eric Blake  <ebb9@byu.net>
80057         vc-list-files: fix shell quoting error
80058         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
80059         timestamp.
80061 2009-04-25  Jim Meyering  <meyering@redhat.com>
80063         vc-list-files: restore lost functionality with subdir argument
80064         * build-aux/vc-list-files: When given a non-"." sub-directory
80065         argument, substitute the $dir/ prefix back onto each resulting name.
80066         Otherwise, coreutils' root_tests check would fail.
80068 2009-04-24  Eric Blake  <ebb9@byu.net>
80070         vc-list-files: ignore git symlinks
80071         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
80072         than ls-files, to ignore git symlinks.
80074         maint.mk: import improvements from m4
80075         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
80076         (move_if_change): Delete unused macro.
80077         (news-date-check, vc-diff-check): Support VPATH builds.
80078         (announcement): Likewise.  Split --bootstrap-tools list...
80079         (boostrap-tools): ...into separate list, which can be overridden
80080         in cfg.mk.
80081         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
80082         requiring dependency on useless-if-before-free module.
80083         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
80084         Support VPATH builds.
80086 2009-04-24  Jim Meyering  <meyering@redhat.com>
80088         maint.mk: remove coreutils-specific rules and variables
80089         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
80090         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
80091         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
80093         maint.mk: remove obsolete rule
80094         * top/maint.mk (rel-check): Remove rule.
80095         (WGET, WGETFLAGS): Remove now-unused variables.
80097 2009-04-24  Simon Josefsson  <simon@josefsson.org>
80099         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
80100         consistency.
80102         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
80103         '$(PATH_SEPARATOR)' instead of ':'.
80105 2009-04-24  Simon Josefsson  <simon@josefsson.org>
80107         * lib/getopt1.c (main): Use 'const' for static array.
80109 2009-04-24  Simon Josefsson  <simon@josefsson.org>
80111         * top/maint.mk: Sync with coreutils.
80112         * NEWS: Explain incompatibilities.
80114 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
80115             Bruno Haible  <bruno@clisp.org>
80117         Fix cross-compilation results.
80118         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
80119         statement, as third argument of AC_TRY_RUN.
80120         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
80121         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
80122         Likewise.
80123         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
80124         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
80125         Likewise.
80126         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
80127         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
80128         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
80130 2009-04-20  Bruno Haible  <bruno@clisp.org>
80132         Avoid test failure on mingw.
80133         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
80135 2009-04-20  Bruno Haible  <bruno@clisp.org>
80137         Avoid compilation error on mingw.
80138         * modules/localename-tests (Depends-on): Add locale.
80140 2009-04-19  Bruno Haible  <bruno@clisp.org>
80142         Support for building a shared library on Windows platforms.
80143         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
80144         (main): Test the presence of UNINORM_NFC here.
80145         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
80146         (main): Test the presence of UNINORM_NFD here.
80147         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
80148         (main): Test the presence of UNINORM_NFKC here.
80149         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
80150         (main): Test the presence of UNINORM_NFKD here.
80152 2009-04-19  Bruno Haible  <bruno@clisp.org>
80154         Avoid a compiler warning.
80155         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
80156         Change type of variable 'sequence'.
80158 2009-04-19  Bruno Haible  <bruno@clisp.org>
80160         * modules/configmake (Makefile.am): When the contents of configmake.h
80161         does not change, arrange to preserve its modification time.
80163 2009-04-17  Simon Josefsson  <simon@josefsson.org>
80165         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
80166         gettext domain.
80168 2009-04-16  Jim Meyering  <meyering@redhat.com>
80170         useless-if-before-free: improve conversion code
80171         * build-aux/useless-if-before-free: Adjust code-in-comment to match
80172         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
80174 2009-04-14  Bruno Haible  <bruno@clisp.org>
80176         * modules/fcntl (Depends-on): Add extensions.
80177         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
80179 2009-04-12  Ben Pfaff  <blp@gnu.org>
80181         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
80182         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
80184 2009-03-20  Ben Pfaff  <blp@gnu.org>
80186         Make rename replace existing destinations on Windows.
80187         * m4/rename.m4: Add test for Mingw.
80188         * lib/rename.c: Add rename replacement that uses MoveFileEx with
80189         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
80190         * doc/posix-functions/rename.texi: Document.
80192 2009-04-10  Bruno Haible  <bruno@clisp.org>
80194         New include file "iconveh.h".
80195         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
80196         * lib/striconveh.h: Include it.
80197         (enum iconv_ilseq_handler): Remove definition.
80198         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
80199         striconveh.h.
80200         * lib/striconveha.c: Include striconveh.h.
80201         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
80202         * modules/striconveh (Files): Add lib/iconveh.h.
80203         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
80204         lib/striconveh.h.
80206 2009-04-10  Bruno Haible  <bruno@clisp.org>
80208         * lib/uniconv.h: Update comment.
80210 2009-04-10  Bruno Haible  <bruno@clisp.org>
80212         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
80213         always.
80214         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
80215         * lib/unistr/u16-mbtouc-aux.c: Likewise.
80216         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
80217         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
80218         "unistring-notinline.h", so that the function gets defined always.
80219         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
80220         * lib/unistr/u8-uctomb.c: Likewise.
80221         * lib/unistr/u16-mbtouc.c: Likewise.
80222         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
80223         * lib/unistr/u16-uctomb.c: Likewise.
80224         * lib/unistr/u32-mbtouc.c: Likewise.
80225         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
80226         * lib/unistr/u32-uctomb.c: Likewise.
80228 2009-04-10  Bruno Haible  <bruno@clisp.org>
80230         Mark 'utime' obsolete.
80231         * modules/utime (Status, Notice): New sections.
80232         Suggested by Jim Meyering.
80234         Fix cross-compile guess for utime test.
80235         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
80236         autoconf.
80237         * doc/posix-functions/utime.texi: Give more precisions.
80238         Reported by Jan <ipif@ymail.com>.
80240 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
80242         filevercmp: correct today's change
80243         * lib/filevercmp.c: Also handle coreutils' test inputs.
80244         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
80246         Fix regression in 'filevercmp' module. Thanks Sven Joachim
80247         for reporting it.
80248         * lib/filevercmp.c: Special handle for "", "." and "..".
80249         * tests/test-filevercmp.c: Enlarge the set suite.
80251 2009-04-07  Jim Meyering  <meyering@redhat.com>
80253         useless-if-before-free: show how to remove braced useless free, too
80254         * build-aux/useless-if-before-free: still only in a comment, though.
80256 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
80258         maint.mk: import changes to syntax-check macros from coreutils
80259         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
80260         Use them in the relevant macros.
80262 2009-04-06  Bruno Haible  <bruno@clisp.org>
80264         Fix unportable use of bit-fields.
80265         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
80266         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
80267         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
80269 2009-04-06  Bruno Haible  <bruno@clisp.org>
80271         Avoid test failures on AIX and OSF/1.
80272         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
80273         that malloc(0) = NULL.
80274         * tests/unicase/test-u8-tolower.c (check): Likewise.
80275         * tests/unicase/test-u8-totitle.c (check): Likewise.
80276         * tests/unicase/test-u8-toupper.c (check): Likewise.
80277         * tests/unicase/test-u16-casefold.c (check): Likewise.
80278         * tests/unicase/test-u16-tolower.c (check): Likewise.
80279         * tests/unicase/test-u16-totitle.c (check): Likewise.
80280         * tests/unicase/test-u16-toupper.c (check): Likewise.
80281         * tests/unicase/test-u32-casefold.c (check): Likewise.
80282         * tests/unicase/test-u32-tolower.c (check): Likewise.
80283         * tests/unicase/test-u32-totitle.c (check): Likewise.
80284         * tests/unicase/test-u32-toupper.c (check): Likewise.
80285         * tests/uninorm/test-u8-nfc.c (check): Likewise.
80286         * tests/uninorm/test-u8-nfd.c (check): Likewise.
80287         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
80288         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
80289         * tests/uninorm/test-u16-nfc.c (check): Likewise.
80290         * tests/uninorm/test-u16-nfd.c (check): Likewise.
80291         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
80292         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
80293         * tests/uninorm/test-u32-nfc.c (check): Likewise.
80294         * tests/uninorm/test-u32-nfd.c (check): Likewise.
80295         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
80296         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
80298 2009-04-05  Bruno Haible  <bruno@clisp.org>
80300         Work around an autoconf limitation.
80301         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
80302         comment line if it would be longer than 3 KB.
80304 2009-04-05  Bruno Haible  <bruno@clisp.org>
80306         Avoid test failure with libiconv-1.13.
80307         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
80308         of the expected test results.
80310 2009-04-05  Bruno Haible  <bruno@clisp.org>
80312         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
80313         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
80314         that it should be installed.
80316 2009-04-05  Bruno Haible  <bruno@clisp.org>
80318         * gnulib-tool: New option --copy-file.
80319         (func_usage): Document it.
80320         (func_dest_tmpfilename): Moved out of func_import.
80321         (func_add_file, func_update_file): New functions, extracted from
80322         func_import.
80323         (func_import): Update.
80325 2009-04-05  Karl Berry  <karl@gnu.org>
80327         * README: prominently mention gnulib-tool.
80328         Rearrange sections so getting the code is near the top.
80330 2009-04-05  Bruno Haible  <bruno@clisp.org>
80332         * lib/unicase.h: Mention u*_cmp2.
80333         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
80334         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
80335         * lib/unicase/ulc-casecmp.c: Likewise.
80336         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
80337         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
80338         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
80339         unistr/u8-cmp.
80340         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
80341         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
80342         unistr/u16-cmp.
80343         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
80344         unistr/u32-cmp.
80346         * lib/uninorm.h: Mention u*_cmp2.
80347         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
80348         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
80349         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
80350         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
80351         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
80352         unistr/u8-cmp.
80353         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
80354         unistr/u16-cmp.
80355         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
80356         unistr/u32-cmp.
80358         New module 'unistr/u32-cmp2'.
80359         * lib/unistr/u32-cmp2.c: New file.
80360         * modules/unistr/u32-cmp2: New file.
80362         New module 'unistr/u16-cmp2'.
80363         * lib/unistr/u16-cmp2.c: New file.
80364         * modules/unistr/u16-cmp2: New file.
80366         New module 'unistr/u8-cmp2'.
80367         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
80368         * lib/unistr/u8-cmp2.c: New file.
80369         * lib/unistr/u-cmp2.h: New file.
80370         * modules/unistr/u8-cmp2: New file.
80372 2009-04-05  Bruno Haible  <bruno@clisp.org>
80374         * lib/unictype.h (uc_property_is_valid): New macro.
80375         * tests/unictype/test-pr_byname.c (main): Use it.
80377         * lib/unistr.h: Doc fixes.
80378         * lib/uniconv.h: Doc fixes.
80379         * lib/unictype.h: Doc fixes.
80381 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
80383         Port coreutils 7.2 to Solaris 8.
80385         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
80386         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
80387         for Solaris 8.  This is a bit of a hack, as it means it's the
80388         caller's responsibility to add -lnsl if needed, but most likely it
80389         won't be needed since only getaddrinfo uses this and getaddrinfo
80390         isn't needed on Solaris 8.
80392         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
80393         problem to Solaris 8 encountered with coreutils 7.2, which
80394         resulted in a message "fnmatch.c:292: warning: passing argument 4
80395         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
80396         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
80398 2009-04-03  Simon Josefsson  <simon@josefsson.org>
80400         * m4/ld-version-script.m4: Add FIXME comment.
80402 2009-04-02  Simon Josefsson  <simon@josefsson.org>
80404         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
80405         SOVERSION variable.
80407 2009-04-02  Bruno Haible  <bruno@clisp.org>
80409         * Makefile (info, html, dvi, pdf): Combine the rules.
80410         Suggested by Jim Meyering.
80412 2009-04-01  Bruno Haible  <bruno@clisp.org>
80414         * Makefile (info, html, dvi, pdf): New targets.
80415         Reported by Reuben Thomas <rrt@sc3d.org>.
80417 2009-04-01  Bruno Haible  <bruno@clisp.org>
80419         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
80420         can be put into PATH.
80421         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
80423 2009-04-01  Bruno Haible  <bruno@clisp.org>
80425         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
80427 2009-04-01  Bruno Haible  <bruno@clisp.org>
80429         Rename module 'visibility'.
80430         * modules/lib-symbol-visibility: Renamed from modules/visibility.
80431         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
80432         * doc/gnulib.texi: Update.
80433         * MODULES.html.sh (Misc): Update.
80434         * NEWS: Mention the change.
80436 2009-04-01  Simon Josefsson  <simon@josefsson.org>
80438         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
80439         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
80440         Eric Blake <ebb9@byu.net> for review.
80441         * MODULES.html.sh: Add lib-msvc-compat.
80442         * doc/gnulib.texi: Link to new section.
80443         * m4/ld-output-def.m4: New file.
80444         * doc/ld-output-def.texi: New file.
80446 2009-04-01  Simon Josefsson  <simon@josefsson.org>
80448         Rename ld-version-script to lib-symbol-versions.  Suggested by
80449         Bruno Haible <bruno@clisp.org>.
80450         * modules/ld-version-script: Renamed to lib-symbol-versions.
80451         * doc/ld-version-script.texi: Fix module name.
80452         * MODULES.html.sh: Add lib-symbol-versions.
80454 2009-03-31  Simon Josefsson  <simon@josefsson.org>
80456         * modules/u64-tests: New file.
80457         * tests/test-u64.c: New file.
80459 2009-03-04  Simon Josefsson  <simon@josefsson.org>
80461         * MODULES.html.sh: Mention u64.
80462         * modules/u64: New module.
80463         * modules/crypto/sha512: Depend on u64 module instead of providing
80464         u64.h.
80466 2009-03-27  Eric Blake  <ebb9@byu.net>
80468         test-strerror: make debugging EAI_SYSTEM easier
80469         * modules/getaddrinfo-tests (Depends-on): Add strerror.
80470         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
80471         failure was EAI_SYSTEM.
80473 2009-03-25  Bruno Haible  <bruno@clisp.org>
80475         Fix a problem with --enable-relocatable on Solaris 7.
80476         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
80477         since 2008-02-24.
80479 2009-03-25  Eric Blake  <ebb9@byu.net>
80481         test-sockets: avoid gcc warning
80482         * tests/test-sockets.c (main): Silence compiler warning.
80484 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
80486         New modules nproc, pthread, contributed by Glen Lenker.
80488         * MODULES.html.sh: Add pthread, nproc.
80489         * lib/nproc.c: New file.
80490         * lib/nproc.h: New file.
80491         * lib/pthread.in.h: New file.
80492         * m4/pthread.m4: New file.
80493         * modules/nproc: New file.
80494         * modules/pthread: New file.
80496 2009-03-24  Simon Josefsson  <simon@josefsson.org>
80498         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
80499         New variable.
80501 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
80503         filevercmp: handle simple~ and numbered.~3~ backup suffixes
80504         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
80505         * tests/test-filevercmp.c: Add tests for backup suffixes.
80507 2009-03-24  Simon Josefsson  <simon@josefsson.org>
80509         * modules/stdlib (Depends-on): Add stdint, needed when defining
80510         struct random_data on, for example, HP-UX 10.20.  Reported by
80511         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
80513 2009-03-24  Simon Josefsson  <simon@josefsson.org>
80515         * lib/readline.c (readline): Call fflush on stdout after printing
80516         prompt.
80518 2009-03-20  Bruno Haible  <bruno@clisp.org>
80520         Remove dependency from 'close' module to -lws2_32 on native Windows.
80521         * lib/close-hook.h: New file.
80522         * lib/close-hook.c: New file.
80523         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
80524         w32sock.h.
80525         (_gl_close_fd_maybe_socket): Remove function.
80526         (rpl_close): Invoke execute_all_close_hooks instead of
80527         _gl_close_fd_maybe_socket.
80528         * lib/sockets.c: Include close-hook.h, w32sock.h.
80529         (close_fd_maybe_socket): New function, essentially from lib/close.c.
80530         (close_sockets_hook): New variable.
80531         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
80532         (gl_sockets_cleanup): Unregister it.
80533         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
80534         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
80535         * modules/close-hook: New file.
80536         * modules/close (Files): Remove lib/w32sock.h.
80537         (Depends-on): Add close-hook.
80538         (Link): Remove section.
80539         * modules/sockets (Files): Add lib/w32sock.h.
80540         (Depends-on): Add close-hook.
80541         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
80542         invocation.
80543         * NEWS: Mention that LIB_CLOSE is gone.
80545 2009-03-23  Eric Blake  <ebb9@byu.net>
80547         signal-tests: test previous patch
80548         * tests/test-signal.c: New file.
80549         * modules/signal-tests: Likewise.
80551         signal.h: always support 'volatile sig_atomic_t'
80552         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
80553         (gl_SIGNAL_H_DEFAULTS): Add a default.
80554         * modules/signal (Makefile.am): Substitute if needed.
80555         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
80556         users can blindly add volatile.
80557         * doc/posix-headers/signal.texi (signal.h): Document it.
80558         Reported by Matthew Woehlke.
80560 2009-03-23  Jim Meyering  <meyering@redhat.com>
80562         pathmax: PATH_MAX: use pathconf only when available
80563         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
80564         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
80565         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
80566         This avoids a link failure in a PSP cross-compilation environment
80567         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
80569         * lib/vasnprintf.c (divide): Fix typo in comment.
80571 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80573         * gnulib-tool (func_filter_filelist): Fix comment.
80575 2009-03-20  Bruno Haible  <bruno@clisp.org>
80577         Make sockets.h self-contained.
80578         * lib/sockets.c: Include sockets.h first.
80579         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
80581 2009-03-19  Eric Blake  <ebb9@byu.net>
80583         doc: mention more functions added in cygwin 1.7.0
80584         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
80585         addition.
80586         * doc/posix-functions/log2f.texi: Likewise.
80588 2009-03-19  Jim Meyering  <meyering@redhat.com>
80590         fsusage: avoid syntax error due to statement-before-declaration
80591         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
80592         after all declarations.  Reported by Matthew Woehlke in
80593         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
80595 2009-03-18  Eric Blake  <ebb9@byu.net>
80597         build-aux/compile: sync from automake
80598         * build-aux/compile: New file, from automake.
80599         * config/srclist.txt: Mention build-aux/compile.
80601 2009-03-17  Bruno Haible  <bruno@clisp.org>
80603         * lib/git-merge-changelog.c: Fix typo in comment.
80604         Reported by Reuben Thomas <rrt@sc3d.org>.
80606 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
80608         * m4/regex.m4: update and improve help for
80609         --without-included-regex.
80611 2009-03-17  Simon Josefsson  <simon@josefsson.org>
80613         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
80614         failure on missing include files.
80616 2009-03-17  Eric Blake  <ebb9@byu.net>
80618         doc: mention more functions added in cygwin 1.7.0
80619         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
80620         addition.
80621         * doc/posix-functions/fwscanf.texi: Likewise.
80622         * doc/posix-functions/swprintf.texi: Likewise.
80623         * doc/posix-functions/swscanf.texi: Likewise.
80624         * doc/posix-functions/vfwprintf.texi: Likewise.
80625         * doc/posix-functions/vfwscanf.texi: Likewise.
80626         * doc/posix-functions/vswprintf.texi: Likewise.
80627         * doc/posix-functions/vswscanf.texi: Likewise.
80628         * doc/posix-functions/vwprintf.texi: Likewise.
80629         * doc/posix-functions/vwscanf.texi: Likewise.
80630         * doc/posix-functions/wcscasecmp.texi: Likewise.
80631         * doc/posix-functions/wcsdup.texi: Likewise.
80632         * doc/posix-functions/wcsftime.texi: Likewise.
80633         * doc/posix-functions/wcsncasecmp.texi: Likewise.
80634         * doc/posix-functions/wprintf.texi: Likewise.
80635         * doc/posix-functions/wscanf.texi: Likewise.
80636         * doc/glibc-functions/gethostbyname2.texi: Likewise.
80638 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80640         maint.mk: really add $(AM_MAKEFLAGS)
80641         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
80642         was inadvertently omitted in the last commit.
80643         Spotted by Bruno Haible.
80645         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
80646         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
80647         $(AM_MAKEFLAGS)' rather than plain `make'.
80649         gnulib-tool: execute $MAKE not make
80650         * gnulib-tool: Default $MAKE to 'make'.
80651         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
80652         than make.  Initialize $MAKE in the do-autobuild script.
80654         gnulib-tool: use $MAKE not make in generated files
80655         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
80656         make, in generated files.  Initialize $MAKE in the do-autobuild
80657         script.
80659         * top/GNUmakefile (_have-git-version-gen): Fix typo.
80661         GNUmakefile: disable parallelism only for multiple, recursive targets
80662         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
80663         additions in the Makefile.
80664         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
80665         by Automake.
80666         (.NOTPARALLEL): Only disable parallel builds if multiple targets
80667         are listed on the command line and at least one of them is
80668         listed in $(ALL_RECURSIVE_TARGETS).
80670 2009-03-14  Bruno Haible  <bruno@clisp.org>
80672         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
80673         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
80674         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
80675         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
80676         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
80677         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
80678         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
80679         unistr/u8-uctomb.
80680         * modules/unistr/u8-strchr (Depends-on): Likewise.
80681         * modules/unistr/u8-strrchr (Depends-on): Likewise.
80682         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
80683         unistr/u16-uctomb.
80684         * modules/unistr/u16-strchr (Depends-on): Likewise.
80685         * modules/unistr/u16-strrchr (Depends-on): Likewise.
80687 2009-03-12  Bruno Haible  <bruno@clisp.org>
80689         Work around select() bug on Interix 3.5.
80690         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
80691         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
80692         * m4/select.m4: New file.
80693         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
80694         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
80695         * modules/select (Files): Add m4/select.m4.
80696         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
80697         * modules/nanosleep (Depends-on): Add select.
80698         * modules/poll (Depends-on): Likewise.
80699         * doc/posix-functions/select.texi: Mention the Interix bug.
80700         Reported by Markus Duft <mduft@gentoo.org>.
80702         * lib/select.c: Renamed from lib/winsock-select.c.
80703         * modules/select (Files): Add lib/select.c, remove
80704         lib/winsock-select.c.
80705         (configure.ac): Update.
80707 2009-03-12  Jim Meyering  <meyering@redhat.com>
80709         avoid gcc warnings about unused macro definitions
80710         * lib/readtokens.c (STREQ): Remove unused definition.
80711         * lib/xmalloc.c (SIZE_MAX): Likewise.
80712         * lib/openat-die.c (N_): Likewise.
80713         * lib/mountlist.c (SIZE_MAX): Remove definition.
80714         Instead, include <stdint.h>.
80715         * lib/readutmp.c: Likewise.
80716         * modules/readutmp (Depends-on): Add stdint.
80717         * modules/mountlist (Depends-on): Add stdint.
80718         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
80720 2009-03-10  Bruno Haible  <bruno@clisp.org>
80722         Tests for module 'mbmemcasecoll'.
80723         * modules/mbmemcasecoll-tests: New file.
80724         * tests/test-mbmemcasecoll1.sh: New file.
80725         * tests/test-mbmemcasecoll2.sh: New file.
80726         * tests/test-mbmemcasecoll3.sh: New file.
80727         * tests/test-mbmemcasecoll.c: New file.
80729         New module 'mbmemcasecoll'.
80730         * lib/mbmemcasecoll.h: New file.
80731         * lib/mbmemcasecoll.c: New file.
80732         * modules/mbmemcasecoll: New file.
80734         * tests/test-mbmemcasecmp.h: New file, extracted from
80735         tests/test-mbmemcasecmp.c.
80736         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
80737         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
80738         (main): Update.
80739         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
80741 2009-03-09  Bruno Haible  <bruno@clisp.org>
80743         Tests for module 'mbmemcasecmp'.
80744         * modules/mbmemcasecmp-tests: New file.
80745         * tests/test-mbmemcasecmp1.sh: New file.
80746         * tests/test-mbmemcasecmp2.sh: New file.
80747         * tests/test-mbmemcasecmp3.sh: New file.
80748         * tests/test-mbmemcasecmp.c: New file.
80750         New module 'mbmemcasecmp'.
80751         * lib/mbmemcasecmp.h: New file.
80752         * lib/mbmemcasecmp.c: New file.
80753         * modules/mbmemcasecmp: New file.
80755 2009-03-09  Bruno Haible  <bruno@clisp.org>
80757         Tests for module 'unicase/ulc-casecoll'.
80758         * modules/unicase/ulc-casecoll-tests: New file.
80759         * tests/unicase/test-ulc-casecoll1.sh: New file.
80760         * tests/unicase/test-ulc-casecoll2.sh: New file.
80761         * tests/unicase/test-ulc-casecoll.c: New file.
80763         New module 'unicase/ulc-casecoll'.
80764         * lib/unicase.h (ulc_casecoll): New declaration.
80765         * lib/unicase/ulc-casecoll.c: New file.
80766         * modules/unicase/ulc-casecoll: New file.
80768         New module 'unicase/ulc-casexfrm'.
80769         * lib/unicase.h (ulc_casexfrm): New declaration.
80770         * lib/unicase/ulc-casexfrm.c: New file.
80771         * modules/unicase/ulc-casexfrm: New file.
80773 2009-03-09  Bruno Haible  <bruno@clisp.org>
80775         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
80776         invocations.
80778         * m4/mbscasecmp.m4: Remove file.
80779         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
80780         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
80782         * m4/mbscasestr.m4: Remove file.
80783         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
80784         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
80786         * m4/mbschr.m4: Remove file.
80787         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
80788         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
80790         * m4/mbscspn.m4: Remove file.
80791         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
80792         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
80794         * m4/mbslen.m4: Remove file.
80795         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
80796         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
80798         * m4/mbsncasecmp.m4: Remove file.
80799         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
80800         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
80802         * m4/mbsnlen.m4: Remove file.
80803         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
80804         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
80806         * m4/mbspbrk.m4: Remove file.
80807         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
80808         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
80810         * m4/mbspcasecmp.m4: Remove file.
80811         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
80812         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
80814         * m4/mbsrchr.m4: Remove file.
80815         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
80816         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
80818         * m4/mbssep.m4: Remove file.
80819         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
80820         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
80822         * m4/mbsspn.m4: Remove file.
80823         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
80824         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
80826         * m4/mbsstr.m4: Remove file.
80827         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
80828         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
80830         * m4/mbstok_r.m4: Remove file.
80831         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
80832         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
80834         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
80836         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
80837         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
80839         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
80841 2009-03-08  Bruno Haible  <bruno@clisp.org>
80843         Tests for module 'unicase/ulc-casecmp'.
80844         * modules/unicase/ulc-casecmp-tests: New file.
80845         * tests/unicase/test-ulc-casecmp1.sh: New file.
80846         * tests/unicase/test-ulc-casecmp2.sh: New file.
80847         * tests/unicase/test-ulc-casecmp.c: New file.
80849         New module 'unicase/ulc-casecmp'.
80850         * lib/unicase.h (ulc_casecmp): New declaration.
80851         * lib/unicase/ulc-casecmp.c: New file.
80852         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
80853         'const SRC_UNIT *'.
80854         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
80855         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
80856         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
80857         * modules/unicase/ulc-casecmp: New file.
80859         Tests for module 'unicase/u32-is-cased'.
80860         * modules/unicase/u32-is-cased-tests: New file.
80861         * tests/unicase/test-u32-is-cased.c: New file.
80863         Tests for module 'unicase/u16-is-cased'.
80864         * modules/unicase/u16-is-cased-tests: New file.
80865         * tests/unicase/test-u16-is-cased.c: New file.
80867         Tests for module 'unicase/u8-is-cased'.
80868         * modules/unicase/u8-is-cased-tests: New file.
80869         * tests/unicase/test-u8-is-cased.c: New file.
80870         * tests/unicase/test-is-cased.h: New file.
80872         New module 'unicase/u32-is-cased'.
80873         * lib/unicase/u32-is-cased.c: New file.
80874         * modules/unicase/u32-is-cased: New file.
80876         New module 'unicase/u16-is-cased'.
80877         * lib/unicase/u16-is-cased.c: New file.
80878         * modules/unicase/u16-is-cased: New file.
80880         New module 'unicase/u8-is-cased'.
80881         * lib/unicase/u8-is-cased.c: New file.
80882         * lib/unicase/u-is-cased.h: New file.
80883         * modules/unicase/u8-is-cased: New file.
80885         Tests for module 'unicase/u32-is-casefolded'.
80886         * modules/unicase/u32-is-casefolded-tests: New file.
80887         * tests/unicase/test-u32-is-casefolded.c: New file.
80889         Tests for module 'unicase/u16-is-casefolded'.
80890         * modules/unicase/u16-is-casefolded-tests: New file.
80891         * tests/unicase/test-u16-is-casefolded.c: New file.
80893         Tests for module 'unicase/u8-is-casefolded'.
80894         * modules/unicase/u8-is-casefolded-tests: New file.
80895         * tests/unicase/test-u8-is-casefolded.c: New file.
80896         * tests/unicase/test-is-casefolded.h: New file.
80898         New module 'unicase/u32-is-casefolded'.
80899         * lib/unicase/u32-is-casefolded.c: New file.
80900         * modules/unicase/u32-is-casefolded: New file.
80902         New module 'unicase/u16-is-casefolded'.
80903         * lib/unicase/u16-is-casefolded.c: New file.
80904         * modules/unicase/u16-is-casefolded: New file.
80906         New module 'unicase/u8-is-casefolded'.
80907         * lib/unicase/u8-is-casefolded.c: New file.
80908         * modules/unicase/u8-is-casefolded: New file.
80910         Tests for module 'unicase/u32-is-titlecase'.
80911         * modules/unicase/u32-is-titlecase-tests: New file.
80912         * tests/unicase/test-u32-is-titlecase.c: New file.
80914         Tests for module 'unicase/u16-is-titlecase'.
80915         * modules/unicase/u16-is-titlecase-tests: New file.
80916         * tests/unicase/test-u16-is-titlecase.c: New file.
80918         Tests for module 'unicase/u8-is-titlecase'.
80919         * modules/unicase/u8-is-titlecase-tests: New file.
80920         * tests/unicase/test-u8-is-titlecase.c: New file.
80921         * tests/unicase/test-is-titlecase.h: New file.
80923         New module 'unicase/u32-is-titlecase'.
80924         * lib/unicase/u32-is-titlecase.c: New file.
80925         * modules/unicase/u32-is-titlecase: New file.
80927         New module 'unicase/u16-is-titlecase'.
80928         * lib/unicase/u16-is-titlecase.c: New file.
80929         * modules/unicase/u16-is-titlecase: New file.
80931         New module 'unicase/u8-is-titlecase'.
80932         * lib/unicase/u8-is-titlecase.c: New file.
80933         * modules/unicase/u8-is-titlecase: New file.
80935         Tests for module 'unicase/u32-is-lowercase'.
80936         * modules/unicase/u32-is-lowercase-tests: New file.
80937         * tests/unicase/test-u32-is-lowercase.c: New file.
80939         Tests for module 'unicase/u16-is-lowercase'.
80940         * modules/unicase/u16-is-lowercase-tests: New file.
80941         * tests/unicase/test-u16-is-lowercase.c: New file.
80943         Tests for module 'unicase/u8-is-lowercase'.
80944         * modules/unicase/u8-is-lowercase-tests: New file.
80945         * tests/unicase/test-u8-is-lowercase.c: New file.
80946         * tests/unicase/test-is-lowercase.h: New file.
80948         New module 'unicase/u32-is-lowercase'.
80949         * lib/unicase/u32-is-lowercase.c: New file.
80950         * modules/unicase/u32-is-lowercase: New file.
80952         New module 'unicase/u16-is-lowercase'.
80953         * lib/unicase/u16-is-lowercase.c: New file.
80954         * modules/unicase/u16-is-lowercase: New file.
80956         New module 'unicase/u8-is-lowercase'.
80957         * lib/unicase/u8-is-lowercase.c: New file.
80958         * modules/unicase/u8-is-lowercase: New file.
80960         Tests for module 'unicase/u32-is-uppercase'.
80961         * modules/unicase/u32-is-uppercase-tests: New file.
80962         * tests/unicase/test-u32-is-uppercase.c: New file.
80964         Tests for module 'unicase/u16-is-uppercase'.
80965         * modules/unicase/u16-is-uppercase-tests: New file.
80966         * tests/unicase/test-u16-is-uppercase.c: New file.
80968         Tests for module 'unicase/u8-is-uppercase'.
80969         * modules/unicase/u8-is-uppercase-tests: New file.
80970         * tests/unicase/test-u8-is-uppercase.c: New file.
80971         * tests/unicase/test-is-uppercase.h: New file.
80973         New module 'unicase/u32-is-uppercase'.
80974         * lib/unicase/u32-is-uppercase.c: New file.
80975         * modules/unicase/u32-is-uppercase: New file.
80977         New module 'unicase/u16-is-uppercase'.
80978         * lib/unicase/u16-is-uppercase.c: New file.
80979         * modules/unicase/u16-is-uppercase: New file.
80981         New module 'unicase/u8-is-uppercase'.
80982         * lib/unicase/u8-is-uppercase.c: New file.
80983         * modules/unicase/u8-is-uppercase: New file.
80985         New module 'unicase/u32-is-invariant'.
80986         * lib/unicase/u32-is-invariant.c: New file.
80987         * modules/unicase/u32-is-invariant: New file.
80989         New module 'unicase/u16-is-invariant'.
80990         * lib/unicase/u16-is-invariant.c: New file.
80991         * modules/unicase/u16-is-invariant: New file.
80993         New module 'unicase/u8-is-invariant'.
80994         * lib/unicase/u8-is-invariant.c: New file.
80995         * lib/unicase/invariant.h: New file.
80996         * lib/unicase/u-is-invariant.h: New file.
80997         * modules/unicase/u8-is-invariant: New file.
80999         Tests for module 'unicase/u32-casecoll'.
81000         * modules/unicase/u32-casecoll-tests: New file.
81001         * tests/unicase/test-u32-casecoll.c: New file.
81003         Tests for module 'unicase/u16-casecoll'.
81004         * modules/unicase/u16-casecoll-tests: New file.
81005         * tests/unicase/test-u16-casecoll.c: New file.
81007         Tests for module 'unicase/u8-casecoll'.
81008         * modules/unicase/u8-casecoll-tests: New file.
81009         * tests/unicase/test-u8-casecoll.c: New file.
81011         New module 'unicase/u32-casecoll'.
81012         * lib/unicase/u32-casecoll.c: New file.
81013         * modules/unicase/u32-casecoll: New file.
81015         New module 'unicase/u16-casecoll'.
81016         * lib/unicase/u16-casecoll.c: New file.
81017         * modules/unicase/u16-casecoll: New file.
81019         New module 'unicase/u8-casecoll'.
81020         * lib/unicase/u8-casecoll.c: New file.
81021         * lib/unicase/u-casecoll.h: New file.
81022         * modules/unicase/u8-casecoll: New file.
81024         New module 'unicase/u32-casexfrm'.
81025         * lib/unicase/u32-casexfrm.c: New file.
81026         * modules/unicase/u32-casexfrm: New file.
81028         New module 'unicase/u16-casexfrm'.
81029         * lib/unicase/u16-casexfrm.c: New file.
81030         * modules/unicase/u16-casexfrm: New file.
81032         New module 'unicase/u8-casexfrm'.
81033         * lib/unicase/u8-casexfrm.c: New file.
81034         * lib/unicase/u-casexfrm.h: New file.
81035         * modules/unicase/u8-casexfrm: New file.
81037         Tests for module 'unicase/u32-casecmp'.
81038         * modules/unicase/u32-casecmp-tests: New file.
81039         * tests/unicase/test-u32-casecmp.c: New file.
81041         Tests for module 'unicase/u16-casecmp'.
81042         * modules/unicase/u16-casecmp-tests: New file.
81043         * tests/unicase/test-u16-casecmp.c: New file.
81045         Tests for module 'unicase/u8-casecmp'.
81046         * modules/unicase/u8-casecmp-tests: New file.
81047         * tests/unicase/test-u8-casecmp.c: New file.
81048         * tests/unicase/test-casecmp.h: New file.
81050         New module 'unicase/u32-casecmp'.
81051         * lib/unicase/u32-casecmp.c: New file.
81052         * modules/unicase/u32-casecmp: New file.
81054         New module 'unicase/u16-casecmp'.
81055         * lib/unicase/u16-casecmp.c: New file.
81056         * modules/unicase/u16-casecmp: New file.
81058         New module 'unicase/u8-casecmp'.
81059         * lib/unicase/u8-casecmp.c: New file.
81060         * lib/unicase/u-casecmp.h: New file.
81061         * modules/unicase/u8-casecmp: New file.
81063         Tests for module 'unicase/u32-casefold'.
81064         * modules/unicase/u32-casefold-tests: New file.
81065         * tests/unicase/test-u32-casefold.c: New file.
81067         Tests for module 'unicase/u16-casefold'.
81068         * modules/unicase/u16-casefold-tests: New file.
81069         * tests/unicase/test-u16-casefold.c: New file.
81071         Tests for module 'unicase/u8-casefold'.
81072         * modules/unicase/u8-casefold-tests: New file.
81073         * tests/unicase/test-u8-casefold.c: New file.
81075         New module 'unicase/u32-casefold'.
81076         * lib/unicase/u32-casefold.c: New file.
81077         * modules/unicase/u32-casefold: New file.
81079         New module 'unicase/u16-casefold'.
81080         * lib/unicase/u16-casefold.c: New file.
81081         * modules/unicase/u16-casefold: New file.
81083         New module 'unicase/u8-casefold'.
81084         * lib/unicase/u8-casefold.c: New file.
81085         * lib/unicase/u-casefold.h: New file.
81086         * modules/unicase/u8-casefold: New file.
81088         New module 'unicase/tocasefold'.
81089         * lib/unicase/casefold.h: New file.
81090         * lib/unicase/tocasefold.c: New file.
81091         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
81092         * modules/unicase/tocasefold: New file.
81094         Tests for module 'unicase/u32-totitle'.
81095         * modules/unicase/u32-totitle-tests: New file.
81096         * tests/unicase/test-u32-totitle.c: New file.
81098         Tests for module 'unicase/u16-totitle'.
81099         * modules/unicase/u16-totitle-tests: New file.
81100         * tests/unicase/test-u16-totitle.c: New file.
81102         Tests for module 'unicase/u8-totitle'.
81103         * modules/unicase/u8-totitle-tests: New file.
81104         * tests/unicase/test-u8-totitle.c: New file.
81106         New module 'unicase/u32-totitle'.
81107         * lib/unicase/u32-totitle.c: New file.
81108         * modules/unicase/u32-totitle: New file.
81110         New module 'unicase/u16-totitle'.
81111         * lib/unicase/u16-totitle.c: New file.
81112         * modules/unicase/u16-totitle: New file.
81114         New module 'unicase/u8-totitle'.
81115         * lib/unicase/u8-totitle.c: New file.
81116         * lib/unicase/u-totitle.h: New file.
81117         * modules/unicase/u8-totitle: New file.
81119         Tests for module 'unicase/u32-tolower'.
81120         * modules/unicase/u32-tolower-tests: New file.
81121         * tests/unicase/test-u32-tolower.c: New file.
81123         Tests for module 'unicase/u16-tolower'.
81124         * modules/unicase/u16-tolower-tests: New file.
81125         * tests/unicase/test-u16-tolower.c: New file.
81127         Tests for module 'unicase/u8-tolower'.
81128         * modules/unicase/u8-tolower-tests: New file.
81129         * tests/unicase/test-u8-tolower.c: New file.
81131         New module 'unicase/u32-tolower'.
81132         * lib/unicase/u32-tolower.c: New file.
81133         * modules/unicase/u32-tolower: New file.
81135         New module 'unicase/u16-tolower'.
81136         * lib/unicase/u16-tolower.c: New file.
81137         * modules/unicase/u16-tolower: New file.
81139         New module 'unicase/u8-tolower'.
81140         * lib/unicase/u8-tolower.c: New file.
81141         * modules/unicase/u8-tolower: New file.
81143         Tests for module 'unicase/u32-toupper'.
81144         * modules/unicase/u32-toupper-tests: New file.
81145         * tests/unicase/test-u32-toupper.c: New file.
81147         Tests for module 'unicase/u16-toupper'.
81148         * modules/unicase/u16-toupper-tests: New file.
81149         * tests/unicase/test-u16-toupper.c: New file.
81151         Tests for module 'unicase/u8-toupper'.
81152         * modules/unicase/u8-toupper-tests: New file.
81153         * tests/unicase/test-u8-toupper.c: New file.
81155         New module 'unicase/u32-toupper'.
81156         * lib/unicase/u32-toupper.c: New file.
81157         * modules/unicase/u32-toupper: New file.
81159         New module 'unicase/u16-toupper'.
81160         * lib/unicase/u16-toupper.c: New file.
81161         * modules/unicase/u16-toupper: New file.
81163         New module 'unicase/u8-toupper'.
81164         * lib/unicase/u8-toupper.c: New file.
81165         * modules/unicase/u8-toupper: New file.
81167         New module 'unicase/u32-casemap'.
81168         * lib/unicase/u32-casemap.c: New file.
81169         * modules/unicase/u32-casemap: New file.
81171         New module 'unicase/u16-casemap'.
81172         * lib/unicase/u16-casemap.c: New file.
81173         * modules/unicase/u16-casemap: New file.
81175         New module 'unicase/u8-casemap'.
81176         * lib/unicase/unicasemap.h: New file.
81177         * lib/unicase/u8-casemap.c: New file.
81178         * lib/unicase/u-casemap.h: New file.
81179         * modules/unicase/u8-casemap: New file.
81181         New module 'unicase/special-casing'.
81182         * lib/unicase/special-casing.h: New file.
81183         * lib/unicase/special-casing.c: New file.
81184         * lib/unicase/special-casing-table.gperf: New file, generated by
81185         gen-uni-tables.c.
81186         * modules/unicase/special-casing: New file.
81188         Tests for module 'unicase/locale-language'.
81189         * modules/unicase/locale-language-tests: New file.
81190         * tests/unicase/test-locale-language.sh: New file.
81191         * tests/unicase/test-locale-language.c: New file.
81193         New module 'unicase/locale-language'.
81194         * lib/unicase/locale-language.c: New file.
81195         * lib/unicase/locale-languages.gperf: New file.
81196         * modules/unicase/locale-language: New file.
81198         Generate more tables for case conversion and case folding.
81199         * lib/gen-uni-tables.c (SCC_*): New enum items.
81200         (struct special_casing_rule): New type.
81201         (casing_rules, num_casing_rules, allocated_casing_rules): New
81202         variables.
81203         (add_casing_rule, fill_casing_rules): New functions.
81204         (struct casefold_rule): New type.
81205         (casefolding_rules, num_casefolding_rules,
81206         allocated_casefolding_rules): New variables.
81207         (fill_casefolding_rules): New function.
81208         (unicode_casefold): New variable.
81209         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
81210         sort_casing_rules, output_casing_rules): New functions.
81211         (main): Accept to more arguments: SpecialCasing.txt and
81212         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
81213         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
81214         Output mapping for casefolding.
81216         * lib/unicase.h: Include stdbool.h, uninorm.h.
81217         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
81218         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
81219         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
81220         arguments.
81221         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
81222         resultp arguments.
81223         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
81224         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
81225         resultp arguments.
81226         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
81227         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
81228         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
81229         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
81230         declarations.
81231         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
81233 2009-03-08  Bruno Haible  <bruno@clisp.org>
81235         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
81236         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
81237         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
81238         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
81240 2009-03-07  Bruno Haible  <bruno@clisp.org>
81242         Adjust u*_normcmp, u*_normcoll API.
81243         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
81244         u16_normcoll, u32_normcoll): Change failure conventions.
81245         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
81246         errno and return -1.
81247         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
81249 2009-03-07  Bruno Haible  <bruno@clisp.org>
81251         Tests for module 'uninorm/u32-normcoll'.
81252         * modules/uninorm/u32-normcoll-tests: New file.
81253         * tests/uninorm/test-u32-normcoll.c: New file.
81255         Tests for module 'uninorm/u16-normcoll'.
81256         * modules/uninorm/u16-normcoll-tests: New file.
81257         * tests/uninorm/test-u16-normcoll.c: New file.
81259         Tests for module 'uninorm/u8-normcoll'.
81260         * modules/uninorm/u8-normcoll-tests: New file.
81261         * tests/uninorm/test-u8-normcoll.c: New file.
81263 2009-03-07  Bruno Haible  <bruno@clisp.org>
81265         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
81266         tests/uninorm/test-u32-normcmp.c.
81267         * tests/uninorm/test-u32-normcmp.c: Include it.
81268         (test_nonascii): New function, extracted from main. Add some more
81269         tests.
81270         (main): Invoke test_ascii and test_nonascii.
81271         * modules/uninorm/u32-normcmp-tests (Files): Add
81272         tests/uninorm/test-u32-normcmp.h.
81273         (Depends-on): Remove uninorm/u32-normcmp.
81275         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
81276         tests/uninorm/test-u16-normcmp.c.
81277         * tests/uninorm/test-u16-normcmp.c: Include it.
81278         (test_nonascii): New function, extracted from main. Add some more
81279         tests.
81280         (main): Invoke test_ascii and test_nonascii.
81281         * modules/uninorm/u16-normcmp-tests (Files): Add
81282         tests/uninorm/test-u16-normcmp.h.
81283         (Depends-on): Remove uninorm/u16-normcmp.
81285         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
81286         tests/uninorm/test-u8-normcmp.c.
81287         * tests/uninorm/test-u8-normcmp.c: Include it.
81288         (test_nonascii): New function, extracted from main. Add some more
81289         tests.
81290         (main): Invoke test_ascii and test_nonascii.
81291         * modules/uninorm/u8-normcmp-tests (Files): Add
81292         tests/uninorm/test-u8-normcmp.h.
81293         (Depends-on): Remove uninorm/u8-normcmp.
81295 2009-03-07  Bruno Haible  <bruno@clisp.org>
81297         New module 'uninorm/u32-normcoll'.
81298         * lib/uninorm/u32-normcoll.c: New file.
81299         * modules/uninorm/u32-normcoll: New file.
81301         New module 'uninorm/u16-normcoll'.
81302         * lib/uninorm/u16-normcoll.c: New file.
81303         * modules/uninorm/u16-normcoll: New file.
81305         New module 'uninorm/u8-normcoll'.
81306         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
81307         declarations.
81308         * lib/uninorm/u8-normcoll.c: New file.
81309         * lib/uninorm/u-normcoll.h: New file.
81310         * modules/uninorm/u8-normcoll: New file.
81312         New module 'uninorm/u32-normxfrm'.
81313         * lib/uninorm/u32-normxfrm.c: New file.
81314         * modules/uninorm/u32-normxfrm: New file.
81316         New module 'uninorm/u16-normxfrm'.
81317         * lib/uninorm/u16-normxfrm.c: New file.
81318         * modules/uninorm/u16-normxfrm: New file.
81320         New module 'uninorm/u8-normxfrm'.
81321         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
81322         declarations.
81323         * lib/uninorm/u8-normxfrm.c: New file.
81324         * lib/uninorm/u-normxfrm.h: New file.
81325         * modules/uninorm/u8-normxfrm: New file.
81327 2009-03-07  Bruno Haible  <bruno@clisp.org>
81329         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
81330         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
81331         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
81333 2009-03-07  Bruno Haible  <bruno@clisp.org>
81335         New module 'memxfrm'.
81336         * lib/memxfrm.h: New file.
81337         * lib/memxfrm.c: New file.
81338         * modules/memxfrm: New file.
81340 2009-03-07  Bruno Haible  <bruno@clisp.org>
81342         New module 'memcmp2'.
81343         * lib/memcmp2.h: New file.
81344         * lib/memcmp2.c: New file.
81345         * modules/memcmp2: New file.
81347 2009-03-07  Bruno Haible  <bruno@clisp.org>
81349         Tests for module 'uninorm/decomposing-form'.
81350         * modules/uninorm/decomposing-form-tests: New file.
81351         * tests/uninorm/test-decomposing-form.c: New file.
81353         New module 'uninorm/decomposing-form'.
81354         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
81355         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
81356         Add 'decomposing_variant' field.
81357         * lib/uninorm/decomposing-form.c: New file.
81358         * lib/uninorm/nfc.c (uninorm_nfc): Update.
81359         * lib/uninorm/nfd.c (uninorm_nfd): Update.
81360         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
81361         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
81362         * modules/uninorm/decomposing-form: New file.
81363         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
81364         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
81366 2009-03-07  Bruno Haible  <bruno@clisp.org>
81368         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
81369         strings.
81371 2009-03-06  Bruno Haible  <bruno@clisp.org>
81373         Tests for module 'uninorm/u32-normcmp'.
81374         * tests/uninorm/test-u32-normcmp.c: New file.
81375         * modules/uninorm/u32-normcmp-tests: New file.
81377         Tests for module 'uninorm/u16-normcmp'.
81378         * tests/uninorm/test-u16-normcmp.c: New file.
81379         * modules/uninorm/u16-normcmp-tests: New file.
81381         Tests for module 'uninorm/u8-normcmp'.
81382         * tests/uninorm/test-u8-normcmp.c: New file.
81383         * modules/uninorm/u8-normcmp-tests: New file.
81385         New module 'uninorm/u32-normcmp'.
81386         * lib/uninorm/u32-normcmp.c: New file.
81387         * modules/uninorm/u32-normcmp: New file.
81389         New module 'uninorm/u16-normcmp'.
81390         * lib/uninorm/u16-normcmp.c: New file.
81391         * modules/uninorm/u16-normcmp: New file.
81393         New module 'uninorm/u8-normcmp'.
81394         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
81395         declarations.
81396         * lib/uninorm/u8-normcmp.c: New file.
81397         * lib/uninorm/u-normcmp.h: New file.
81398         * modules/uninorm/u8-normcmp: New file.
81400 2009-03-06  Bruno Haible  <bruno@clisp.org>
81402         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
81403         Reported by Eric Blake.
81405 2009-03-06  Eric Blake  <ebb9@byu.net>
81406             Bruno Haible  <bruno@clisp.org>
81408         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
81409         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
81410         condition.
81411         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
81412         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
81413         condition.
81414         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
81416 2009-03-06  Eric Blake  <ebb9@byu.net>
81418         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
81419         to avoid compiler warnings.
81420         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
81422 2009-03-05  Bruno Haible  <bruno@clisp.org>
81424         * tests/test-ftell.c (main): Disable test beyond end of file on
81425         FreeMiNT.
81426         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
81428 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
81430         * lib/filevercmp.c: Move hidden files up in ordering.
81431         * tests/test-filevercmp.c: Add tests for hidden files.
81433 2009-03-04  Bruno Haible  <bruno@clisp.org>
81435         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
81436         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
81437         AM_CFLAGS.
81438         Reported by Simon Josefsson.
81440 2009-03-03  Bruno Haible  <bruno@clisp.org>
81442         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
81443         Reported by Simon Josefsson.
81445         * doc/ld-version-script.texi: Update node reference.
81447 2009-03-03  Bruno Haible  <bruno@clisp.org>
81449         * modules/visibility (License): Change to 'unlimited'.
81450         Suggested by Simon Josefsson.
81452 2009-03-03  Jim Meyering  <meyering@redhat.com>
81454         unlinkdir: cannot_unlink_dir may modify process state
81455         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
81456         it's neither thread-safe nor appropriate for use in a library.
81458 2009-03-03  Eric Blake  <ebb9@byu.net>
81460         test-closein: silence test under Darwin
81461         * tests/test-closein.sh: Ignore stderr from cat, since we don't
81462         care if it dies from EPIPE or EBADF.
81464 2009-03-03  Bruno Haible  <bruno@clisp.org>
81466         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
81467         earlier.
81468         * doc/visibility.texi: Fix @node and @section.
81470 2009-03-03  Simon Josefsson  <simon@josefsson.org>
81472         * doc/gnulib.texi: Link to sections for ld version script and
81473         visibility.
81474         * doc/visibility.texi: Add @node and @section.
81475         * modules/ld-version-script: New module.
81476         * m4/ld-version-script.m4: New file.
81477         * doc/ld-version-script.texi: New file.
81479 2009-03-02  David Lutterkort  <lutter@redhat.com>
81481         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
81482         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
81484 2009-03-02  Bruno Haible  <bruno@clisp.org>
81486         * doc/visibility.texi: Mention libtool's -export-symbols option.
81488 2009-03-02  Jim Meyering  <meyering@redhat.com>
81490         announce-gen: new option: --no-print-checksums
81491         * build-aux/announce-gen (usage): Describe it.
81492         (print_checksums): Print a newline here, not in the [*] footnote.
81493         (main): Honor it.
81495 2009-03-01  Bruno Haible  <bruno@clisp.org>
81497         Use socklen_t in the native Windows replacements prototypes.
81498         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
81499         instead of 'int'.
81500         * lib/getsockopt.c (rpl_getsockopt): Likewise.
81501         * lib/setsockopt.c (rpl_setsockopt): Likewise.
81502         * modules/getsockopt (Depends-on): Add socklen.
81503         * modules/setsockopt (Depends-on): Add socklen.
81505 2009-03-01  Bruno Haible  <bruno@clisp.org>
81507         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
81508         least 4.2.
81510 2009-03-01  Eric Blake  <ebb9@byu.net>
81511             Bruno Haible  <bruno@clisp.org>
81513         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
81514         error messages.
81515         * lib/wait-process.c (wait_subprocess): Omit error message about
81516         deadly signal sent to the child of termsigp != NULL.
81518 2009-03-01  Eric Blake  <ebb9@byu.net>
81520         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
81522 2009-03-01  Bruno Haible  <bruno@clisp.org>
81524         Avoid a gcc warning.
81525         * tests/test-sched.c (b): Make global.
81526         Reported by Eric Blake.
81528 2009-01-19  Martin Lambers  <marlam@marlam.de>
81530         Provide POSIX semantics for socket timeout options on W32.
81531         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
81532         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
81533         * modules/setsockopt: Depend on sys_time module for struct timeval.
81534         * modules/getsockopt: Depend on sys_time module for struct timeval.
81536 2009-03-01  Simon Josefsson  <simon@josefsson.org>
81538         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
81539         __USE_GNU, for consistency with netdb.in.h.
81540         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
81542 2009-03-01  Bruno Haible  <bruno@clisp.org>
81544         More support for FreeMiNT.
81545         * lib/fseeko.c (rpl_fseeko): Complete last commit.
81546         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
81548 2009-03-01  Bruno Haible  <bruno@clisp.org>
81550         More support for FreeMiNT.
81551         * lib/fpurge.c (fpurge): Correct last commit.
81552         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
81554 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81556         Fix unportable awk script in vc-list-files.
81557         * build-aux/vc-list-files: In the replacement awk script, use
81558         substr with a second argument of 1, not zero.
81559         Report by Simon Josefsson.
81561 2009-02-28  Bruno Haible  <bruno@clisp.org>
81563         More support for FreeMiNT.
81564         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
81565         to FreeMiNT today.
81566         * lib/fwriting.c (fwriting): Likewise.
81567         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
81569 2009-02-28  Bruno Haible  <bruno@clisp.org>
81571         * tests/test-freadseek.c (main): Disable test beyond end of file on
81572         FreeMiNT.
81573         * tests/test-ftello.c (main): Likewise.
81574         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
81576 2009-02-28  Bruno Haible  <bruno@clisp.org>
81578         Add tentative support for FreeMiNT.
81579         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
81580         * lib/fpurge.c (fpurge): Likewise.
81581         * lib/freadable.c (freadable): Likewise.
81582         * lib/freading.c (freading): Likewise.
81583         * lib/freadptr.c (freadptr): Likewise.
81584         * lib/freadseek.c (freadptrinc): Likewise.
81585         * lib/fseeko.c (rpl_fseeko): Likewise.
81586         * lib/fseterr.c (fseterr): Likewise.
81587         * lib/fwritable.c (fwritable): Likewise.
81588         * lib/fwriting.c (fwriting): Likewise.
81589         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
81590         Hourihane.
81591         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
81593 2009-02-28  Bruno Haible  <bruno@clisp.org>
81595         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
81596         SIGCHLD.
81597         Reported by Jim Meyering.
81599 2009-02-28  Bruno Haible  <bruno@clisp.org>
81601         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
81602         Mention the results of these tests on various platforms.
81603         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
81604         order.
81605         * doc/posix-functions/printf.texi: Likewise.
81606         * doc/posix-functions/snprintf.texi: Likewise.
81607         * doc/posix-functions/sprintf.texi: Likewise.
81608         * doc/posix-functions/vfprintf.texi: Likewise.
81609         * doc/posix-functions/vprintf.texi: Likewise.
81610         * doc/posix-functions/vsnprintf.texi: Likewise.
81611         * doc/posix-functions/vsprintf.texi: Likewise.
81612         * doc/glibc-functions/obstack_printf.texi: Likewise.
81613         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
81615 2009-02-28  Bruno Haible  <bruno@clisp.org>
81617         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
81618         Reported by Loïc Minier <lool@dooz.org>.
81620 2009-02-27  Bruno Haible  <bruno@clisp.org>
81622         * gnulib-tool (func_import): Make the sed expression used to create the
81623         sed script for updating the .gitignore file POSIX compliant.
81624         Reported by Eric Blake.
81626 2009-02-27  Bruno Haible  <bruno@clisp.org>
81628         * gnulib-tool (sed): Don't alias as "sed --posix".
81629         Reported by Eric Blake.
81631 2009-02-27  Bruno Haible  <bruno@clisp.org>
81633         Avoid test link errors.
81634         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
81635         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
81636         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
81637         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
81638         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
81640 2009-02-27  Bruno Haible  <bruno@clisp.org>
81642         Avoid spurious "(cached)" in configure output.
81643         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
81644         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
81645         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
81646         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
81647         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
81648         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
81649         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
81650         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
81651         Reported by Eric Blake.
81653 2009-02-27  Eric Blake  <ebb9@byu.net>
81655         printf: fix regression in previous patch
81656         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
81658 2009-02-27  Bruno Haible  <bruno@clisp.org>
81660         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
81661         value.
81662         * lib/stdint.in.h: Likewise.
81663         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
81665 2009-02-27  Eric Blake  <ebb9@byu.net>
81667         doc: mention more functions added in cygwin 1.7.0
81668         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
81669         addition.
81670         * doc/posix-functions/open_wmemstream.texi: Likewise.
81671         * doc/posix-functions/wcsnlen.texi: Likewise.
81672         * doc/posix-functions/wcsnrtombs.texi: Likewise.
81673         * doc/posix-functions/wcstod.texi: Likewise.
81674         * doc/posix-functions/wcstof.texi: Likewise.
81675         * doc/posix-functions/wcstoimax.texi: Likewise.
81676         * doc/posix-functions/wcstok.texi: Likewise.
81677         * doc/posix-functions/wcstoumax.texi: Likewise.
81679         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
81680         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
81681         * doc/posix-functions/fprintf.texi: Update.
81682         * doc/posix-functions/printf.texi: Update.
81683         * doc/posix-functions/snprintf.texi: Update.
81684         * doc/posix-functions/sprintf.texi: Update.
81685         * doc/posix-functions/vfprintf.texi: Update.
81686         * doc/posix-functions/vprintf.texi: Update.
81687         * doc/posix-functions/vsnprintf.texi: Update.
81688         * doc/posix-functions/vsprintf.texi: Update.
81689         * doc/glibc-functions/obstack_printf.texi: Update.
81690         * doc/glibc-functions/obstack_vprintf.texi: Update.
81692 2009-02-26  Eric Blake  <ebb9@byu.net>
81694         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
81695         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
81696         compilation bug by using runtime conversion.
81697         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
81698         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
81699         * modules/ceill-tests (Files): Use nan.h.
81700         * modules/floorl-tests (Files): Likewise.
81701         * modules/frexpl-tests (Files): Likewise.
81702         * modules/isnanl-tests (Files): Likewise.
81703         * modules/ldexpl-tests (Files): Likewise.
81704         * modules/roundl-tests (Files): Likewise.
81705         * modules/truncl-tests (Files): Likewise.
81706         * tests/test-ceill.c (main): Use a working NaN.
81707         * tests/test-floorl.c (main): Likewise.
81708         * tests/test-frexpl.c (main): Likewise.
81709         * tests/test-isnan.c (test_long_double): Likewise.
81710         * tests/test-isnanl.h (main): Likewise.
81711         * tests/test-ldexpl.h (main): Likewise.
81712         * tests/test-roundl.h (main): Likewise.
81713         * tests/test-truncl.h (main): Likewise.
81714         See http://lists.gnu.org/r/bug-gnulib/2009-02/msg00190.html.
81716 2009-02-26  Eric Blake  <ebb9@byu.net>
81717             Bruno Haible  <bruno@clisp.org>
81719         Work around a *printf bug with %ls on Solaris.
81720         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
81721         precision is specified, sprintf stops converting the wide string
81722         argument when the number of bytes that have been produced by this
81723         conversion equals or exceeds the precision.
81724         * doc/posix-functions/fprintf.texi: Update.
81725         * doc/posix-functions/printf.texi: Update.
81726         * doc/posix-functions/snprintf.texi: Update.
81727         * doc/posix-functions/sprintf.texi: Update.
81728         * doc/posix-functions/vfprintf.texi: Update.
81729         * doc/posix-functions/vprintf.texi: Update.
81730         * doc/posix-functions/vsnprintf.texi: Update.
81731         * doc/posix-functions/vsprintf.texi: Update.
81732         * doc/glibc-functions/obstack_printf.texi: Update.
81733         * doc/glibc-functions/obstack_vprintf.texi: Update.
81735 2009-02-26  Eric Blake  <ebb9@byu.net>
81737         stdlib: favor compiler check of random.h
81738         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
81739         to avoid an ObjC random.h installed by Swarm.
81741 2009-02-26  Bruno Haible  <bruno@clisp.org>
81743         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
81744         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
81745         Reported by Gary V. Vaughan <gary@gnu.org>.
81747 2009-02-26  Bruno Haible  <bruno@clisp.org>
81749         Fix *printf behaviour regarding the %ls directive.
81750         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
81751         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
81752         NEED_PRINTF_DIRECTIVE_LS.
81753         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
81754         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
81755         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
81756         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
81757         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
81758         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
81759         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
81760         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
81761         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
81762         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
81763         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
81764         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
81765         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
81766         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
81767         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
81768         * doc/posix-functions/fprintf.texi: Update.
81769         * doc/posix-functions/printf.texi: Update.
81770         * doc/posix-functions/snprintf.texi: Update.
81771         * doc/posix-functions/sprintf.texi: Update.
81772         * doc/posix-functions/vfprintf.texi: Update.
81773         * doc/posix-functions/vprintf.texi: Update.
81774         * doc/posix-functions/vsnprintf.texi: Update.
81775         * doc/posix-functions/vsprintf.texi: Update.
81776         * doc/glibc-functions/obstack_printf.texi: Update.
81777         * doc/glibc-functions/obstack_vprintf.texi: Update.
81778         Reported by Eric Blake.
81780 2009-02-25  Bruno Haible  <bruno@clisp.org>
81782         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
81783         with known value.
81784         Reported by Gary V. Vaughan <gary@gnu.org>.
81786 2009-02-25  Bruno Haible  <bruno@clisp.org>
81788         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
81789         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
81790         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
81791         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
81792         Reported by Gary V. Vaughan <gary@gnu.org>.
81794 2009-02-25  Bruno Haible  <bruno@clisp.org>
81796         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
81797         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
81798         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
81799         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
81800         Reported by Gary V. Vaughan <gary@gnu.org>.
81802 2009-02-25  Eric Blake  <ebb9@byu.net>
81804         tests: skip fseek/ftell tests if ungetc is broken
81805         * m4/ungetc.m4: New file.
81806         * modules/fseek-tests: Split test, so ungetc dependency is
81807         separate from rest of test.
81808         * modules/fseeko-tests: Likewise.
81809         * modules/ftell-tests: Likewise.
81810         * modules/ftello-tests: Likewise.
81811         * tests/test-fseek.c (main): Isolate ungetc dependency.
81812         * tests/test-fseeko.c (main): Likewise.
81813         * tests/test-ftell.c (main): Likewise.
81814         * tests/test-ftello.c (main): Likewise.
81815         * tests/test-fseek2.sh: New file.
81816         * tests/test-fseeko2.sh: Likewise.
81817         * tests/test-ftell2.sh: Likewise.
81818         * tests/test-ftello2.sh: Likewise.
81820 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
81822         test-getaddrinfo: fix usage of skip return code 77
81823         * tests/test-gettaddrinfo.c: Return skip code 77 only
81824         for first occurrence of skip (4x77 is not 77)
81826 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
81828         strtod: avoid C99 decl-after-statement
81829         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
81831 2009-02-24  Eric Blake  <ebb9@byu.net>
81833         strtod: detect HP-UX 11.31 bug
81834         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
81835         Reported by Gary V. Vaughan.
81837 2009-02-23  Bruno Haible  <bruno@clisp.org>
81839         Fix invalid read past end of memory block.
81840         * lib/vasnprintf.c (DCHAR_SET): Define.
81841         (local_wcslen): Define only when needed.
81842         (local_strnlen, local_wcsnlen): New functions.
81843         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
81844         directives that involve a conversion ourselves.
81845         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
81846         wcsnlen, mbrtowc, wcrtomb.
81847         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
81848         * tests/test-vasprintf-posix.c (test_function): Likewise.
81849         * tests/test-snprintf-posix.h (test_function): Likewise.
81850         * tests/test-sprintf-posix.h (test_function): Likewise.
81851         Reported by Ben Pfaff <blp@cs.stanford.edu>.
81853 2009-02-22  Bruno Haible  <bruno@clisp.org>
81855         Implement new clarified decomposition of Hangul syllables.
81856         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
81857         of type LTV, return only a pairwise decomposition.
81858         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
81859         Likewise.
81860         * tests/uninorm/test-decomposition.c (main): Updated expected result.
81861         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
81862         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
81864 2009-02-22  Bruno Haible  <bruno@clisp.org>
81866         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
81867         zero-length results and shrink excess allocated memory.
81868         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
81869         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
81870         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
81871         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
81872         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
81873         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
81874         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
81875         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
81876         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
81877         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
81878         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
81879         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
81881 2009-02-21  Bruno Haible  <bruno@clisp.org>
81883         * doc/gnulib.texi: Include safe-alloc.texi earlier.
81884         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
81885         spaces after a period. Put a space between a macro name and its
81886         argument list. Trivial rewordings.
81887         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
81888         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
81889         (main): Return 0 explicitly.
81891 2009-02-21  Bruno Haible  <bruno@clisp.org>
81893         Tests for module 'uninorm/filter'.
81894         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
81895         * modules/uninorm/filter-tests: New file.
81897         New module 'uninorm/filter'.
81898         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
81899         uninorm_filter_flush, uninorm_filter_free): New declarations.
81900         * lib/uninorm/uninorm-filter.c: New file.
81901         * modules/uninorm/filter: New file.
81903 2009-02-21  Bruno Haible  <bruno@clisp.org>
81905         Tests for module 'uninorm/nfkc'.
81906         * tests/uninorm/test-nfkc.c: New file.
81907         * tests/uninorm/test-u8-nfkc.c: New file.
81908         * tests/uninorm/test-u16-nfkc.c: New file.
81909         * tests/uninorm/test-u32-nfkc.c: New file.
81910         * tests/uninorm/test-u32-nfkc-big.sh: New file.
81911         * tests/uninorm/test-u32-nfkc-big.c: New file.
81912         * modules/uninorm/nfkc-tests: New file.
81914         New module 'uninorm/nfkc'.
81915         * lib/uninorm/nfkc.c: New file.
81916         * modules/uninorm/nfkc: New file.
81918         Tests for module 'uninorm/nfkd'.
81919         * tests/uninorm/test-nfkd.c: New file.
81920         * tests/uninorm/test-u8-nfkd.c: New file.
81921         * tests/uninorm/test-u16-nfkd.c: New file.
81922         * tests/uninorm/test-u32-nfkd.c: New file.
81923         * tests/uninorm/test-u32-nfkd-big.sh: New file.
81924         * tests/uninorm/test-u32-nfkd-big.c: New file.
81925         * modules/uninorm/nfkd-tests: New file.
81927         New module 'uninorm/nfkd'.
81928         * lib/uninorm/nfkd.c: New file.
81929         * modules/uninorm/nfkd: New file.
81931         Tests for module 'uninorm/nfc'.
81932         * tests/uninorm/test-nfc.c: New file.
81933         * tests/uninorm/test-u8-nfc.c: New file.
81934         * tests/uninorm/test-u16-nfc.c: New file.
81935         * tests/uninorm/test-u32-nfc.c: New file.
81936         * tests/uninorm/test-u32-nfc-big.sh: New file.
81937         * tests/uninorm/test-u32-nfc-big.c: New file.
81938         * modules/uninorm/nfc-tests: New file.
81940         New module 'uninorm/nfc'.
81941         * lib/uninorm/nfc.c: New file.
81942         * modules/uninorm/nfc: New file.
81944         Tests for module 'uninorm/nfd'.
81945         * tests/uninorm/test-nfd.c: New file.
81946         * tests/uninorm/test-u8-nfd.c: New file.
81947         * tests/uninorm/test-u16-nfd.c: New file.
81948         * tests/uninorm/test-u32-nfd.c: New file.
81949         * tests/uninorm/test-u32-nfd-big.sh: New file.
81950         * tests/uninorm/test-u32-nfd-big.c: New file.
81951         * tests/uninorm/test-u32-normalize-big.h: New file.
81952         * tests/uninorm/test-u32-normalize-big.c: New file.
81953         * tests/uninorm/NormalizationTest.txt: New file, created from
81954         Unicode 5.1.0 NormalizationTest.txt.
81955         * modules/uninorm/nfd-tests: New file.
81957         New module 'uninorm/nfd'.
81958         * lib/uninorm/nfd.c: New file.
81959         * modules/uninorm/nfd: New file.
81961         New module 'uninorm/u32-normalize'.
81962         * lib/uninorm/u32-normalize.c: New file.
81963         * modules/uninorm/u32-normalize: New file.
81965         New module 'uninorm/u16-normalize'.
81966         * lib/uninorm/u16-normalize.c: New file.
81967         * modules/uninorm/u16-normalize: New file.
81969         New module 'uninorm/u8-normalize'.
81970         * lib/uninorm/u8-normalize.c: New file.
81971         * lib/uninorm/normalize-internal.h: New file.
81972         * lib/uninorm/u-normalize-internal.h: New file.
81973         * modules/uninorm/u8-normalize: New file.
81975         New module 'uninorm/decompose-internal'.
81976         * lib/uninorm/decompose-internal.c: New file.
81977         * modules/uninorm/decompose-internal: New file.
81979         Tests for module 'uninorm/composition'.
81980         * tests/uninorm/test-composition.c: New file.
81981         * modules/uninorm/composition-tests: New file.
81983         New module 'uninorm/composition'.
81984         * lib/uninorm/composition.c: New file.
81985         * lib/uninorm/composition-table.gperf: New file, generated by
81986         gen-uni-tables.
81987         * modules/uninorm/composition: New file.
81989         Tests for module 'uninorm/compat-decomposition'.
81990         * tests/uninorm/test-compat-decomposition.c: New file.
81991         * modules/uninorm/compat-decomposition-tests: New file.
81993         New module 'uninorm/compat-decomposition'.
81994         * lib/uninorm/decompose-internal.h: New file.
81995         * lib/uninorm/compat-decomposition.c: New file.
81996         * modules/uninorm/compat-decomposition: New file.
81998         Tests for module 'uninorm/canonical-decomposition'.
81999         * tests/uninorm/test-canonical-decomposition.c: New file.
82000         * modules/uninorm/canonical-decomposition-tests: New file.
82002         New module 'uninorm/canonical-decomposition'.
82003         * lib/uninorm/canonical-decomposition.c: New file.
82004         * modules/uninorm/canonical-decomposition: New file.
82006         Tests for module 'uninorm/decomposition'.
82007         * tests/uninorm/test-decomposition.c: New file.
82008         * modules/uninorm/decomposition-tests: New file.
82010         New module 'uninorm/decomposition'.
82011         * lib/uninorm/decomposition.c: New file.
82012         * modules/uninorm/decomposition: New file.
82014         New module 'uninorm/decomposition-table'.
82015         * lib/uninorm/decomposition-table.h: New file.
82016         * lib/uninorm/decomposition-table.c: New file.
82017         * lib/uninorm/decomposition-table1.h: New file, generated by
82018         gen-uni-tables.
82019         * lib/uninorm/decomposition-table2.h: New file, generated by
82020         gen-uni-tables.
82021         * modules/uninorm/decomposition-table: New file.
82023         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
82024         (UC_DECOMP_*): New enumeration items.
82025         (get_decomposition): New function.
82026         (struct decomp_table): New type.
82027         (output_decomposition, output_decomposition_tables): New functions.
82028         (unicode_composition_exclusions): New variable.
82029         (fill_composition_exclusions, debug_output_composition_tables): New
82030         functions.
82031         (main): Accept one more argument. Invoke fill_composition_exclusions.
82032         Output decomposition and composition tables.
82034         New module 'uninorm/base'.
82035         * lib/uninorm.h: New file.
82036         * lib/unictype.h: Update comment.
82037         * modules/uninorm/base: New file.
82039 2009-02-21  David Lutterkort  <lutter@redhat.com>
82041         Tests for module 'safe-alloc'.
82042         * tests/test-safe-alloc.c: New file.
82043         * modules/safe-alloc-tests: New file.
82045         New module 'safe-alloc'.
82046         * lib/safe-alloc.h: New file.
82047         * lib/safe-alloc.c: New file.
82048         * m4/safe-alloc.m4: New file.
82049         * modules/safe-alloc: New file.
82050         * doc/safe-alloc.texi: New file.
82051         * doc/gnulib.texi: Include it.
82052         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
82053         safe-alloc.
82055 2009-02-18  Bruno Haible  <bruno@clisp.org>
82057         Fix link error on non-glibc systems.
82058         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
82059         variable.
82060         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
82062 2009-02-18  Jim Meyering  <meyering@redhat.com>
82064         fts: avoid used-uninitialized error due to recent change
82065         * lib/fts.c (fts_read): Guard uses of the new member,
82066         parent->fts_n_dirs_remaining, since it's not relevant for
82067         the parent of a directory specified on the command-line.
82069 2009-02-17  James Youngman  <jay@gnu.org>
82070             Bruno Haible  <bruno@clisp.org>
82072         * m4/include_next.m4: Reformulate comment.
82074 2009-02-16  Jim Meyering  <meyering@redhat.com>
82076         fts: add #if guards so that the fts_lgpl module still builds
82077         * lib/fts.c: Guard just-added hash-table-using parts with
82078         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
82079         Reported by Simon Josefsson.
82081 2009-02-15  Bruno Haible  <bruno@clisp.org>
82083         * modules/array-mergesort-tests: New file.
82084         * tests/test-array-mergesort.c: New file.
82086         New module 'array-mergesort'.
82087         * modules/array-mergesort: New file.
82088         * lib/array-mergesort.h: New file.
82090 2009-02-15  Bruno Haible  <bruno@clisp.org>
82092         Fix 2009-02-07 commit.
82093         * lib/gen-uni-tables.c (output_predicate, output_category,
82094         output_combclass, output_bidi_category, output_decimal_digit,
82095         output_digit, output_numeric, output_mirror, output_scripts,
82096         output_ident_category, output_simple_mapping): Fix format directives.
82097         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
82099 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
82101         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
82102         fixes are available from IBM.
82104 2009-02-13  Jim Meyering  <meyering@redhat.com>
82106         fts: arrange not to stat non-directories in more cases
82107         This makes GNU find (when it doesn't need to stat each file)
82108         *much* more efficient at traversing reiserfs file systems.
82109         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
82110         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
82111         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
82112         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
82113         (leaf_optimization_applies): New function.
82114         (LCO_hash, LCO_compare): New helper functions.
82115         (link_count_optimize_ok): New function.
82116         (fts_stat): Initialize new member (if dir).
82117         (fts_read): Decrement parent's fts_n_dirs_remaining count if
82118         we've just stat'ed a directory.  Skip the stat call when possible.
82119         ---
82120         Note this AFS-related exchange:
82121         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
82122         and note find's pioctl call in find/fstype.c.
82123         But that is necessary only if you want to enable the
82124         optimization for AFS, and for now, I don't.
82126         fts: move a function definition "up" (no semantic change)
82127         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
82128         "up" to precede upcoming use of a related function.
82130 2009-02-11  Jim Meyering  <meyering@redhat.com>
82132         fts: correct internal computation of nlinks (optimization-related)
82133         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
82134         whether the current entry is a directory, so don't test it.
82136 2009-02-10  Bruno Haible  <bruno@clisp.org>
82138         Tests for module 'uniwbrk/ulc-wordbreaks'.
82139         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
82140         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
82141         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
82143         Tests for module 'uniwbrk/u32-wordbreaks'.
82144         * modules/uniwbrk/u32-wordbreaks-tests: New file.
82145         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
82147         Tests for module 'uniwbrk/u16-wordbreaks'.
82148         * modules/uniwbrk/u16-wordbreaks-tests: New file.
82149         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
82151         Tests for module 'uniwbrk/u8-wordbreaks'.
82152         * modules/uniwbrk/u8-wordbreaks-tests: New file.
82153         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
82155 2009-02-10  Bruno Haible  <bruno@clisp.org>
82157         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
82158         property.
82159         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
82160         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
82161         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
82163 2009-02-10  Simon Josefsson  <simon@josefsson.org>
82165         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
82166         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
82168 2009-02-10  Bruno Haible  <bruno@clisp.org>
82170         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
82171         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
82172         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
82173         * lib/unilbrk/u8-possible-linebreaks.c: Update.
82174         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
82175         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
82177 2009-02-09  Simon Josefsson  <simon@josefsson.org>
82179         * lib/sockets.h (gl_fd_to_handle): New function.
82181         * tests/test-sockets.c: Call gl_fd_to_handle.
82183 2009-02-09  Bruno Haible  <bruno@clisp.org>
82185         * doc/havelib.texi: Document the conventions on bi-arch systems.
82187 2009-02-08  Bruno Haible  <bruno@clisp.org>
82189         Document the AC_LIB_LINKFLAGS macro.
82190         * doc/havelib.texi: New file, mostly written on 2005-05-24.
82191         * doc/gnulib.texi: Include it.
82193 2009-02-08  Bruno Haible  <bruno@clisp.org>
82195         Fix wrong order of sections, compared to TOC.
82196         * doc/gnulib.texi: Include relocatable-maint.texi after the
82197         "Regular expressions" node, not before.
82199 2009-02-08  Bruno Haible  <bruno@clisp.org>
82201         Tests for module 'unicase/totitle'.
82202         * modules/unicase/totitle-tests: New file.
82204         Tests for module 'unicase/tolower'.
82205         * modules/unicase/tolower-tests: New file.
82207         Tests for module 'unicase/toupper'.
82208         * modules/unicase/toupper-tests: New file.
82209         * tests/unicase/test-mapping-part1.h: New file.
82210         * tests/unicase/test-mapping-part2.h: New file.
82212         New module 'unicase/totitle'.
82213         * modules/unicase/totitle: New file.
82214         * lib/unicase/totitle.c: New file.
82216         New module 'unicase/tolower'.
82217         * modules/unicase/tolower: New file.
82218         * lib/unicase/tolower.c: New file.
82220         New module 'unicase/toupper'.
82221         * modules/unicase/toupper: New file.
82222         * lib/unicase/toupper.c: New file.
82223         * lib/unicase/simple-mapping.h: New file.
82225         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
82226         (mapping_table): New structure.
82227         (output_simple_mapping): New function.
82228         (main): Invoke output_simple_mapping_test and output_simple_mapping.
82229         * modules/gen-uni-tables (Description): Update.
82230         * lib/unicase/toupper.h: New file, automatically generated by
82231         gen-uni-tables.
82232         * lib/unicase/tolower.h: New file, automatically generated by
82233         gen-uni-tables.
82234         * lib/unicase/totitle.h: New file, automatically generated by
82235         gen-uni-tables.
82236         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
82237         gen-uni-tables.
82238         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
82239         gen-uni-tables.
82240         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
82241         gen-uni-tables.
82243         New module 'unicase/base'.
82244         * modules/unicase/base: New file.
82245         * lib/unicase.h: New file.
82247 2009-02-08  Bruno Haible  <bruno@clisp.org>
82249         New module 'uniwbrk/ulc-wordbreaks'.
82250         * modules/uniwbrk/ulc-wordbreaks: New file.
82251         * lib/uniwbrk/ulc-wordbreaks.c: New file.
82253         New module 'uniwbrk/u32-wordbreaks'.
82254         * modules/uniwbrk/u32-wordbreaks: New file.
82255         * lib/uniwbrk/u32-wordbreaks.c: New file.
82257         New module 'uniwbrk/u16-wordbreaks'.
82258         * modules/uniwbrk/u16-wordbreaks: New file.
82259         * lib/uniwbrk/u16-wordbreaks.c: New file.
82261         New module 'uniwbrk/u8-wordbreaks'.
82262         * modules/uniwbrk/u8-wordbreaks: New file.
82263         * lib/uniwbrk/u8-wordbreaks.c: New file.
82264         * lib/uniwbrk/u-wordbreaks.h: New file.
82266         New module 'uniwbrk/table'.
82267         * modules/uniwbrk/table: New file.
82268         * lib/uniwbrk/wbrktable.h: New file.
82269         * lib/uniwbrk/wbrktable.c: New file.
82271         New module 'uniwbrk/wordbreak-property'.
82272         * modules/uniwbrk/wordbreak-property: New file.
82273         * lib/uniwbrk/wordbreak-property.c: New file.
82275         * lib/gen-uni-tables.c (WBP_*): New enum items.
82276         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
82277         (unicode_org_wbp): New variable.
82278         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
82279         New functions.
82280         (wbp_table): New structure.
82281         (output_wbp, output_wbrk_tables): New functions.
82282         (main): Accept additional argument. Invoke fill_org_wbp,
82283         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
82284         output_wbrk_tables.
82285         * modules/gen-uni-tables (Description): Update.
82286         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
82287         gen-uni-tables.
82289         New module 'uniwbrk/base'.
82290         * modules/uniwbrk/base: New file.
82291         * lib/uniwbrk.h: New file.
82293 2009-02-08  Bruno Haible  <bruno@clisp.org>
82295         Update to Unicode 5.1.0.
82296         * lib/gen-uni-tables.c (is_property_alphabetic): Include
82297         U+2185..U+2188.
82298         (is_property_default_ignorable_code_point): Don't include characters
82299         of category Cc or Cs and not-a-characters.
82300         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
82301         U+0D79, U+109E, U+109F, U+A60C.
82302         * lib/unictype/bidi_of.h: Regenerated.
82303         * lib/unictype/blocks.h: Regenerated.
82304         * lib/unictype/categ_C.h: Regenerated.
82305         * lib/unictype/categ_Cf.h: Regenerated.
82306         * lib/unictype/categ_Cn.h: Regenerated.
82307         * lib/unictype/categ_L.h: Regenerated.
82308         * lib/unictype/categ_Ll.h: Regenerated.
82309         * lib/unictype/categ_Lm.h: Regenerated.
82310         * lib/unictype/categ_Lo.h: Regenerated.
82311         * lib/unictype/categ_Lu.h: Regenerated.
82312         * lib/unictype/categ_M.h: Regenerated.
82313         * lib/unictype/categ_Mc.h: Regenerated.
82314         * lib/unictype/categ_Me.h: Regenerated.
82315         * lib/unictype/categ_Mn.h: Regenerated.
82316         * lib/unictype/categ_N.h: Regenerated.
82317         * lib/unictype/categ_Nd.h: Regenerated.
82318         * lib/unictype/categ_Nl.h: Regenerated.
82319         * lib/unictype/categ_No.h: Regenerated.
82320         * lib/unictype/categ_P.h: Regenerated.
82321         * lib/unictype/categ_Pd.h: Regenerated.
82322         * lib/unictype/categ_Pe.h: Regenerated.
82323         * lib/unictype/categ_Pf.h: Regenerated.
82324         * lib/unictype/categ_Pi.h: Regenerated.
82325         * lib/unictype/categ_Po.h: Regenerated.
82326         * lib/unictype/categ_Ps.h: Regenerated.
82327         * lib/unictype/categ_S.h: Regenerated.
82328         * lib/unictype/categ_Sk.h: Regenerated.
82329         * lib/unictype/categ_Sm.h: Regenerated.
82330         * lib/unictype/categ_So.h: Regenerated.
82331         * lib/unictype/categ_of.h: Regenerated.
82332         * lib/unictype/combining.h: Regenerated.
82333         * lib/unictype/ctype_alnum.h: Regenerated.
82334         * lib/unictype/ctype_alpha.h: Regenerated.
82335         * lib/unictype/ctype_graph.h: Regenerated.
82336         * lib/unictype/ctype_lower.h: Regenerated.
82337         * lib/unictype/ctype_print.h: Regenerated.
82338         * lib/unictype/ctype_punct.h: Regenerated.
82339         * lib/unictype/ctype_upper.h: Regenerated.
82340         * lib/unictype/decdigit.h: Regenerated.
82341         * lib/unictype/digit.h: Regenerated.
82342         * lib/unictype/mirror.h: Regenerated.
82343         * lib/unictype/numeric.h: Regenerated.
82344         * lib/unictype/pr_alphabetic.h: Regenerated.
82345         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
82346         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
82347         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
82348         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
82349         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
82350         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
82351         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
82352         * lib/unictype/pr_combining.h: Regenerated.
82353         * lib/unictype/pr_dash.h: Regenerated.
82354         * lib/unictype/pr_decimal_digit.h: Regenerated.
82355         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
82356         * lib/unictype/pr_deprecated.h: Regenerated.
82357         * lib/unictype/pr_diacritic.h: Regenerated.
82358         * lib/unictype/pr_extender.h: Regenerated.
82359         * lib/unictype/pr_format_control.h: Regenerated.
82360         * lib/unictype/pr_grapheme_base.h: Regenerated.
82361         * lib/unictype/pr_grapheme_extend.h: Regenerated.
82362         * lib/unictype/pr_grapheme_link.h: Regenerated.
82363         * lib/unictype/pr_id_continue.h: Regenerated.
82364         * lib/unictype/pr_id_start.h: Regenerated.
82365         * lib/unictype/pr_ideographic.h: Regenerated.
82366         * lib/unictype/pr_ignorable_control.h: Regenerated.
82367         * lib/unictype/pr_lowercase.h: Regenerated.
82368         * lib/unictype/pr_math.h: Regenerated.
82369         * lib/unictype/pr_numeric.h: Regenerated.
82370         * lib/unictype/pr_other_alphabetic.h: Regenerated.
82371         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
82372         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
82373         * lib/unictype/pr_other_id_continue.h: Regenerated.
82374         * lib/unictype/pr_other_lowercase.h: Regenerated.
82375         * lib/unictype/pr_other_math.h: Regenerated.
82376         * lib/unictype/pr_punctuation.h: Regenerated.
82377         * lib/unictype/pr_sentence_terminal.h: Regenerated.
82378         * lib/unictype/pr_soft_dotted.h: Regenerated.
82379         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
82380         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
82381         * lib/unictype/pr_unified_ideograph.h: Regenerated.
82382         * lib/unictype/pr_uppercase.h: Regenerated.
82383         * lib/unictype/pr_xid_continue.h: Regenerated.
82384         * lib/unictype/pr_xid_start.h: Regenerated.
82385         * lib/unictype/pr_zero_width.h: Regenerated.
82386         * lib/unictype/scripts.h: Regenerated.
82387         * lib/unictype/scripts_byname.gperf: Regenerated.
82388         * lib/unictype/sy_java_ident.h: Regenerated.
82389         * lib/unilbrk/lbrkprop1.h: Regenerated.
82390         * lib/unilbrk/lbrkprop2.h: Regenerated.
82391         * tests/unictype/test-categ_C.c: Regenerated.
82392         * tests/unictype/test-categ_Cf.c: Regenerated.
82393         * tests/unictype/test-categ_Cn.c: Regenerated.
82394         * tests/unictype/test-categ_L.c: Regenerated.
82395         * tests/unictype/test-categ_Ll.c: Regenerated.
82396         * tests/unictype/test-categ_Lm.c: Regenerated.
82397         * tests/unictype/test-categ_Lo.c: Regenerated.
82398         * tests/unictype/test-categ_Lu.c: Regenerated.
82399         * tests/unictype/test-categ_M.c: Regenerated.
82400         * tests/unictype/test-categ_Mc.c: Regenerated.
82401         * tests/unictype/test-categ_Me.c: Regenerated.
82402         * tests/unictype/test-categ_Mn.c: Regenerated.
82403         * tests/unictype/test-categ_N.c: Regenerated.
82404         * tests/unictype/test-categ_Nd.c: Regenerated.
82405         * tests/unictype/test-categ_Nl.c: Regenerated.
82406         * tests/unictype/test-categ_No.c: Regenerated.
82407         * tests/unictype/test-categ_P.c: Regenerated.
82408         * tests/unictype/test-categ_Pd.c: Regenerated.
82409         * tests/unictype/test-categ_Pe.c: Regenerated.
82410         * tests/unictype/test-categ_Pf.c: Regenerated.
82411         * tests/unictype/test-categ_Pi.c: Regenerated.
82412         * tests/unictype/test-categ_Po.c: Regenerated.
82413         * tests/unictype/test-categ_Ps.c: Regenerated.
82414         * tests/unictype/test-categ_S.c: Regenerated.
82415         * tests/unictype/test-categ_Sk.c: Regenerated.
82416         * tests/unictype/test-categ_Sm.c: Regenerated.
82417         * tests/unictype/test-categ_So.c: Regenerated.
82418         * tests/unictype/test-ctype_alnum.c: Regenerated.
82419         * tests/unictype/test-ctype_alpha.c: Regenerated.
82420         * tests/unictype/test-ctype_graph.c: Regenerated.
82421         * tests/unictype/test-ctype_lower.c: Regenerated.
82422         * tests/unictype/test-ctype_print.c: Regenerated.
82423         * tests/unictype/test-ctype_punct.c: Regenerated.
82424         * tests/unictype/test-ctype_upper.c: Regenerated.
82425         * tests/unictype/test-decdigit.h: Regenerated.
82426         * tests/unictype/test-digit.h: Regenerated.
82427         * tests/unictype/test-numeric.h: Regenerated.
82428         * tests/unictype/test-pr_alphabetic.c: Regenerated.
82429         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
82430         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
82431         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
82432         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
82433         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
82434         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
82435         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
82436         * tests/unictype/test-pr_combining.c: Regenerated.
82437         * tests/unictype/test-pr_dash.c: Regenerated.
82438         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
82439         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
82440         * tests/unictype/test-pr_deprecated.c: Regenerated.
82441         * tests/unictype/test-pr_diacritic.c: Regenerated.
82442         * tests/unictype/test-pr_extender.c: Regenerated.
82443         * tests/unictype/test-pr_format_control.c: Regenerated.
82444         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
82445         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
82446         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
82447         * tests/unictype/test-pr_id_continue.c: Regenerated.
82448         * tests/unictype/test-pr_id_start.c: Regenerated.
82449         * tests/unictype/test-pr_ideographic.c: Regenerated.
82450         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
82451         * tests/unictype/test-pr_lowercase.c: Regenerated.
82452         * tests/unictype/test-pr_math.c: Regenerated.
82453         * tests/unictype/test-pr_numeric.c: Regenerated.
82454         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
82455         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
82456         Regenerated.
82457         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
82458         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
82459         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
82460         * tests/unictype/test-pr_other_math.c: Regenerated.
82461         * tests/unictype/test-pr_punctuation.c: Regenerated.
82462         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
82463         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
82464         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
82465         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
82466         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
82467         * tests/unictype/test-pr_uppercase.c: Regenerated.
82468         * tests/unictype/test-pr_xid_continue.c: Regenerated.
82469         * tests/unictype/test-pr_xid_start.c: Regenerated.
82470         * tests/unictype/test-pr_zero_width.c: Regenerated.
82472         Update to Unicode 5.1.0.
82473         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
82474         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
82475         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
82476         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
82477         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
82478         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
82479         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
82480         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
82481         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
82482         (nonspacing_table_ind): Update.
82483         * tests/uniwidth/test-uc_width2.sh: Update expected result.
82485         Update to Unicode 5.1.0.
82486         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
82487         code transform.
82488         * lib/uniname/uniname.c (unicode_character_name,
82489         unicode_name_character): Add the range 0x1Fxxx to the code transform.
82490         * lib/uniname/uninames.h: Regenerated.
82491         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
82493 2009-02-07  Bruno Haible  <bruno@clisp.org>
82495         Merge gen-ctype and gen-lbrk into a single program.
82496         * lib/gen-uni-tables.c: New file, incorporating
82497         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
82498         Add directory prefixes to the names of the generated files.
82499         * lib/unictype/gen-ctype.c: Remove file.
82500         * lib/unilbrk/gen-lbrk.c: Remove file.
82501         * modules/gen-uni-tables: New file.
82502         * modules/unictype/gen-ctype: Remove file.
82503         * modules/unilbrk/gen-lbrk: Remove file.
82505 2009-02-07  Bruno Haible  <bruno@clisp.org>
82507         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
82509         New module 'unistr/u32-strcoll'.
82510         * modules/unistr/u32-strcoll: New file.
82511         * lib/unistr/u32-strcoll.c: New file.
82513         New module 'unistr/u16-strcoll'.
82514         * modules/unistr/u16-strcoll: New file.
82515         * lib/unistr/u16-strcoll.c: New file.
82517         New module 'unistr/u8-strcoll'.
82518         * modules/unistr/u8-strcoll: New file.
82519         * lib/unistr/u8-strcoll.c: New file.
82520         * lib/unistr/u-strcoll.h: New file.
82522 2009-02-07  Bruno Haible  <bruno@clisp.org>
82524         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
82525         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
82526         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
82527         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
82528         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
82529         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
82531 2009-02-07  Bruno Haible  <bruno@clisp.org>
82533         Make 64-bit clean.
82534         * lib/unictype/gen-ctype.c (output_predicate, output_category,
82535         output_combclass, output_bidi_category, output_decimal_digit,
82536         output_digit, output_numeric, output_mirror, output_scripts,
82537         output_ident_category): Use proper width specifier in format strings.
82539 2009-02-07  Bruno Haible  <bruno@clisp.org>
82541         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
82542         failure behaviour.
82544 2009-02-07  Jim Meyering  <meyering@redhat.com>
82546         regex: avoid compilation failure with upcoming gcc-4.4
82547         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
82548         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
82549         "... error: integer overflow in preprocessor expression".
82551 2009-02-05  Ben Pfaff  <blp@gnu.org>
82553         Fix link errors on Windows when close module is used.
82554         * modules/close: Add $(LIB_CLOSE) to Link section.
82555         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
82556         $(LIB_CLOSE) on Windows.
82558 2009-02-05  Jim Meyering  <meyering@redhat.com>
82560         still avoid unused-parameter warnings, but do it cleanly
82561         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
82562         (get_fs_usage): Cast to void instead.
82563         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
82564         (dev_from_mount_options, read_file_system_list): Cast to void.
82565         Prompted by Bruno Haible.
82567 2009-02-04  Jim Meyering  <meyering@redhat.com>
82569         fsusage.c: correct copyright year
82570         * lib/fsusage.c: Reflect year in which the change is pushed into
82572         avoid misc. warnings
82573         * lib/fsusage.c (UNUSED_PARAM): Define.
82574         (get_fs_usage): Mark parameter "disk" as unused.
82575         * lib/getugroups.c (getgrent): Use "void" in prototype.
82576         * lib/mountlist.c: Mark unused parameters.
82577         (read_file_system_list): Declare a local with "const".
82578         * lib/nanosleep.c (getnow): Declare static.
82579         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
82581         dirfd: set errno upon failure
82582         * lib/dirfd.c: Include <errno.h>.
82583         Set errno to ENOTSUP when returning -1.
82584         * modules/dirfd (Depends-on): Add errno.
82585         Suggested by John Kodis <kodis@comcast.net>.
82587 2009-02-01  Bruno Haible  <bruno@clisp.org>
82589         Don't assume sizeof (long) >= sizeof (void *).
82590         * lib/memcmp.c: Include stdint.h.
82591         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
82592         srcp2 to 'const byte *'.
82593         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
82594         types to uintptr_t.
82595         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
82596         * modules/memcmp (Depends-on): Add stdint.
82597         Reported by Ozkan Sezer <sezeroz@gmail.com>.
82599 2009-01-30  Eric Blake  <ebb9@byu.net>
82601         fix more require-before-expand issues
82602         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
82603         expand, AC_PROG_AWK.
82604         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
82606 2009-01-28  Eric Blake  <ebb9@byu.net>
82608         version-etc: use consistent URL formatting
82609         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
82610         Improve formatting.  Use fputs for string without %.
82612 2009-01-28  Jim Meyering  <meyering@redhat.com>
82614         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
82615         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
82616         "underquoted definition of NAME" from autoconf-2.59.
82618 2009-01-28  Bruno Haible  <bruno@clisp.org>
82620         * doc/gnulib.texi: Add "Obsolete modules" to index.
82622 2009-01-28  Jim Meyering  <meyering@redhat.com>
82624         useless-if-before-free: recognize more variants
82625         * build-aux/useless-if-before-free: Also recognize e.g.,
82626         if (NULL != p) free (p);
82628 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
82630         test-getaddrinfo: skip (don't fail) this test when there's no network
82631         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
82632         on the presumption that it means you lack network access.
82634 2009-01-26  Jim Meyering  <meyering@redhat.com>
82636         fflush: avoid warnings on modern systems
82637         * lib/fflush.c (rpl_fflush): Move declarations of locals,
82638         pos and result, into scopes where they're used.
82640 2009-01-26  Eric Blake  <ebb9@byu.net>
82642         Silence warning reintroduced by recent extensions patch.
82643         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
82644         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
82645         autoconf.
82647         Backport improved autoconf semantics of AC_DEFUN_ONCE.
82648         * m4/00gnulib.m4: New file.
82649         * gnulib-tool (func_get_filelist): Always use it.
82650         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
82651         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
82653 2009-01-25  Bruno Haible  <bruno@clisp.org>
82655         Make test-quotearg work on MacOS X and AIX.
82656         * tests/test-quotearg.sh: New file.
82657         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
82658         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
82659         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
82660         include <libintl.h>.
82661         (fake_locale): Remove variable.
82662         (gettext, dgettext, dcgettext): Remove functions.
82663         (main): Instead of setting a fake locale, set a real locale. Call
82664         textdomain and bindtextdomain.
82665         * modules/quotearg-tests (Files): Add the new files.
82666         (Depends-on): Add gettext, setenv, unsetenv.
82667         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
82668         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
82669         Augment TESTS_ENVIRONMENT.
82671 2009-01-25  Bruno Haible  <bruno@clisp.org>
82673         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
82674         fr_FR.ISO8859-1 locale on MacOS X.
82675         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
82676         ja_JP.eucJP locale on MacOS X.
82677         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
82678         zh_CN.GB18030 locale on MacOS X.
82680 2009-01-25  Bruno Haible  <bruno@clisp.org>
82682         Avoid link errors on MacOS X 10.3.
82683         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
82684         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
82686 2009-01-25  Bruno Haible  <bruno@clisp.org>
82688         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
82689         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
82690         * modules/pipe (Files): Remove m4/posix_spawn.m4.
82691         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
82692         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
82693         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
82694         posix_spawnattr_init, posix_spawnattr_setsigmask,
82695         posix_spawnattr_setflags, posix_spawnattr_destroy.
82697         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
82698         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
82699         * modules/execute (Files): Remove m4/posix_spawn.m4.
82700         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
82701         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
82702         posix_spawnattr_init, posix_spawnattr_setsigmask,
82703         posix_spawnattr_setflags, posix_spawnattr_destroy.
82705 2009-01-25  Bruno Haible  <bruno@clisp.org>
82707         * lib/glthread/threadlib.c: Include <stdlib.h>.
82709 2009-01-25  Bruno Haible  <bruno@clisp.org>
82711         * lib/glthread/threadlib.c (dummy): New declaration.
82713 2009-01-25  Bruno Haible  <bruno@clisp.org>
82715         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
82716         multibyte characters also for the GB18030 encoding. Don't crash when
82717         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
82719 2009-01-25  Bruno Haible  <bruno@clisp.org>
82721         Avoid redefining 'struct random_data' on OSF/1 5.1.
82722         * lib/stdlib.in.h: Include <random.h> if it exists.
82723         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
82724         HAVE_RANDOM_H. Include <random.h> when testing whether
82725         'struct random_data' exists.
82726         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
82728 2009-01-25  Bruno Haible  <bruno@clisp.org>
82730         Don't install charset.alias on MacOS X >= 10.3.
82731         * lib/localcharset.c (DARWIN7): New macro.
82732         (get_charset_aliases): Hardcode the result for Darwin7.
82733         * modules/localcharset (install-exec-local): Don't install
82734         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
82736 2009-01-25  Bruno Haible  <bruno@clisp.org>
82738         Don't install charset.alias on mingw and Cygwin.
82739         * modules/localcharset (install-exec-local): Don't install
82740         charset.alias on mingw and Cygwin, if the file does not yet exist.
82741         The result for these platforms is hardcoded in localcharset.c.
82743 2009-01-25  Bruno Haible  <bruno@clisp.org>
82745         Make it possible again to use AC_GNU_SOURCE together with gnulib.
82746         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
82747         before requiring AC_USE_SYSTEM_EXTENSIONS.
82749 2009-01-25  Jim Meyering  <meyering@redhat.com>
82751         c-strtod: avoid warnings
82752         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
82753         "assignment discards qualifiers from pointer target type" warnings.
82755 2009-01-24  Bruno Haible  <bruno@clisp.org>
82757         Add support for non-UTF-8 locales on MacOS X.
82758         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
82759         canonical encodings. For Darwin 7 and newer, don't map traditional
82760         encodings to UTF-8.
82761         Reported by Vincent Lefevre <vincent@vinc17.org>
82762         at <http://savannah.gnu.org/bugs/?25235>.
82764 2009-01-24  Bruno Haible  <bruno@clisp.org>
82766         * doc/gnulib.texi (Obsolete modules): New section.
82767         Reported by Mike Frysinger <vapier@gentoo.org>.
82769 2009-01-24  Bruno Haible  <bruno@clisp.org>
82771         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
82772         (%.dvi): New rule.
82774 2009-01-24  Bruno Haible  <bruno@clisp.org>
82776         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
82777         Reported by Eric Blake.
82779 2009-01-24  Bruno Haible  <bruno@clisp.org>
82781         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
82782         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
82783         Reported by Gary V. Vaughan <gary@gnu.org>.
82785 2009-01-24  Bruno Haible  <bruno@clisp.org>
82787         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
82789 2009-01-23  Bruno Haible  <bruno@clisp.org>
82791         Make c-strtod, c-strtold usable in libraries.
82792         * lib/c-strtod.c: Include string.h instead of xalloc.h.
82793         (C_STRTOD): Call strdup instead of xstrdup.
82794         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
82795         * modules/c-strtold (Depends-on): Likewise.
82796         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
82797         * NEWS: Mention the change.
82798         Reported by Michael Gold <mgold@ncf.ca>.
82800 2009-01-23  Jim Meyering  <meyering@redhat.com>
82802         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
82803         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
82804         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
82806 2009-01-23  Simon Josefsson  <simon@josefsson.org>
82808         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
82809         GNU CoreUtils.
82810         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
82811         * modules/version-etc (Description): Update.
82813 2009-01-22  Bruno Haible  <bruno@clisp.org>
82815         Cache the C locale object.
82816         * lib/c-strtod.c (c_locale_cache): New variable.
82817         (c_locale): New function.
82818         (C_STRTOD): Use it, and don't call freelocale.
82819         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
82820         Suggested by Paolo Bonzini.
82822 2009-01-21  Bruno Haible  <bruno@clisp.org>
82824         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
82825         conditions other than overflow.
82827 2009-01-21  Bruno Haible  <bruno@clisp.org>
82829         * lib/c-strtod.c: Include errno.h.
82830         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
82831         value from STRTOD_L and STRTOD.
82833 2009-01-21  Bruno Haible  <bruno@clisp.org>
82834         and Jim Meyering  <meyering@redhat.com>
82836         nanosleep: skip configure test (fail it) for apple universal builds
82837         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
82838         universal builds, assume that nanosleep does not work.
82839         * modules/nanosleep (Depends-on): Add multiarch.
82841         mktime: skip configure test (fail it) for apple universal builds
82842         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
82843         universal builds, assume that mktime does not work.
82844         * modules/mktime (Depends-on): Add multiarch.
82846 2009-01-21  Eric Blake  <ebb9@byu.net>
82848         multiarch: avoid expand-before-require warning
82849         * modules/multiarch (configure.ac): Require, rather than expand,
82850         gl_MULTIARCH.
82851         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
82852         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
82853         enforce that all clients require it.  Partial reversion of
82854         2008-12-29 patch.
82856         error: avoid expand-before-require warning
82857         * modules/errno (configure.ac): Require, rather than expand,
82858         gl_HEADER_ERRNO_H.
82859         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
82860         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
82861         enforce that all clients require it.
82863         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
82864         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
82865         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
82866         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
82868 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
82870         Revert:
82871         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
82873         regex: do not depend on obsolete modules.
82874         * modules/regex: Remove memcmp and memmove.
82876 2009-01-20  Bruno Haible  <bruno@clisp.org>
82878         Make the 'link' module link on Windows NT 4.
82879         * lib/link.c (_WIN32_WINNT): Don't define.
82880         (CreateHardLinkFuncType): New type.
82881         (CreateHardLinkFunc, initialized): New variables.
82882         (initialize): New function.
82883         (link): Invoke CreateHardLink indirectly through the function pointer.
82885 2009-01-20  Bruno Haible  <bruno@clisp.org>
82887         Fix compilation failure on mingw.
82888         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
82890 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
82892         * doc/c-strtod.texi: Mention a couple of restrictions.
82894 2009-01-20  Jim Meyering  <meyering@redhat.com>
82896         gettimeofday: move more declarations out of functions
82897         * lib/gettimeofday.c: Move extern declarations of tzset and
82898         gmtime out of containing functions.  Prompted by Bruno Haible.
82900 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
82902         regex: do not depend on obsolete modules.
82903         * modules/regex: Remove memcmp and memmove.
82905 2009-01-19  Bruno Haible  <bruno@clisp.org>
82907         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
82908         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
82909         gl_BIGENDIAN, not AC_C_BIGENDIAN.
82910         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
82911         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
82913 2009-01-19  Bruno Haible  <bruno@clisp.org>
82915         * tests/test-link.c: Include <errno.h>.
82916         (main): Exit with code 77 when a hard link cannot be created due to
82917         the file system.
82918         * tests/test-link.sh: Skip test when a hard link cannot be created due
82919         to the file system.
82920         Suggested by Eric Blake.
82922 2009-01-19  Martin Lambers  <marlam@marlam.de>
82924         * modules/link-tests: New file.
82925         * tests/test-link.sh: New file.
82926         * tests/test-link.c: New file.
82928 2009-01-19  Eric Blake  <ebb9@byu.net>
82930         doc: mention another function added in cygwin 1.7.0
82931         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
82932         Another new function in cygwin 1.7.
82934 2009-01-19  Bruno Haible  <bruno@clisp.org>
82936         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
82937         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
82938         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
82939         gl_BIGENDIAN, not AC_C_BIGENDIAN.
82940         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
82941         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
82942         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
82943         * m4/md4.m4 (gl_MD4): Likewise.
82944         * m4/md5.m4 (gl_MD5): Likewise.
82945         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
82946         * m4/sha1.m4 (gl_SHA1): Likewise.
82947         * m4/sha256.m4 (gl_SHA256): Likewise.
82948         * m4/sha512.m4 (gl_SHA512): Likewise.
82950 2009-01-19  Bruno Haible  <bruno@clisp.org>
82952         * modules/uniname/uniname-tests (Depends-on): Add progname.
82953         * tests/uniname/test-uninames.c: Include progname.h.
82954         (main): Call set_program_name.
82956         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
82957         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
82958         (main): Call set_program_name.
82960         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
82961         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
82962         (main): Call set_program_name.
82964         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
82965         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
82966         (main): Call set_program_name.
82968         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
82969         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
82970         (main): Call set_program_name.
82972         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
82973         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
82974         (main): Call set_program_name.
82976         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
82977         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
82978         (main): Call set_program_name.
82980         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
82981         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
82982         (main): Call set_program_name.
82984         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
82985         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
82986         (main): Call set_program_name.
82988 2009-01-19  Eric Blake  <ebb9@byu.net>
82990         test-unistd: test previous patch
82991         * tests/test-unistd.c: Test *_FILENO macros.
82993         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
82994         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
82995         Guarantee a definition.
82996         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
82997         * modules/unistd-safer (Depends-on): Add dependency on unistd.
82998         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
82999         * lib/dup-safer.c (STDERR_FILENO): Likewise.
83000         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
83001         Likewise.
83002         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
83003         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
83004         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
83005         Likewise.
83006         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
83007         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
83008         (STDERR_FILENO): Likewise.
83009         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
83010         (STDERR_FILENO): Likewise.
83011         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
83012         (STDERR_FILENO): Likewise.
83013         Reported by Elbert Pol.
83015 2009-01-19  Eric Blake  <ebb9@byu.net>
83017         doc: mention more functions added in cygwin 1.7.0
83018         * doc/posix-functions/abort.texi (abort): Update wording related
83019         to cygwin.
83020         * doc/posix-functions/daylight.texi (daylight): Likewise.
83021         * doc/posix-functions/optarg.texi (optarg): Likewise.
83022         * doc/posix-functions/optarg.texi (opterr): Likewise.
83023         * doc/posix-functions/optarg.texi (optind): Likewise.
83024         * doc/posix-functions/optarg.texi (optopt): Likewise.
83025         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
83026         worked in 1.5.x, and was withdrawn in 1.7.
83027         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
83028         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
83029         cygwin versions.
83030         * doc/posix-functions/perror.texi (perror): Likewise.
83031         * doc/posix-functions/printf.texi (printf): Likewise.
83032         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
83033         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
83034         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
83035         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
83036         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
83037         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
83038         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
83039         Likewise.
83040         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
83041         Likewise.
83042         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
83043         this function.
83044         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
83045         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
83046         Likewise.
83047         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
83048         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
83049         * doc/posix-functions/confstr.texi (confstr): Likewise.
83050         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
83051         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
83052         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
83053         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
83054         * doc/posix-functions/fputws.texi (fputws): Likewise.
83055         * doc/posix-functions/fwide.texi (fwide): Likewise.
83056         * doc/posix-functions/getwc.texi (getwc): Likewise.
83057         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
83058         * doc/posix-functions/putwc.texi (putwc): Likewise.
83059         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
83060         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
83061         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
83062         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
83063         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
83064         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
83065         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
83066         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
83067         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
83068         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
83069         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
83071 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
83073         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
83074         * lib/ioctl.c: Include <sys/ioctl.h>.
83076 2009-01-19  Simon Josefsson  <simon@josefsson.org>
83078         * modules/getdate-tests (Depends-on): Add progname.
83079         * tests/test-getdate.c: Use progname module, to avoid link errors
83080         on non-glibc systems.
83082 2009-01-18  Simon Josefsson  <simon@josefsson.org>
83084         * modules/filenamecat-tests (Depends-on): Add progname.
83085         * modules/fstrcmp-tests (Depends-on): Likewise.
83087         * tests/test-filenamecat.c: Use progname module, to avoid link
83088         errors on non-glibc systems.
83089         * tests/test-fstrcmp.c: Likewise.
83091 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
83093         gettimeofday: avoid warning: nested extern declaration of 'localtime'
83094         * lib/gettimeofday.c: Move extern declaration out of function.
83096 2009-01-18  Bruno Haible  <bruno@clisp.org>
83098         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
83099         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
83100         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
83102 2009-01-18  Bruno Haible  <bruno@clisp.org>
83104         * lib/strftime.c (MEMPCPY): Remove unused macro.
83105         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
83107 2009-01-18  Martin Lambers  <marlam@marlam.de>
83109         New module 'link'.
83110         * lib/unistd.in.h (link): New declaration.
83111         * lib/link.c: New file.
83112         * m4/link.m4: New file.
83113         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
83114         HAVE_LINK.
83115         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
83116         * modules/link: New file.
83117         * doc/posix-functions/link.texi: Mention the new module.
83119 2009-01-18  Bruno Haible  <bruno@clisp.org>
83121         * tests/test-avltree_list.c (main): Call set_program_name.
83122         * tests/test-avltree_oset.c (main): Likewise.
83123         * tests/test-obstack-printf.c: Include progname.h.
83124         (main): Call set_program_name.
83125         * tests/test-quotearg.c: Include progname.h.
83126         (main): Call set_program_name.
83127         * tests/test-xmemdup0.c: Include progname.h.
83128         (main): Call set_program_name.
83130 2009-01-18  Bruno Haible  <bruno@clisp.org>
83132         New module 'alphasort'.
83133         * lib/dirent.in.h (alphasort): New declaration.
83134         * lib/alphasort.c: New file, from glibc with modifications.
83135         * m4/alphasort.m4: New file.
83136         * modules/alphasort: New file.
83137         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
83138         HAVE_ALPHASORT.
83139         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
83140         HAVE_ALPHASORT.
83141         * doc/posix-functions/alphasort.texi: Mention the new module and the
83142         portability problems.
83144 2009-01-18  Bruno Haible  <bruno@clisp.org>
83146         New module 'scandir'.
83147         * lib/dirent.in.h (scandir): New declaration.
83148         * lib/scandir.c: New file, from glibc with modifications.
83149         * m4/scandir.m4: New file.
83150         * modules/scandir: New file.
83151         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
83152         HAVE_SCANDIR.
83153         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
83154         HAVE_SCANDIR.
83155         * doc/posix-functions/scandir.texi: Mention the new module and the
83156         portability problems.
83158 2009-01-17  Bruno Haible  <bruno@clisp.org>
83160         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
83161         Update documentation.
83162         (func_remove_suffix): Escape all dots in the suffix. Update
83163         documentation.
83164         (func_filter_filelist): Update documentation.
83165         Reported by Ralf Wildenhues.
83167 2009-01-17  Bruno Haible  <bruno@clisp.org>
83169         * modules/dprintf-posix-tests: New file.
83170         * tests/test-dprintf-posix.sh: New file.
83171         * tests/test-dprintf-posix.c: New file.
83173         New modules 'dprintf', 'dprintf-posix'.
83174         * lib/stdio.in.h (dprintf): New declaration.
83175         * lib/dprintf.c: New file.
83176         * m4/dprintf.m4: New file.
83177         * m4/dprintf-posix.m4: New file.
83178         * modules/dprintf: New file.
83179         * modules/dprintf-posix: New file.
83180         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
83181         HAVE_DPRINTF, REPLACE_DPRINTF.
83182         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
83183         HAVE_DPRINTF, REPLACE_DPRINTF.
83184         * doc/posix-functions/dprintf.texi: Mention the new modules.
83186 2009-01-17  Bruno Haible  <bruno@clisp.org>
83188         * modules/vdprintf-posix-tests: New file.
83189         * tests/test-vdprintf-posix.sh: New file.
83190         * tests/test-vdprintf-posix.c: New file.
83192         New modules 'vdprintf', 'vdprintf-posix'.
83193         * lib/stdio.in.h (vdprintf): New declaration.
83194         * lib/vdprintf.c: New file.
83195         * m4/vdprintf.m4: New file.
83196         * m4/vdprintf-posix.m4: New file.
83197         * modules/vdprintf: New file.
83198         * modules/vdprintf-posix: New file.
83199         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
83200         HAVE_VDPRINTF, REPLACE_VDPRINTF.
83201         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
83202         HAVE_VDPRINTF, REPLACE_VDPRINTF.
83203         * doc/posix-functions/vdprintf.texi: Mention the new modules.
83205 2009-01-17  Bruno Haible  <bruno@clisp.org>
83207         Fix replacement of fopen on mingw.
83208         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
83209         mingw.
83211 2009-01-17  Bruno Haible  <bruno@clisp.org>
83213         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
83214         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
83216 2009-01-17  Bruno Haible  <bruno@clisp.org>
83218         Avoid test-fflush2.sh failure on mingw.
83219         * tests/test-fflush2.c: Include binary-io.h.
83220         (main): Put standard input into binary mode.
83221         * modules/fflush-tests (Depends-on): Add binary-io.
83223 2009-01-17  Bruno Haible  <bruno@clisp.org>
83225         * lib/wchar.in.h: In another particular situation, include only the
83226         system's <wchar.h> file.
83227         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
83228         Reported by Albert Chin-A-Young <china@thewrittenword.com>
83229         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
83231 2009-01-17  Bruno Haible  <bruno@clisp.org>
83233         Support for stripping executables in --enable-relocatable.
83234         * build-aux/install-reloc: Expect one more argument, or an environment
83235         variable RELOC_STRIP_PROG. If set, strip the destination program and
83236         its wrapper.
83237         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
83238         RELOC_STRIP_PROG.
83239         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
83240         to set RELOCATABLE_STRIP.
83241         * NEWS: Mention the new Makefile requirement.
83243 2009-01-17  Bruno Haible  <bruno@clisp.org>
83245         * build-aux/install-reloc: Remove debugging information left over by
83246         C compiler on MacOS X.
83248 2009-01-17  Bruno Haible  <bruno@clisp.org>
83250         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
83251         * lib/progreloc.c (find_executable): Fix type of pointer passed to
83252         _NSGetExecutablePath.
83254 2009-01-16  Jim Meyering  <meyering@redhat.com>
83256         strerror: avoid warnings about discarding "const"
83257         * lib/strerror.c (rpl_strerror): Instead of returning a const
83258         string from each and every "case", use a variable, and add a single
83259         cast after the switch.
83261 2009-01-16  Albert Chin-A-Young  <china@thewrittenword.com>
83263         * lib/arpa_inet.in.h: Add extern "C" block for C++.
83265 2009-01-16  Bruno Haible  <bruno@clisp.org>
83267         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
83268         array initializer syntax that also works in C++ mode.
83269         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
83271 2009-01-16  Jim Meyering  <meyering@redhat.com>
83273         poll: suppress a warning
83274         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
83275         to ignore "...unsigned expression < 0 is always false" warnings.
83277 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
83279         poll: remove declarations of unused variables
83280         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
83281         sockbuf and optlen.
83283 2009-01-15  Bruno Haible  <bruno@clisp.org>
83285         Make fflush-after-ungetc POSIX compliant on BSD systems.
83286         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
83287         (clear_ungetc_buffer): Implement also for other systems.
83288         (rpl_fflush): On glibc systems, invoke
83289         clear_ungetc_buffer_preserving_position. Otherwise, invoke
83290         clear_ungetc_buffer after fetching the stream's position, not before.
83292 2009-01-15  Bruno Haible  <bruno@clisp.org>
83294         Make fflush-after-ungetc POSIX compliant on glibc systems.
83295         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
83296         after ungetc.
83297         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
83298         (rpl_fflush): On glibc systems, simply call the system's fflush
83299         function after clearing the ungetc buffer.
83300         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
83301         Instead, lseek only to the end of file, then use the system's fseeko
83302         for the rest. On glibc systems, reset the EOF indicator bit.
83304 2009-01-15  Jim Meyering  <meyering@redhat.com>
83306         openmp.m4: revert quote-adding change, for portability to older autoconf
83307         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
83308         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
83309         Simon Josefsson noticed the problem when using autoconf-2.61.
83311 2009-01-15  Bruno Haible  <bruno@clisp.org>
83313         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
83314         * tests/test-fflush2.c (ASSERT): Always fail.
83315         (main): Add two tests for fflush() after ungetc(), taking into account
83316         the Austin Group's clarification.
83317         Suggested by Eric Blake.
83319 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
83321         mktime.m4: remove K&R-style function prototypes
83322         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
83323         for the Sun C++ compiler.
83325 2009-01-14  Bruno Haible  <bruno@clisp.org>
83327         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
83328         while including <wchar.h>.
83329         * lib/wchar.in.h: In two particular situations on HP-UX, include only
83330         the system's <wchar.h> file.
83331         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
83333 2009-01-14  Bruno Haible  <bruno@clisp.org>
83335         * m4/csharp.m4: Don't mention gettext on the serial number line.
83336         * m4/csharpexec.m4: Likewise.
83337         * m4/eaccess.m4: Likewise.
83338         * m4/javaexec.m4: Likewise.
83339         * m4/sig_atomic_t.m4: Likewise.
83340         * m4/tmpdir.m4: Likewise.
83341         * m4/intldir.m4: Bump gettext version.
83342         * m4/lib-ld.m4: Likewise.
83344 2009-01-14  Bruno Haible  <bruno@clisp.org>
83346         * lib/progname.c (set_program_name): Add more comments.
83347         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
83349 2009-01-14  Simon Josefsson  <simon@josefsson.org>
83351         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
83352         were sys/stat.h does not define it.
83354 2009-01-14  Jim Meyering  <meyering@redhat.com>
83356         many *.m4 files: improve m4 quoting
83357         99% of this change was performed by running the following commands:
83358         git ls-files | grep '\.m4$' | xargs perl -pi \
83359           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
83360           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
83361           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
83362           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
83363         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
83364         The remainder were to add Copyright dates, increment serial numbers,
83365         undo some changes in comments, exclude m4/intl.m4, and add quotes
83366         around the "1" in ",1" where the unusual spacing prohibited the
83367         above regexps from doing the job.  For more details, see
83368         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
83369         * m4/acl.m4: Modified.
83370         * m4/afs.m4: Likewise.
83371         * m4/alloca.m4: Likewise.
83372         * m4/argp.m4: Likewise.
83373         * m4/argz.m4: Likewise.
83374         * m4/atexit.m4: Likewise.
83375         * m4/bison-i18n.m4: Likewise.
83376         * m4/bison.m4: Likewise.
83377         * m4/byteswap.m4: Likewise.
83378         * m4/c-stack.m4: Likewise.
83379         * m4/c-strtod.m4: Likewise.
83380         * m4/calloc.m4: Likewise.
83381         * m4/canonicalize-lgpl.m4: Likewise.
83382         * m4/chown.m4: Likewise.
83383         * m4/clock_time.m4: Likewise.
83384         * m4/codeset.m4: Likewise.
83385         * m4/copy-file.m4: Likewise.
83386         * m4/csharp.m4: Likewise.
83387         * m4/csharpcomp.m4: Likewise.
83388         * m4/csharpexec.m4: Likewise.
83389         * m4/d-ino.m4: Likewise.
83390         * m4/d-type.m4: Likewise.
83391         * m4/dirfd.m4: Likewise.
83392         * m4/double-slash-root.m4: Likewise.
83393         * m4/eaccess.m4: Likewise.
83394         * m4/eealloc.m4: Likewise.
83395         * m4/environ.m4: Likewise.
83396         * m4/errno_h.m4: Likewise.
83397         * m4/euidaccess.m4: Likewise.
83398         * m4/execute.m4: Likewise.
83399         * m4/fatal-signal.m4: Likewise.
83400         * m4/fchdir.m4: Likewise.
83401         * m4/fcntl_h.m4: Likewise.
83402         * m4/fileblocks.m4: Likewise.
83403         * m4/filenamecat.m4: Likewise.
83404         * m4/findprog.m4: Likewise.
83405         * m4/flexmember.m4: Likewise.
83406         * m4/fnmatch.m4: Likewise.
83407         * m4/fopen.m4: Likewise.
83408         * m4/fpending.m4: Likewise.
83409         * m4/fprintf-posix.m4: Likewise.
83410         * m4/free.m4: Likewise.
83411         * m4/frexp.m4: Likewise.
83412         * m4/frexpl.m4: Likewise.
83413         * m4/fsusage.m4: Likewise.
83414         * m4/ftruncate.m4: Likewise.
83415         * m4/gc-camellia.m4: Likewise.
83416         * m4/gc-random.m4: Likewise.
83417         * m4/gc.m4: Likewise.
83418         * m4/getaddrinfo.m4: Likewise.
83419         * m4/getcwd-abort-bug.m4: Likewise.
83420         * m4/getcwd-path-max.m4: Likewise.
83421         * m4/getdate.m4: Likewise.
83422         * m4/getdomainname.m4: Likewise.
83423         * m4/getgroups.m4: Likewise.
83424         * m4/gethostname.m4: Likewise.
83425         * m4/gethrxtime.m4: Likewise.
83426         * m4/getline.m4: Likewise.
83427         * m4/getloadavg.m4: Likewise.
83428         * m4/getndelim2.m4: Likewise.
83429         * m4/getpass.m4: Likewise.
83430         * m4/gettext.m4: Likewise.
83431         * m4/gettime.m4: Likewise.
83432         * m4/gettimeofday.m4: Likewise.
83433         * m4/gnulib-common.m4: Likewise.
83434         * m4/group-member.m4: Likewise.
83435         * m4/host-os.m4: Likewise.
83436         * m4/iconv.m4: Likewise.
83437         * m4/iconv_open.m4: Likewise.
83438         * m4/inet_ntop.m4: Likewise.
83439         * m4/inet_pton.m4: Likewise.
83440         * m4/inline.m4: Likewise.
83441         * m4/intldir.m4: Likewise.
83442         * m4/intlmacosx.m4: Likewise.
83443         * m4/intmax.m4: Likewise.
83444         * m4/intmax_t.m4: Likewise.
83445         * m4/inttypes.m4: Likewise.
83446         * m4/inttypes_h.m4: Likewise.
83447         * m4/inttypes-pri.m4: Likewise.
83448         * m4/isapipe.m4: Likewise.
83449         * m4/isnand.m4: Likewise.
83450         * m4/isnanf.m4: Likewise.
83451         * m4/isnanl.m4: Likewise.
83452         * m4/javacomp.m4: Likewise.
83453         * m4/javaexec.m4: Likewise.
83454         * m4/jm-winsz1.m4: Likewise.
83455         * m4/jm-winsz2.m4: Likewise.
83456         * m4/lchown.m4: Likewise.
83457         * m4/lcmessage.m4: Likewise.
83458         * m4/ldexpl.m4: Likewise.
83459         * m4/lib-ld.m4: Likewise.
83460         * m4/lib-link.m4: Likewise.
83461         * m4/libsigsegv.m4: Likewise.
83462         * m4/link-follow.m4: Likewise.
83463         * m4/localcharset.m4: Likewise.
83464         * m4/locale-fr.m4: Likewise.
83465         * m4/locale-ja.m4: Likewise.
83466         * m4/locale-tr.m4: Likewise.
83467         * m4/locale-zh.m4: Likewise.
83468         * m4/lock.m4: Likewise.
83469         * m4/longlong.m4: Likewise.
83470         * m4/ls-mntd-fs.m4: Likewise.
83471         * m4/lstat.m4: Likewise.
83472         * m4/malloc.m4: Likewise.
83473         * m4/mathl.m4: Likewise.
83474         * m4/mbrtowc.m4: Likewise.
83475         * m4/mbstate_t.m4: Likewise.
83476         * m4/mbswidth.m4: Likewise.
83477         * m4/memchr.m4: Likewise.
83478         * m4/memcmp.m4: Likewise.
83479         * m4/memcpy.m4: Likewise.
83480         * m4/memmem.m4: Likewise.
83481         * m4/memmove.m4: Likewise.
83482         * m4/mempcpy.m4: Likewise.
83483         * m4/memrchr.m4: Likewise.
83484         * m4/memset.m4: Likewise.
83485         * m4/minmax.m4: Likewise.
83486         * m4/mkdir-slash.m4: Likewise.
83487         * m4/mkdtemp.m4: Likewise.
83488         * m4/mktime.m4: Likewise.
83489         * m4/mmap-anon.m4: Likewise.
83490         * m4/mountlist.m4: Likewise.
83491         * m4/nanosleep.m4: Likewise.
83492         * m4/nls.m4: Likewise.
83493         * m4/nocrash.m4: Likewise.
83494         * m4/open.m4: Likewise.
83495         * m4/openat.m4: Likewise.
83496         * m4/openmp.m4: Likewise.
83497         * m4/pathmax.m4: Likewise.
83498         * m4/perl.m4: Likewise.
83499         * m4/physmem.m4: Likewise.
83500         * m4/pipe.m4: Likewise.
83501         * m4/po.m4: Likewise.
83502         * m4/poll.m4: Likewise.
83503         * m4/posixtm.m4: Likewise.
83504         * m4/posixver.m4: Likewise.
83505         * m4/printf-frexp.m4: Likewise.
83506         * m4/printf-frexpl.m4: Likewise.
83507         * m4/printf-posix.m4: Likewise.
83508         * m4/printf-posix-rpl.m4: Likewise.
83509         * m4/printf.m4: Likewise.
83510         * m4/progtest.m4: Likewise.
83511         * m4/putenv.m4: Likewise.
83512         * m4/readline.m4: Likewise.
83513         * m4/readlink.m4: Likewise.
83514         * m4/readutmp.m4: Likewise.
83515         * m4/realloc.m4: Likewise.
83516         * m4/regex.m4: Likewise.
83517         * m4/relocatable.m4: Likewise.
83518         * m4/relocatable-lib.m4: Likewise.
83519         * m4/rename-dest-slash.m4: Likewise.
83520         * m4/rename.m4: Likewise.
83521         * m4/rmdir-errno.m4: Likewise.
83522         * m4/rmdir.m4: Likewise.
83523         * m4/roundf.m4: Likewise.
83524         * m4/roundl.m4: Likewise.
83525         * m4/rpmatch.m4: Likewise.
83526         * m4/save-cwd.m4: Likewise.
83527         * m4/selinux-selinux-h.m4: Likewise.
83528         * m4/setenv.m4: Likewise.
83529         * m4/settime.m4: Likewise.
83530         * m4/sig2str.m4: Likewise.
83531         * m4/sig_atomic_t.m4: Likewise.
83532         * m4/signalblocking.m4: Likewise.
83533         * m4/signbit.m4: Likewise.
83534         * m4/sigpipe.m4: Likewise.
83535         * m4/sockets.m4: Likewise.
83536         * m4/sockpfaf.m4: Likewise.
83537         * m4/st_dm_mode.m4: Likewise.
83538         * m4/stat-time.m4: Likewise.
83539         * m4/stdbool.m4: Likewise.
83540         * m4/stdint.m4: Likewise.
83541         * m4/stdint_h.m4: Likewise.
83542         * m4/stpcpy.m4: Likewise.
83543         * m4/stpncpy.m4: Likewise.
83544         * m4/strcase.m4: Likewise.
83545         * m4/strchrnul.m4: Likewise.
83546         * m4/strcspn.m4: Likewise.
83547         * m4/strdup.m4: Likewise.
83548         * m4/strftime.m4: Likewise.
83549         * m4/strndup.m4: Likewise.
83550         * m4/strnlen.m4: Likewise.
83551         * m4/strpbrk.m4: Likewise.
83552         * m4/strptime.m4: Likewise.
83553         * m4/strsep.m4: Likewise.
83554         * m4/strtod.m4: Likewise.
83555         * m4/strtoimax.m4: Likewise.
83556         * m4/strtok_r.m4: Likewise.
83557         * m4/strtol.m4: Likewise.
83558         * m4/strtoll.m4: Likewise.
83559         * m4/strtoul.m4: Likewise.
83560         * m4/strtoull.m4: Likewise.
83561         * m4/strtoumax.m4: Likewise.
83562         * m4/strverscmp.m4: Likewise.
83563         * m4/threadlib.m4: Likewise.
83564         * m4/timegm.m4: Likewise.
83565         * m4/tm_gmtoff.m4: Likewise.
83566         * m4/tmpdir.m4: Likewise.
83567         * m4/tmpfile.m4: Likewise.
83568         * m4/tzset.m4: Likewise.
83569         * m4/uintmax_t.m4: Likewise.
83570         * m4/unlinkdir.m4: Likewise.
83571         * m4/unlocked-io.m4: Likewise.
83572         * m4/uptime.m4: Likewise.
83573         * m4/userspec.m4: Likewise.
83574         * m4/utimbuf.m4: Likewise.
83575         * m4/utime.m4: Likewise.
83576         * m4/utimes-null.m4: Likewise.
83577         * m4/utimes.m4: Likewise.
83578         * m4/vararrays.m4: Likewise.
83579         * m4/vasnprintf.m4: Likewise.
83580         * m4/vfprintf-posix.m4: Likewise.
83581         * m4/vprintf-posix.m4: Likewise.
83582         * m4/wait-process.m4: Likewise.
83583         * m4/wchar_t.m4: Likewise.
83584         * m4/wint_t.m4: Likewise.
83585         * m4/write-any-file.m4: Likewise.
83586         * m4/yield.m4: Likewise.
83588 2009-01-13  Bruno Haible  <bruno@clisp.org>
83590         Avoid test-copy-file.sh failures when ACL support insufficient.
83591         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
83592         TESTS_ENVIRONMENT.
83593         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
83594         Reported by Jim Meyering.
83596 2009-01-13  Bruno Haible  <bruno@clisp.org>
83598         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
83599         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
83600         * modules/unistdio/u8-printf-parse (Files): Likewise.
83601         * modules/unistdio/u32-printf-parse (Files): Likewise.
83602         * modules/unistdio/ulc-printf-parse (Files): Likewise.
83604 2009-01-13  Simon Josefsson  <simon@josefsson.org>
83606         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
83607         and m4/inttypes_h.m4 too.
83609 2009-01-12  Eric Blake  <ebb9@byu.net>
83611         tests: IRIX 6.2 cc can't compile -0.0 into .data
83612         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
83613         rather than at compile-time.
83614         * tests/test-floorl.c (minus_zero): Likewise.
83615         * tests/test-frexpl.c (minus_zero): Likewise.
83616         * tests/test-isnan.c (minus_zerol): Likewise.
83617         * tests/test-isnanl.h (minus_zero): Likewise.
83618         * tests/test-ldexpl.c (minus_zero): Likewise.
83619         * tests/test-roundl.c (minus_zero): Likewise.
83620         * tests/test-signbit.c (minus_zerol): Likewise.
83621         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
83622         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
83623         * tests/test-truncl.c (minus_zero): Likewise.
83624         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
83625         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
83626         Reported by Tom G. Christensen and Nelson H. F. Beebe.
83628 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
83630         regex: fix glibc bug 9697
83631         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
83632         handling.
83634 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
83636         regex: fix glibc bug 697
83637         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
83638         being NULL also if there are no backreferences.
83640 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
83642         regex: merge glibc changes
83643         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
83644         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
83645         re_string_skip_chars, re_string_reconstruct): Likewise.
83646         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
83648 2009-01-07  Jim Meyering  <meyering@redhat.com>
83650         poll: filter through cppi
83651         * lib/poll.c: Indent cpp directives to reflect nesting.
83653 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
83655         poll: don't return uninitialized
83656         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
83658 2009-01-06  Jeremy Olexa  <darkside@gentoo.org>  (tiny change)
83660         avoid compile failure on AIX 6.1
83661         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
83662         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
83664 2009-01-04  Jim Meyering  <meyering@redhat.com>
83666         remove duplicate inclusion of <stdio.h>
83667         * tests/test-fprintf-posix.c: Likewise.
83668         * tests/test-printf-posix.c: Likewise.
83669         * tests/test-snprintf-posix.c: Likewise.
83670         * tests/test-sprintf-posix.c: Likewise.
83671         * tests/test-vasprintf-posix.c: Likewise.
83672         * tests/test-vfprintf-posix.c: Likewise.
83673         * tests/test-vprintf-posix.c: Likewise.
83674         * tests/test-vsnprintf-posix.c: Likewise.
83675         * tests/test-vsprintf-posix.c: Likewise.
83677 2009-01-03  Jim Meyering  <meyering@redhat.com>
83679         gnulib-tool: fix sed-based filtering
83680         * gnulib-tool (func_filter_filelist): Remove extra backslash
83681         in sed_fff_filter definition.
83683 2009-01-02  Jim Meyering  <meyering@redhat.com>
83685         strftime: avoid compilation failure on Solaris 2.6
83686         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
83687         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
83688         Don't #define mbrlen or mbsinit, since now they're guaranteed to
83689         be available.  Reported by Tom G. Christensen.  Details in
83690         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
83692 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83693             Bruno Haible  <bruno@clisp.org>
83695         Speed up gnulib-tool by doing more string processing through shell
83696         built-ins.
83697         * gnulib-tool (fast_func_append): New variable.
83698         (func_remove_prefix, func_remove_suffix): New functions.
83699         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
83700         (func_filter_filelist): New function.
83701         (func_get_dependencies): Use func_remove_suffix instead of sed.
83702         (func_get_automake_snippet): Use func_filter_filelist instead of a
83703         subshell and sed invocation.
83705 2009-01-01  Bruno Haible  <bruno@clisp.org>
83707         Fix a security bug.
83708         * gnulib-tool (func_import, import, update): Don't allow the characters
83709         '"', '$', '`', '\' in macro arguments that become part of commands that
83710         are evaluated.
83712 2009-01-01  Bruno Haible  <bruno@clisp.org>
83714         * gnulib-tool (func_reset_sigpipe): Add more comments.
83716 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83718         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
83719         func_emit_tests_Makefile_am, func_import): Abort loops early if we
83720         already know the answer.
83722 2009-01-01  Jim Meyering  <meyering@redhat.com>
83724         * lib/version-etc.c (version_etc_va): Update copyright year.
83726 2008-12-30  Bruno Haible  <bruno@clisp.org>
83728         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
83729         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
83730         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
83732 2008-12-29  Eric Blake  <ebb9@byu.net>
83734         multiarch: avoid autoconf AC_REQUIRE bug
83735         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
83736         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
83737         2.63 and older.
83738         Reported by Bruno Haible, and analyzed in
83739         http://lists.gnu.org/r/bug-autoconf/2008-12/msg00039.html
83741 2008-12-29  Bruno Haible  <bruno@clisp.org>
83743         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
83744         files in subdirectories correctly.
83745         Reported by Ralf Wildenhues.
83747 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83749         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
83750         rather than 'join FILE -', for Solaris join.
83752 2008-12-29  Bruno Haible  <bruno@clisp.org>
83754         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
83755         quoting.
83756         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
83757         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
83758         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
83759         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
83760         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
83761         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
83762         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
83763         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
83764         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
83765         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
83766         * m4/nls.m4 (AM_NLS): Likewise.
83767         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
83768         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
83769         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
83770         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
83771         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
83772         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
83773         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
83774         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
83775         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
83776         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
83777         * m4/xsize.m4 (gl_XSIZE): Likewise.
83778         Suggested by Jim Meyering.
83780 2008-11-17  Bruce Korb  <bkorb@gnu.org>
83782         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
83783         * lib/parse-duration.c: use a switch instead of cascading if's.
83785 2008-12-29  Eric Blake  <ebb9@byu.net>
83787         wchar.h: supply WEOF on Irix 5.3
83788         * lib/wchar.in.h (wint_t): Also supply WEOF.
83789         * lib/wctype.in.h (wint_t): Likewise.
83790         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
83791         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
83792         Reported by Tom G. Christensen.
83794 2008-12-26  Bruno Haible  <bruno@clisp.org>
83796         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
83797         i486, i586, i686.
83799 2008-12-26  Bruno Haible  <bruno@clisp.org>
83801         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
83803 2008-12-26  Bruno Haible  <bruno@clisp.org>
83805         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
83806         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
83807         not __STDC_CONSTANT_MACROS.
83808         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
83810 2008-12-25  Bruno Haible  <bruno@clisp.org>
83812         Add support for universal builds to vasnprintf.
83813         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
83814         universal builds, guess no.
83815         * modules/vasnprintf-posix (Depends-on): Add multiarch.
83816         * modules/vasprintf-posix (Depends-on): Likewise.
83817         * modules/fprintf-posix (Depends-on): Likewise.
83818         * modules/vfprintf-posix (Depends-on): Likewise.
83819         * modules/snprintf-posix (Depends-on): Likewise.
83820         * modules/vsnprintf-posix (Depends-on): Likewise.
83821         * modules/sprintf-posix (Depends-on): Likewise.
83822         * modules/vsprintf-posix (Depends-on): Likewise.
83823         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
83824         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
83825         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
83826         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
83827         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
83828         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
83829         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
83831         Add support for universal builds to <inttypes.h>.
83832         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
83833         _SCNu64_PREFIX): In Apple
83834         universal builds, define directly, using _LP64.
83835         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
83836         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
83837         * modules/inttypes (Depends-on): Add multiarch.
83838         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
83840         Add support for universal builds to <stdint.h>.
83841         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
83842         universal builds, define directly, using _LP64.
83843         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
83844         Apple universal builds, don't test for the size and suffix of ptrdiff_t
83845         and size_t.
83846         * modules/stdint (Depends-on): Add multiarch.
83847         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
83849         New module 'multiarch'.
83850         * modules/multiarch: New file.
83851         * m4/multiarch.m4: New file.
83853 2008-12-25  Bruno Haible  <bruno@clisp.org>
83855         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
83857 2008-12-25  Bruno Haible  <bruno@clisp.org>
83859         * modules/btowc (License): Relicense under LGPLv2+.
83860         * modules/mbsinit (License): Likewise.
83861         * modules/mbrtowc (License): Likewise.
83862         * modules/wcrtomb (License): Likewise.
83863         * modules/streq (License): Likewise.
83864         Reported by David Lutterkort <lutter@redhat.com>.
83866 2008-12-23  Bruno Haible  <bruno@clisp.org>
83868         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
83870 2008-12-23  Bruno Haible  <bruno@clisp.org>
83872         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
83873         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
83874         GETADDRINFO_LIB, not in LIBS.
83875         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
83876         * modules/canon-host (Link): Likewise.
83877         * NEWS: Mention the change.
83878         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
83879         GETADDRINFO_LIB.
83881 2008-12-22  Bruno Haible  <bruno@clisp.org>
83883         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
83884         * doc/posix-functions/iswalpha_l.texi: Likewise.
83885         * doc/posix-functions/iswblank_l.texi: Likewise.
83886         * doc/posix-functions/iswcntrl_l.texi: Likewise.
83887         * doc/posix-functions/iswctype_l.texi: Likewise.
83888         * doc/posix-functions/iswdigit_l.texi: Likewise.
83889         * doc/posix-functions/iswgraph_l.texi: Likewise.
83890         * doc/posix-functions/iswlower_l.texi: Likewise.
83891         * doc/posix-functions/iswprint_l.texi: Likewise.
83892         * doc/posix-functions/iswpunct_l.texi: Likewise.
83893         * doc/posix-functions/iswspace_l.texi: Likewise.
83894         * doc/posix-functions/iswupper_l.texi: Likewise.
83895         * doc/posix-functions/iswxdigit_l.texi: Likewise.
83896         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
83897         * doc/posix-functions/open_wmemstream.texi: Likewise.
83898         * doc/posix-functions/swscanf.texi: Likewise.
83899         * doc/posix-functions/towctrans_l.texi: Likewise.
83900         * doc/posix-functions/towlower.texi: Likewise.
83901         * doc/posix-functions/towlower_l.texi: Likewise.
83902         * doc/posix-functions/towupper.texi: Likewise.
83903         * doc/posix-functions/towupper_l.texi: Likewise.
83904         * doc/posix-functions/vfwprintf.texi: Likewise.
83905         * doc/posix-functions/vfwscanf.texi: Likewise.
83906         * doc/posix-functions/vswscanf.texi: Likewise.
83907         * doc/posix-functions/vwprintf.texi: Likewise.
83908         * doc/posix-functions/vwscanf.texi: Likewise.
83909         * doc/posix-functions/wcpcpy.texi: Likewise.
83910         * doc/posix-functions/wcpncpy.texi: Likewise.
83911         * doc/posix-functions/wcscasecmp.texi: Likewise.
83912         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
83913         * doc/posix-functions/wcscoll_l.texi: Likewise.
83914         * doc/posix-functions/wcsdup.texi: Likewise.
83915         * doc/posix-functions/wcsncasecmp.texi: Likewise.
83916         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
83917         * doc/posix-functions/wcsnlen.texi: Likewise.
83918         * doc/posix-functions/wcsnrtombs.texi: Likewise.
83919         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
83920         * doc/posix-functions/wctrans_l.texi: Likewise.
83921         * doc/posix-functions/wctype_l.texi: Likewise.
83922         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
83923         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
83924         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
83925         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
83926         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
83927         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
83928         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
83929         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
83930         * doc/glibc-functions/wcschrnul.texi: Likewise.
83931         * doc/glibc-functions/wcsftime_l.texi: Likewise.
83932         * doc/glibc-functions/wcstod_l.texi: Likewise.
83933         * doc/glibc-functions/wcstof_l.texi: Likewise.
83934         * doc/glibc-functions/wcstol_l.texi: Likewise.
83935         * doc/glibc-functions/wcstold_l.texi: Likewise.
83936         * doc/glibc-functions/wcstoll_l.texi: Likewise.
83937         * doc/glibc-functions/wcstoq.texi: Likewise.
83938         * doc/glibc-functions/wcstoul_l.texi: Likewise.
83939         * doc/glibc-functions/wcstoull_l.texi: Likewise.
83940         * doc/glibc-functions/wcstouq.texi: Likewise.
83941         * doc/glibc-functions/wmempcpy.texi: Likewise.
83943 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
83944             Eric Blake  <ebb9@byu.net>
83945             Paolo Bonzini  <bonzini@gnu.org>
83946             Bruno Haible  <bruno@clisp.org>
83948         Make c-stack work on Haiku.
83949         * lib/c-stack.c (SA_ONSTACK): Define fallback.
83950         (c_stack_action): Use SA_ONSTACK flag.
83952 2008-12-22  Bruno Haible  <bruno@clisp.org>
83954         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
83956 2008-12-22  Bruno Haible  <bruno@clisp.org>
83958         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
83959         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
83960         being overridden.
83961         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
83962         New macros.
83963         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
83964         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
83965         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
83966         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
83968 2008-12-22  Bruno Haible  <bruno@clisp.org>
83970         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
83971         from test code.
83973 2008-12-22  Eric Blake  <ebb9@byu.net>
83975         Avoid gcc warnings on cygwin.
83976         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
83977         Avoid unused variable.
83978         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
83979         Likewise.
83981 2008-12-22  Bruno Haible  <bruno@clisp.org>
83983         Remove HAVE_MBRTOWC conditionals.
83984         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
83985         (mbscasecmp): Assume mbrtowc function.
83986         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
83987         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
83988         * lib/mbschr.c: Include mbuiter.h unconditionally.
83989         (mbschr): Assume mbrtowc function.
83990         * lib/mbscspn.c: Include mbuiter.h unconditionally.
83991         (mbscspn): Assume mbrtowc function.
83992         * lib/mbslen.c: Include mbuiter.h unconditionally.
83993         (mbslen): Assume mbrtowc function.
83994         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
83995         (mbsncasecmp): Assume mbrtowc function.
83996         * lib/mbsnlen.c: Include mbiter.h unconditionally.
83997         (mbsnlen): Assume mbrtowc function.
83998         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
83999         (mbspbrk): Assume mbrtowc function.
84000         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
84001         (mbspcasecmp): Assume mbrtowc function.
84002         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
84003         (mbsrchr): Assume mbrtowc function.
84004         * lib/mbssep.c: Include mbuiter.h unconditionally.
84005         (mbssep): Assume mbrtowc function.
84006         * lib/mbsspn.c: Include mbuiter.h unconditionally.
84007         (mbsspn): Assume mbrtowc function.
84008         * lib/mbsstr.c: Include mbuiter.h unconditionally.
84009         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
84010         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
84011         (mbstok_r): Assume mbrtowc function.
84012         * lib/propername.c: Include mbuiter.h unconditionally.
84013         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
84014         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
84015         (trim2): Assume mbrtowc function.
84016         * lib/mbswidth.c (mbsinit): Remove fallback definition.
84017         (mbsnwidth): Assume mbrtowc function.
84018         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
84019         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
84020         fallback definitions.
84021         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
84023 2008-12-22  Bruno Haible  <bruno@clisp.org>
84025         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
84027 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
84029         * modules/regex: Request emulations for the mb*/wc* functions we need.
84030         * m4/regex.m4: Don't look for those functions here.
84031         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
84033 2008-12-22  Bruno Haible  <bruno@clisp.org>
84035         * modules/fnmatch (Depends-on): Remove duplicated dependency.
84037 2008-12-21  Bruno Haible  <bruno@clisp.org>
84039         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
84040         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
84041         (Include): Remove conditionalization.
84042         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
84043         (Include): Remove conditionalization.
84044         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
84045         (Include): Remove conditionalization.
84046         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
84047         * m4/mbfile.m4 (gl_MBFILE): Likewise.
84048         * NEWS: Mention the change.
84049         Reported by Alan Hourihane <alanh@fairlite.co.uk>
84050         via Sergey Poznyakoff <gray@gnu.org.ua>.
84052 2008-12-21  Bruno Haible  <bruno@clisp.org>
84054         * MODULES.html.sh (Extended multibyte and wide character utilities
84055         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
84056         wcrtomb, wcsrtombs.
84057         (Support for systems lacking POSIX:2008): Add accept, bind, close,
84058         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
84059         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
84060         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
84062 2008-12-21  Bruno Haible  <bruno@clisp.org>
84064         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
84066 2008-12-21  Bruno Haible  <bruno@clisp.org>
84068         * modules/wcsnrtombs-tests: New file.
84069         * tests/test-wcsnrtombs1.sh: New file.
84070         * tests/test-wcsnrtombs2.sh: New file.
84071         * tests/test-wcsnrtombs3.sh: New file.
84072         * tests/test-wcsnrtombs4.sh: New file.
84073         * tests/test-wcsnrtombs.c: New file.
84075         New module 'wcsnrtombs'.
84076         * lib/wchar.in.h (wcsnrtombs): New declaration.
84077         * lib/wcsnrtombs.c: New file.
84078         * lib/wcsrtombs-state.c: New file.
84079         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
84080         (internal_state): Remove variable.
84081         * m4/wcsnrtombs.m4: New file.
84082         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
84083         compilation units.
84084         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
84085         HAVE_WCSNRTOMBS.
84086         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
84087         HAVE_WCSNRTOMBS.
84088         * modules/wcsnrtombs: New file.
84089         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
84090         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
84092 2008-12-21  Bruno Haible  <bruno@clisp.org>
84094         * modules/wcsrtombs-tests: New file.
84095         * tests/test-wcsrtombs1.sh: New file.
84096         * tests/test-wcsrtombs2.sh: New file.
84097         * tests/test-wcsrtombs3.sh: New file.
84098         * tests/test-wcsrtombs4.sh: New file.
84099         * tests/test-wcsrtombs.c: New file.
84101         New module 'wcsrtombs'.
84102         * lib/wchar.in.h (wcsrtombs): New declaration.
84103         * lib/wcsrtombs.c: New file.
84104         * m4/wcsrtombs.m4: New file.
84105         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
84106         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
84107         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
84108         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
84109         * modules/wcsrtombs: New file.
84110         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
84111         bugs.
84113 2008-12-21  Bruno Haible  <bruno@clisp.org>
84115         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
84116         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
84117         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
84118         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
84119         if not correct.
84120         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
84121         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
84122         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
84123         m4/locale-zh.m4, m4/codeset.m4.
84124         * doc/posix-functions/wcrtomb.texi: Document the bug.
84126 2008-12-21  Bruno Haible  <bruno@clisp.org>
84128         Work around a btowc() bug on IRIX 6.5.
84129         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
84130         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
84131         REPLACE_WTOBC if not.
84132         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
84133         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
84134         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
84136 2008-12-21  Bruno Haible  <bruno@clisp.org>
84138         * modules/wcrtomb-tests: New file.
84139         * tests/test-wcrtomb.sh: New file.
84140         * tests/test-wcrtomb.c: New file.
84142         New module 'wcrtomb'.
84143         * lib/wchar.in.h (wcrtomb): New declaration.
84144         * lib/wcrtomb.c: New file.
84145         * m4/wcrtomb.m4: New file.
84146         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
84147         HAVE_WCRTOMB.
84148         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
84149         HAVE_WCRTOMB.
84150         * modules/wcrtomb: New file.
84151         * doc/posix-functions/wcrtomb.texi: Mention the new module.
84153 2008-12-21  Bruno Haible  <bruno@clisp.org>
84155         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
84156         * modules/mbsrtowcs (Files): Likewise.
84157         * modules/wctob (Files): Likewise.
84158         * modules/c-strcase-tests (Files): Likewise.
84159         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
84160         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
84161         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
84162         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
84163         * modules/vasnprintf-posix-tests (Files): Likewise.
84165 2008-12-21  William Pursell  <bill.pursell@gmail.com>
84167         gitlog-to-changelog: pass all command-line arguments to git-log
84168         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
84169         it is sometimes convenient to filter the commits in various ways.
84170         gitlog-to-changelog only allows --since to specify a start date,
84171         but git-log itself supports many other filtering mechanisms.
84172         At the moment, I want to filter by branch name.  Rather than
84173         adding a --branch option to gitlog-to-changelog, it seems more
84174         flexible to simply pass all options directly to git-log and let
84175         git do the work.  Notice that this effectively makes --since a
84176         redundant option for gitlog-to-changelog, but removing it would
84177         require current usage to change since calls would then require
84178         an additional '--'.
84180 2008-12-21  Bruno Haible  <bruno@clisp.org>
84182         * modules/mbsnrtowcs-tests: New file.
84183         * tests/test-mbsnrtowcs1.sh: New file.
84184         * tests/test-mbsnrtowcs2.sh: New file.
84185         * tests/test-mbsnrtowcs3.sh: New file.
84186         * tests/test-mbsnrtowcs4.sh: New file.
84187         * tests/test-mbsnrtowcs.c: New file.
84189         New module 'mbsnrtowcs'.
84190         * lib/wchar.in.h (mbsnrtowcs): New declaration.
84191         * lib/mbsnrtowcs.c: New file.
84192         * lib/mbsrtowcs-state.c: New file.
84193         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
84194         (internal_state): Remove variable.
84195         * m4/mbsnrtowcs.m4: New file.
84196         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
84197         compilation units.
84198         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
84199         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
84200         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
84201         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
84202         * modules/mbsnrtowcs: New file.
84203         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
84204         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
84205         portability problem.
84207 2008-12-21  Bruno Haible  <bruno@clisp.org>
84209         Work around mbsrtowcs bug.
84210         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
84211         (gl_FUNC_MBSRTOWCS): Invoke it.
84212         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
84213         m4/locale-zh.m4.
84214         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
84216 2008-12-21  Bruno Haible  <bruno@clisp.org>
84218         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
84220 2008-12-21  Bruno Haible  <bruno@clisp.org>
84222         Update doc for AIX.
84223         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
84224         16-bit wchar_t type.
84225         * doc/posix-functions/btowc.texi: Likewise.
84226         * doc/posix-functions/fgetwc.texi: Likewise.
84227         * doc/posix-functions/fgetws.texi: Likewise.
84228         * doc/posix-functions/fputwc.texi: Likewise.
84229         * doc/posix-functions/fputws.texi: Likewise.
84230         * doc/posix-functions/fwide.texi: Likewise.
84231         * doc/posix-functions/fwprintf.texi: Likewise.
84232         * doc/posix-functions/fwscanf.texi: Likewise.
84233         * doc/posix-functions/getwchar.texi: Likewise.
84234         * doc/posix-functions/getwc.texi: Likewise.
84235         * doc/posix-functions/iswalnum.texi: Likewise.
84236         * doc/posix-functions/iswalpha.texi: Likewise.
84237         * doc/posix-functions/iswblank.texi: Likewise.
84238         * doc/posix-functions/iswcntrl.texi: Likewise.
84239         * doc/posix-functions/iswctype.texi: Likewise.
84240         * doc/posix-functions/iswdigit.texi: Likewise.
84241         * doc/posix-functions/iswgraph.texi: Likewise.
84242         * doc/posix-functions/iswlower.texi: Likewise.
84243         * doc/posix-functions/iswprint.texi: Likewise.
84244         * doc/posix-functions/iswpunct.texi: Likewise.
84245         * doc/posix-functions/iswspace.texi: Likewise.
84246         * doc/posix-functions/iswupper.texi: Likewise.
84247         * doc/posix-functions/iswxdigit.texi: Likewise.
84248         * doc/posix-functions/mbrtowc.texi: Likewise.
84249         * doc/posix-functions/mbsrtowcs.texi: Likewise.
84250         * doc/posix-functions/mbstowcs.texi: Likewise.
84251         * doc/posix-functions/mbtowc.texi: Likewise.
84252         * doc/posix-functions/putwchar.texi: Likewise.
84253         * doc/posix-functions/putwc.texi: Likewise.
84254         * doc/posix-functions/swprintf.texi: Likewise.
84255         * doc/posix-functions/tolower.texi: Likewise.
84256         * doc/posix-functions/toupper.texi: Likewise.
84257         * doc/posix-functions/towctrans.texi: Likewise.
84258         * doc/posix-functions/ungetwc.texi: Likewise.
84259         * doc/posix-functions/vswprintf.texi: Likewise.
84260         * doc/posix-functions/wcrtomb.texi: Likewise.
84261         * doc/posix-functions/wcscat.texi: Likewise.
84262         * doc/posix-functions/wcschr.texi: Likewise.
84263         * doc/posix-functions/wcscmp.texi: Likewise.
84264         * doc/posix-functions/wcscoll.texi: Likewise.
84265         * doc/posix-functions/wcscpy.texi: Likewise.
84266         * doc/posix-functions/wcscspn.texi: Likewise.
84267         * doc/posix-functions/wcsftime.texi: Likewise.
84268         * doc/posix-functions/wcslen.texi: Likewise.
84269         * doc/posix-functions/wcsncat.texi: Likewise.
84270         * doc/posix-functions/wcsncmp.texi: Likewise.
84271         * doc/posix-functions/wcsncpy.texi: Likewise.
84272         * doc/posix-functions/wcspbrk.texi: Likewise.
84273         * doc/posix-functions/wcsrchr.texi: Likewise.
84274         * doc/posix-functions/wcsrtombs.texi: Likewise.
84275         * doc/posix-functions/wcsspn.texi: Likewise.
84276         * doc/posix-functions/wcsstr.texi: Likewise.
84277         * doc/posix-functions/wcstod.texi: Likewise.
84278         * doc/posix-functions/wcstof.texi: Likewise.
84279         * doc/posix-functions/wcstoimax.texi: Likewise.
84280         * doc/posix-functions/wcstok.texi: Likewise.
84281         * doc/posix-functions/wcstold.texi: Likewise.
84282         * doc/posix-functions/wcstoll.texi: Likewise.
84283         * doc/posix-functions/wcstol.texi: Likewise.
84284         * doc/posix-functions/wcstombs.texi: Likewise.
84285         * doc/posix-functions/wcstoull.texi: Likewise.
84286         * doc/posix-functions/wcstoul.texi: Likewise.
84287         * doc/posix-functions/wcstoumax.texi: Likewise.
84288         * doc/posix-functions/wcswidth.texi: Likewise.
84289         * doc/posix-functions/wcsxfrm.texi: Likewise.
84290         * doc/posix-functions/wctob.texi: Likewise.
84291         * doc/posix-functions/wctomb.texi: Likewise.
84292         * doc/posix-functions/wctrans.texi: Likewise.
84293         * doc/posix-functions/wctype.texi: Likewise.
84294         * doc/posix-functions/wcwidth.texi: Likewise.
84295         * doc/posix-functions/wmemchr.texi: Likewise.
84296         * doc/posix-functions/wmemcmp.texi: Likewise.
84297         * doc/posix-functions/wmemcpy.texi: Likewise.
84298         * doc/posix-functions/wmemmove.texi: Likewise.
84299         * doc/posix-functions/wmemset.texi: Likewise.
84300         * doc/posix-functions/wprintf.texi: Likewise.
84301         * doc/posix-functions/wscanf.texi: Likewise.
84303 2008-12-21  Bruno Haible  <bruno@clisp.org>
84305         Update doc for HP-UX 11.11.
84306         * doc/posix-functions/btowc.texi: Clarify that the function is missing
84307         in HP-UX version 11.00, not in all versions of HP-UX 11.
84308         * doc/posix-functions/fwide.texi: Likewise.
84309         * doc/posix-functions/fwprintf.texi: Likewise.
84310         * doc/posix-functions/fwscanf.texi: Likewise.
84311         * doc/posix-functions/inet_ntop.texi: Likewise.
84312         * doc/posix-functions/inet_pton.texi: Likewise.
84313         * doc/posix-functions/mbrlen.texi: Likewise.
84314         * doc/posix-functions/mbrtowc.texi: Likewise.
84315         * doc/posix-functions/mbsinit.texi: Likewise.
84316         * doc/posix-functions/mbsrtowcs.texi: Likewise.
84317         * doc/posix-functions/swprintf.texi: Likewise.
84318         * doc/posix-functions/swscanf.texi: Likewise.
84319         * doc/posix-functions/towctrans.texi: Likewise.
84320         * doc/posix-functions/vfwprintf.texi: Likewise.
84321         * doc/posix-functions/vswprintf.texi: Likewise.
84322         * doc/posix-functions/vwprintf.texi: Likewise.
84323         * doc/posix-functions/wcrtomb.texi: Likewise.
84324         * doc/posix-functions/wcsrtombs.texi: Likewise.
84325         * doc/posix-functions/wcsstr.texi: Likewise.
84326         * doc/posix-functions/wctob.texi: Likewise.
84327         * doc/posix-functions/wctrans.texi: Likewise.
84328         * doc/posix-functions/wmemchr.texi: Likewise.
84329         * doc/posix-functions/wmemcmp.texi: Likewise.
84330         * doc/posix-functions/wmemcpy.texi: Likewise.
84331         * doc/posix-functions/wmemmove.texi: Likewise.
84332         * doc/posix-functions/wmemset.texi: Likewise.
84333         * doc/posix-functions/wprintf.texi: Likewise.
84334         * doc/posix-functions/wscanf.texi: Likewise.
84336 2008-12-21  Bruno Haible  <bruno@clisp.org>
84338         Work around a portability problem.
84339         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
84340         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
84342 2008-12-20  Bruno Haible  <bruno@clisp.org>
84344         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
84345         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
84346         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
84347         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
84348         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
84350         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
84351         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
84352         set.
84353         (GNULIB_defined_mbstate_t): New macro.
84354         (mbsinit): Redefine if REPLACE_MBSINIT is set.
84355         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
84356         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
84357         reuses the system's mbrtowc function but works around the bugs.
84358         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
84359         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
84360         macros.
84361         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
84362         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
84363         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
84364         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
84365         REPLACE_MBSINIT if mbsinit needs to be overridden.
84366         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
84367         REPLACE_MBSINIT, REPLACE_MBRTOWC.
84368         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
84369         REPLACE_MBSINIT, REPLACE_MBRTOWC.
84370         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
84371         m4/locale-zh.m4.
84372         (Depends): Add mbsinit.
84373         * modules/mbsinit (Depends): Add mbrtowc.
84374         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
84376 2008-12-20  Bruno Haible  <bruno@clisp.org>
84378         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
84379         so that there are no conversion errors on AIX.
84380         * tests/test-mbsrtowcs.c (main): LIkewise.
84382 2008-12-20  Bruno Haible  <bruno@clisp.org>
84384         Work around wctob bug on Solaris <= 9.
84385         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
84386         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
84387         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
84388         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
84389         * modules/wctob (Files): Add m4/locale-fr.m4.
84390         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
84392 2008-12-20  Bruno Haible  <bruno@clisp.org>
84394         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
84395         /dev/null.
84396         * tests/test-select-in.sh: Likewise.
84397         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
84399 2008-12-20  Bruno Haible  <bruno@clisp.org>
84401         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
84402         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
84403         Cygwin 1.5.x.
84405 2008-12-20  Bruno Haible  <bruno@clisp.org>
84407         Ensure mbstate_t is defined on HP-UX 11.11.
84408         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
84409         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
84410         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
84411         AC_USE_SYSTEM_EXTENSIONS.
84412         * modules/fnmatch (Depends-on): Add extensions.
84413         * modules/mbrlen (Depends-on): Likewise.
84414         * modules/mbrtowc (Depends-on): Likewise.
84415         * modules/mbsinit (Depends-on): Likewise.
84416         * modules/mbsrtowcs (Depends-on): Likewise.
84417         * modules/mbswidth (Depends-on): Likewise.
84418         * modules/quotearg (Depends-on): Likewise.
84419         * modules/strftime (Depends-on): Likewise.
84421 2008-12-20  Bruno Haible  <bruno@clisp.org>
84423         Ensure wctob is declared on IRIX 6.5.
84424         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
84425         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
84426         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
84427         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
84428         of HAVE_WCTOB.
84429         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
84430         HAVE_WCTOB.
84431         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
84433 2008-12-19  Bruno Haible  <bruno@clisp.org>
84435         * modules/mbsrtowcs-tests: New file.
84436         * tests/test-mbsrtowcs1.sh: New file.
84437         * tests/test-mbsrtowcs2.sh: New file.
84438         * tests/test-mbsrtowcs3.sh: New file.
84439         * tests/test-mbsrtowcs4.sh: New file.
84440         * tests/test-mbsrtowcs.c: New file.
84442         New module 'mbsrtowcs'.
84443         * lib/wchar.in.h (mbsrtowcs): New declaration.
84444         * lib/mbsrtowcs.c: New file.
84445         * m4/mbsrtowcs.m4: New file.
84446         * modules/mbsrtowcs: New file.
84447         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
84448         HAVE_MBSRTOWCS.
84449         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
84450         HAVE_MBSRTOWCS.
84451         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
84453 2008-12-19  Bruno Haible  <bruno@clisp.org>
84455         New module 'mbrlen'.
84456         * lib/wchar.in.h (mbrlen): New declaration.
84457         * lib/mbrlen.c: New file.
84458         * m4/mbrlen.m4: New file.
84459         * modules/mbrlen: New file.
84460         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
84461         HAVE_MBRLEN.
84462         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
84463         HAVE_MBRLEN.
84464         * doc/posix-functions/mbrlen.texi: Document the new module.
84466 2008-12-19  Bruno Haible  <bruno@clisp.org>
84468         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
84469         * modules/mbrtowc (Depends-on): Add verify.
84470         Suggested by Paul Eggert.
84472 2008-12-18  Bruno Haible  <bruno@clisp.org>
84474         * modules/mbsinit-tests: New file.
84475         * tests/test-mbsinit.sh: New file.
84476         * tests/test-mbsinit.c: New file.
84478 2008-12-18  Bruno Haible  <bruno@clisp.org>
84480         * modules/mbrtowc-tests: New file.
84481         * tests/test-mbrtowc1.sh: New file.
84482         * tests/test-mbrtowc2.sh: New file.
84483         * tests/test-mbrtowc3.sh: New file.
84484         * tests/test-mbrtowc4.sh: New file.
84485         * tests/test-mbrtowc.c: New file.
84487         New module 'mbrtowc'.
84488         * lib/wchar.in.h (mbstate_t): Override when the system does not have
84489         mbsinit and mbrtowc.
84490         (mbrtowc): New declaration.
84491         * lib/mbrtowc.c: New file.
84492         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
84493         * modules/mbrtowc: New file.
84494         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
84495         HAVE_MBRTOWC.
84496         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
84497         HAVE_MBRTOWC.
84498         * doc/posix-functions/mbrtowc.texi: Document the new module.
84500 2008-12-18  Bruno Haible  <bruno@clisp.org>
84502         New module 'wctob'.
84503         * lib/wchar.in.h (wctob): New declaration.
84504         * lib/wctob.c: New file.
84505         * m4/wctob.m4: New file.
84506         * modules/wctob: New file.
84507         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
84508         HAVE_WCTOB.
84509         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
84510         * doc/posix-functions/wctob.texi: Document the new module.
84512 2008-12-18  Bruno Haible  <bruno@clisp.org>
84514         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
84515         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
84517 2008-12-18  Simon Josefsson  <simon@josefsson.org>
84519         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
84520         G. Christensen" <tgc@jupiterrise.com>.
84522         * lib/flock.c: Need to include errno.h.  Reported by "Tom
84523         G. Christensen" <tgc@jupiterrise.com>.
84525         * lib/flock.c: Need to include string.h.  Reported by "Tom
84526         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
84527         <ebb9@byu.net>.
84529 2008-12-18  Bruno Haible  <bruno@clisp.org>
84531         * m4/locale-ja.m4: New file, from GNU gettext.
84533 2008-12-17  Bruno Haible  <bruno@clisp.org>
84535         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
84536         Suggested by Eric Blake.
84538 2008-12-17  Bruno Haible  <bruno@clisp.org>
84540         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
84542 2008-12-17  Bruno Haible  <bruno@clisp.org>
84544         * lib/mbsinit.c: Include verify.h. Verify an assumption.
84545         * modules/mbsinit (Depends-on): Add verify.
84546         Suggested by Paul Eggert.
84548 2008-12-17  Bruno Haible  <bruno@clisp.org>
84550         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
84551         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
84552         gl_FUNC_MBRTOWC.
84553         * m4/mbiter.m4 (gl_MBITER): LIkewise.
84554         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
84555         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
84556         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
84557         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
84558         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
84559         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
84560         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
84561         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
84562         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
84563         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
84564         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
84565         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
84566         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
84567         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
84568         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
84569         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
84570         * modules/trim (configure.ac): Likewise.
84572 2008-12-17  Bruno Haible  <bruno@clisp.org>
84574         * modules/btowc-tests: New file.
84575         * tests/test-btowc1.sh: New file.
84576         * tests/test-btowc2.sh: New file.
84577         * tests/test-btowc.c: New file.
84579         New module 'btowc'.
84580         * lib/wchar.in.h (btowc): New declaration.
84581         * lib/btowc.c: New file.
84582         * m4/btowc.m4: New file.
84583         * modules/btowc: New file.
84584         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
84585         HAVE_BTOWC.
84586         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
84587         * doc/posix-functions/btowc.texi: Document the new module.
84589 2008-12-17  Bruno Haible  <bruno@clisp.org>
84591         New module 'mbsinit'.
84592         * lib/wchar.in.h (mbsinit): New declaration.
84593         * lib/mbsinit.c: New file.
84594         * m4/mbsinit.m4: New file.
84595         * modules/mbsinit: New file.
84596         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
84597         HAVE_MBSINIT.
84598         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
84599         HAVE_MBSINIT.
84600         * doc/posix-functions/mbsinit.texi: Document the new module.
84602 2008-12-16  Bruno Haible  <bruno@clisp.org>
84604         * lib/unistd.in.h: Add comment.
84605         * tests/test-environ.c: Don't include <stdlib.h>.
84607 2008-12-16  Bruno Haible  <bruno@clisp.org>
84609         * lib/parse-duration.h (parse_duration): Document return value
84610         convention.
84611         * lib/parse-duration.c: Include specification header first. Add
84612         comments.
84613         (_): Remove macro.
84614         (parse_year_month_day, parse_hour_minute_second): Move side effects
84615         outside of strchr call.
84616         (parse_non_iso8601): Move side effects outside of isspace call.
84617         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
84618         call.
84620 2008-12-16  Bruno Haible  <bruno@clisp.org>
84622         * tests/test-parse-duration.sh: Produce no output when the test
84623         succeeds.
84625 2008-12-16  Bruno Haible  <bruno@clisp.org>
84627         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
84628         expressions.
84630 2008-12-15  Bruno Haible  <bruno@clisp.org>
84632         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
84633         * doc/glibc-functions/flistxattr.texi: Likewise.
84634         * doc/glibc-functions/fopencookie.texi: Likewise.
84635         * doc/glibc-functions/fremovexattr.texi: Likewise.
84636         * doc/glibc-functions/fsetxattr.texi: Likewise.
84637         * doc/glibc-functions/getxattr.texi: Likewise.
84638         * doc/glibc-functions/lgetxattr.texi: Likewise.
84639         * doc/glibc-functions/listxattr.texi: Likewise.
84640         * doc/glibc-functions/llistxattr.texi: Likewise.
84641         * doc/glibc-functions/lremovexattr.texi: Likewise.
84642         * doc/glibc-functions/lsetxattr.texi: Likewise.
84643         * doc/glibc-functions/removexattr.texi: Likewise.
84644         * doc/glibc-functions/setxattr.texi: Likewise.
84645         * doc/posix-functions/open_memstream.texi: Likewise.
84647 2008-12-15  Eric Blake  <ebb9@byu.net>
84649         Update doc for cygwin 1.7.
84650         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
84651         functions.
84652         * doc/posix-functions/fchmodat.texi: Likewise.
84653         * doc/posix-functions/fchownat.texi: Likewise.
84654         * doc/posix-functions/fdopendir.texi: Likewise.
84655         * doc/posix-functions/fmemopen.texi: Likewise.
84656         * doc/posix-functions/freeaddrinfo.texi: Likewise.
84657         * doc/posix-functions/fstatat.texi: Likewise.
84658         * doc/posix-functions/futimens.texi: Likewise.
84659         * doc/posix-functions/gai_strerror.texi: Likewise.
84660         * doc/posix-functions/getaddrinfo.texi: Likewise.
84661         * doc/posix-functions/getnameinfo.texi: Likewise.
84662         * doc/posix-functions/if_freenameindex.texi: Likewise.
84663         * doc/posix-functions/if_indextoname.texi: Likewise.
84664         * doc/posix-functions/if_nameindex.texi: Likewise.
84665         * doc/posix-functions/if_nametoindex.texi: Likewise.
84666         * doc/posix-functions/insque.texi: Likewise.
84667         * doc/posix-functions/linkat.texi: Likewise.
84668         * doc/posix-functions/llrint.texi: Likewise.
84669         * doc/posix-functions/llrintf.texi: Likewise.
84670         * doc/posix-functions/llrintl.texi: Likewise.
84671         * doc/posix-functions/lockf.texi: Likewise.
84672         * doc/posix-functions/lrintl.texi: Likewise.
84673         * doc/posix-functions/mkdirat.texi: Likewise.
84674         * doc/posix-functions/mkfifoat.texi: Likewise.
84675         * doc/posix-functions/mknodat.texi: Likewise.
84676         * doc/posix-functions/mq_close.texi: Likewise.
84677         * doc/posix-functions/mq_getattr.texi: Likewise.
84678         * doc/posix-functions/mq_notify.texi: Likewise.
84679         * doc/posix-functions/mq_open.texi: Likewise.
84680         * doc/posix-functions/mq_receive.texi: Likewise.
84681         * doc/posix-functions/mq_send.texi: Likewise.
84682         * doc/posix-functions/mq_setattr.texi: Likewise.
84683         * doc/posix-functions/mq_timedreceive.texi: Likewise.
84684         * doc/posix-functions/mq_timedsend.texi: Likewise.
84685         * doc/posix-functions/mq_unlink.texi: Likewise.
84686         * doc/posix-functions/open_memstream.texi: Likewise.
84687         * doc/posix-functions/openat.texi: Likewise.
84688         * doc/posix-functions/posix_fadvise.texi: Likewise.
84689         * doc/posix-functions/posix_fallocate.texi: Likewise.
84690         * doc/posix-functions/posix_madvise.texi: Likewise.
84691         * doc/posix-functions/posix_memalign.texi: Likewise.
84692         * doc/posix-functions/posix_openpt.texi: Likewise.
84693         * doc/posix-functions/readlinkat.texi: Likewise.
84694         * doc/posix-functions/remque.texi: Likewise.
84695         * doc/posix-functions/renameat.texi: Likewise.
84696         * doc/posix-functions/rintl.texi: Likewise.
84697         * doc/posix-functions/sem_unlink.texi: Likewise.
84698         * doc/posix-functions/shm_open.texi: Likewise.
84699         * doc/posix-functions/shm_unlink.texi: Likewise.
84700         * doc/posix-functions/signgam.texi: Likewise.
84701         * doc/posix-functions/sigset.texi: Likewise.
84702         * doc/posix-functions/stpcpy.texi: Likewise.
84703         * doc/posix-functions/stpncpy.texi: Likewise.
84704         * doc/posix-functions/strerror.texi: Likewise.
84705         * doc/posix-functions/strtod.texi: Likewise.
84706         * doc/posix-functions/symlinkat.texi: Likewise.
84707         * doc/posix-functions/unlinkat.texi: Likewise.
84708         * doc/posix-functions/utimensat.texi: Likewise.
84709         * doc/glibc-functions/bindresvport.texi: Likewise.
84710         * doc/glibc-functions/dn_expand.texi: Likewise.
84711         * doc/glibc-functions/exp10.texi: Likewise.
84712         * doc/glibc-functions/exp10f.texi: Likewise.
84713         * doc/glibc-functions/fgetxattr.texi: Likewise.
84714         * doc/glibc-functions/flistxattr.texi: Likewise.
84715         * doc/glibc-functions/fopencookie.texi: Likewise.
84716         * doc/glibc-functions/freeifaddrs.texi: Likewise.
84717         * doc/glibc-functions/fremovexattr.texi: Likewise.
84718         * doc/glibc-functions/fsetxattr.texi: Likewise.
84719         * doc/glibc-functions/getifaddrs.texi: Likewise.
84720         * doc/glibc-functions/getxattr.texi: Likewise.
84721         * doc/glibc-functions/lgetxattr.texi: Likewise.
84722         * doc/glibc-functions/listxattr.texi: Likewise.
84723         * doc/glibc-functions/llistxattr.texi: Likewise.
84724         * doc/glibc-functions/lremovexattr.texi: Likewise.
84725         * doc/glibc-functions/lsetxattr.texi: Likewise.
84726         * doc/glibc-functions/pow10.texi: Likewise.
84727         * doc/glibc-functions/pow10f.texi: Likewise.
84728         * doc/glibc-functions/rcmd_af.texi: Likewise.
84729         * doc/glibc-functions/removexattr.texi: Likewise.
84730         * doc/glibc-functions/res_init.texi: Likewise.
84731         * doc/glibc-functions/res_mkquery.texi: Likewise.
84732         * doc/glibc-functions/res_query.texi: Likewise.
84733         * doc/glibc-functions/res_querydomain.texi: Likewise.
84734         * doc/glibc-functions/res_send.texi: Likewise.
84735         * doc/glibc-functions/rresvport_af.texi: Likewise.
84736         * doc/glibc-functions/setxattr.texi: Likewise.
84737         * doc/glibc-functions/strcasestr.texi: Likewise.
84739 2008-12-15  Bruno Haible  <bruno@clisp.org>
84741         Fix compilation error on OSF/1 4.0.
84742         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
84743         <sys/time.h>, simply delegate to the system header.
84744         Reported by Daniel Richard G. <oss@teragram.com>.
84746 2008-12-15  Bruno Haible  <bruno@clisp.org>
84748         * doc/posix-functions/openat.texi: Mention the 'openat' module.
84749         * doc/posix-functions/fchmodat.texi: Likewise.
84750         * doc/posix-functions/fchownat.texi: Likewise.
84751         * doc/posix-functions/fdopendir.texi: Likewise.
84752         * doc/posix-functions/fstatat.texi: Likewise.
84753         * doc/posix-functions/mkdirat.texi: Likewise.
84754         * doc/posix-functions/unlinkat.texi: Likewise.
84756 2008-12-14  Bruno Haible  <bruno@clisp.org>
84758         Update doc for POSIX:2008.
84759         * doc/posix-functions/faccessat.texi: New file.
84760         * doc/posix-functions/fchmodat.texi: New file.
84761         * doc/posix-functions/fchownat.texi: New file.
84762         * doc/posix-functions/fdopendir.texi: New file.
84763         * doc/posix-functions/fstatat.texi: New file.
84764         * doc/posix-functions/futimens.texi: New file.
84765         * doc/posix-functions/linkat.texi: New file.
84766         * doc/posix-functions/mkdirat.texi: New file.
84767         * doc/posix-functions/mkfifoat.texi: New file.
84768         * doc/posix-functions/mknodat.texi: New file.
84769         * doc/posix-functions/open_wmemstream.texi: New file.
84770         * doc/posix-functions/openat.texi: New file.
84771         * doc/posix-functions/psiginfo.texi: New file.
84772         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
84773         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
84774         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
84775         * doc/posix-functions/readlinkat.texi: New file.
84776         * doc/posix-functions/renameat.texi: New file.
84777         * doc/posix-functions/strerror_l.texi: New file.
84778         * doc/posix-functions/symlinkat.texi: New file.
84779         * doc/posix-functions/unlinkat.texi: New file.
84780         * doc/posix-functions/utimensat.texi: New file.
84781         * doc/gnulib.texi (Function Substitutes): Add these subsections.
84783 2008-12-14  Bruno Haible  <bruno@clisp.org>
84785         Update doc for POSIX:2008.
84786         * doc/posix-functions/alphasort.texi: Renamed from
84787         doc/glibc-functions/alphasort.texi.
84788         * doc/posix-functions/dirfd.texi: Renamed from
84789         doc/glibc-functions/dirfd.texi.
84790         * doc/posix-functions/dprintf.texi: Renamed from
84791         doc/glibc-functions/dprintf.texi.
84792         * doc/posix-functions/duplocale.texi: Renamed from
84793         doc/glibc-functions/duplocale.texi.
84794         * doc/posix-functions/fexecve.texi: Renamed from
84795         doc/glibc-functions/fexecve.texi.
84796         * doc/posix-functions/fmemopen.texi: Renamed from
84797         doc/glibc-functions/fmemopen.texi.
84798         * doc/posix-functions/freelocale.texi: Renamed from
84799         doc/glibc-functions/freelocale.texi.
84800         * doc/posix-functions/getdate_err.texi: Renamed from
84801         doc/glibc-functions/getdate_err.texi.
84802         * doc/posix-functions/isalnum_l.texi: Renamed from
84803         doc/glibc-functions/isalnum_l.texi.
84804         * doc/posix-functions/isalpha_l.texi: Renamed from
84805         doc/glibc-functions/isalpha_l.texi.
84806         * doc/posix-functions/isblank_l.texi: Renamed from
84807         doc/glibc-functions/isblank_l.texi.
84808         * doc/posix-functions/iscntrl_l.texi: Renamed from
84809         doc/glibc-functions/iscntrl_l.texi.
84810         * doc/posix-functions/isdigit_l.texi: Renamed from
84811         doc/glibc-functions/isdigit_l.texi.
84812         * doc/posix-functions/isgraph_l.texi: Renamed from
84813         doc/glibc-functions/isgraph_l.texi.
84814         * doc/posix-functions/islower_l.texi: Renamed from
84815         doc/glibc-functions/islower_l.texi.
84816         * doc/posix-functions/isprint_l.texi: Renamed from
84817         doc/glibc-functions/isprint_l.texi.
84818         * doc/posix-functions/ispunct_l.texi: Renamed from
84819         doc/glibc-functions/ispunct_l.texi.
84820         * doc/posix-functions/isspace_l.texi: Renamed from
84821         doc/glibc-functions/isspace_l.texi.
84822         * doc/posix-functions/isupper_l.texi: Renamed from
84823         doc/glibc-functions/isupper_l.texi.
84824         * doc/posix-functions/iswalnum_l.texi: Renamed from
84825         doc/glibc-functions/iswalnum_l.texi.
84826         * doc/posix-functions/iswalpha_l.texi: Renamed from
84827         doc/glibc-functions/iswalpha_l.texi.
84828         * doc/posix-functions/iswblank_l.texi: Renamed from
84829         doc/glibc-functions/iswblank_l.texi.
84830         * doc/posix-functions/iswcntrl_l.texi: Renamed from
84831         doc/glibc-functions/iswcntrl_l.texi.
84832         * doc/posix-functions/iswctype_l.texi: Renamed from
84833         doc/glibc-functions/iswctype_l.texi.
84834         * doc/posix-functions/iswdigit_l.texi: Renamed from
84835         doc/glibc-functions/iswdigit_l.texi.
84836         * doc/posix-functions/iswgraph_l.texi: Renamed from
84837         doc/glibc-functions/iswgraph_l.texi.
84838         * doc/posix-functions/iswlower_l.texi: Renamed from
84839         doc/glibc-functions/iswlower_l.texi.
84840         * doc/posix-functions/iswprint_l.texi: Renamed from
84841         doc/glibc-functions/iswprint_l.texi.
84842         * doc/posix-functions/iswpunct_l.texi: Renamed from
84843         doc/glibc-functions/iswpunct_l.texi.
84844         * doc/posix-functions/iswspace_l.texi: Renamed from
84845         doc/glibc-functions/iswspace_l.texi.
84846         * doc/posix-functions/iswupper_l.texi: Renamed from
84847         doc/glibc-functions/iswupper_l.texi.
84848         * doc/posix-functions/iswxdigit_l.texi: Renamed from
84849         doc/glibc-functions/iswxdigit_l.texi.
84850         * doc/posix-functions/isxdigit_l.texi: Renamed from
84851         doc/glibc-functions/isxdigit_l.texi.
84852         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
84853         doc/glibc-functions/mbsnrtowcs.texi.
84854         * doc/posix-functions/mkdtemp.texi: Renamed from
84855         doc/glibc-functions/mkdtemp.texi.
84856         * doc/posix-functions/newlocale.texi: Renamed from
84857         doc/glibc-functions/newlocale.texi.
84858         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
84859         doc/glibc-functions/nl_langinfo_l.texi.
84860         * doc/posix-functions/open_memstream.texi: Renamed from
84861         doc/glibc-functions/open_memstream.texi.
84862         * doc/posix-functions/opterr.texi: Renamed from
84863         doc/glibc-functions/opterr.texi.
84864         * doc/posix-functions/optind.texi: Renamed from
84865         doc/glibc-functions/optind.texi.
84866         * doc/posix-functions/optopt.texi: Renamed from
84867         doc/glibc-functions/optopt.texi.
84868         * doc/posix-functions/psignal.texi: Renamed from
84869         doc/glibc-functions/psignal.texi.
84870         * doc/posix-functions/scandir.texi: Renamed from
84871         doc/glibc-functions/scandir.texi.
84872         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
84873         doc/glibc-functions/sched_get_priority_min.texi.
84874         * doc/posix-functions/signgam.texi: Renamed from
84875         doc/glibc-functions/signgam.texi.
84876         * doc/posix-functions/stpcpy.texi: Renamed from
84877         doc/glibc-functions/stpcpy.texi.
84878         * doc/posix-functions/stpncpy.texi: Renamed from
84879         doc/glibc-functions/stpncpy.texi.
84880         * doc/posix-functions/strcasecmp_l.texi: Renamed from
84881         doc/glibc-functions/strcasecmp_l.texi.
84882         * doc/posix-functions/strcoll_l.texi: Renamed from
84883         doc/glibc-functions/strcoll_l.texi.
84884         * doc/posix-functions/strfmon_l.texi: Renamed from
84885         doc/glibc-functions/strfmon_l.texi.
84886         * doc/posix-functions/strftime_l.texi: Renamed from
84887         doc/glibc-functions/strftime_l.texi.
84888         * doc/posix-functions/strncasecmp_l.texi: Renamed from
84889         doc/glibc-functions/strncasecmp_l.texi.
84890         * doc/posix-functions/strndup.texi: Renamed from
84891         doc/glibc-functions/strndup.texi.
84892         * doc/posix-functions/strnlen.texi: Renamed from
84893         doc/glibc-functions/strnlen.texi.
84894         * doc/posix-functions/strsignal.texi: Renamed from
84895         doc/glibc-functions/strsignal.texi.
84896         * doc/posix-functions/strxfrm_l.texi: Renamed from
84897         doc/glibc-functions/strxfrm_l.texi.
84898         * doc/posix-functions/timer_gettime.texi: Renamed from
84899         doc/glibc-functions/timer_gettime.texi.
84900         * doc/posix-functions/tolower_l.texi: Renamed from
84901         doc/glibc-functions/tolower_l.texi.
84902         * doc/posix-functions/toupper_l.texi: Renamed from
84903         doc/glibc-functions/toupper_l.texi.
84904         * doc/posix-functions/towctrans_l.texi: Renamed from
84905         doc/glibc-functions/towctrans_l.texi.
84906         * doc/posix-functions/towlower_l.texi: Renamed from
84907         doc/glibc-functions/towlower_l.texi.
84908         * doc/posix-functions/towupper_l.texi: Renamed from
84909         doc/glibc-functions/towupper_l.texi.
84910         * doc/posix-functions/uselocale.texi: Renamed from
84911         doc/glibc-functions/uselocale.texi.
84912         * doc/posix-functions/vdprintf.texi: Renamed from
84913         doc/glibc-functions/vdprintf.texi.
84914         * doc/posix-functions/wcpcpy.texi:
84915         Renamed from doc/glibc-functions/wcpcpy.texi.
84916         * doc/posix-functions/wcpncpy.texi: Renamed from
84917         doc/glibc-functions/wcpncpy.texi.
84918         * doc/posix-functions/wcscasecmp.texi: Renamed from
84919         doc/glibc-functions/wcscasecmp.texi.
84920         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
84921         doc/glibc-functions/wcscasecmp_l.texi.
84922         * doc/posix-functions/wcscoll_l.texi: Renamed from
84923         doc/glibc-functions/wcscoll_l.texi.
84924         * doc/posix-functions/wcsdup.texi: Renamed from
84925         doc/glibc-functions/wcsdup.texi.
84926         * doc/posix-functions/wcsncasecmp.texi: Renamed from
84927         doc/glibc-functions/wcsncasecmp.texi.
84928         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
84929         doc/glibc-functions/wcsncasecmp_l.texi.
84930         * doc/posix-functions/wcsnlen.texi: Renamed from
84931         doc/glibc-functions/wcsnlen.texi.
84932         * doc/posix-functions/wcsnrtombs.texi: Renamed from
84933         doc/glibc-functions/wcsnrtombs.texi.
84934         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
84935         doc/glibc-functions/wcsxfrm_l.texi.
84936         * doc/posix-functions/wctrans_l.texi: Renamed from
84937         doc/glibc-functions/wctrans_l.texi.
84938         * doc/posix-functions/wctype_l.texi: Renamed from
84939         doc/glibc-functions/wctype_l.texi.
84940         * doc/gnulib.texi (Function Substitutes): Add these subsections.
84941         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
84942         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
84943         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
84944         these subsections.
84945         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
84946         Remove sections.
84948 2008-12-14  Bruno Haible  <bruno@clisp.org>
84950         Update doc for POSIX:2008.
84951         * doc/posix-functions/*.texi: Update URL of POSIX specification.
84953 2008-12-14  Bruno Haible  <bruno@clisp.org>
84955         Update doc for POSIX:2008.
84956         * doc/pastposix-functions/bcmp.texi: Renamed from
84957         doc/posix-functions/bcmp.texi.
84958         * doc/pastposix-functions/bcopy.texi: Renamed from
84959         doc/posix-functions/bcopy.texi.
84960         * doc/pastposix-functions/bsd_signal.texi: Renamed from
84961         doc/posix-functions/bsd_signal.texi.
84962         * doc/pastposix-functions/bzero.texi: Renamed from
84963         doc/posix-functions/bzero.texi.
84964         * doc/pastposix-functions/ecvt.texi: Renamed from
84965         doc/posix-functions/ecvt.texi.
84966         * doc/pastposix-functions/fcvt.texi: Renamed from
84967         doc/posix-functions/fcvt.texi.
84968         * doc/pastposix-functions/ftime.texi: Renamed from
84969         doc/posix-functions/ftime.texi.
84970         * doc/pastposix-functions/gcvt.texi: Renamed from
84971         doc/posix-functions/gcvt.texi.
84972         * doc/pastposix-functions/getcontext.texi: Renamed from
84973         doc/posix-functions/getcontext.texi.
84974         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
84975         doc/posix-functions/gethostbyaddr.texi.
84976         * doc/pastposix-functions/gethostbyname.texi: Renamed from
84977         doc/posix-functions/gethostbyname.texi.
84978         * doc/pastposix-functions/getwd.texi: Renamed from
84979         doc/posix-functions/getwd.texi.
84980         * doc/pastposix-functions/h_errno.texi: Renamed from
84981         doc/posix-functions/h_errno.texi.
84982         * doc/pastposix-functions/index.texi: Renamed from
84983         doc/posix-functions/index.texi.
84984         * doc/pastposix-functions/makecontext.texi: Renamed from
84985         doc/posix-functions/makecontext.texi.
84986         * doc/pastposix-functions/mktemp.texi: Renamed from
84987         doc/posix-functions/mktemp.texi.
84988         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
84989         doc/posix-functions/pthread_attr_getstackaddr.texi.
84990         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
84991         doc/posix-functions/pthread_attr_setstackaddr.texi.
84992         * doc/pastposix-functions/rindex.texi: Renamed from
84993         doc/posix-functions/rindex.texi.
84994         * doc/pastposix-functions/scalb.texi: Renamed from
84995         doc/posix-functions/scalb.texi.
84996         * doc/pastposix-functions/setcontext.texi: Renamed from
84997         doc/posix-functions/setcontext.texi.
84998         * doc/pastposix-functions/swapcontext.texi: Renamed from
84999         doc/posix-functions/swapcontext.texi.
85000         * doc/pastposix-functions/ualarm.texi: Renamed from
85001         doc/posix-functions/ualarm.texi.
85002         * doc/pastposix-functions/usleep.texi: Renamed from
85003         doc/posix-functions/usleep.texi.
85004         * doc/pastposix-functions/vfork.texi: Renamed from
85005         doc/posix-functions/vfork.texi.
85006         * doc/pastposix-functions/wcswcs.texi: Renamed from
85007         doc/posix-functions/wcswcs.texi.
85008         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
85009         (Function Substitutes): Update.
85011 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
85013         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
85014         m4/strerror.m4.
85016 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
85017             Bruno Haible  <bruno@clisp.org>
85019         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
85021 2008-12-13  Bruno Haible  <bruno@clisp.org>
85023         * modules/strtoull (Depends-on): Remove unistd.
85025 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
85027         * modules/strtoull (Depends-on): Add stdlib.
85029 2008-12-11  Simon Josefsson  <simon@josefsson.org>
85031         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
85033 2008-12-10  Jim Meyering  <meyering@redhat.com>
85035         gl_ASSERT: don't say assertions are disabled when they're not
85036         * m4/assert.m4 (gl_ASSERT): Do not make configure report
85037         "checking whether to enable assertions... no", when they are in
85038         fact enabled.  This is solely a bug in the output of configure.
85039         In spite of saying "no", NDEBUG was not defined in that case.
85040         Also, as noted by Eric Blake, leave assertions enabled upon
85041         --enable-assert=INVALID.
85043 2008-12-10  Bruno Haible  <bruno@clisp.org>
85045         Change MODULES.html to refer to POSIX:2008 where possible.
85046         * MODULES.html.sh (POSIX2008_URL): New variable.
85047         (posix_headers): Remove sys/timeb, ucontext.
85048         (posix2001_headers): New variable.
85049         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
85050         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
85051         index, makecontext, mktemp, pthread_attr_getstackaddr,
85052         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
85053         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
85054         (posix2001_functions): New variable.
85055         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
85056         otherwise.
85058 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
85060         add missing include to parse-duration.c
85061         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
85062         * modules/parse-duration (Depends-on): Add xalloc.
85064         fix sed script reading maint.mk
85065         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
85066         (syntax-check-rules): Use it.
85068 2008-12-09  Bruno Haible  <bruno@clisp.org>
85070         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
85071         MacOS X 10.4/PowerPC.
85072         Reported by Simon Josefsson.
85074 2008-12-08  Jim Meyering  <meyering@redhat.com>
85076         work around mingw's lack of some S_IF definitions
85077         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
85078         Reported by Simon Josefsson.
85080 2008-12-08  Bruno Haible  <bruno@clisp.org>
85082         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
85083         applied to variables. Needed on MacOS X 10.4/PowerPC.
85084         Reported by Simon Josefsson.
85086 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
85087         and Eric Blake  <ebb9@byu.net>
85089         assert: honor --enable-assert
85090         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
85091         order to honor --enable-assert, rather than treating it as a
85092         synonym for --disable-assert.
85094 2008-12-08  Jim Meyering  <meyering@redhat.com>
85096         * lib/posixtm.c: Remove now-useless declaration of mktime.
85098         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
85100 2008-12-07  Bruno Haible  <bruno@clisp.org>
85102         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
85103         test_once): Mark functions as static.
85104         * tests/test-tls.c (test_tls): Likewise.
85106 2008-12-07  Bruno Haible  <bruno@clisp.org>
85108         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
85109         iconv_register_autodetect.
85111 2008-12-07  Jim Meyering  <meyering@redhat.com>
85113         posixtm.c: avoid a warning
85114         * lib/posixtm.c (posixtime): Don't initialize tm0.
85115         It's no longer needed to placate gcc4's -Wuninitialized,
85116         and the attempt to placate would elicit a new warning.
85118         unicodeio.c: mark unused parameters
85119         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
85120         (fallback_failure_callback): Likewise.
85122 2008-12-07  Bruno Haible  <bruno@clisp.org>
85124         * gnulib-tool (func_create_testdir): When building the tests
85125         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
85126         Reported by Simon Josefsson.
85128 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
85130         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
85132 2008-12-06  Bruno Haible  <bruno@clisp.org>
85134         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
85135         Suggested by Eric Blake.
85137 2008-12-06  Bruno Haible  <bruno@clisp.org>
85139         Fix a c-stack test failure on MacOS X.
85140         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
85141         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
85142         handler for SIGBUS as well.
85143         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
85144         install a signal handler for SIGBUS as well.
85145         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
85147 2008-12-06  Bruno Haible  <bruno@clisp.org>
85149         Advocacy documentation.
85150         * doc/gnulib-intro.texi (Benefits): New section.
85151         * doc/gnulib.texi: Update.
85153 2008-12-06  Bruno Haible  <bruno@clisp.org>
85155         Document the 'manywarnings' module.
85156         * doc/manywarnings.texi: New file.
85157         * doc/gnulib.texi: Include it.
85159 2008-12-05  Eric Blake  <ebb9@byu.net>
85161         tests: silence some gcc warnings
85162         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
85163         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
85164         type mismatches.
85166 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
85167             Bruno Haible  <bruno@clisp.org>
85169         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
85171 2008-11-29  Jim Meyering  <meyering@redhat.com>
85173         unicodeio.c: mark unused parameters
85174         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
85175         (fallback_failure_callback): Likewise.
85177         fts: fix a thinko
85178         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
85179         (set_stat_type): Return S_IF*-valued "type" directly.
85180         Prompted by James Youngman's spotting a related bug.
85181         Confirmed by further testing through find.
85183         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
85184         * lib/fts.c (D_TYPE): Define.
85185         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
85186         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
85187         (s_ifmt_shift_bits): New function.
85188         (set_stat_type): New function.
85189         (fts_build): When not calling fts_stat, call set_stat_type
85190         to propagate dirent.d_type info to fts_read caller.
85191         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
85192         fts_statp->st_mode type information may be valid.
85194 2008-11-28  Simon Josefsson  <simon@josefsson.org>
85196         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
85197         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
85198         <sds@gnu.org>.
85200 2008-11-20  Bruno Haible  <bruno@clisp.org>
85202         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
85203         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
85204         INCLUDE_NEXT.
85205         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
85206         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
85207         * modules/math (Makefile.am): Substitute
85208         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
85209         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
85211 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
85212             Bruno Haible  <bruno@clisp.org>
85214         * lib/stdint.in.h: Define all type macros so that their expansion is
85215         a single typedef'ed token. Fixes a compilation failure in Boost which
85216         does "using ::int8_t;".
85218 2008-11-18  Simon Josefsson  <simon@josefsson.org>
85220         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
85221         gl_MANYWARN_ALL_GCC.
85222         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
85223         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
85224         * modules/manywarnings: New file.
85225         * MODULES.html.sh: Mention manywarnings module.
85227 2008-11-18  Bruno Haible  <bruno@clisp.org>
85229         * doc/gnulib-tool.texi (Unit tests): New section.
85231 2008-11-18  Simon Josefsson  <simon@josefsson.org>
85233         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
85234         paths like 'lib/po/foo.po'.
85236 2008-11-17  Simon Josefsson  <simon@josefsson.org>
85238         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
85239         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
85241 2008-11-17  Simon Josefsson  <simon@josefsson.org>
85243         * m4/warnings.m4: Use CPPFLAGS to really check whether the
85244         parameter works.
85246 2008-11-17  Simon Josefsson  <simon@josefsson.org>
85248         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
85250 2008-11-17  Bruce Korb  <bkorb@gnu.org>
85252         * modules/parse-duration-tests: New file.
85253         * tests/test-parse-duration.sh: New file.
85254         * tests/test-parse-duration.c: New file.
85256         New module 'parse-duration'.
85257         * lib/parse-duration.h: New file.
85258         * lib/parse-duration.c: New file.
85259         * modules/parse-duration: New file.
85261 2008-11-17  Bruno Haible  <bruno@clisp.org>
85263         * tests/test-select-out.sh: Comment out the first pipe test.
85264         Reported by Simon Josefsson.
85266 2008-11-17  Bruno Haible  <bruno@clisp.org>
85268         * modules/getaddrinfo (Depends-on): Add servent, hostent.
85269         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
85270         gl_HOSTENT.
85272 2008-11-17  Bruno Haible  <bruno@clisp.org>
85274         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
85275         -lnetwork and -lnet. Needed for Haiku and BeOS.
85277 2008-11-16  Bruno Haible  <bruno@clisp.org>
85279         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
85281 2008-11-16  Bruno Haible  <bruno@clisp.org>
85283         Avoid test failure on Haiku.
85284         * tests/test-fsync.c: Include <errno.h>.
85285         (main): Don't require that fsync (0) fails.
85287 2008-11-15  Bruno Haible  <bruno@clisp.org>
85289         New module 'hostent'.
85290         * modules/hostent: New file.
85291         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
85293 2008-11-15  Bruno Haible  <bruno@clisp.org>
85295         New module 'servent'.
85296         * modules/servent: New file.
85297         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
85299 2008-11-15  Bruno Haible  <bruno@clisp.org>
85301         Avoid generating same test program with two different rules.
85302         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
85303         test-frexp to test-frexp-nolibm.
85304         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
85305         test-frexpl to test-frexpl-nolibm.
85307 2008-11-15  Bruno Haible  <bruno@clisp.org>
85309         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
85310         $(FREXPL_LIBM).
85312 2008-11-15  Bruno Haible  <bruno@clisp.org>
85314         * lib/netdb.in.h: Activate the definitions also when the system's
85315         <netdb.h> has 'struct addrinfo'.
85316         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
85317         EAI_OVERFLOW or AI_NUMERICSERV.
85318         * doc/posix-headers/netdb.texi: Document the problem.
85320 2008-11-15  Bruno Haible  <bruno@clisp.org>
85322         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
85324         Make the 'sched' module work on platforms where <sched.h> exists but
85325         is incomplete (such as Haiku).
85326         * lib/sched.in.h; Include the system's <sched.h> if it exists.
85327         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
85328         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
85329         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
85330         HAVE_STRUCT_SCHED_PARAM.
85331         * modules/sched (Depends-on): Add include_next.
85332         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
85333         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
85334         * doc/posix-headers/sched.texi: Document the issue.
85336 2008-11-13  Jim Meyering  <meyering@redhat.com>
85338         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
85339         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
85340         test would fail due to the difference in the Report bugs to ...
85341         line.  The expected address is empty, "<>", while the actual
85342         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
85344 2008-11-12  Bruno Haible  <bruno@clisp.org>
85346         lstat: don't compile lstat.c on systems lacking lstat
85347         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
85348         which don't have lstat; this is handled by lib/sys_stat.in.h already.
85349         Reported by Daniel P. Berrange via Jim Meyering.
85351 2008-11-12  Jim Meyering  <meyering@redhat.com>
85353         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
85355 2008-11-12  Simon Josefsson  <simon@josefsson.org>
85357         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
85358         instead.
85360 2008-11-12  Bruno Haible  <bruno@clisp.org>
85362         * lib/unicodeio.c: Include unistr.h.
85363         (utf8_wctomb): Remove function.
85364         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
85366 2008-11-12  Simon Josefsson  <simon@josefsson.org>
85368         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
85369         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
85370         <bruno@clisp.org>.
85371         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
85373 2008-11-12  Simon Josefsson  <simon@josefsson.org>
85375         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
85376         * doc/gnulib.texi: Add section for warnings.
85378 2008-11-11  Bruno Haible  <bruno@clisp.org>
85380         * lib/sockets.h: Add a comment.
85382 2008-11-11  Karl Berry  <karl@gnu.org>
85384         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
85386 2008-11-11  Eric Blake  <ebb9@byu.net>
85388         fdl.texi: avoid git symlinks
85389         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
85391 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
85393         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
85395 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
85397         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
85398         (gl_WARN_ADD): Substitute $2 if literal.
85400 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
85402         * m4/warning.m4: Remove.
85404 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
85406         * m4/warnings.m4: Almost complete rewrite. :-)
85408 2008-11-10  Simon Josefsson  <simon@josefsson.org>
85410         * modules/warnings: New module.
85411         * m4/warnings.m4: New file.
85412         * MODULES.html.sh: Mention warnings module.
85413         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
85414         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
85416 2008-11-10  Eric Blake  <ebb9@byu.net>
85418         fdl.texi: make a symlink to the latest version
85419         * doc/standards.texi: Revert today's earlier change.
85420         * doc/fdl-1.2.texi: Rename from old fdl.texi...
85421         * doc/fdl.texi: ...and replace this with a symlink to the newer
85422         fdl-1.3.texi.
85424 2008-11-10  Bruno Haible  <bruno@clisp.org>
85426         * tests/test-select-fd.c (main): Accept the result file name as fourth
85427         argument.
85428         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
85429         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
85431 2008-11-10  Bruno Haible  <bruno@clisp.org>
85433         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
85434         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
85435         as autoconf-substituted macros.
85436         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
85437         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
85438         gl_NETDB_H_DEFAULTS. Set these variables.
85439         * modules/netdb (Makefile.am): Substitute these variables.
85441 2008-11-10  Eric Blake  <ebb9@byu.net>
85443         standards.texi: include correct file for FDL 1.3
85444         * doc/standards.texi (GNU Free Documentation License): Change
85445         include file to pull in FDL 1.3, not 1.2.
85447         fdl.texi: revert accidental change to license
85448         * doc/fdl.texi: This is FDL 1.2, not 1.3.
85450 2008-11-10  Bruno Haible  <bruno@clisp.org>
85452         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
85453         cross-compiling guesses also when the native compile gives no result.
85455 2008-11-10  Bruno Haible  <bruno@clisp.org>
85457         * lib/spawni.c (__spawni): Force variable into the stack.
85459 2008-11-10  Bruno Haible  <bruno@clisp.org>
85461         Add support for Haiku.
85462         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
85463         glibc and BeOS, but also on Haiku.
85464         * lib/fpurge.c (fpurge): Likewise.
85465         * lib/freadable.c (freadable): Likewise.
85466         * lib/freadahead.c (freadahead): Likewise.
85467         * lib/freading.c (freading): Likewise.
85468         * lib/freadptr.c (freadptr): Likewise.
85469         * lib/freadseek.c (freadptrinc): Likewise.
85470         * lib/fseeko.c (rpl_fseeko): Likewise.
85471         * lib/fseterr.c (fseterr): Likewise.
85472         * lib/fwritable.c (fwritable): Likewise.
85473         * lib/fwriting.c (fwriting): Likewise.
85474         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
85476 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
85478         * lib/config.charset: Treat Haiku like BeOS.
85480 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
85482         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
85483         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
85485 2008-11-08  Bruno Haible  <bruno@clisp.org>
85487         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
85488         AC_CACHE_CHECK.
85490 2008-11-08  Bruno Haible  <bruno@clisp.org>
85492         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
85494 2008-11-08  Bruno Haible  <bruno@clisp.org>
85496         * tests/test-select-fd.c: New file.
85497         * tests/test-select-in.sh: New file.
85498         * tests/test-select-out.sh: New file.
85499         * tests/test-select-stdin.c: New file.
85500         * modules/select-tests (Files): Add the new files.
85501         (Depends-on): Add gettimeofday.
85502         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
85503         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
85504         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
85506 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
85507             Bruno Haible  <bruno@clisp.org>
85509         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
85511 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
85513         * build-aux/pmccabe2html: Added support for C++ source files.
85515 2008-11-05  Ben Pfaff  <blp@gnu.org>
85517         Fix lib/close.c build on Windows.
85518         * modules/close (Files): Add lib/w32sock.h.
85520 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
85522         Accept Bison's NEWS format.
85523         * build-aux/announce-gen (print_news_deltas): Tweak
85524         $re_prefix.
85526 2008-11-04  Bruno Haible  <bruno@clisp.org>
85528         * modules/random_r (Maintainer): Add glibc.
85530 2008-11-04  Simon Josefsson  <simon@josefsson.org>
85532         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
85533         by karl@freefriends.org (Karl Berry).
85534         * doc/alloca.texi: Likewise.
85535         * doc/c-ctype.texi: Likewise.
85536         * doc/c-strcase.texi: Likewise.
85537         * doc/c-strcaseeq.texi: Likewise.
85538         * doc/c-strcasestr.texi: Likewise.
85539         * doc/c-strstr.texi: Likewise.
85540         * doc/c-strtod.texi: Likewise.
85541         * doc/c-strtold.texi: Likewise.
85542         * doc/ctime.texi: Likewise.
85543         * doc/error.texi: Likewise.
85544         * doc/fdl.texi: Likewise.
85545         * doc/gcd.texi: Likewise.
85546         * doc/getdate.texi: Likewise.
85547         * doc/gnulib-intro.texi: Likewise.
85548         * doc/gnulib-tool.texi: Likewise.
85549         * doc/gnulib.texi: Likewise.
85550         * doc/inet_ntoa.texi: Likewise.
85551         * doc/maintain.texi: Likewise.
85552         * doc/make-stds.texi: Likewise.
85553         * doc/quote.texi: Likewise.
85554         * doc/regexprops-generic.texi: Likewise.
85555         * doc/standards.texi: Likewise.
85556         * doc/verify.texi: Likewise.
85557         * doc/visibility.texi: Likewise.
85558         * doc/gnulib.texi (GNU Free Documentation License): Include
85559         fdl-1.3.texi instead of fdl.texi.
85561 2008-11-04  Simon Josefsson  <simon@josefsson.org>
85563         * doc/fdl-1.3.texi: New file, from
85564         <http://www.gnu.org/licenses/fdl-1.3.texi>.
85565         * modules/fdl-1.3: Add.
85566         * MODULES.html.sh: Add fdl-1.3.
85568 2008-11-03  Bruno Haible  <bruno@clisp.org>
85570         Make determination of absolute name of header file work with AIX xlc.
85571         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
85572         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
85573         preprocessing.
85574         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
85575         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
85577 2008-11-03  Simon Josefsson  <simon@josefsson.org>
85579         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
85580         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
85581         <ludo@gnu.org>.
85583 2008-11-02  Bruno Haible  <bruno@clisp.org>
85585         Mark 'strpbrk' obsolete.
85586         * modules/strpbrk (Status, Notice): New sections.
85587         * modules/strtok_r (Depends-on): Add strpbrk.
85589 2008-11-02  Bruno Haible  <bruno@clisp.org>
85591         Mark 'strdup' obsolete.
85592         * modules/strdup (Status, Notice): New sections.
85593         * modules/findprog (Depends-on): Add strdup.
85594         * modules/getaddrinfo (Depends-on): Likewise.
85595         * modules/localename (Depends-on): Likewise.
85596         * modules/relocatable-lib (Depends-on): Likewise.
85597         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
85598         * modules/relocatable-prog (Depends-on): Likewise.
85599         * modules/trim (Depends-on): Likewise.
85600         * modules/unictype/gen-ctype (Depends-on): Likewise.
85601         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
85603 2008-11-02  Bruno Haible  <bruno@clisp.org>
85605         Mark 'strcspn' obsolete.
85606         * modules/strcspn (Status, Notice): New sections.
85608 2008-11-02  Bruno Haible  <bruno@clisp.org>
85610         Mark 'rmdir' obsolete.
85611         * modules/rmdir (Status, Notice): New sections.
85612         * modules/clean-temp (Depends-on): Add rmdir.
85613         * modules/openat (Depends-on): Likewise.
85615 2008-11-02  Bruno Haible  <bruno@clisp.org>
85617         Mark 'raise' obsolete.
85618         * modules/raise (Status, Notice): New sections.
85619         (Include): Specify <signal.h>.
85620         * modules/stdio (Depends-on): Add raise.
85621         * modules/write (Depends-on): Likewise.
85623 2008-11-02  Bruno Haible  <bruno@clisp.org>
85625         Mark 'memset' obsolete.
85626         * modules/memset (Status, Notice): New sections.
85628 2008-11-02  Bruno Haible  <bruno@clisp.org>
85630         Mark 'memmove' obsolete.
85631         * modules/memmove (Status, Notice): New sections.
85632         * modules/argp (Depends-on): Add memmove.
85633         * modules/argz (Depends-on): Likewise.
85634         * modules/canonicalize (Depends-on): Likewise.
85635         * modules/canonicalize-lgpl (Depends-on): Likewise.
85636         * modules/fts (Depends-on): Likewise.
85637         * modules/getcwd (Depends-on): Likewise.
85638         * modules/human (Depends-on): Likewise.
85639         * modules/regex (Depends-on): Likewise.
85640         * modules/striconveh (Depends-on): Likewise.
85641         * modules/trim (Depends-on): Likewise.
85642         * modules/unistr/u8-move (Depends-on): Likewise.
85643         * modules/unistr/u16-move (Depends-on): Likewise.
85644         * modules/unistr/u32-move (Depends-on): Likewise.
85646 2008-11-02  Bruno Haible  <bruno@clisp.org>
85648         Mark 'memcpy' obsolete.
85649         * modules/memcpy (Status, Notice): New sections.
85651 2008-11-02  Bruno Haible  <bruno@clisp.org>
85653         Mark 'memcmp' obsolete.
85654         * modules/memcmp (Status, Notice): New sections.
85655         * modules/argmatch (Depends-on): Add memchr.
85656         * modules/backupfile (Depends-on): Likewise.
85657         * modules/c-strcasestr (Depends-on): Likewise.
85658         * modules/crypto/des (Depends-on): Likewise.
85659         * modules/csharpcomp (Depends-on): Likewise.
85660         * modules/fnmatch (Depends-on): Likewise.
85661         * modules/git-merge-changelog (Depends-on): Likewise.
85662         * modules/isnand (Depends-on): Likewise.
85663         * modules/isnand-nolibm (Depends-on): Likewise.
85664         * modules/isnanf (Depends-on): Likewise.
85665         * modules/isnanf-nolibm (Depends-on): Likewise.
85666         * modules/isnanl (Depends-on): Likewise.
85667         * modules/isnanl-nolibm (Depends-on): Likewise.
85668         * modules/mbchar (Depends-on): Likewise.
85669         * modules/memcoll (Depends-on): Likewise.
85670         * modules/quotearg (Depends-on): Likewise.
85671         * modules/regex (Depends-on): Likewise.
85672         * modules/relocatable-prog (Depends-on): Likewise.
85673         * modules/same (Depends-on): Likewise.
85674         * modules/signbit (Depends-on): Likewise.
85675         * modules/strcasestr-simple (Depends-on): Likewise.
85676         * modules/unictype/gen-ctype (Depends-on): Likewise.
85677         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
85678         * modules/uniname/uniname (Depends-on): Likewise.
85679         * modules/unistr/u8-cmp (Depends-on): Likewise.
85681 2008-11-02  Bruno Haible  <bruno@clisp.org>
85683         Mark 'memchr' obsolete.
85684         * modules/memchr (Status, Notice): New sections.
85685         * modules/argp (Depends-on): Add memchr.
85686         * modules/base64 (Depends-on): Likewise.
85687         * modules/c-strcasestr (Depends-on): Likewise.
85688         * modules/chdir-long (Depends-on): Likewise.
85689         * modules/fnmatch (Depends-on): Likewise.
85690         * modules/getsubopt (Depends-on): Likewise.
85691         * modules/git-merge-changelog (Depends-on): Likewise.
85692         * modules/glob (Depends-on): Likewise.
85693         * modules/strcasestr-simple (Depends-on): Likewise.
85694         * modules/strnlen (Depends-on): Likewise.
85696 2008-11-02  Bruno Haible  <bruno@clisp.org>
85698         Mark 'atexit' obsolete.
85699         * modules/atexit (Status, Notice): New sections.
85700         * modules/chdir-long (Depends-on): Add atexit.
85701         * modules/wait-process (Depends-on): Likewise.
85703 2008-11-02  Bruno Haible  <bruno@clisp.org>
85705         * gnulib-tool: New option --with-obsolete.
85706         (func_usage): Document it.
85707         (func_modules_transitive_closure): Drop obsolete dependencies if
85708         incobsolete is not true.
85709         (func_import): Read and save the incobsolete variable to the cache.
85711 2008-11-02  Bruno Haible  <bruno@clisp.org>
85713         * modules/TEMPLATE-EXTENDED: New field 'Status'.
85714         * gnulib-tool: New option --extract-status.
85715         (func_usage): Document it.
85716         (sed_extract_prog): Recognize it.
85717         (func_get_status): New function.
85719 2008-10-30  Simon Josefsson  <simon@josefsson.org>
85721         * modules/sockets (License): Change from LGPL to LGPLv2+.
85723 2008-10-28  Simon Josefsson  <simon@josefsson.org>
85725         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
85727 2008-10-28  Simon Josefsson  <simon@josefsson.org>
85729         * MODULES.html.sh (Support for systems lacking POSIX:2001):
85730         Mention times and sys_times.
85731         * modules/sys_times, modules/sys_times-tests: New modules.
85732         * modules/times, modules/times-tests: Likewise
85733         * m4/sys_times_h.m4: New file.
85734         * lib/sys_times.in.h: Likewise
85735         * lib/times.c: Likewise.
85736         * tests/test-sys_times.c: Likewise.
85737         * tests/test-times.c: Likewise.
85738         * doc/posix-headers/sys_times.texi: Update.
85739         * doc/posix-functions/times.texi: Update.
85741 2008-10-28  Jim Meyering  <meyering@redhat.com>
85743         * modules/tempname (Depends-on): Add lstat.
85745         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
85747 2008-10-28  Simon Josefsson  <simon@josefsson.org>
85749         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
85750         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
85751         using idiom used elsewhere in gnulib.
85753 2008-10-27  Jim Meyering  <meyering@redhat.com>
85755         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
85757 2008-10-27  Simon Josefsson  <simon@josefsson.org>
85759         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
85760         TESTS_ENVIRONMENT, for shell scripts that needs to call built
85761         programs.
85762         * tests/test-argp-2.sh: Use $EXEEXT when needed.
85764 2008-10-27  Simon Josefsson  <simon@josefsson.org>
85766         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
85768 2008-10-27  Bruno Haible  <bruno@clisp.org>
85770         * tests/test-lstat.c: Include <stdio.h>.
85772 2008-10-27  Simon Josefsson  <simon@josefsson.org>
85774         * modules/lstat-tests: New module.
85775         * tests/test-lstat.c: New file.
85777 2008-10-26  Jim Meyering  <meyering@redhat.com>
85779         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
85781 2008-10-26  Simon Josefsson  <simon@josefsson.org>
85782             Bruno Haible  <bruno@clisp.org>
85784         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
85785         * modules/configmake (Include): Add a note that the include must come
85786         after all system headers.
85787         * lib/javaversion.c: Include configmake.h after all other includes.
85789 2008-10-26  Bruno Haible  <bruno@clisp.org>
85791         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
85792         HAVE_STRUCT_RANDOM_DATA to 1.
85793         (gl_STDLIB_H): Simplify.
85795 2008-10-26  Simon Josefsson  <simon@josefsson.org>
85797         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
85798         substitute HAVE_STRUCT_RANDOM_DATA.
85799         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
85800         random_data.
85801         * modules/stdlib (Makefile.am): Substitute
85802         HAVE_STRUCT_RANDOM_DATA.
85804 2008-10-26  Simon Josefsson  <simon@josefsson.org>
85806         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
85807         * doc/gnulib-intro.texi (Copyright): Likewise.
85809 2008-10-26  Simon Josefsson  <simon@josefsson.org>
85811         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
85812         findings.
85814 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
85815             Bruno Haible  <bruno@clisp.org>
85817         * lib/unistd.in.h: Include <winsock2.h>.
85818         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
85819         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
85820         Provide dummy declarations.
85821         (gethostname): Override.
85822         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
85823         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
85824         gl_PREREQ_SYS_H_WINSOCK2.
85825         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
85826         * doc/posix-functions/gethostname.texi: More details.
85828 2008-10-25  Bruno Haible  <bruno@clisp.org>
85830         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
85831         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
85832         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
85834         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
85835         here ...
85836         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
85837         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
85838         gl_UNISTD_H_DEFAULTS.
85840 2008-10-25  Eric Blake  <ebb9@byu.net>
85842         signbit: avoid spurious compiler failure
85843         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
85844         declarations inside function.
85846 2008-10-24  Simon Josefsson  <simon@josefsson.org>
85847             Bruno Haible  <bruno@clisp.org>
85849         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
85850         * modules/random_r (Depends-on): Add stdint.
85852 2008-10-24  Bruno Haible  <bruno@clisp.org>
85854         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
85855         Eggert.
85856         * modules/strerror (License): Likewise.
85858 2008-10-24  Jim Meyering  <meyering@redhat.com>
85860         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
85861         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
85863 2008-10-24  Eric Blake  <ebb9@byu.net>
85865         getgroups: fix compilation when getgroups is available
85866         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
85867         but with <config.h> override of getgroups disabled.
85869 2008-10-24  Simon Josefsson  <simon@josefsson.org>
85871         * doc/gnulib.texi (Header files): Add note about C++ problems.
85872         Explained by Bruno Haible <bruno@clisp.org>.
85874 2008-10-23  Bruno Haible  <bruno@clisp.org>
85876         Define a dummy SA_NODEFER macro on Interix.
85877         * lib/signal.in.h (SA_NODEFER): Define fallback.
85878         Reported by Aleksey Cheusov <cheusov@tut.by> via
85879         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
85881 2008-10-23  Bruno Haible  <bruno@clisp.org>
85883         * modules/freadahead (License): Change to LGPLv2+.
85884         Suggested by Simon Josefsson.
85886 2008-10-23  Jim Meyering  <meyering@redhat.com>
85888         random_r: new module
85889         * modules/random_r: New file.
85890         * m4/random_r.m4: New file.
85891         * lib/random_r.c: New file, from glibc.
85892         * modules/random_r-tests: New file.
85893         * tests/test-random_r.c: New file.
85894         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
85895          Declare.
85896         (RAND_MAX): Define.
85897         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
85898         * modules/stdlib: Substitute them, too.
85899         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
85900         * doc/glibc-functions/initstate_r.texi: Mention the new module.
85901         * doc/glibc-functions/random_r.texi: Likewise.
85902         * doc/glibc-functions/setstate_r.texi: Likewise.
85903         * doc/glibc-functions/srandom_r.texi: Likewise.
85904         * config/srclist.txt: Mention it.
85906 2008-10-23  David Lutterkort  <lutter@redhat.com>
85908         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
85909         link requirement
85911 2008-10-23  Jim Meyering  <meyering@redhat.com>
85913         selinux-h: mark parameters of stub functions as intentionally unused
85914         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
85915         * lib/se-context.in.h: Likewise.
85917 2008-10-22  Simon Josefsson  <simon@josefsson.org>
85919         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
85921 2008-10-22  Simon Josefsson  <simon@josefsson.org>
85923         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
85925 2008-10-22  Eric Blake  <ebb9@byu.net>
85927         glthread/thread: avoid compiler warning
85928         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
85929         Add unreachable abort to silence compiler.
85931 2008-10-22  Eric Blake  <ebb9@byu.net>
85933         netdb: also supply struct addrinfo for cygwin 1.5.x
85934         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
85935         older cygwin.
85936         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
85937         cygwin.
85938         * doc/posix-headers/netdb.texi (netdb.h): Document this.
85940 2008-10-22  Bruno Haible  <bruno@clisp.org>
85942         * users.txt: Update entry about pspp.
85944 2008-10-21  Bruno Haible  <bruno@clisp.org>
85946         Simplification.
85947         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
85948         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
85950         Simplification.
85951         * lib/ioctl.c (ioctl): Don't undefine.
85952         * lib/socket.c (socket): Don't undefine.
85954         Remove unused module indicator macros.
85955         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
85956         GNULIB_$1 as a C macro.
85958         * doc/posix-functions/close.texi: Undo last change.
85959         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
85960         Windows platforms.
85962 2008-10-21  Bruno Haible  <bruno@clisp.org>
85964         Add gethostname() declaration to <unistd.h>.
85965         * lib/unistd.in.h (gethostname): New declaration.
85966         * lib/gethostname.c: Include <unistd.h>.
85967         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
85968         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
85969         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
85970         and HAVE_GETHOSTNAME.
85971         * modules/gethostname (Depends-on): Add unistd.
85972         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
85973         (Include): Specify <unistd.h>.
85974         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
85975         HAVE_GETHOSTNAME.
85976         * tests/test-gethostname.c: Include <unistd.h> first.
85978 2008-10-21  Bruno Haible  <bruno@clisp.org>
85980         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
85981         * modules/select-tests (Depends-on): Likewise.
85982         Reported by Simon Josefsson.
85984 2008-10-21  Simon Josefsson  <simon@josefsson.org>
85986         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
85987         * lib/accept.c: New file, based on winsock.c.
85988         * lib/bind.c: New file, based on winsock.c.
85989         * lib/connect.c: New file, based on winsock.c.
85990         * lib/getpeername.c: New file, based on winsock.c.
85991         * lib/getsockname.c: New file, based on winsock.c.
85992         * lib/getsockopt.c: New file, based on winsock.c.
85993         * lib/ioctl.c: New file, based on winsock.c.
85994         * lib/listen.c: New file, based on winsock.c.
85995         * lib/recv.c: New file, based on winsock.c.
85996         * lib/recvfrom.c: New file, based on winsock.c.
85997         * lib/send.c: New file, based on winsock.c.
85998         * lib/sendto.c: New file, based on winsock.c.
85999         * lib/setsockopt.c: New file, based on winsock.c.
86000         * lib/shutdown.c: New file, based on winsock.c.
86001         * lib/socket.c: New file, based on winsock.c.
86002         * lib/w32sock.h: New file, based on winsock.c.
86003         * lib/winsock.c: Remove file.
86004         * modules/accept: Likewise.
86005         * modules/bind: Likewise.
86006         * modules/connect: Likewise.
86007         * modules/getpeername: Likewise.
86008         * modules/getsockname: Likewise.
86009         * modules/getsockopt: Likewise.
86010         * modules/ioctl: Likewise.
86011         * modules/listen: Likewise.
86012         * modules/recv: Likewise.
86013         * modules/recvfrom: Likewise.
86014         * modules/send: Likewise.
86015         * modules/sendto: Likewise.
86016         * modules/setsockopt: Likewise.
86017         * modules/shutdown: Likewise.
86018         * modules/socket: Use socket.c instead of winsock.c.
86019         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
86020         * doc/posix-functions/accept.texi: Doc fix.
86021         * doc/posix-functions/bind.texi: Doc fix.
86022         * doc/posix-functions/close.texi: Doc fix.
86023         * doc/posix-functions/connect.texi: Doc fix.
86024         * doc/posix-functions/getpeername.texi: Doc fix.
86025         * doc/posix-functions/getsockname.texi: Doc fix.
86026         * doc/posix-functions/getsockopt.texi: Doc fix.
86027         * doc/posix-functions/ioctl.texi: Doc fix.
86028         * doc/posix-functions/listen.texi: Doc fix.
86029         * doc/posix-functions/recv.texi: Doc fix.
86030         * doc/posix-functions/recvfrom.texi: Doc fix.
86031         * doc/posix-functions/send.texi: Doc fix.
86032         * doc/posix-functions/sendto.texi: Doc fix.
86033         * doc/posix-functions/setsockopt.texi: Doc fix.
86034         * doc/posix-functions/shutdown.texi: Doc fix.
86035         * doc/posix-functions/socket.texi: Doc fix.
86037 2008-10-20  Bruno Haible  <bruno@clisp.org>
86039         Take into account the role of SIGABRT_COMPAT on Windows 2008.
86040         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
86041         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
86042         as an alias for SIGABRT.
86043         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
86044         (sigaction): Map it to SIGABRT.
86045         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
86047 2008-10-20  Bruno Haible  <bruno@clisp.org>
86049         * lib/fts.c: Don't include lstat.h.
86050         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
86052         Move the lstat() declaration to <sys/stat.h>.
86053         * lib/lstat.h: Remove file.
86054         * lib/sys_stat.in.h: Add special invocation convention.
86055         (lstat): New declaration.
86056         * lib/lstat.c (orig_lstat): New function.
86057         (rpl_lstat): Use orig_lstat instead of lstat.
86058         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
86059         AC_C_INLINE. Set REPLACE_LSTAT.
86060         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
86061         and REPLACE_LSTAT.
86062         * modules/lstat (Files): Remove lib/lstat.h.
86063         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
86064         (Include): Specify <sys/stat.h> instead of lstat.h.
86065         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
86066         REPLACE_LSTAT.
86067         * NEWS: Mention the change.
86069 2008-10-20  Bruno Haible  <bruno@clisp.org>
86071         * modules/posix_spawn-tests: New file.
86072         * tests/test-posix_spawn3.c: New file.
86074 2008-10-20  Bruno Haible  <bruno@clisp.org>
86076         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
86077         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
86078         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
86079         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
86080         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
86082 2008-10-20  Bruno Haible  <bruno@clisp.org>
86084         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
86085         of posix_spawn on AIX 5.3.
86087 2008-10-20  Bruno Haible  <bruno@clisp.org>
86089         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
86091 2008-10-20  Bruno Haible  <bruno@clisp.org>
86093         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
86094         of AC_LANG_PROGRAM.
86096 2008-10-20  Simon Josefsson  <simon@josefsson.org>
86098         * lib/netdb.in.h: Don't define GNU specific constants until they
86099         are supported or needed.  Reported by Bruno Haible
86100         <bruno@clisp.org>.
86102 2008-10-20  Simon Josefsson  <simon@josefsson.org>
86104         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
86106 2008-10-20  Simon Josefsson  <simon@josefsson.org>
86108         * lib/getaddrinfo.h: Remove file.
86109         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
86110         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
86111         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
86112         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
86113         * modules/netdb: Substitute GNULIB_GETADDRINFO.
86114         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
86115         * tests/test-getaddrinfo.c: Likewise.
86116         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
86117         * NEWS: Mention change.
86119 2008-10-19  Bruno Haible  <bruno@clisp.org>
86121         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
86123 2008-10-19  Bruno Haible  <bruno@clisp.org>
86125         * lib/wait-process.c: Include simply <sys/wait.h>.
86126         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
86127         WIFSTOPPED): Remove fallback definitions.
86128         * modules/wait-process (Depends-on): Add sys_wait.
86130         New module 'sys_wait'.
86131         * modules/sys_wait: New file.
86132         * lib/sys_wait.in.h: New file, partially copied from
86133         lib/wait-process.c.
86134         * m4/sys_wait_h.m4: New file.
86135         * doc/posix-headers/sys_wait.texi: Mention the new module.
86137 2008-10-19  Bruno Haible  <bruno@clisp.org>
86139         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
86141 2008-10-19  Bruno Haible  <bruno@clisp.org>
86143         Assume that waitpid() fills an 'int' status, not a 'union wait'.
86144         * lib/wait-process.c (WAIT_T): Remove type.
86145         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
86146         (wait_subprocess): Update.
86148 2008-10-19  Bruno Haible  <bruno@clisp.org>
86150         New module 'atoll'.
86151         * modules/atoll: New file.
86152         * lib/stdlib.in.h (atoll): New declaration.
86153         * lib/atoll.c: New file, from glibc with modifications.
86154         * m4/atoll.m4: New file.
86155         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
86156         HAVE_ATOLL.
86157         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
86158         * doc/posix-functions/atoll.texi: Mention the new module.
86160 2008-10-19  Bruno Haible  <bruno@clisp.org>
86162         Add strtoull() declaration to <stdlib.h>.
86163         * lib/stdlib.in.h (strtoull): New declaration.
86164         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
86165         Set HAVE_STRTOULL.
86166         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
86167         HAVE_STRTOULL.
86168         * modules/strtoull (Depends-on): Add stdlib.
86169         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
86170         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
86171         HAVE_STRTOULL.
86173 2008-10-19  Bruno Haible  <bruno@clisp.org>
86175         Add strtoll() declaration to <stdlib.h>.
86176         * lib/stdlib.in.h (strtoll): New declaration.
86177         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
86178         Set HAVE_STRTOLL.
86179         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
86180         HAVE_STRTOLL.
86181         * modules/strtoll (Depends-on): Add stdlib.
86182         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
86183         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
86185 2008-10-19  Bruno Haible  <bruno@clisp.org>
86187         * modules/bcopy (Depends-on): Add strings.
86188         (Include): Specify <strings.h>.
86190 2008-10-19  Bruno Haible  <bruno@clisp.org>
86192         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
86194 2008-10-19  Bruno Haible  <bruno@clisp.org>
86196         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
86197         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
86198         mingw.
86200 2008-10-19  Bruno Haible  <bruno@clisp.org>
86202         * lib/atanl.c: Don't include isnanl.h.
86203         * lib/cosl.c: Likewise.
86204         * lib/ldexpl.c: Likewise.
86205         * lib/logl.c: Likewise.
86206         * lib/sinl.c: Likewise.
86207         * lib/sqrtl.c: Likewise.
86208         * lib/tanl.c: Likewise.
86210         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
86211         * lib/isnanf.h: Remove file.
86212         * lib/isnand.h: Remove file.
86213         * lib/isnanl.h: Remove file.
86214         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
86215         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
86216         macros.
86217         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
86218         HAVE_ISNANF, don't define it as a C macro.
86219         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
86220         HAVE_ISNAND, don't define it as a C macro.
86221         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
86222         HAVE_ISNANL, don't define it as a C macro.
86223         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
86224         HAVE_ISNAN[FDL].
86225         * modules/isnanf (Files): Remove lib/isnanf.h.
86226         (Depends-on): Add math.
86227         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
86228         (Include): Specify <math.h> instead of isnanf.h.
86229         * modules/isnand (Files): Remove lib/isnand.h.
86230         (Depends-on): Add math.
86231         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
86232         (Include): Specify <math.h> instead of isnand.h.
86233         * modules/isnanl (Files): Remove lib/isnanl.h.
86234         (Depends-on): Add math.
86235         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
86236         (Include): Specify <math.h> instead of isnanl.h.
86237         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
86238         HAVE_ISNAN[FDL].
86239         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
86240         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
86241         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
86242         * NEWS: Mention the change.
86244 2008-10-18  Bruno Haible  <bruno@clisp.org>
86246         Add getusershell(), setusershell(), endusershell() declarations to
86247         <unistd.h>.
86248         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
86249         declarations.
86250         * lib/getusershell.c: Include unistd.h.
86251         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
86252         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
86253         HAVE_GETUSERSHELL.
86254         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
86255         and HAVE_GETUSERSHELL.
86256         * modules/getusershell (Depends-on): Add unistd, extensions.
86257         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
86258         (Include): Specify <unistd.h>.
86259         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
86260         HAVE_GETUSERSHELL.
86262 2008-10-18  Bruno Haible  <bruno@clisp.org>
86264         Add a getloadavg() declaration to <stdlib.h>.
86265         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
86266         getloadavg declaration.
86267         (getloadavg): New declaration.
86268         * lib/getloadavg.c: Include <stdlib.h> first.
86269         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
86270         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
86271         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
86272         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
86273         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
86274         * modules/getloadavg (Depends-on): Add stdlib, extensions.
86275         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
86276         (Include): Specify <stdlib.h>.
86277         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
86278         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
86280 2008-10-18  Bruno Haible  <bruno@clisp.org>
86282         * lib/dirchownmod.c: Don't include lchmod.h.
86284         Move the lchmod() declaration to <sys/stat.h>.
86285         * lib/lchmod.h: Remove file.
86286         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
86287         (lchmod): New declaration, moved here from lib/lchown.h.
86288         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
86289         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
86290         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
86291         and HAVE_LCHMOD.
86292         * modules/lchmod (Files): Remove lib/lchmod.h.
86293         (Depends-on): Add sys_stat, extensions.
86294         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
86295         (Include): Specify <sys/stat.h> instead of lchmod.h.
86296         * modules/sys_stat (Depends-on): Add link-warning.
86297         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
86298         definition of GL_LINK_WARNING.
86299         * NEWS: Mention the change.
86301 2008-10-18  Bruno Haible  <bruno@clisp.org>
86303         * lib/fchdir.c: Don't include dirfd.h.
86304         * lib/fts.c: Likewise.
86305         * lib/getcwd.c: Likewise.
86306         * lib/glob.c: Likewise.
86308         Move the dirfd() declaration to <dirent.h>.
86309         * lib/dirfd.h: Remove file.
86310         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
86311         (dirfd): New declaration.
86312         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
86313         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
86314         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
86315         HAVE_DECL_DIRFD.
86316         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
86317         HAVE_DECL_DIRFD.
86318         * modules/dirfd (Files): Remove lib/dirfd.h.
86319         (Depends-on): Add dirent, extensions.
86320         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
86321         (Include): Specify <dirent.h> instead of dirfd.h.
86322         * modules/dirent (Depends-on): Add link-warning.
86323         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
86324         definition of GL_LINK_WARNING.
86325         * NEWS: Mention the change.
86327 2008-10-18  Bruno Haible  <bruno@clisp.org>
86329         Move the euidaccess() declaration to <unistd.h>.
86330         * lib/euidaccess.h: Remove file.
86331         * lib/unistd.in.h (euidaccess): New declaration.
86332         * lib/euidaccess.c: Don't include euidaccess.h.
86333         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
86334         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
86335         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
86336         and HAVE_EUIDACCESS.
86337         * modules/euidaccess (Files): Remove lib/euidaccess.h.
86338         (Depends-on): Add unistd.
86339         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
86340         (Include): Specify <unistd.h> instead of euidaccess.h.
86341         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
86342         HAVE_EUIDACCESS.
86343         * NEWS: Mention the change.
86345 2008-10-18  Bruno Haible  <bruno@clisp.org>
86347         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
86349         Move the getdomainname() declaration to <unistd.h>.
86350         * lib/getdomainname.h: Remove file.
86351         * lib/unistd.in.h (getdomainname): New declaration.
86352         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
86353         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
86354         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
86355         HAVE_GETDOMAINNAME.
86356         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
86357         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
86358         * modules/getdomainname (Files): Remove lib/getdomainname.h.
86359         (Depends-on): Add unistd, extensions.
86360         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
86361         (Includes): Specify <unistd.h> instead of getdomainname.h.
86362         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
86363         HAVE_GETDOMAINNAME.
86364         * NEWS: Mention the change.
86366 2008-10-18  Bruno Haible  <bruno@clisp.org>
86368         * modules/dirent: New file.
86369         * m4/dirent_h.m4: New file.
86370         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
86371         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
86372         * modules/fchdir (Files): Remove lib/dirent.in.h.
86373         (Depends-on): Add dirent.
86374         (Makefile.am): Move rules to modules/dirent.
86375         * doc/posix-headers/dirent.texi: Mention the new module.
86377 2008-10-18  Bruno Haible  <bruno@clisp.org>
86379         Avoid -Wunused-parameter warnings in public gnulib header files.
86380         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
86381         macro.
86382         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
86384 2008-10-18  Bruno Haible  <bruno@clisp.org>
86386         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
86387         * doc/glibc-functions/error.texi: Mention the module 'error'.
86388         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
86389         * doc/glibc-functions/getdomainname.texi: Mention the module
86390         'getdomainname'.
86391         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
86392         * doc/glibc-functions/getpagesize.texi: Mention the module
86393         'getpagesize'.
86394         * doc/glibc-functions/getusershell.texi: Mention the module
86395         'getusershell'.
86396         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
86397         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
86398         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
86399         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
86400         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
86401         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
86402         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
86403         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
86404         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
86405         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
86406         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
86407         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
86408         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
86409         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
86411 2008-10-17  Bruno Haible  <bruno@clisp.org>
86413         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
86414         HP-UX and IRIX, use -0.0L.
86415         * tests/test-ceill.c (minus_zero): Likewise.
86416         * tests/test-floorl.c (minus_zero): Likewise.
86417         * tests/test-frexpl.c (minus_zero): Likewise.
86418         * tests/test-isnan.c (minus_zerol): Likewise.
86419         * tests/test-isnanl.h (minus_zero): Likewise.
86420         * tests/test-ldexpl.c (minus_zero): Likewise.
86421         * tests/test-roundl.c (minus_zero): Likewise.
86422         * tests/test-signbit.c (minus_zerol): Likewise.
86423         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
86424         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
86425         * tests/test-truncl.c (minus_zero): Likewise.
86426         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
86427         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
86428         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
86429         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
86431 2008-10-17  Bruno Haible  <bruno@clisp.org>
86433         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
86434         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
86435         that it gets activated only for gcc >= 3.0.
86436         * lib/dirent.in.h: Likewise.
86437         * lib/errno.in.h: Likewise.
86438         * lib/fcntl.in.h: Likewise.
86439         * lib/float.in.h: Likewise.
86440         * lib/iconv.in.h: Likewise.
86441         * lib/inttypes.in.h: Likewise.
86442         * lib/locale.in.h: Likewise.
86443         * lib/math.in.h: Likewise.
86444         * lib/netdb.in.h: Likewise.
86445         * lib/netinet_in.in.h: Likewise.
86446         * lib/search.in.h: Likewise.
86447         * lib/signal.in.h: Likewise.
86448         * lib/spawn.in.h: Likewise.
86449         * lib/stdarg.in.h: Likewise.
86450         * lib/stdint.in.h: Likewise.
86451         * lib/stdio.in.h: Likewise.
86452         * lib/stdlib.in.h: Likewise.
86453         * lib/string.in.h: Likewise.
86454         * lib/strings.in.h: Likewise.
86455         * lib/sys_file.in.h: Likewise.
86456         * lib/sys_ioctl.in.h: Likewise.
86457         * lib/sys_select.in.h: Likewise.
86458         * lib/sys_socket.in.h: Likewise.
86459         * lib/sys_stat.in.h: Likewise.
86460         * lib/sys_time.in.h: Likewise.
86461         * lib/sysexits.in.h: Likewise.
86462         * lib/time.in.h: Likewise.
86463         * lib/unistd.in.h: Likewise.
86464         * lib/wchar.in.h: Likewise.
86465         * lib/wctype.in.h: Likewise.
86466         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
86468 2008-10-17  Jim Meyering  <meyering@redhat.com>
86470         ignore-value: don't depend on inline module
86471         * modules/ignore-value (Depends-on): Remove 'inline'.
86472         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
86473         Suggestion from Bruno Haible.
86475 2008-10-17  Bruno Haible  <bruno@clisp.org>
86477         New implementation of condition variables for Win32.
86478         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
86479         (gl_linked_waitqueue_t): New type.
86480         (gl_cond_t): Use it.
86481         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
86482         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
86483         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
86484         (glthread_cond_init_func, glthread_cond_wait_func,
86485         glthread_cond_timedwait_func, glthread_cond_signal_func,
86486         glthread_cond_broadcast_func, glthread_cond_destroy_func):
86487         Reimplemented on the basis of gl_linked_waitqueue_t.
86488         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
86489         gl_waitqueue_t.
86490         (gl_rwlock_t): Update.
86491         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
86493 2008-10-17  Simon Josefsson  <simon@josefsson.org>
86495         * modules/recvfrom (Depends-on): Add dependency on getpeername.
86496         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
86498 2008-10-17  Jim Meyering  <meyering@redhat.com>
86500         ignore-value: new module
86501         * modules/ignore-value: New file.
86502         * lib/ignore-value.h: New file.
86503         * MODULES.html.sh (Compiler warning management): New section,
86504         just for this module.  More to come.
86506 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
86508         open-safer.c: avoid 'signed and unsigned in conditional...' warning
86509         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
86510         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
86512 2008-10-16  Jim Meyering  <meyering@redhat.com>
86514         openat-die.c: avoid 'no previous prototype' warning
86515         * lib/openat-die.c: Include "openat.h".
86516         Reported by Reuben Thomas <rrt@sc3d.org>.
86518 2008-10-16  Simon Josefsson  <simon@josefsson.org>
86520         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
86521         * lib/netdb.in.h: Fix typo.
86522         Reported by Bruno Haible  <bruno@clisp.org>
86524         * lib/netdb.in.h: Include sys/socket.h for platforms without
86525         netdb.h, to get structures like hostent on MinGW.
86526         * modules/netdb (Depends-on): Add sys_socket.
86528 2008-10-15  Simon Josefsson  <simon@josefsson.org>
86530         * modules/netdb, modules/netdb-tests: New file.
86531         * m4/netdb_h.m4: New file.
86532         * lib/netdb.in.h: Add, currently just an empty file pending
86533         definitions.
86534         * tests/test-netdb.c: New file.
86535         * doc/posix-headers/netdb.texi: Mention that we replace it if
86536         needed.
86537         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
86538         netdb.
86540 2008-10-15  Simon Josefsson  <simon@josefsson.org>
86542         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
86543         with code.
86545 2008-10-13  Bruno Haible  <bruno@clisp.org>
86547         * lib/glthread/cond.c (glthread_cond_wait_func,
86548         glthread_cond_timedwait_func): Add a comment.
86550 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
86552         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
86553         * tests/test-select.c: Likewise,
86555 2008-10-13  Bruno Haible  <bruno@clisp.org>
86557         * lib/glthread/cond.c (glthread_cond_wait_func,
86558         glthread_cond_timedwait_func): Fix variable name.
86559         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
86561 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
86563         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
86564         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
86565         struct sockaddr.sa_len.
86566         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
86568 2008-10-13  Simon Josefsson  <simon@josefsson.org>
86570         * build-aux/pmccabe2html: Add css and css_url parameters.
86572 2008-10-12  Bruno Haible  <bruno@clisp.org>
86574         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
86575         calling aclx_get.
86576         Reported by Rainer Tammer <tammer@tammer.net>.
86578 2008-10-12  Bruno Haible  <bruno@clisp.org>
86580         Use msvcrt aware primitives for creation/termination of Win32 threads.
86581         * lib/glthread/thread.c: Include <process.h>.
86582         (glthread_create_func): Use _beginthreadex instead of CreateThread.
86583         (wrapper_func): Update signature.
86584         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
86586 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
86587             Bruno Haible  <bruno@clisp.org>
86589         Provide a Win32 implementation of the 'cond' module.
86590         * lib/glthread/cond.h [USE_WIN32]: New implementation.
86591         * lib/glthread/cond.c (glthread_cond_init_func,
86592         glthread_cond_wait_func, glthread_cond_timedwait_func,
86593         glthread_cond_signal_func, glthread_cond_broadcast_func,
86594         glthread_cond_destroy_func) [USE_WIN32]: New functions.
86595         * modules/cond (Dependencies): Add gettimeofday.
86597 2008-10-11  Bruno Haible  <bruno@clisp.org>
86599         Make sleep work on older versions of mingw.
86600         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
86601         only whether it exists.
86602         * doc/posix-functions/sleep.texi: Mention the problem with older
86603         versions of mingw.
86605 2008-10-11  Bruno Haible  <bruno@clisp.org>
86607         New module 'shutdown'.
86608         * modules/shutdown: New file.
86609         * lib/sys_socket.in.h (shutdown): New declaration.
86610         * lib/winsock.c (shutdown): New function.
86611         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
86612         GNULIB_SHUTDOWN.
86613         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
86614         * doc/posix-functions/shutdown.texi: Document the new module.
86616 2008-10-11  Jim Meyering  <meyering@redhat.com>
86618         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
86620 2008-10-11  Bruno Haible  <bruno@clisp.org>
86622         New module 'fclose'.
86623         * modules/fclose: New file.
86624         * lib/stdio.in.h (fclose): New declaration.
86625         * lib/fclose.c: New file.
86626         * m4/fclose.m4: New file.
86627         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
86628         REPLACE_FCLOSE.
86629         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
86630         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
86631         REPLACE_FCLOSE.
86632         * modules/close (Depends-on): fclose.
86633         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
86635 2008-10-11  Bruno Haible  <bruno@clisp.org>
86637         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
86638         set errno and don't call _close.
86640 2008-10-10  Bruno Haible  <bruno@clisp.org>
86642         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
86643         ACL, not afterwards. Fixes test failure on Cygwin.
86645 2008-10-09  Ben Pfaff  <blp@gnu.org>
86647         * build-aux/announce-gen: Fix gnulib version related part of usage
86648         message.  Die with a useful error message if no tarballs are
86649         found.
86651 2008-10-10  Jim Meyering  <meyering@redhat.com>
86653         bootstrap: use git's --depth=N option only if it's supported
86654         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
86655         recognize the --depth option.  Reported by Pádraig Brady.
86657 2008-10-09  Bruno Haible  <bruno@clisp.org>
86659         New module 'ioctl'.
86660         * modules/ioctl: New file.
86661         * lib/sys_socket.in.h (ioctl): Remove declaration.
86662         * lib/winsock.c: Include <sys/ioctl.h>.
86663         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
86664         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
86665         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
86666         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
86667         * doc/posix-functions/ioctl.texi: Mention the new module.
86669 2008-10-09  Bruno Haible  <bruno@clisp.org>
86671         New module 'sys_ioctl'.
86672         * lib/sys_ioctl.in.h: New file.
86673         * m4/sys_ioctl_h.m4: New file.
86674         * modules/sys_ioctl: New file.
86675         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
86677 2008-10-09  Bruno Haible  <bruno@clisp.org>
86679         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
86680         * lib/winsock.c: Include <stdarg.h>.
86681         (rpl_ioctl): Change to second argument 'int' and then varargs.
86683 2008-10-09  Bruno Haible  <bruno@clisp.org>
86685         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
86686         when the sys_socket module is present and the system has <winsock2.h>.
86688 2008-10-09  Bruno Haible  <bruno@clisp.org>
86690         * doc/posix-functions/close.texi: Mention module 'close' instead of
86691         module 'sys_socket'.
86693 2008-10-09  Bruno Haible  <bruno@clisp.org>
86695         * doc/glibc-headers/sys_ioctl.texi: New file.
86696         * doc/gnulib.texi: Include it.
86698 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
86699             Bruno Haible  <bruno@clisp.org>
86701         Combine the two replacements of 'close'.
86702         * lib/sys_socket.in.h (close): Define to a reminder to include
86703         <unistd.h>.
86704         (_gl_close_fd_maybe_socket): New declaration.
86705         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
86706         * lib/winsock.c (close): Remove undefinition.
86707         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
86708         needed for the gnulib module 'close'.
86709         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
86710         define to an error symbol or to a warning, if suitable.
86711         * lib/close.c: Include <sys/socket.h>.
86712         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
86713         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
86714         UNISTD_H_HAVE_WINSOCK2_H.
86715         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
86716         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
86717         UNISTD_H_HAVE_WINSOCK2_H.
86718         * modules/sys_socket (Files): Add m4/unistd_h.m4.
86719         (configure.ac): Set a module indicator.
86720         (Makefile.am): Substitute GNULIB_CLOSE.
86721         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
86722         * modules/poll-tests (Depends-on): Add close.
86723         * modules/select-tests (Depends-on): Likewise.
86725 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
86726             Bruno Haible  <bruno@clisp.org>
86728         New module 'close'.
86729         * modules/close: New file.
86730         * lib/unistd.in.h (close): Move declaration out of the
86731         FCHDIR_REPLACEMENT scope.
86732         (_gl_unregister_fd): New declaration.
86733         * lib/close.c: New file.
86734         * lib/fchdir.c (rpl_close): Remove function.
86735         * m4/close.m4: New file.
86736         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
86737         close.
86738         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
86739         REPLACE_CLOSE.
86740         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
86741         REPLACE_CLOSE.
86742         * modules/fchdir (Depends-on): Add close.
86744 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
86745             Bruno Haible  <bruno@clisp.org>
86747         * lib/fcntl.in.h (open): Simplify conditionals.
86748         (_gl_register_fd): New declaration.
86749         * lib/fchdir.c (rpl_open): Remove function.
86750         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
86751         also.
86752         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
86753         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
86754         open.
86756 2008-10-09  Jim Meyering  <meyering@redhat.com>
86758         GNUmakefile: use the more name-space-friendly "_version"
86759         * top/GNUmakefile (_dummy): Update.
86760         (_version): Rename from "version".
86762 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
86763             Bruno Haible  <bruno@clisp.org>
86765         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
86766         rpl_close.
86767         (_gl_register_fd): New function, extracted from rpl_open.
86768         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
86769         (rpl_open, rpl_opendir): Use _gl_register_fd.
86771 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
86773         Fix organization of 'open' replacement.
86774         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
86775         (gl_FUNC_OPEN): Use it.
86776         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
86778 2008-10-08  Bruno Haible  <bruno@clisp.org>
86780         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
86782 2008-10-08  Simon Josefsson  <simon@josefsson.org>
86784         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
86785         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
86786         listen).
86788 2008-10-08  Eric Blake  <ebb9@byu.net>
86790         GNUmakefile: add 'make version' target
86791         * top/GNUmakefile (_curr-ver): Split version update rules...
86792         (version): ...into a target.
86794 2008-10-07  Bruno Haible  <bruno@clisp.org>
86796         Use a more portable replacement expression for -0.0L.
86797         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
86798         instead of -0.0L. Fix m4 quotation.
86800         * tests/test-signbit.c: Include <float.h>.
86801         (minus_zero): New variable.
86802         (test_signbitl): Use minus_zero instead of -zero.
86803         * modules/signbit-tests (Depends-on): Add float.
86805         * tests/test-ceill.c: Include <float.h>.
86806         (zero): Remove variable.
86807         (minus_zero): New variable.
86808         (main): Use minus_zero instead of -zero.
86809         * modules/ceill-tests (Depends-on): Add float.
86811         * tests/test-floorl.c: Include <float.h>.
86812         (zero): Remove variable.
86813         (minus_zero): New variable.
86814         (main): Use minus_zero instead of -zero.
86815         * modules/floorl-tests (Depends-on): Add float.
86817         * tests/test-roundl.c: Include <float.h>.
86818         (zero): Remove variable.
86819         (minus_zero): New variable.
86820         (main): Use minus_zero instead of -zero.
86821         * modules/roundl-tests (Depends-on): Add float.
86823         * tests/test-truncl.c: Include <float.h>.
86824         (zero): Remove variable.
86825         (minus_zero): New variable.
86826         (main): Use minus_zero instead of -zero.
86827         * modules/truncl-tests (Depends-on): Add float.
86829         * tests/test-frexpl.c (zero): Remove variable.
86830         (minus_zero): New variable.
86831         (main): Use minus_zero instead of -zero.
86832         * modules/frexpl-tests (Depends-on): Add float.
86834         * tests/test-isnan.c (zerol): Remove variable.
86835         (minus_zerol): New variable.
86836         (test_long_double): Use minus_zerol instead of -zerol.
86837         * modules/isnan-tests (Depends-on): Add float.
86839         * tests/test-isnanl.h (zero): Remove variable.
86840         (minus_zero): New variable.
86841         (main): Use minus_zero instead of -zero.
86842         * modules/isnanl-nolibm-tests (Depends-on): Add float.
86843         * modules/isnanl-tests (Depends-on): Add float.
86845         * tests/test-ldexpl.c (zero): Remove variable.
86846         (minus_zero): New variable.
86847         (main): Use minus_zero instead of -zero.
86848         * modules/ldexpl-tests (Depends-on): Add float.
86850         * tests/test-snprintf-posix.h (zerol): Remove variable.
86851         (minus_zerol): New variable.
86852         (test_function): Use minus_zerol instead of -zerol.
86853         * modules/snprintf-posix-tests (Depends-on): Add float.
86854         * modules/vsnprintf-posix-tests (Depends-on): Add float.
86856         * tests/test-sprintf-posix.h (zerol): Remove variable.
86857         (minus_zerol): New variable.
86858         (test_function): Use minus_zerol instead of -zerol.
86859         * modules/sprintf-posix-tests (Depends-on): Add float.
86860         * modules/vsprintf-posix-tests (Depends-on): Add float.
86862         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
86863         (minus_zerol): New variable.
86864         (test_function): Use minus_zerol instead of -zerol.
86865         * modules/vasnprintf-posix-tests (Depends-on): Add float.
86867         * tests/test-vasprintf-posix.c (zerol): Remove variable.
86868         (minus_zerol): New variable.
86869         (test_function): Use minus_zerol instead of -zerol.
86870         * modules/vasprintf-posix-tests (Depends-on): Add float.
86872 2008-10-07  Simon Josefsson  <simon@josefsson.org>
86874         * MODULES.html.sh (Support for building documentation): Mention
86875         pmccabe2html.  Sort entries.
86877         Add pmccabe2html module, from gnupdf.
86878         * build-aux/pmccabe.css: New file.
86879         * build-aux/pmccabe2html: New file.
86880         * m4/pmccabe2html.m4: New file.
86881         * modules/pmccabe2html: New file.
86883 2008-10-07  Richard W.M. Jones  <rjones@redhat.com>
86885         flock: new module
86886         * MODULES.html.sh: Add to list of modules.
86887         * lib/flock.c: flock implementation for Windows and Unix systems
86888         which have fcntl.
86889         * doc/glibc-functions/flock.texi: Update documentation.
86890         * lib/sys_file.in.h: <sys/file.h> header file.
86891         * m4/flock.m4: M4 macros.
86892         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
86893         * modules/flock: flock module.
86894         * modules/flock-tests: flock tests module.
86895         * modules/sys_file: sys/file.h module.
86896         * tests/test-flock.c: test suite for flock.
86898 2008-10-06  Jim Meyering  <meyering@redhat.com>
86900         bootstrap: check for LT_INIT more portably still ;-)
86901         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
86902         Spotted by Bruno Haible.
86904 2008-10-06  Eric Blake  <ebb9@byu.net>
86906         test-signbit: avoid tripping Irix cc bug on -0.0L
86907         * tests/test-signbit.c (minus_zerol): Delete, and replace with
86908         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
86909         entire testsuite consistent and avoids an Irix 6.2 bug.
86911 2008-10-05  Bruno Haible  <bruno@clisp.org>
86912             Jim Meyering  <jim@meyering.net>
86914         Add an option for ignoring EPIPE during close_stdout.
86915         * lib/closeout.h: Include <stdbool.h>.
86916         (close_stdout_set_ignore_EPIPE): New declaration.
86917         * lib/closeout.c: Include <stdbool.h>.
86918         (ignore_EPIPE): New variable.
86919         (close_stdout_set_ignore_EPIPE): New function.
86920         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
86921         * lib/close-stream.c (close_stream): Mention the possible EPIPE
86922         failure.
86923         * modules/closeout (Depends-on): Add stdbool.
86925 2008-10-05  Bruno Haible  <bruno@clisp.org>
86927         * modules/accept: New file.
86928         * modules/bind: New file.
86929         * modules/connect: New file.
86930         * modules/getpeername: New file.
86931         * modules/getsockname: New file.
86932         * modules/getsockopt: New file.
86933         * modules/listen: New file.
86934         * modules/recv: New file.
86935         * modules/recvfrom: New file.
86936         * modules/send: New file.
86937         * modules/sendto: New file.
86938         * modules/setsockopt: New file.
86939         * modules/socket: New file.
86940         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
86941         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
86942         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
86943         the particular module is requested. Add a link warning when the
86944         particular module is not requested.
86945         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
86946         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
86947         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
86948         the particular module is requested.
86949         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
86950         gl_SYS_SOCKET_H_DEFAULTS): New macros.
86951         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
86952         * modules/sys_socket (Depends-on): Add link-warning.
86953         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
86954         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
86955         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
86956         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
86957         GL_LINK_WARNING.
86958         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
86959         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
86960         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
86961         * doc/posix-functions/getpeername.texi: Mention the new module
86962         'getpeername'.
86963         * doc/posix-functions/getsockname.texi: Mention the new module
86964         'getsockname'.
86965         * doc/posix-functions/getsockopt.texi: Mention the new module
86966         'getsockopt'.
86967         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
86968         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
86969         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
86970         * doc/posix-functions/send.texi: Mention the new module 'send'.
86971         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
86972         * doc/posix-functions/setsockopt.texi: Mention the new module
86973         'setsockopt'.
86974         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
86975         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
86976         listen, connect, accept.
86977         * modules/select-tests (Depends-on): Likewise.
86979 2008-10-05  Bruno Haible  <bruno@clisp.org>
86981         * lib/winsock.c (strerror): Remove unused #undef.
86982         (rpl_close): Remove unused local variable.
86984         * modules/sys_socket (Depends-on); Add errno.
86986 2008-10-05  Bruno Haible  <bruno@clisp.org>
86988         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
86989         (select): Add a link warning when the 'select' module is not used.
86990         * modules/sys_select (Depends-on): Add link-warning.
86991         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
86992         Suggested by Paolo Bonzini.
86994 2008-10-05  Jim Meyering  <meyering@redhat.com>
86996         bootstrap: check for LT_INIT more portably
86997         * build-aux/bootstrap: Avoid using grep -E, since it's not
86998         portable enough.  Suggestion from Bruno Haible.
87000 2008-10-05  Bruno Haible  <bruno@clisp.org>
87002         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
87003         as being fixed by gnulib.
87005 2008-10-05  Bruno Haible  <bruno@clisp.org>
87007         * modules/select-tests: New file, mostly copied from
87008         modules/sys_select-tests.
87009         * tests/test-select.c: New file, mostly copied from
87010         tests/test-sys_select.c.
87011         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
87012         * modules/sys_select-tests (Depends-on): Remove all dependencies.
87013         (Makefile.am): Remove test_sys_select_LDADD.
87015         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
87016         to an undefined symbol, for an error message.
87017         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
87018         (gl_SYS_SELECT_H_DEFAULTS): New macro.
87019         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
87020         winsock-select.c here.
87021         * modules/sys_select (Files): Remove lib/winsock-select.c.
87022         (Depends-on): Remove alloca.
87023         (Makefile.am): Substitute GNULIB_SELECT.
87024         * modules/select: New file.
87025         * doc/posix-functions/select.texi: Update.
87027 2008-10-05  Bruno Haible  <bruno@clisp.org>
87029         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
87030         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
87031         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
87032         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
87033         getdtablesize.
87034         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
87035         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
87037 2008-10-05  Bruno Haible  <bruno@clisp.org>
87039         * modules/getdtablesize-tests: New file.
87040         * tests/test-getdtablesize.c: New file.
87042         New module 'getdtablesize'.
87043         * lib/unistd.in.h (getdtablesize): New declaration.
87044         * lib/getdtablesize.c: New file.
87045         * m4/getdtablesize.m4: New file.
87046         * modules/getdtablesize: New file.
87047         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
87048         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
87049         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
87050         HAVE_GETDTABLESIZE.
87051         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
87053 2008-10-05  Bruno Haible  <bruno@clisp.org>
87055         * modules/sched (Makefile.am): Fix typo.
87056         Reported by Simon Josefsson.
87058 2008-10-05  Jim Meyering  <meyering@redhat.com>
87060         bootstrap: check for LT_INIT, too
87061         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
87062         are deprecated.  Suggestion from Ralf Wildenhues.
87064 2008-10-05  Bruno Haible  <bruno@clisp.org>
87066         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
87067         overriding them by ours.
87068         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
87070 2008-10-05  Jim Meyering  <meyering@redhat.com>
87072         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
87073         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
87074         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
87076 2008-10-04  Bruno Haible  <bruno@clisp.org>
87078         * modules/dup2 (License): Change to LGPLv2+.
87079         * modules/sleep (License): Likewise.
87080         * modules/perror (License): Likewise.
87081         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
87082         Blake.
87083         * modules/signal (License): Likewise.
87084         * modules/sigprocmask (License): Likewise.
87085         * modules/raise (License): Change to LGPLv2+, with approval by Jim
87086         Meyering.
87088 2008-10-04  Bruno Haible  <bruno@clisp.org>
87090         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
87091         Reported by Rainer Tammer <tammer@tammer.net>.
87093 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
87094             Bruno Haible  <bruno@clisp.org>
87096         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
87097         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
87098         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
87100 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
87102         filevercmp: new module
87103         * lib/filevercmp.h: New function filevercmp comparing version strings.
87104         * lib/filevercmp.c: Implementation of filevercmp function.
87105         * modules/filevercmp: Module metadata.
87106         * tests/test-filevercmp.c: Unit test for new module.
87107         * modules/filevercmp-tests: Unit test metadata.
87108         * MODULES.html.sh: Add filevercmp module.
87110 2008-10-03  Bruno Haible  <bruno@clisp.org>
87112         * lib/c-ctype.h: Add comment.
87113         Reported by Jim Meyering.
87115 2008-10-02  Bruno Haible  <bruno@clisp.org>
87117         * modules/posix_spawn-internal (Depends-on): Add 'open'.
87119 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
87121         * build-aux/bootstrap: Allow renaming bootstrap, and change the
87122         name of bootstrap.conf accordingly.
87124 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
87126         * build-aux/bootstrap: Install git-merge-changelog configuration
87127         items into .gitconfig if needed.
87129 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
87131         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
87132         git repository, and initialize/update it accordingly.
87134 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
87136         * modules/fsync-tests: New file.
87137         * tests/test-fsync.c: New file.
87139         New module 'fsync'.
87140         * lib/fsync.c: New file.
87141         * m4/fsync.m4: New file.
87142         * modules/fsync: New file.
87143         * lib/unistd.in.h (fsync): New declaration.
87144         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
87145         GNULIB_FSYNC and HAVE_FSYNC.
87146         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
87147         * MODULES.html.sh (posix_functions): Add fsync.
87148         * doc/posix-functions/fsync.texi: Mention the new module.
87150 2008-10-02  Jim Meyering  <meyering@redhat.com>
87152         fts.c: sync with similar code from coreutils' remove.c
87153         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
87154         Guard also with "#if defined __linux__", since for now at least,
87155         this code is Linux-kernel-specific.
87157 2008-10-02  Jim Meyering  <meyering@redhat.com>
87159         fts: bug fixes
87160         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
87161         Include <sys/vfs.h>, not <sys/statfs.h>.
87163         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
87164         Include <sys/vfs.h>, not <sys/statfs.h>.
87166 2008-10-01  Bruno Haible  <bruno@clisp.org>
87168         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
87169         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
87170         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
87171         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
87172         * doc/posix-functions/posix_spawnp.texi: Likewise.
87173         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
87174         whether posix_spawn actually works.
87175         * m4/pipe.m4 (gl_PIPE): Likewise.
87176         * modules/execute (Files): Add m4/posix_spawn.m4.
87177         * modules/pipe (Files): Add m4/posix_spawn.m4.
87178         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
87180 2008-10-01  Jim Meyering  <meyering@redhat.com>
87182         remove trailing spaces
87183         * NEWS: Likewise.
87184         * lib/poll.c (poll): Likewise.
87185         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
87186         * lib/winsock.c (rpl_close): Likewise.
87187         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
87188         * modules/yield: Likewise.
87189         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
87190         * tests/test-sys_select.c (connect_to_socket): Likewise.
87192         fts.c: adjust a new interface to be more generally useful
87193         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
87194         (fts_build): Adjust caller.
87196 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
87198         * modules/cond-tests: New file.
87199         * tests/test-cond.c: New file.
87201 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
87202             Bruno Haible  <bruno@clisp.org>
87204         * modules/cond (Dependencies): Add errno, time.
87205         * lib/glthread/cond.h: Include <time.h>.
87206         (gl_cond_define, gl_cond_define_initialized): Use the same definition
87207         across platforms.
87209 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
87210             Bruno Haible  <bruno@clisp.org>
87212         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
87214 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
87215             Bruno Haible  <bruno@clisp.org>
87217         * modules/tls-tests (Depends-on): Add thread, yield.
87218         (configure.ac): Remove all checks.
87219         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
87220         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
87221         gl_thread_self): Remove definitions. Include glthread/thread.h and
87222         glthread/yield.h instead.
87223         (test_tls): Pass an additional NULL argument to gl_thread_join.
87225 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
87226             Bruno Haible  <bruno@clisp.org>
87228         * modules/lock-tests (Depends-on): Add thread, yield.
87229         (configure.ac): Remove all checks.
87230         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
87231         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
87232         gl_thread_self): Remove definitions. Include glthread/thread.h and
87233         glthread/yield.h instead.
87234         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
87235         additional NULL argument to gl_thread_join.
87237 2008-09-30  Bruno Haible  <bruno@clisp.org>
87239         Fix the Win32 implementation of the 'thread' module.
87240         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
87241         pointer type.
87242         (gl_thread_self): Invoke gl_thread_self_func.
87243         (gl_thread_self_func): New declaration.
87244         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
87245         (do_init_self_key, init_self_key): New functions.
87246         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
87247         Remove some fields.
87248         (running_threads, running_lock): Remove variables.
87249         (get_current_thread_handle): New function.
87250         (gl_thread_self_func, wrapper_func, glthread_create_func,
87251         glthread_join_func, gl_thread_exit_func): Largely rewritten and
87252         simplified.
87254 2008-09-30  Bruno Haible  <bruno@clisp.org>
87256         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
87257         files.
87259 2008-09-30  Jim Meyering  <meyering@redhat.com>
87261         fts.m4: correct the test for statfs.f_type
87262         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
87263         when checking for statfs.f_type.
87265 2008-09-15  Simon Josefsson  <simon@josefsson.org>
87267         tests: avoid some compiler warnings
87268         * tests/test-memchr.c (main): Pass NULL indirectly.
87269         * tests/test-getdate.c (main): Remove unused variable 'ret'.
87271 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
87273         getdate.y: disallow countable dayshifts like "4 yesterday ago"
87274         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
87275         exactly specified dayshifts.
87276         (dayshift): New rule.
87277         (rel): Add dayshift.
87278         (relative_time_table) [tomorrow, yesterday, today, now]:
87279         Use tDAY_SHIFT in place of tDAY_UNIT.
87280         * tests/test-getdate.c: Add tests for now-disallowed countable
87281         dayshifts, e.g., "4 yesterday ago".
87283 2008-09-29  Bruno Haible  <bruno@clisp.org>
87285         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
87286         * tests/test-posix_spawn1.in.sh: Renamed from
87287         tests/test-posix_spawn.in.sh.
87288         * tests/test-posix_spawn2.c: New file.
87289         * tests/test-posix_spawn2.in.sh: New file.
87290         * modules/posix_spawnp-tests (Files): Update.
87291         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
87293 2008-09-29  Bruno Haible  <bruno@clisp.org>
87295         Propagate effects of putenv/setenv/unsetenv to child processes.
87296         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
87297         * lib/pipe.c (create_pipe): Likewise.
87299 2008-09-29  Bruno Haible  <bruno@clisp.org>
87301         Enable use of shell scripts as executables in mingw.
87302         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
87303         run the program as a shell script.
87304         * lib/pipe.c (create_pipe): Likewise.
87305         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
87306         resulting array.
87308 2008-09-29  Eric Blake  <ebb9@byu.net>
87310         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
87312 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
87314         * doc/posix-functions/accept.texi: Update mingw problems.
87315         * doc/posix-functions/bind.texi: Update mingw problems.
87316         * doc/posix-functions/close.texi: Update mingw problems.
87317         * doc/posix-functions/connect.texi: Update mingw problems.
87318         * doc/posix-functions/getpeername.texi: Update mingw problems.
87319         * doc/posix-functions/getsockname.texi: Update mingw problems.
87320         * doc/posix-functions/getsockopt.texi: Update mingw problems.
87321         * doc/posix-functions/ioctl.texi: Update mingw problems.
87322         * doc/posix-functions/listen.texi: Update mingw problems.
87323         * doc/posix-functions/recv.texi: Update mingw problems.
87324         * doc/posix-functions/recvfrom.texi: Update mingw problems.
87325         * doc/posix-functions/select.texi: Update mingw problems.
87326         * doc/posix-functions/send.texi: Update mingw problems.
87327         * doc/posix-functions/sendto.texi: Update mingw problems.
87328         * doc/posix-functions/setsockopt.texi: Update mingw problems.
87329         * doc/posix-functions/socket.texi: Update mingw problems.
87331 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
87332             Bruno Haible  <bruno@clisp.org>
87334         * lib/sys_select.in.h: Include sys/time.h.
87335         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
87336         * modules/sys_select: Depend on sys_time.
87337         * tests/test-sys_select.c: Test that sys/select.h defines struct
87338         timeval fully.
87340 2008-09-29  Bruno Haible  <bruno@clisp.org>
87342         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
87343         * lib/sys_select.in.h: Likewise.
87345 2008-09-29  Bruno Haible  <bruno@clisp.org>
87347         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
87349 2008-09-29  Bruno Haible  <bruno@clisp.org>
87351         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
87352         Set LIBSOCKET instead of augmenting LIBS.
87353         * modules/sockets (Link): New section.
87354         * modules/sockets-tests (test_sockets_LDADD): New variable.
87355         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
87356         * modules/poll-tests (test_poll_LDADD): New variable.
87357         * NEWS: Document the change.
87359 2008-09-29  Bruno Haible  <bruno@clisp.org>
87361         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
87362         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
87363         ARPA_INET_H directly.
87364         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
87366 2008-09-28  Bruno Haible  <bruno@clisp.org>
87368         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
87369         from gl_HEADER_SYS_SOCKET.
87370         (gl_HEADER_SYS_SOCKET): Invoke it.
87371         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
87373 2008-09-28  Bruno Haible  <bruno@clisp.org>
87375         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
87376         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
87377         Needed on OSF/1 4.0.
87379 2008-09-28  Bruno Haible  <bruno@clisp.org>
87381         Override open more carefully.
87382         * lib/open.c (orig_open): New function.
87383         (rpl_open): Use orig_open instead of open.
87384         * lib/fcntl.in.h: Add special invocation convention.
87385         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
87386         (gl_FUNC_OPEN): Invoke it.
87388         Override freopen more carefully.
87389         * lib/freopen.c (orig_freopen): New function.
87390         (rpl_freopen): Use orig_freopen instead of freopen.
87391         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
87392         (gl_FUNC_FREOPEN): Invoke it.
87394         Override fopen more carefully.
87395         * lib/fopen.c (orig_fopen): New function.
87396         (rpl_fopen): Use orig_fopen instead of fopen.
87397         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
87398         (gl_FUNC_FOPEN): Invoke it.
87399         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
87401 2008-09-28  Bruno Haible  <bruno@clisp.org>
87403         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
87404         SIGPIPE.
87406 2008-09-28  Bruno Haible  <bruno@clisp.org>
87408         * tests/test-sigaction.c (handler, main): Disable the check whether
87409         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
87410         glibc systems with LinuxThreads.
87412 2008-09-28  Bruno Haible  <bruno@clisp.org>
87414         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
87416         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
87417         with AIX xlc.
87418         * lib/fcntl.in.h (open): Likewise.
87419         Reported by Rainer Tammer <tammer@tammer.net>.
87421 2008-09-28  Bruno Haible  <bruno@clisp.org>
87423         * modules/posix_spawnp-tests: New file.
87424         * tests/test-posix_spawn.c: New file.
87425         * tests/test-posix_spawn.in.sh: New file.
87427         New module 'posix_spawnp'.
87428         * modules/posix_spawnp: New file.
87429         * lib/spawnp.c: New file, from GNU libc with modifications.
87430         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
87432         New module 'posix_spawn'.
87433         * modules/posix_spawn: New file.
87434         * lib/spawn.c: New file, from GNU libc with modifications.
87435         * doc/posix-functions/posix_spawn.texi: Mention the new module.
87437         New module 'posix_spawnattr_destroy'.
87438         * modules/posix_spawnattr_destroy: New file.
87439         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
87440         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
87441         module.
87443         New module 'posix_spawnattr_setsigmask'.
87444         * modules/posix_spawnattr_setsigmask: New file.
87445         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
87446         modifications.
87447         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
87448         new module.
87450         New module 'posix_spawnattr_getsigmask'.
87451         * modules/posix_spawnattr_getsigmask: New file.
87452         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
87453         modifications.
87454         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
87455         new module.
87457         New module 'posix_spawnattr_setsigdefault'.
87458         * modules/posix_spawnattr_setsigdefault: New file.
87459         * lib/spawnattr_setdefault.c: New file, from GNU libc with
87460         modifications.
87461         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
87462         new module.
87464         New module 'posix_spawnattr_getsigdefault'.
87465         * modules/posix_spawnattr_getsigdefault: New file.
87466         * lib/spawnattr_getdefault.c: New file, from GNU libc with
87467         modifications.
87468         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
87469         new module.
87471         New module 'posix_spawnattr_setschedpolicy'.
87472         * modules/posix_spawnattr_setschedpolicy: New file.
87473         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
87474         modifications.
87475         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
87476         new module.
87478         New module 'posix_spawnattr_getschedpolicy'.
87479         * modules/posix_spawnattr_getschedpolicy: New file.
87480         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
87481         modifications.
87482         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
87483         new module.
87485         New module 'posix_spawnattr_setschedparam'.
87486         * modules/posix_spawnattr_setschedparam: New file.
87487         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
87488         modifications.
87489         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
87490         new module.
87492         New module 'posix_spawnattr_getschedparam'.
87493         * modules/posix_spawnattr_getschedparam: New file.
87494         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
87495         modifications.
87496         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
87497         new module.
87499         New module 'posix_spawnattr_setpgroup'.
87500         * modules/posix_spawnattr_setpgroup: New file.
87501         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
87502         modifications.
87503         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
87504         module.
87506         New module 'posix_spawnattr_getpgroup'.
87507         * modules/posix_spawnattr_getpgroup: New file.
87508         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
87509         modifications.
87510         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
87511         module.
87513         New module 'posix_spawnattr_setflags'.
87514         * modules/posix_spawnattr_setflags: New file.
87515         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
87516         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
87517         module.
87519         New module 'posix_spawnattr_getflags'.
87520         * modules/posix_spawnattr_getflags: New file.
87521         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
87522         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
87523         module.
87525         New module 'posix_spawnattr_init'.
87526         * modules/posix_spawnattr_init: New file.
87527         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
87528         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
87529         module.
87531         New module 'posix_spawn_file_actions_destroy'.
87532         * modules/posix_spawn_file_actions_destroy: New file.
87533         * lib/spawn_faction_destroy.c: New file, from GNU libc with
87534         modifications.
87535         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
87536         the new module.
87538         New module 'posix_spawn_file_actions_addopen'.
87539         * modules/posix_spawn_file_actions_addopen: New file.
87540         * lib/spawn_faction_addopen.c: New file, from GNU libc with
87541         modifications.
87542         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
87543         the new module.
87545         New module 'posix_spawn_file_actions_adddup2'.
87546         * modules/posix_spawn_file_actions_adddup2: New file.
87547         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
87548         modifications.
87549         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
87550         the new module.
87552         New module 'posix_spawn_file_actions_addclose'.
87553         * modules/posix_spawn_file_actions_addclose: New file.
87554         * lib/spawn_faction_addclose.c: New file, from GNU libc with
87555         modifications.
87556         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
87557         the new module.
87559         New module 'posix_spawn_file_actions_init'.
87560         * modules/posix_spawn_file_actions_init: New file.
87561         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
87562         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
87563         new module.
87565         New module 'posix_spawn-internal'.
87566         * modules/posix_spawn-internal: New file.
87567         * lib/spawn_int.h: New file, from GNU libc with modifications.
87568         * lib/spawni.c: New file, from GNU libc with modifications.
87569         * m4/posix_spawn.m4: New file.
87571         New module 'spawn'.
87572         * modules/spawn: New file.
87573         * lib/spawn.in.h: New file, from GNU libc with modifications.
87574         * m4/spawn_h.m4: New file.
87575         * doc/posix-headers/spawn.texi: Mention the new module.
87577 2008-09-28  Bruno Haible  <bruno@clisp.org>
87579         * modules/sched-tests: New file.
87580         * tests/test-sched.c: New file.
87582         New module 'sched'.
87583         * modules/sched: New file.
87584         * lib/sched.in.h: New file.
87585         * m4/sched_h.m4: New file.
87586         * doc/posix-headers/sched.texi: Mention the new module.
87588 2008-09-27  Eric Blake  <ebb9@byu.net>
87590         Fix previous patch, and tweak references to $0.
87591         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
87592         (func_version, func_gnulib_dir): Don't call this program
87593         gnulib-tool.
87594         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
87595         with using $0 in function.
87596         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
87597         (func_fatal_error): Reuse the name the user invoked us with.
87599 2008-09-27  Bruno Haible  <bruno@clisp.org>
87601         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
87602         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
87603         (gl_ICONV_H): Not here.
87604         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
87605         instead of assigning ICONV_H directly.
87607         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
87608         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
87609         WCHAR_H directly.
87611 2008-09-27  Bruno Haible  <bruno@clisp.org>
87613         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
87614         * modules/arpa_inet (Depends-on): Add link-warning.
87615         (Makefile.am): Insert the definition of GL_LINK-WARNING.
87616         * modules/unistd (Makefile.am): Likewise.
87618 2008-09-26  Bruno Haible  <bruno@clisp.org>
87620         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
87621         variables.
87622         (func_version): Essentially copied from gnulib-tool.
87623         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
87624         func_readlink): Copied from gnulib-tool.
87626 2008-09-26  Bruno Haible  <bruno@clisp.org>
87628         * gnulib-tool (func_version): Change directory to $gnulib_dir before
87629         invoking git-version-gen.
87631 2008-09-26  Bruno Haible  <bruno@clisp.org>
87633         * posix-modules: Update to directory names changed on 2008-01-19.
87634         Remove commas in output before splitting into words. No more need to
87635         avoid 'ftruncate' since 2007-02-19.
87637 2008-09-26  Bruno Haible  <bruno@clisp.org>
87639         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
87641 2008-09-26  Bruno Haible  <bruno@clisp.org>
87643         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
87644         * modules/fwriteerror (Depends-on): Add errno.
87646 2008-09-26  Bruno Haible  <bruno@clisp.org>
87648         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
87649         * tests/test-vc-list-files-cvs.sh: Likewise.
87651 2008-09-26  Bruno Haible  <bruno@clisp.org>
87653         * doc/posix-headers/sys_resource.texi: Reorder items.
87655 2008-09-26  Jim Meyering  <meyering@redhat.com>
87657         fts: tweak inode comparison function
87658         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
87659         inode numbers, as documented.
87661         fts: sort dirent entries on inode number before traversing
87662         This avoids a quadratic, seek-related performance penalty when
87663         operating on a directory containing many entries (measurable at 10k;
87664         3.5 hours at 2 million entries with a cold cache) on certain types
87665         of file systems, including ext3 and ext4, but not tmpfs.
87666         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
87667         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
87668         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
87669         (fs_handles_readdir_ordered_dirents_efficiently): New function.
87670         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
87671         (fts_build): Set the stat.st_ino member from D_INO.
87672         If it is likely to be useful, sort dirent entries on inode number.
87674         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
87675         and the struct statfs.f_type member.
87676         * modules/fts (Depends-on): Add d-ino.
87678 2008-09-26  Bruno Haible  <bruno@clisp.org>
87680         * modules/sigpipe-die (Depends-on): Add sigpipe.
87682         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
87683         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
87684         and GNULIB_STDIO_H_SIGPIPE are set.
87685         * lib/stdio-write.c: New file.
87686         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
87687         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
87688         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
87689         REPLACE_STDIO_WRITE_FUNCS.
87690         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
87691         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
87692         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
87693         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
87694         * modules/stdio (Files): Add lib/stdio-write.c.
87695         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
87696         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
87697         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
87698         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
87699         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
87700         REPLACE_FPRINTF_POSIX.
87701         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
87702         REPLACE_PRINTF_POSIX.
87703         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
87704         REPLACE_VFPRINTF_POSIX.
87705         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
87706         REPLACE_VPRINTF_POSIX.
87707         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
87708         SIGPIPE issue.
87709         * doc/posix-functions/fputc.texi: Likewise.
87710         * doc/posix-functions/fputs.texi: Likewise.
87711         * doc/posix-functions/fwrite.texi: Likewise.
87712         * doc/posix-functions/printf.texi: Likewise.
87713         * doc/posix-functions/putc.texi: Likewise.
87714         * doc/posix-functions/putchar.texi: Likewise.
87715         * doc/posix-functions/puts.texi: Likewise.
87716         * doc/posix-functions/vfprintf.texi: Likewise.
87717         * doc/posix-functions/vprintf.texi: Likewise.
87719         * modules/safe-write (Depends-on): Add write.
87721         * modules/sigpipe-tests: New file.
87722         * tests/test-sigpipe.c: New file.
87723         * tests/test-sigpipe.sh: New file.
87725         * modules/write: New file.
87726         * lib/unistd.in.h: Include <sys/types.h>.
87727         (write): New declaration.
87728         * lib/write.c: New file.
87729         * m4/write.m4: New file.
87730         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
87731         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
87732         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
87733         GNULIB_WRITE, REPLACE_WRITE.
87734         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
87735         and the SIGPIPE issue.
87737         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
87738         (raise): New declaration.
87739         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
87740         (ext_signal): New function.
87741         (rpl_raise): New function.
87742         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
87743         GNULIB_SIGNAL_H_SIGPIPE.
87744         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
87745         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
87747         * modules/sigpipe: New file.
87748         * m4/sigpipe.m4: New file.
87750 2008-09-25  Derek Price  <derek@ximbiot.com>
87751             Bruno Haible  <bruno@clisp.org>
87753         * gnulib-tool (func_import): Report all license incompatibilities, not
87754         just the first one.
87756 2008-09-25  Bruno Haible  <bruno@clisp.org>
87758         * gnulib-tool (func_import): When computing the edits, consider not
87759         only the Makefile.ams that exist but also those that will be generated.
87761 2008-09-25  Simon Josefsson  <simon@josefsson.org>
87763         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
87764         fixes gnulib-tool --test warning about duplicate dependency.
87766 2008-09-25  Bruno Haible  <bruno@clisp.org>
87768         * gnulib-tool: Don't ask the user to perform edits in the generated
87769         Makefile.ams.
87770         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
87771         apply to the Makefile.am being generated.
87772         (func_emit_tests_Makefile_am): Execute edits that apply to the
87773         Makefile.am being generated.
87774         (func_import): Setup list of Makefile.am edits before emitting the
87775         Makefile.ams, not at the end.
87776         (func_create_testdir): Update.
87777         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
87779 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
87781         * gnulib-tool (func_import): Store the --tests-base option in the
87782         comment in gnulib-cache.m4.
87784 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
87786         * NEWS: Document increased portability that sys_select now provides.
87788         * lib/sys_select.in.h: Install select wrapper.
87789         * lib/sys_socket.in.h: Use more descriptive name when there is no
87790         select wrapper.
87791         * lib/winsock-select.c: New.
87792         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
87793         Require gl_HEADER_SYS_SOCKET.
87794         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
87795         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
87796         * tests/test-sys_select.c: Add functional tests.
87798 2008-09-24  Eric Blake  <ebb9@byu.net>
87800         open, fopen: close fd leak in last patch
87801         * lib/open.c (rpl_open): Close fd before returning error.
87802         * lib/fopen.c (rpl_fopen): Close fd before returning error.
87803         * doc/posix-functions/open.texi (open): Document that Irix also
87804         has the bug.
87805         * doc/posix-functions/fopen.texi (fopen): Likewise.
87806         Reported by Paolo Bonzini.
87808 2008-09-24  Bruno Haible  <bruno@clisp.org>
87810         Ensure that a filename ending in a slash cannot be used to access a
87811         non-directory.
87812         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
87813         to check whether it's really a directory.
87814         * lib/fopen.c: Include fcntl.h, unistd.h.
87815         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
87816         and fdopen().
87817         * modules/fopen (Depends-on): Add unistd.
87818         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
87819         * tests/test-fopen.c (main): Likewise.
87820         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
87821         * doc/posix-functions/fopen.texi: Likewise.
87822         Reported by Eric Blake.
87824 2008-09-23  Eric Blake  <ebb9@byu.net>
87826         c-stack: avoid compiler optimizations when provoking overflow
87827         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
87828         recursion harder to optimize, to ensure a stack overflow occurs.
87829         * tests/test-c-stack.c (recurse): Likewise.
87830         Borrowed from libsigsegv.
87832         c-stack: work around Irix sigaltstack bug
87833         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
87834         whether sigaltstack uses wrong end of stack_t (copied in part from
87835         libsigsegv).
87836         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
87837         Irix bug, without requiring an over-allocation.
87838         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
87839         bug.
87841         fopen: document mingw bug on directories
87842         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
87843         not allowing a stream visiting a directory, even though reading
87844         from such a stream is not portable.
87846 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
87848         * lib/poll.c: Rewrite.
87849         * modules/poll: Depend on alloca.
87851 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
87853         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
87854         instead define prototypes for a full set of wrappers.  Ensure
87855         that Cygwin does not use the compatibility code, which is only
87856         for MinGW.
87857         * lib/winsock.c: New.
87858         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
87859         * modules/sys_socket: Add lib/winsock.c.
87861         * modules/poll-tests: Add errno and perror.
87862         * tests/test-poll.c: Use ioctl, not ioctlsocket.
87864 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
87866         * tests/test-poll.c: Downgrade minimum needed Winsock version.
87868 2008-09-23  Bruno Haible  <bruno@clisp.org>
87870         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
87871         * doc/glibc-functions/*: Likewise.
87873 2008-09-23  Simon Josefsson  <simon@josefsson.org>
87875         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
87876         success.
87878 2008-09-22  Eric Blake  <ebb9@byu.net>
87879             Bruno Haible  <bruno@clisp.org>
87881         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
87882         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
87883         supply %A but mishandle pseudo-NaN.
87884         Reported by Simon Josefsson.
87886 2008-09-21  Bruno Haible  <bruno@clisp.org>
87888         * tests/test-lock.c (main): Tweak skip message.
87889         * tests/test-tls.c (main): Likewise.
87891 2008-09-21  Bruno Haible  <bruno@clisp.org>
87893         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
87894         whether 'struct sigaction' has sa_sigaction here...
87895         (gl_PREREQ_SIG_HANDLER_H): ... not here.
87896         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
87898 2008-09-21  Bruno Haible  <bruno@clisp.org>
87900         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
87901         section.
87902         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
87903         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
87904         the new section.
87905         (Support for obsolete systems lacking POSIX:2001): New section.
87906         (String handling <string.h>): Move strdup to the new section.
87907         Suggested by Simon Josefsson and Paolo Bonzini.
87909 2008-09-21  Bruno Haible  <bruno@clisp.org>
87911         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
87912         exponents in %e and %g results on 'long double'. Needed for mingw's
87913         improved *printf functions.
87914         * tests/test-vasprintf-posix.c (test_function): Likewise.
87915         * tests/test-snprintf-posix.h (test_function): Likewise.
87916         * tests/test-sprintf-posix.h (test_function): Likewise.
87917         Reported by Eric Blake.
87919 2008-09-21  Bruno Haible  <bruno@clisp.org>
87921         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
87922         * tests/test-sprintf-posix.h (test_function): Likewise.
87924 2008-09-21  Bruno Haible  <bruno@clisp.org>
87926         * modules/getpass (Depends-on): Add strdup-posix.
87928         New module 'strdup-posix'.
87929         * modules/strdup-posix: New file.
87930         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
87931         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
87932         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
87933         REPLACE_STRDUP.
87934         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
87935         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
87936         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
87937         strdup-posix.
87939         * modules/strdup (Depends-on): Remove malloc-posix.
87941 2008-09-20  Bruno Haible  <bruno@clisp.org>
87943         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
87944         Wildenhues.
87946 2008-09-20  Bruno Haible  <bruno@clisp.org>
87948         Ensure that wint_t gets defined on IRIX 5.3.
87949         * lib/wchar.in.h (wint_t): Define if not defined by the system.
87950         * lib/wctype.in.h (wint_t): Likewise.
87951         (__wctype_wint_t): Remove type.
87952         (isw*): Use wint_t instead of __wctype_wint_t.
87953         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
87954         * modules/wchar (Files): Add m4/wint_t.m4.
87955         (Makefile.am): Substitute HAVE_WINT_T.
87956         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
87957         * tests/test-wctype.c: Check that wint_t is defined.
87958         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
87959         * doc/posix-headers/wctype.texi: Likewise.
87960         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
87962 2008-09-18  Bruno Haible  <bruno@clisp.org>
87964         * gnulib-tool (func_exit): Update comment.
87966 2008-09-18  Simon Josefsson  <simon@josefsson.org>
87968         * modules/getaddrinfo (Depends-on): Remove strdup, this module
87969         assumes strdup exists and does not depend on strdup to return
87970         ENOMEM on out of memory conditions.
87972 2008-09-18  Bruno Haible  <bruno@clisp.org>
87974         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
87975         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
87976         digits for the exponent.
87978 2008-09-18  Jim Meyering  <meyering@redhat.com>
87979             Bruno Haible  <bruno@clisp.org>
87981         * lib/vasnprintf.c (decimal_point_char): Define also if
87982         NEED_PRINTF_INFINITE_LONG_DOUBLE.
87984 2008-09-16  Bruno Haible  <bruno@clisp.org>
87985         and Eric Blake  <ebb9@byu.net>
87987         vasnprintf: support Irix 5.3
87988         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
87989         that mishandle long double infinity.
87990         Reported by Tom G. Christensen.
87992 2008-09-16  Bruno Haible  <bruno@clisp.org>
87994         * doc/glibc-functions/scandir.texi: Mention the function is missing on
87995         Solaris 9.
87996         * doc/glibc-functions/alphasort.texi: Likewise.
87997         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
87999 2008-09-16  Jim Meyering  <meyering@redhat.com>
88001         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
88002         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
88003         a umask modification leak out of a subshell.  Otherwise, the
88004         opensolaris /bin/sh would be accepted and thus cause unwarranted
88005         failures in the coreutils test suite.
88007 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
88009         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
88010         to succeed.
88012 2008-09-16  Jim Meyering  <meyering@redhat.com>
88014         avoid spurious test failure when library is built without ACL support
88015         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
88016         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
88017         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
88018         * tests/test-copy-acl.sh: Likewise.
88020 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88022         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
88023         based on character occurrence counts.
88025 2008-09-15  Eric Blake  <ebb9@byu.net>
88027         tests: avoid some compiler warnings
88028         * tests/test-memchr.c (main): Pass NULL indirectly.
88029         * tests/test-closein.c (main): Avoid unused variable.
88031 2008-09-15  Bruno Haible  <bruno@clisp.org>
88033         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
88034         are missing on OpenBSD 4.0 individually.
88035         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
88037 2008-09-15  Bruno Haible  <bruno@clisp.org>
88039         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
88040         * doc/posix-functions/strerror.texi: Mention also Cygwin.
88041         * doc/posix-functions/perror.texi: Likewise.
88042         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
88043         is missing.
88044         Reported by Eric Blake.
88046         * lib/errno.in.h: Use replacement values >= 2000.
88047         Reported by Eric Blake.
88049 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88051         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
88052         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
88053         limit.
88054         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
88055         compareseq was aborted.
88057 2008-09-14  Bruno Haible  <bruno@clisp.org>
88059         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
88060         yvec_edit_count.
88061         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
88062         (fstrcmp_bounded): Simplify result computation accordingly.
88064 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88066         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
88067         (fstrcmp): Define in terms of fstrcmp_bounded.
88068         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
88069         lower_bound argument.
88070         Return quickly if the result is certainly < lower_bound.
88071         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
88073 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88075         * lib/diffseq.h (EARLY_ABORT): New macro.
88076         (compareseq): Change return type to bool. Return true when EARLY_ABORT
88077         evaluates to true.
88079 2008-09-14  Bruno Haible  <bruno@clisp.org>
88081         * modules/perror-tests: New file.
88082         * tests/test-perror.sh: New file.
88083         * tests/test-perror.c: New file.
88085         New module 'perror'.
88086         * lib/stdio.in.h (perror): New declaration.
88087         * lib/perror.c: New file.
88088         * m4/perror.m4: New file.
88089         * modules/perror: New file.
88090         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
88091         * doc/posix-functions/perror.texi: Mention the perror module.
88092         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
88093         REPLACE_PERROR.
88094         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
88095         REPLACE_PERROR.
88097 2008-09-14  Bruno Haible  <bruno@clisp.org>
88099         * modules/stdio (Makefile.am): Reorder to match the order in
88100         lib/stdio.in.h.
88101         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
88103 2008-09-13  Bruno Haible  <bruno@clisp.org>
88105         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
88107 2008-09-13  Bruno Haible  <bruno@clisp.org>
88109         Extend strerror to cover the added errno values.
88110         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
88111         (rpl_strerror): Provide error messages for the added errno values and
88112         for the WSA* values.
88113         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
88114         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
88115         strerror.
88116         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
88117         * modules/strerror (Depends-on): Add errno.
88118         * doc/posix-functions/strerror.texi: Document the change.
88119         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
88120         and EOVERFLOW.
88122 2008-09-13  Bruno Haible  <bruno@clisp.org>
88124         * modules/EOVERFLOW: Remove file.
88125         * m4/eoverflow.m4: Remove file.
88126         * modules/EOVERFLOW-tests: Remove file.
88127         * tests/test-EOVERFLOW.c: Remove file.
88128         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
88129         * modules/ftell (Depends-on): Likewise.
88130         * modules/getdelim (Depends-on): Likewise.
88131         * modules/getugroups (Depends-on): Likewise.
88132         * modules/poll (Depends-on): Likewise.
88133         * modules/snprintf (Depends-on): Likewise.
88134         * modules/sprintf-posix (Depends-on): Likewise.
88135         * modules/vasnprintf (Depends-on): Likewise.
88136         * modules/vasprintf (Depends-on): Likewise.
88137         * modules/vfprintf-posix (Depends-on): Likewise.
88138         * modules/vsnprintf (Depends-on): Likewise.
88139         * modules/vsprintf-posix (Depends-on): Likewise.
88140         * modules/xvasprintf (Depends-on): Likewise.
88141         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
88142         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
88143         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
88144         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
88145         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
88146         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
88147         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
88148         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
88149         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
88150         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
88151         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
88152         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
88153         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
88154         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
88155         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
88156         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
88157         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
88158         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
88159         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
88160         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
88161         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
88162         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
88163         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
88164         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
88165         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
88166         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
88167         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
88168         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
88169         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
88170         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
88171         * MODULES.html.sh: Remove EOVERFLOW.
88172         * NEWS: Mention the change.
88174 2008-09-13  Bruno Haible  <bruno@clisp.org>
88176         * modules/errno-tests: New file.
88177         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
88179         * lib/errno.in.h: New file.
88180         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
88181         * modules/errno: New file.
88182         * doc/posix-headers/errno.texi: Update documentation.
88183         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
88185 2008-09-13  Bruno Haible  <bruno@clisp.org>
88187         * tests/test-poll.c: Use #if for native Windows, rather than testing
88188         __MSVCRT__.
88190 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
88191             Bruno Haible  <bruno@clisp.org>
88193         * lib/glob.c: Don't include <pwd.h> on native Windows.
88194         (WINDOWS32): New macro.
88195         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
88197 2008-09-13  Bruno Haible  <bruno@clisp.org>
88199         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
88200         (ETIMEDOUT): Remove macro.
88201         (glthread_cond_timedwait_multithreaded): New declaration.
88202         (glthread_cond_timedwait): Use it.
88203         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
88204         (glthread_cond_timedwait_multithreaded): New function.
88206 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
88208         * modules/poll-tests: Do not check for io.h.
88209         * tests/test-poll.c: Check for __MSVCRT__ instead.
88211 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
88213         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
88214         * modules/poll-tests: Add inet_pton, stdbool, sockets.
88215         * tests/test-poll.c: Use them.  Use _pipe on Windows.
88217 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
88219         * modules/poll-tests: New.
88220         * tests/test-poll.c: New.
88222 2008-09-12  Eric Blake  <ebb9@byu.net>
88224         frexp: test for NetBSD failure on -0.0
88225         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
88226         not all, bugs from NetBSD 3.0 have been fixed.
88227         * doc/posix-functions/frexp.texi (frexp): Document bug.
88228         Reported by Thomas Klausner.
88230         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
88231         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
88232         literal -0.0.
88233         Reported by Jonathan C. Patschke <jp@centtech.com>.
88235 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
88237         * lib/glthread/cond.h: Use dummy implementation also if
88238         USE_WIN32_THREADS.
88240 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
88242         * modules/fnmatch-posix (License): Change to LGPLv2+.
88243         * modules/fnmatch-gnu (License): Likewise.
88245 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
88247         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
88249 2008-09-11  Jim Meyering  <meyering@redhat.com>
88251         * users.txt: Add gtk-vnc.
88253 2008-09-08  Simon Josefsson  <simon@josefsson.org>
88255         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
88256         rotate amounts.
88258         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
88259         required for 16-bit and 8-bit rotates.
88260         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
88261         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
88262         UINT8_MAX instead of hard-coded constants.
88263         Suggested by Paul Eggert.
88265 2008-09-07  Bruno Haible  <bruno@clisp.org>
88267         * tests/test-striconveh.c (main): Check behaviour when converting from
88268         UTF-7.
88270         Make striconveh work better with stateful encodings.
88271         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
88272         that iconv does not increment the inptr when returning -1/EINVAL.
88274 2008-09-07  Bruno Haible  <bruno@clisp.org>
88276         * build-aux/config.rpath: Update according to libtool-2.2.6.
88277         * build-aux/config.libpath: Likewise.
88279 2008-09-06  Bruno Haible  <bruno@clisp.org>
88281         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
88282         * lib/freadptr.c (freadptr): Likewise.
88283         * lib/freadseek.c (freadptrinc): Likewise.
88284         Reported by Simon Josefsson.
88286 2008-09-06  Bruno Haible  <bruno@clisp.org>
88288         * modules/freadptr (License): Change to LGPLv2+.
88289         * modules/freadseek (License): Likewise.
88290         Suggested by Eric Blake.
88292         * modules/memchr2 (License): Change to LGPLv2+.
88293         Approved by Eric Blake.
88295 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88296             Bruno Haible  <bruno@clisp.org>
88298         Make gnulib-tool work with native 'sed' on AIX.
88299         * gnulib-tool (sed_noop): New variable.
88300         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
88301         func_add_or_update, func_create_testdir): Use it to initialize sed
88302         script variables.
88303         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
88305 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
88306             Bruno Haible  <bruno@clisp.org>
88308         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
88309         also works after #include directives.
88311 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
88313         getdate.y: reject an out-of-range timezone value
88314         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
88315         the range [-24...+24].  When specified with only one or two digits,
88316         * tests/test-getdate.c: Tests for the fix.
88317         * doc/getdate.texi: Document this change.
88319 2008-09-03  Bruno Haible  <bruno@clisp.org>
88321         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
88323 2008-09-02  Simon Josefsson  <simon@josefsson.org>
88325         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
88326         <bruce.korb@gmail.com> with ideas from Ben Pfaff
88327         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
88328         Blake <ebb9@byu.net>.
88330         * tests/test-bitrotate.c: Add more test vectors.
88332 2008-09-02  Eric Blake  <ebb9@byu.net>
88334         vasnprintf-posix: handle large precision via %.*d
88335         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
88336         when handling it ourselves.
88337         * tests/test-vasnprintf-posix.c (test_function): Add test.
88338         * tests/test-snprintf-posix.h (test_function): Likewise.
88339         * tests/test-sprintf-posix.h (test_function): Likewise.
88340         * tests/test-vasprintf-posix.c (test_function): Likewise.
88341         Reported by Alain Guibert.
88343 2008-09-01  Eric Blake  <ebb9@byu.net>
88345         c-stack: make configure-time check more robust
88346         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
88347         successful sigaction call.
88348         Reported by Tom G. Christensen.
88350 2008-09-01  Bruno Haible  <bruno@clisp.org>
88352         New module 'findprog-lgpl'.
88353         * modules/findprog-lgpl: New file.
88354         * lib/findprog-lgpl.c: New file.
88355         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
88356         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
88357         to decide whether to use strdup or xstrdup, concatenated_filename or
88358         xconcatenated_filename.
88360 2008-09-01  Bruno Haible  <bruno@clisp.org>
88362         Split module 'concat-filename' into 'concat-filename' (LGPL) and
88363         'xconcat-filename' (GPL).
88364         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
88365         (License): Change to LGPLv2+.
88366         * modules/xconcat-filename: New file.
88367         * lib/concat-filename.h (concatenated_filename): Change specification.
88368         (xconcatenated_filename): New declaration.
88369         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
88370         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
88371         memory situations.
88372         * lib/xconcat-filename.c: New file.
88373         * NEWS: Mention the change.
88374         * lib/findprog.c: Include concat-filename.h, not filename.h.
88375         (find_in_path): Use xconcatenated_filename instead of
88376         concatenated_filename.
88377         * lib/javacomp.c: Include concat-filename.h, not filename.h.
88378         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
88379         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
88380         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
88381         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
88382         instead of concatenated_filename.
88383         * lib/javaexec.c: Include concat-filename.h, not filename.h.
88384         (execute_java_class): Use xconcatenated_filename instead of
88385         concatenated_filename.
88386         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
88387         * modules/javacomp (Depends-on): Likewise.
88388         * modules/javaexec (Depends-on): Likewise.
88390 2008-09-01  Bruno Haible  <bruno@clisp.org>
88392         Split module 'filename' into 'filename' and 'concat-filename'.
88393         * modules/filename: Keep only lib/filename.h.
88394         (License): Change to LGPLv2+.
88395         * modules/concat-filename: New file, extracted from modules/filename.
88396         * lib/filename.h (concatenated_filename): Remove declaration.
88397         * lib/concat-filename.h: New file, extracted from lib/filename.h.
88398         * lib/concat-filename.c: Include concat-filename.h.
88399         * NEWS: Mention the change.
88401 2008-09-01  Simon Josefsson  <simon@josefsson.org>
88403         * lib/bitrotate.h (rotl8, rotr8): Add.
88405         * modules/bitrotate (configure.ac): Need
88406         AC_REQUIRE([AC_C_INLINE]).
88407         (Description): Mention stdint.h.  Reported by Bruno Haible
88408         <bruno@clisp.org>.
88410         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
88411         Paolo Bonzini <bonzini@gnu.org>.
88413 2008-08-31  Bruno Haible  <bruno@clisp.org>
88415         Assume Solaris specific bi-arch conventions on Solaris systems.
88416         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
88417         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
88418         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
88419         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
88420         like acl_libdirstem.
88421         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
88422         acl_libdirstem.
88423         * NEWS: Mention the change.
88424         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
88426 2008-08-31  Jim Meyering  <meyering@redhat.com>
88428         * lib/strftime.h: Add comments describing the two added arguments.
88430         remove duplicate #include directives
88431         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
88432         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
88434 2008-08-31  Bruno Haible  <bruno@clisp.org>
88436         New module 'sigpipe-die'.
88437         * modules/sigpipe-die: New file.
88438         * lib/sigpipe-die.h: New file.
88439         * lib/sigpipe-die.c: New file.
88440         * MODULES.html.sh (Signal handling): Add sigpipe-die.
88442 2008-08-31  Bruno Haible  <bruno@clisp.org>
88444         Don't override previously installed signal handlers.
88445         * lib/fatal-signal.c (saved_sigactions): New variable.
88446         (uninstall_handlers): Reset the signal to the saved handler, not
88447         to SIG_DFL (except when ignored).
88448         (install_handlers): Save the previous handlers.
88450 2008-08-30  Bruno Haible  <bruno@clisp.org>
88452         * gnulib-tool (func_reset_sigpipe): New function.
88453         (func_get_automake_snippet, func_modules_transitive_closure,
88454         func_import): Invoke it before a join command that reads from stdin,
88455         to avoid "echo: write error: Broken pipe" error messages on stderr.
88456         Reported by Sam Steingold <sds@gnu.org>.
88458 2008-08-30  Bruno Haible  <bruno@clisp.org>
88460         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
88461         Code copied from m4/open.m4.
88462         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
88463         access and the filename ends in a slash. Code copied from lib/open.c.
88464         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
88465         * tests/test-fopen.c (main): Check against bug with trailing slash.
88467 2008-08-29  Bruno Haible  <bruno@clisp.org>
88469         Avoid some "gcc -pedantic" warnings.
88470         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
88471         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
88472         * lib/dirent.in.h: Likewise.
88473         * lib/fcntl.in.h: Likewise.
88474         * lib/float.in.h: Likewise.
88475         * lib/iconv.in.h: Likewise.
88476         * lib/inttypes.in.h: Likewise.
88477         * lib/locale.in.h: Likewise.
88478         * lib/math.in.h: Likewise.
88479         * lib/netinet_in.in.h: Likewise.
88480         * lib/search.in.h: Likewise.
88481         * lib/signal.in.h: Likewise.
88482         * lib/stdarg.in.h: Likewise.
88483         * lib/stdint.in.h: Likewise.
88484         * lib/stdio.in.h: Likewise.
88485         * lib/stdlib.in.h: Likewise.
88486         * lib/string.in.h: Likewise.
88487         * lib/strings.in.h: Likewise.
88488         * lib/sys_select.in.h: Likewise.
88489         * lib/sys_socket.in.h: Likewise.
88490         * lib/sys_stat.in.h: Likewise.
88491         * lib/sys_time.in.h: Likewise.
88492         * lib/sysexits.in.h: Likewise.
88493         * lib/time.in.h: Likewise.
88494         * lib/unistd.in.h: Likewise.
88495         * lib/wchar.in.h: Likewise.
88496         * lib/wctype.in.h: Likewise.
88497         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
88498         * modules/fchdir (Makefile.am): Likewise.
88499         * modules/fcntl (Makefile.am): Likewise.
88500         * modules/float (Makefile.am): Likewise.
88501         * modules/iconv_open (Makefile.am): Likewise.
88502         * modules/inttypes (Makefile.am): Likewise.
88503         * modules/locale (Makefile.am): Likewise.
88504         * modules/math (Makefile.am): Likewise.
88505         * modules/netinet_in (Makefile.am): Likewise.
88506         * modules/search (Makefile.am): Likewise.
88507         * modules/signal (Makefile.am): Likewise.
88508         * modules/stdarg (Makefile.am): Likewise.
88509         * modules/stdint (Makefile.am): Likewise.
88510         * modules/stdio (Makefile.am): Likewise.
88511         * modules/stdlib (Makefile.am): Likewise.
88512         * modules/string (Makefile.am): Likewise.
88513         * modules/strings (Makefile.am): Likewise.
88514         * modules/sys_select (Makefile.am): Likewise.
88515         * modules/sys_socket (Makefile.am): Likewise.
88516         * modules/sys_stat (Makefile.am): Likewise.
88517         * modules/sys_time (Makefile.am): Likewise.
88518         * modules/sysexits (Makefile.am): Likewise.
88519         * modules/time (Makefile.am): Likewise.
88520         * modules/unistd (Makefile.am): Likewise.
88521         * modules/wchar (Makefile.am): Likewise.
88522         * modules/wctype (Makefile.am): Likewise.
88523         Reported by Reuben Thomas <rrt@sc3d.org>.
88525 2008-08-29  Bruno Haible  <bruno@clisp.org>
88527         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
88528         any more.
88530 2008-08-29  Simon Josefsson  <simon@josefsson.org>
88532         * MODULES.html.sh (Misc): Add bitrotate.
88534         * modules/bitrotate: New file.
88536         * lib/bitrotate.h: New file.
88538         * modules/bitrotate-tests: New file.
88540         * tests/test-bitrotate.c: New file.
88542         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
88543         on the bitrotate module.
88545         * lib/arctwo.c: Use new bitrotate module.
88547 2008-08-29  Jim Meyering  <meyering@redhat.com>
88549         bootstrap: merge changes from coreutils
88550         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
88551         of copied files.  Remove a kludge, now that this is fixed.
88552         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
88553         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
88554         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
88556 2008-08-29  Bruno Haible  <bruno@clisp.org>
88558         * MODULES.html.sh: Remove --cvs-urls option.
88560 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
88562         maint.mk: adjust to file name change
88563         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
88565 2008-08-28  Jim Meyering  <meyering@redhat.com>
88567         * modules/getndelim2 (License): Relicense to LGPLv2+.
88568         Approved by Richard Stallman for the version of 1995, and by
88569         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
88571 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
88573         * lib/getdelim.c (flockfile, funlockfile): Make all of them
88574         dummy if one is not available.  Do not touch them if
88575         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
88576         (getc_maybe_unlocked): New.
88577         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
88579 2008-08-26  Eric Blake  <ebb9@byu.net>
88581         doc/INSTALL: resync from autoconf
88582         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
88583         (INSTALL_PRELUDE): Delete; this is done more efficiently by
88584         moving...
88585         * install.texi [!autoconf]: ...here.  Resync from autoconf.
88586         * INSTALL: Regenerate.
88587         * INSTALL.ISO: New file.
88588         * INSTALL.UTF-8: Likewise.
88590 2008-08-26  Jim Meyering  <meyering@redhat.com>
88592         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
88593         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
88594         these definitions conditional, so that they may be overridden, too.
88596 2008-08-26  Bruno Haible  <bruno@clisp.org>
88598         Generate INSTALL file variants with prettier quotes.
88599         * doc/Makefile (INSTALL_PRELUDE): New macro.
88600         (INSTALL): Use it.
88601         (INSTALL.ISO, INSTALL.UTF-8): New rules.
88603 2008-08-26  Bruno Haible  <bruno@clisp.org>
88605         Run makeinfo in an English locale.
88606         * doc/Makefile (MAKEINFO): New variable.
88608 2008-08-26  Bruno Haible  <bruno@clisp.org>
88610         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
88611         Suggested by Eric Blake.
88613 2008-08-25  Bruno Haible  <bruno@clisp.org>
88615         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
88617 2008-08-25  Eric Blake  <ebb9@byu.net>
88619         c-stack: test that stack overflow can be caught
88620         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
88621         that platform allows handling stack overflow; at least OS/2 EMX
88622         has sigaltstack, but crashes before transferring control to
88623         handler on stack overflow.
88624         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
88625         check for HAVE_STACK_OVERFLOW_HANDLING.
88626         Reported by Elbert Pol.
88628 2008-08-25  Bruno Haible  <bruno@clisp.org>
88630         * doc/posix-functions/strftime.texi: Fix description of strftime
88631         module.
88633 2008-08-24  Bruno Haible  <bruno@clisp.org>
88635         * tests/uniwidth/test-uc_width2.c: New file.
88636         * tests/uniwidth/test-uc_width2.sh: New file.
88637         * modules/uniwidth/width-tests (Files): Add the new files.
88638         (TESTS): Add uniwidth/test-uc_width2.sh.
88639         (TESTS_ENVIRONMENT): New variable.
88640         (check_PROGRAMS): Add test-uc_width2.
88641         (test_uc_width2_SOURCES): New variable.
88643         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
88644         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
88645         not 0x00AB.
88646         Reported by Alexander V. Lukyanov <lav@netis.ru>.
88648 2008-08-22  Eric Blake  <ebb9@byu.net>
88650         test-lock, test-tls: mention why a test is skipped
88651         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
88652         skipped.
88653         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
88655         count-one-bits: relax license
88656         * modules/count-one-bits (License): Relicense to LGPLv2+.
88657         Suggested by Ludovic Courtès, approved by Ben Pfaff.
88659 2008-08-22  Andreas Schwab  <schwab@suse.de>
88661         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
88662         Remove spurious space in assignment.
88664 2008-08-21  Simon Josefsson  <simon@josefsson.org>
88666         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
88667         Paul Eggert <eggert@CS.UCLA.EDU>.
88669 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
88671         * modules/gettext: Add m4/threadlib.m4.
88673 2008-08-19  Eric Blake  <ebb9@byu.net>
88675         test-c-stack: fix compilation failure on FreeBSD 5.0
88676         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
88677         headers before <sys/resource.h>.
88678         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
88679         the bug.
88680         Reported by Nelson H. F. Beebe.
88682         strverscmp: migrate from "strverscmp.h" to <string.h>
88683         * modules/string (Makefile.am): Add new hooks.
88684         * modules/strverscmp (Files): Remove strverscmp.h.
88685         (Depends-on): Add string.
88686         (configure.ac): Add indicator.
88687         (Include): Mention new header.
88688         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
88689         defaults.
88690         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
88691         results.
88692         * lib/strverscmp.h: Delete.
88693         * lib/string.in.h (strverscmp): Provide declaration, when needed.
88694         * tests/test-strverscmp.c (includes): Adjust client.
88695         * lib/check-version.c (includes): Likewise.
88696         * NEWS: Document the change.
88698         strverscmp: add unit test
88699         * modules/strverscmp-tests: New file.
88700         * tests/test-strverscmp.c: Likewise.
88702 2008-08-19  Simon Josefsson  <simon@josefsson.org>
88704         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
88705         regarding Windows crypto stuff, from Mono.
88707 2008-08-19  Adam Strzelecki  <ono@java.pl>  (tiny change)
88709         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
88710         if present, for intel RND.  Return error on failures.
88712 2008-08-18  Ben Pfaff  <blp@gnu.org>
88714         gitlog-to-changelog: give better diagnostic for failed pipe-open
88715         * build-aux/gitlog-to-changelog: Improve error message: suggest
88716         that the version of Git may be too old.
88718 2008-08-18  Simon Josefsson  <simon@josefsson.org>
88720         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
88721         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
88723 2008-08-18  Bruno Haible  <bruno@clisp.org>
88725         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
88726         pthread_in_use().
88728 2008-08-18  Bruno Haible  <bruno@clisp.org>
88730         * lib/glthread/threadlib.c: Include <pthread.h>.
88732 2008-08-18  Bruno Haible  <bruno@clisp.org>
88734         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
88735         glthread_recursive_lock_* macros.
88736         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
88737         Fix syntax error.
88739 2008-08-18  Bruno Haible  <bruno@clisp.org>
88741         * lib/glthread/thread.c: Avoid forcing a context switch right after
88742         thread creation.
88744 2008-08-17  Bruno Haible  <bruno@clisp.org>
88746         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
88747         * lib/glthread/thread.h: Provide Win32 specific implementation.
88748         * modules/thread (Files): Add lib/glthread/thread.c.
88749         (Depends-on): Add lock.
88750         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
88752 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
88754         New module 'yield'.
88755         * modules/yield: New file.
88756         * lib/glthread/yield.h: New file.
88757         * m4/yield.m4: New file.
88758         * MODULES.html.sh (Multithreading): Add yield.
88760 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
88762         New module 'thread'.
88763         * modules/thread: New file.
88764         * lib/glthread/thread.h: New file.
88765         * m4/thread.m4: New file.
88766         * MODULES.html.sh (Multithreading): Add thread.
88768 2008-08-17  Bruno Haible  <bruno@clisp.org>
88770         * lib/glthread/lock.h: Include <stdlib.h> always.
88771         * lib/glthread/tls.h: Likewise.
88772         * lib/glthread/cond.h: Likewise.
88774 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
88776         New module 'cond'.
88777         * modules/cond: New file.
88778         * lib/glthread/cond.h: New file.
88779         * lib/glthread/cond.c: New file.
88780         * m4/cond.m4: New file.
88781         * MODULES.html.sh (Multithreading): Add cond.
88783 2008-08-16  Eric Blake  <ebb9@byu.net>
88785         c-stack: fix regression on Irix 5.3 from 2008-06-21
88786         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
88787         sa_sigaction...
88788         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
88789         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
88790         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
88791         * modules/signal (Makefile.am): Use the value.
88792         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
88793         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
88794         * doc/posix-headers/signal.texi (signal.h): Document this
88795         portability issue.
88796         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
88797         Reported by Tom G. Christensen.
88799 2008-08-17  Bruno Haible  <bruno@clisp.org>
88801         New module 'threadlib'.
88802         * modules/threadlib: New file.
88803         * lib/glthread/threadlib.c: New file, extracted from
88804         lib/glthread/lock.c.
88805         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
88806         functions.
88807         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
88808         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
88809         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
88810         macros.
88811         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
88812         (gl_DISABLE_THREADS): Remove macro.
88813         * modules/lock (Files): Remove build-aux/config.rpath.
88814         (Depends-on): Remove havelib. Add threadlib.
88815         (configure.ac-early): Remove section.
88816         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
88817         * modules/tls (Depends-on): Remove lock. Add threadlib.
88818         (Link): New section, copied from threadlib.
88819         * MODULES.html.sh (Multithreading): Add threadlib.
88821 2008-08-14  Bruno Haible  <bruno@clisp.org>
88823         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
88824         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
88825         glthread_rwlock_unlock, glthread_rwlock_destroy,
88826         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
88827         glthread_recursive_lock_destroy): Define as macros always.
88828         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
88829         glthread_lock_lock.
88830         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
88831         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
88832         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
88833         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
88834         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
88835         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
88836         (glthread_recursive_lock_lock_func): Renamed from
88837         glthread_recursive_lock_lock.
88838         (glthread_recursive_lock_unlock_func): Renamed from
88839         glthread_recursive_lock_unlock.
88840         (glthread_recursive_lock_destroy_func): Renamed from
88841         glthread_recursive_lock_destroy.
88843 2008-08-14  Bruno Haible  <bruno@clisp.org>
88845         * lib/glthread/lock.h: Renamed from lib/lock.h.
88846         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
88847         * lib/glthread/tls.h: Renamed from lib/tls.h.
88848         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
88849         * lib/fstrcmp.c: Update includes.
88850         * lib/strsignal.c: Update includes.
88851         * modules/lock (Files, Makefile.am): Update.
88852         (Include): Change to "glthread/lock.h".
88853         * modules/tls (Files, Makefile.am): Update.
88854         (Include): Change to "glthread/tls.h".
88855         * tests/test-lock.c: Update includes.
88856         * tests/test-tls.c: Update includes.
88857         * NEWS: Mention the renamed header files.
88859 2008-08-11  Jim Meyering  <meyering@redhat.com>
88861         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
88863 2008-08-11  Eric Blake  <ebb9@byu.net>
88865         test-c-stack: avoid C99-ism
88866         * tests/test-c-stack.c (main): Fix whitespace, move declaration
88867         before statement.
88868         Reported by Alain Guibert.
88870 2008-08-10  Jim Meyering  <meyering@redhat.com>
88872         ensure that return value of uinttostr et al are not ignored
88873         * lib/inttostr.h (__GNUC_PREREQ): Define.
88874         (__attribute_warn_unused_result__): Define.
88875         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
88877 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
88879         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
88880         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
88882 2008-08-07  Jim Meyering  <meyering@redhat.com>
88884         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
88886         * modules/mkstemp (License): Relicense under LGPLv2+.
88887         * modules/tempname (License): Likewise.
88889 2008-08-06  Bruno Haible  <bruno@clisp.org>
88891         * lib/poll.c (poll): Further micro-optimization.
88893 2008-08-06  Jim Meyering  <meyering@redhat.com>
88895         inet_pton.c: use locale-independent tolower
88896         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
88897         (inet_pton6): Use c_tolower rather than tolower.
88898         * modules/inet_pton (Depends-on): Add c-ctype.
88900 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
88902         * lib/poll.c (poll): Avoid division when timeout is 0, cache
88903         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
88905 2008-08-06  Jim Meyering  <meyering@redhat.com>
88907         * modules/inet_pton (License): Relicense under LGPLv2+.
88909 2008-08-03  Bruno Haible  <bruno@clisp.org>
88911         Additional non-aborting API for lock and tls.
88912         * lib/lock.h: Include <errno.h>.
88913         (glthread_lock_init): New macro/function.
88914         (gl_lock_init): Define as wrapper around glthread_lock_init.
88915         (glthread_lock_lock): New macro/function.
88916         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
88917         (glthread_lock_unlock): New macro/function.
88918         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
88919         (glthread_lock_destroy): New macro/function.
88920         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
88921         (glthread_rwlock_init): New macro/function.
88922         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
88923         (glthread_rwlock_rdlock): New macro/function.
88924         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
88925         (glthread_rwlock_wrlock): New macro/function.
88926         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
88927         (glthread_rwlock_unlock): New macro/function.
88928         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
88929         (glthread_rwlock_destroy): New macro/function.
88930         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
88931         (glthread_recursive_lock_init): New macro/function.
88932         (gl_recursive_lock_init): Define as wrapper around
88933         glthread_recursive_lock_init.
88934         (glthread_recursive_lock_lock): New macro/function.
88935         (gl_recursive_lock_lock): Define as wrapper around
88936         glthread_recursive_lock_lock.
88937         (glthread_recursive_lock_unlock): New macro/function.
88938         (gl_recursive_lock_unlock): Define as wrapper around
88939         glthread_recursive_lock_unlock.
88940         (glthread_recursive_lock_destroy): New macro/function.
88941         (gl_recursive_lock_destroy): Define as wrapper around
88942         glthread_recursive_lock_destroy.
88943         (glthread_once): New macro/function.
88944         (gl_once): Define as wrapper around glthread_once.
88945         Update function declarations.
88946         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
88947         glthread_rwlock_init. Return error code.
88948         (glthread_rwlock_rdlock_multithreaded): Renamed from
88949         glthread_rwlock_rdlock. Return error code.
88950         (glthread_rwlock_wrlock_multithreaded): Renamed from
88951         glthread_rwlock_wrlock. Return error code.
88952         (glthread_rwlock_unlock_multithreaded): Renamed from
88953         glthread_rwlock_unlock. Return error code.
88954         (glthread_rwlock_destroy_multithreaded): Renamed from
88955         glthread_rwlock_destroy. Return error code.
88956         (glthread_recursive_lock_init_multithreaded): Renamed from
88957         glthread_recursive_lock_init. Return error code.
88958         (glthread_recursive_lock_lock_multithreaded): Renamed from
88959         glthread_recursive_lock_lock. Return error code.
88960         (glthread_recursive_lock_unlock_multithreaded): Renamed from
88961         glthread_recursive_lock_unlock. Return error code.
88962         (glthread_recursive_lock_destroy_multithreaded): Renamed from
88963         glthread_recursive_lock_destroy. Return error code.
88964         (glthread_once_call): Make static.
88965         (glthread_once_multithreaded): Renamed from glthread_once.
88966         * lib/tls.h: Include <errno.h>.
88967         (glthread_tls_key_init): New macro/function.
88968         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
88969         (glthread_tls_set): New macro/function.
88970         (gl_tls_set): Define as wrapper around glthread_tls_set.
88971         (glthread_tls_key_destroy): New macro/function.
88972         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
88973         Update function declarations.
88974         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
88975         glthread_tls_get.
88976         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
88978 2008-08-04  Eric Blake  <ebb9@byu.net>
88980         gnumakefile: use space, not TAB, outside of targets
88981         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
88983 2008-08-02  Jim Meyering  <meyering@redhat.com>
88985         getdate.y: avoid locale-dependent date parsing failure
88986         In Turkish locales, getdate would fail to recognize keywords
88987         containing a lowercase "i".  The solution is not to rely on
88988         locale-sensitive case-conversion.
88989         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
88990         (lookup_word): Use c_toupper in place of toupper.
88991         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
88992         Reported by Vefa Bicakci <bicave@superonline.com> in
88993         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
88994         * modules/getdate (Depends-on): Add c-ctype.
88996 2008-08-02  Bruno Haible  <bruno@clisp.org>
88998         * gnulib-tool (func_import): When updating or creating a .gitignore
88999         file, prepend each added line with a slash, and ignore leading slashes
89000         from the existing lines.
89001         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
89003 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
89005         Portability fix for GNU make 3.79.1.
89006         * top/GNUmakefile: Avoid 'else COND', which older GNU make
89007         versions do not understand.
89009 2008-08-01  Bruno Haible  <bruno@clisp.org>
89011         Work around bug of HP-UX 10.20 cc with -0.0 literal.
89012         * tests/test-isnanf.h (zero): New variable.
89013         (main): Avoid literal -0.0f.
89014         * tests/test-isnand.h (zero): New variable.
89015         (main): Avoid literal -0.0.
89016         * tests/test-isnanl.h (zero): New variable.
89017         (main): Avoid literal -0.0L.
89018         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
89019         (test_float, test_double, test_long_double): Avoid literals -0.0f,
89020         -0.0, -0.0L.
89021         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
89022         (test_signbitd): Avoid literal -0.0.
89023         (test_signbitl): Avoid literal -0.0L.
89024         * tests/test-ceilf1.c (zero): New variable.
89025         (main): Avoid literal -0.0f.
89026         * tests/test-ceill.c (zero): New variable.
89027         (main): Avoid literal -0.0L.
89028         * tests/test-floorf1.c (zero): New variable.
89029         (main): Avoid literal -0.0f.
89030         * tests/test-floorl.c (zero): New variable.
89031         (main): Avoid literal -0.0L.
89032         * tests/test-roundf1.c (zero): New variable.
89033         (main): Avoid literal -0.0f.
89034         * tests/test-round1.c (zero): New variable.
89035         (main): Avoid literal -0.0.
89036         * tests/test-roundl.c (zero): New variable.
89037         (main): Avoid literal -0.0L.
89038         * tests/test-truncf1.c (zero): New variable.
89039         (main): Avoid literal -0.0f.
89040         * tests/test-trunc1.c (zero): New variable.
89041         (main): Avoid literal -0.0.
89042         * tests/test-truncl.c (zero): New variable.
89043         (main): Avoid literal -0.0L.
89044         * tests/test-frexp.c (zero): New variable.
89045         (main): Avoid literal -0.0.
89046         * tests/test-frexpl.c (zero): New variable.
89047         (main): Avoid literal -0.0L.
89048         * tests/test-ldexpl.c (zero): New variable.
89049         (main): Avoid literal -0.0L.
89050         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
89051         (zerod, zerol): New variables.
89052         (test_function): Avoid literals -0.0, -0.0L.
89053         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
89054         (zerod, zerol): New variables.
89055         (test_function): Avoid literals -0.0, -0.0L.
89056         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
89057         (zerod, zerol): New variables.
89058         (test_function): Avoid literals -0.0, -0.0L.
89059         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
89060         (zerod, zerol): New variables.
89061         (test_function): Avoid literals -0.0, -0.0L.
89062         * tests/test-strtod.c (zero): New variable.
89063         (main): Avoid literal -0.0.
89064         Reported by Jonathan C. Patschke <jp@centtech.com>.
89066 2008-07-31  Jim Meyering  <meyering@redhat.com>
89068         sha256.h: correct definition of SHA224_DIGEST_SIZE
89069         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
89070         Reported by Paulie Pena IV <paulie4@gmail.com>.
89071         Define as 224 / 8, rather than as a literal.
89072         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
89073         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
89074         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
89076 2008-07-31  Bruno Haible  <bruno@clisp.org>
89078         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
89079         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
89080         Reported by Jonathan Patschke <jp@centtech.com>.
89082 2008-07-31  Bruno Haible  <bruno@clisp.org>
89084         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
89085         Reported by Paolo Bonzini <bonzini@gnu.org>.
89087 2008-07-30  Eric Blake  <ebb9@byu.net>
89089         test-strtod: allow compilation without -lm
89090         * tests/test-strtod.c (main): Avoid link dependence on fabs.
89091         Reported by Dennis Clarke <blastwave@gmail.com>.
89093 2008-07-28  Jim Meyering  <meyering@redhat.com>
89095         bootstrap: work also when there are no .po files in po/
89096         * build-aux/bootstrap (update_po_files): Complete the change
89097         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
89099 2008-07-27  Jim Meyering  <meyering@redhat.com>
89101         * users.txt: Add zile.
89103 2008-07-26  Ben Pfaff  <blp@gnu.org>
89105         Add missing dependencies on new m4/exponent[fdl].m4 files.
89106         * modules/isnanf-nolibm: Add m4/exponentf.m4.
89107         * modules/isnand-nolibm: Add m4/exponentd.m4.
89108         * modules/isnanl-nolibm: Add m4/exponentl.m4.
89109         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
89110         m4/isnan[fdl].m4, because the macros actually used moved.
89111         Reported by Jim Meyering.
89113 2008-07-14  Ben Pfaff  <blp@gnu.org>
89115         Add isinf module.
89116         * lib/isinf.c: New file.
89117         * lib/math.in.h: Define isinf macro if we have decided to replace
89118         it.
89119         * m4/isinf.m4: New file.
89120         * m4/math_h.m4: Initialize and substitute variables for isinf
89121         module.
89122         * modules/isinf: New file.
89123         * modules/isinf-tests: New file.
89124         * modules/math: Add substitutions for new module.
89125         * tests/test-isinf.c: New file.
89126         * doc/posix-functions/isinf.texi: Mention new module.
89127         * MODULES.html.sh: Mention new module.
89129 2008-07-14  Ben Pfaff  <blp@gnu.org>
89131         Factor out some macros for use by additional modules.
89132         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
89133         exponentf.m4.
89134         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
89135         exponentd.m4.
89136         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
89137         file exponentl.m4.
89138         * m4/exponentf.m4: New file.
89139         * m4/exponentd.m4: New file.
89140         * m4/exponentl.m4: New file.
89141         * modules/isnanf: Use new file m4/exponentf.m4.
89142         * modules/isnand: Use new file m4/exponentd.m4.
89143         * modules/isnanl: Use new file m4/exponentl.m4.
89145 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
89147         mktime.c: normalize tp->tm_isdst value to -1/0/1.
89148         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
89149         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
89150         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
89152         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
89153         readlink on platforms without PATH_MAX.
89155 2008-07-21  Eric Blake  <ebb9@byu.net>
89157         Warn, not fail, on stale version.
89158         * top/GNUmakefile (_curr-ver): Tone down previous patch.
89160         Don't allow installation with stale devel version number.
89161         * top/GNUmakefile (_is-install-target): New macro.
89162         (_curr-ver): Forbid installation with stale version number.
89164 2008-07-20  Bruno Haible  <bruno@clisp.org>
89166         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
89167         TESTS_ENVIRONMENT.
89168         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
89170 2008-07-20  Bruno Haible  <bruno@clisp.org>
89172         * lib/c-stack.h (c_stack_action): Add documentation.
89173         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
89175 2008-07-20  Bruno Haible  <bruno@clisp.org>
89177         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
89178         * modules/readlink (License): Likewise.
89180 2008-07-17  Eric Blake  <ebb9@byu.net>
89182         * modules/c-stack (Link): Fix typo.
89184         Make c-stack use libsigsegv, when available.
89185         * modules/c-stack (Depends-on): Add libsigsegv.
89186         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
89187         needed.
89188         * lib/c-stack.c (SIGSTKSZ): Define fallback.
89189         (segv_handler, overflow_handler, c_stack_action)
89190         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
89191         implementation when libsigsegv is available, but only when using
89192         the library is necessary.
89193         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
89194         comment, explaining why XSI check fails on Linux.
89195         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
89196         * tests/test-c-stack2.sh: Tweak skip message.
89197         * NEWS: Document new link-time requirements.
89199 2008-07-16  Eric Blake  <ebb9@byu.net>
89201         c-stack: Expose false positives when not using libsigsegv.
89202         * modules/c-stack-tests (Files): Expand test.
89203         * tests/test-c-stack.c (main): Add means to conditionally trigger
89204         non-overflow SIGSEGV.
89205         * tests/test-c-stack2.sh: New file.
89207 2008-07-14  Bruno Haible  <bruno@clisp.org>
89209         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
89210         Reported by Eric Blake.
89212 2008-07-14  Sam Steingold  <sds@gnu.org>
89213             Bruno Haible  <bruno@clisp.org>
89215         New module libsigsegv.
89216         * modules/libsigsegv: New file.
89217         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
89218         modifications.
89219         * MODULES.html.sh (Signal handling): New section.
89221 2008-07-14  Bruno Haible  <bruno@clisp.org>
89223         * modules/unictype/ctype-* (Description): Add the word "function".
89224         Improves the resulting doc in MODULES.html.
89226 2008-07-12  Ben Pfaff  <blp@gnu.org>
89228         Add longlong module.
89229         * modules/longlong: New file.
89231 2008-07-12  Bruno Haible  <bruno@clisp.org>
89233         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
89234         to empty.
89236 2008-07-10  Ben Pfaff  <blp@gnu.org>
89238         Add isnan module.
89239         * doc/posix-functions/isnan.texi: Mention new module.
89240         * lib/math.in.h: Define isnan macro if we have decided to replace
89241         it.
89242         * m4/isnan.m4: New file.
89243         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
89244         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
89245         also.
89246         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
89247         redundancy.
89248         * m4/math_h.m4: Initialize and substitute variables for isnan
89249         module.
89250         * modules/isnan: New file.
89251         * modules/isnan-tests: New file.
89252         * modules/math: Add substitutions for new module.
89253         * tests/test-isnan.c: New file.
89254         * MODULES.html.sh: Mention new module.
89256 2008-07-10  Ben Pfaff  <blp@gnu.org>
89258         Add isnanf module.
89259         * lib/isnanf.m4: New file.
89260         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
89261         (gl_HAVE_ISNANF_IN_LIBM): New macro.
89262         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
89263         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
89264         * modules/isnanf: New file.
89265         * modules/isnanf-tests: New file.
89266         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
89267         files.
89268         * tests/test-isnanf-nolibm.c: factored most of its contents into
89269         new file tests/test-isnanf.h.
89270         * tests/test-isnanf.h: New file.
89271         * tests/test-isnanf.c: New file.
89272         * MODULES.html.sh: Mention new module.
89273         * doc/glibc-functions/isnanf.texi: Mention new module.
89275 2008-07-10  Ben Pfaff  <blp@gnu.org>
89277         Add isnand module.
89278         * lib/isnand.h: New file.
89279         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
89280         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
89281         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
89282         functionality also.
89283         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
89284         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
89285         (gl_HAVE_ISNAND_IN_LIBM): New macro.
89286         * modules/isnand: New file.
89287         * modules/isnand-tests: New file.
89288         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
89289         files.
89290         * tests/test-isnand-nolibm.c: factored most of its contents into
89291         new file tests/test-isnand.h.
89292         * tests/test-isnand.h: New file.
89293         * tests/test-isnand.c: New file.
89294         * MODULES.html.sh: Mention new module.
89296 2008-07-10  Ben Pfaff  <blp@gnu.org>
89298         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
89299         * lib/isnand.h: Rename lib/isnand-nolibm.h.
89300         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
89301         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
89302         * modules/isnanf-nolibm: Update references to renamed files.
89303         * modules/isnand-nolibm: Likewise.
89304         * modules/isnanf-nolibm-tests: Likewise.
89305         * modules/isnand-nolibm-tests: Likewise.
89306         * lib/frexp.c: Likewise.
89307         * lib/isfinite.c: Likewise.
89308         * lib/signbitd.c: Likewise.
89309         * lib/signbitf.c: Likewise.
89310         * lib/vasnprintf.c: Likewise.
89311         * tests/test-ceilf1.c: Likewise.
89312         * tests/test-ceilf2.c: Likewise.
89313         * tests/test-floorf1.c: Likewise.
89314         * tests/test-floorf2.c: Likewise.
89315         * tests/test-frexp.c: Likewise.
89316         * tests/test-round1.c: Likewise.
89317         * tests/test-round2.c: Likewise.
89318         * tests/test-roundf1.c: Likewise.
89319         * tests/test-strtod.c: Likewise.
89320         * tests/test-trunc1.c: Likewise.
89321         * tests/test-trunc2.c: Likewise.
89322         * tests/test-truncf1.c: Likewise.
89323         * tests/test-truncf2.c: Likewise.
89324         * NEWS: Mention the renamed header files.
89326 2008-07-11  Jim Meyering  <meyering@redhat.com>
89328         vc-list-files: make the last-resort awk code more portable
89329         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
89330         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
89331         does not support it.
89333 2008-07-10  Eric Blake  <ebb9@byu.net>
89335         Work with tar's bootstrap.
89336         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
89337         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
89338         an m4 comment.
89340 2008-07-09  Jim Meyering  <meyering@redhat.com>
89342         posix-shell.m4: fix typo that made this test malfunction
89343         * m4/posix-shell.m4: Remove capitalization in variable name.
89345 2008-07-08  Bruno Haible  <bruno@clisp.org>
89347         * m4/onceonly.m4: Update comments.
89348         Reported by Ben Pfaff <blp@cs.stanford.edu>.
89350 2008-07-04  Jim Meyering  <meyering@redhat.com>
89352         * users.txt: Add vc-dwim.
89353         (bison, coreutils): Use the gitweb URL.
89355 2008-07-03  Jim Meyering  <meyering@redhat.com>
89357         * users.txt: Add libffcall.  From Sam Steingold.
89359 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
89361         getdate.y: do not ignore TZ with relative day, month or year offset
89362         * lib/getdate.y (get_date): Move the tz-handling block to follow the
89363         relative-date-handling, since otherwise, the latter would clobber the
89364         sole output (an updated Start value) of the tz-handling block.
89365         * tests/test-getdate.c: Tests for the fix
89367 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
89369         Recognize 'foo_LIBRARIES += libgnu.a'.
89370         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
89371         makefile snippet has already specified an installation location,
89372         also using '+='.
89374 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
89376         getdate.y: factor out common actions
89377         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
89378         Use them in place of open-coded actions.
89380 2008-07-01  Simon Josefsson  <simon@josefsson.org>
89382         Add self-test for getdate module.
89383         * modules/getdate-tests: New file.
89384         * tests/test-getdate.c: New file.
89386 2008-06-29  Bruno Haible  <bruno@clisp.org>
89388         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
89389         .gitignore.
89390         Reported by Sylvain Beucler <beuc@beuc.net>.
89392 2008-06-29  Bruno Haible  <bruno@clisp.org>
89394         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
89395         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
89397 2008-06-29  Bruno Haible  <bruno@clisp.org>
89399         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
89400         EXTRA_DIST.
89401         Reported by Sylvain Beucler <beuc@beuc.net>.
89403 2008-06-26  Jim Meyering  <meyering@redhat.com>
89405         make several modules depend on the "open" module
89406         This provides slightly increased consistency when opening-for-write
89407         the name of a non-directory spelled with a trailing slash.
89408         * modules/chdir-safer: Likewise.
89409         * modules/chown: Likewise.
89410         * modules/clean-temp: Likewise.
89411         * modules/copy-file: Likewise.
89412         * modules/fchdir: Likewise.
89413         * modules/fcntl-safer: Likewise.
89414         * modules/pipe: Likewise.
89415         * modules/utime: Likewise.
89416         Prompted by Eric Blake and Bruno Haible.
89418 2008-06-24  Andreas Schwab  <schwab@suse.de>
89420         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
89421         literals can be used as initializers for global variables.
89423 2008-06-23  Eric Blake  <ebb9@byu.net>
89425         Make gnulib-cache.m4 easier to diff.
89426         * gnulib-tool (func_import): Allow newlines when reading cached
89427         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
89429 2008-06-23  Bruno Haible  <bruno@clisp.org>
89431         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
89432         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
89433         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
89434         m4/signalblocking.m4.
89435         (gl_PREREQ_SIGACTION): Don't invoke it.
89436         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
89437         gl_PREREQ_SIG_HANDLER_H.
89438         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
89439         Don't check for sigaction here.
89441 2008-06-23  Bruno Haible  <bruno@clisp.org>
89443         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
89444         (install_handlers): Don't set the SA_RESETHAND flag.
89446 2008-06-23  Bruno Haible  <bruno@clisp.org>
89448         * m4/sigaction.m4: Comment fixes.
89449         * lib/signal.in.h: Likewise.
89451 2008-06-23  Eric Blake  <ebb9@byu.net>
89453         Fix typo.
89454         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
89456         Avoid SA_ namespace.
89457         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
89458         Reported by Ralf Wildenhues.
89460         Avoid test failure due to SA_RESTORER.
89461         * tests/test-sigaction.c (SA_MASK): New macro.
89462         (main): Avoid failing due to extension flags being set.
89463         Reported by Jim Meyering.
89465         Revert use of sig-handler.h in sigprocmask.c.
89466         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
89467         it requires the existence of struct sigaction.
89468         * lib/sigprocmask.c (handler_t): Restore typedef.
89469         (rpl_signal, old_handlers): Use local type.
89471 2008-06-22  Bruno Haible  <bruno@clisp.org>
89473         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
89474         conditionally.
89475         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
89477 2008-06-22  Bruno Haible  <bruno@clisp.org>
89479         * doc/posix-functions/siginterrupt.texi: Move note.
89481         * lib/signal.in.h (SA_RESTART): New macro.
89482         * lib/sigaction.c: Update comment.
89484         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
89486         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
89487         (gl_PREREQ_SIGPROCMASK): Invoke it.
89488         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
89490         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
89492         * lib/sigprocmask.c: Update a comment.
89494 2008-06-21  Eric Blake  <ebb9@byu.net>
89496         Use sigaction module rather than signal().
89497         * modules/c-stack (Depends-on): Add sigaction.
89498         * modules/fatal-signal (Depends-on): Likewise.
89499         * modules/nanosleep (Depends-on): Likewise.
89500         * modules/sigprocmask (Files): Add sig-handler.h.
89501         * modules/sigaction (Files): Likewise.
89502         * lib/sig-handler.h (get_handler): New file, suggested by Paul
89503         Eggert.
89504         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
89505         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
89506         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
89507         (init_fatal_signals): Likewise.
89508         * lib/nanosleep.c (rpl_nanosleep): Likewise.
89509         (siginterrupt): Delete fallback.
89510         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
89511         instead.
89512         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
89513         siginterrupt.
89515         New module sigaction, for mingw.
89516         * modules/sigaction: New module...
89517         * modules/sigaction-tests: ...and its test.
89518         * m4/sigaction.m4: New file.
89519         * lib/sigaction.c: Likewise.
89520         * tests/test-sigaction.c: Likewise.
89521         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
89522         * modules/signal (Makefile.am): Likewise.
89523         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
89524         needed.
89525         * doc/posix-headers/signal.texi (signal.h): Mention provided
89526         types.
89527         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
89528         that sigaction is preferable.
89529         * doc/posix-functions/sigaction.texi (sigaction): Mention new
89530         module.
89531         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
89532         sigaction.
89534         Improve robustness of sigprocmask by overriding signal.
89535         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
89536         is in use.
89537         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
89538         (SIGKILL, SIGSTOP): Provide fallbacks.
89539         (rpl_signal): Implement.
89540         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
89541         signal can be called inside handlers.
89543         Fix nanosleep module on mingw.
89544         * modules/nanosleep (Depends-on): Add sys_select.
89545         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
89547         Fix licensing of sigprocmask.
89548         * modules/raise (License): Relicense as LGPL.
89550 2008-06-21  Bruno Haible  <bruno@clisp.org>
89552         * lib/propername.c (proper_name_utf8): Don't use the transliterated
89553         result if it contains question marks.
89554         Reported by Michael Geng <linux@michaelgeng.de>.
89556 2008-06-19  Bruno Haible  <bruno@clisp.org>
89558         Fix CVS-ism.
89559         * doc/gnulib.texi: Include updated-stamp.texi.
89560         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
89561         (updated-stamp.texi): New rule.
89562         (gnulib.info): Depend on it.
89563         * doc/.gitignore: Add updated-stamp.texi.
89564         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
89566 2008-06-19  Bruno Haible  <bruno@clisp.org>
89568         * doc/Makefile (gnulib.info): Update and simplify dependencies.
89569         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
89571 2008-06-19  Eric Blake  <ebb9@byu.net>
89573         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
89574         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
89575         Reported by Stepan Kasal.
89577 2008-06-18  Bruno Haible  <bruno@clisp.org>
89579         * lib/fatal-signal.c (init_fatal_signals): Add comment.
89580         Reported by Eric Blake.
89582 2008-06-18  Eric Blake  <ebb9@byu.net>
89584         Work around cygwin 1.5.25 strsignal bug.
89585         * tests/test-strsignal.c: Allow for const char *.
89586         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
89588 2008-06-18  Simon Josefsson  <simon@josefsson.org>
89590         * users.txt: Update URL to article and add author/date
89591         information.
89593 2008-06-17  Bruno Haible  <bruno@clisp.org>
89595         New macro gl_DISABLE_THREADS.
89596         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
89597         if the user did not pass --enable-threads or --disable-threads option.
89598         (gl_DISABLE_THREADS): New macro.
89599         Reported by Eric Blake <ebb9@byu.net>.
89601 2008-06-17  Bruno Haible  <bruno@clisp.org>
89603         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
89604         when the macro ignores it.
89605         Based on a patch by Eric Blake <ebb9@byu.net>.
89607 2008-06-17  Bruno Haible  <bruno@clisp.org>
89609         * modules/tls (License): Change to LGPLv2+.
89610         Reported by Eric Blake.
89612 2008-06-17  Eric Blake  <ebb9@byu.net>
89614         Simplify c-stack prerequisites.
89615         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
89616         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
89617         no longer requires <ucontext.h> to exist.  Optimize setrlimit
89618         check.
89619         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
89620         <sys/resource.h>.
89622         Move c-stack test into testsuite.
89623         * modules/c-stack-tests: New file.
89624         * lib/c-stack.c [DEBUG]: Move test program...
89625         * tests/test-c-stack.c: ...into this new file.  Skip rather than
89626         fail test if sigaltstack is lacking.
89627         * tests/test-c-stack.sh: New driver file.
89629 2008-06-16  Eric Blake  <ebb9@byu.net>
89631         Use raise module consistently.
89632         * modules/fatal-signal (Depends-on): Add raise.
89633         * modules/sigprocmask (Depends-on): Likewise.
89634         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
89635         * lib/sigprocmask.c (sigprocmask): Likewise.
89636         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
89637         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
89639         Fix compliance bug in sigpending.
89640         * lib/sigprocmask.c (sigpending): Return pending array via
89641         parameter, not return value.
89643 2008-06-14  Eric Blake  <ebb9@byu.net>
89645         Improve obstack-printf test code.
89646         * tests/test-obstack-printf.c (test_function): Fix comment, and
89647         simplify usage of obstack_* in macros.  Add a test for coverage.
89648         Reported by Bruno Haible.
89650 2008-06-14  Bruno Haible  <bruno@clisp.org>
89652         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
89653         array size as a constant, not as a const variable.
89654         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
89655         AC_USE_SYSTEM_EXTENSIONS.
89656         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
89657         Test whether the obstack_printf function actually exists.
89658         * modules/obstack-printf (Depends-on): Add extensions.
89659         (Include): Remove obstack.h.
89660         * modules/obstack-printf-posix (Depends-on): Add extensions.
89661         (Include): Remove obstack.h.
89663 2008-06-13  Eric Blake  <ebb9@byu.net>
89665         Add obstack-printf and obstack-printf-posix modules.
89666         * modules/obstack-printf: New file.
89667         * modules/obstack-printf-posix: Likewise.
89668         * MODULES.html.sh (Misc): Mention them.
89669         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
89670         Likewise.
89671         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
89672         Likewise.
89673         * modules/stdio (Makefile.am): Accomodate new modules.
89674         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
89675         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
89676         Declare.
89677         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
89678         functions.
89679         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
89680         (gl_REPLACE_OBSTACK_PRINTF): New macros
89681         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
89682         * tests/test-obstack-printf.c: New file.
89683         * modules/obstack-printf-tests: Likewise.
89684         * modules/obstack-printf-posix-tests: Likewise.
89686 2008-06-11  Bruno Haible  <bruno@clisp.org>
89688         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
89689         * lib/open.c: Include errno.h.
89690         (open): Fail when attempting to write to a file that has a trailing
89691         slash.
89692         * tests/test-open.c (main): Test against trailing slash bug.
89693         * doc/posix-functions/open.texi: Mention the trailing slash bug.
89695 2008-06-10  Bruno Haible  <bruno@clisp.org>
89697         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
89698         for $? to work inside the trap command, with various /bin/sh-s.
89699         * tests/test-vc-list-files-cvs.sh: Likewise.
89701 2008-06-10  Bruno Haible  <bruno@clisp.org>
89703         * lib/acl-internal.h: Don't include gettext.h here.
89704         * lib/set-mode-acl.c: Include gettext.h here.
89705         * lib/copy-acl.c: Likewise.
89707 2008-06-10  Bruno Haible  <bruno@clisp.org>
89709         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
89710         * lib/wait-process.c (wait_subprocess): Likewise.
89711         * lib/execute.h (execute): Add termsigp argument.
89712         * lib/execute.c (execute): Likewise.
89713         * lib/csharpcomp.c (compile_csharp_using_pnet,
89714         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
89715         * lib/csharpexec.c (execute_csharp_using_pnet,
89716         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
89717         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
89718         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
89719         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
89720         is_jikes_present): Update.
89721         * lib/javaexec.c (execute_java_class): Update.
89722         * lib/javaversion.c (execute_and_read_line): Update.
89723         * NEWS: Document the changes.
89724         Reported by Eric Blake.
89726 2008-06-10  Eric Blake  <ebb9@byu.net>
89728         Add missing include.
89729         * tests/test-strstr.c (includes): Add <signal.h>.
89730         * tests/test-strcasestr.c (includes): Likewise.
89731         * tests/test-memmem.c (includes): Likewise.
89733 2008-06-10  Bruno Haible  <bruno@clisp.org>
89735         * lib/wait-process.c (wait_subprocess): Add an assertion.
89737 2008-06-10  Bruno Haible  <bruno@clisp.org>
89739         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
89741 2008-06-10  Bruno Haible  <bruno@clisp.org>
89743         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
89744         using alarm().
89745         * tests/test-strcasestr.c (main): Likewise.
89746         * tests/test-strstr.c (main): Likewise.
89748 2008-06-09  Bruno Haible  <bruno@clisp.org>
89750         Work around the Solaris 10 ACE ACLs ABI change.
89751         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
89752         declare if ACL_NO_TRIVIAL is present.
89753         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
89754         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
89755         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
89756         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
89757         define if ACL_NO_TRIVIAL is present.
89758         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
89759         and use the current ABI.
89760         (file_has_acl): Use same #if condition as elsewhere.
89761         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
89762         in use, and use the current ABI.
89763         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
89764         Reported by Jim Meyering.
89766 2008-06-09  Eric Blake  <ebb9@byu.net>
89768         Work around environments that (stupidly) ignore SIGALRM.
89769         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
89770         before using alarm().
89771         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
89772         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
89773         Reported by Ian Beckwith <ianb@erislabs.net>.
89775         Produce autobuild blurb earlier in log.
89776         * modules/autobuild (configure.ac-early): Move AB_INIT here.
89778 2008-06-09  Jim Meyering  <meyering@redhat.com>
89779         and Ondřej Vašík  <ovasik@redhat.com>
89781         utimens.c: correct kernel bug work-around
89782         Ondřej Vašík found that the invalid return value of 280 indicates
89783         failure, not success, and the kernel bug we're trying to work
89784         around affects not just the utimensat call, but also the fallback
89785         futimens call.
89786         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
89787         not success.
89788         [HAVE_FUTIMENS]: Use the same work-around, here.
89790 2008-06-09  Jim Meyering  <meyering@redhat.com>
89792         add more guards around definition of ACE_-related code
89793         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
89794         ALLOW and ACE_OWNER are also defined.
89796 2008-06-08  Bruno Haible  <bruno@clisp.org>
89798         * lib/acl-internal.h: Add me as co-author.
89799         * lib/file-has-acl.c: Likewise.
89800         * lib/set-mode-acl.c: Likewise.
89801         * lib/copy-acl.c: Likewise.
89803 2008-06-08  Bruno Haible  <bruno@clisp.org>
89805         Add support for AIX ACLs.
89806         * lib/acl-internal.h (acl_nontrivial): New declaration.
89807         * lib/file-has-acl.c (acl_nontrivial): New function.
89808         (file_has_acl): Add implementation using AIX 4 ACL API.
89809         * lib/set-mode-acl.c (qset_acl): Likewise.
89810         * lib/copy-acl.c (qcopy_acl): Likewise.
89812 2008-06-08  Bruno Haible  <bruno@clisp.org>
89814         Add support for HP-UX ACLs.
89815         * lib/acl-internal.h (acl_nontrivial): New declaration.
89816         * lib/file-has-acl.c (acl_nontrivial): New function.
89817         (file_has_acl): Add implementation using HP-UX 11 ACL API.
89818         * lib/set-mode-acl.c (qset_acl): Likewise.
89819         * lib/copy-acl.c (qcopy_acl): Likewise.
89821 2008-06-08  Bruno Haible  <bruno@clisp.org>
89823         Add support for Cygwin ACLs.
89824         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
89825         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
89826         the chmod_or_fchmod call.
89827         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
89829 2008-06-08  Bruno Haible  <bruno@clisp.org>
89831         Fix bug with setuid modes in Solaris 10+ code.
89832         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
89833         succeeded, when the mode contains some special bits.
89835 2008-06-08  Bruno Haible  <bruno@clisp.org>
89837         Add support for Solaris 7..10 ACLs.
89838         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
89839         declarations.
89840         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
89841         functions.
89842         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
89843         * lib/set-mode-acl.c (qset_acl): Likewise.
89844         * lib/copy-acl.c (qcopy_acl): Likewise.
89846 2008-06-08  Bruno Haible  <bruno@clisp.org>
89848         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
89849         declaration.
89850         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
89851         (acl_access_nontrivial): Remove MacOS X case.
89852         (file_has_acl): Use acl_extended_nontrivial.
89853         * lib/copy-acl.c (qcopy_acl): Likewise.
89855 2008-06-08  Bruno Haible  <bruno@clisp.org>
89857         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
89859 2008-06-08  Jim Meyering  <meyering@redhat.com>
89861         * modules/acl (Maintainer): Add Bruno Haible.
89863 2008-06-07  Bruno Haible  <bruno@clisp.org>
89865         Improve support for Tru64 ACLs.
89866         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
89867         ACL on OSF/1.
89869 2008-06-07  Bruno Haible  <bruno@clisp.org>
89871         Add support for MacOS X ACLs.
89872         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
89873         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
89874         * lib/set-mode-acl.c (qset_acl): Likewise.
89875         * lib/copy-acl.c (qcopy_acl): Likewise.
89877 2008-06-07  Bruno Haible  <bruno@clisp.org>
89879         Fix memory leak introduced on 2008-05-22.
89880         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
89881         use.
89883 2008-06-07  Bruno Haible  <bruno@clisp.org>
89885         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
89886         to construct an empty ACL.
89888 2008-06-07  Bruno Haible  <bruno@clisp.org>
89890         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
89891         precisely.
89892         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
89894 2008-06-07  Bruno Haible  <bruno@clisp.org>
89896         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
89897         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
89899 2008-06-07  Bruno Haible  <bruno@clisp.org>
89901         * doc/posix-functions/_setjmp.texi: Explain the use of this function
89902         regardless of POSIX.
89903         * doc/posix-functions/_longjmp.texi: Likewise.
89904         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
89905         SystemV platform in this case.
89907 2008-06-06  Eric Blake  <ebb9@byu.net>
89909         Document abort() bugs.
89910         * doc/posix-functions/abort.texi (abort): Mention anomalies.
89912         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
89913         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
89914         sigsetjmp.
89915         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
89916         siglongjmp, but only as a macro.
89917         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
89918         is obsolete.
89919         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
89921         Tweak documentation to cover cygwin argz bugs.
89922         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
89923         argz bug fix; no code change needed since no cygwin releases
89924         occurred between the last fix and the bug being tested.
89925         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
89926         module and recently fixed cygwin bugs.
89927         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
89928         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
89929         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
89930         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
89931         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
89932         Likewise.
89933         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
89934         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
89935         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
89936         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
89937         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
89938         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
89939         Likewise.
89941         Avoid gcc warning on cygwin.
89942         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
89943         !ACL_NO_TRIVIAL]: Avoid unused variable.
89945 2008-06-05  Eric Blake  <ebb9@byu.net>
89947         Be tolerant of UNKNOWN version in gnulib-tool test dir.
89948         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
89949         git-version-gen fails to come up with a version.
89950         Reported by Simon Josefsson.
89952 2008-06-05  Jim Meyering  <meyering@redhat.com>
89953             Paul Eggert  <eggert@cs.ucla.edu>
89955         utimens.c: work around a probable Linux kernel bug
89956         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
89957         appears to be a kernel bug that causes utimensat to return 280
89958         instead of 0, indicating success.
89960 2008-06-04  Bruno Haible  <bruno@clisp.org>
89962         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
89963         2008-06-01 commit.
89965 2008-06-04  Bruno Haible  <bruno@clisp.org>
89967         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
89968         * lib/file-has-acl.c (acl_access_nontrivial): New function.
89969         (file_has_acl): Use it. Save errno afterwards.
89970         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
89972 2008-06-03  Bruno Haible  <bruno@clisp.org>
89974         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
89975         draft code. Simplify #ifs.
89976         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
89977         Put Solaris code after POSIX-draft code. Fix comments regarding
89978         Solaris 10, HP-UX. Mention Cygwin.
89979         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
89981 2008-06-03  Eric Blake  <ebb9@byu.net>
89983         Provide fallback for older kernels.
89984         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
89985         Provide runtime fallback if kernel lacks support.
89986         Reported by Mike Frysinger.
89988 2008-06-02  Bruno Haible  <bruno@clisp.org>
89990         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
89991         it exists.
89993 2008-06-02  Bruno Haible  <bruno@clisp.org>
89995         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
89996         * lib/copy-acl.c (qcopy_acl): Update comment.
89998 2008-06-02  Bruno Haible  <bruno@clisp.org>
90000         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
90001         like ACL APIs.
90003 2008-06-02  Bruno Haible  <bruno@clisp.org>
90005         * tests/test-file-has-acl.sh: Use different code for Cygwin.
90006         * tests/test-set-mode-acl.sh: Likewise.
90007         * tests/test-copy-acl.sh: Likewise.
90008         * tests/test-copy-file.sh: Likewise.
90010 2008-06-02  Bruno Haible  <bruno@clisp.org>
90012         * tests/test-file-has-acl.sh: Remove unused code.
90014 2008-06-01  Bruno Haible  <bruno@clisp.org>
90016         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
90017         (copy_acl): Just a wrapper around qcopy_acl that emits the error
90018         messages.
90019         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
90021 2008-06-01  Bruno Haible  <bruno@clisp.org>
90023         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
90024         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
90025         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
90026         APIs.
90027         * modules/acl-tests (configure.ac): Remove tests now contained in
90028         m4/acl.m4.
90030 2008-06-02  Jim Meyering  <meyering@redhat.com>
90032         announce-gen: use a better key-server host name
90033         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
90034         it may be more consistently reliable.  Suggested by Werner Koch
90035         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
90037 2008-06-01  Bruno Haible  <bruno@clisp.org>
90039         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
90040         Reported by Voroskoi Andras <voroskoi@gmail.com>.
90042 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
90044         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
90046 2008-06-01  Bruno Haible  <bruno@clisp.org>
90048         New ACL tests.
90049         * tests/test-file-has-acl.sh: New file.
90050         * tests/test-file-has-acl.c: New file.
90051         * tests/test-set-mode-acl.sh: New file.
90052         * tests/test-set-mode-acl.c: New file.
90053         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
90054         * tests/test-copy-acl.c: New file.
90055         * modules/acl-tests: New file, based on modules/copy-file-tests.
90056         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
90057         (Depends-on): Add acl-tests.
90058         (configure.ac): Remove checks.
90059         (Makefile.am): Don't create test-sameacls program here any more.
90061 2008-06-01  Bruno Haible  <bruno@clisp.org>
90063         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
90064         * tests/test-sameacls.c: Include progname.h.
90065         (main): Invoke set_program_name. Portability fixes for MacOS X,
90066         Solaris, HP-UX.
90068 2008-06-01  Bruno Haible  <bruno@clisp.org>
90070         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
90071         function.
90072         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
90074 2008-06-01  Bruno Haible  <bruno@clisp.org>
90076         * modules/rpmatch (Depends-on): Add strdup.
90078 2008-06-01  Bruno Haible  <bruno@clisp.org>
90080         * lib/pipe.c: Include unistd-safer.h.
90081         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
90082         * modules/pipe (Depends-on): Add unistd-safer.
90084 2008-05-30  Simon Josefsson  <simon@josefsson.org>
90086         * modules/autobuild (configure.ac): Call AB_INIT.
90088 2008-05-30  Simon Josefsson  <simon@josefsson.org>
90090         * tests/test-getaddrinfo.c: Don't print debug messages by default.
90091         Suggested by Bruno Haible <bruno@clisp.org>.
90093 2008-05-30  Simon Josefsson  <simon@josefsson.org>
90095         * tests/test-base64.c: Cast size_t to unsigned long when invoking
90096         printf.  Use %lu instead of %d.  Reported by Bruno Haible
90097         <bruno@clisp.org>.
90099 2008-05-29  Eric Blake  <ebb9@byu.net>
90101         Prefer new POSIX 200x interfaces over futimesat.
90102         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
90103         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
90104         when available.
90105         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
90107 2008-05-28  Bruno Haible  <bruno@clisp.org>
90109         * modules/stpcpy (License): Change to LGPLv2+.
90110         Requested by David Lutterkort <dlutter@redhat.com>.
90112 2008-05-27  Bruno Haible  <bruno@clisp.org>
90114         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
90115         current mingw.
90116         Reported by Jose E. Marchesi <jemarch@gnu.org>.
90118 2008-05-27  Bruno Haible  <bruno@clisp.org>
90120         * modules/iconv_open (Link): New section, from module 'iconv'.
90121         * modules/striconv (Link): Likewise.
90122         * modules/striconveh (Link): Likewise.
90123         * modules/xstriconv (Link): Likewise.
90124         * modules/unicodeio (Link): Likewise.
90125         * modules/propername (Link): Likewise.
90126         Reported by Jim Meyering.
90128 2008-05-26  Jim Meyering  <meyering@redhat.com>
90130         sha256: do not artificially restrict buffer length to be < 2^32
90131         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
90132         uint32_t to size_t.
90133         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
90134         to match.
90136         avoid unaligned access errors, e.g., on sparc
90137         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
90138         direct access through a possibly-unaligned uint64* pointer.
90139         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
90140         direct access through a possibly-unaligned uint32* pointer.
90141         Prompted by this patch from Tom "spot" Callaway:
90142         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
90144         sha512.c: fix typo in comment
90145         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
90147 2008-05-25  Bruno Haible  <bruno@clisp.org>
90149         * lib/set-mode-acl.c: Renamed from lib/acl.c.
90150         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
90151         (Makefile.am): Update lib_SOURCES.
90153 2008-05-25  Bruno Haible  <bruno@clisp.org>
90155         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
90157 2008-05-25  Jim Meyering  <meyering@redhat.com>
90159         useless-if-before-free: freed expr may have white-space differences
90160         * build-aux/useless-if-before-free: Recognize cases in which the
90161         freed expression differs from the tested one in embedded white
90162         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
90163         $1 was used, so we can't make any regexp shy.  Improved tests now
90164         detect this.
90166         useless-if-before-free: accept white space in the expression.
90167         * build-aux/useless-if-before-free: For now, any white space
90168         in the expression must be identical in the free argument.
90170         useless-if-before-free: efficiency tweak
90171         * build-aux/useless-if-before-free: Make the expression-matching
90172         regexp "shy".
90173         Make the *outer* regexp shy, not the expr-matching one.
90175         update code-in-comment to accept cast of free arg
90176         * build-aux/useless-if-before-free: Update regexp.
90178 2008-05-25  Bruno Haible  <bruno@clisp.org>
90180         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
90181         * modules/copy-file-tests (Files, Makefile.am): Update.
90182         * tests/test-copy-file.c (func_test_copy): Update.
90184 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
90186         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
90188 2008-05-23  Bruno Haible  <bruno@clisp.org>
90190         Improve support for ACLs on OSF/1.
90191         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
90192         Remove fallback for unknown flavors of ACLs.
90194 2008-05-22  Bruno Haible  <bruno@clisp.org>
90196         Add support for ACLs on OSF/1.
90197         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
90198         replacements.
90199         (acl_free_text): New macro fallback.
90200         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
90201         acl_free.
90202         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
90203         acl_free_text function. Require AC_C_INLINE.
90205 2008-05-22  Bruno Haible  <bruno@clisp.org>
90207         Make copy_acl work on MacOS X 10.5.
90208         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
90209         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
90210         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
90211         If MODE_INSIDE_ACL, don't assume that every system has the same text
90212         representation for ACLs as FreeBSD.
90213         * lib/copy-acl.c (copy_acl): Add support for platforms with
90214         !MODE_INSIDE_ACL.
90215         * lib/file-has-acl.c (file_has_acl): Likewise.
90216         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
90217         FreeBSD, MacOS X, or IRIX, respectively.
90219 2008-05-22  Bruno Haible  <bruno@clisp.org>
90221         * lib/acl.h: Don't include <sys/acl.h>.
90222         (GETACLCNT): Move fallback to lib/acl-internal.h.
90223         * lib/acl-internal.h: Include <sys/acl.h> here.
90224         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
90226 2008-05-22  Bruno Haible  <bruno@clisp.org>
90228         Split off copy_acl function to separate file.
90229         * lib/copy-acl.c: New file, extracted from lib/acl.c.
90230         * lib/acl.c (copy_acl): Moved function to separate file.
90231         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
90232         * modules/acl (Files): Add lib/copy-acl.c.
90233         (Makefiles.am): Augment lib_SOURCES.
90235 2008-05-22  Bruno Haible  <bruno@clisp.org>
90237         * modules/copy-file-tests: New file.
90238         * tests/test-copy-file.sh: New file.
90239         * tests/test-copy-file.c: New file.
90240         * tests/test-copy-file-sameacls.c: New file.
90242 2008-05-22  Eric Blake  <ebb9@byu.net>
90244         Avoid gcc warning.
90245         * tests/test-memcmp.c (main): Pass NULL indirectly.
90247 2008-05-21  Bruno Haible  <bruno@clisp.org>
90249         Add reference doc about ACLs.
90250         * doc/acl-resources.txt: New file.
90251         * doc/acl-cygwin.txt: New file.
90253 2008-05-21  Bruno Haible  <bruno@clisp.org>
90255         Avoid one more warning from gcc.
90256         * lib/vasnprintf.c (IF_LINT): Update comments.
90257         (VASNPRINTF): Use it also for the 'prefix' array initializer.
90259 2008-05-21  Jim Meyering  <meyering@redhat.com>
90261         avoid a warning from gcc
90262         * lib/vasnprintf.c (IF_LINT): Define.
90263         (scale10_round_decimal_long_double):
90264         Use it to avoid a "may be used uninitialized" warning.
90265         (scale10_round_decimal_double): Likewise.
90267 2008-05-21  Simon Josefsson  <simon@josefsson.org>
90269         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
90270         declared.
90272 2008-05-20  Bruno Haible  <bruno@clisp.org>
90274         * tests/test-memcmp.c (main): Test also the sign of the result. Test
90275         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
90277 2008-05-20  Simon Josefsson  <simon@josefsson.org>
90279         * modules/memcmp-tests: New file.
90280         * tests/test-memcmp.c: New file.
90282 2008-05-19  Bruno Haible  <bruno@clisp.org>
90284         * modules/propername (Notice, configure.ac): Put quoted "..." into
90285         --keyword option.
90286         * lib/propername.h: Update comments accordingly.
90287         Reported by Eric Blake.
90289 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
90291         * modules/getpass-gnu (Depends-on): Add fseeko.
90293 2008-05-19  Simon Josefsson  <simon@josefsson.org>
90295         * modules/base64-tests: New file.
90297 2008-05-19  Bo Borgerson  <gigabo@gmail.com>
90299         * lib/base64.c (base64_decode_ctx): If a decode context structure
90300         was passed in use it to ignore newlines.  If a context structure
90301         was _not_ passed in, continue to treat newlines as garbage (this
90302         is the historical behavior).  Formerly base64_decode.
90303         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
90304         takes a decode context structure.
90305         * lib/base64.h (base64_decode): Macro for four-argument calls.
90306         (base64_decode_alloc): Likewise.
90307         * lib/base64.c (base64_decode_ctx): If a decode context structure
90308         was passed in use it to ignore newlines.  If a context structure
90309         was _not_ passed in, continue to treat newlines as garbage (this
90310         is the historical behavior).  Formerly base64_decode.
90311         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
90312         takes a decode context structure.
90313         * lib/base64.h (base64_decode): Macro for four-argument calls.
90314         (base64_decode_alloc): Likewise.
90316 2008-05-19  Jim Meyering  <meyering@redhat.com>
90318         avoid a warning from gcc
90319         * lib/trim.c (IF_LINT): Define.
90320         (trim2): Use it to avoid a "may be used uninitialized" warning.
90322         Fix doc typo.
90323         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
90325 2008-05-19  Bruno Haible  <bruno@clisp.org>
90327         * doc/glibc-functions/getpass.texi: Document limits of other
90328         implementations.
90330 2008-05-19  Simon Josefsson  <simon@josefsson.org>
90331             Bruno Haible <bruno@clisp.org>
90333         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
90335 2008-05-18  Bruno Haible  <bruno@clisp.org>
90337         * modules/propername: New file, from GNU gettext.
90338         * lib/propername.h: New file, from GNU gettext.
90339         * lib/propername.c: New file, from GNU gettext.
90340         * MODULES.html.sh (Internationalization functions): Add propername.
90342 2008-05-16  Jim Meyering  <meyering@redhat.com>
90343             Bruno Haible  <bruno@clisp.org>
90345         Avoid some warnings from "gcc -Wshadow".
90346         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
90348 2008-05-15  Eric Blake  <ebb9@byu.net>
90350         Extend previous patch to cygwin 1.7.0.
90351         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
90352         fast implementation in cygwin >= 1.7.0.
90353         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
90354         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
90356 2008-05-15  Bruno Haible  <bruno@clisp.org>
90358         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
90359         implementation in glibc >= 2.9.
90360         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
90361         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
90363 2008-05-15  Bruno Haible  <bruno@clisp.org>
90365         * MODULES.html.sh (Internationalization functions): Remove linebreak.
90366         (Unicode string functions): Add unilbrk/*.
90367         Reported by Karl Berry.
90369 2008-05-15  Eric Blake  <ebb9@byu.net>
90371         Fix violation of <stdbool.h> replacement in regex.
90372         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
90373         * lib/regexec.c (re_search_internal): Likewise.
90374         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
90376 2008-05-15  Jim Meyering  <meyering@redhat.com>
90378         avoid distracting test output when git or cvs is not found
90379         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
90380         * tests/test-vc-list-files-git.sh: Likewise.
90382 2008-05-15  Eric Blake  <ebb9@byu.net>
90384         Glibc finally accepted the memmem speedup code, bugzilla #5514.
90385         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
90386         glibc version.
90387         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
90388         * doc/posix-functions/strstr.texi (strstr): Likewise.
90389         * lib/str-two-way.h (MAX): Sychronize with glibc.
90391 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
90393         * lib/regcomp.c (optimize_utf8): Add a note on why we test
90394         opr.ctx_type.
90395         (calc_first): Initialize constraint field.
90396         (duplicate_node_closure): Use it instead of special casing ANCHORS.
90397         Fix grammar.
90398         (duplicate_node): Merge constraint field for all node types.
90399         (calc_eclosure_iter): Look at constraint field for all node types.
90400         * lib/regex_internal.c (create_cd_newstate): Don't look at
90401         opr.ctx_type.
90403 2008-05-14  Bruno Haible  <bruno@clisp.org>
90405         Help GCC to do better code generation.
90406         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
90407         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
90408         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
90409         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
90410         Declare with attribute 'malloc' if supported.
90412 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
90414         use "echo STR|wc -c" rather than unportable "expr length STR"
90415         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
90416         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
90418 2008-05-14  Jim Meyering  <meyering@redhat.com>
90420         use dd ibs=$n count=1 ... rather than less-portable head -c$n
90421         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
90422         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
90423         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
90424         via Collin Lasse.
90426 2008-05-14  Eric Blake  <ebb9@byu.net>
90428         Avoid quadratic growth in gl_LIBSOURCES.
90429         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
90430         Suggested by Bruno Haible.
90432         Test xmemdup0.
90433         * modules/xmemdup0-tests: New file.
90434         * tests/test-xmemdup0.c: Likewise.
90436 2008-05-13  Eric Blake  <ebb9@byu.net>
90438         Split xmemdup0 into its own module.
90439         * modules/xmemdup0: New file.
90440         * lib/xmemdup0.h: Likewise.
90441         * lib/xmemdup0.c: Likewise.
90442         * MODULES.html.sh (Memory management functions): Add xmemdup0.
90443         * lib/xalloc.h (xmemdup0): Remove.
90444         * lib/xmalloc.c (xmemdup0): Likewise.
90446 2008-05-13  Eric Blake  <ebb9@byu.net>
90447             Bruno Haible  <bruno@clisp.org>
90449         Reduce number of forks required during autoconf.
90450         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
90451         and gl_LIBSOURCES_DIR.
90452         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
90453         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
90454         m4_syscmd per file.
90455         <m4_foreach_w>: Move...
90456         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
90458 2008-05-13  Eric Blake  <ebb9@byu.net>
90460         * gnulib-tool: Fix various comment typos.
90462 2008-05-12  Bruno Haible  <bruno@clisp.org>
90464         Tailor the linebreaking algorithm.
90465         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
90467 2008-05-12  Bruno Haible  <bruno@clisp.org>
90469         Update to Unicode 5.0.0.
90470         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
90471         LBP_JV, LBP_JT. Redistribute values.
90472         (unilbrk_table): Change size.
90473         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
90474         Unicode TR#14 rev. 22.
90475         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
90476         LBP_JV, LBP_JT. Redistribute values.
90477         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
90478         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
90479         Update.
90480         * lib/unilbrk/lbrkprop1.h: Regenerated.
90481         * lib/unilbrk/lbrkprop2.h: Regenerated.
90482         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
90483         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
90484         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
90485         Likewise.
90486         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
90487         Likewise.
90488         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
90489         result.
90490         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
90491         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
90492         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
90493         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
90494         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
90495         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
90497 2008-05-11  Bruno Haible  <bruno@clisp.org>
90499         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
90501 2008-05-11  Bruno Haible  <bruno@clisp.org>
90503         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
90504         * modules/unilbrk/gen-lbrk: New file.
90506 2008-05-11  Bruno Haible  <bruno@clisp.org>
90508         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
90509         * m4/sha512.m4 (gl_SHA512): Likewise.
90511 2008-05-11  Jim Meyering  <meyering@redhat.com>
90513         New modules: crypto/sha256, crypto/sha512 (from coreutils)
90514         * modules/crypto/sha256: New file.
90515         * modules/crypto/sha512: Likewise.
90516         * lib/sha256.c: Likewise.
90517         * lib/sha256.h: Likewise.
90518         * lib/sha512.c: Likewise.
90519         * lib/sha512.h: Likewise.
90520         * lib/u64.h: Likewise.
90521         * m4/sha256.m4: Likewise.
90522         * m4/sha512.m4: Likewise.
90523         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
90525 2008-05-10  Bruno Haible  <bruno@clisp.org>
90527         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
90528         (Input/Output <stdio.h>): Add xprintf.
90529         (Signal handling <signal.h>): Add strsignal.
90530         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
90531         (Core language properties): Add func.
90532         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
90533         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
90534         strings.
90535         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
90536         (Input/output): New section.
90537         (File system functions): Add openat-die, stat-macros.
90538         (Networking functions): Add sockets.
90539         (Unicode string functions): Add unictype/*.
90540         (Support for building libraries and executables): Add gperf.
90541         (Support for building documentation): Add agpl-3.0.
90542         (Misc): Add nocrash.
90544 2008-05-10  Bruno Haible  <bruno@clisp.org>
90546         * modules/unictype/gen-ctype: New file.
90548 2008-05-10  Jim Meyering  <meyering@redhat.com>
90550         Make chdir-safer.c more efficient on a system with no symlinks.
90551         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
90552         also if ELOOP is zero.  Suggested by Bruno Haible.
90554         Make chdir-safer.c slightly safer.
90555         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
90556         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
90558         Avoid compile failure on systems without ELOOP (like mingw).
90559         * lib/chdir-safer.c (ELOOP): Define if not already defined.
90560         Reported by Bruno Haible.
90562 2008-05-10  Bruno Haible  <bruno@clisp.org>
90564         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
90565         (is_utf8_encoding): Use a case-insensitive comparison.
90566         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
90567         streq.
90569 2008-05-10  Bruno Haible  <bruno@clisp.org>
90571         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
90572         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
90573         * lib/unilbrk/ulc-common.h (iconv_string_length,
90574         iconv_string_keeping_offsets): Remove declarations.
90575         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
90576         Don't include <iconv.h>, streq.h, xsize.h.
90577         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
90578         conversion.
90579         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
90580         <iconv.h>, streq.h, xsize.h.
90581         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
90582         conversion.
90583         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
90584         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
90585         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
90586         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
90588 2008-05-10  Bruno Haible  <bruno@clisp.org>
90590         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
90591         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
90593         * modules/unilbrk/u32-width-linebreaks-tests: New file.
90594         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
90596         * modules/unilbrk/u16-width-linebreaks-tests: New file.
90597         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
90599         * modules/unilbrk/u8-width-linebreaks-tests: New file.
90600         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
90602         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
90603         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
90605         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
90606         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
90608         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
90609         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
90611         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
90612         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
90614 2008-05-10  Bruno Haible  <bruno@clisp.org>
90616         Split up 'linebreak' module.
90617         * lib/unilbrk.h: New file, based on lib/linebreak.h.
90618         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
90619         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
90620         modifications.
90621         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
90622         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
90623         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
90624         lib/linebreak.c.
90625         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
90626         lib/linebreak.c.
90627         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
90628         lib/linebreak.c.
90629         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
90630         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
90631         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
90632         lib/linebreak.c.
90633         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
90634         lib/linebreak.c.
90635         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
90636         lib/linebreak.c.
90637         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
90638         lib/linebreak.c.
90639         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
90640         lib/linebreak.c.
90641         * modules/unilbrk/base: New file.
90642         * modules/unilbrk/tables: New file.
90643         * modules/unilbrk/u8-possible-linebreaks: New file.
90644         * modules/unilbrk/u16-possible-linebreaks: New file.
90645         * modules/unilbrk/u32-possible-linebreaks: New file.
90646         * modules/unilbrk/ulc-common: New file.
90647         * modules/unilbrk/ulc-possible-linebreaks: New file.
90648         * modules/unilbrk/u8-width-linebreaks: New file.
90649         * modules/unilbrk/u16-width-linebreaks: New file.
90650         * modules/unilbrk/u32-width-linebreaks: New file.
90651         * modules/unilbrk/ulc-width-linebreaks: New file.
90652         * lib/linebreak.h: Remove file.
90653         * lib/linebreak.c: Remove file.
90654         * m4/linebreak.m4: Remove file.
90655         * modules/linebreak: Remove file.
90656         * NEWS: Mention the changes.
90658 2008-05-09  Eric Blake  <ebb9@byu.net>
90660         Add xmemdup0.
90661         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
90662         implementation.
90663         * lib/xmalloc.c (xmemdup0): New C implementation.
90665 2008-05-08  Bruno Haible  <bruno@clisp.org>
90667         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
90669 2008-05-07  Eric Blake  <ebb9@byu.net>
90671         Support cross-compilation of <wctype.h>.
90672         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
90673         AC_CACHE_CHECK.
90675 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
90677         * build-aux/vc-list-files: Add support for bzr.
90679 2008-05-03  Jim Meyering  <meyering@redhat.com>
90681         avoid failed assertion with tight malloc
90682         * tests/test-getndelim2.c: Correct an off-by-one assertion.
90684 2008-05-03  Simon Josefsson  <simon@josefsson.org>
90686         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
90687         are needed from arpa/inet.h.
90688         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
90689         Reported by Bruno Haible.
90691 2008-05-02  Jim Meyering  <meyering@redhat.com>
90693         avoid compilation error on FreeBSD 6
90694         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
90696 2008-05-01  Jim Meyering  <meyering@redhat.com>
90698         useless-if-before-free: correct --help's exit status description
90699         * build-aux/useless-if-before-free (usage): Like grep, exit 0
90700         for one or more matches, etc.  Reported by Bruno Haible.
90702         vc-list-files: make the stand-alone gnulib test work
90703         * modules/vc-list-files-tests (configure.ac):
90704         Define and AC_SUBST abs_aux_dir.
90705         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
90706         $(abs_top_srcdir) to each script and having each of them
90707         duplicate the work of setting PATH, set PATH here, using
90708         the new variable, abs_aux_dir instead.
90709         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
90710         * tests/test-vc-list-files-git.sh: Likewise.
90711         Reported by Bruno Haible.
90713 2008-05-01  Bruno Haible  <bruno@clisp.org>
90715         * lib/getndelim2.c (getndelim2): Fix newsize computation during
90716         reallocation. Rename 'done' to 'found_delimiter'.
90718 2008-05-01  Jim Meyering  <meyering@redhat.com>
90720         vc-list-files: accommodate /bin/sh like the one from Solaris 10
90721         * build-aux/vc-list-files: Use `...`, not $(...).
90723 2008-04-30  Jim Meyering  <meyering@redhat.com>
90725         add tests for vc-list-files
90726         * modules/vc-list-files-tests: New module.
90727         * tests/test-vc-list-files-cvs.sh: New file.
90728         * tests/test-vc-list-files-git.sh: New file.
90730         avoid a warning from gcc
90731         * lib/getndelim2.c (IF_LINT): Define.
90732         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
90734         vc-list-files: work properly with build-aux/cvsu, too
90735         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
90736         to all cvs-based clauses.
90738         vc-list-files: work properly in the CVS+awk case, too
90739         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
90741         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
90742         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
90743         take more than one file argument, so .  Add quotes, just in case $dir
90744         ever contains a shell meta-character.  Prompted by Soren Hansen in
90745         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
90747 2008-04-29  Eric Blake  <ebb9@byu.net>
90749         Optimize getndelim2 to use block operations when possible.
90750         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
90751         freadseek, and memchr2.
90752         * lib/getndelim2.c (getndelim2): Use them for block reads.
90754 2008-04-29  Bruno Haible  <bruno@clisp.org>
90756         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
90757         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
90758         * modules/inet_ntop (Depends-on): Add extensions.
90759         * modules/inet_pton (Depends-on): Likewise.
90760         Reported by Simon Josefsson.
90762 2008-04-29  Jim Meyering  <meyering@redhat.com>
90764         When the is more than one match in a block, match all of them.
90765         * build-aux/useless-if-before-free: Iterate through each block
90766         until there are no more matches.
90768         Fix broken useless-if-before-free script.
90769         * build-aux/useless-if-before-free: Fix typo: missing "?" after
90770         the expression to match cast of argument to free-like function.
90772 2008-04-29  Eric Blake  <ebb9@byu.net>
90774         Use new header.
90775         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
90777 2008-04-29  Jim Meyering  <meyering@redhat.com>
90779         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
90780         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
90781         by gnulib to exist and to declare e.g., inet_ntop.
90782         Don't include "inet_ntop.h", now removed.
90784         * m4/arpa_inet_h.m4: Remove trailing blanks.
90786 2008-04-29  Eric Blake  <ebb9@byu.net>
90788         Silence valgrind on safe reads beyond potential array bounds.
90789         * lib/rawmemchr.valgrind: New file.
90790         * lib/strchrnul.valgrind: Likewise.
90791         * modules/rawmemchr (Files): Distribute new file.
90792         * modules/strchrnul (Files): Likewise.
90793         Suggested by Bruno Haible.
90795 2008-04-29  Bruno Haible  <bruno@clisp.org>
90797         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
90798         (inet_ntop, inet_pton): Change portability warning's wording.
90799         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
90800         Invoke gl_CHECK_NEXT_HEADERS.
90801         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
90802         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
90803         set ARPA_INET_H.
90804         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
90805         * modules/arpa_inet (Description): No longer only for systems that
90806         lack it.
90807         (Depends-on): Add include_next.
90808         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
90809         HAVE_ARPA_INET_H.
90811 2008-04-29  Jim Meyering  <meyering@redhat.com>
90813         * modules/mkdir (License): Re-license as LGPLv2+.
90815 2008-04-29  Bruno Haible  <bruno@clisp.org>
90817         * modules/rawmemchr (Maintainer): Set to Eric.
90818         * modules/strchrnul (Maintainer): Likewise.
90820 2008-04-29  Simon Josefsson  <simon@josefsson.org>
90822         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
90823         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
90825         * modules/arpa_inet (arpa/inet.h): Use them.
90827 2008-04-28  Eric Blake  <ebb9@byu.net>
90829         Test getndelim2.
90830         * modules/getndelim2-tests: New file.
90831         * tests/test-getndelim2.c: Likewise.
90832         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
90833         stream.
90834         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
90836         * MODULES.html.sh: Document new module.
90838 2008-04-20  Bruno Haible  <bruno@clisp.org>
90840         * lib/c-stack.c (die): Use raise.
90841         * modules/c-stack (Depends-on): Add raise.
90843 2008-04-28  Bruno Haible  <bruno@clisp.org>
90845         Expect rpmatch to be declared.
90846         * lib/yesno.c (rpmatch): Remove declaration.
90848         Declare rpmatch.
90849         * lib/stdlib.in.h (rpmatch): New declaration.
90850         * lib/rpmatch.c: Include <stdlib.h> first.
90851         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
90852         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
90853         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
90854         HAVE_RPMATCH.
90855         * modules/rpmatch (Depends-on): Add stdlib, extensions.
90856         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
90857         (Include): Set to <stdlib.h>.
90858         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
90859         HAVE_RPMATCH.
90860         * NEWS: Document the change.
90862 2008-04-28  Bruno Haible  <bruno@clisp.org>
90864         Change rpmatch to use nl_langinfo when appropriate.
90865         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
90866         (N_): New macro.
90867         (localized_pattern): New function/macro.
90868         (try): Remove match, nomatch arguments. Copy the pattern into safe
90869         memory before caching it.
90870         (rpmatch): Use localized_pattern. Add translator comments.
90871         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
90872         Suggested by Eric Blake.
90873         * modules/rpmatch (Depends-on): Add stdbool.
90875 2008-04-28  Eric Blake  <ebb9@byu.net>
90877         Add rawmemchr module, matching glibc.
90878         * modules/string (Makefile.am): New indicator.
90879         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
90880         * lib/string.in.h (rawmemchr): Declare when appropriate.
90881         * modules/rawmemchr: New file.
90882         * m4/rawmemchr.m4: Likewise.
90883         * lib/rawmemchr.c: Likewise.
90884         * modules/rawmemchr-tests: Likewise.
90885         * tests/test-rawmemchr.c: Likewise.
90886         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
90887         module.
90888         * modules/strchrnul (Depends-on): Add rawmemchr.
90889         * lib/strchrnul.c (strchrnul): Optimize a corner case.
90891         Whitespace cleanup.
90892         * tests/test-strchrnul.c: Reindent.
90893         * lib/strchrnul.c: Likewise.
90895         Optimize and test strchrnul.
90896         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
90897         * modules/strchrnul-tests: New file.
90898         * tests/test-strchrnul.c: Likewise.
90900         Remove intprops dependency.
90901         * modules/memchr (Depends-on): Remove intprops.
90902         * modules/memrchr (Depends-on): Likewise.
90903         * modules/memchr2 (Depends-on): Likewise.
90904         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
90905         * lib/memrchr.c (__memrchr): Likewise.
90906         * lib/memrchr2.c (memchr2): Likewise.
90907         Reported by Simon Josefsson.
90909 2008-04-28  Simon Josefsson  <simon@josefsson.org>
90911         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
90912         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
90914 2008-04-28  Simon Josefsson  <simon@josefsson.org>
90916         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
90918         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
90920         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
90922         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
90923         declarations.
90924         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
90926         * m4/inet_pton.m4: Don't check for header files.
90928         * m4/inet_ntop.m4: Don't check for header files.
90930 2008-04-28  Simon Josefsson  <simon@josefsson.org>
90932         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
90933         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
90934         trigger for cygwin).
90935         Reported by Bruno Haible  <bruno@clisp.org>.
90937 2008-04-28  Bruno Haible  <bruno@clisp.org>
90939         * doc/posix-functions/strdup.texi: Mention mingw problem.
90941 2008-04-27  Bruno Haible  <bruno@clisp.org>
90943         * modules/stat-time-tests (Depends-on): Add sleep.
90944         * tests/test-stat-time.c (force_unlink): New function.
90945         (cleanup): Use it.
90946         (test_mtime): Remove the ctime related tests.
90947         (test_ctime): New function, containing the ctime related tests.
90948         (main): Call test_ctime, except on native Windows platforms.
90950 2008-04-27  Bruno Haible  <bruno@clisp.org>
90952         * lib/rpmatch.c (rpmatch): Add some comments.
90953         Reported by James Youngman <jay@gnu.org>.
90955 2008-04-27  Bruno Haible  <bruno@clisp.org>
90957         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
90958         quiet NaNs.
90960 2008-04-27  Bruno Haible  <bruno@clisp.org>
90962         Make test-yesno.sh work on mingw.
90963         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
90964         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
90965         (main): Set stdin to binary mode.
90966         * modules/yesno-tests (Depends-on): Add binary-io.
90968 2008-04-27  Bruno Haible  <bruno@clisp.org>
90970         Fix 'isfinite' on x86, x86_64, ia64 platforms.
90971         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
90972         argument that lie outside the IEEE 854 domain.
90973         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
90974         (gl_ISFINITE): Use it.
90975         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
90977 2008-04-27  Bruno Haible  <bruno@clisp.org>
90979         Allow local renaming in config.h.
90980         * lib/memrchr.c (memrchr): Don't undefine outside libc.
90982 2008-04-27  Bruno Haible  <bruno@clisp.org>
90984         * lib/memchr.c (__memchr): Change type of 'i'.
90985         * lib/memchr2.c (memchr2): Likewise.
90987 2008-04-26  Eric Blake  <ebb9@byu.net>
90988         and Bruno Haible  <bruno@clisp.org>
90990         Optimize and test memrchr.
90991         * modules/memrchr (Depends-on): Add intprops.
90992         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
90993         * modules/memrchr-tests: New file.
90994         * tests/test-memrchr.c: New file.
90996 2008-04-26  Bruno Haible  <bruno@clisp.org>
90998         Add tentative support for DragonFly BSD.
90999         * lib/stdio-impl.h: Add macros for DragonFly BSD.
91000         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
91001         fp.
91002         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
91003         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
91004         * lib/fpurge.c (fpurge): Likewise.
91005         * lib/freadable.c (freaadable): Likewise.
91006         * lib/freadahead.c (freadahead): Likewise.
91007         * lib/freading.c (freading): Likewise.
91008         * lib/freadptr.c (freadptr): Likewise.
91009         * lib/freadseek.c (freadptrinc): Likewise.
91010         * lib/fseeko.c (fseeko): Likewise.
91011         * lib/fseterr.c (fseterr): Likewise.
91012         * lib/fwritable.c (fwritable): Likewise.
91013         * lib/fwriting.c (fwriting): Likewise.
91015 2008-04-26  Bruno Haible  <bruno@clisp.org>
91017         * lib/stdio-impl.h: New file.
91018         * lib/fbufmode.c: Include stdio-impl.h.
91019         (fbufmode): Use fp_, remove redundant #defines.
91020         * lib/fflush.c: Include stdio-impl.h.
91021         (clear_ungetc_buffer): Remove redundant #defines.
91022         * lib/fpurge.c: Include stdio-impl.h.
91023         (fpurge): Remove redundant #defines.
91024         * lib/freadable.c: Include stdio-impl.h.
91025         (freadable): Remove redundant #defines.
91026         * lib/freadahead.c: Include stdio-impl.h.
91027         (freadahead): Remove redundant #defines.
91028         * lib/freading.c: Include stdio-impl.h.
91029         (freading): Remove redundant #defines.
91030         * lib/freadptr.c: Include stdio-impl.h.
91031         (freadptr): Remove redundant #defines.
91032         * lib/freadseek.c: Include stdio-impl.h.
91033         (freadptrinc): Remove redundant #defines.
91034         * lib/fseeko.c: Include stdio-impl.h.
91035         (rpl_fseeko): Remove redundant #defines.
91036         * lib/fseterr.c: Include stdio-impl.h.
91037         (fseterr): Remove redundant #defines.
91038         * lib/fwritable.c: Include stdio-impl.h.
91039         (fwritable: Remove redundant #defines.
91040         * lib/fwriting.c: Include stdio-impl.h.
91041         (fwriting): Remove redundant #defines.
91042         * modules/fbufmode (Files): Add lib/stdio-impl.h.
91043         * modules/fflush (Files): Likewise.
91044         * modules/fpurge (Files): Likewise.
91045         * modules/freadable (Files): Likewise.
91046         * modules/freadahead (Files): Likewise.
91047         * modules/freading (Files): Likewise.
91048         * modules/freadptr (Files): Likewise.
91049         * modules/freadseek (Files): Likewise.
91050         * modules/fseeko (Files): Likewise.
91051         * modules/fseterr (Files): Likewise.
91052         * modules/fwritable (Files): Likewise.
91053         * modules/fwriting (Files): Likewise.
91055 2008-04-26  Bruno Haible  <bruno@clisp.org>
91057         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
91058         restore_seek_optimization, update_fpos_cache): New functions, extracted
91059         from rpl_fflush.
91060         (rpl_fflush): Use them.
91061         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
91062         (gl_REPLACE_FFLUSH): Use it.
91064 2008-04-26  Bruno Haible  <bruno@clisp.org>
91066         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
91067         on Solaris.
91068         * tests/test-xstrtoimax.sh: Likewise.
91069         * tests/test-xstrtoumax.sh: Likewise.
91070         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
91072 2008-04-26  Bruno Haible  <bruno@clisp.org>
91074         * modules/memchr-tests: New file.
91075         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
91077 2008-04-26  Eric Blake  <ebb9@byu.net>
91078             Bruno Haible  <bruno@clisp.org>
91080         * lib/memchr.c: Include intprops.h.
91081         (__memchr): Optimize parallel detection of matching bytes. Rename local
91082         variables. Add explanatory comments.
91084 2008-04-26  Bruno Haible  <bruno@clisp.org>
91086         Fix module 'memchr', broken since 2000-10-28.
91087         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
91089 2008-04-26  Bruno Haible  <bruno@clisp.org>
91091         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
91092         comments.
91094 2008-04-25  Eric Blake  <ebb9@byu.net>
91096         Use native fstatat on cygwin 1.7.0.
91097         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
91098         first.
91100 2008-04-23  Eric Blake  <ebb9@byu.net>
91102         Improve memchr2 performance.
91103         * lib/memchr2.c (memchr2): Further optimize parallel detection of
91104         NUL bytes.
91105         * modules/memchr2 (Depends-on): Use intprops.h.
91107 2008-04-23  Simon Josefsson  <simon@josefsson.org>
91109         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
91110         an inline function instead of a CPP macro.  Patch by Ben Pfaff
91111         <blp@cs.stanford.edu>.
91113 2008-04-23  Simon Josefsson  <simon@josefsson.org>
91115         * lib/arpa_inet.in.h: New file.
91117         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
91118         (Makefile.am): Sed in substitute header file.
91120         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
91121         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
91123         * modules/inet_ntop (configure.ac): Use
91124         gl_ARPA_INET_MODULE_INDICATOR.
91126         * modules/inet_pton (configure.ac): Use
91127         gl_ARPA_INET_MODULE_INDICATOR.
91129 2008-04-22  Jim Meyering  <meyering@redhat.com>
91131         * modules/verify (License): Re-license as LGPLv2+.
91133 2008-04-22  Simon Josefsson  <simon@josefsson.org>
91135         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
91136         parameter to void* as per POSIX standard (MinGW uses char*).
91138 2008-04-21  Bruno Haible  <bruno@clisp.org>
91140         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
91141         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
91142         Define to replacements if REPLACE_ISWCNTRL is 1.
91143         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
91144         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
91145         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
91146         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
91147         what it fixes.
91148         * doc/posix-functions/iswalpha.texi: Likewise.
91149         * doc/posix-functions/iswblank.texi: Likewise.
91150         * doc/posix-functions/iswcntrl.texi: Likewise.
91151         * doc/posix-functions/iswdigit.texi: Likewise.
91152         * doc/posix-functions/iswgraph.texi: Likewise.
91153         * doc/posix-functions/iswlower.texi: Likewise.
91154         * doc/posix-functions/iswprint.texi: Likewise.
91155         * doc/posix-functions/iswpunct.texi: Likewise.
91156         * doc/posix-functions/iswspace.texi: Likewise.
91157         * doc/posix-functions/iswupper.texi: Likewise.
91158         * doc/posix-functions/iswxdigit.texi: Likewise.
91159         Reported by Alain Guibert.
91161 2008-04-21  Bruno Haible  <bruno@clisp.org>
91163         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
91164         Patch by Alain Guibert.
91166 2008-04-21  Bruno Haible  <bruno@clisp.org>
91168         Fix test failures on mingw.
91169         * tests/test-xstrtol.c (print_no_progname): New function.
91170         (main): Install it in error_print_progname hook.
91171         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
91172         * tests/test-xstrtoimax.sh: Likewise.
91173         * tests/test-xstrtoumax.sh: Likewise.
91175 2008-04-21  Bruno Haible  <bruno@clisp.org>
91177         Fix test failure on mingw.
91178         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
91180 2008-04-21  Bruno Haible  <bruno@clisp.org>
91182         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
91183         Actually assign a value.
91185 2008-04-20  Bruno Haible  <bruno@clisp.org>
91187         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
91188         take 2.
91189         * lib/canonicalize.c (canonicalize_file_name): Elide if the
91190         'canonicalize-lgpl' module is also used.
91191         * lib/canonicalize-lgpl.c: Undo last change.
91192         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
91194 2008-04-20  Bruno Haible  <bruno@clisp.org>
91196         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
91197         config.h. Provide _mkdir based fallback for mingw.
91198         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
91199         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
91200         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
91201         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
91202         rather than defining mkdir in config.h.
91203         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
91204         (gl_SYS_STAT_H_DEFAULTS): New macro.
91205         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
91206         HAVE_IO_H any more.
91207         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
91208         HAVE_DECL_MKDIR and HAVE_IO_H.
91210 2008-04-20  Bruno Haible  <bruno@clisp.org>
91212         * lib/isapipe.c: Port to native Windows platforms.
91214 2008-04-20  Bruno Haible  <bruno@clisp.org>
91216         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
91218 2008-04-21  Eric Blake  <ebb9@byu.net>
91220         Work around preprocessors that don't handle UINTMAX_MAX.
91221         * lib/memchr2.c (memchr2): Avoid embedded #if.
91222         Reported by Alain Guibert, fix suggested by Bruno Haible.
91224 2008-04-21  Simon Josefsson  <simon@josefsson.org>
91226         * doc/posix-functions/strftime.texi (strftime): Explain better
91227         Windows incompatibility.  Suggested by Micah Cowan
91228         <micah@cowan.name>.
91230 2008-04-20  Bruno Haible  <bruno@clisp.org>
91232         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
91233         unistr/u8-mblen.
91235 2008-04-20  Bruno Haible  <bruno@clisp.org>
91237         Fix test failure on platforms with non-GNU iconv.
91238         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
91239         (U_TO_U8): Use it, rather than u16_to_u8.
91240         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
91241         units at the end of the input string.
91242         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
91244 2008-04-20  Bruno Haible  <bruno@clisp.org>
91246         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
91247         when the resulting length is 0.
91248         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
91250 2008-04-20  Bruno Haible  <bruno@clisp.org>
91252         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
91253         works.
91254         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
91256 2008-04-20  Bruno Haible  <bruno@clisp.org>
91258         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
91259         * modules/tsearch-tests (configure.ac): Test for initstate function.
91261 2008-04-20  Bruno Haible  <bruno@clisp.org>
91263         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
91264         for nlink_t if missing.
91265         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
91267 2008-04-19  Bruno Haible  <bruno@clisp.org>
91269         Work around snprintf bug on Linux libc5.
91270         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
91271         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
91272         gl_SNPRINTF_SIZE1.
91273         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
91274         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
91275         that test failed.
91276         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
91277         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
91278         * modules/snprintf (Files): Add m4/printf.m4.
91279         * modules/vsnprintf (Files): Likewise.
91280         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
91281         * doc/posix-functions/vsnprintf.texi: Likewise.
91283 2008-04-19  Bruno Haible  <bruno@clisp.org>
91285         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
91286         from 0.0058 to less than 10^-7.
91288 2008-04-19  Bruno Haible  <bruno@clisp.org>
91290         Fix rounding when a precision is given.
91291         * lib/vasnprintf.c (is_borderline): New function.
91292         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
91293         9...9x.
91294         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
91295         %e, %g.
91296         * tests/test-vasprintf-posix.c (test_function): Likewise.
91297         * tests/test-snprintf-posix.h (test_function): Likewise.
91298         * tests/test-sprintf-posix.h (test_function): Likewise.
91299         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
91300         * tests/test-printf-posix.h (test_function): Likewise.
91301         * tests/test-printf-posix.output: Update.
91302         Reported by John Darrington <john@darrington.wattle.id.au> via
91303         Ben Pfaff <blp@cs.stanford.edu>.
91305 2008-04-18  Simon Josefsson  <simon@josefsson.org>
91307         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
91308         Suggested by Bruno Haible <bruno@clisp.org>.
91310 2008-04-17  Bruno Haible  <bruno@clisp.org>
91312         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
91313         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
91314         implementation.
91315         Patch by Bruce Merry <bmerry@gmail.com>.
91317 2008-04-17  Simon Josefsson  <simon@josefsson.org>
91319         * doc/posix-functions/strftime.texi (strftime): Mention that %e
91320         doesn't work under Windows.
91322 2008-04-16  Bruno Haible  <bruno@clisp.org>
91324         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
91325         New macros.
91326         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
91327         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
91328         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
91329         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
91330         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
91331         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
91332         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
91333         macros.
91334         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
91335         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
91336         Northern Sotho, Uighur.
91338 2008-04-16  Bruno Haible  <bruno@clisp.org>
91340         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
91341         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
91342         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
91343         Reported by Daniel Bergström <daniel@octocode.com>.
91345 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
91346             Bruno Haible  <bruno@clisp.org>
91348         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
91349         function.
91350         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
91351         New functions, mostly extracted from gl_locale_name_default.
91352         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
91354 2008-04-16  Eric Blake  <ebb9@byu.net>
91356         Adjust strtod detection to catch glibc 2.7 bug.
91357         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
91358         Reported by John Gatewood Ham.
91360 2008-04-16  Bruno Haible  <bruno@clisp.org>
91362         Add tentative support for Linux libc5.
91363         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
91364         * lib/fpurge.c (fpurge): Likewise.
91365         * lib/freadable.c (freadable): Likewise.
91366         * lib/freadahead.c (freadahead): Likewise.
91367         * lib/freading.c (freading): Likewise.
91368         * lib/freadptr.c (freadptr): Likewise.
91369         * lib/freadseek.c (freadptrinc): Likewise.
91370         * lib/fseeko.c (rpl_fseeko): Likewise.
91371         * lib/fseterr.c (fseterr): Likewise.
91372         * lib/fwritable.c (fwritable): Likewise.
91373         * lib/fwriting.c (fwriting): Likewise.
91374         Reported by Alain Guibert <alguibert+bts@free.fr>.
91376 2008-04-15  Bruno Haible  <bruno@clisp.org>
91378         * modules/mathl (configure.ac): Define module indicator.
91380 2008-04-15  Bruno Haible  <bruno@clisp.org>
91382         * lib/logl.c (logl): Remove unused variables.
91384 2008-04-15  Bruno Haible  <bruno@clisp.org>
91386         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
91387         fails.
91389 2008-04-15  Bruno Haible  <bruno@clisp.org>
91391         * lib/trim.c (trim2): Fix argument of isspace() macro.
91393 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
91395         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
91396         to 0.
91397         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
91399 2008-04-14  Bruno Haible  <bruno@clisp.org>
91401         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
91402         AC_LANG_PROGRAM argument.
91403         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
91404         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
91405         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
91406         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
91407         * m4/math_h.m4 (gl_MATH_H): Likewise.
91408         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
91409         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
91410         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
91411         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
91412         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
91413         * m4/regex.m4 (gl_REGEX): Likewise.
91414         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
91415         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
91416         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
91417         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
91418         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
91419         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
91420         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
91421         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
91423 2008-04-14  Jim Meyering  <meyering@redhat.com>
91425         test-strtod: fix typos: s/abs/fabs/
91426         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
91428 2008-04-13  Bruno Haible  <bruno@clisp.org>
91430         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
91431         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
91432         module is also used and while not building the reloc-wrapper.
91434 2008-04-13  Bruno Haible  <bruno@clisp.org>
91436         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
91438 2008-04-13  Bruno Haible  <bruno@clisp.org>
91440         Fix AIX compilation failure introduced on 2008-04-02.
91441         * tests/test-frexp.c (exp): Undefine before redefining.
91442         * tests/test-frexpl.c (exp): Likewise.
91444 2008-04-13  Bruno Haible  <bruno@clisp.org>
91446         Work around a HP-UX stdio bug.
91447         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
91448         * tests/test-ftello.c (main): Likewise.
91449         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
91450         * doc/posix-functions/ftello.texi: Likewise.
91452 2008-04-13  Bruno Haible  <bruno@clisp.org>
91454         Make test-signbit pass on HP-UX/hppa.
91455         * tests/test-signbit.c (minus_zerol): New variable.
91456         (test_signbitl): Use it.
91458 2008-04-13  Bruno Haible  <bruno@clisp.org>
91460         Make truncl work on OSF/1 4.0.
91461         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
91462         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
91463         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
91464         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
91465         HAVE_DECL_TRUNCL.
91466         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
91467         HAVE_DECL_TRUNCL.
91468         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
91470 2008-04-13  Bruno Haible  <bruno@clisp.org>
91472         * lib/unictype.h: Remove trailing comma from enumeration definitions.
91474 2008-04-13  Bruno Haible  <bruno@clisp.org>
91476         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
91477         expression, so as to avoid HP-UX 11 cc compiler bug.
91479 2008-04-13  Bruno Haible  <bruno@clisp.org>
91481         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
91483 2008-04-13  Bruno Haible  <bruno@clisp.org>
91485         * lib/git-merge-changelog.c: Remove empty declaration outside of
91486         functions.
91488 2008-04-13  Bruno Haible  <bruno@clisp.org>
91490         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
91492 2008-04-13  Bruno Haible  <bruno@clisp.org>
91494         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
91495         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
91496         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
91497         also if it exists but lacks definitions of the SHUT_* macros.
91498         * modules/sys_socket (Description): Update.
91499         Reported by Elbert Pol <e.pol@chello.nl>.
91501 2008-04-13  Bruno Haible  <bruno@clisp.org>
91503         * lib/localcharset.c (OS2): Don't redefine if already defined.
91504         Reported by Elbert Pol <e.pol@chello.nl>.
91506 2008-04-13  Bruno Haible  <bruno@clisp.org>
91508         * lib/binary-io.h [__EMX__]: Include <io.h>.
91509         Reported by Elbert Pol <e.pol@chello.nl>.
91511 2008-04-12  Bruno Haible  <bruno@clisp.org>
91513         * lib/fpucw.h: Enable the definitions also for x86_64.
91514         Needed for NetBSD/x86_64.
91515         Reported by Thomas Klausner <tk@giga.or.at>.
91517 2008-04-12  Bruno Haible  <bruno@clisp.org>
91519         * tests/test-strtod.c: Include isnand.h.
91520         (main): Use isnand instead of isnan.
91521         Reported by Jim Meyering.
91523 2008-04-12  Bruno Haible  <bruno@clisp.org>
91525         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
91526         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
91528 2008-04-12  Jim Meyering  <meyering@redhat.com>
91530         * m4/math_h.m4 (gl_MATH_H): Fix typos.
91532 2008-04-12  Bruno Haible  <bruno@clisp.org>
91534         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
91535         Reported by Elbert Pol <e.pol@chello.nl>.
91537 2008-04-12  Eric Blake  <ebb9@byu.net>
91539         Work around Solaris 10 math.h bug.
91540         * m4/math_h.m4 (gl_MATH_H): Check for bug.
91541         (gl_MATH_H_DEFAULTS): Set up default.
91542         * modules/math (Makefile.am): Replace new indicators.
91543         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
91544         * tests/test-math.c (main): Test this.
91545         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
91546         * doc/posix-headers/math.texi (math.h): Mention bug.
91547         Reported by Nelson H. F. Beebe and Jim Meyering.
91549 2008-04-11  Bruno Haible  <bruno@clisp.org>
91551         Adapt to future versions of Apple GCC.
91552         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
91553         Reported by Peter O'Gorman <peter@pogma.com>.
91555 2008-04-11  Bruno Haible  <bruno@clisp.org>
91557         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
91559 2008-04-11  Bruno Haible  <bruno@clisp.org>
91561         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
91563         * modules/getaddrinfo-tests (Makefile.am): Define
91564         test_getaddrinfo_LDADD.
91566 2008-04-11  Bruno Haible  <bruno@clisp.org>
91568         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
91569         (init): Fix syntax error.
91570         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
91571         is declared.
91573 2008-04-11  Bruno Haible  <bruno@clisp.org>
91575         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
91576         * modules/glob (Depends-on): Add stdbool.
91578 2008-04-11  Bruno Haible  <bruno@clisp.org>
91580         * lib/trim.c: Include <string.h>.
91582 2008-04-11  Eric Blake  <ebb9@byu.net>
91584         Avoid compile failure on OS/2.
91585         * lib/regex_internal.h (internal_function): Disable optimization
91586         on OS/2 (__EMX__), where it caused compiler error.
91587         Reported by Elbert Pol.
91589 2008-04-11  Bruno Haible  <bruno@clisp.org>
91591         Flush the standard error stream before aborting. Needed on mingw.
91592         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
91593         * tests/test-array_list.c (ASSERT): Likewise.
91594         * tests/test-array_oset.c (ASSERT): Likewise.
91595         * tests/test-avltree_list.c (ASSERT): Likewise.
91596         * tests/test-avltree_oset.c (ASSERT): Likewise.
91597         * tests/test-avltreehash_list.c (ASSERT): Likewise.
91598         * tests/test-binary-io.c (ASSERT): Likewise.
91599         * tests/test-byteswap.c (ASSERT): Likewise.
91600         * tests/test-c-ctype.c (ASSERT): Likewise.
91601         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
91602         * tests/test-c-strcasestr.c (ASSERT): Likewise.
91603         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
91604         * tests/test-c-strstr.c (ASSERT): Likewise.
91605         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
91606         * tests/test-canonicalize.c (ASSERT): Likewise.
91607         * tests/test-carray_list.c (ASSERT): Likewise.
91608         * tests/test-ceilf1.c (ASSERT): Likewise.
91609         * tests/test-ceilf2.c (ASSERT): Likewise.
91610         * tests/test-ceill.c (ASSERT): Likewise.
91611         * tests/test-count-one-bits.c (ASSERT): Likewise.
91612         * tests/test-fbufmode.c (ASSERT): Likewise.
91613         * tests/test-fflush2.c (ASSERT): Likewise.
91614         * tests/test-floorf1.c (ASSERT): Likewise.
91615         * tests/test-floorf2.c (ASSERT): Likewise.
91616         * tests/test-floorl.c (ASSERT): Likewise.
91617         * tests/test-fopen.c (ASSERT): Likewise.
91618         * tests/test-fpending.c (ASSERT): Likewise.
91619         * tests/test-fprintf-posix.c (ASSERT): Likewise.
91620         * tests/test-fpurge.c (ASSERT): Likewise.
91621         * tests/test-freadable.c (ASSERT): Likewise.
91622         * tests/test-freadahead.c (ASSERT): Likewise.
91623         * tests/test-freading.c (ASSERT): Likewise.
91624         * tests/test-freadptr.c (ASSERT): Likewise.
91625         * tests/test-freadptr2.c (ASSERT): Likewise.
91626         * tests/test-freadseek.c (ASSERT): Likewise.
91627         * tests/test-freopen.c (ASSERT): Likewise.
91628         * tests/test-frexp.c (ASSERT): Likewise.
91629         * tests/test-frexpl.c (ASSERT): Likewise.
91630         * tests/test-fseek.c (ASSERT): Likewise.
91631         * tests/test-fseeko.c (ASSERT): Likewise.
91632         * tests/test-fstrcmp.c (ASSERT): Likewise.
91633         * tests/test-ftell.c (ASSERT): Likewise.
91634         * tests/test-ftello.c (ASSERT): Likewise.
91635         * tests/test-func.c (ASSERT): Likewise.
91636         * tests/test-fwritable.c (ASSERT): Likewise.
91637         * tests/test-fwriting.c (ASSERT): Likewise.
91638         * tests/test-getdelim.c (ASSERT): Likewise.
91639         * tests/test-getline.c (ASSERT): Likewise.
91640         * tests/test-i-ring.c (ASSERT): Likewise.
91641         * tests/test-iconv-utf.c (ASSERT): Likewise.
91642         * tests/test-iconv.c (ASSERT): Likewise.
91643         * tests/test-isfinite.c (ASSERT): Likewise.
91644         * tests/test-isnand.c (ASSERT): Likewise.
91645         * tests/test-isnanf.c (ASSERT): Likewise.
91646         * tests/test-isnanl.h (ASSERT): Likewise.
91647         * tests/test-ldexpl.c (ASSERT): Likewise.
91648         * tests/test-linked_list.c (ASSERT): Likewise.
91649         * tests/test-linkedhash_list.c (ASSERT): Likewise.
91650         * tests/test-localename.c (ASSERT): Likewise.
91651         * tests/test-lseek.c (ASSERT): Likewise.
91652         * tests/test-mbscasecmp.c (ASSERT): Likewise.
91653         * tests/test-mbscasestr1.c (ASSERT): Likewise.
91654         * tests/test-mbscasestr2.c (ASSERT): Likewise.
91655         * tests/test-mbscasestr3.c (ASSERT): Likewise.
91656         * tests/test-mbscasestr4.c (ASSERT): Likewise.
91657         * tests/test-mbschr.c (ASSERT): Likewise.
91658         * tests/test-mbscspn.c (ASSERT): Likewise.
91659         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
91660         * tests/test-mbspbrk.c (ASSERT): Likewise.
91661         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
91662         * tests/test-mbsrchr.c (ASSERT): Likewise.
91663         * tests/test-mbsspn.c (ASSERT): Likewise.
91664         * tests/test-mbsstr1.c (ASSERT): Likewise.
91665         * tests/test-mbsstr2.c (ASSERT): Likewise.
91666         * tests/test-mbsstr3.c (ASSERT): Likewise.
91667         * tests/test-memchr2.c (ASSERT): Likewise.
91668         * tests/test-memmem.c (ASSERT): Likewise.
91669         * tests/test-open.c (ASSERT): Likewise.
91670         * tests/test-printf-frexp.c (ASSERT): Likewise.
91671         * tests/test-printf-frexpl.c (ASSERT): Likewise.
91672         * tests/test-printf-posix.c (ASSERT): Likewise.
91673         * tests/test-quotearg.c (ASSERT): Likewise.
91674         * tests/test-rbtree_list.c (ASSERT): Likewise.
91675         * tests/test-rbtree_oset.c (ASSERT): Likewise.
91676         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
91677         * tests/test-round1.c (ASSERT): Likewise.
91678         * tests/test-roundf1.c (ASSERT): Likewise.
91679         * tests/test-roundl.c (ASSERT): Likewise.
91680         * tests/test-signbit.c (ASSERT): Likewise.
91681         * tests/test-sleep.c (ASSERT): Likewise.
91682         * tests/test-snprintf-posix.c (ASSERT): Likewise.
91683         * tests/test-snprintf.c (ASSERT): Likewise.
91684         * tests/test-sprintf-posix.c (ASSERT): Likewise.
91685         * tests/test-stat-time.c (ASSERT): Likewise.
91686         * tests/test-strcasestr.c (ASSERT): Likewise.
91687         * tests/test-strerror.c (ASSERT): Likewise.
91688         * tests/test-striconv.c (ASSERT): Likewise.
91689         * tests/test-striconveh.c (ASSERT): Likewise.
91690         * tests/test-striconveha.c (ASSERT): Likewise.
91691         * tests/test-strsignal.c (ASSERT): Likewise.
91692         * tests/test-strstr.c (ASSERT): Likewise.
91693         * tests/test-strtod.c (ASSERT): Likewise.
91694         * tests/test-trunc1.c (ASSERT): Likewise.
91695         * tests/test-trunc2.c (ASSERT): Likewise.
91696         * tests/test-truncf1.c (ASSERT): Likewise.
91697         * tests/test-truncf2.c (ASSERT): Likewise.
91698         * tests/test-truncl.c (ASSERT): Likewise.
91699         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
91700         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
91701         * tests/test-vasnprintf.c (ASSERT): Likewise.
91702         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
91703         * tests/test-vasprintf.c (ASSERT): Likewise.
91704         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
91705         * tests/test-vprintf-posix.c (ASSERT): Likewise.
91706         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
91707         * tests/test-vsnprintf.c (ASSERT): Likewise.
91708         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
91709         * tests/test-wcwidth.c (ASSERT): Likewise.
91710         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
91711         * tests/test-xprintf-posix.c (ASSERT): Likewise.
91712         * tests/test-xvasprintf.c (ASSERT): Likewise.
91713         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
91714         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
91715         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
91716         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
91717         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
91718         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
91719         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
91720         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
91721         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
91722         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
91723         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
91724         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
91725         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
91726         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
91727         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
91728         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
91729         * tests/unictype/test-block_list.c (ASSERT): Likewise.
91730         * tests/unictype/test-block_of.c (ASSERT): Likewise.
91731         * tests/unictype/test-block_test.c (ASSERT): Likewise.
91732         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
91733         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
91734         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
91735         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
91736         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
91737         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
91738         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
91739         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
91740         * tests/unictype/test-combining.c (ASSERT): Likewise.
91741         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
91742         * tests/unictype/test-digit.c (ASSERT): Likewise.
91743         * tests/unictype/test-mirror.c (ASSERT): Likewise.
91744         * tests/unictype/test-numeric.c (ASSERT): Likewise.
91745         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
91746         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
91747         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
91748         * tests/unictype/test-scripts.c (ASSERT): Likewise.
91749         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
91750         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
91751         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
91752         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
91753         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
91754         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
91755         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
91756         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
91757         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
91758         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
91759         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
91760         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
91761         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
91762         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
91763         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
91764         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
91765         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
91766         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
91767         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
91768         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
91769         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
91770         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
91771         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
91772         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
91773         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
91774         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
91775         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
91776         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
91777         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
91778         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
91779         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
91780         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
91781         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
91782         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
91783         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
91784         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
91785         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
91786         Reported by Eric Blake.
91788 2008-04-11  Bruno Haible  <bruno@clisp.org>
91790         * lib/wchar.in.h: Tweak comment.
91792 2008-04-11  Bruno Haible  <bruno@clisp.org>
91794         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
91795         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
91796         gl_COMMON.
91797         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
91799 2008-04-11  Bruno Haible  <bruno@clisp.org>
91801         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
91803 2008-04-11  Simon Josefsson  <simon@josefsson.org>
91805         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
91806         of attempting to use non-existing /dev/*random.  Based on patch
91807         from Adam Strzelecki <ono@java.pl> in
91808         <http://lists.gnu.org/r/help-gsasl/2008-02/msg00000.html>.
91810 2008-04-08  Bruno Haible  <bruno@clisp.org>
91812         Add tentative support for emx+gcc.
91813         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
91814         * lib/fpurge.c (fpurge): Likewise.
91815         * lib/freadable.c (freadable): Likewise.
91816         * lib/freadahead.c (freadahead): Likewise.
91817         * lib/freading.c (freading): Likewise.
91818         * lib/freadptr.c (freadptr): Likewise.
91819         * lib/freadseek.c (freadptrinc): Likewise.
91820         * lib/fseeko.c (rpl_fseeko): Likewise.
91821         * lib/fseterr.c (fseterr): Likewise.
91822         * lib/fwritable.c (fwritable): Likewise.
91823         * lib/fwriting.c (fwriting): Likewise.
91824         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
91826 2008-04-09  Eric Blake  <ebb9@byu.net>
91828         Avoid some autoconf warnings.
91829         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
91830         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
91831         * m4/afs.m4 (gl_AFS): Likewise.
91832         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
91833         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
91834         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
91835         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
91836         (gl_INTEGER_TYPE_SUFFIX): Likewise.
91837         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
91838         (AC_CHECK_DECLS_ONCE): Likewise.
91839         Rename file...
91840         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
91841         gnulib-tool requires autoconf 2.59 or better.
91842         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
91844 2008-04-08  Eric Blake  <ebb9@byu.net>
91846         Use 'git describe --match' if present (added in git 1.5.5).
91847         * build-aux/git-version-gen: Limit result to tags that match 'v*'
91848         if possible.
91850 2008-04-08  Bruno Haible  <bruno@clisp.org>
91852         Add tentative support for OpenServer.
91853         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
91854         _ptr, _cnt.
91855         * lib/fpurge.c (fpurge): Likewise.
91856         * lib/freadable.c (freadable): Likewise.
91857         * lib/freadahead.c (freadahead): Likewise.
91858         * lib/freading.c (freading): Likewise.
91859         * lib/freadptr.c (freadptr): Likewise.
91860         * lib/freadseek.c (freadptrinc): Likewise.
91861         * lib/fseeko.c (rpl_fseeko): Likewise.
91862         * lib/fseterr.c (fseterr): Likewise.
91863         * lib/fwritable.c (fwritable): Likewise.
91864         * lib/fwriting.c (fwriting): Likewise.
91865         Reported by Roger Cornelius <rac@tenzing.org> and
91866         Brian K. White <brian@aljex.com>.
91868 2008-04-06  Jim Meyering  <meyering@redhat.com>
91870         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
91872 2008-04-06  Bruno Haible  <bruno@clisp.org>
91874         Avoid possible error with non-ASCII bytes in UTF-8 locales.
91875         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
91876         * tests/test-printf-posix.sh: Likewise.
91877         * tests/test-vfprintf-posix.sh: Likewise.
91878         * tests/test-vprintf-posix.sh: Likewise.
91879         * tests/test-xprintf-posix.sh: Likewise.
91881 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91883         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
91884         hide error from 'ls', needed on OS/2.
91885         Report by Elbert Pol <elbert.pol@gmail.com>.
91887 2008-04-04  Eric Blake  <ebb9@byu.net>
91889         Make test-fseeko.c failures meaningful.
91890         * tests/test-fseeko.c: Print line number on failure.
91891         * tests/test-fseek.c: Likewise.
91892         Reported by Nelson H. F. Beebe.
91894         Improve strtod bug detection check.
91895         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
91896         required for Solaris 10.
91897         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
91899 2008-04-04  Bruno Haible  <bruno@clisp.org>
91901         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
91902         by m4/setenv.m4.
91904 2008-04-03  Eric Blake  <ebb9@byu.net>
91906         Ensure sane .version contents.
91907         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
91908         version string.
91909         * build-aux/git-version-gen: Improve documentation.
91911         Make GNU make output nicer.
91912         * top/GNUmakefile [!_have-Makefile]: Add dependency on
91913         MAKECMDGOALS to enforce message for all command line targets.  Set
91914         srcdir for use in maint.mk.
91916         Another maintainer tweak.
91917         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
91918         a target that regenerates version.
91920 2008-04-03  Jim Meyering  <meyering@redhat.com>
91922         vc-list-files: don't cause coreutils "make po-check" failure
91923         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
91925 2008-04-03  Eric Blake  <ebb9@byu.net>
91927         Allow VPATH usage of vc-list-files.
91928         * build-aux/vc-list-files (scriptversion): Add timestamp.
91929         (options): Add --help, --version, -C.
91930         (CVS): Support installed cvsu.
91932 2008-04-02  Bruno Haible  <bruno@clisp.org>
91934         Avoid some "statement with no effect" warnings from gcc.
91935         * tests/test-wctype.c (main): Explicitly ignore unused values.
91936         Reported by Jim Meyering.
91938 2008-04-02  Jim Meyering  <meyering@redhat.com>
91940         Avoid some warnings from "gcc -Wshadow".
91941         * tests/test-frexp.c (exp): Define to a different identifier.
91942         * tests/test-frexpl.c (exp): Likewise.
91944 2008-04-03  Jim Meyering  <meyering@redhat.com>
91946         bootstrap: remove dangling *.[ch] symlinks from lib
91947         * build-aux/bootstrap [dangling symlink removal]: Move find's
91948         -depth option to precede all others, to avoid a warning.
91949         Remove *.[ch] files too, and from "$source_base" (usually lib/).
91951 2008-04-02  Bruno Haible  <bruno@clisp.org>
91953         Avoid some warnings from "gcc -Wshadow".
91954         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
91955         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
91956         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
91957         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
91958         Reported by Jim Meyering.
91960 2008-04-01  Bruno Haible  <bruno@clisp.org>
91962         Fix test to work on IRIX 6.5 with cc.
91963         * tests/test-math.c (numeric_equal): New function.
91964         (main): Use it.
91966 2008-04-01  Bruno Haible  <bruno@clisp.org>
91968         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
91970 2008-04-01  Bruno Haible  <bruno@clisp.org>
91972         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
91973         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
91974         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
91975         (Depends-on): Remove math.
91977         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
91978         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
91979         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
91980         (Depends-on): Remove math.
91982         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
91983         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
91984         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
91985         (Depends-on): Remove math.
91986         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
91987         (Depends-on): Remove math.
91989         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
91990         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
91991         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
91992         (Depends-on): Remove math.
91993         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
91994         (Depends-on): Remove math.
91996         * tests/test-round1.c: Include nan.h.
91997         (main): Use NaNd instead of NAN.
91998         * modules/round-tests (Files): Add tests/nan.h.
92000         * tests/test-trunc1.c: Include nan.h.
92001         (main): Use NaNd instead of NAN.
92002         * modules/trunc-tests (Files): Add tests/nan.h.
92004         * tests/test-roundf1.c: Include nan.h.
92005         (main): Use NaNf instead of NAN.
92006         * modules/roundf-tests (Files): Add tests/nan.h.
92008         * tests/test-truncf1.c: Include nan.h.
92009         (main): Use NaNf instead of NAN.
92010         * modules/truncf-tests (Files): Add tests/nan.h.
92012         * tests/test-ceilf1.c: Include nan.h.
92013         (main): Use NaNf instead of NAN.
92014         * modules/ceilf-tests (Files): Add tests/nan.h.
92016         * tests/test-floorf1.c: Include nan.h.
92017         (main): Use NaNf instead of NAN.
92018         * modules/floorf-tests (Files): Add tests/nan.h.
92020         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
92021         (main): Use NaNf instead of NAN.
92022         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
92024         * tests/test-isnand.c: Include nan.h instead of <math.h>.
92025         (main): Use NaNd instead of NAN.
92026         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
92028         * tests/test-frexp.c: Include nan.h.
92029         (main): Use NaNd instead of NAN.
92030         * modules/frexp-tests (Files): Add tests/nan.h.
92032         * lib/isnan.c: Don't include <math.h>.
92033         (FUNC): Don't use NAN macro.
92034         * modules/isnand-nolibm (Depends-on): Remove math.
92035         * modules/isnanf-nolibm (Depends-on): Remove math.
92036         * modules/isnanl (Depends-on): Remove math.
92037         * modules/isnanl-nolibm (Depends-on): Remove math.
92039         * tests/nan.h: New file.
92041 2008-04-01  Eric Blake  <ebb9@byu.net>
92043         Fix typos.
92044         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
92045         values to be the right type.
92047         For now, cater to gnulib strtod inaccuracies.
92048         * tests/test-strtod.c (main): Allow 1-ulp error on expected
92049         fractional results.  While not as nice from a QoI perspective, it
92050         is a quicker patch than correctly implementing decimal to binary
92051         rounding.
92053 2008-03-31  Eric Blake  <ebb9@byu.net>
92055         Guarantee a definition of NAN.
92056         * lib/math.in.h (NAN): Define if missing.
92057         * tests/test-math.c (main): Test it.
92058         * doc/posix-headers/math.texi (math.h): Document this.
92059         * lib/isnan.c (rpl_isnand): Use it.
92060         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
92061         * tests/test-floorf1.c (NaN): Likewise.
92062         * tests/test-frexp.c (NaN): Likewise.
92063         * tests/test-isnand.c (NaN): Likewise.
92064         * tests/test-isnanf.c (NaN): Likewise.
92065         * tests/test-round1.c (NaN): Likewise.
92066         * tests/test-roundf1.c (NaN): Likewise.
92067         * tests/test-snprintf-posix.h (NaN): Likewise.
92068         * tests/test-sprintf-posix.h (NaN): Likewise.
92069         * tests/test-trunc1.c (NaN): Likewise.
92070         * tests/test-truncf1.c (NaN): Likewise.
92071         * tests/test-vasnprintf-posix.c (NaN): Likewise.
92072         * tests/test-vasprintf-posix.c (NaN): Likewise.
92073         * modules/isnand-nolibm (Depends-on): Add math.
92074         * modules/isnanf-nolibm (Depends-on): Likewise.
92075         * modules/isnanl (Depends-on): Likewise.
92076         * modules/isnanl-nolibm (Depends-on): Likewise.
92077         * modules/snprintf-posix-tests (Depends-on): Likewise.
92078         * modules/sprintf-posix-tests (Depends-on): Likewise.
92079         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
92080         * modules/vsprintf-posix-tests (Depends-on): Likewise.
92081         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
92082         * modules/vasprintf-posix-tests (Depends-on): Likewise.
92084 2008-03-31  Bruno Haible  <bruno@clisp.org>
92086         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
92087         * doc/posix-functions/strtod.texi: Likewise.
92089 2008-03-31  Bruno Haible  <bruno@clisp.org>
92091         * tests/test-strtod.c (main): Don't use C99 syntax.
92093 2008-03-31  Bruno Haible  <bruno@clisp.org>
92095         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
92096         Reported by Eric Blake.
92098 2008-03-31  Jim Meyering  <meyering@redhat.com>
92100         Don't compare actual signbit return values.
92101         * tests/test-strtod.c (main): Rather, compare only their
92102         zero/non-zero nature.
92104 2008-03-31  Eric Blake  <ebb9@byu.net>
92106         More strtod documentation.
92107         * doc/posix-functions/strtod.texi (strtod): Interpret more test
92108         failures as distinct bugs.
92110 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
92112         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
92113         Problem reported by Erik Benada in
92114         <http://lists.gnu.org/r/bug-gnulib/2008-03/msg00249.html>.
92116 2008-03-30  Bruno Haible  <bruno@clisp.org>
92118         * tests/test-strtod.c: Add comments about which assertion fails on which
92119         platform.
92120         * doc/posix-functions/strtod.texi: Add info about many more platforms.
92122 2008-03-30  Eric Blake  <ebb9@byu.net>
92124         Test signbit behavior on zeros.
92125         * tests/test-signbit.c (test_signbitf): Add tests for zero.
92126         (test_signbitd, test_signbitl): Likewise.
92128         More strtod touchups.
92129         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
92130         sign of negative underflow, for now.  Use .5, not .1.
92131         * doc/posix-functions/strtod.texi (strtod): Mention these
92132         limitations.
92133         Reported by Jim Meyering.
92135 2008-03-30  Bruno Haible  <bruno@clisp.org>
92137         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
92138         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
92140 2008-03-30  Bruno Haible  <bruno@clisp.org>
92142         Avoid failure when attempting to return empty iconv results on some
92143         platforms.
92144         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
92145         allocation, don't report ENOMEM when the resulting string is empty.
92147 2008-03-30  Bruno Haible  <bruno@clisp.org>
92149         Fix buffer overrun.
92150         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
92151         Don't consider the width for tmp_length. Check count against tmp_length
92152         before doing the padding. Ensure enough allocation during padding.
92154 2008-03-30  Eric Blake  <ebb9@byu.net>
92156         strtod touchups.
92157         * lib/strtod.c (strtod): Avoid compiler warnings.
92158         Reported by Jim Meyering.
92160 2008-03-30  Bruno Haible  <bruno@clisp.org>
92162         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
92163         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
92164         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
92165         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
92166         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
92167         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
92168         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
92169         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
92171         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
92172         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
92173         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
92174         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
92175         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
92176         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
92177         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
92178         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
92180         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
92181         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
92182         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
92183         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
92184         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
92185         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
92186         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
92187         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
92189         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
92190         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
92192         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
92193         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
92195         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
92196         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
92198         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
92199         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
92200         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
92202         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
92203         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
92204         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
92206         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
92207         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
92208         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
92210         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
92211         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
92212         * modules/vasprintf (Depends-on): Add EOVERFLOW.
92214         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
92215         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
92216         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
92217         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
92218         (Depends-on): Add EOVERFLOW.
92219         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
92220         (Depends-on): Add EOVERFLOW.
92221         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
92222         (Depends-on): Add EOVERFLOW.
92223         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
92224         (Depends-on): Add EOVERFLOW.
92225         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
92226         (Depends-on): Add EOVERFLOW.
92227         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
92228         (Depends-on): Add EOVERFLOW.
92229         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
92230         (Depends-on): Add EOVERFLOW.
92231         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
92232         (Depends-on): Add EOVERFLOW.
92234         * lib/sprintf.c (EOVERFLOW): Remove fallback.
92235         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
92236         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
92238         * lib/snprintf.c (EOVERFLOW): Remove fallback.
92239         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
92240         * modules/snprintf (Depends-on): Add EOVERFLOW.
92242         * lib/poll.c (EOVERFLOW): Remove fallback.
92243         * modules/poll (Depends-on): Add EOVERFLOW.
92245         * lib/getugroups.c (EOVERFLOW): Remove fallback.
92246         * modules/getugroups (Depends-on): Add EOVERFLOW.
92248         * lib/getdelim.c (EOVERFLOW): Remove fallback.
92249         * modules/getdelim (Depends-on): Add EOVERFLOW.
92251         * lib/ftell.c (EOVERFLOW): Remove fallback.
92252         * modules/ftell (Depends-on): Add EOVERFLOW.
92254         * lib/fprintf.c (EOVERFLOW): Remove fallback.
92255         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
92256         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
92258         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
92260         * modules/EOVERFLOW-tests: New file.
92261         * tests/test-EOVERFLOW.c: New file.
92263         * modules/EOVERFLOW: New file.
92264         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
92266 2008-03-30  Bruno Haible  <bruno@clisp.org>
92268         Fix bug introduced on 2007-06-10.
92269         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
92270         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
92272 2008-03-30  Bruno Haible  <bruno@clisp.org>
92274         Improve freadseek's efficiency after ungetc.
92275         * lib/freadseek.c: Include freadahead.h.
92276         (freadptrinc): New function, extracted from freadseek.
92277         (freadseek): Use it in a loop. Use freadahead to determine the number
92278         of loop iterations.
92279         * modules/freadseek (Depends-on): Add freadahead.
92280         (configure.ac): Require AC_C_INLINE.
92282 2008-03-30  Bruno Haible  <bruno@clisp.org>
92284         * lib/freadseek.c (freadseek): Don't ignore the return value of
92285         freadptr.
92287 2008-03-29  Eric Blake  <ebb9@byu.net>
92289         Add hex float support.
92290         * modules/strtod (Depends-on): Add c-ctype.
92291         (Link): Mention POW_LIB.
92292         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
92293         whitespace between 'e' and exponent.
92294         * tests/test-strtod.c (main): Enable hex float tests.
92295         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
92296         now provides.
92298         Document various strtod bugs, with some fixes.
92299         * doc/posix-functions/strtod.texi (strtod): Document bugs with
92300         "-0x", "inf", "nan", and hex constants.
92301         * doc/posix-functions/atof.texi (atof): Likewise.
92302         * modules/stdlib (Makefile.am): Support strtod.
92303         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
92304         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
92305         detect additional strtod bugs.
92306         * lib/stdlib.in.h (rpl_strtod): Add declarations.
92307         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
92308         bool where appropriate.  Parse 'inf' and 'nan'.
92309         * tests/test-strtod.c: New file.
92310         * modules/strtod (Depends-on): Add stdbool, stdlib.
92311         (configure.ac): Turn on module indicator.
92312         * modules/strtod-tests: New module.
92314 2008-03-29  Eric Blake  <ebb9@byu.net>
92316         Fix ftell on mingw.
92317         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
92318         * modules/ftell-tests (Depends-on): Add binary-io.
92319         * modules/ftello-tests (Depends-on): Likewise.
92320         * tests/test-ftell.c (main): Enhance test to cover behavior after
92321         ungetc.  Enforce binary mode.
92322         * tests/test-ftello.c (main): Likewise.
92324         Pass test-freadseek on cygwin.
92325         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
92326         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
92327         ungetc buffer.
92329         * tests/test-fflush2.c (main): Fix typo.
92331 2008-03-29  Bruno Haible  <bruno@clisp.org>
92333         * tests/test-fflush2.c (main): Temporarily disable the contents of
92334         this test.
92335         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
92336         Reported by Eric Blake.
92338 2008-03-28  Simon Josefsson  <simon@josefsson.org>
92340         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
92341         (GC_SHA224_DIGEST_SIZE): Add.
92343         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
92344         (gc_hash_digest_length): Likewise.
92345         (gc_hash_buffer): Likewise.
92347 2008-03-25  Bruno Haible  <bruno@clisp.org>
92349         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
92350         detail which gettext release to use.
92351         Reported by Simon Josefsson.
92353 2008-03-26  Jim Meyering  <meyering@redhat.com>
92355         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
92356         * modules/gnumakefile (clean-GNUmakefile): Also, use
92357         test ... && ... || : syntax rather than if-then ... fi.
92359         gnumakefile: Don't double-quote-expand $(VPATH) value.
92360         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
92362 2008-03-24  Eric Blake  <ebb9@byu.net>
92364         Alter GNUmakefile to install into top directory.
92365         * modules/maintainer-makefile: Split, and add dependency...
92366         * modules/gnumakefile: to this new module.
92367         * build-aux/GNUmakefile: Move...
92368         * top/GNUmakefile: ...here.
92369         * build-aux/maint.mk: Move...
92370         * top/maint.mk: ...here.
92371         * MODULES.html.sh (Support for maintaining...): Document new
92372         module.
92374 2008-03-23  Bruno Haible  <bruno@clisp.org>
92376         * gnulib-tool: New options --vc-files, --no-vc-files.
92377         (func_usage): Document them.
92378         (vc_files): New variable.
92379         (func_import): Consider vc_files.
92380         (func_create_testdir): Set vc_files to empty.
92381         Suggested by Jim Meyering and Karl Berry.
92383 2008-03-23  Bruno Haible  <bruno@clisp.org>
92385         Fix regex compilation error on HP-UX 11.
92386         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
92387         * modules/regex (Files): Add m4/mbstate_t.m4.
92388         Reported by Ton Voon <ton.voon@altinity.com>.
92390 2008-03-23  Bruno Haible  <bruno@clisp.org>
92392         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
92394 2008-03-23  Eric Blake  <ebb9@byu.net>
92395             Bruno Haible  <bruno@clisp.org>
92397         Install files from top/ in the destination directory.
92398         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
92399         augmentation also for the files from top/.
92400         (func_import, func_create_testdir): Rewrite file names:
92401         top/filename -> filename.
92403 2008-03-23  Bruno Haible  <bruno@clisp.org>
92405         Tweak "gnulib --version" output.
92406         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
92408 2008-03-23  Bruno Haible  <bruno@clisp.org>
92410         Tweak "gnulib --version" output.
92411         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
92412         rather than contents of ChangeLog, when possible.
92414 2008-03-21  Eric Blake  <ebb9@byu.net>
92416         More --version tweaks.
92417         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
92418         date of last ChangeLog entry.
92420 2008-03-21  Jim Meyering  <meyering@redhat.com>
92422         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
92424 2008-03-20  Eric Blake  <ebb9@byu.net>
92426         VPATH fix.
92427         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
92429 2008-03-20  Simon Josefsson  <simon@josefsson.org>
92431         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
92432         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
92434 2008-03-20  Eric Blake  <ebb9@byu.net>
92436         Sync GNUmakefile with coreutils.
92437         * build-aux/GNUmakefile (have-Makefile): Rename...
92438         (_have-Makefile): ...to this, for namespace consideration.
92439         (GNUmakefile.cfg): Include, if present.
92440         (_autoreconf): Define a default.
92441         (_is-dist-target): New rule for rebuilds to pick up intra-release
92442         version.
92443         (maint-cfg.mk): Rename...
92444         (cfg.mk): ...to this.
92446 2008-03-18  Jim Meyering  <meyering@redhat.com>
92448         New script and module: mktempd
92449         * MODULES.html.sh (maint+release support): Add mktempd.
92450         * build-aux/mktempd: New file.
92451         * modules/mktempd: New file.
92453 2008-03-15  Jim Meyering  <meyering@redhat.com>
92455         Undo last change.
92456         * lib/sha1.c, lib/md5.c: 63 != ~63.
92457         Reported by Andreas Schwab.
92459         sha1.c, md5.c: Hoist a redundant expression.
92460         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
92461         "ctx->buflen" only once, before calling *_process_block.
92462         * lib/md5.c (md5_process_bytes): Likewise.
92464 2008-03-14  Eric Blake  <ebb9@byu.net>
92466         Bump copyright year in files generated by gnulib-tool.
92467         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
92468         gnulib-tool, rather than hard-coding it.
92470         Fix 'gnulib-tool --version' output to work with git.
92471         * gnulib-tool (func_gnulib_dir): New function, extracted from...
92472         (startup): ...here.
92473         (func_version): Use it to invoke git-version-gen, rather than
92474         relying on CVS keyword expansion.  Modernize wording.
92475         (cvsdatestamp, last_checkin_date, version): Kill unused
92476         variables.
92478 2008-03-12  Jim Meyering  <meyering@redhat.com>
92480         Recognize optional cast of the argument to free.
92481         * build-aux/useless-if-before-free: Update regexps.
92483         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
92485 2008-03-11  Bruno Haible  <bruno@clisp.org>
92487         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
92488         by a single package.
92489         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
92490         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
92491         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
92492         Reported by Sam Steingold <sds@gnu.org>.
92494 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
92496         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
92497         repositories.
92499 2008-03-11  Bruno Haible  <bruno@clisp.org>
92501         Avoid conflicts between local macro definitions.
92502         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
92503         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
92505 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
92506             Bruno Haible  <bruno@clisp.org>
92508         Make va_copy work with some version of xlc on AIX 5.1.
92509         * lib/stdarg.in.h: New file.
92510         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
92511         On AIX, use a <stdarg.h> file substitute.
92512         * modules/stdarg (Files): Add lib/stdarg.in.h.
92513         (Depends-on): Add include_next.
92514         (Makefile.am): Build a stdarg.h substitute if requested.
92515         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
92517 2008-03-10  Bruno Haible  <bruno@clisp.org>
92519         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
92520         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
92521         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
92523 2008-03-10  Bruno Haible  <bruno@clisp.org>
92525         * modules/stdlib (Depends-on): Add include_next, remove
92526         absolute-header.
92528 2008-03-09  Bruno Haible  <bruno@clisp.org>
92530         * lib/freadahead.h (freadahead): Document more precisely.
92531         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
92532         the sum of both buffer sizes.
92533         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
92534         * NEWS: Document the change.
92536 2008-03-09  Bruno Haible  <bruno@clisp.org>
92538         Extend freadptr to return also the buffer size.
92539         * lib/freadptr.h (freadptr): Add sizep argument.
92540         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
92541         (freadptr): Add sizep argument. Determine buffer size like freadahead
92542         does.
92543         * tests/test-freadptr.c: Don't include freadahead.h.
92544         (main): Adapt for new calling convention of freadptr.
92545         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
92546         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
92547         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
92548         tests/test-freadptr2.sh.
92549         (Depends): Remove freadahead.
92550         (TESTS): Add test-freadptr2.sh.
92551         (check_PROGRAMS): Add test-freadptr2.
92553 2008-03-09  Bruno Haible  <bruno@clisp.org>
92555         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
92556         Report and solution by Simon Josefsson.
92558 2008-03-06  Bruno Haible  <bruno@clisp.org>
92560         Make fflush after ungetc work on BSD platforms.
92561         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
92562         * tests/test-fflush2.c: New file.
92563         * tests/test-fflush2.sh: New file.
92564         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
92565         tests/test-fflush2.c.
92566         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
92567         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
92569 2008-03-06  Eric Blake  <ebb9@byu.net>
92571         Likewise for ftello.
92572         * modules/ftello (Dependencies): Add extensions.
92573         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
92575 2008-03-06  Bruno Haible  <bruno@clisp.org>
92577         * modules/fseeko (Dependencies): Add extensions.
92578         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
92579         Needed on glibc systems.
92581 2008-03-06  Bruno Haible  <bruno@clisp.org>
92583         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
92584         email address.
92585         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
92587 2008-03-06  Bruno Haible  <bruno@clisp.org>
92589         * users.txt: Add libgnupdf.
92591 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
92593         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
92594         (Header File Substitutes, Function Substitutes,
92595         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
92596         (Build robot for gnulib): Fix typo.
92598 2008-03-06  Bruno Haible  <bruno@clisp.org>
92600         * doc/gnulib-tool.texi (VCS Issues): Small updates.
92601         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
92603 2008-03-06  Bruno Haible  <bruno@clisp.org>
92605         * doc/func.texi: New file, extracted from doc/gnulib.texi.
92606         * doc/gnulib.texi: Include it.
92608 2008-03-06  Simon Josefsson  <simon@josefsson.org>
92610         * modules/func (License): Change license to unlimited; there was
92611         no LGPL parts in the module anyway.
92613 2008-03-06  Simon Josefsson  <simon@josefsson.org>
92615         * modules/__func__: Renamed to modules/func.
92616         * modules/__func__-tests: Renamed to modules/func-tests.
92617         * tests/test-__func__.c: Renamed to tests/test-func.c.
92618         * m4/__func__.m4: Renamed to m4/func.m4.
92619         * doc/gnulib.texi (__func__): Section renamed to func.
92620         Suggested by Eric Blake <ebb9@byu.net>.
92622 2008-03-06  Simon Josefsson  <simon@josefsson.org>
92624         * doc/gnulib.texi (__func__): Use C99 terminology when talking
92625         about __func__.  Make example self-contained.  Suggested by Eric
92626         Blake <ebb9@byu.net>.
92628         * tests/test-__func__.c (main): Avoid extraneous () around __func.
92629         Suggested by Eric Blake <ebb9@byu.net>.
92631 2008-03-06  Simon Josefsson  <simon@josefsson.org>
92633         * modules/__func__: New file.
92634         * modules/__func__-tests: New file.
92635         * tests/test-__func__.c: New file.
92636         * m4/__func__.m4: New file.
92637         * doc/gnulib.texi (__func__): Document __func__ module.
92639 2008-03-05  Simon Josefsson  <simon@josefsson.org>
92641         * modules/byteswap (License): Re-license as LGPLv2+.
92643 2008-03-05  Simon Josefsson  <simon@josefsson.org>
92645         * doc/Makefile: Add pdf target.
92647 2008-03-05  Simon Josefsson  <simon@josefsson.org>
92649         * modules/inline (License): Use 'unlimited', since there are only
92650         *.m4 files in this module.
92652 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
92653             Bruno Haible  <bruno@clisp.org>
92655         Add support for HP C 7.1 on OpenVMS 8.3.
92656         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
92658 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
92660         Update VMS specifics.
92661         * lib/getopt.c [VMS]: Remove include of unixlib.h.
92663 2008-03-02  Jim Meyering  <meyering@redhat.com>
92665         Remove the last dependency on the "free" module.
92666         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
92667         Reported by Bob Proulx.
92669         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
92671         Remove useless "if" tests before free.  Deprecate "free" module.
92672         * doc/posix-functions/free.texi: Mention that this
92673         module is no longer useful.
92674         * modules/free (Notice): Say this module is obsolete.
92675         * modules/readutmp (Depends-on): Remove free.
92676         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
92677         * lib/putenv.c (putenv): Likewise.
92678         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
92679         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
92680         * tests/test-c-strcasestr.c (main): Likewise.
92681         * tests/test-c-strstr.c (main): Likewise.
92682         * tests/test-mbscasestr1.c (main): Likewise.
92683         * tests/test-mbscasestr2.c (main): Likewise.
92684         * tests/test-mbsstr1.c (main): Likewise.
92685         * tests/test-mbsstr2.c (main): Likewise.
92686         * tests/test-memmem.c (main): Likewise.
92687         * tests/test-strcasestr.c (main): Likewise.
92688         * tests/test-striconv.c (main): Likewise.
92689         * tests/test-striconveh.c (main): Likewise.
92690         * tests/test-striconveha.c (main): Likewise.
92691         * tests/test-strstr.c (main): Likewise.
92693         * build-aux/git-version-gen: Adjust a comment and the Usage string.
92695         bootstrap: sync from coreutils again
92696         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
92698 2008-03-01  Jim Meyering  <meyering@redhat.com>
92700         bootstrap: sync from coreutils
92701         * build-aux/bootstrap (update_po_files): Copy a .po file into place
92702         also when the target doesn't exist.
92704 2008-03-01  Eric Blake  <ebb9@byu.net>
92706         Fix bugs in last patch.
92707         * lib/memchr2.c (memchr2): Fix typo.
92708         * tests/test-memchr2.c: Test previous bug, and don't use GNU
92709         extension.
92710         Reported by Bruce Korb.
92712         New module 'memchr2'.
92713         * modules/memchr2: New file.
92714         * modules/memchr2-tests: Likewise.
92715         * lib/memchr2.h: Likewise.
92716         * lib/memchr2.c: Likewise, based on memchr.c.
92717         * tests/test-memchr2.c: New test.
92718         * MODULES.html.sh (String handling): Add memchr2.
92720 2008-02-29  Bruno Haible  <bruno@clisp.org>
92722         * modules/freadseek-tests: New file.
92723         * tests/test-freadseek.sh: New file.
92724         * tests/test-freadseek.c: New file.
92726         New module 'freadseek'.
92727         * modules/freadseek: New file.
92728         * lib/freadseek.h: New file.
92729         * lib/freadseek.c: New file.
92730         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
92732 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
92734         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
92735         wydawca.
92737         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
92738         program_invocation_name and program_invocation_short_name are
92739         present.
92741 2008-02-28  Bruno Haible  <bruno@clisp.org>
92743         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
92744         * tests/test-freadptr.sh: Also test non-seekable stdin.
92746 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
92748         * build-aux/bootstrap (source_base, m4_base)
92749         (doc_base, tests_base): New variables.
92750         (gnulib_tool_options): Do not hardcode base directories, use
92751         the above variables instead.
92753 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
92755         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
92757 2008-02-28  Bruno Haible  <bruno@clisp.org>
92759         * modules/freadptr-tests: New file.
92760         * tests/test-freadptr.sh: New file.
92761         * tests/test-freadptr.c: New file.
92763         New module 'freadptr'.
92764         * modules/freadptr: New file.
92765         * lib/freadptr.h: New file.
92766         * lib/freadptr.c: New file.
92767         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
92769 2008-02-26  Karl Berry  <karl@freefriends.org>
92771         Sync from Libtool:
92772         * libltdl/argz.c (argz_add, argz_count): New functions.
92773         * libltdl/argz.in.h: Declare them.
92774         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
92776 2008-02-22  Bruno Haible  <bruno@clisp.org>
92778         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
92779         is a pointer type.  Needed for HP-UX 10.
92780         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
92781         * doc/posix-functions/gmtime_r.texi: Likewise.
92782         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
92784 2008-02-24  Bruno Haible  <bruno@clisp.org>
92786         * modules/environ-tests: New file.
92787         * tests/test-environ.c: New file.
92789         New module 'environ'.
92790         * modules/environ: New file.
92791         * lib/unistd.in.h (environ): New declaration.
92792         * m4/environ.m4: New file.
92793         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
92794         after use.
92795         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
92796         HAVE_DECL_ENVIRON.
92797         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
92798         HAVE_DECL_ENVIRON.
92799         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
92800         wrong claim that 'environ' is missing on some systems.
92801         * modules/execute (Depends-on): Add environ.
92802         * lib/execute.c (environ): Remove fallback declaration.
92803         * modules/pipe (Depends-on): Add environ.
92804         * lib/pipe.c (environ): Remove fallback declaration.
92805         * modules/setenv (Depends-on): Add environ.
92806         * lib/setenv.c (environ): Remove fallback declaration.
92807         * modules/unsetenv (Depends-on): Add environ.
92808         * lib/unsetenv.c (environ): Remove fallback declaration.
92809         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
92810         m4/environ.m4.
92811         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
92812         (gl_PREREQ_UNSETENV): Likewise.
92814 2008-02-24  Bruno Haible  <bruno@clisp.org>
92816         * doc/posix-functions/environ.texi: Document the MacOS X problem.
92818 2008-02-20  Bob Proulx  <bob@proulx.com>
92820         Enable use of older two part flavor 'git describe'.
92821         * build-aux/git-version-gen: If using the older two part flavor of
92822         git version then recreate the third part now present in the
92823         newer three part flavor of git describe.
92825 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
92827         * lib/fts.c (fts_build): Typo correction to comment.
92829 2008-02-17  Bruno Haible  <bruno@clisp.org>
92831         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
92832         generating no-op conflicts.
92834 2008-02-17  Bruno Haible  <bruno@clisp.org>
92836         Speed up by 10%.
92837         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
92838         result_entries, rather than an index-based loop.
92840 2008-02-17  Bruno Haible  <bruno@clisp.org>
92842         Speed up by 25%.
92843         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
92844         'hashcode_cached'.
92845         (entry_create): New function.
92846         (entry_hashcode): Use the cached hashcode if possible.
92847         (read_changelog_file, try_split_merged_entry): Use entry_create.
92849 2008-02-17  Bruno Haible  <bruno@clisp.org>
92851         Speed up from O(n^2) to O(n) for long ChangeLog files.
92852         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
92853         (read_changelog_file): Change implementation of entries_reversed list
92854         to rbtreehash.
92855         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
92857 2008-02-17  Bruno Haible  <bruno@clisp.org>
92859         New option --split-merged-entry.
92860         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
92861         (find_paragraph_end, try_split_merged_entry): New functions.
92862         (long_options): Add option --split-merged-entry.
92863         (usage): Document option --split-merged-entry.
92864         (main): Implement option --split-merged-entry.
92865         Reported by Eric Blake.
92867 2008-02-17  Bruno Haible  <bruno@clisp.org>
92869         * lib/git-merge-changelog.c: Include c-strstr.h.
92870         (main): Support the "git pull --rebase" situation.
92871         * modules/git-merge-changelog (Depends-on): Add c-strstr.
92872         Reported by Eric Blake.
92874 2008-02-16  Eric Blake  <ebb9@byu.net>
92876         Avoid doubling \ in common case of "c-maybe" quoting style.
92877         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
92878         eliding outer quotes.
92879         * lib/quotearg.h: Document this.
92880         * tests/test-quotearg.c (result_strings, inputs, results_g)
92881         (flag_results, locale_results): Test it by adding a new string to
92882         each test group.
92883         (compare_strings): Test new string.
92885 2008-02-13  Eric Blake  <ebb9@byu.net>
92887         Avoid trigraph quoting in default output.
92888         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
92889         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
92890         unless explicitly requested.
92891         * tests/test-quotearg.c (flag_results, main): Add additional tests.
92893 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
92895         Don't rely on signed integer overflowing to negative value.
92896         * lib/getugroups.c (getugroups): Include <limits.h>.
92897         Instead, compare against INT_MAX, and increment only if the test passes.
92899 2008-02-13  Jim Meyering  <meyering@redhat.com>
92900         and Eric Blake  <ebb9@byu.net>
92902         Avoid shadowing warning and compile errors on Linux.
92903         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
92904         forwarding macros on Linux.
92905         (dcgettext): Define a stub, for Linux.
92906         (results_g, main): Avoid warnings.
92908 2008-02-12  Eric Blake  <ebb9@byu.net>
92910         Silence warning in last patch.
92911         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
92913         Quotearg part 4: add tests, fix c-maybe colon quoting.
92914         * lib/quotearg.h: Improve documentation.
92915         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
92916         escapes when adding outer quotes.  When quoting trigraphs, use
92917         valid C notation.  When quoting NUL, omit extra characters if next
92918         character is not digit.  Alter prototype.
92919         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
92920         callers.
92921         * modules/quotearg-tests: New module.
92922         * tests/test-quotearg.c: New test.
92924 2008-02-07  Eric Blake  <ebb9@byu.net>
92926         Quotearg part 3: add flag to control outer quote elision.
92927         * lib/quotearg.h (c_maybe_quoting_style): New style.
92928         (enum quoting_flags): Better documentation of flags.
92929         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
92930         c-maybe style.
92931         (quotearg_buffer_restyled): Handle new flag to elide outer
92932         quotes.
92934         Quotearg part 2: add flag that can control NUL elision.
92935         * lib/quotearg.h (set_quoting_flags): New prototype.
92936         * lib/quotearg.c (struct quoting_options): Add flag field.
92937         (set_quoting_flags): New function.
92938         (quotearg_buffer_restyled): Add flags parameter.
92939         (quotearg_alloc_mem): Set the flag if length cannot be returned.
92940         (quotearg_n_options): Set the flag, since length cannot be
92941         returned.
92942         (quoting_options_from_style): Default flags correctly.
92944         Quotearg part 1: more wrappers, restore quotearg_char state.
92945         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
92946         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
92947         (quotearg_colon_mem): New wrappers.
92948         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
92949         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
92950         functions.
92951         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
92952         (quotearg_colon_mem): New functions.
92954 2008-02-11  Bruno Haible  <bruno@clisp.org>
92956         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
92957         library in the current directory: it does not work with parallel make.
92958         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
92960 2008-02-11  Bruno Haible  <bruno@clisp.org>
92962         * .gitattributes: New file.
92964 2008-02-11  Jim Meyering  <meyering@redhat.com>
92966         useless-if-before-free: Fix reversed exit values.
92967         * build-aux/useless-if-before-free: Use correct values
92968         for EXIT_MATCH and EXIT_NO_MATCH.
92970         * build-aux/useless-if-before-free: Close stdout carefully.
92972 2008-02-10  Bruno Haible  <bruno@clisp.org>
92974         New module 'git-merge-changelog'.
92975         * modules/git-merge-changelog: New file.
92976         * lib/git-merge-changelog.c: New file.
92978 2008-02-10  Jim Meyering  <meyering@redhat.com>
92980         useless-if-before-free: New option: --list (-l).
92982         useless-if-before-free: Don't exit immediately upon open failure.
92983         * build-aux/useless-if-before-free: Exit 2 for errors.
92984         Upon failure to open a file, don't exit immediately.
92985         Rather, just warn and continue with any remaining files.
92987 2008-02-10  Bruno Haible  <bruno@clisp.org>
92989         New abstract list operation 'node_set_value'.
92990         * lib/gl_list.h (gl_list_node_set_value): New function.
92991         (struct gl_list_implementation): New field node_set_value.
92992         * lib/gl_list.c (gl_list_node_set_value): New function.
92993         * lib/gl_array_list.c (gl_array_node_set_value): New function.
92994         (gl_array_list_implementation): Update.
92995         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
92996         (gl_carray_list_implementation): Update.
92997         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
92998         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
92999         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
93000         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
93001         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
93002         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
93003         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
93004         Update.
93005         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
93006         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
93007         (gl_sublist_list_implementation): Update.
93009 2008-02-10  Bruno Haible  <bruno@clisp.org>
93011         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
93012         Needed when ELEMENT is #defined to 'some_type *'.
93014 2008-02-10  Jim Meyering  <meyering@redhat.com>
93016         New script and module: useless-if-before-free
93017         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
93018         * build-aux/useless-if-before-free: New file.
93019         * modules/useless-if-before-free: New file.
93021         * build-aux/gitlog-to-changelog: Use committer date, not author date.
93023         xstrtol_error: Fix typo.
93024         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
93025         s/exit_failure/exit_status/.
93027 2008-02-09  Jim Meyering  <meyering@redhat.com>
93029         New script and module: gitlog-to-changelog
93030         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
93031         * modules/gitlog-to-changelog: New file.
93032         * build-aux/gitlog-to-changelog: New file.
93034 2008-02-08  Jim Meyering  <meyering@redhat.com>
93036         Avoid two "parameter unused" warnings.
93037         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
93038         Mark "st" as used.
93040         Use "git COMMAND", not "git-COMMAND".
93041         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
93042         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
93043         * build-aux/git-version-gen: Use "git status", not "git-status".
93045 2008-02-07  Bruno Haible  <bruno@clisp.org>
93047         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
93048         Avoids a crash on Windows Vista.
93049         Reported by Adam Strzelecki <ono@java.pl> via
93050         Simon Josefsson <simon@josefsson.org>.
93052 2008-02-06  Bruno Haible  <bruno@clisp.org>
93054         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
93055         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
93056         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
93057         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
93058         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
93059         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
93060         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
93061         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
93062         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
93063         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
93064         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
93065         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
93066         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
93067         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
93068         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
93069         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
93070         left-adjust flag.
93071         * tests/test-snprintf-posix.h (test_function): Likewise.
93072         * tests/test-sprintf-posix.h (test_function): Likewise.
93073         * tests/test-vasprintf-posix.c (test_function): Likewise.
93074         * doc/posix-functions/fprintf.texi: Update.
93075         * doc/posix-functions/printf.texi: Update.
93076         * doc/posix-functions/snprintf.texi: Update.
93077         * doc/posix-functions/sprintf.texi: Update.
93078         * doc/posix-functions/vfprintf.texi: Update.
93079         * doc/posix-functions/vprintf.texi: Update.
93080         * doc/posix-functions/vsnprintf.texi: Update.
93081         * doc/posix-functions/vsprintf.texi: Update.
93082         Reported by Peter Fales <psfales@alcatel-lucent.com>.
93084 2008-02-06  Bruno Haible  <bruno@clisp.org>
93086         Fix bug introduced on 2008-01-26.
93087         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
93089 2008-02-06  Bruno Haible  <bruno@clisp.org>
93091         Fix bug introduced on 2007-06-10.
93092         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
93093         !NEED_PRINTF_FLAG_ZERO.
93095 2008-02-05  Peter O'Gorman  <pogma@thewrittenword.com>
93097         getloadavg: use libperfstat on AIX5
93098         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
93100 2008-02-03  Bruno Haible  <bruno@clisp.org>
93102         * lib/diffseq.h: Add comments about required #includes.
93103         Reported by Michael Biggs <gnulib@doubleplum.net>.
93105 2008-02-01  Bruno Haible  <bruno@clisp.org>
93107         * users.txt: Add gnuit.
93109 2008-01-31  Bruno Haible  <bruno@clisp.org>
93111         * lib/md4.c (set_uint32): Mark as inline.
93112         * lib/md5.c (set_uint32): Likewise.
93113         * lib/sha1.c (set_uint32): Likewise.
93114         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
93115         * m4/md5.m4 (gl_MD5): Likewise.
93116         * m4/sha1.m4 (gl_SHA1): Likewise.
93118 2008-01-31  Jim Meyering  <meyering@redhat.com>
93120         Use "sizeof VAR", rather than a literal "4".
93121         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
93122         * lib/md4.c (md4_read_ctx): Likewise.
93123         * lib/sha1.c (sha1_read_ctx): Likewise.
93125 2008-01-31  Simon Josefsson  <simon@josefsson.org>
93127         * tests/test-sha1.c: New file, based on test-md5.c.
93129         * modules/crypto/sha1-tests: New file.
93131 2008-01-31  Simon Josefsson  <simon@josefsson.org>
93133         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
93135 2008-01-31  Jim Meyering  <meyering@redhat.com>
93137         Prefer "sizeof v" over the equivalent "4".
93138         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
93139         * lib/md5.c (set_uint32): Likewise.
93140         * lib/sha1.c (set_uint32): Likewise.
93142 2008-01-31  Simon Josefsson  <simon@josefsson.org>
93144         * lib/sha1.c (set_uint32): Mark function as static.
93146 2008-01-31  Simon Josefsson  <simon@josefsson.org>
93148         md2: clarify comments to say that alignment is not required.
93149         * lib/md2.h: Remove warning about alignment in comment.
93150         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
93151         never been required.
93153 2008-01-31  Simon Josefsson  <simon@josefsson.org>
93155         md4: adapt alignment constraint fix from sha1.
93156         * lib/md4.c (set_uint32): New function, from sha1.c
93157         (md4_read_ctx): Use it.
93158         (md4_finish_ctx): Doc fix.
93159         * lib/md4.h: Doc fix.
93161 2008-01-31  Simon Josefsson  <simon@josefsson.org>
93163         md5: adapt alignment constraint fix from sha1.
93164         * lib/md5.c (set_uint32): New function, from sha1.c
93165         (md5_read_ctx): Use it.
93166         (md5_finish_ctx): Doc fix.
93167         * lib/md5.h: Doc fix.
93169 2008-01-30  Peter Palfrader  <weasel@debian.org>
93171         sha1: remove the result buffer alignment constraint
93172         * lib/sha1.c (set_uint32): New function.
93173         (sha1_read_ctx): Rewrite to remove the result buffer alignment
93174         constraint.
93175         (sha1_finish_ctx): Remove comment warning about alignment constraint.
93176         * lib/sha1.h: Likewise.
93178 2008-01-30  Andreas Schwab  <schwab@suse.de>
93179             Bruno Haible  <bruno@clisp.org>
93181         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
93182         correct definition of LDBL_MIN_EXP.
93184 2008-01-30  Karl Berry  <karl@gnu.org>
93186         * config/srclist-update: try to preserve x bit on updates.
93187         * config/srclistvars.sh: update for karl.
93189 2008-01-29  Jim Meyering  <meyering@redhat.com>
93191         vasnprintf.c: Avoid warning about unused label
93192         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
93193         "overflow" label definition and associated code with the
93194         same cpp condition that guards the sole use of that label.
93196 2008-01-26  Bruno Haible  <bruno@clisp.org>
93198         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
93199         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
93200         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
93201         * lib/isnanl-nolibm.h (isnanl): Likewise.
93202         Reported by Paul Eggert <eggert@cs.ucla.edu>.
93204 2008-01-26  Bruno Haible  <bruno@clisp.org>
93206         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
93207         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
93209 2008-01-26  Bruno Haible  <bruno@clisp.org>
93211         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
93212         GCC >= 4.0 built-in.
93213         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
93215 2008-01-26  Bruno Haible  <bruno@clisp.org>
93217         Rename isnan, applicable to 'double' only, to isnand.
93218         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
93219         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
93220         (configure.ac): Update.
93221         (Include): Replace "isnan.h" with "isnand.h".
93222         * m4/isnand.m4: Renamed from m4/isnan.m4.
93223         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
93224         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
93225         instead of isnan.c.
93226         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
93227         instead of HAVE_ISNAN_IN_LIBC.
93228         (isnand): Renamed from isnan.
93229         * lib/isnand.c: New file.
93230         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
93231         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
93232         (Makefile.am): Update.
93233         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
93234         Include isnand.h instead of isnan.h.
93235         (main): Test isnand instead of isnan.
93236         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
93237         isnan-nolibm.
93238         * modules/frexp (Depends-on): Likewise.
93239         * modules/frexp-tests (Depends-on): Likewise.
93240         * modules/frexp-nolibm (Depends-on): Likewise.
93241         * modules/frexp-nolibm-tests (Depends-on): Likewise.
93242         * modules/isfinite (Depends-on): Likewise.
93243         * modules/round-tests (Depends-on): Likewise.
93244         * modules/signbit (Depends-on): Likewise.
93245         * modules/signbit-tests (Depends-on): Likewise.
93246         * modules/snprintf-posix (Depends-on): Likewise.
93247         * modules/sprintf-posix (Depends-on): Likewise.
93248         * modules/trunc-tests (Depends-on): Likewise.
93249         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
93250         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
93251         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
93252         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
93253         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
93254         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
93255         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
93256         * modules/vasnprintf-posix (Depends-on): Likewise.
93257         * modules/vasprintf-posix (Depends-on): Likewise.
93258         * modules/vfprintf-posix (Depends-on): Likewise.
93259         * modules/vsnprintf-posix (Depends-on): Likewise.
93260         * modules/vsprintf-posix (Depends-on): Likewise.
93261         * lib/frexp.c: Include isnand.h instead of isnan.h.
93262         (ISNAN): Set to isnand instead of isnan.
93263         * lib/isfinite.c: Include isnand.h instead of isnan.h.
93264         (gl_isfinited): Use isnand instead of isnan.
93265         * lib/signbitd.c: Include isnand.h instead of isnan.h.
93266         (gl_signbitd): Use isnand instead of isnan.
93267         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
93268         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
93269         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
93270         (main): Use isnand instead of isnan.
93271         * tests/test-round1.c: Include isnand.h.
93272         (main): Use isnand instead of isnan.
93273         * tests/test-round2.c: Include isnand.h instead of isnan.h.
93274         (ISNAN): Set to isnand instead of isnan.
93275         * tests/test-trunc1.c: Include isnand.h.
93276         (main): Use isnand instead of isnan.
93277         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
93278         (equal): Use isnand instead of isnan.
93279         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
93280         isnand-nolibm.
93281         * NEWS: Mention the change.
93283 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
93284             Bruno Haible  <bruno@clisp.org>
93286         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
93287         the GCC builtins for signbits are present and set
93288         REPLACE_SIGNBIT_USING_GCC if so.
93289         * lib/math.in.h (signbit): Define using GCC builtins if
93290         REPLACE_SIGNBIT_USING_GCC is set.
93291         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
93292         REPLACE_SIGNBIT_USING_GCC.
93293         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
93295 2008-01-25  Jim Meyering  <meyering@redhat.com>
93297         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
93298         * lib/poll.c: Include <config.h>, not "config.h".
93299         * tests/test-getaddrinfo.c: Likewise.
93301 2008-01-25  Simon Josefsson  <simon@josefsson.org>
93303         * modules/sockets-tests: New file.
93305 2008-01-24  Simon Josefsson  <simon@josefsson.org>
93307         * modules/sockets: New module, can be used to call WSA_Startup and
93308         WSA_Cleanup when needed.
93310         * lib/sockets.h, lib/sockets.c: New files.
93312         * m4/sockets.m4: New file.
93314         * tests/test-sockets.c: New file.
93316 2008-01-19  Bruno Haible  <bruno@clisp.org>
93318         * doc/posix-headers: Renamed from doc/headers.
93319         * doc/posix-functions: Renamed from doc/functions.
93320         * doc/gnulib.texi: Update.
93322 2008-01-19  Bruno Haible  <bruno@clisp.org>
93324         * doc/glibc-functions/strcasestr.texi: Include contents of
93325         doc/functions/strcasestr.texi, fixing the list of platforms.
93326         * doc/functions/strcasestr.texi: Remove file.
93328 2008-01-19  Bruno Haible  <bruno@clisp.org>
93330         * doc/glibc-functions/memmem.texi: Include contents of
93331         doc/functions/memmem.texi.
93332         * doc/functions/memmem.texi: Remove file.
93334 2008-01-18  Bruno Haible  <bruno@clisp.org>
93336         * doc/glibc-functions/*.texi: New files.
93337         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
93338         to use the new files.
93340 2008-01-17  Bruno Haible  <bruno@clisp.org>
93342         * tests/test-gethostname.c (main): Fix printf statement.
93344 2008-01-17  Simon Josefsson  <simon@josefsson.org>
93346         * modules/gethostname-tests: New file.
93348         * tests/test-gethostname.c: New file.
93350 2008-01-17  Simon Josefsson  <simon@josefsson.org>
93352         * lib/gethostname.c: Include string.h unconditionally, strncpy is
93353         used by the UNAME case.  Reported by Bruno Haible
93354         <bruno@clisp.org>.
93356 2008-01-17  Eric Blake  <ebb9@byu.net>
93358         Convert c-strcasestr to be more efficient.
93359         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
93360         (Depends-on): Add c-strcase, remove malloca, strnlen.
93361         * tests/test-c-strcasestr.c (main): Enhance test.
93362         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
93364 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
93366         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
93367         Use it in creating po/Makevars.
93369 2008-01-15  Simon Josefsson  <simon@josefsson.org>
93371         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
93372         Applications that requires it should initialize libgcrypt
93373         manually.
93375 2008-01-16  Simon Josefsson  <simon@josefsson.org>
93377         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
93379 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
93381         Fix problem with getdate on mingw32 reported by Simon Josefsson
93382         in <http://lists.gnu.org/r/bug-gnulib/2008-01/msg00192.html>.
93383         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
93384         tzname", when deciding whether to declare tzname.
93385         * lib/strftime.c (tzname): Likewise.
93387 2008-01-15  Bruno Haible  <bruno@clisp.org>
93389         Work around a MacOS X 10.5 bug in frexpl().
93390         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
93391         * doc/functions/frexpl.texi: Document the bug.
93392         Reported by Elias Pipping <pipping@gentoo.org>.
93394 2008-01-14  Eric Blake  <ebb9@byu.net>
93396         Touch up previous patch.
93397         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
93398         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
93400         Convert strcasestr module to use Two-Way algorithm.
93401         * modules/strcasestr-simple: New module, based on the old
93402         strcasestr, but with Two-Way rather than KMP.
93403         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
93404         * lib/string.in.h (rpl_strcasestr): Declare.
93405         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
93406         performance.
93407         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
93408         * modules/string (Makefile.am): Support strcasestr.
93409         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
93410         * modules/strcasestr-tests (Depends-on): Check for alarm.
93411         * tests/test-strcasestr.c: Augment test.
93412         * lib/str-two-way.h: Clean up stray macro.
93413         * NEWS: Document new module.
93414         * MODULES.html.sh (string handling): Likewise.
93415         * doc/functions/strcasestr.texi: New file.
93416         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
93417         here, since it is not a POSIX function.
93419 2008-01-14  Colin Watson  <cjwatson@debian.org>
93420             Bruno Haible  <bruno@clisp.org>
93422         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
93423         works fine; if not, set REPLACE_STRSIGNAL.
93424         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
93425         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
93426         REPLACE_STRSIGNAL.
93427         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
93428         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
93429         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
93431 2008-01-14  Bruno Haible  <bruno@clisp.org>
93433         * modules/strsignal (Include): Change to <string.h>.
93435 2008-01-14  Colin Watson  <cjwatson@debian.org>
93437         * modules/argp (Notice): Add a notice recommending to change
93438         XGETTEXT_OPTIONS.
93439         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
93441 2008-01-13  Colin Watson  <cjwatson@debian.org>
93443         * modules/strsignal-tests: New file.
93444         * tests/test-strsignal.c: New file.
93446         * lib/strsignal.c: New file, from glibc with modifications.
93447         * lib/siglist.h: New file, from glibc with modifications.
93448         * lib/string.in.h (strsignal): New declaration.
93449         * m4/strsignal.m4: New file.
93450         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
93451         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
93452         * modules/strsignal: New file.
93453         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
93454         HAVE_DECL_STRSIGNAL.
93456 2008-01-13  Bruno Haible  <bruno@clisp.org>
93458         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
93459         locale encoding is not ASCII. Needed for OpenBSD 4.0.
93460         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
93461         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
93463 2008-01-13  Bruno Haible  <bruno@clisp.org>
93465         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
93466         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
93467         * lib/argp.h (__attribute__): Likewise.
93468         * lib/c-stack.c (__attribute__): Likewise.
93469         * lib/error.h (__attribute__): Likewise.
93470         * lib/fts.c (__attribute__): Likewise.
93471         * lib/openat.h (__attribute__): Likewise.
93472         * lib/stdio.in.h (__attribute__): Likewise.
93473         * lib/string.in.h (__attribute__): Likewise.
93474         * lib/utimens.c (__attribute__): Likewise.
93475         * lib/vasnprintf.h (__attribute__): Likewise.
93476         * lib/xalloc.h (__attribute__): Likewise.
93477         * lib/xprintf.h (__attribute__): Likewise.
93478         * lib/xstrtol.h (__attribute__): Likewise.
93479         * lib/xvasprintf.h (__attribute__): Likewise.
93481 2008-01-12  Bruno Haible  <bruno@clisp.org>
93483         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
93484         * doc/glibc-headers/a.out.texi: New file.
93485         * doc/glibc-headers/aliases.texi: New file.
93486         * doc/glibc-headers/alloca.texi: New file.
93487         * doc/glibc-headers/ar.texi: New file.
93488         * doc/glibc-headers/argp.texi: New file.
93489         * doc/glibc-headers/argz.texi: New file.
93490         * doc/glibc-headers/byteswap.texi: New file.
93491         * doc/glibc-headers/crypt.texi: New file.
93492         * doc/glibc-headers/endian.texi: New file.
93493         * doc/glibc-headers/envz.texi: New file.
93494         * doc/glibc-headers/err.texi: New file.
93495         * doc/glibc-headers/error.texi: New file.
93496         * doc/glibc-headers/execinfo.texi: New file.
93497         * doc/glibc-headers/fpu_control.texi: New file.
93498         * doc/glibc-headers/fstab.texi: New file.
93499         * doc/glibc-headers/fts.texi: New file.
93500         * doc/glibc-headers/getopt.texi: New file.
93501         * doc/glibc-headers/ieee754.texi: New file.
93502         * doc/glibc-headers/ifaddrs.texi: New file.
93503         * doc/glibc-headers/libintl.texi: New file.
93504         * doc/glibc-headers/mcheck.texi: New file.
93505         * doc/glibc-headers/mntent.texi: New file.
93506         * doc/glibc-headers/obstack.texi: New file.
93507         * doc/glibc-headers/paths.texi: New file.
93508         * doc/glibc-headers/printf.texi: New file.
93509         * doc/glibc-headers/pty.texi: New file.
93510         * doc/glibc-headers/resolv.texi: New file.
93511         * doc/glibc-headers/shadow.texi: New file.
93512         * doc/glibc-headers/sysexits.texi: New file.
93513         * doc/glibc-headers/ttyent.texi: New file.
93515 2008-01-12  Jim Meyering  <meyering@redhat.com>
93517         announce-gen: emit Gnulib's git-based version string.
93518         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
93519         New option --gnulib-version=V, where V is expected to be
93520         the output of running git describe in the gnulib directory.
93521         (get_tool_versions): Request feedback on xdelta.  I suspect it's
93522         not useful, and plan to stop publishing an xdelta file with each
93523         coreutils release.
93525         * build-aux/announce-gen: Also check for lzma-compressed files.
93527 2008-01-11  Bruno Haible  <bruno@clisp.org>
93529         * tests/test-memmem.c (main): Increase maximum allowed time.
93530         * tests/test-strstr.c (main): Likewise.
93532 2008-01-11  Bruno Haible  <bruno@clisp.org>
93534         * doc/functions/memmem.texi: Add more precisions about platforms.
93535         * doc/functions/strstr.texi: Likewise.
93537 2008-01-10  Eric Blake  <ebb9@byu.net>
93539         * m4/strstr.m4: Delete cruft from copy-n-paste.
93540         Reported by Bruno Haible.
93542 2008-01-10  Bruno Haible  <bruno@clisp.org>
93544         Make c-strstr rely on strstr.
93545         * lib/c-strstr.c: Don't include str-kmp.h.
93546         (c_strstr): Define in terms of strstr.
93547         * modules/c-strstr (Files): Remove lib/str-kmp.h.
93548         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
93550 2008-01-10  Bruno Haible  <bruno@clisp.org>
93552         * doc/gnulib.texi (String Functions in C Locale): New section.
93553         * doc/c-ctype.texi: New file.
93554         * doc/c-strcase.texi: New file.
93555         * doc/c-strcaseeq.texi: New file.
93556         * doc/c-strcasestr.texi: New file.
93557         * doc/c-strstr.texi: New file.
93558         * doc/c-strtod.texi: New file.
93559         * doc/c-strtold.texi: New file.
93561 2008-01-10  Eric Blake  <ebb9@byu.net>
93563         * lib/relocatable.h: Fix a comment.
93565 2008-01-10  Eric Blake  <ebb9@byu.net>
93567         Share two-way algorithm.
93568         * lib/str-two-way.h: New file, merged from...
93569         * lib/memmem.c: ...here...
93570         * lib/strstr.c: ...and here.
93571         * modules/memmem (Files): Use it.
93572         * modules/strstr (Files): Likewise.
93574         Avoid quadratic strstr implementations.
93575         * lib/strstr.c: New file.
93576         * m4/strstr.m4: Likewise.
93577         * modules/strstr: Likewise.
93578         * modules/strstr-tests: Likewise.
93579         * tests/test-strstr.c: Likewise.
93580         * lib/string.in.h (rpl_strstr): Declare.
93581         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
93582         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
93583         * modules/string (Makefile.am): Likewise.
93584         * MODULES.html.sh (string handling): Mention new module.
93585         * doc/functions/strstr.texi (strstr): Document the bug.
93587 2008-01-10  Bruno Haible  <bruno@clisp.org>
93589         * lib/relocatable.h (relocate): State whether result is freshly
93590         allocated or not.
93591         * lib/relocatable.c (relocate): Return a freshly allocated string
93592         instead of a pointer to a privately held string.
93593         Reported by Sylvain Beucler <beuc@gnu.org>.
93595 2008-01-10  Colin Watson  <cjwatson@debian.org>
93597         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
93598         s/S_ISNLK/S_ISLNK/.
93600 2008-01-09  Bruno Haible  <bruno@clisp.org>
93602         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
93603         and other files.
93604         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
93605         if it's only a guess.
93606         * modules/memmem: Simplify by depending on memmem-simple.
93608 2008-01-09  Bruno Haible  <bruno@clisp.org>
93610         Work around OpenBSD 4.0 tdelete() bug.
93611         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
93612         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
93613         macros and don't redefine the enum values.
93614         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
93615         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
93616         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
93618 2008-01-09  Bruno Haible  <bruno@clisp.org>
93620         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
93621         (main): Don't perform the tests if setlocale did not install a UTF-8
93622         locale. Needed on OpenBSD 4.0.
93623         * modules/wcwidth-tests (Depends-on): Add localcharset.
93625 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
93627         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
93628         See <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00149.html>.
93629         * NEWS: announce this.
93630         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
93632 2008-01-09  Simon Josefsson  <simon@josefsson.org>
93633         and Eric Blake  <ebb9@byu.net>
93635         Add memmem-simple module.
93636         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
93637         (gl_FUNC_MEMMEM): Separate performance from presence checks.
93638         * modules/memmem-simple: New file.
93639         * modules/memmem (Description): Tweak.
93640         * MODULES.html.sh (string handling): Mention new module.
93641         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
93642         addressed by memmem-simple.
93643         * NEWS: Document the difference.
93645 2008-01-09  Eric Blake  <ebb9@byu.net>
93647         Give gcc some memmem optimization hints.
93648         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
93649         (strcasestr): Declare as pure.
93650         * modules/memmem (Maintainer): Claim my implementation.
93652 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93654         Support AIX 6.1 and higher.
93655         * build-aux/config.libpath: Likewise.
93656         * build-aux/config.rpath: Likewise.
93658 2008-01-08  Jim Meyering  <meyering@redhat.com>
93659             Bruno Haible  <bruno@clisp.org>
93661         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
93662         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
93663         Reported by Peter Fales in
93664         <http://lists.gnu.org/r/bug-coreutils/2007-12/msg00148.html>.
93666 2008-01-08  Bruno Haible  <bruno@clisp.org>
93668         * modules/unictype/category-of (Depends-on): Add
93669         unictype/category-none.
93670         * modules/unictype/category-and-tests (Depends-on): Add
93671         unictype/category-{L,N,Lu,Nd}.
93672         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
93673         * modules/unictype/category-or-tests (Depends-on): Add
93674         unictype/category-{L,N}.
93675         * modules/unictype/category-name-tests (Depends-on): Add
93676         unictype/category-{Z,Nl}.
93677         Reported by Simon Josefsson.
93679 2008-01-08  Bruno Haible  <bruno@clisp.org>
93681         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
93682         convention better.
93683         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
93684         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
93685         Reported by Peter Miller <millerp@canb.auug.org.au>.
93687 2008-01-08  Eric Blake  <ebb9@byu.net>
93689         Rewrite memmem to guarantee linear complexity without malloc.
93690         * lib/memmem.c (memmem): Use Two-Way rather than
93691         Knuth-Morris-Pratt, to allow O(1) space usage.
93692         (critical_factorization, two_way_short_needle)
93693         (two_way_long_needle): New functions.
93694         (knuth_morris_pratt): Delete.
93695         * modules/memmem (Depends-on): No longer need malloca or stdbool.
93696         Add stdint.
93697         * tests/test-memmem.c (main): Add tests for periodic needle and
93698         sublinear performance.
93699         * doc/functions/memmem.texi (memmem): Document other deficiencies
93700         in cygwin and older glibc.
93702 2008-01-08  Bruno Haible  <bruno@clisp.org>
93704         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
93705         augmentation.
93707 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
93709         Add a configure time option: --disable-acl.
93710         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
93711         AC_ARG_ENABLE(acl).
93713 2008-01-06  Simon Josefsson  <simon@josefsson.org>
93715         * tests/test-localename.c: Don't include obsolete "setenv.h".
93717         * modules/localename-tests (Depends-on): Need unsetenv.
93719 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93721         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
93723 2008-01-06  Colin Watson  <cjwatson@debian.org>
93725         * users.txt: Add man-db.
93727 2008-01-07  Bruno Haible  <bruno@clisp.org>
93729         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
93730         previous section name.
93732 2008-01-07  Bruno Haible  <bruno@clisp.org>
93734         * lib/progname.c (set_program_name): Don't strip off a leading
93735         "lt-" prefix outside a .libs directory.
93736         Suggested by Paul Eggert.
93738 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
93739             Bruno Haible  <bruno@clisp.org>
93741         Improve memory cleanup in 'relocatable' module.
93742         * lib/relocatable.h (compute_curr_prefix): Change return type to
93743         'char *'.
93744         * lib/relocatable.c (compute_curr_prefix): Change return type to
93745         'char *'. Free curr_installdir after use.
93746         (relocate): Free curr_prefix_better after use.
93747         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
93749 2008-01-01  Bruno Haible  <bruno@clisp.org>
93751         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
93752         failure on older glibc systems.
93753         Reported by Peter Fales <psfales@alcatel-lucent.com>.
93755 2008-01-05  Eric Blake  <ebb9@byu.net>
93757         Avoid quadratic system memmem.
93758         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
93759         Reported by Ralf Wildenhues.
93761         Fix memmem test for mingw.
93762         * modules/memmem-tests (configure.ac): Check for alarm.
93763         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
93764         it.
93765         * doc/functions/memmem.texi: New file.
93766         * doc/gnulib.texi (Function Substitutes): Add memmem.
93767         Reported by Bruno Haible.
93769 2008-01-04  Bruno Haible  <bruno@clisp.org>
93771         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
93772         Require gl_HEADER_STRINGS_H_DEFAULTS, not
93773         gl_HEADER_STRING_H_DEFAULTS.
93775 2008-01-04  Eric Blake  <ebb9@byu.net>
93777         Shorten duration of memmem test.
93778         * tests/test-memmem.c (main): Use alarm to declare failure if test
93779         is taking too long.
93780         Reported by Ralf Wildenhues.
93782 2007-12-21  Simon Josefsson  <simon@josefsson.org>
93784         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
93785         string, needed by strerror.
93787 2008-01-03  Colin Watson  <cjwatson@debian.org>
93788             Bruno Haible  <bruno@clisp.org>
93790         * doc/gnulib-tool.texi (Localization): New section.
93792 2008-01-02  Bruno Haible  <bruno@clisp.org>
93794         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
93795         variables to 'unsigned char *' type.
93796         Reported by Paul Eggert.
93798 2008-01-02  Jim Meyering  <jim@meyering.net>
93800         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
93802 2007-12-31  Jim Meyering  <jim@meyering.net>
93804         Avoid use of private FTS type name.
93805         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
93807 2007-12-30  Karl Berry  <karl@gnu.org>
93809         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
93810         work around defect in Texinfo and/or the standalone Info browser.
93812 2007-12-30  Bruno Haible  <bruno@clisp.org>
93814         Unify 5 copies of the KMP code.
93815         * lib/str-kmp.h: New file.
93816         * lib/c-strcasestr.c: Include str-kmp.h.
93817         (knuth_morris_pratt): Remove function.
93818         (c_strcasestr): Update.
93819         * lib/c-strstr.c: Include str-kmp.h.
93820         (knuth_morris_pratt): Remove function.
93821         (c_strcasestr): Update.
93822         * lib/mbscasestr.c: Include str-kmp.h.
93823         (knuth_morris_pratt_unibyte): Remove function.
93824         * lib/mbsstr.c: Include str-kmp.h.
93825         (knuth_morris_pratt_unibyte): Remove function.
93826         * lib/strcasestr.c: Include str-kmp.h.
93827         (knuth_morris_pratt): Remove function.
93828         (strcasestr): Update.
93829         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
93830         * modules/c-strstr (Files): Likewise.
93831         * modules/mbscasestr (Files): Likewise.
93832         * modules/mbsstr (Files): Likewise.
93833         * modules/strcasestr (Files): Likewise.
93834         Suggested by Paul Eggert.
93836 2007-12-30  Bruno Haible  <bruno@clisp.org>
93838         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
93839         defined.
93841 2007-12-30  Bruno Haible  <bruno@clisp.org>
93843         * lib/xmalloca.h: Include xalloc.h.
93844         (xnmalloca): New macro.
93846 2007-12-30  Bruno Haible  <bruno@clisp.org>
93848         * lib/malloca.h (nmalloca): New macro.
93849         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
93850         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
93851         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
93852         knuth_morris_pratt_multibyte): Likewise.
93853         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
93854         knuth_morris_pratt_multibyte): Likewise.
93855         * lib/memmem.c (knuth_morris_pratt): Likewise.
93856         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
93858 2007-12-25  Bruno Haible  <bruno@clisp.org>
93860         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
93861         * lib/glob.c: Don't include openat.h.
93862         (link_exists2_p): Add back the code that deals with the
93863         !GLOB_ALTDIRFUNC case.
93864         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
93865         let it do the filename concatenation.
93866         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
93867         * modules/glob (Depends-on): Remove openat.
93869 2007-12-31  Bruno Haible  <bruno@clisp.org>
93871         * modules/dirfd (License): Change to LGPLv2+.
93872         Approved by Jim Meyering.
93874 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
93876         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
93877         when multiplying M by sizeof (size_t).
93879 2007-12-10  Martin Lambers  <marlam@marlam.de>
93881         Override getpagesize on mingw.
93882         * lib/getpagesize.c: New file.
93883         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
93884         * modules/getpagesize (Files): Add lib/getpagesize.c.
93885         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
93886         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
93887         REPLACE_GETPAGESIZE.
93888         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
93890 2007-12-25  Bruno Haible  <bruno@clisp.org>
93892         * modules/localcharset (Notice): New field.
93893         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
93894         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
93896 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
93897             Bruno Haible  <bruno@clisp.org>
93899         Avoid using the syntax symbol() in formatted documentation.
93900         * MODULES.html.sh (func_module): When replacing symbol() with a
93901         hyperlink, remove the parentheses. Show an error if some remain.
93902         Recognize and render the '...' syntax.
93903         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
93904         Rework. Add paragraph about GCC's inlining.
93905         * doc/alloca.texi: Likewise.
93906         * doc/error.texi: Remove parentheses from symbol reference.
93907         * doc/gnulib-intro.texi: Likewise.
93908         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
93909         * modules/fnmatch (Description): Reword to say "the ... function".
93910         * modules/full-read (Description): Likewise.
93911         * modules/full-write (Description): Likewise.
93912         * modules/safe-read (Description): Likewise.
93913         * modules/safe-write (Description): Likewise.
93914         * modules/strchrnul (Description): Likewise.
93915         * modules/trim (Description): Likewise.
93916         * modules/error (Description): Remove parentheses from symbol
93917         references.
93918         * modules/verror (Description): Likewise.
93919         Reported by Karl Berry.
93921 2007-12-25  Bruno Haible  <bruno@clisp.org>
93923         Fixup after 2007-10-16 commit.
93924         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
93926 2007-12-24  Bruno Haible  <bruno@clisp.org>
93928         Make --enable-relocatable work with DESTDIR.
93929         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
93930         to compute installdir from destprog.
93931         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
93932         also set the RELOC_DESTDIR variable.
93933         Reported by Левашев Иван <octagram@bluebottle.com>.
93935 2007-12-24  Bruno Haible  <bruno@clisp.org>
93937         Fix link error due to xalloc_die().
93938         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
93939         of xreadlink.
93940         * lib/relocwrapper.c: Update comments.
93941         * build-aux/install-reloc: Remove xreadlink.c from file list.
93942         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
93943         xreadlink.c.
93944         Reported by Левашев Иван <octagram@bluebottle.com>.
93946 2007-12-24  Bruno Haible  <bruno@clisp.org>
93948         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
93949         * lib/setenv.h: Remove file.
93950         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
93951         lib/setenv.h.
93952         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
93953         (Depends-on): Add stdlib.
93954         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
93955         gl_FUNC_UNSETENV.
93956         (Include): Replace setenv.h with <stdlib.h>.
93957         * modules/unsetenv: New file.
93958         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
93959         * lib/unsetenv.c: Include <stdlib.h> first.
93960         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
93961         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
93962         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
93963         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
93964         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
93965         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
93966         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
93967         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
93968         * doc/functions/unsetenv.texi: Update.
93969         * modules/xsetenv (Depends-on): Add unsetenv.
93970         * modules/getdate (Depends-on): Likewise.
93971         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
93972         * lib/xsetenv.c: Don't include setenv.h.
93973         * lib/getdate.y: Likewise.
93974         * lib/relocwrapper.c: Likewise.
93975         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
93976         (Depends-on): Add stdlib.
93977         * NEWS: Mention the changes.
93978         Reported by Левашев Иван <octagram@bluebottle.com>.
93980 2007-12-23  Bruno Haible  <bruno@clisp.org>
93982         * lib/memmem.c (memmem): Use lowercase variable names. Tab
93983         indentation.
93985 2007-12-23  Bruno Haible  <bruno@clisp.org>
93987         * lib/c-strcasestr.c: Add more comments.
93988         * lib/c-strstr.c: Likewise.
93989         * lib/mbscasestr.c: Likewise.
93990         * lib/mbsstr.c: Likewise.
93991         * lib/strcasestr.c: Likewise.
93992         * lib/memmem.c: Likewise.
93994 2007-12-23  Bruno Haible  <bruno@clisp.org>
93996         * tests/test-memmem.c: Include <string.h> first.
93998 2007-12-22  Bruno Haible  <bruno@clisp.org>
94000         * gnulib-tool (func_create_testdir): Change $auxdir while generating
94001         the contents of $testsbase.
94002         Reported by Ralf Wildenhues.
94004 2007-12-22  Bruno Haible  <bruno@clisp.org>
94006         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
94007         two variables local_ldadd_before, local_ldadd_last.
94009 2007-12-20  Eric Blake  <ebb9@byu.net>
94011         Work around circular library issue when cross-compiling.
94012         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
94013         that progname.o does not need to pull in rpl_memcmp.
94015 2007-12-19  Eric Blake  <ebb9@byu.net>
94017         Fix memmem to avoid O(n^2) worst-case complexity.
94018         * lib/memmem.c (knuth_morris_pratt): New function.
94019         (memmem): Use it if first few naive iterations fail.
94020         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
94021         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
94022         * modules/memchr (License): Likewise.
94023         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
94024         malloca.
94025         * tests/test-memmem.c: Rewrite, borrowing ideas from
94026         test-mbsstr1.c; the old version wouldn't even compile!
94027         * modules/memmem-tests: New file.
94028         * lib/string.in.h (rpl_memmem): Add declaration.
94029         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
94030         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
94031         REPLACE_MEMMEM.
94033 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
94035         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
94036         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
94037         before any system include files, and undef after them all.  This
94038         should fix a problem on VMS reported by John E. Malmberg in
94039         <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00118.html>.
94041 2007-12-17  Eric Blake  <ebb9@byu.net>
94043         Revert addition of verify, for BSD/OS.
94044         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
94045         can't handle large files, for the sake of obsolete platforms.
94046         * modules/fseeko (Depends-on): Remove verify.
94047         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
94048         * doc/functions/ftello.texi (ftello): Likewise.
94049         * doc/functions/fgetpos.texi (fgetpos): Likewise.
94050         Reported by Larry Jones.
94052 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
94054         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
94055         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
94057 2007-12-17  Jim Meyering  <meyering@redhat.com>
94059         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
94060         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
94061         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
94062         * modules/getcwd (Depends-on): Add openat.
94063         Reported by Petr Salinger.
94065 2007-12-17  Bruno Haible  <bruno@clisp.org>
94067         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
94068         avoid a segmentation fault of the configure test on x86_64 systems.
94070 2007-12-15  Jim Meyering  <meyering@redhat.com>
94072         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
94074 2007-12-13  Eric Blake  <ebb9@byu.net>
94076         Another fseek test.
94077         * tests/test-fseek.c (main): Also test ungetc handling.
94078         * tests/test-fseeko.c (main): Likewise.
94079         * modules/fseeko (Depends-on): Add verify.
94080         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
94081         large.
94082         Reported by Larry Jones.
94084         Fix fseeko on mingw.
94085         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
94086         seek.
94088         Beef up fseek tests.
94089         * tests/test-fseek.c (main): Also test eof handling.
94090         * tests/test-fseeko.c (main): Likewise.
94091         Reported by Larry Jones.
94093 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
94095         Fix fseeko on BSD-based platforms.
94096         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
94097         successful seek.
94099 2007-12-12  Eric Blake  <ebb9@byu.net>
94101         Allow circular dependency of separate libtests.a
94102         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
94103         when use_libtests.
94105 2007-12-11  Eric Blake  <ebb9@byu.net>
94107         Fix bug with -0.0L in previous patch.
94108         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
94109         * tests/test-isnan.c (main): Also test on zeroes.
94110         * tests/test-isnanf.c (main): Likewise.
94111         * tests/test-isnanl.h (main): Likewise.
94113         Detect pseudo-denormals on x86 even when cross-compiling.
94114         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
94115         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
94116         invalid bit patterns that happen to satisfy ==.
94118         Avoid link failures with separate libtests.a.
94119         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
94120         last, to satisfy circular dependencies.
94122 2007-12-11  Eric Blake  <ebb9@byu.net>
94123         and Bruno Haible  <bruno@clisp.org>
94125         Fix OpenBSD 4.0 <float.h> handling of long double.
94126         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
94127         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
94128         * doc/headers/float.texi (float.h): Document OpenBSD bug.
94130 2007-12-11  Jim Meyering  <meyering@redhat.com>
94132         * users.txt: Add libvirt.
94134         Support versions of autoconf prior to 2.59c.
94135         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
94136         if it is not already defined.
94138 2007-12-09  Bruno Haible  <bruno@clisp.org>
94140         Let 'gnulib-tool --import' collect sources needed for the tests in
94141         tests/ rather than in lib/.
94142         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
94143         argument. If true, add rules to generate libtests.a, and put libtests.a
94144         into $(LDADD). Consider source files in subdirectories and set
94145         uses_subdirs.
94146         (func_emit_initmacro_start, func_emit_initmacro_end,
94147         func_emit_initmacro_done): Pass all arguments explicitly.
94148         (func_import): Determine two module lists main_modules,
94149         testsrelated_modules. Determine use_libtests. Determine two variables
94150         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
94151         instead of just sed_transform_lib_file. Determine two variables
94152         main_files and testsrelated_files. Compute 'files' as the union of
94153         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
94154         func_add_or_update. In the generated gnulib-comp.m4, collect the
94155         object files for tests/ in different variables than those for lib/.
94156         Substitute LIBTESTS_LIBDEPS.
94157         (func_create_testdir): Combine the uses_subdirs results from
94158         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
94160 2007-12-09  Bruno Haible  <bruno@clisp.org>
94162         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
94163         the build-aux directory.
94165 2007-12-09  Bruno Haible  <bruno@clisp.org>
94167         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
94168         introduced on 2006-09-09.
94170 2007-12-07  Jim Meyering  <meyering@redhat.com>
94172         Let these macros work also with autoconf-2.59.
94173         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
94174         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
94175         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
94177 2007-12-06  Jim Meyering  <meyering@redhat.com>
94179         Avoid a configure-time syntax error in gl_FUNC_ACL.
94180         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
94181         function in each branch, before testing the cache variable.
94183 2007-12-04  Eric Blake  <ebb9@byu.net>
94185         Make scripts executable.
94186         * build-aux/config.guess: Add execute permissions.
94187         * build-aux/config.sub: Likewise.
94188         * build-aux/gendocs.sh: Likewise.
94190         Fix frexp on mingw.
94191         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
94192         cross-compiling.
94193         * doc/functions/frexp.texi (frexp): Document the bug.
94195         Make cygwin fseeko check more reliable.
94196         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
94197         version numbers, rather than unrelated feature check.
94198         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
94199         * doc/functions/ftello.texi (ftello): Likewise.
94200         Reported by Bruno Haible.
94202         * m4/strerror.m4: Bump version number.
94204 2007-12-03  Bruno Haible  <bruno@clisp.org>
94206         * doc/functions/mprotect.texi: Mention the mingw problem.
94208 2007-12-03  Eric Blake  <ebb9@byu.net>
94210         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
94211         REPLACE_STRERROR is initialized before this macro.
94213 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
94215         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
94216         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
94217         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
94218         put -lsec in even for programs other than 'ls'.  This fixes a problem
94219         for gettext reported by Bruno Haible in
94220         <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00007.html>.
94221         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
94222         Add support for Solaris 10.  This isn't efficient, but should get the
94223         job done for now.
94225 2007-12-03  James Youngman  <jay@gnu.org>
94227         * doc/regexprops-generic.texi: change "an close-group" to "a
94228         close-group" and "illegal" to "not allowed".
94230 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94232         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
94233         pr_byname.h. Needed for the rare case when the maintainer has done
94234         "make maintainer-clean" in the source directory and then attempts a
94235         build outside the source directory.
94236         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
94237         scripts_byname.h.
94239 2007-12-02  Martin Lambers  <marlam@marlam.de>
94240             Bruno Haible  <bruno@clisp.org>
94242         * lib/getpagesize.h: Remove file.
94243         * lib/unistd.in.h: Include declaration of getpagesize here.
94244         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
94245         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
94246         HAVE_SYS_PARAM_H.
94247         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
94248         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
94249         * modules/getpagesize (Files): Remove lib/getpagesize.h.
94250         (Depends-on): Add unistd.
94251         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
94252         (Include): Use <unistd.h> instead of getpagesize.h.
94253         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
94254         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
94255         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
94256         gl_GETPAGESIZE invocation, already handled by module dependency.
94257         * lib/pagealign_alloc.c: Don't include getpagesize.h.
94259 2007-12-02  Bruno Haible  <bruno@clisp.org>
94261         * modules/strings-tests: New file.
94262         * tests/test-strings.c: New file.
94264         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
94265         * lib/strings.in.h: New file.
94266         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
94267         * m4/strings_h.m4: New file.
94268         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
94269         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
94270         * modules/strings: New file.
94271         * modules/string (Makefile.am): Update.
94272         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
94273         Reported by Karl Berry.
94275 2007-12-01  Eric Blake  <ebb9@byu.net>
94277         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
94278         accommodate fix in cygwin 1.5.25.
94280 2007-12-01  Jim Meyering  <meyering@redhat.com>
94282         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
94283         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
94284         that would inhibit utf8-optimization of a regexp containing line-
94285         or buffer-anchors, e.g., `^', `$'.
94287 2007-11-30  Bruno Haible  <bruno@clisp.org>
94289         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
94290         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
94291         glthread_recursive_lock_init.
94292         * lib/lock.c (glthread_recursive_lock_init)
94293         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
94294         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
94296 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
94298         New function qset_acl, like set_acl but with syscall semantics.
94299         * lib/acl.h (qset_acl): New decl.
94300         * lib/acl.c (qset_acl): New function.
94301         (set_acl): Use new function.  Use more-consistent diagnostics.
94303 2007-11-28  Jim Meyering  <meyering@redhat.com>
94305         * modules/physmem (License): Change from GPL to LGPLv2+.
94307 2007-11-26  Bruno Haible  <bruno@clisp.org>
94309         * lib/vasnprintf.c (decode_long_double): Don't abort if the
94310         'long double' type has excess precision.
94311         Reported by Jim Meyering in
94312         <http://lists.gnu.org/r/bug-gnulib/2007-11/msg00120.html>.
94314 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94316         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
94317         Sync from <http://gnu.org/licenses>.
94318         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
94319         with license text from same location.
94320         * doc/maintain.texi, doc/standards.texi:  Sync from
94321         <http://savannah.gnu.org/projects/gnustandards>.
94323 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
94324         and Jim Meyering  <meyering@redhat.com>
94326         Adjust getdate' grammar to accept a slightly more regular language.
94327         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
94328         Before, the former was rejected.
94329         * lib/getdate.y (digits_to_date_time): New function, factored
94330         out of ...
94331         (number): ...here.  Just call digits_to_date_time.
94332         (hybrid): New non-terminal to handle an <unsigned number,
94333         signed relative offset> sequence consistently.
94335 2007-11-18  Jim Meyering  <meyering@redhat.com>
94337         Pull my changes from coreutils:
94338         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
94339         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
94340         use of $gnulib_tool_option_extras, so that it's separated from the
94341         preceding argument.
94343         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
94344         * build-aux/bootstrap (cp_mark_as_generated): Create any required
94345         parent destination directories before copying a file into place.
94347 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
94349         bootstrap: work also with 4-argument variant of AC_INIT
94350         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
94352 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
94354         Port test-getaddrinfo to Solaris.
94355         Problem reported by Bruno Haible in
94356         <http://lists.gnu.org/r/bug-gnulib/2007-03/msg00171.html>.
94357         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
94358         explanation of setting 'hints'.
94359         Don't reject an implementation merely because it returns EAI_SERVICE.
94360         (EAI_SERVICE): Define to 0 if not defined.
94362 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
94364         The license of gnu-make and posix-shell is now "GPLed build tool".
94365         * modules/gnu-make (License): Likewise.
94366         * modules/posix-shell (License): Likewise.
94368         New module posix-shell, for determining a POSIX shell
94369         or perhaps something that is close enough to a POSIX shell.
94370         * m4/posix-shell.m4: New file.
94371         * modules/posix-shell: New file.
94373         * MODULES.html.sh: Mention new module.
94375         New module gnu-make, for determining whether we're using GNU Make.
94376         * m4/gnu-make.m4: New file.
94377         * modules/gnu-make: New file.
94378         * MODULES.html.sh: Mention new module.
94380 2007-11-14  Jim Meyering  <meyering@redhat.com>
94382         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
94383         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
94384         use this macro to create a function _definition_.
94385         Remove useless "#undef ARGMATCH_DIE".
94387 2007-11-14  Bruno Haible  <bruno@clisp.org>
94389         * lib/config.charset: Update for OpenBSD 4.1.
94390         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
94392 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
94394         Document 64-bit #if problems in stdint.texi.
94395         * doc/headers/stdint.texi (stdint.h): Mention problems with
94396         64-bit-#if, and how to work around them.
94398         Don't insist on 'long long int' support in the preprocessor.  It
94399         breaks too many things.  For example, PRIdMAX still uses a 'long
94400         long int' format with the latest Sun compiler, even though
94401         HAVE_LONG_LONG_INT isn't defined due to that compiler's
94402         preprocessor problem.  This causes the latest coreutils to dump
94403         core on Solaris 10 sparc with the Sun C compiler.
94404         Instead, fix the 2007-10-16 problem in a different way, by evaluating
94405         the troublesome expressions at configure-time, not at #if-time.
94406         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
94407         preprocessor.
94408         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
94409         compile-time C checks, done at 'configure'-time.
94410         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
94411         * modules/inttypes (Makefile): Substitute the new symbols that
94412         gl_INTTYPES_H now generates.
94413         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
94415 2007-11-12  Bruno Haible  <bruno@clisp.org>
94417         Tests for Unicode character classification functions.
94419         * modules/unictype/bidicategory-byname-tests: New file.
94420         * modules/unictype/bidicategory-name-tests: New file.
94421         * modules/unictype/bidicategory-of-tests: New file.
94422         * modules/unictype/bidicategory-test-tests: New file.
94423         * modules/unictype/block-list-tests: New file.
94424         * modules/unictype/block-of-tests: New file.
94425         * modules/unictype/block-test-tests: New file.
94426         * modules/unictype/category-C-tests: New file.
94427         * modules/unictype/category-Cc-tests: New file.
94428         * modules/unictype/category-Cf-tests: New file.
94429         * modules/unictype/category-Cn-tests: New file.
94430         * modules/unictype/category-Co-tests: New file.
94431         * modules/unictype/category-Cs-tests: New file.
94432         * modules/unictype/category-L-tests: New file.
94433         * modules/unictype/category-Ll-tests: New file.
94434         * modules/unictype/category-Lm-tests: New file.
94435         * modules/unictype/category-Lo-tests: New file.
94436         * modules/unictype/category-Lt-tests: New file.
94437         * modules/unictype/category-Lu-tests: New file.
94438         * modules/unictype/category-M-tests: New file.
94439         * modules/unictype/category-Mc-tests: New file.
94440         * modules/unictype/category-Me-tests: New file.
94441         * modules/unictype/category-Mn-tests: New file.
94442         * modules/unictype/category-N-tests: New file.
94443         * modules/unictype/category-Nd-tests: New file.
94444         * modules/unictype/category-Nl-tests: New file.
94445         * modules/unictype/category-No-tests: New file.
94446         * modules/unictype/category-P-tests: New file.
94447         * modules/unictype/category-Pc-tests: New file.
94448         * modules/unictype/category-Pd-tests: New file.
94449         * modules/unictype/category-Pe-tests: New file.
94450         * modules/unictype/category-Pf-tests: New file.
94451         * modules/unictype/category-Pi-tests: New file.
94452         * modules/unictype/category-Po-tests: New file.
94453         * modules/unictype/category-Ps-tests: New file.
94454         * modules/unictype/category-S-tests: New file.
94455         * modules/unictype/category-Sc-tests: New file.
94456         * modules/unictype/category-Sk-tests: New file.
94457         * modules/unictype/category-Sm-tests: New file.
94458         * modules/unictype/category-So-tests: New file.
94459         * modules/unictype/category-Z-tests: New file.
94460         * modules/unictype/category-Zl-tests: New file.
94461         * modules/unictype/category-Zp-tests: New file.
94462         * modules/unictype/category-Zs-tests: New file.
94463         * modules/unictype/category-and-not-tests: New file.
94464         * modules/unictype/category-and-tests: New file.
94465         * modules/unictype/category-byname-tests: New file.
94466         * modules/unictype/category-name-tests: New file.
94467         * modules/unictype/category-none-tests: New file.
94468         * modules/unictype/category-of-tests: New file.
94469         * modules/unictype/category-or-tests: New file.
94470         * modules/unictype/category-test-withtable-tests: New file.
94471         * modules/unictype/combining-class-tests: New file.
94472         * modules/unictype/ctype-alnum-tests: New file.
94473         * modules/unictype/ctype-alpha-tests: New file.
94474         * modules/unictype/ctype-blank-tests: New file.
94475         * modules/unictype/ctype-cntrl-tests: New file.
94476         * modules/unictype/ctype-digit-tests: New file.
94477         * modules/unictype/ctype-graph-tests: New file.
94478         * modules/unictype/ctype-lower-tests: New file.
94479         * modules/unictype/ctype-print-tests: New file.
94480         * modules/unictype/ctype-punct-tests: New file.
94481         * modules/unictype/ctype-space-tests: New file.
94482         * modules/unictype/ctype-upper-tests: New file.
94483         * modules/unictype/ctype-xdigit-tests: New file.
94484         * modules/unictype/decimal-digit-tests: New file.
94485         * modules/unictype/digit-tests: New file.
94486         * modules/unictype/mirror-tests: New file.
94487         * modules/unictype/numeric-tests: New file.
94488         * modules/unictype/property-alphabetic-tests: New file.
94489         * modules/unictype/property-ascii-hex-digit-tests: New file.
94490         * modules/unictype/property-bidi-arabic-digit-tests: New file.
94491         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
94492         * modules/unictype/property-bidi-block-separator-tests: New file.
94493         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
94494         * modules/unictype/property-bidi-common-separator-tests: New file.
94495         * modules/unictype/property-bidi-control-tests: New file.
94496         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
94497         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
94498         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
94499         * modules/unictype/property-bidi-european-digit-tests: New file.
94500         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
94501         * modules/unictype/property-bidi-left-to-right-tests: New file.
94502         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
94503         * modules/unictype/property-bidi-other-neutral-tests: New file.
94504         * modules/unictype/property-bidi-pdf-tests: New file.
94505         * modules/unictype/property-bidi-segment-separator-tests: New file.
94506         * modules/unictype/property-bidi-whitespace-tests: New file.
94507         * modules/unictype/property-byname-tests: New file.
94508         * modules/unictype/property-combining-tests: New file.
94509         * modules/unictype/property-composite-tests: New file.
94510         * modules/unictype/property-currency-symbol-tests: New file.
94511         * modules/unictype/property-dash-tests: New file.
94512         * modules/unictype/property-decimal-digit-tests: New file.
94513         * modules/unictype/property-default-ignorable-code-point-tests: New file.
94514         * modules/unictype/property-deprecated-tests: New file.
94515         * modules/unictype/property-diacritic-tests: New file.
94516         * modules/unictype/property-extender-tests: New file.
94517         * modules/unictype/property-format-control-tests: New file.
94518         * modules/unictype/property-grapheme-base-tests: New file.
94519         * modules/unictype/property-grapheme-extend-tests: New file.
94520         * modules/unictype/property-grapheme-link-tests: New file.
94521         * modules/unictype/property-hex-digit-tests: New file.
94522         * modules/unictype/property-hyphen-tests: New file.
94523         * modules/unictype/property-id-continue-tests: New file.
94524         * modules/unictype/property-id-start-tests: New file.
94525         * modules/unictype/property-ideographic-tests: New file.
94526         * modules/unictype/property-ids-binary-operator-tests: New file.
94527         * modules/unictype/property-ids-trinary-operator-tests: New file.
94528         * modules/unictype/property-ignorable-control-tests: New file.
94529         * modules/unictype/property-iso-control-tests: New file.
94530         * modules/unictype/property-join-control-tests: New file.
94531         * modules/unictype/property-left-of-pair-tests: New file.
94532         * modules/unictype/property-line-separator-tests: New file.
94533         * modules/unictype/property-logical-order-exception-tests: New file.
94534         * modules/unictype/property-lowercase-tests: New file.
94535         * modules/unictype/property-math-tests: New file.
94536         * modules/unictype/property-non-break-tests: New file.
94537         * modules/unictype/property-not-a-character-tests: New file.
94538         * modules/unictype/property-numeric-tests: New file.
94539         * modules/unictype/property-other-alphabetic-tests: New file.
94540         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
94541         * modules/unictype/property-other-grapheme-extend-tests: New file.
94542         * modules/unictype/property-other-id-continue-tests: New file.
94543         * modules/unictype/property-other-id-start-tests: New file.
94544         * modules/unictype/property-other-lowercase-tests: New file.
94545         * modules/unictype/property-other-math-tests: New file.
94546         * modules/unictype/property-other-uppercase-tests: New file.
94547         * modules/unictype/property-paired-punctuation-tests: New file.
94548         * modules/unictype/property-paragraph-separator-tests: New file.
94549         * modules/unictype/property-pattern-syntax-tests: New file.
94550         * modules/unictype/property-pattern-white-space-tests: New file.
94551         * modules/unictype/property-private-use-tests: New file.
94552         * modules/unictype/property-punctuation-tests: New file.
94553         * modules/unictype/property-quotation-mark-tests: New file.
94554         * modules/unictype/property-radical-tests: New file.
94555         * modules/unictype/property-sentence-terminal-tests: New file.
94556         * modules/unictype/property-soft-dotted-tests: New file.
94557         * modules/unictype/property-space-tests: New file.
94558         * modules/unictype/property-terminal-punctuation-tests: New file.
94559         * modules/unictype/property-test-tests: New file.
94560         * modules/unictype/property-titlecase-tests: New file.
94561         * modules/unictype/property-unassigned-code-value-tests: New file.
94562         * modules/unictype/property-unified-ideograph-tests: New file.
94563         * modules/unictype/property-uppercase-tests: New file.
94564         * modules/unictype/property-variation-selector-tests: New file.
94565         * modules/unictype/property-white-space-tests: New file.
94566         * modules/unictype/property-xid-continue-tests: New file.
94567         * modules/unictype/property-xid-start-tests: New file.
94568         * modules/unictype/property-zero-width-tests: New file.
94569         * modules/unictype/scripts-tests: New file.
94570         * modules/unictype/syntax-c-ident-tests: New file.
94571         * modules/unictype/syntax-c-whitespace-tests: New file.
94572         * modules/unictype/syntax-java-ident-tests: New file.
94573         * modules/unictype/syntax-java-whitespace-tests: New file.
94574         * tests/unictype/test-bidi_byname.c: New file.
94575         * tests/unictype/test-bidi_name.c: New file.
94576         * tests/unictype/test-bidi_of.c: New file.
94577         * tests/unictype/test-bidi_test.c: New file.
94578         * tests/unictype/test-block_list.c: New file.
94579         * tests/unictype/test-block_of.c: New file.
94580         * tests/unictype/test-block_test.c: New file.
94581         * tests/unictype/test-categ_and.c: New file.
94582         * tests/unictype/test-categ_and_not.c: New file.
94583         * tests/unictype/test-categ_byname.c: New file.
94584         * tests/unictype/test-categ_name.c: New file.
94585         * tests/unictype/test-categ_none.c: New file.
94586         * tests/unictype/test-categ_of.c: New file.
94587         * tests/unictype/test-categ_or.c: New file.
94588         * tests/unictype/test-categ_test_withtable.c: New file.
94589         * tests/unictype/test-combining.c: New file.
94590         * tests/unictype/test-decdigit.c: New file.
94591         * tests/unictype/test-digit.c: New file.
94592         * tests/unictype/test-mirror.c: New file.
94593         * tests/unictype/test-numeric.c: New file.
94594         * tests/unictype/test-pr_byname.c: New file.
94595         * tests/unictype/test-pr_test.c: New file.
94596         * tests/unictype/test-predicate-part1.h: New file.
94597         * tests/unictype/test-predicate-part2.h: New file.
94598         * tests/unictype/test-scripts.c: New file.
94599         * tests/unictype/test-sy_c_ident.c: New file.
94600         * tests/unictype/test-sy_java_ident.c: New file.
94602         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
94603         for Unicode 5.0.0.
94604         * tests/unictype/test-categ_Cc.c: Likewise.
94605         * tests/unictype/test-categ_Cf.c: Likewise.
94606         * tests/unictype/test-categ_Cn.c: Likewise.
94607         * tests/unictype/test-categ_Co.c: Likewise.
94608         * tests/unictype/test-categ_Cs.c: Likewise.
94609         * tests/unictype/test-categ_L.c: Likewise.
94610         * tests/unictype/test-categ_Ll.c: Likewise.
94611         * tests/unictype/test-categ_Lm.c: Likewise.
94612         * tests/unictype/test-categ_Lo.c: Likewise.
94613         * tests/unictype/test-categ_Lt.c: Likewise.
94614         * tests/unictype/test-categ_Lu.c: Likewise.
94615         * tests/unictype/test-categ_M.c: Likewise.
94616         * tests/unictype/test-categ_Mc.c: Likewise.
94617         * tests/unictype/test-categ_Me.c: Likewise.
94618         * tests/unictype/test-categ_Mn.c: Likewise.
94619         * tests/unictype/test-categ_N.c: Likewise.
94620         * tests/unictype/test-categ_Nd.c: Likewise.
94621         * tests/unictype/test-categ_Nl.c: Likewise.
94622         * tests/unictype/test-categ_No.c: Likewise.
94623         * tests/unictype/test-categ_P.c: Likewise.
94624         * tests/unictype/test-categ_Pc.c: Likewise.
94625         * tests/unictype/test-categ_Pd.c: Likewise.
94626         * tests/unictype/test-categ_Pe.c: Likewise.
94627         * tests/unictype/test-categ_Pf.c: Likewise.
94628         * tests/unictype/test-categ_Pi.c: Likewise.
94629         * tests/unictype/test-categ_Po.c: Likewise.
94630         * tests/unictype/test-categ_Ps.c: Likewise.
94631         * tests/unictype/test-categ_S.c: Likewise.
94632         * tests/unictype/test-categ_Sc.c: Likewise.
94633         * tests/unictype/test-categ_Sk.c: Likewise.
94634         * tests/unictype/test-categ_Sm.c: Likewise.
94635         * tests/unictype/test-categ_So.c: Likewise.
94636         * tests/unictype/test-categ_Z.c: Likewise.
94637         * tests/unictype/test-categ_Zl.c: Likewise.
94638         * tests/unictype/test-categ_Zp.c: Likewise.
94639         * tests/unictype/test-categ_Zs.c: Likewise.
94640         * tests/unictype/test-ctype_alnum.c: Likewise.
94641         * tests/unictype/test-ctype_alpha.c: Likewise.
94642         * tests/unictype/test-ctype_blank.c: Likewise.
94643         * tests/unictype/test-ctype_cntrl.c: Likewise.
94644         * tests/unictype/test-ctype_digit.c: Likewise.
94645         * tests/unictype/test-ctype_graph.c: Likewise.
94646         * tests/unictype/test-ctype_lower.c: Likewise.
94647         * tests/unictype/test-ctype_print.c: Likewise.
94648         * tests/unictype/test-ctype_punct.c: Likewise.
94649         * tests/unictype/test-ctype_space.c: Likewise.
94650         * tests/unictype/test-ctype_upper.c: Likewise.
94651         * tests/unictype/test-ctype_xdigit.c: Likewise.
94652         * tests/unictype/test-decdigit.h: Likewise.
94653         * tests/unictype/test-digit.h: Likewise.
94654         * tests/unictype/test-numeric.h: Likewise.
94655         * tests/unictype/test-pr_alphabetic.c: Likewise.
94656         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
94657         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
94658         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
94659         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
94660         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
94661         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
94662         * tests/unictype/test-pr_bidi_control.c: Likewise.
94663         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
94664         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
94665         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
94666         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
94667         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
94668         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
94669         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
94670         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
94671         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
94672         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
94673         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
94674         * tests/unictype/test-pr_combining.c: Likewise.
94675         * tests/unictype/test-pr_composite.c: Likewise.
94676         * tests/unictype/test-pr_currency_symbol.c: Likewise.
94677         * tests/unictype/test-pr_dash.c: Likewise.
94678         * tests/unictype/test-pr_decimal_digit.c: Likewise.
94679         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
94680         * tests/unictype/test-pr_deprecated.c: Likewise.
94681         * tests/unictype/test-pr_diacritic.c: Likewise.
94682         * tests/unictype/test-pr_extender.c: Likewise.
94683         * tests/unictype/test-pr_format_control.c: Likewise.
94684         * tests/unictype/test-pr_grapheme_base.c: Likewise.
94685         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
94686         * tests/unictype/test-pr_grapheme_link.c: Likewise.
94687         * tests/unictype/test-pr_hex_digit.c: Likewise.
94688         * tests/unictype/test-pr_hyphen.c: Likewise.
94689         * tests/unictype/test-pr_id_continue.c: Likewise.
94690         * tests/unictype/test-pr_id_start.c: Likewise.
94691         * tests/unictype/test-pr_ideographic.c: Likewise.
94692         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
94693         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
94694         * tests/unictype/test-pr_ignorable_control.c: Likewise.
94695         * tests/unictype/test-pr_iso_control.c: Likewise.
94696         * tests/unictype/test-pr_join_control.c: Likewise.
94697         * tests/unictype/test-pr_left_of_pair.c: Likewise.
94698         * tests/unictype/test-pr_line_separator.c: Likewise.
94699         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
94700         * tests/unictype/test-pr_lowercase.c: Likewise.
94701         * tests/unictype/test-pr_math.c: Likewise.
94702         * tests/unictype/test-pr_non_break.c: Likewise.
94703         * tests/unictype/test-pr_not_a_character.c: Likewise.
94704         * tests/unictype/test-pr_numeric.c: Likewise.
94705         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
94706         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
94707         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
94708         * tests/unictype/test-pr_other_id_continue.c: Likewise.
94709         * tests/unictype/test-pr_other_id_start.c: Likewise.
94710         * tests/unictype/test-pr_other_lowercase.c: Likewise.
94711         * tests/unictype/test-pr_other_math.c: Likewise.
94712         * tests/unictype/test-pr_other_uppercase.c: Likewise.
94713         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
94714         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
94715         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
94716         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
94717         * tests/unictype/test-pr_private_use.c: Likewise.
94718         * tests/unictype/test-pr_punctuation.c: Likewise.
94719         * tests/unictype/test-pr_quotation_mark.c: Likewise.
94720         * tests/unictype/test-pr_radical.c: Likewise.
94721         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
94722         * tests/unictype/test-pr_soft_dotted.c: Likewise.
94723         * tests/unictype/test-pr_space.c: Likewise.
94724         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
94725         * tests/unictype/test-pr_titlecase.c: Likewise.
94726         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
94727         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
94728         * tests/unictype/test-pr_uppercase.c: Likewise.
94729         * tests/unictype/test-pr_variation_selector.c: Likewise.
94730         * tests/unictype/test-pr_white_space.c: Likewise.
94731         * tests/unictype/test-pr_xid_continue.c: Likewise.
94732         * tests/unictype/test-pr_xid_start.c: Likewise.
94733         * tests/unictype/test-pr_zero_width.c: Likewise.
94734         * tests/unictype/test-sy_c_whitespace.c: Likewise.
94735         * tests/unictype/test-sy_java_whitespace.c: Likewise.
94737 2007-11-12  Bruno Haible  <bruno@clisp.org>
94739         Unicode character classification functions.
94740         * lib/unictype.h: New file.
94741         * modules/unictype/base: New file.
94742         * modules/unictype/category-L: New file.
94743         * modules/unictype/category-Lu: New file.
94744         * modules/unictype/category-Ll: New file.
94745         * modules/unictype/category-Lt: New file.
94746         * modules/unictype/category-Lm: New file.
94747         * modules/unictype/category-Lo: New file.
94748         * modules/unictype/category-M: New file.
94749         * modules/unictype/category-Mn: New file.
94750         * modules/unictype/category-Mc: New file.
94751         * modules/unictype/category-Me: New file.
94752         * modules/unictype/category-N: New file.
94753         * modules/unictype/category-Nd: New file.
94754         * modules/unictype/category-Nl: New file.
94755         * modules/unictype/category-No: New file.
94756         * modules/unictype/category-P: New file.
94757         * modules/unictype/category-Pc: New file.
94758         * modules/unictype/category-Pd: New file.
94759         * modules/unictype/category-Ps: New file.
94760         * modules/unictype/category-Pe: New file.
94761         * modules/unictype/category-Pi: New file.
94762         * modules/unictype/category-Pf: New file.
94763         * modules/unictype/category-Po: New file.
94764         * modules/unictype/category-S: New file.
94765         * modules/unictype/category-Sm: New file.
94766         * modules/unictype/category-Sc: New file.
94767         * modules/unictype/category-Sk: New file.
94768         * modules/unictype/category-So: New file.
94769         * modules/unictype/category-Z: New file.
94770         * modules/unictype/category-Zs: New file.
94771         * modules/unictype/category-Zl: New file.
94772         * modules/unictype/category-Zp: New file.
94773         * modules/unictype/category-C: New file.
94774         * modules/unictype/category-Cc: New file.
94775         * modules/unictype/category-Cf: New file.
94776         * modules/unictype/category-Cs: New file.
94777         * modules/unictype/category-Co: New file.
94778         * modules/unictype/category-Cn: New file.
94779         * modules/unictype/category-or: New file.
94780         * modules/unictype/category-of: New file.
94781         * modules/unictype/category-test: New file.
94782         * modules/unictype/category-test-withtable: New file.
94783         * modules/unictype/category-byname: New file.
94784         * modules/unictype/category-none: New file.
94785         * modules/unictype/category-and: New file.
94786         * modules/unictype/category-and-not: New file.
94787         * modules/unictype/category-name: New file.
94788         * modules/unictype/combining-class: New file.
94789         * modules/unictype/category-all: New file.
94790         * modules/unictype/bidicategory-all: New file.
94791         * modules/unictype/bidicategory-byname: New file.
94792         * modules/unictype/bidicategory-name: New file.
94793         * modules/unictype/bidicategory-of: New file.
94794         * modules/unictype/bidicategory-test: New file.
94795         * modules/unictype/decimal-digit: New file.
94796         * modules/unictype/digit: New file.
94797         * modules/unictype/numeric: New file.
94798         * modules/unictype/mirror: New file.
94799         * modules/unictype/property-white-space: New file.
94800         * modules/unictype/property-alphabetic: New file.
94801         * modules/unictype/property-other-alphabetic: New file.
94802         * modules/unictype/property-not-a-character: New file.
94803         * modules/unictype/property-default-ignorable-code-point: New file.
94804         * modules/unictype/property-other-default-ignorable-code-point: New
94805         file.
94806         * modules/unictype/property-deprecated: New file.
94807         * modules/unictype/property-logical-order-exception: New file.
94808         * modules/unictype/property-variation-selector: New file.
94809         * modules/unictype/property-private-use: New file.
94810         * modules/unictype/property-unassigned-code-value: New file.
94811         * modules/unictype/property-uppercase: New file.
94812         * modules/unictype/property-other-uppercase: New file.
94813         * modules/unictype/property-lowercase: New file.
94814         * modules/unictype/property-other-lowercase: New file.
94815         * modules/unictype/property-titlecase: New file.
94816         * modules/unictype/property-soft-dotted: New file.
94817         * modules/unictype/property-id-start: New file.
94818         * modules/unictype/property-other-id-start: New file.
94819         * modules/unictype/property-id-continue: New file.
94820         * modules/unictype/property-other-id-continue: New file.
94821         * modules/unictype/property-xid-start: New file.
94822         * modules/unictype/property-xid-continue: New file.
94823         * modules/unictype/property-pattern-white-space: New file.
94824         * modules/unictype/property-pattern-syntax: New file.
94825         * modules/unictype/property-join-control: New file.
94826         * modules/unictype/property-grapheme-base: New file.
94827         * modules/unictype/property-grapheme-extend: New file.
94828         * modules/unictype/property-other-grapheme-extend: New file.
94829         * modules/unictype/property-grapheme-link: New file.
94830         * modules/unictype/property-bidi-control: New file.
94831         * modules/unictype/property-bidi-left-to-right: New file.
94832         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
94833         * modules/unictype/property-bidi-arabic-right-to-left: New file.
94834         * modules/unictype/property-bidi-european-digit: New file.
94835         * modules/unictype/property-bidi-eur-num-separator: New file.
94836         * modules/unictype/property-bidi-eur-num-terminator: New file.
94837         * modules/unictype/property-bidi-arabic-digit: New file.
94838         * modules/unictype/property-bidi-common-separator: New file.
94839         * modules/unictype/property-bidi-block-separator: New file.
94840         * modules/unictype/property-bidi-segment-separator: New file.
94841         * modules/unictype/property-bidi-whitespace: New file.
94842         * modules/unictype/property-bidi-non-spacing-mark: New file.
94843         * modules/unictype/property-bidi-boundary-neutral: New file.
94844         * modules/unictype/property-bidi-pdf: New file.
94845         * modules/unictype/property-bidi-embedding-or-override: New file.
94846         * modules/unictype/property-bidi-other-neutral: New file.
94847         * modules/unictype/property-hex-digit: New file.
94848         * modules/unictype/property-ascii-hex-digit: New file.
94849         * modules/unictype/property-ideographic: New file.
94850         * modules/unictype/property-unified-ideograph: New file.
94851         * modules/unictype/property-radical: New file.
94852         * modules/unictype/property-ids-binary-operator: New file.
94853         * modules/unictype/property-ids-trinary-operator: New file.
94854         * modules/unictype/property-zero-width: New file.
94855         * modules/unictype/property-space: New file.
94856         * modules/unictype/property-non-break: New file.
94857         * modules/unictype/property-iso-control: New file.
94858         * modules/unictype/property-format-control: New file.
94859         * modules/unictype/property-dash: New file.
94860         * modules/unictype/property-hyphen: New file.
94861         * modules/unictype/property-punctuation: New file.
94862         * modules/unictype/property-line-separator: New file.
94863         * modules/unictype/property-paragraph-separator: New file.
94864         * modules/unictype/property-quotation-mark: New file.
94865         * modules/unictype/property-sentence-terminal: New file.
94866         * modules/unictype/property-terminal-punctuation: New file.
94867         * modules/unictype/property-currency-symbol: New file.
94868         * modules/unictype/property-math: New file.
94869         * modules/unictype/property-other-math: New file.
94870         * modules/unictype/property-paired-punctuation: New file.
94871         * modules/unictype/property-left-of-pair: New file.
94872         * modules/unictype/property-combining: New file.
94873         * modules/unictype/property-composite: New file.
94874         * modules/unictype/property-decimal-digit: New file.
94875         * modules/unictype/property-numeric: New file.
94876         * modules/unictype/property-diacritic: New file.
94877         * modules/unictype/property-extender: New file.
94878         * modules/unictype/property-ignorable-control: New file.
94879         * modules/unictype/property-test: New file.
94880         * modules/unictype/property-byname: New file.
94881         * modules/unictype/property-all: New file.
94882         * modules/unictype/scripts: New file.
94883         * modules/unictype/scripts-all: New file.
94884         * modules/unictype/block-of: New file.
94885         * modules/unictype/block-test: New file.
94886         * modules/unictype/block-list: New file.
94887         * modules/unictype/block-all: New file.
94888         * modules/unictype/syntax-c-whitespace: New file.
94889         * modules/unictype/syntax-java-whitespace: New file.
94890         * modules/unictype/syntax-c-ident: New file.
94891         * modules/unictype/syntax-java-ident: New file.
94892         * modules/unictype/ctype-alnum: New file.
94893         * modules/unictype/ctype-alpha: New file.
94894         * modules/unictype/ctype-cntrl: New file.
94895         * modules/unictype/ctype-digit: New file.
94896         * modules/unictype/ctype-graph: New file.
94897         * modules/unictype/ctype-lower: New file.
94898         * modules/unictype/ctype-print: New file.
94899         * modules/unictype/ctype-punct: New file.
94900         * modules/unictype/ctype-space: New file.
94901         * modules/unictype/ctype-upper: New file.
94902         * modules/unictype/ctype-xdigit: New file.
94903         * modules/unictype/ctype-blank: New file.
94904         * lib/unictype/bidi_byname.c: New file.
94905         * lib/unictype/bidi_name.c: New file.
94906         * lib/unictype/bidi_of.c: New file.
94907         * lib/unictype/bidi_test.c: New file.
94908         * lib/unictype/bitmap.h: New file.
94909         * lib/unictype/block_test.c: New file.
94910         * lib/unictype/blocks.c: New file.
94911         * lib/unictype/categ_C.c: New file.
94912         * lib/unictype/categ_Cc.c: New file.
94913         * lib/unictype/categ_Cf.c: New file.
94914         * lib/unictype/categ_Cn.c: New file.
94915         * lib/unictype/categ_Co.c: New file.
94916         * lib/unictype/categ_Cs.c: New file.
94917         * lib/unictype/categ_L.c: New file.
94918         * lib/unictype/categ_Ll.c: New file.
94919         * lib/unictype/categ_Lm.c: New file.
94920         * lib/unictype/categ_Lo.c: New file.
94921         * lib/unictype/categ_Lt.c: New file.
94922         * lib/unictype/categ_Lu.c: New file.
94923         * lib/unictype/categ_M.c: New file.
94924         * lib/unictype/categ_Mc.c: New file.
94925         * lib/unictype/categ_Me.c: New file.
94926         * lib/unictype/categ_Mn.c: New file.
94927         * lib/unictype/categ_N.c: New file.
94928         * lib/unictype/categ_Nd.c: New file.
94929         * lib/unictype/categ_Nl.c: New file.
94930         * lib/unictype/categ_No.c: New file.
94931         * lib/unictype/categ_P.c: New file.
94932         * lib/unictype/categ_Pc.c: New file.
94933         * lib/unictype/categ_Pd.c: New file.
94934         * lib/unictype/categ_Pe.c: New file.
94935         * lib/unictype/categ_Pf.c: New file.
94936         * lib/unictype/categ_Pi.c: New file.
94937         * lib/unictype/categ_Po.c: New file.
94938         * lib/unictype/categ_Ps.c: New file.
94939         * lib/unictype/categ_S.c: New file.
94940         * lib/unictype/categ_Sc.c: New file.
94941         * lib/unictype/categ_Sk.c: New file.
94942         * lib/unictype/categ_Sm.c: New file.
94943         * lib/unictype/categ_So.c: New file.
94944         * lib/unictype/categ_Z.c: New file.
94945         * lib/unictype/categ_Zl.c: New file.
94946         * lib/unictype/categ_Zp.c: New file.
94947         * lib/unictype/categ_Zs.c: New file.
94948         * lib/unictype/categ_and.c: New file.
94949         * lib/unictype/categ_and_not.c: New file.
94950         * lib/unictype/categ_byname.c: New file.
94951         * lib/unictype/categ_name.c: New file.
94952         * lib/unictype/categ_none.c: New file.
94953         * lib/unictype/categ_of.c: New file.
94954         * lib/unictype/categ_or.c: New file.
94955         * lib/unictype/categ_test.c: New file.
94956         * lib/unictype/combining.c: New file.
94957         * lib/unictype/ctype_alnum.c: New file.
94958         * lib/unictype/ctype_alpha.c: New file.
94959         * lib/unictype/ctype_blank.c: New file.
94960         * lib/unictype/ctype_cntrl.c: New file.
94961         * lib/unictype/ctype_digit.c: New file.
94962         * lib/unictype/ctype_graph.c: New file.
94963         * lib/unictype/ctype_lower.c: New file.
94964         * lib/unictype/ctype_print.c: New file.
94965         * lib/unictype/ctype_punct.c: New file.
94966         * lib/unictype/ctype_space.c: New file.
94967         * lib/unictype/ctype_upper.c: New file.
94968         * lib/unictype/ctype_xdigit.c: New file.
94969         * lib/unictype/decdigit.c: New file.
94970         * lib/unictype/digit.c: New file.
94971         * lib/unictype/identsyntaxmap.h: New file.
94972         * lib/unictype/mirror.c: New file.
94973         * lib/unictype/numeric.c: New file.
94974         * lib/unictype/pr_alphabetic.c: New file.
94975         * lib/unictype/pr_ascii_hex_digit.c: New file.
94976         * lib/unictype/pr_bidi_arabic_digit.c: New file.
94977         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
94978         * lib/unictype/pr_bidi_block_separator.c: New file.
94979         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
94980         * lib/unictype/pr_bidi_common_separator.c: New file.
94981         * lib/unictype/pr_bidi_control.c: New file.
94982         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
94983         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
94984         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
94985         * lib/unictype/pr_bidi_european_digit.c: New file.
94986         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
94987         * lib/unictype/pr_bidi_left_to_right.c: New file.
94988         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
94989         * lib/unictype/pr_bidi_other_neutral.c: New file.
94990         * lib/unictype/pr_bidi_pdf.c: New file.
94991         * lib/unictype/pr_bidi_segment_separator.c: New file.
94992         * lib/unictype/pr_bidi_whitespace.c: New file.
94993         * lib/unictype/pr_byname.c: New file.
94994         * lib/unictype/pr_byname.gperf: New file.
94995         * lib/unictype/pr_combining.c: New file.
94996         * lib/unictype/pr_composite.c: New file.
94997         * lib/unictype/pr_currency_symbol.c: New file.
94998         * lib/unictype/pr_dash.c: New file.
94999         * lib/unictype/pr_decimal_digit.c: New file.
95000         * lib/unictype/pr_default_ignorable_code_point.c: New file.
95001         * lib/unictype/pr_deprecated.c: New file.
95002         * lib/unictype/pr_diacritic.c: New file.
95003         * lib/unictype/pr_extender.c: New file.
95004         * lib/unictype/pr_format_control.c: New file.
95005         * lib/unictype/pr_grapheme_base.c: New file.
95006         * lib/unictype/pr_grapheme_extend.c: New file.
95007         * lib/unictype/pr_grapheme_link.c: New file.
95008         * lib/unictype/pr_hex_digit.c: New file.
95009         * lib/unictype/pr_hyphen.c: New file.
95010         * lib/unictype/pr_id_continue.c: New file.
95011         * lib/unictype/pr_id_start.c: New file.
95012         * lib/unictype/pr_ideographic.c: New file.
95013         * lib/unictype/pr_ids_binary_operator.c: New file.
95014         * lib/unictype/pr_ids_trinary_operator.c: New file.
95015         * lib/unictype/pr_ignorable_control.c: New file.
95016         * lib/unictype/pr_iso_control.c: New file.
95017         * lib/unictype/pr_join_control.c: New file.
95018         * lib/unictype/pr_left_of_pair.c: New file.
95019         * lib/unictype/pr_line_separator.c: New file.
95020         * lib/unictype/pr_logical_order_exception.c: New file.
95021         * lib/unictype/pr_lowercase.c: New file.
95022         * lib/unictype/pr_math.c: New file.
95023         * lib/unictype/pr_non_break.c: New file.
95024         * lib/unictype/pr_not_a_character.c: New file.
95025         * lib/unictype/pr_numeric.c: New file.
95026         * lib/unictype/pr_other_alphabetic.c: New file.
95027         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
95028         * lib/unictype/pr_other_grapheme_extend.c: New file.
95029         * lib/unictype/pr_other_id_continue.c: New file.
95030         * lib/unictype/pr_other_id_start.c: New file.
95031         * lib/unictype/pr_other_lowercase.c: New file.
95032         * lib/unictype/pr_other_math.c: New file.
95033         * lib/unictype/pr_other_uppercase.c: New file.
95034         * lib/unictype/pr_paired_punctuation.c: New file.
95035         * lib/unictype/pr_paragraph_separator.c: New file.
95036         * lib/unictype/pr_pattern_syntax.c: New file.
95037         * lib/unictype/pr_pattern_white_space.c: New file.
95038         * lib/unictype/pr_private_use.c: New file.
95039         * lib/unictype/pr_punctuation.c: New file.
95040         * lib/unictype/pr_quotation_mark.c: New file.
95041         * lib/unictype/pr_radical.c: New file.
95042         * lib/unictype/pr_sentence_terminal.c: New file.
95043         * lib/unictype/pr_soft_dotted.c: New file.
95044         * lib/unictype/pr_space.c: New file.
95045         * lib/unictype/pr_terminal_punctuation.c: New file.
95046         * lib/unictype/pr_test.c: New file.
95047         * lib/unictype/pr_titlecase.c: New file.
95048         * lib/unictype/pr_unassigned_code_value.c: New file.
95049         * lib/unictype/pr_unified_ideograph.c: New file.
95050         * lib/unictype/pr_uppercase.c: New file.
95051         * lib/unictype/pr_variation_selector.c: New file.
95052         * lib/unictype/pr_white_space.c: New file.
95053         * lib/unictype/pr_xid_continue.c: New file.
95054         * lib/unictype/pr_xid_start.c: New file.
95055         * lib/unictype/pr_zero_width.c: New file.
95056         * lib/unictype/scripts.c: New file.
95057         * lib/unictype/sy_c_ident.c: New file.
95058         * lib/unictype/sy_c_whitespace.c: New file.
95059         * lib/unictype/sy_java_ident.c: New file.
95060         * lib/unictype/sy_java_whitespace.c: New file.
95062         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
95063         Unicode 5.0.0.
95064         * lib/unictype/blocks.h: Likewise.
95065         * lib/unictype/categ_C.h: Likewise.
95066         * lib/unictype/categ_Cc.h: Likewise.
95067         * lib/unictype/categ_Cf.h: Likewise.
95068         * lib/unictype/categ_Cn.h: Likewise.
95069         * lib/unictype/categ_Co.h: Likewise.
95070         * lib/unictype/categ_Cs.h: Likewise.
95071         * lib/unictype/categ_L.h: Likewise.
95072         * lib/unictype/categ_Ll.h: Likewise.
95073         * lib/unictype/categ_Lm.h: Likewise.
95074         * lib/unictype/categ_Lo.h: Likewise.
95075         * lib/unictype/categ_Lt.h: Likewise.
95076         * lib/unictype/categ_Lu.h: Likewise.
95077         * lib/unictype/categ_M.h: Likewise.
95078         * lib/unictype/categ_Mc.h: Likewise.
95079         * lib/unictype/categ_Me.h: Likewise.
95080         * lib/unictype/categ_Mn.h: Likewise.
95081         * lib/unictype/categ_N.h: Likewise.
95082         * lib/unictype/categ_Nd.h: Likewise.
95083         * lib/unictype/categ_Nl.h: Likewise.
95084         * lib/unictype/categ_No.h: Likewise.
95085         * lib/unictype/categ_P.h: Likewise.
95086         * lib/unictype/categ_Pc.h: Likewise.
95087         * lib/unictype/categ_Pd.h: Likewise.
95088         * lib/unictype/categ_Pe.h: Likewise.
95089         * lib/unictype/categ_Pf.h: Likewise.
95090         * lib/unictype/categ_Pi.h: Likewise.
95091         * lib/unictype/categ_Po.h: Likewise.
95092         * lib/unictype/categ_Ps.h: Likewise.
95093         * lib/unictype/categ_S.h: Likewise.
95094         * lib/unictype/categ_Sc.h: Likewise.
95095         * lib/unictype/categ_Sk.h: Likewise.
95096         * lib/unictype/categ_Sm.h: Likewise.
95097         * lib/unictype/categ_So.h: Likewise.
95098         * lib/unictype/categ_Z.h: Likewise.
95099         * lib/unictype/categ_Zl.h: Likewise.
95100         * lib/unictype/categ_Zp.h: Likewise.
95101         * lib/unictype/categ_Zs.h: Likewise.
95102         * lib/unictype/categ_of.h: Likewise.
95103         * lib/unictype/combining.h: Likewise.
95104         * lib/unictype/ctype_alnum.h: Likewise.
95105         * lib/unictype/ctype_alpha.h: Likewise.
95106         * lib/unictype/ctype_blank.h: Likewise.
95107         * lib/unictype/ctype_cntrl.h: Likewise.
95108         * lib/unictype/ctype_digit.h: Likewise.
95109         * lib/unictype/ctype_graph.h: Likewise.
95110         * lib/unictype/ctype_lower.h: Likewise.
95111         * lib/unictype/ctype_print.h: Likewise.
95112         * lib/unictype/ctype_punct.h: Likewise.
95113         * lib/unictype/ctype_space.h: Likewise.
95114         * lib/unictype/ctype_upper.h: Likewise.
95115         * lib/unictype/ctype_xdigit.h: Likewise.
95116         * lib/unictype/decdigit.h: Likewise.
95117         * lib/unictype/digit.h: Likewise.
95118         * lib/unictype/mirror.h: Likewise.
95119         * lib/unictype/numeric.h: Likewise.
95120         * lib/unictype/pr_alphabetic.h: Likewise.
95121         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
95122         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
95123         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
95124         * lib/unictype/pr_bidi_block_separator.h: Likewise.
95125         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
95126         * lib/unictype/pr_bidi_common_separator.h: Likewise.
95127         * lib/unictype/pr_bidi_control.h: Likewise.
95128         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
95129         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
95130         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
95131         * lib/unictype/pr_bidi_european_digit.h: Likewise.
95132         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
95133         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
95134         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
95135         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
95136         * lib/unictype/pr_bidi_pdf.h: Likewise.
95137         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
95138         * lib/unictype/pr_bidi_whitespace.h: Likewise.
95139         * lib/unictype/pr_combining.h: Likewise.
95140         * lib/unictype/pr_composite.h: Likewise.
95141         * lib/unictype/pr_currency_symbol.h: Likewise.
95142         * lib/unictype/pr_dash.h: Likewise.
95143         * lib/unictype/pr_decimal_digit.h: Likewise.
95144         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
95145         * lib/unictype/pr_deprecated.h: Likewise.
95146         * lib/unictype/pr_diacritic.h: Likewise.
95147         * lib/unictype/pr_extender.h: Likewise.
95148         * lib/unictype/pr_format_control.h: Likewise.
95149         * lib/unictype/pr_grapheme_base.h: Likewise.
95150         * lib/unictype/pr_grapheme_extend.h: Likewise.
95151         * lib/unictype/pr_grapheme_link.h: Likewise.
95152         * lib/unictype/pr_hex_digit.h: Likewise.
95153         * lib/unictype/pr_hyphen.h: Likewise.
95154         * lib/unictype/pr_id_continue.h: Likewise.
95155         * lib/unictype/pr_id_start.h: Likewise.
95156         * lib/unictype/pr_ideographic.h: Likewise.
95157         * lib/unictype/pr_ids_binary_operator.h: Likewise.
95158         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
95159         * lib/unictype/pr_ignorable_control.h: Likewise.
95160         * lib/unictype/pr_iso_control.h: Likewise.
95161         * lib/unictype/pr_join_control.h: Likewise.
95162         * lib/unictype/pr_left_of_pair.h: Likewise.
95163         * lib/unictype/pr_line_separator.h: Likewise.
95164         * lib/unictype/pr_logical_order_exception.h: Likewise.
95165         * lib/unictype/pr_lowercase.h: Likewise.
95166         * lib/unictype/pr_math.h: Likewise.
95167         * lib/unictype/pr_non_break.h: Likewise.
95168         * lib/unictype/pr_not_a_character.h: Likewise.
95169         * lib/unictype/pr_numeric.h: Likewise.
95170         * lib/unictype/pr_other_alphabetic.h: Likewise.
95171         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
95172         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
95173         * lib/unictype/pr_other_id_continue.h: Likewise.
95174         * lib/unictype/pr_other_id_start.h: Likewise.
95175         * lib/unictype/pr_other_lowercase.h: Likewise.
95176         * lib/unictype/pr_other_math.h: Likewise.
95177         * lib/unictype/pr_other_uppercase.h: Likewise.
95178         * lib/unictype/pr_paired_punctuation.h: Likewise.
95179         * lib/unictype/pr_paragraph_separator.h: Likewise.
95180         * lib/unictype/pr_pattern_syntax.h: Likewise.
95181         * lib/unictype/pr_pattern_white_space.h: Likewise.
95182         * lib/unictype/pr_private_use.h: Likewise.
95183         * lib/unictype/pr_punctuation.h: Likewise.
95184         * lib/unictype/pr_quotation_mark.h: Likewise.
95185         * lib/unictype/pr_radical.h: Likewise.
95186         * lib/unictype/pr_sentence_terminal.h: Likewise.
95187         * lib/unictype/pr_soft_dotted.h: Likewise.
95188         * lib/unictype/pr_space.h: Likewise.
95189         * lib/unictype/pr_terminal_punctuation.h: Likewise.
95190         * lib/unictype/pr_titlecase.h: Likewise.
95191         * lib/unictype/pr_unassigned_code_value.h: Likewise.
95192         * lib/unictype/pr_unified_ideograph.h: Likewise.
95193         * lib/unictype/pr_uppercase.h: Likewise.
95194         * lib/unictype/pr_variation_selector.h: Likewise.
95195         * lib/unictype/pr_white_space.h: Likewise.
95196         * lib/unictype/pr_xid_continue.h: Likewise.
95197         * lib/unictype/pr_xid_start.h: Likewise.
95198         * lib/unictype/pr_zero_width.h: Likewise.
95199         * lib/unictype/scripts.h: Likewise.
95200         * lib/unictype/scripts_byname.gperf: Likewise.
95201         * lib/unictype/sy_c_ident.h: Likewise.
95202         * lib/unictype/sy_c_whitespace.h: Likewise.
95203         * lib/unictype/sy_java_ident.h: Likewise.
95204         * lib/unictype/sy_java_whitespace.h: Likewise.
95206         * lib/unictype/Makefile: New file.
95207         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
95208         glibc.
95209         * lib/unictype/3level.h: New file, copied from glibc.
95210         * lib/unictype/3levelbit.h: New file.
95212 2007-11-11  Bruno Haible  <bruno@clisp.org>
95214         * modules/gperf: New file.
95215         * modules/iconv_open (Depends-on): Add it.
95216         (Makefile.am): Remove the GPERF definition.
95218 2007-11-11  Bruno Haible  <bruno@clisp.org>
95220         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
95221         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
95223 2007-11-11  Bruno Haible  <bruno@clisp.org>
95225         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
95226         (usage): Remove function.
95228 2007-11-11  Bruno Haible  <bruno@clisp.org>
95230         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
95231         gl_FUNC_CEILF_LIBS.
95232         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
95233         gl_FUNC_CEIL_LIBS.
95234         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
95235         gl_FUNC_CEILL_LIBS.
95236         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
95237         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
95238         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
95240 2007-11-11  Bruno Haible  <bruno@clisp.org>
95242         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
95243         roundf were declared but do not exist on functions.
95244         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
95245         roundl were declared but do not exist on functions.
95246         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
95247         HAVE_FLOORL_AND_CEILL, respectively.
95248         Needed for Sun C on Solaris 10.
95250 2007-11-11  Bruno Haible  <bruno@clisp.org>
95252         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
95253         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
95254         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
95255         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
95256         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
95257         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
95258         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
95259         HAVE_DECL_ROUNDF.
95260         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
95261         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
95262         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
95263         of HAVE_DECL_ROUND*.
95264         * modules/math (Makefile.am): Update.
95266 2007-11-10  Bruno Haible  <bruno@clisp.org>
95268         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
95269         ptrdiff_t as m4/intl.m4.
95271 2007-11-10  Jim Meyering  <meyering@redhat.com>
95273         Avoid link failure for the argmatch test.
95274         * tests/test-argmatch.c (usage): Define function to avoid a link
95275         failure: argmatch_die requires a usage function.
95277 2007-11-09  Bruno Haible  <bruno@clisp.org>
95279         * doc/functions/snprintf.texi: Mention BeOS deficiency.
95280         * doc/functions/vsnprintf.texi: Likewise.
95281         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
95282         with a size argument < 2.
95284 2007-11-09  Bruno Haible  <bruno@clisp.org>
95286         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
95287         buffer. Fixes an inefficiency introduced on 2007-11-03.
95289 2007-11-09  Bruno Haible  <bruno@clisp.org>
95291         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
95292         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
95294 2007-11-08  Jim Meyering  <meyering@redhat.com>
95296         Change cache variable name prefix "jm_" to "gl_" everywhere.
95297         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
95298         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
95299         * m4/uptime.m4: s/gl_/jm_/
95301 2007-11-07  Bruno Haible  <bruno@clisp.org>
95303         Update to GNU gettext 0.17.
95304         * m4/intl.m4: Update to GNU gettext 0.17.
95305         * m4/po.m4: Likewise.
95306         * modules/gettext (Files): Remove m4/ulonglong.m4.
95307         (configure.ac): Require gettext infrastructure from version 0.17.
95309 2007-11-06  Bruno Haible  <bruno@clisp.org>
95311         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
95312         symbolic values are not defined in a public header.
95313         * lib/freadable.c (freadable) [QNX]: Likewise.
95314         * lib/freadahead.c (freadahead) [QNX]: Likewise.
95315         * lib/freading.c (freading) [QNX]: Likewise.
95316         * lib/fseterr.c (fseterr) [QNX]: Likewise.
95317         * lib/fwritable.c (fwritable) [QNX]: Likewise.
95318         * lib/fwriting.c (fwriting) [QNX]: Likewise.
95319         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
95320         Reported by Alain Magloire.
95322         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
95324 2007-11-05  Bruno Haible  <bruno@clisp.org>
95326         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
95327         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
95328         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
95329         Reported by Eric Blake.
95331 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95332             Bruno Haible  <bruno@clisp.org>
95334         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
95335         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
95336         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
95337         (malloc): Undefine also before including <stdlib.h>.
95338         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
95339         Needed on OSF/1 4.0.
95341 2007-11-05  Jim Meyering  <meyering@redhat.com>
95343         git-version-gen: sync from coreutils.
95344         * build-aux/git-version-gen: Add comments.
95345         Change the first '-' to '.' in the snapshot version string,
95346         e.g., 6.9-377-08144 -> 6.9.377-08144
95347         Remove first parameter.
95348         Don't declare a version "-dirty" merely because a time
95349         stamp has changed.
95351 2007-11-04  Bruno Haible  <bruno@clisp.org>
95353         * lib/lock.h: Protect all macro definitions containing an 'if'
95354         statement through a "do { ... } while (0)".
95355         * lib/tls.h: Likewise.
95357 2007-11-04  Bruno Haible  <bruno@clisp.org>
95359         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
95361 2007-11-04  Bruno Haible  <bruno@clisp.org>
95363         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
95364         * modules/fprintf-posix (Depends-on): Add nocrash.
95365         * modules/snprintf-posix (Depends-on): Likewise.
95366         * modules/sprintf-posix (Depends-on): Likewise.
95367         * modules/vasnprintf-posix (Depends-on): Likewise.
95368         * modules/vasprintf-posix (Depends-on): Likewise.
95369         * modules/vfprintf-posix (Depends-on): Likewise.
95370         * modules/vsnprintf-posix (Depends-on): Likewise.
95371         * modules/vsprintf-posix (Depends-on): Likewise.
95372         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
95373         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
95374         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
95375         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
95376         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
95377         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
95378         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
95380 2007-11-04  Bruno Haible  <bruno@clisp.org>
95382         * modules/nocrash: New file.
95383         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
95384         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
95386 2007-11-04  Bruno Haible  <bruno@clisp.org>
95388         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
95389         precision handling.
95390         * tests/test-vasprintf-posix.c (test_function): Likewise.
95391         * tests/test-snprintf-posix.h (test_function): Likewise.
95392         * tests/test-sprintf-posix.h (test_function): Likewise.
95394         Fix *printf behaviour for large precisions on mingw and BeOS.
95395         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
95396         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
95397         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
95398         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
95399         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
95400         gl_PRINTF_PRECISION and test its result. Invoke
95401         gl_PREREQ_VASNPRINTF_PRECISION.
95402         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
95403         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
95404         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
95405         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
95406         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
95407         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
95408         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
95409         * doc/functions/fprintf.texi: Update.
95410         * doc/functions/printf.texi: Update.
95411         * doc/functions/snprintf.texi: Update.
95412         * doc/functions/sprintf.texi: Update.
95413         * doc/functions/vfprintf.texi: Update.
95414         * doc/functions/vprintf.texi: Update.
95415         * doc/functions/vsnprintf.texi: Update.
95416         * doc/functions/vsprintf.texi: Update.
95418 2007-11-04  Bruno Haible  <bruno@clisp.org>
95420         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
95422 2007-11-04  Bruno Haible  <bruno@clisp.org>
95424         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
95425         Reported by Sylvain Beucler <beuc@gnu.org>.
95427 2007-11-03  Bruno Haible  <bruno@clisp.org>
95429         * tests/test-fprintf-posix2.sh: New file.
95430         * tests/test-fprintf-posix2.c: New file.
95431         * modules/fprintf-posix-tests (Files): Add them.
95432         (TESTS): Add test-fprintf-posix2.sh.
95433         (configure.ac): Check for getrlimit and setrlimit.
95434         (check_PROGRAMS): Add test-fprintf-posix2.
95436         * tests/test-printf-posix2.sh: New file.
95437         * tests/test-printf-posix2.c: New file.
95438         * modules/printf-posix-tests (Files): Add them.
95439         (TESTS): Add test-printf-posix2.sh.
95440         (configure.ac): Check for getrlimit and setrlimit.
95441         (check_PROGRAMS): Add test-printf-posix2.
95443         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
95444         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
95445         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
95446         (decode_double): New function, copied from decode_long_double.
95447         (scale10_round_decimal_decoded): New function, extracted from
95448         scale10_round_decimal_long_double.
95449         (scale10_round_decimal_long_double): Use it.
95450         (scale10_round_decimal_double): New function.
95451         (floorlog10): New function.
95452         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
95453         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
95454         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
95455         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
95456         gl_PRINTF_ENOMEM and test its result. Invoke
95457         gl_PREREQ_VASNPRINTF_ENOMEM.
95458         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
95459         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
95460         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
95461         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
95462         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
95463         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
95464         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
95465         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
95466         * modules/snprintf-posix (Depends-on): Likewise.
95467         * modules/sprintf-posix (Depends-on): Likewise.
95468         * modules/vasnprintf-posix (Depends-on): Likewise.
95469         * modules/vasprintf-posix (Depends-on): Likewise.
95470         * modules/vfprintf-posix (Depends-on): Likewise.
95471         * modules/vsnprintf-posix (Depends-on): Likewise.
95472         * modules/vsprintf-posix (Depends-on): Likewise.
95473         * doc/functions/fprintf.texi: Update.
95474         * doc/functions/printf.texi: Update.
95475         * doc/functions/snprintf.texi: Update.
95476         * doc/functions/sprintf.texi: Update.
95477         * doc/functions/vfprintf.texi: Update.
95478         * doc/functions/vprintf.texi: Update.
95479         * doc/functions/vsnprintf.texi: Update.
95480         * doc/functions/vsprintf.texi: Update.
95482 2007-11-03  Bruno Haible  <bruno@clisp.org>
95484         * modules/frexp-nolibm-tests: New file.
95486         * modules/frexp-nolibm: New file.
95487         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
95489 2007-11-03  Bruno Haible  <bruno@clisp.org>
95491         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
95492         value is C99 compliant.
95493         Needed for OSF/1 5.1.
95495 2007-11-03  Bruno Haible  <bruno@clisp.org>
95497         Fix out-of-memory handling of vasnprintf.
95498         * lib/printf-parse.c: Include <errno.h>.
95499         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
95500         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
95501         is already set.
95503 2007-11-02  Eric Blake  <ebb9@byu.net>
95505         Fix tests on cygwin.
95506         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
95508 2007-11-01  Bruno Haible  <bruno@clisp.org>
95510         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
95511         warning.
95512         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
95513         needed for POSIX compatibility.
95515 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
95517         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
95518         for compatibility with GNU.
95520 2007-11-01  Bruno Haible  <bruno@clisp.org>
95522         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
95523         (putenv): Renamed from rpl_putenv. Change argument type from
95524         'const char *' to 'char *'.
95525         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
95526         of defining putenv in config.h, just set REPLACE_PUTENV.
95527         * modules/putenv (Depends-on): Add stdlib.
95528         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
95529         (Include): Use <stdlib.h>.
95530         * lib/stdlib.in.h (putenv): New declaration.
95531         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
95532         REPLACE_PUTENV.
95533         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
95534         REPLACE_PUTENV.
95535         Needed for MacOS X 10.5.0.
95536         Reported by Peter O'Gorman <peter@pogma.com>.
95538 2007-11-01  Jim Meyering  <meyering@redhat.com>
95540         Treat an empty date string exactly like "0".
95541         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
95542         if the remaining date string (to be parsed) is empty, use "0".
95543         Reported by Mischa Molhoek and discussed in this thread:
95544         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
95546 2007-10-31  Bruno Haible  <bruno@clisp.org>
95548         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
95549         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
95550         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
95551         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
95552         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
95553         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
95555 2007-10-31  Bruno Haible  <bruno@clisp.org>
95557         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
95558         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
95559         (AC_TYPE_LONG_LONG_INT): Use it.
95560         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
95561         it as well.
95562         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
95563         to m4/longlong.m4.
95564         * modules/stdint (Files): Remove m4/ulonglong.m4.
95565         * modules/strtoull (Files): Use m4/longlong.m4 instead of
95566         m4/ulonglong.m4.
95567         * modules/strtoumax (Files): Likewise.
95569 2007-10-30  Bruno Haible  <bruno@clisp.org>
95571         * modules/xvasprintf-posix: New file.
95572         Suggested by Eric Blake.
95574 2007-10-30  Bruno Haible  <bruno@clisp.org>
95576         * modules/xprintf-posix-tests: New file.
95577         * tests/test-xprintf-posix.sh: New file.
95578         * tests/test-xprintf-posix.c: New file.
95579         * tests/test-xfprintf-posix.c: New file.
95581         * modules/xprintf-posix: New file.
95583 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95585         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
95586         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
95587         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
95589 2007-10-29  Bruno Haible  <bruno@clisp.org>
95591         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
95592         contain the special marker '_cv_'.
95593         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
95594         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
95595         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
95596         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
95597         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
95598         Reported by Ralf Wildenhues.
95600 2007-10-29  Bruno Haible  <bruno@clisp.org>
95602         * gnulib-tool (func_import): When --lgpl is not specified, set
95603         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
95604         GPLv3.
95605         Reported by Simon Josefsson.
95607 2007-10-28  Bruno Haible  <bruno@clisp.org>
95609         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
95610         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
95611         HAVE_DECL_ISFINITE.
95612         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
95613         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
95614         HAVE_DECL_ISFINITE.
95616 2007-10-28  Bruno Haible  <bruno@clisp.org>
95618         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
95619         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
95621 2007-10-28  Bruno Haible  <bruno@clisp.org>
95623         Fix link errors with Sun C 5.0 on Solaris 10.
95624         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
95625         function is declared but not present in the compiler's libm.
95626         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
95627         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
95628         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
95629         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
95630         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
95631         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
95632         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
95633         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
95634         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
95635         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
95636         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
95637         HAVE_DECL_FLOORL.
95639 2007-10-28  Bruno Haible  <bruno@clisp.org>
95641         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
95642         gl_FUNC_FLOORL. Cache the result.
95643         (gl_FUNC_FLOORL): Use it.
95644         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
95645         gl_FUNC_CEILL. Cache the result.
95646         (gl_FUNC_CEILL): Use it.
95648         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
95649         gl_FUNC_FLOOR. Cache the result.
95650         (gl_FUNC_FLOOR): Use it.
95651         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
95652         gl_FUNC_CEIL. Cache the result.
95653         (gl_FUNC_CEIL): Use it.
95655         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
95656         gl_FUNC_FLOORF. Cache the result.
95657         (gl_FUNC_FLOORF): Use it.
95658         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
95659         gl_FUNC_CEILF. Cache the result.
95660         (gl_FUNC_CEILF): Use it.
95662 2007-10-28  Bruno Haible  <bruno@clisp.org>
95664         * gnulib-tool: Allow specifying the LGPL version number through
95665         --lgpl=2 or --lgpl=3.
95666         (func_usage): Document --lgpl with argument.
95667         Handle --lgpl=... arguments.
95668         (func_import): Recognize also gl_LGPL calls with an argument. When
95669         --lgpl=2 is used and the module's license is just LGPL, report an
95670         error. Set sed_transform_lib_file according to the lgpl variable. In
95671         the generated files, use --lgpl or gl_LGPL invocations with argument,
95672         if necessary.
95673         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
95674         an LGPv2+ license.
95675         * doc/gnulib-tool.texi (Modified imports): Update explanation of
95676         gl_LGPL macro.
95678 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95679             Bruno Haible  <bruno@clisp.org>
95681         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
95682         (u16_uctomb_aux): Likewise.
95683         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
95684         !HAVE_INLINE.
95685         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
95687 2007-10-28  Bruno Haible  <bruno@clisp.org>
95689         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
95690         Invoke AM_GETTEXT_OPTION if it exists.
95691         * modules/vasprintf: Likewise.
95692         * modules/verror: Likewise.
95693         * modules/xprintf: Likewise.
95694         * modules/xvasprintf: Likewise.
95696 2007-10-27  Ben Pfaff  <blp@gnu.org>
95698         * lib/math.in.h: Define isfinite macro and prototypes for
95699         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
95700         implementations.
95701         * m4/math_h.m4: New substitutions for isfinite module.
95702         * lib/isfinite.c: New file.
95703         * m4/isfinite.m4: New file.
95704         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
95705         * modules/isfinite: New file.
95706         * modules/isfinite-tests: New file.
95707         * tests/tests-isfinite.c: New file.
95708         * doc/functions/isfinite.texi: Mention isfinite module.
95709         * MODULES.html.sh: Mention new module.
95711 2007-10-27  Ben Pfaff  <blp@gnu.org>
95713         Ralf Wildenhues reported that Tru64 4.0D declares the round
95714         functions but does not have definitions.
95715         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
95716         cannot be found in any library, set the output variable to
95717         "missing" instead of "".
95718         * m4/round.m4: Also use our substitute if we cannot find round in
95719         any library, even if it is declared.
95720         * m4/roundf.m4: Likewise for roundf.
95721         * m4/roundl.m4: Likewise for roundl.
95722         * lib/math.in.h: Undefine roundf, round, roundl before defining
95723         their replacements, to allow for hypothetical systems where these
95724         may be defined as macros but not available in libraries.
95726 2007-10-27  Bruno Haible  <bruno@clisp.org>
95728         * doc/gnulib.texi: Invoke @firstparagraphindent.
95729         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
95730         changes in gnulib.
95731         (Source changes): New section.
95733 2007-10-26  Bruno Haible  <bruno@clisp.org>
95735         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
95736         borrowed from autoconf.
95738 2007-10-26  Bruno Haible  <bruno@clisp.org>
95740         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
95741         strerror returned the empty string. Needed on HP-UX 11.00.
95743 2007-10-24  Micah Cowan  <micah@cowan.name>
95745         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
95746         * build-aux/bootstrap: Remove support for now-unnecessary option,
95747         --cvs-user, and envvars CVS_USER, CVS_RSH.
95749 2007-10-24  Jim Meyering  <meyering@redhat.com>
95751         Avoid diagnostics from sha1sum when there is no cached checksum.
95752         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
95753         if the po.s1 file hasn't been created yet.
95755         * build-aux/bootstrap: Sync from coreutils:
95756         2007-10-24  Jim Meyering  <meyering@redhat.com>
95757         Get gnulib from the git repository, not from an obsolete cvs one.
95758         * build-aux/bootstrap: Suggestion from Micah Cowan.
95759         2007-10-04  Jim Meyering  <jim@meyering.net>
95760         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
95761         (update_po_files): Work also when there are no .po files in po/.
95763 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
95765         * README: Append ".git" to git and cg examples.
95766         Problem reported by Benoit Sigoure.
95768 2007-10-23  Micah Cowan  <micah@cowan.name>
95770         * users.txt: Add wget.
95772 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95774         Fix linking of some unistdio tests on FreeBSD.
95775         * modules/unistdio/u16-vsnprintf-tests
95776         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
95777         * modules/unistdio/u16-vsprintf-tests
95778         (test_u16_vsnprintf1_LDADD): Likewise.
95779         * modules/unistdio/u32-vsnprintf-tests
95780         (test_u32_vsnprintf1_LDADD): Likewise.
95781         * modules/unistdio/u32-vsprintf-tests
95782         (test_u32_vsprintf1_LDADD): Likewise.
95783         * modules/unistdio/u8-vsnprintf-tests
95784         (test_u8_vsnprintf1_LDADD): Likewise.
95785         * modules/unistdio/u8-vsprintf-tests
95786         (test_u8_vsprintf1_LDADD): Likewise.
95787         * modules/unistdio/ulc-vsnprintf-tests
95788         (test_ulc_vsnprintf1_LDADD): Likewise.
95789         * modules/unistdio/ulc-vsprintf-tests
95790         (test_ulc_vsprintf1_LDADD): Likewise.
95792         Fix linking of some uniconv tests on FreeBSD.
95793         * modules/uniconv/u16-conv-from-enc-tests
95794         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
95795         * modules/uniconv/u16-conv-to-enc-tests
95796         (test_u16_conv_to_enc_LDADD): Likewise.
95797         * modules/uniconv/u16-strconv-from-enc-tests
95798         (test_u16_strconv_from_enc_LDADD): Likewise.
95799         * modules/uniconv/u16-strconv-to-enc-tests
95800         (test_u16_strconv_to_enc_LDADD): Likewise.
95801         * modules/uniconv/u32-conv-from-enc-tests
95802         (test_u32_conv_from_enc_LDADD): Likewise.
95803         * modules/uniconv/u32-conv-to-enc-tests
95804         (test_u32_conv_to_enc_LDADD): Likewise.
95805         * modules/uniconv/u32-strconv-from-enc-tests
95806         (test_u32_strconv_from_enc_LDADD): Likewise.
95807         * modules/uniconv/u32-strconv-to-enc-tests
95808         (test_u32_strconv_to_enc_LDADD): Likewise.
95809         * modules/uniconv/u8-conv-from-enc-tests
95810         (test_u8_conv_from_enc_LDADD): Likewise.
95811         * modules/uniconv/u8-conv-to-enc-tests
95812         (test_u8_conv_to_enc_LDADD): Likewise.
95813         * modules/uniconv/u8-strconv-from-enc-tests
95814         (test_u8_strconv_from_enc_LDADD): Likewise.
95815         * modules/uniconv/u8-strconv-to-enc-tests
95816         (test_u8_strconv_to_enc_LDADD): Likewise.
95818 2007-10-22  Bruno Haible  <bruno@clisp.org>
95820         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
95821         size.
95823 2007-10-22  Eric Blake  <ebb9@byu.net>
95825         Tweak x*printf documentation.
95826         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
95827         variable name and comments.
95828         Suggested by Bruno Haible.
95830 2007-10-22  Bruno Haible  <bruno@clisp.org>
95832         * lib/acl.c (copy_acl): Fix file name in comment.
95834 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
95836         Fix Tru64 problem with stdbool.h.
95837         * lib/stdbool.in.h (false, true):
95838         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
95839         Don't declare as an enum in this situation; it runs afoul of Tru64.
95840         Problem reported by Steven M. Schweda in
95841         <http://lists.gnu.org/r/bug-autoconf/2007-10/msg00019.html>.
95843 2007-10-22  Eric Blake  <ebb9@byu.net>
95845         Also wrap vf?printf.
95846         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
95847         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
95848         (xvprintf, xvfprintf): New functions.
95850 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95852         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
95853         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
95855         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
95856         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
95858 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
95860         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
95861         by Bruno Haible.
95863 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95865         * lib/getloadavg.c
95866         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
95867         Undef `sys' after including sys/table.h, for Tru64 4.0D.
95869         * tests/test-i-ring.c: Work for C89.
95871 2007-10-22  Bruno Haible  <bruno@clisp.org>
95873         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
95874         -1u, in preprocessor expression, so that we don't test for the bug
95875         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
95876         <http://lists.gnu.org/r/bug-gnulib/2007-10/msg00329.html>.
95878 2007-10-22  Eric Blake  <ebb9@byu.net>
95880         * tests/test-yesno.sh: Silence stderr during test.
95882 2007-10-22  Simon Josefsson  <simon@josefsson.org>
95884         * modules/crypto/gc-camellia: New file.
95886         * m4/gc-camellia.m4: New file.
95888         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
95890         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
95892 2007-10-22  Simon Josefsson  <simon@josefsson.org>
95894         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
95895         --help to stdout.  Reported by sms@antinode.org (Steven
95896         M. Schweda).
95898 2007-10-22  Simon Josefsson  <simon@josefsson.org>
95900         * users.txt: Fix link to libksba.
95902 2007-10-21  Ben Pfaff  <blp@gnu.org>
95904         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
95905         round.c roundf implementation that depends on floorf and ceilf to
95906         be tested unconditionally.
95908 2007-10-21  Ben Pfaff  <blp@gnu.org>
95910         * m4/check-libm-func.m4: Removed.
95911         * m4/check-math-lib.m4: New file.
95912         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
95913         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
95914         definition and lack of AC_LIBOBJ([roundf]).
95915         * m4/roundl.m4: Ditto, and similarly for roundl.
95916         * modules/round: Reference new m4 file.
95917         * modules/roundf: Ditto.
95918         * modules/roundl: Ditto.
95919         * tests/test-round2.c (main): Use ROUND instead of round.
95920         Bug report from Bruno Haible.
95922 2007-10-21  Bruno Haible  <bruno@clisp.org>
95924         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
95925         context.
95927 2007-10-21  Bruno Haible  <bruno@clisp.org>
95929         * tests/test-wcwidth.c (main): Allow negative result for some control
95930         characters.
95932         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
95933         Needed on OSF/1 5.1.
95935 2007-10-21  Bruno Haible  <bruno@clisp.org>
95937         * tests/test-floorf1.c: Include isnanf.h.
95938         (main): Use isnanf() instead of isnan().
95939         * tests/test-ceilf1.c: Include isnanf.h.
95940         (main): Use isnanf() instead of isnan().
95941         * tests/test-truncf1.c: Include isnanf.h.
95942         (main): Use isnanf() instead of isnan().
95943         * tests/test-roundf1.c: Include isnanf.h.
95944         (main): Use isnanf() instead of isnan().
95946 2007-10-21  Eric Blake  <ebb9@byu.net>
95948         * users.txt: Update URL for m4.
95950 2007-10-21  Bruno Haible  <bruno@clisp.org>
95952         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
95954 2007-10-21  Bruno Haible  <bruno@clisp.org>
95956         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
95957         Git's management files if the CVS files are not present.
95959 2007-10-20  Bruno Haible  <bruno@clisp.org>
95961         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
95962         gcc-3.4.x.
95964 2007-10-20  Ben Pfaff  <blp@gnu.org>
95966         * lib/math.in.h: Declare round, roundf, roundl if we are providing
95967         implementations.
95968         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
95969         * lib/round.c: New file.
95970         * lib/roundf.c: New file.
95971         * lib/roundl.c: New file.
95972         * m4/round.m4: New file.
95973         * m4/roundf.m4: New file.
95974         * m4/roundl.m4: New file.
95975         * m4/check-libm-func-m4: New file.
95976         * modules/math: Replace round, roundf, roundl related @VARS@ in
95977         math.in.h.
95978         * modules/round: New file.
95979         * modules/round-tests: New file.
95980         * modules/roundf: New file.
95981         * modules/roundf-tests: New file.
95982         * modules/roundl: New file.
95983         * modules/roundl-tests: New file.
95984         * tests/test-round1.c: New file.
95985         * tests/test-round2.c: New file.
95986         * tests/test-roundf1.c: New file.
95987         * tests/test-roundf2.c: New file.
95988         * tests/test-roundl.c: New file.
95989         * doc/functions/round.texi: Mention round module.
95990         * doc/functions/roundf.texi: Mention roundf module.
95991         * doc/functions/roundl.texi: Mention roundl module.
95992         * MODULES.html.sh: Mention new modules.
95993         Thanks to Bruno Haible for suggestions.
95995 2007-10-20  Jim Meyering  <meyering@redhat.com>
95997         * lib/xprintf.c: Include <config.h> unconditionally.
95999         Change xprintf's license to GPL.
96000         * modules/xprintf (License): s/LGPL/GPL/, since this module
96001         depends on modules (exit and exitfail) which are GPL.
96002         Suggestion from Bruno Haible.
96004         xprintf fixes.
96005         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
96006         Use a clearer diagnostic.
96007         Patch from Bruno Haible.
96009 2007-10-20  Bruno Haible  <bruno@clisp.org>
96011         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
96012         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
96013         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
96015 2007-10-20  Bruno Haible  <bruno@clisp.org>
96017         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
96018         precision in the comparison result > x - 1 or similar.
96019         * tests/test-ceilf2.c (correct_result_p): Likewise.
96020         * tests/test-truncf2.c (correct_result_p): Likewise.
96021         * tests/test-trunc2.c (correct_result_p): Likewise.
96022         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
96024 2007-10-20  Bruno Haible  <bruno@clisp.org>
96026         * modules/ceil: New file.
96027         * m4/ceil.m4: New file.
96028         * doc/functions/ceil.texi: Mention the 'ceil' module.
96030 2007-10-20  Bruno Haible  <bruno@clisp.org>
96032         * modules/floor: New file.
96033         * m4/floor.m4: New file.
96034         * doc/functions/floor.texi: Mention the 'floor' module.
96036 2007-10-20  Bruno Haible  <bruno@clisp.org>
96038         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
96039         of %a.
96040         * modules/floorf-tests (Depends-on): Likewise.
96041         * modules/truncf-tests (Depends-on): Likewise.
96042         * modules/trunc-tests (Depends-on): Likewise.
96043         Reported by Ben Pfaff.
96045 2007-10-19  Jim Meyering  <meyering@redhat.com>
96047         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
96048         Don't bother testing specific errno values.  Just test ferror.
96050         New module: xprintf
96051         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
96053 2007-10-19  Bruno Haible  <bruno@clisp.org>
96055         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
96056         syntax.
96057         * modules/javaexec (Makefile.am): Likewise.
96058         * modules/relocatable-prog (Makefile.am): Likewise.
96059         Suggested by Jim Meyering.
96061 2007-10-18  Bruno Haible  <bruno@clisp.org>
96063         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
96064         Reported by Jim Meyering.
96066 2007-10-18  Eric Blake  <ebb9@byu.net>
96068         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
96070 2007-10-18  Bruno Haible  <bruno@clisp.org>
96072         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
96073         the format string into writable memory. Needed in Fortify conditions.
96075 2007-10-18  Colin Watson  <cjwatson@debian.org>  (tiny change)
96076             Bruno Haible  <bruno@clisp.org>
96078         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
96079         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
96080         * modules/trim (Depends-on): Add mbchar.
96081         (configure.ac): Add gl_FUNC_MBRTOWC.
96082         (Makefile.am): Augment lib_SOURCES.
96084 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
96086         Modify glob.c to use fstatat and dirfd, to simplify it.
96087         Suggested by Eric Blake.
96088         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
96089         Don't include <stdbool.h>; not used.
96090         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
96091         (link_exists_p): Simplify implementation, since we can now assume
96092         dirfd and fstatat.
96093         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
96095 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96097         * gnulib-tool (func_get_dependencies): Fix sed script to
96098         match only tests.
96100 2007-10-17  Bruno Haible  <bruno@clisp.org>
96102         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
96103         allow locale names without encoding suffix.
96104         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
96105         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
96107 2007-10-16  Bruno Haible  <bruno@clisp.org>
96109         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
96110         * lib/getgroups.c (getgroups): Likewise.
96111         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
96113 2007-10-16  Bruno Haible  <bruno@clisp.org>
96115         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
96116         * modules/malloc-posix (License): Likewise.
96117         * modules/realloc-posix (License): Likewise.
96118         * modules/calloc-posix (License): Likewise.
96119         * modules/intprops (License): Change from GPL to LGPL, with
96120         Paul Eggert's approval.
96122 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
96124         Merge glibc changes into lib/glob.c.
96126         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
96127         2007-10-15 04:59:03 UTC.  Here are the changes:
96129         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
96131         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
96133         * lib/glob.c: Add some branch prediction throughout.
96135         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
96137         [BZ #5103]
96138         * lib/glob.c (glob): Recognize patterns starting \/.
96140         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
96142         [BZ #3996]
96143         * lib/glob.c (attribute_hidden): Define if not defined.
96144         (glob): Unescape dirname, filename or username when needed and not
96145         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
96146         is NULL.  Handle unescaped [ in pattern without closing ].
96147         Don't pass GLOB_CHECK down to recursive glob for directories.
96148         (__glob_pattern_type): New function.
96149         (__glob_pattern_p): Implement using __glob_pattern_type.
96150         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
96151         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
96152         Remove unreachable code.
96154         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
96156         * lib/glob.c (glob_in_dir): Add some comments and asserts to
96157         explain why there are no leaks.
96159         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
96161         [BZ #3253]
96162         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
96163         time, rather allocate increasingly bigger arrays of pointers, if
96164         possible with alloca, if too large with malloc.
96166 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
96168         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
96169         Problem reported by H.Merijn Brand in
96170         <http://lists.gnu.org/r/bug-tar/2007-10/msg00018.html>.
96171         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
96172         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
96174 2007-10-15  Bruno Haible  <bruno@clisp.org>
96176         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
96177         with explicit rpl_ prefix.
96178         * lib/fopen.c (fopen): Likewise.
96179         * lib/freopen.c (freopen): Likewise.
96180         * lib/iconv.c (iconv): Likewise.
96181         * lib/iconv_close.c (iconv_close): Likewise.
96183 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96185         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
96187 2007-10-15  Bruno Haible  <bruno@clisp.org>
96189         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
96190         <stddef.h> instead of <stdlib.h> since we only need NULL.
96191         Reported by Ben Pfaff <blp@cs.stanford.edu>.
96193 2007-10-15  Bruno Haible  <bruno@clisp.org>
96195         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
96196         Replace paragraph talking about LIBOBJS.
96197         Reported by Colin Watson <cjwatson@debian.org>.
96199 2007-10-15  Bruno Haible  <bruno@clisp.org>
96201         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
96202         <stdlib.h> before using NULL.
96204 2007-10-15  Simon Josefsson  <simon@josefsson.org>
96206         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
96207         Reported by Albert Chin <china@thewrittenword.com>.
96209 2007-10-14  Bruno Haible  <bruno@clisp.org>
96211         * modules/iconv_open-utf-tests: New file.
96212         * tests/test-iconv-utf.c: New file.
96214         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
96215         * modules/iconv_open-utf: New file.
96216         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
96217         (iconv, iconv_close): New declarations.
96218         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
96219         be defined.
96220         (iconv_open): Add special handling of conversion between UTF-8 and
96221         UTF-{16,32}{BE,LE}.
96222         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
96223         * lib/iconv_close.c: New file.
96224         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
96225         gl_FUNC_ICONV_OPEN.
96226         (gl_FUNC_ICONV_OPEN): Use it.
96227         (gl_FUNC_ICONV_OPEN_UTF): New macro.
96228         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
96229         and REPLACE_ICONV_UTF.
96230         * modules/iconv_open (Depends-on): Add c-strcase.
96231         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
96232         ICONV_CONST.
96233         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
96235 2007-10-13  Albert Chin  <china@thewrittenword.com>
96236             Bruno Haible  <bruno@clisp.org>
96238         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
96239         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
96241 2007-10-13  Bruno Haible  <bruno@clisp.org>
96243         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
96244         defined, use the ISO C99 inline semantics.
96245         * lib/argp.h (ARGP_EI): Likewise.
96247 2007-10-13  Bruno Haible  <bruno@clisp.org>
96249         Handle 'inline' change in gcc 4.3.0.
96250         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
96251         argp_fmtstream_write, argp_fmtstream_set_lmargin,
96252         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
96253         argp_fmtstream_point): Disable 'extern' declaration if the function
96254         definition is going to be provided inline.
96255         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
96256         semantics, not the ISO C99 inline semantics.
96257         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
96258         'extern' declaration if the function definition is going to be provided
96259         inline.
96260         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
96261         the GNU C inline semantics, not the ISO C99 inline semantics. With
96262         GCC 4.2, avoid a warning.
96264 2007-10-13  Bruno Haible  <bruno@clisp.org>
96266         * lib/freading.h (freading): Enable the use of __freading for
96267         glibc >= 2.7.
96268         * lib/freading.c (freading): Likewise.
96270 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
96272         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
96273         "warning: C99 inline functions are not supported; using GNU89".
96275 2007-10-12  Bruno Haible  <bruno@clisp.org>
96277         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
96278         of 2.
96279         * tests/test-ceilf2.c: New file.
96280         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
96282         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
96283         * modules/ceilf-tests: Update.
96285 2007-10-12  Bruno Haible  <bruno@clisp.org>
96287         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
96288         of 2.
96289         * tests/test-floorf2.c: New file.
96290         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
96292         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
96293         * modules/floorf-tests: Update.
96295 2007-10-12  Bruno Haible  <bruno@clisp.org>
96297         * tests/test-trunc2.c: New file.
96298         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
96300         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
96301         * modules/trunc-tests: Update.
96303 2007-10-12  Bruno Haible  <bruno@clisp.org>
96305         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
96306         of 2.
96307         * tests/test-truncf2.c: New file.
96308         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
96310         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
96311         * modules/truncf-tests: Update.
96313 2007-10-11  Eric Blake  <ebb9@byu.net>
96315         Don't claim strerror is broken on Interix.
96316         * doc/functions/strerror.texi (strerror): Known broken systems are
96317         now Solaris 8, and not Interix.
96318         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
96319         Interix on cross-compile.
96320         Reported by Martin Koeppe in
96321         http://lists.gnu.org/r/bug-gnulib/2007-10/msg00005.html.
96323 2007-10-11  Bruno Haible  <bruno@clisp.org>
96325         * modules/i-ring-tests: New file.
96326         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
96327         instead of assert.
96329 2007-10-11  Bruno Haible  <bruno@clisp.org>
96331         * modules/filenamecat-tests: New file.
96332         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
96333         * lib/filenamecat.c: Remove test code.
96335 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
96337         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
96339         * lib/strerror.c: Include <string.h> always, to test interface,
96340         and to remove the need for the dummy.
96341         Include intprops.h to compute width instead of doing it ourselves
96342         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
96343         (strerror): Define it to return NULL if there's no system strerror.
96344         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
96345         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
96346         ancient pre-strerror Unix systems well any more.  Saying "unknown
96347         system error" is enough.
96348         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
96349         simpler strerror.c implementation.
96350         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
96351         Simplify the tests to reflect the simpler strerror implementation.
96352         * modules/strerror (Depends-on): Add intprops.
96354 2007-10-09  Eric Blake  <ebb9@byu.net>
96356         Silence test-fpending.
96357         * modules/fpending-tests (Files): Add wrapper script.
96358         * tests/test-fpending.sh: New file.
96360 2007-10-09  Bruno Haible  <bruno@clisp.org>
96362         * MODULES.html.sh (func_module): Don't create a hyperlink for
96363         function names like 'printf_frexp'.
96364         (Misc): Add crc, memxor.
96365         (Characteristics of floating types): New section.
96366         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
96367         isnanf-nolibm, signbit, trunc, truncf, truncl.
96368         (Enhancements for ISO C 99 functions): New subsection Input/output.
96369         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
96370         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
96371         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
96372         (Compatibility checks for POSIX:2001 functions): Add clock-time.
96373         (Enhancements for POSIX:2001 functions): Add chdir-long.
96374         (File system functions): Add areadlink, chdir-safer, read-file.
96375         Remove cycle-check.
96376         (File system as inode set): New section.
96377         (Date and time): Add gethrxtime.
96378         (Multithreading): Add openmp.
96379         (Internationalization functions): Add localename.
96380         (Unicode string functions): Add unistr/u*-mbsnlen.
96381         (Support for maintaining and releasing projects): Add git-version-gen.
96382         (Lone files): Remove directories.
96384 2007-10-08  Ben Pfaff  <blp@gnu.org>
96386         * lib/xmalloca.h: Fix typo in comment.
96388 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
96390         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
96391         when avoiding problems with integer overflow.  Use a portable test
96392         instead.
96394 2007-10-08  Simon Josefsson  <simon@josefsson.org>
96396         * modules/dummy (License): Change to LGPLv2+.
96397         * modules/float (License): Likewise
96398         * modules/realloc (License): Likewise
96399         * modules/stdlib (License): Likewise
96401 2007-10-07  Bruno Haible  <bruno@clisp.org>
96403         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
96404         * floor.c (TWO_MANT_DIG): Likewise.
96405         * ceil.c (TWO_MANT_DIG): Likewise.
96406         Reported by Ben Pfaff.
96408 2007-10-07  Bruno Haible  <bruno@clisp.org>
96410         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
96411         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
96412         * lib/frexp.c (FUNC): Likewise.
96413         * lib/printf-frexp.h (printf_frexp): Likewise.
96414         * lib/printf-frexpl.h (printf_frexpl): Likewise.
96415         * lib/printf-frexp.c (FUNC): Likewise.
96416         Suggested by Jim Meyering.
96418 2007-10-07  Jim Meyering  <meyering@redhat.com>
96420         Make xnanosleep's integer overflow test more robust.
96421         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
96422         so that gcc-4.3.0 doesn't optimize away this test for overflow.
96424 2007-10-07  Bruno Haible  <bruno@clisp.org>
96426         * NEWS: Mention the license change.
96428         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
96429         abbreviations in the modules files.
96431         Change copyright notice from GPLv2+ to GPLv3+.
96432         * README: Change copyright notice.
96433         * MODULES.html.sh: Likewise.
96434         * build-aux/bootstrap.conf: Likewise.
96435         * build-aux/config.libpath: Likewise.
96436         * build-aux/csharpcomp.sh.in: Likewise.
96437         * build-aux/csharpexec.sh.in: Likewise.
96438         * build-aux/install-reloc: Likewise.
96439         * build-aux/javacomp.sh.in: Likewise.
96440         * build-aux/javaexec.sh.in: Likewise.
96441         * build-aux/ldd.sh.in: Likewise.
96442         * build-aux/reloc-ldflags: Likewise.
96443         * build-aux/relocatable.sh.in: Likewise.
96444         * build-aux/x-to-1.in: Likewise.
96445         * check-module: Likewise.
96446         * config/srclistvars.sh: Likewise.
96447         * gnulib-tool: Likewise.
96448         * lib/acl-internal.h: Likewise.
96449         * lib/acl.c: Likewise.
96450         * lib/acl.h: Likewise.
96451         * lib/acl_entries.c: Likewise.
96452         * lib/areadlink-with-size.c: Likewise.
96453         * lib/areadlink.c: Likewise.
96454         * lib/areadlink.h: Likewise.
96455         * lib/argmatch.c: Likewise.
96456         * lib/argmatch.h: Likewise.
96457         * lib/argp-ba.c: Likewise.
96458         * lib/argp-eexst.c: Likewise.
96459         * lib/argp-fmtstream.c: Likewise.
96460         * lib/argp-fmtstream.h: Likewise.
96461         * lib/argp-fs-xinl.c: Likewise.
96462         * lib/argp-help.c: Likewise.
96463         * lib/argp-namefrob.h: Likewise.
96464         * lib/argp-parse.c: Likewise.
96465         * lib/argp-pin.c: Likewise.
96466         * lib/argp-pv.c: Likewise.
96467         * lib/argp-pvh.c: Likewise.
96468         * lib/argp-xinl.c: Likewise.
96469         * lib/argp.h: Likewise.
96470         * lib/at-func.c: Likewise.
96471         * lib/atanl.c: Likewise.
96472         * lib/backupfile.c: Likewise.
96473         * lib/backupfile.h: Likewise.
96474         * lib/basename.c: Likewise.
96475         * lib/binary-io.h: Likewise.
96476         * lib/byteswap.in.h: Likewise.
96477         * lib/c-stack.c: Likewise.
96478         * lib/c-stack.h: Likewise.
96479         * lib/c-strcasestr.c: Likewise.
96480         * lib/c-strcasestr.h: Likewise.
96481         * lib/c-strstr.c: Likewise.
96482         * lib/c-strstr.h: Likewise.
96483         * lib/c-strtod.c: Likewise.
96484         * lib/calloc.c: Likewise.
96485         * lib/canon-host.c: Likewise.
96486         * lib/canon-host.h: Likewise.
96487         * lib/canonicalize-lgpl.c: Likewise.
96488         * lib/canonicalize.c: Likewise.
96489         * lib/canonicalize.h: Likewise.
96490         * lib/ceil.c: Likewise.
96491         * lib/ceilf.c: Likewise.
96492         * lib/ceill.c: Likewise.
96493         * lib/chdir-long.c: Likewise.
96494         * lib/chdir-long.h: Likewise.
96495         * lib/chdir-safer.c: Likewise.
96496         * lib/chdir-safer.h: Likewise.
96497         * lib/chown.c: Likewise.
96498         * lib/classpath.c: Likewise.
96499         * lib/classpath.h: Likewise.
96500         * lib/clean-temp.c: Likewise.
96501         * lib/clean-temp.h: Likewise.
96502         * lib/cloexec.c: Likewise.
96503         * lib/close-stream.c: Likewise.
96504         * lib/closein.c: Likewise.
96505         * lib/closein.h: Likewise.
96506         * lib/closeout.c: Likewise.
96507         * lib/closeout.h: Likewise.
96508         * lib/concat-filename.c: Likewise.
96509         * lib/copy-file.c: Likewise.
96510         * lib/copy-file.h: Likewise.
96511         * lib/count-one-bits.h: Likewise.
96512         * lib/crc.c: Likewise.
96513         * lib/crc.h: Likewise.
96514         * lib/creat-safer.c: Likewise.
96515         * lib/csharpcomp.c: Likewise.
96516         * lib/csharpcomp.h: Likewise.
96517         * lib/csharpexec.c: Likewise.
96518         * lib/csharpexec.h: Likewise.
96519         * lib/cycle-check.c: Likewise.
96520         * lib/cycle-check.h: Likewise.
96521         * lib/diacrit.c: Likewise.
96522         * lib/diacrit.h: Likewise.
96523         * lib/diffseq.h: Likewise.
96524         * lib/dirchownmod.c: Likewise.
96525         * lib/dirent.in.h: Likewise.
96526         * lib/dirfd.c: Likewise.
96527         * lib/dirfd.h: Likewise.
96528         * lib/dirname.c: Likewise.
96529         * lib/dirname.h: Likewise.
96530         * lib/dummy.c: Likewise.
96531         * lib/dup-safer.c: Likewise.
96532         * lib/dup2.c: Likewise.
96533         * lib/eealloc.h: Likewise.
96534         * lib/error.c: Likewise.
96535         * lib/error.h: Likewise.
96536         * lib/euidaccess.c: Likewise.
96537         * lib/exclude.c: Likewise.
96538         * lib/exclude.h: Likewise.
96539         * lib/execute.c: Likewise.
96540         * lib/execute.h: Likewise.
96541         * lib/exitfail.c: Likewise.
96542         * lib/exitfail.h: Likewise.
96543         * lib/expl.c: Likewise.
96544         * lib/fatal-signal.c: Likewise.
96545         * lib/fatal-signal.h: Likewise.
96546         * lib/fbufmode.c: Likewise.
96547         * lib/fbufmode.h: Likewise.
96548         * lib/fchdir.c: Likewise.
96549         * lib/fchmodat.c: Likewise.
96550         * lib/fchownat.c: Likewise.
96551         * lib/fcntl--.h: Likewise.
96552         * lib/fcntl-safer.h: Likewise.
96553         * lib/fcntl.in.h: Likewise.
96554         * lib/fd-safer.c: Likewise.
96555         * lib/fflush.c: Likewise.
96556         * lib/file-has-acl.c: Likewise.
96557         * lib/file-set.c: Likewise.
96558         * lib/file-type.c: Likewise.
96559         * lib/file-type.h: Likewise.
96560         * lib/fileblocks.c: Likewise.
96561         * lib/filemode.c: Likewise.
96562         * lib/filemode.h: Likewise.
96563         * lib/filename.h: Likewise.
96564         * lib/filenamecat.c: Likewise.
96565         * lib/filenamecat.h: Likewise.
96566         * lib/findprog.c: Likewise.
96567         * lib/findprog.h: Likewise.
96568         * lib/float.in.h: Likewise.
96569         * lib/floor.c: Likewise.
96570         * lib/floorf.c: Likewise.
96571         * lib/floorl.c: Likewise.
96572         * lib/fopen-safer.c: Likewise.
96573         * lib/fopen.c: Likewise.
96574         * lib/fpending.c: Likewise.
96575         * lib/fpending.h: Likewise.
96576         * lib/fprintf.c: Likewise.
96577         * lib/fprintftime.h: Likewise.
96578         * lib/fpucw.h: Likewise.
96579         * lib/fpurge.c: Likewise.
96580         * lib/fpurge.h: Likewise.
96581         * lib/freadable.c: Likewise.
96582         * lib/freadable.h: Likewise.
96583         * lib/freadahead.c: Likewise.
96584         * lib/freadahead.h: Likewise.
96585         * lib/freading.c: Likewise.
96586         * lib/freading.h: Likewise.
96587         * lib/free.c: Likewise.
96588         * lib/freopen.c: Likewise.
96589         * lib/frexp.c: Likewise.
96590         * lib/frexpl.c: Likewise.
96591         * lib/fseek.c: Likewise.
96592         * lib/fseterr.c: Likewise.
96593         * lib/fseterr.h: Likewise.
96594         * lib/fstatat.c: Likewise.
96595         * lib/fstrcmp.c: Likewise.
96596         * lib/fstrcmp.h: Likewise.
96597         * lib/fsusage.c: Likewise.
96598         * lib/fsusage.h: Likewise.
96599         * lib/ftell.c: Likewise.
96600         * lib/ftello.c: Likewise.
96601         * lib/fts-cycle.c: Likewise.
96602         * lib/fts.c: Likewise.
96603         * lib/fts_.h: Likewise.
96604         * lib/full-read.c: Likewise.
96605         * lib/full-read.h: Likewise.
96606         * lib/full-write.c: Likewise.
96607         * lib/full-write.h: Likewise.
96608         * lib/fwritable.c: Likewise.
96609         * lib/fwritable.h: Likewise.
96610         * lib/fwriteerror.c: Likewise.
96611         * lib/fwriteerror.h: Likewise.
96612         * lib/fwriting.c: Likewise.
96613         * lib/fwriting.h: Likewise.
96614         * lib/gcd.c: Likewise.
96615         * lib/gcd.h: Likewise.
96616         * lib/getcwd.c: Likewise.
96617         * lib/getdate.h: Likewise.
96618         * lib/getdate.y: Likewise.
96619         * lib/getdomainname.c: Likewise.
96620         * lib/getdomainname.h: Likewise.
96621         * lib/getgroups.c: Likewise.
96622         * lib/gethostname.c: Likewise.
96623         * lib/gethrxtime.c: Likewise.
96624         * lib/gethrxtime.h: Likewise.
96625         * lib/getloadavg.c: Likewise.
96626         * lib/getndelim2.c: Likewise.
96627         * lib/getndelim2.h: Likewise.
96628         * lib/getnline.c: Likewise.
96629         * lib/getnline.h: Likewise.
96630         * lib/getopt.c: Likewise.
96631         * lib/getopt.in.h: Likewise.
96632         * lib/getopt1.c: Likewise.
96633         * lib/getopt_int.h: Likewise.
96634         * lib/getpagesize.h: Likewise.
96635         * lib/getsubopt.c: Likewise.
96636         * lib/gettime.c: Likewise.
96637         * lib/getugroups.c: Likewise.
96638         * lib/getugroups.h: Likewise.
96639         * lib/getusershell.c: Likewise.
96640         * lib/gl_anyavltree_list1.h: Likewise.
96641         * lib/gl_anyavltree_list2.h: Likewise.
96642         * lib/gl_anyhash_list1.h: Likewise.
96643         * lib/gl_anyhash_list2.h: Likewise.
96644         * lib/gl_anylinked_list1.h: Likewise.
96645         * lib/gl_anylinked_list2.h: Likewise.
96646         * lib/gl_anyrbtree_list1.h: Likewise.
96647         * lib/gl_anyrbtree_list2.h: Likewise.
96648         * lib/gl_anytree_list1.h: Likewise.
96649         * lib/gl_anytree_list2.h: Likewise.
96650         * lib/gl_anytree_oset.h: Likewise.
96651         * lib/gl_anytreehash_list1.h: Likewise.
96652         * lib/gl_anytreehash_list2.h: Likewise.
96653         * lib/gl_array_list.c: Likewise.
96654         * lib/gl_array_list.h: Likewise.
96655         * lib/gl_array_oset.c: Likewise.
96656         * lib/gl_array_oset.h: Likewise.
96657         * lib/gl_avltree_list.c: Likewise.
96658         * lib/gl_avltree_list.h: Likewise.
96659         * lib/gl_avltree_oset.c: Likewise.
96660         * lib/gl_avltree_oset.h: Likewise.
96661         * lib/gl_avltreehash_list.c: Likewise.
96662         * lib/gl_avltreehash_list.h: Likewise.
96663         * lib/gl_carray_list.c: Likewise.
96664         * lib/gl_carray_list.h: Likewise.
96665         * lib/gl_linked_list.c: Likewise.
96666         * lib/gl_linked_list.h: Likewise.
96667         * lib/gl_linkedhash_list.c: Likewise.
96668         * lib/gl_linkedhash_list.h: Likewise.
96669         * lib/gl_list.c: Likewise.
96670         * lib/gl_list.h: Likewise.
96671         * lib/gl_oset.c: Likewise.
96672         * lib/gl_oset.h: Likewise.
96673         * lib/gl_rbtree_list.c: Likewise.
96674         * lib/gl_rbtree_list.h: Likewise.
96675         * lib/gl_rbtree_oset.c: Likewise.
96676         * lib/gl_rbtree_oset.h: Likewise.
96677         * lib/gl_rbtreehash_list.c: Likewise.
96678         * lib/gl_rbtreehash_list.h: Likewise.
96679         * lib/gl_sublist.c: Likewise.
96680         * lib/gl_sublist.h: Likewise.
96681         * lib/group-member.c: Likewise.
96682         * lib/group-member.h: Likewise.
96683         * lib/hard-locale.c: Likewise.
96684         * lib/hard-locale.h: Likewise.
96685         * lib/hash-pjw.c: Likewise.
96686         * lib/hash-pjw.h: Likewise.
96687         * lib/hash-triple.c: Likewise.
96688         * lib/hash.c: Likewise.
96689         * lib/hash.h: Likewise.
96690         * lib/human.c: Likewise.
96691         * lib/human.h: Likewise.
96692         * lib/i-ring.c: Likewise.
96693         * lib/i-ring.h: Likewise.
96694         * lib/idcache.c: Likewise.
96695         * lib/imaxabs.c: Likewise.
96696         * lib/imaxdiv.c: Likewise.
96697         * lib/inet_pton.c: Likewise.
96698         * lib/inet_pton.h: Likewise.
96699         * lib/intprops.h: Likewise.
96700         * lib/inttostr.c: Likewise.
96701         * lib/inttostr.h: Likewise.
96702         * lib/inttypes.in.h: Likewise.
96703         * lib/isapipe.c: Likewise.
96704         * lib/isdir.c: Likewise.
96705         * lib/isnan.c: Likewise.
96706         * lib/isnan.h: Likewise.
96707         * lib/isnanf.c: Likewise.
96708         * lib/isnanf.h: Likewise.
96709         * lib/isnanl-nolibm.h: Likewise.
96710         * lib/isnanl.c: Likewise.
96711         * lib/isnanl.h: Likewise.
96712         * lib/javacomp.c: Likewise.
96713         * lib/javacomp.h: Likewise.
96714         * lib/javaexec.c: Likewise.
96715         * lib/javaexec.h: Likewise.
96716         * lib/javaversion.c: Likewise.
96717         * lib/javaversion.h: Likewise.
96718         * lib/javaversion.java: Likewise.
96719         * lib/lbrkprop.h: Likewise.
96720         * lib/lchmod.h: Likewise.
96721         * lib/lchown.c: Likewise.
96722         * lib/ldexpl.c: Likewise.
96723         * lib/linebreak.c: Likewise.
96724         * lib/linebreak.h: Likewise.
96725         * lib/linebuffer.c: Likewise.
96726         * lib/linebuffer.h: Likewise.
96727         * lib/locale.in.h: Likewise.
96728         * lib/logl.c: Likewise.
96729         * lib/long-options.c: Likewise.
96730         * lib/long-options.h: Likewise.
96731         * lib/lstat.c: Likewise.
96732         * lib/lstat.h: Likewise.
96733         * lib/math.in.h: Likewise.
96734         * lib/mbchar.c: Likewise.
96735         * lib/mbchar.h: Likewise.
96736         * lib/mbfile.h: Likewise.
96737         * lib/mbiter.h: Likewise.
96738         * lib/mbscasecmp.c: Likewise.
96739         * lib/mbscasestr.c: Likewise.
96740         * lib/mbschr.c: Likewise.
96741         * lib/mbscspn.c: Likewise.
96742         * lib/mbslen.c: Likewise.
96743         * lib/mbsncasecmp.c: Likewise.
96744         * lib/mbsnlen.c: Likewise.
96745         * lib/mbspbrk.c: Likewise.
96746         * lib/mbspcasecmp.c: Likewise.
96747         * lib/mbsrchr.c: Likewise.
96748         * lib/mbssep.c: Likewise.
96749         * lib/mbsspn.c: Likewise.
96750         * lib/mbsstr.c: Likewise.
96751         * lib/mbstok_r.c: Likewise.
96752         * lib/mbswidth.c: Likewise.
96753         * lib/mbswidth.h: Likewise.
96754         * lib/mbuiter.h: Likewise.
96755         * lib/memcasecmp.c: Likewise.
96756         * lib/memcasecmp.h: Likewise.
96757         * lib/memchr.c: Likewise.
96758         * lib/memcmp.c: Likewise.
96759         * lib/memcoll.c: Likewise.
96760         * lib/memcoll.h: Likewise.
96761         * lib/memcpy.c: Likewise.
96762         * lib/memrchr.c: Likewise.
96763         * lib/mkancesdirs.c: Likewise.
96764         * lib/mkdir-p.c: Likewise.
96765         * lib/mkdir-p.h: Likewise.
96766         * lib/mkdir.c: Likewise.
96767         * lib/mkdirat.c: Likewise.
96768         * lib/mkdtemp.c: Likewise.
96769         * lib/mkstemp-safer.c: Likewise.
96770         * lib/mkstemp.c: Likewise.
96771         * lib/modechange.c: Likewise.
96772         * lib/modechange.h: Likewise.
96773         * lib/mountlist.c: Likewise.
96774         * lib/mountlist.h: Likewise.
96775         * lib/mpsort.c: Likewise.
96776         * lib/nanosleep.c: Likewise.
96777         * lib/obstack.c: Likewise.
96778         * lib/obstack.h: Likewise.
96779         * lib/open-safer.c: Likewise.
96780         * lib/open.c: Likewise.
96781         * lib/openat-die.c: Likewise.
96782         * lib/openat-priv.h: Likewise.
96783         * lib/openat-proc.c: Likewise.
96784         * lib/openat.c: Likewise.
96785         * lib/openat.h: Likewise.
96786         * lib/pagealign_alloc.c: Likewise.
96787         * lib/pagealign_alloc.h: Likewise.
96788         * lib/physmem.c: Likewise.
96789         * lib/physmem.h: Likewise.
96790         * lib/pipe-safer.c: Likewise.
96791         * lib/pipe.c: Likewise.
96792         * lib/pipe.h: Likewise.
96793         * lib/posixtm.c: Likewise.
96794         * lib/posixtm.h: Likewise.
96795         * lib/posixver.c: Likewise.
96796         * lib/printf-frexp.c: Likewise.
96797         * lib/printf-frexp.h: Likewise.
96798         * lib/printf-frexpl.c: Likewise.
96799         * lib/printf-frexpl.h: Likewise.
96800         * lib/printf.c: Likewise.
96801         * lib/progname.c: Likewise.
96802         * lib/progname.h: Likewise.
96803         * lib/progreloc.c: Likewise.
96804         * lib/putenv.c: Likewise.
96805         * lib/quote.c: Likewise.
96806         * lib/quote.h: Likewise.
96807         * lib/quotearg.c: Likewise.
96808         * lib/quotearg.h: Likewise.
96809         * lib/raise.c: Likewise.
96810         * lib/readline.c: Likewise.
96811         * lib/readline.h: Likewise.
96812         * lib/readlink.c: Likewise.
96813         * lib/readtokens.c: Likewise.
96814         * lib/readtokens.h: Likewise.
96815         * lib/readtokens0.c: Likewise.
96816         * lib/readtokens0.h: Likewise.
96817         * lib/readutmp.c: Likewise.
96818         * lib/readutmp.h: Likewise.
96819         * lib/realloc.c: Likewise.
96820         * lib/relocwrapper.c: Likewise.
96821         * lib/rename-dest-slash.c: Likewise.
96822         * lib/rename.c: Likewise.
96823         * lib/rmdir.c: Likewise.
96824         * lib/rpmatch.c: Likewise.
96825         * lib/safe-read.c: Likewise.
96826         * lib/safe-read.h: Likewise.
96827         * lib/safe-write.c: Likewise.
96828         * lib/safe-write.h: Likewise.
96829         * lib/same-inode.h: Likewise.
96830         * lib/same.c: Likewise.
96831         * lib/same.h: Likewise.
96832         * lib/save-cwd.c: Likewise.
96833         * lib/save-cwd.h: Likewise.
96834         * lib/savedir.c: Likewise.
96835         * lib/savedir.h: Likewise.
96836         * lib/savewd.c: Likewise.
96837         * lib/savewd.h: Likewise.
96838         * lib/search.in.h: Likewise.
96839         * lib/setenv.c: Likewise.
96840         * lib/setenv.h: Likewise.
96841         * lib/settime.c: Likewise.
96842         * lib/sh-quote.c: Likewise.
96843         * lib/sh-quote.h: Likewise.
96844         * lib/sig2str.c: Likewise.
96845         * lib/sig2str.h: Likewise.
96846         * lib/signal.in.h: Likewise.
96847         * lib/signbitd.c: Likewise.
96848         * lib/signbitf.c: Likewise.
96849         * lib/signbitl.c: Likewise.
96850         * lib/sigprocmask.c: Likewise.
96851         * lib/sincosl.c: Likewise.
96852         * lib/sleep.c: Likewise.
96853         * lib/sprintf.c: Likewise.
96854         * lib/sqrtl.c: Likewise.
96855         * lib/stat-time.h: Likewise.
96856         * lib/stdio--.h: Likewise.
96857         * lib/stdio-safer.h: Likewise.
96858         * lib/stdlib--.h: Likewise.
96859         * lib/stdlib-safer.h: Likewise.
96860         * lib/stdlib.in.h: Likewise.
96861         * lib/stpcpy.c: Likewise.
96862         * lib/stpncpy.c: Likewise.
96863         * lib/strchrnul.c: Likewise.
96864         * lib/strcspn.c: Likewise.
96865         * lib/strerror.c: Likewise.
96866         * lib/strftime.c: Likewise.
96867         * lib/strftime.h: Likewise.
96868         * lib/striconveh.c: Likewise.
96869         * lib/striconveh.h: Likewise.
96870         * lib/striconveha.c: Likewise.
96871         * lib/striconveha.h: Likewise.
96872         * lib/stripslash.c: Likewise.
96873         * lib/strnlen1.c: Likewise.
96874         * lib/strnlen1.h: Likewise.
96875         * lib/strtod.c: Likewise.
96876         * lib/strtoimax.c: Likewise.
96877         * lib/strtok_r.c: Likewise.
96878         * lib/strtol.c: Likewise.
96879         * lib/strtoll.c: Likewise.
96880         * lib/strtoul.c: Likewise.
96881         * lib/strtoull.c: Likewise.
96882         * lib/sysexits.in.h: Likewise.
96883         * lib/tempname.c: Likewise.
96884         * lib/tempname.h: Likewise.
96885         * lib/timespec.h: Likewise.
96886         * lib/tls.c: Likewise.
96887         * lib/tls.h: Likewise.
96888         * lib/tmpdir.c: Likewise.
96889         * lib/tmpdir.h: Likewise.
96890         * lib/tmpfile-safer.c: Likewise.
96891         * lib/tmpfile.c: Likewise.
96892         * lib/trigl.c: Likewise.
96893         * lib/trigl.h: Likewise.
96894         * lib/trim.c: Likewise.
96895         * lib/trim.h: Likewise.
96896         * lib/trunc.c: Likewise.
96897         * lib/truncf.c: Likewise.
96898         * lib/truncl.c: Likewise.
96899         * lib/tsearch.c: Likewise.
96900         * lib/unicodeio.c: Likewise.
96901         * lib/unicodeio.h: Likewise.
96902         * lib/unistd--.h: Likewise.
96903         * lib/unistd-safer.h: Likewise.
96904         * lib/unistdio/ulc-fprintf.c: Likewise.
96905         * lib/unistdio/ulc-vfprintf.c: Likewise.
96906         * lib/unlinkdir.c: Likewise.
96907         * lib/unlinkdir.h: Likewise.
96908         * lib/unlocked-io.h: Likewise.
96909         * lib/unsetenv.c: Likewise.
96910         * lib/userspec.c: Likewise.
96911         * lib/utime.c: Likewise.
96912         * lib/utimecmp.c: Likewise.
96913         * lib/utimecmp.h: Likewise.
96914         * lib/utimens.c: Likewise.
96915         * lib/verify.h: Likewise.
96916         * lib/verror.c: Likewise.
96917         * lib/verror.h: Likewise.
96918         * lib/version-etc-fsf.c: Likewise.
96919         * lib/version-etc.c: Likewise.
96920         * lib/version-etc.h: Likewise.
96921         * lib/vfprintf.c: Likewise.
96922         * lib/vprintf.c: Likewise.
96923         * lib/vsprintf.c: Likewise.
96924         * lib/w32spawn.h: Likewise.
96925         * lib/wait-process.c: Likewise.
96926         * lib/wait-process.h: Likewise.
96927         * lib/wcwidth.c: Likewise.
96928         * lib/write-any-file.c: Likewise.
96929         * lib/xalloc-die.c: Likewise.
96930         * lib/xalloc.h: Likewise.
96931         * lib/xasprintf.c: Likewise.
96932         * lib/xgetcwd.c: Likewise.
96933         * lib/xgetcwd.h: Likewise.
96934         * lib/xgetdomainname.c: Likewise.
96935         * lib/xgetdomainname.h: Likewise.
96936         * lib/xgethostname.c: Likewise.
96937         * lib/xmalloc.c: Likewise.
96938         * lib/xmalloca.c: Likewise.
96939         * lib/xmalloca.h: Likewise.
96940         * lib/xmemcoll.c: Likewise.
96941         * lib/xnanosleep.c: Likewise.
96942         * lib/xreadlink.c: Likewise.
96943         * lib/xreadlink.h: Likewise.
96944         * lib/xsetenv.c: Likewise.
96945         * lib/xsetenv.h: Likewise.
96946         * lib/xstriconv.c: Likewise.
96947         * lib/xstriconv.h: Likewise.
96948         * lib/xstrndup.c: Likewise.
96949         * lib/xstrndup.h: Likewise.
96950         * lib/xstrtod.c: Likewise.
96951         * lib/xstrtod.h: Likewise.
96952         * lib/xstrtol-error.c: Likewise.
96953         * lib/xstrtol.c: Likewise.
96954         * lib/xstrtol.h: Likewise.
96955         * lib/xtime.h: Likewise.
96956         * lib/xvasprintf.c: Likewise.
96957         * lib/xvasprintf.h: Likewise.
96958         * lib/yesno.c: Likewise.
96959         * lib/yesno.h: Likewise.
96960         * posix-modules: Likewise.
96961         * tests/test-alloca-opt.c: Likewise.
96962         * tests/test-arcfour.c: Likewise.
96963         * tests/test-arctwo.c: Likewise.
96964         * tests/test-argmatch.c: Likewise.
96965         * tests/test-argp-2.sh: Likewise.
96966         * tests/test-argp.c: Likewise.
96967         * tests/test-arpa_inet.c: Likewise.
96968         * tests/test-array_list.c: Likewise.
96969         * tests/test-array_oset.c: Likewise.
96970         * tests/test-atexit.c: Likewise.
96971         * tests/test-avltree_list.c: Likewise.
96972         * tests/test-avltree_oset.c: Likewise.
96973         * tests/test-avltreehash_list.c: Likewise.
96974         * tests/test-base64.c: Likewise.
96975         * tests/test-binary-io.c: Likewise.
96976         * tests/test-byteswap.c: Likewise.
96977         * tests/test-c-ctype.c: Likewise.
96978         * tests/test-c-strcasecmp.c: Likewise.
96979         * tests/test-c-strcasestr.c: Likewise.
96980         * tests/test-c-strncasecmp.c: Likewise.
96981         * tests/test-c-strstr.c: Likewise.
96982         * tests/test-canonicalize-lgpl.c: Likewise.
96983         * tests/test-canonicalize.c: Likewise.
96984         * tests/test-carray_list.c: Likewise.
96985         * tests/test-ceilf.c: Likewise.
96986         * tests/test-ceill.c: Likewise.
96987         * tests/test-count-one-bits.c: Likewise.
96988         * tests/test-crc.c: Likewise.
96989         * tests/test-dirname.c: Likewise.
96990         * tests/test-fbufmode.c: Likewise.
96991         * tests/test-fcntl.c: Likewise.
96992         * tests/test-fflush.c: Likewise.
96993         * tests/test-floorf.c: Likewise.
96994         * tests/test-floorl.c: Likewise.
96995         * tests/test-fopen.c: Likewise.
96996         * tests/test-fprintf-posix.c: Likewise.
96997         * tests/test-fprintf-posix.h: Likewise.
96998         * tests/test-fpurge.c: Likewise.
96999         * tests/test-freadable.c: Likewise.
97000         * tests/test-freadahead.c: Likewise.
97001         * tests/test-freading.c: Likewise.
97002         * tests/test-freopen.c: Likewise.
97003         * tests/test-frexp.c: Likewise.
97004         * tests/test-frexpl.c: Likewise.
97005         * tests/test-fseek.c: Likewise.
97006         * tests/test-fseeko.c: Likewise.
97007         * tests/test-fseterr.c: Likewise.
97008         * tests/test-fstrcmp.c: Likewise.
97009         * tests/test-ftell.c: Likewise.
97010         * tests/test-ftello.c: Likewise.
97011         * tests/test-fwritable.c: Likewise.
97012         * tests/test-fwriting.c: Likewise.
97013         * tests/test-getaddrinfo.c: Likewise.
97014         * tests/test-getpass.c: Likewise.
97015         * tests/test-gettimeofday.c: Likewise.
97016         * tests/test-hmac-md5.c: Likewise.
97017         * tests/test-hmac-sha1.c: Likewise.
97018         * tests/test-iconv.c: Likewise.
97019         * tests/test-iconvme.c: Likewise.
97020         * tests/test-inttypes.c: Likewise.
97021         * tests/test-isnan.c: Likewise.
97022         * tests/test-isnanf.c: Likewise.
97023         * tests/test-isnanl-nolibm.c: Likewise.
97024         * tests/test-isnanl.c: Likewise.
97025         * tests/test-isnanl.h: Likewise.
97026         * tests/test-ldexpl.c: Likewise.
97027         * tests/test-linked_list.c: Likewise.
97028         * tests/test-linkedhash_list.c: Likewise.
97029         * tests/test-locale.c: Likewise.
97030         * tests/test-localename.c: Likewise.
97031         * tests/test-lock.c: Likewise.
97032         * tests/test-lseek.c: Likewise.
97033         * tests/test-malloca.c: Likewise.
97034         * tests/test-math.c: Likewise.
97035         * tests/test-mbscasecmp.c: Likewise.
97036         * tests/test-mbscasestr1.c: Likewise.
97037         * tests/test-mbscasestr2.c: Likewise.
97038         * tests/test-mbscasestr3.c: Likewise.
97039         * tests/test-mbscasestr4.c: Likewise.
97040         * tests/test-mbschr.c: Likewise.
97041         * tests/test-mbscspn.c: Likewise.
97042         * tests/test-mbsncasecmp.c: Likewise.
97043         * tests/test-mbspbrk.c: Likewise.
97044         * tests/test-mbspcasecmp.c: Likewise.
97045         * tests/test-mbsrchr.c: Likewise.
97046         * tests/test-mbsspn.c: Likewise.
97047         * tests/test-mbsstr1.c: Likewise.
97048         * tests/test-mbsstr2.c: Likewise.
97049         * tests/test-mbsstr3.c: Likewise.
97050         * tests/test-md5.c: Likewise.
97051         * tests/test-memmem.c: Likewise.
97052         * tests/test-netinet_in.c: Likewise.
97053         * tests/test-open.c: Likewise.
97054         * tests/test-printf-frexp.c: Likewise.
97055         * tests/test-printf-frexpl.c: Likewise.
97056         * tests/test-printf-posix.c: Likewise.
97057         * tests/test-printf-posix.h: Likewise.
97058         * tests/test-rbtree_list.c: Likewise.
97059         * tests/test-rbtree_oset.c: Likewise.
97060         * tests/test-rbtreehash_list.c: Likewise.
97061         * tests/test-read-file.c: Likewise.
97062         * tests/test-rijndael.c: Likewise.
97063         * tests/test-search.c: Likewise.
97064         * tests/test-signbit.c: Likewise.
97065         * tests/test-sleep.c: Likewise.
97066         * tests/test-snprintf-posix.c: Likewise.
97067         * tests/test-snprintf-posix.h: Likewise.
97068         * tests/test-snprintf.c: Likewise.
97069         * tests/test-sprintf-posix.c: Likewise.
97070         * tests/test-sprintf-posix.h: Likewise.
97071         * tests/test-stat-time.c: Likewise.
97072         * tests/test-stdbool.c: Likewise.
97073         * tests/test-stdint.c: Likewise.
97074         * tests/test-stdio.c: Likewise.
97075         * tests/test-stdlib.c: Likewise.
97076         * tests/test-stpncpy.c: Likewise.
97077         * tests/test-strcasestr.c: Likewise.
97078         * tests/test-striconv.c: Likewise.
97079         * tests/test-striconveh.c: Likewise.
97080         * tests/test-striconveha.c: Likewise.
97081         * tests/test-string.c: Likewise.
97082         * tests/test-sys_select.c: Likewise.
97083         * tests/test-sys_socket.c: Likewise.
97084         * tests/test-sys_stat.c: Likewise.
97085         * tests/test-sys_time.c: Likewise.
97086         * tests/test-sysexits.c: Likewise.
97087         * tests/test-time.c: Likewise.
97088         * tests/test-tls.c: Likewise.
97089         * tests/test-trunc.c: Likewise.
97090         * tests/test-truncf.c: Likewise.
97091         * tests/test-truncl.c: Likewise.
97092         * tests/test-unistd.c: Likewise.
97093         * tests/test-vasnprintf-posix.c: Likewise.
97094         * tests/test-vasnprintf-posix2.c: Likewise.
97095         * tests/test-vasnprintf.c: Likewise.
97096         * tests/test-vasprintf-posix.c: Likewise.
97097         * tests/test-vasprintf.c: Likewise.
97098         * tests/test-verify.c: Likewise.
97099         * tests/test-vfprintf-posix.c: Likewise.
97100         * tests/test-vprintf-posix.c: Likewise.
97101         * tests/test-vsnprintf-posix.c: Likewise.
97102         * tests/test-vsnprintf.c: Likewise.
97103         * tests/test-vsprintf-posix.c: Likewise.
97104         * tests/test-wchar.c: Likewise.
97105         * tests/test-wctype.c: Likewise.
97106         * tests/test-wcwidth.c: Likewise.
97107         * tests/test-xstrtol.c: Likewise.
97108         * tests/test-xvasprintf.c: Likewise.
97109         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
97110         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
97111         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
97112         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
97113         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
97114         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
97115         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
97116         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
97117         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
97118         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
97119         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
97120         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
97121         * tests/uniname/test-uninames.c: Likewise.
97122         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
97123         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
97124         * tests/unistdio/test-u16-printf1.h: Likewise.
97125         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
97126         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
97127         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
97128         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
97129         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
97130         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
97131         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
97132         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
97133         * tests/unistdio/test-u32-printf1.h: Likewise.
97134         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
97135         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
97136         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
97137         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
97138         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
97139         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
97140         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
97141         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
97142         * tests/unistdio/test-u8-printf1.h: Likewise.
97143         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
97144         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
97145         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
97146         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
97147         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
97148         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
97149         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
97150         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
97151         * tests/unistdio/test-ulc-printf1.h: Likewise.
97152         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
97153         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
97154         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
97155         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
97156         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
97157         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
97158         * tests/uniwidth/test-u16-strwidth.c: Likewise.
97159         * tests/uniwidth/test-u16-width.c: Likewise.
97160         * tests/uniwidth/test-u32-strwidth.c: Likewise.
97161         * tests/uniwidth/test-u32-width.c: Likewise.
97162         * tests/uniwidth/test-u8-strwidth.c: Likewise.
97163         * tests/uniwidth/test-u8-width.c: Likewise.
97164         * tests/uniwidth/test-uc_width.c: Likewise.
97165         * config/srclist-update: Likewise.
97166         (fixlicense): Update to GPLv3+.
97168         Change copyright notice from LGPLv2.1+ to LGPLv3+.
97169         * tests/test-tsearch.c: Change copyright notice.
97171         Change copyright notice from LGPLv2.0+ to LGPLv3+.
97172         * lib/c-strcaseeq.h: Change copyright notice.
97173         * lib/streq.h: Likewise.
97174         * lib/uniconv.h: Likewise.
97175         * lib/uniconv/u-conv-from-enc.h: Likewise.
97176         * lib/uniconv/u-conv-to-enc.h: Likewise.
97177         * lib/uniconv/u-strconv-from-enc.h: Likewise.
97178         * lib/uniconv/u-strconv-to-enc.h: Likewise.
97179         * lib/uniconv/u16-conv-from-enc.c: Likewise.
97180         * lib/uniconv/u16-conv-to-enc.c: Likewise.
97181         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
97182         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
97183         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
97184         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
97185         * lib/uniconv/u32-conv-from-enc.c: Likewise.
97186         * lib/uniconv/u32-conv-to-enc.c: Likewise.
97187         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
97188         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
97189         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
97190         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
97191         * lib/uniconv/u8-conv-from-enc.c: Likewise.
97192         * lib/uniconv/u8-conv-to-enc.c: Likewise.
97193         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
97194         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
97195         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
97196         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
97197         * lib/uniname.h: Likewise.
97198         * lib/uniname/uniname.c: Likewise.
97199         * lib/unistdio.h: Likewise.
97200         * lib/unistdio/u-asnprintf.h: Likewise.
97201         * lib/unistdio/u-asprintf.h: Likewise.
97202         * lib/unistdio/u-printf-args.c: Likewise.
97203         * lib/unistdio/u-printf-args.h: Likewise.
97204         * lib/unistdio/u-printf-parse.h: Likewise.
97205         * lib/unistdio/u-snprintf.h: Likewise.
97206         * lib/unistdio/u-sprintf.h: Likewise.
97207         * lib/unistdio/u-vasprintf.h: Likewise.
97208         * lib/unistdio/u-vsnprintf.h: Likewise.
97209         * lib/unistdio/u-vsprintf.h: Likewise.
97210         * lib/unistdio/u16-asnprintf.c: Likewise.
97211         * lib/unistdio/u16-asprintf.c: Likewise.
97212         * lib/unistdio/u16-printf-parse.c: Likewise.
97213         * lib/unistdio/u16-snprintf.c: Likewise.
97214         * lib/unistdio/u16-sprintf.c: Likewise.
97215         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
97216         * lib/unistdio/u16-u16-asprintf.c: Likewise.
97217         * lib/unistdio/u16-u16-snprintf.c: Likewise.
97218         * lib/unistdio/u16-u16-sprintf.c: Likewise.
97219         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
97220         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
97221         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
97222         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
97223         * lib/unistdio/u16-vasnprintf.c: Likewise.
97224         * lib/unistdio/u16-vasprintf.c: Likewise.
97225         * lib/unistdio/u16-vsnprintf.c: Likewise.
97226         * lib/unistdio/u16-vsprintf.c: Likewise.
97227         * lib/unistdio/u32-asnprintf.c: Likewise.
97228         * lib/unistdio/u32-asprintf.c: Likewise.
97229         * lib/unistdio/u32-printf-parse.c: Likewise.
97230         * lib/unistdio/u32-snprintf.c: Likewise.
97231         * lib/unistdio/u32-sprintf.c: Likewise.
97232         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
97233         * lib/unistdio/u32-u32-asprintf.c: Likewise.
97234         * lib/unistdio/u32-u32-snprintf.c: Likewise.
97235         * lib/unistdio/u32-u32-sprintf.c: Likewise.
97236         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
97237         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
97238         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
97239         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
97240         * lib/unistdio/u32-vasnprintf.c: Likewise.
97241         * lib/unistdio/u32-vasprintf.c: Likewise.
97242         * lib/unistdio/u32-vsnprintf.c: Likewise.
97243         * lib/unistdio/u32-vsprintf.c: Likewise.
97244         * lib/unistdio/u8-asnprintf.c: Likewise.
97245         * lib/unistdio/u8-asprintf.c: Likewise.
97246         * lib/unistdio/u8-printf-parse.c: Likewise.
97247         * lib/unistdio/u8-snprintf.c: Likewise.
97248         * lib/unistdio/u8-sprintf.c: Likewise.
97249         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
97250         * lib/unistdio/u8-u8-asprintf.c: Likewise.
97251         * lib/unistdio/u8-u8-snprintf.c: Likewise.
97252         * lib/unistdio/u8-u8-sprintf.c: Likewise.
97253         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
97254         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
97255         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
97256         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
97257         * lib/unistdio/u8-vasnprintf.c: Likewise.
97258         * lib/unistdio/u8-vasprintf.c: Likewise.
97259         * lib/unistdio/u8-vsnprintf.c: Likewise.
97260         * lib/unistdio/u8-vsprintf.c: Likewise.
97261         * lib/unistdio/ulc-asnprintf.c: Likewise.
97262         * lib/unistdio/ulc-asprintf.c: Likewise.
97263         * lib/unistdio/ulc-printf-parse.c: Likewise.
97264         * lib/unistdio/ulc-snprintf.c: Likewise.
97265         * lib/unistdio/ulc-sprintf.c: Likewise.
97266         * lib/unistdio/ulc-vasnprintf.c: Likewise.
97267         * lib/unistdio/ulc-vasprintf.c: Likewise.
97268         * lib/unistdio/ulc-vsnprintf.c: Likewise.
97269         * lib/unistdio/ulc-vsprintf.c: Likewise.
97270         * lib/unistr.h: Likewise.
97271         * lib/unistr/u-cpy-alloc.h: Likewise.
97272         * lib/unistr/u-cpy.h: Likewise.
97273         * lib/unistr/u-endswith.h: Likewise.
97274         * lib/unistr/u-move.h: Likewise.
97275         * lib/unistr/u-set.h: Likewise.
97276         * lib/unistr/u-startswith.h: Likewise.
97277         * lib/unistr/u-stpcpy.h: Likewise.
97278         * lib/unistr/u-stpncpy.h: Likewise.
97279         * lib/unistr/u-strcat.h: Likewise.
97280         * lib/unistr/u-strcpy.h: Likewise.
97281         * lib/unistr/u-strcspn.h: Likewise.
97282         * lib/unistr/u-strdup.h: Likewise.
97283         * lib/unistr/u-strlen.h: Likewise.
97284         * lib/unistr/u-strncat.h: Likewise.
97285         * lib/unistr/u-strncpy.h: Likewise.
97286         * lib/unistr/u-strnlen.h: Likewise.
97287         * lib/unistr/u-strpbrk.h: Likewise.
97288         * lib/unistr/u-strspn.h: Likewise.
97289         * lib/unistr/u-strstr.h: Likewise.
97290         * lib/unistr/u-strtok.h: Likewise.
97291         * lib/unistr/u16-check.c: Likewise.
97292         * lib/unistr/u16-chr.c: Likewise.
97293         * lib/unistr/u16-cmp.c: Likewise.
97294         * lib/unistr/u16-cpy-alloc.c: Likewise.
97295         * lib/unistr/u16-cpy.c: Likewise.
97296         * lib/unistr/u16-endswith.c: Likewise.
97297         * lib/unistr/u16-mblen.c: Likewise.
97298         * lib/unistr/u16-mbsnlen.c: Likewise.
97299         * lib/unistr/u16-mbtouc-aux.c: Likewise.
97300         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
97301         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
97302         * lib/unistr/u16-mbtouc.c: Likewise.
97303         * lib/unistr/u16-mbtoucr.c: Likewise.
97304         * lib/unistr/u16-move.c: Likewise.
97305         * lib/unistr/u16-next.c: Likewise.
97306         * lib/unistr/u16-prev.c: Likewise.
97307         * lib/unistr/u16-set.c: Likewise.
97308         * lib/unistr/u16-startswith.c: Likewise.
97309         * lib/unistr/u16-stpcpy.c: Likewise.
97310         * lib/unistr/u16-stpncpy.c: Likewise.
97311         * lib/unistr/u16-strcat.c: Likewise.
97312         * lib/unistr/u16-strchr.c: Likewise.
97313         * lib/unistr/u16-strcmp.c: Likewise.
97314         * lib/unistr/u16-strcpy.c: Likewise.
97315         * lib/unistr/u16-strcspn.c: Likewise.
97316         * lib/unistr/u16-strdup.c: Likewise.
97317         * lib/unistr/u16-strlen.c: Likewise.
97318         * lib/unistr/u16-strmblen.c: Likewise.
97319         * lib/unistr/u16-strmbtouc.c: Likewise.
97320         * lib/unistr/u16-strncat.c: Likewise.
97321         * lib/unistr/u16-strncmp.c: Likewise.
97322         * lib/unistr/u16-strncpy.c: Likewise.
97323         * lib/unistr/u16-strnlen.c: Likewise.
97324         * lib/unistr/u16-strpbrk.c: Likewise.
97325         * lib/unistr/u16-strrchr.c: Likewise.
97326         * lib/unistr/u16-strspn.c: Likewise.
97327         * lib/unistr/u16-strstr.c: Likewise.
97328         * lib/unistr/u16-strtok.c: Likewise.
97329         * lib/unistr/u16-to-u32.c: Likewise.
97330         * lib/unistr/u16-to-u8.c: Likewise.
97331         * lib/unistr/u16-uctomb-aux.c: Likewise.
97332         * lib/unistr/u16-uctomb.c: Likewise.
97333         * lib/unistr/u32-check.c: Likewise.
97334         * lib/unistr/u32-chr.c: Likewise.
97335         * lib/unistr/u32-cmp.c: Likewise.
97336         * lib/unistr/u32-cpy-alloc.c: Likewise.
97337         * lib/unistr/u32-cpy.c: Likewise.
97338         * lib/unistr/u32-endswith.c: Likewise.
97339         * lib/unistr/u32-mblen.c: Likewise.
97340         * lib/unistr/u32-mbsnlen.c: Likewise.
97341         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
97342         * lib/unistr/u32-mbtouc.c: Likewise.
97343         * lib/unistr/u32-mbtoucr.c: Likewise.
97344         * lib/unistr/u32-move.c: Likewise.
97345         * lib/unistr/u32-next.c: Likewise.
97346         * lib/unistr/u32-prev.c: Likewise.
97347         * lib/unistr/u32-set.c: Likewise.
97348         * lib/unistr/u32-startswith.c: Likewise.
97349         * lib/unistr/u32-stpcpy.c: Likewise.
97350         * lib/unistr/u32-stpncpy.c: Likewise.
97351         * lib/unistr/u32-strcat.c: Likewise.
97352         * lib/unistr/u32-strchr.c: Likewise.
97353         * lib/unistr/u32-strcmp.c: Likewise.
97354         * lib/unistr/u32-strcpy.c: Likewise.
97355         * lib/unistr/u32-strcspn.c: Likewise.
97356         * lib/unistr/u32-strdup.c: Likewise.
97357         * lib/unistr/u32-strlen.c: Likewise.
97358         * lib/unistr/u32-strmblen.c: Likewise.
97359         * lib/unistr/u32-strmbtouc.c: Likewise.
97360         * lib/unistr/u32-strncat.c: Likewise.
97361         * lib/unistr/u32-strncmp.c: Likewise.
97362         * lib/unistr/u32-strncpy.c: Likewise.
97363         * lib/unistr/u32-strnlen.c: Likewise.
97364         * lib/unistr/u32-strpbrk.c: Likewise.
97365         * lib/unistr/u32-strrchr.c: Likewise.
97366         * lib/unistr/u32-strspn.c: Likewise.
97367         * lib/unistr/u32-strstr.c: Likewise.
97368         * lib/unistr/u32-strtok.c: Likewise.
97369         * lib/unistr/u32-to-u16.c: Likewise.
97370         * lib/unistr/u32-to-u8.c: Likewise.
97371         * lib/unistr/u32-uctomb.c: Likewise.
97372         * lib/unistr/u8-check.c: Likewise.
97373         * lib/unistr/u8-chr.c: Likewise.
97374         * lib/unistr/u8-cmp.c: Likewise.
97375         * lib/unistr/u8-cpy-alloc.c: Likewise.
97376         * lib/unistr/u8-cpy.c: Likewise.
97377         * lib/unistr/u8-endswith.c: Likewise.
97378         * lib/unistr/u8-mblen.c: Likewise.
97379         * lib/unistr/u8-mbsnlen.c: Likewise.
97380         * lib/unistr/u8-mbtouc-aux.c: Likewise.
97381         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
97382         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
97383         * lib/unistr/u8-mbtouc.c: Likewise.
97384         * lib/unistr/u8-mbtoucr.c: Likewise.
97385         * lib/unistr/u8-move.c: Likewise.
97386         * lib/unistr/u8-next.c: Likewise.
97387         * lib/unistr/u8-prev.c: Likewise.
97388         * lib/unistr/u8-set.c: Likewise.
97389         * lib/unistr/u8-startswith.c: Likewise.
97390         * lib/unistr/u8-stpcpy.c: Likewise.
97391         * lib/unistr/u8-stpncpy.c: Likewise.
97392         * lib/unistr/u8-strcat.c: Likewise.
97393         * lib/unistr/u8-strchr.c: Likewise.
97394         * lib/unistr/u8-strcmp.c: Likewise.
97395         * lib/unistr/u8-strcpy.c: Likewise.
97396         * lib/unistr/u8-strcspn.c: Likewise.
97397         * lib/unistr/u8-strdup.c: Likewise.
97398         * lib/unistr/u8-strlen.c: Likewise.
97399         * lib/unistr/u8-strmblen.c: Likewise.
97400         * lib/unistr/u8-strmbtouc.c: Likewise.
97401         * lib/unistr/u8-strncat.c: Likewise.
97402         * lib/unistr/u8-strncmp.c: Likewise.
97403         * lib/unistr/u8-strncpy.c: Likewise.
97404         * lib/unistr/u8-strnlen.c: Likewise.
97405         * lib/unistr/u8-strpbrk.c: Likewise.
97406         * lib/unistr/u8-strrchr.c: Likewise.
97407         * lib/unistr/u8-strspn.c: Likewise.
97408         * lib/unistr/u8-strstr.c: Likewise.
97409         * lib/unistr/u8-strtok.c: Likewise.
97410         * lib/unistr/u8-to-u16.c: Likewise.
97411         * lib/unistr/u8-to-u32.c: Likewise.
97412         * lib/unistr/u8-uctomb-aux.c: Likewise.
97413         * lib/unistr/u8-uctomb.c: Likewise.
97414         * lib/unitypes.h: Likewise.
97415         * lib/uniwidth.h: Likewise.
97416         * lib/uniwidth/cjk.h: Likewise.
97417         * lib/uniwidth/u16-strwidth.c: Likewise.
97418         * lib/uniwidth/u16-width.c: Likewise.
97419         * lib/uniwidth/u32-strwidth.c: Likewise.
97420         * lib/uniwidth/u32-width.c: Likewise.
97421         * lib/uniwidth/u8-strwidth.c: Likewise.
97422         * lib/uniwidth/u8-width.c: Likewise.
97423         * lib/uniwidth/width.c: Likewise.
97425 2007-10-07  Bruno Haible  <bruno@clisp.org>
97427         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
97428         The file is still under LGPL (see modules/inttypes).
97430 2007-10-06  Bruno Haible  <bruno@clisp.org>
97432         * modules/trunc (Dependencies): Add 'extensions'.
97433         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
97434         Reported by Ben Pfaff <blp@gnu.org>.
97436 2007-10-06  Bruno Haible  <bruno@clisp.org>
97438         * modules/freopen-tests: New file.
97439         * tests/test-freopen.c: New file.
97441         * modules/fopen-tests: New file.
97442         * tests/test-fopen.c: New file.
97444         * modules/fopen: New file.
97445         * lib/fopen.c: New file.
97446         * m4/fopen.m4: New file.
97447         * modules/freopen: New file.
97448         * lib/freopen.c: New file.
97449         * m4/freopen.m4: New file.
97450         * lib/stdio.in.h (fopen, freopen): New declarations.
97451         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
97452         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
97453         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
97454         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
97455         * doc/functions/fopen.texi: Mention the 'fopen' module.
97456         * doc/functions/freopen.texi: Mention the 'freopen' module.
97458 2007-10-06  Bruno Haible  <bruno@clisp.org>
97460         * modules/open-tests: New file.
97461         * tests/test-open.c: New file.
97463         * modules/open: New file.
97464         * lib/open.c: New file.
97465         * m4/open.m4: New file.
97466         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
97467         lib/open.c does.
97468         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
97469         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
97470         macros.
97471         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
97472         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
97473         REPLACE_OPEN.
97474         * doc/functions/open.texi: Mention the 'open' module.
97476 2007-10-04  Bruno Haible  <bruno@clisp.org>
97478         * modules/ceill-tests: New file.
97479         * tests/test-ceill.c: New file.
97481         * modules/ceill: New file.
97482         * lib/ceill.c: Replace entire file.
97483         * m4/ceill.m4: New file.
97484         * lib/math.in.h (ceill): Replace declaration.
97485         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
97486         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
97487         * doc/functions/ceill.texi: Mention the 'ceill' module.
97488         * modules/mathl (Files): Remove lib/ceill.c.
97489         (Depends-on): Add ceill.
97491 2007-10-04  Bruno Haible  <bruno@clisp.org>
97493         * modules/ceilf-tests: New file.
97494         * tests/test-ceilf.c: New file.
97496         * modules/ceilf: New file.
97497         * lib/ceil.c: New file.
97498         * lib/ceilf.c: New file.
97499         * m4/ceilf.m4: New file.
97500         * lib/math.in.h (ceilf): New declaration.
97501         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
97502         HAVE_DECL_CEILF.
97503         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
97504         HAVE_DECL_CEILF.
97505         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
97507 2007-10-04  Bruno Haible  <bruno@clisp.org>
97509         * modules/floorl-tests: New file.
97510         * tests/test-floorl.c: New file.
97512         * modules/floorl: New file.
97513         * lib/floorl.c: Replace entire file.
97514         * m4/floorl.m4: New file.
97515         * lib/math.in.h (floorl): Replace declaration.
97516         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
97517         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
97518         * doc/functions/floorl.texi: Mention the 'floorl' module.
97519         * modules/mathl (Files): Remove lib/floorl.c.
97520         (Depends-on): Add floorl.
97522 2007-10-04  Bruno Haible  <bruno@clisp.org>
97524         * modules/floorf-tests: New file.
97525         * tests/test-floorf.c: New file.
97527         * modules/floorf: New file.
97528         * lib/floor.c: New file.
97529         * lib/floorf.c: New file.
97530         * m4/floorf.m4: New file.
97531         * lib/math.in.h (floorf): New declaration.
97532         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
97533         HAVE_DECL_FLOORF.
97534         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
97535         HAVE_DECL_FLOORF.
97536         * doc/functions/floorf.texi: Mention the 'floorf' module.
97538 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
97539             Bruno Haible  <bruno@clisp.org>
97541         Advertise for the Git server instead of the CVS server.
97542         * doc/gnulib-intro.texi (Steady Development): Mention the Git
97543         repository instead of the CVS one.
97544         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
97545         about all VCS systems generically.
97546         * doc/gnulib.texi (Introduction): Capitalize `Git'.
97548 2007-10-04  Bruno Haible  <bruno@clisp.org>
97550         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
97551         means.
97552         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
97554 2007-10-04  Bruno Haible  <bruno@clisp.org>
97556         * modules/truncl-tests: New file.
97557         * tests/test-truncl.c: New file.
97559         * modules/truncl: New file.
97560         * lib/truncl.c: New file.
97561         * m4/truncl.m4: New file.
97562         * lib/math.in.h (truncl): New declaration.
97563         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
97564         HAVE_DECL_TRUNCL.
97565         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
97566         HAVE_DECL_TRUNCL.
97567         * doc/functions/truncl.texi: Mention the 'truncl' module.
97569 2007-10-04  Bruno Haible  <bruno@clisp.org>
97571         * modules/truncf-tests: New file.
97572         * tests/test-truncf.c: New file.
97574         * modules/truncf: New file.
97575         * lib/trunc.c: Make paramerizable through USE_* macros.
97576         * lib/truncf.c: New file.
97577         * m4/truncf.m4: New file.
97578         * lib/math.in.h (truncf): New declaration.
97579         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
97580         HAVE_DECL_TRUNCF.
97581         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
97582         HAVE_DECL_TRUNCF.
97583         * doc/functions/truncf.texi: Mention the 'truncf' module.
97585 2007-10-03  Bruno Haible  <bruno@clisp.org>
97587         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
97588         augmentation also for tests modules.
97589         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
97590         * modules/atexit-tests (Makefile.am): Likewise.
97591         * modules/binary-io-tests (Makefile.am): Likewise.
97592         * modules/c-strcase-tests (Makefile.am): Likewise.
97593         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
97594         * modules/canonicalize-tests (Makefile.am): Likewise.
97595         * modules/closein-tests (Makefile.am): Likewise.
97596         * modules/fprintf-posix-tests (Makefile.am): Likewise.
97597         * modules/freadahead-tests (Makefile.am): Likewise.
97598         * modules/fseek-tests (Makefile.am): Likewise.
97599         * modules/fseeko-tests (Makefile.am): Likewise.
97600         * modules/ftell-tests (Makefile.am): Likewise.
97601         * modules/ftello-tests (Makefile.am): Likewise.
97602         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
97603         * modules/isnanl-tests (Makefile.am): Likewise.
97604         * modules/lseek-tests (Makefile.am): Likewise.
97605         * modules/mbscasecmp-tests (Makefile.am): Likewise.
97606         * modules/mbscasestr-tests (Makefile.am): Likewise.
97607         * modules/mbschr-tests (Makefile.am): Likewise.
97608         * modules/mbscspn-tests (Makefile.am): Likewise.
97609         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
97610         * modules/mbspbrk-tests (Makefile.am): Likewise.
97611         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
97612         * modules/mbsrchr-tests (Makefile.am): Likewise.
97613         * modules/mbsspn-tests (Makefile.am): Likewise.
97614         * modules/mbsstr-tests (Makefile.am): Likewise.
97615         * modules/printf-posix-tests (Makefile.am): Likewise.
97616         * modules/snprintf-posix-tests (Makefile.am): Likewise.
97617         * modules/sprintf-posix-tests (Makefile.am): Likewise.
97618         * modules/tsearch-tests (Makefile.am): Likewise.
97619         * modules/uniname/uniname-tests (Makefile.am): Likewise.
97620         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
97621         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
97622         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
97623         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
97624         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
97625         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
97626         * modules/vprintf-posix-tests (Makefile.am): Likewise.
97627         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
97628         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
97629         * modules/xstrtoimax-tests (Makefile.am): Likewise.
97630         * modules/xstrtol-tests (Makefile.am): Likewise.
97631         * modules/xstrtoumax-tests (Makefile.am): Likewise.
97632         * modules/yesno-tests (Makefile.am): Likewise.
97634 2007-10-03  Bruno Haible  <bruno@clisp.org>
97636         * modules/trunc-tests: New file.
97637         * tests/test-trunc.c: New file.
97639         * modules/trunc: New file.
97640         * lib/trunc.c: New file.
97641         * m4/trunc.m4: New file.
97642         * lib/math.in.h (trunc): New declaration.
97643         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
97644         HAVE_DECL_TRUNC.
97645         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
97646         HAVE_DECL_TRUNC.
97647         * doc/functions/trunc.texi: Mention the 'trunc' module.
97649 2007-10-03  Bruno Haible  <bruno@clisp.org>
97651         * tests/test-fpending.c: New file, mostly copied
97652         from coreutils/lib/t-fpending.c.
97653         * modules/fpending-tests: New file.
97655 2007-10-03  Bruno Haible  <bruno@clisp.org>
97657         Port the stdio extensions to QNX (untested).
97658         * lib/fseterr.c (fseterr): Add support for QNX.
97659         * lib/fbufmode.c (fbufmode): Likewise.
97660         * lib/freadable.c (freadable): Likewise.
97661         * lib/fwritable.c (fwritable): Likewise.
97662         * lib/freading.c (freading): Likewise.
97663         * lib/fwriting.c (fwriting): Likewise.
97664         * lib/freadahead.c (freadahed): Likewise.
97665         * lib/fpurge.c (fpurge): Likewise.
97666         * lib/fseeko.c (rpl_fseeko): Likewise.
97668 2007-10-03  Bruno Haible  <bruno@clisp.org>
97669             Jim Meyering  <jim@meyering.net>
97670             Eric Blake  <ebb9@byu.net>
97672         * doc/relocatable.texi: Use @command instead of @program.
97674 2007-10-02  Jim Meyering  <jim@meyering.net>
97676         Perform one more "_.h" -> ".in.h" substitution.
97677         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
97678         instead of unistd_.h here, too.
97680 2007-10-01  Bruno Haible  <bruno@clisp.org>
97682         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
97683         Needed for the alloca-opt module.
97685 2007-09-30  Bruno Haible  <bruno@clisp.org>
97687         * lib/alloca.in.h: Renamed from lib/alloca_.h.
97688         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
97689         alloca_.h.
97690         * lib/argz.in.h: Renamed from lib/argz_.h.
97691         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
97692         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
97693         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
97694         byteswap_.h.
97695         * lib/dirent.in.h: Renamed from lib/dirent_.h.
97696         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
97697         dirent_.h.
97698         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
97699         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
97700         fcntl_.h.
97701         * lib/float.in.h: Renamed from lib/float_.h.
97702         * modules/float (Files, Makefile.am): Use float.in.h instead of
97703         float_.h.
97704         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
97705         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
97706         fnmatch_.h.
97707         * lib/getopt.in.h: Renamed from lib/getopt_.h.
97708         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
97709         getopt_.h.
97710         * lib/glob.in.h: Renamed from lib/glob_.h.
97711         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
97712         * lib/iconv.in.h: Renamed from lib/iconv_.h.
97713         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
97714         iconv_.h.
97715         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
97716         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
97717         inttypes_.h.
97718         * lib/locale.in.h: Renamed from lib/locale_.h.
97719         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
97720         locale_.h.
97721         * lib/math.in.h: Renamed from lib/math_.h.
97722         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
97723         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
97724         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
97725         of netinet_in_.h. Add dependency.
97726         * lib/poll.in.h: Renamed from lib/poll_.h.
97727         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
97728         * lib/search.in.h: Renamed from lib/search_.h.
97729         * modules/search (Files, Makefile.am): Use search.in.h instead of
97730         search_.h.
97731         * lib/signal.in.h: Renamed from lib/signal_.h.
97732         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
97733         _signal.h.
97734         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
97735         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
97736         stdbool_.h.
97737         * lib/stdint.in.h: Renamed from lib/stdint_.h.
97738         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
97739         stdint_.h.
97740         * lib/stdio.in.h: Renamed from lib/stdio_.h.
97741         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
97742         stdio_.h.
97743         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
97744         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
97745         stdlib_.h.
97746         * lib/string.in.h: Renamed from lib/string_.h.
97747         * modules/string (Files, Makefile.am): Use string.in.h instead of
97748         string_.h.
97749         * doc/gnulib-tool.texi (Initial import): Update.
97750         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
97751         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
97752         of sys_select_.h. Add dependency.
97753         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
97754         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
97755         of sys_socket_.h.
97756         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
97757         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
97758         sys_stat_.h.
97759         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
97760         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
97761         sys_time_.h.
97762         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
97763         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
97764         sysexits_.h.
97765         * lib/time.in.h: Renamed from lib/time_.h.
97766         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
97767         * lib/unistd.in.h: Renamed from lib/unistd_.h.
97768         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
97769         unistd_.h.
97770         * lib/wchar.in.h: Renamed from lib/wchar_.h.
97771         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
97772         wchar_.h.
97773         * lib/wctype.in.h: Renamed from lib/wctype_.h.
97774         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
97775         wctype_.h.
97776         * build-aux/bootstrap (slurp): Update.
97777         * lib/.cppi-disable: Update.
97779 2007-09-30  Bruno Haible  <bruno@clisp.org>
97781         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
97782         Needed on BeOS.
97784 2007-09-30  Bruno Haible  <bruno@clisp.org>
97786         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
97788 2007-09-29  Bruno Haible  <bruno@clisp.org>
97790         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
97792 2007-09-29  Bruno Haible  <bruno@clisp.org>
97794         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
97795         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
97796         * build-aux/install-reloc: Compile also areadlink.c.
97797         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
97799 2007-09-29  Bruno Haible  <bruno@clisp.org>
97801         * gnulib-tool (func_emit_initmacro_done): Indentation.
97803 2007-09-29  Bruno Haible  <bruno@clisp.org>
97805         * README: Add CVS checkout update instructions.
97806         Info from Bob Proulx <bob@proulx.com>.
97808 2007-09-28  Eric Blake  <ebb9@byu.net>
97810         Provide move-if-change.
97811         * build-aux/move-if-change: New file, based on best practice
97812         rather than any canonical upstream location.
97814 2007-09-28  Jim Meyering  <jim@meyering.net>
97816         Fix canonicalize loop-detection corner case.
97817         Do not attempt to stat the symlink values stored via seen_triple.
97818         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
97819         on linux-2.6.18, (but not 2.6.22).
97820         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
97821         triple_compare.  The former compares dev,ino,filename, while the latter
97822         would actually stat dirname(filename) when dev and ino were equal.
97823         * lib/hash-triple.c: Install <string.h>.
97824         (STREQ): Define.
97825         (triple_compare_ino_str): New function.
97826         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
97828 2007-09-28  Eric Blake  <ebb9@byu.net>
97830         Enforce that AC_REPLACE_FUNCS files exist.
97831         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
97832         override check for typos.
97834         Fix test-closein on Solaris 10.
97835         * tests/test-closein.c (main): Don't assume stdin can be inherited
97836         closed on all systems.
97837         * tests/test-closein.sh: Likewise.
97838         Reported by Piotr Tarnowski.
97840 2007-09-28  Jim Meyering  <jim@meyering.net>
97842         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
97844 2007-09-27  Jim Meyering  <jim@meyering.net>
97846         canonicalize: Avoid a false-positive cycle failure.
97847         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
97848         Sort.  Remove cycle-check.
97849         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
97850         not cycle-check.h.
97851         (seen_triple): New function.
97852         (canonicalize_filename_mode): Use it instead of cycle-check.
97853         * tests/test-canonicalize.c: Add a test for this bug.
97854         * tests/test-canonicalize.sh: Set up and run the test.
97856         New module, file-set, from coreutils.
97857         * modules/file-set: Define it.
97858         * lib/file-set.c, lib/file-set.h: Implement.
97860         New module, hash-triple, from coreutils.
97861         * modules/hash-triple: Define it.
97862         * lib/hash-triple.c, lib/hash-triple.h: Implement.
97864 2007-09-25  Eric Blake  <ebb9@byu.net>
97866         Fix strerror on Interix.
97867         * lib/string_.h (strerror): Declare replacement.
97868         * doc/functions/strerror.texi (strerror): Document the Interix
97869         shortcoming.
97870         * modules/string (Makefile.am): Support new hooks.
97871         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
97872         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
97873         gl_FUNC_STRERROR_SEPARATE.
97874         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
97875         * lib/strerror.c (rpl_strerror): Provide replacement.
97876         * modules/strerror (Depends-on): Add string.
97877         (configure.ac): Detect use of module.
97878         * tests/test-strerror.c: New file.
97879         * modules/strerror-tests: New test module.
97880         * modules/argp (Depends-on): Add strerror.
97881         * modules/error (Depends-on): Likewise.
97882         Reported by Martin Koeppe.
97884 2007-09-24  Bruno Haible  <bruno@clisp.org>
97886         * README: Update git instructions.
97888 2007-09-24  Eric Blake  <ebb9@byu.net>
97890         Revert fpending breakage from 2007-09-08.
97891         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
97892         __fpending.c.
97894 2007-09-24  Jim Meyering  <jim@meyering.net>
97896         filenamecat.c: Add a test.
97897         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
97898         showing how the function works when DIR is the empty string.
97900 2007-09-21  Simon Josefsson  <simon@josefsson.org>
97902         * tests/test-canonicalize.sh: Turn on executable bit.
97904 2007-09-19  Eric Blake  <ebb9@byu.net>
97906         * README: Update CVS instructions.
97908 2007-09-18  Bruno Haible  <bruno@clisp.org>
97910         * modules/areadlink: New file.
97911         * lib/areadlink.h (areadlink): New declaration.
97912         * lib/areadlink.c: New file, based on lib/xreadlink.c.
97914 2007-09-17  Jim Meyering  <jim@meyering.net>
97916         * lib/savewd.c (ESTALE) [!defined]: Define.
97917         Reported to be required on Interix by Martin Koeppe.
97919 2007-09-17  Bruno Haible  <bruno@clisp.org>
97921         * gnulib-tool (func_version): Use $version.
97923 2007-09-16  Bruno Haible  <bruno@clisp.org>
97925         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
97926         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
97927         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
97928         Reported by Greg Schafer <gschafer@zip.com.au>.
97930 2007-09-15  Bruno Haible  <bruno@clisp.org>
97932         * gnulib-tool (sed): Try a little harder to make bash understand the
97933         alias.
97934         Reported by Bruce Korb <bruce.korb@gmail.com>.
97936 2007-09-13  Eric Blake  <ebb9@byu.net>
97938         * ChangeLog: Remove conflict markers.
97940 2007-09-13  Simon Josefsson  <simon@josefsson.org>
97942         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
97943         Reported by Bruno Haible <bruno@clisp.org>.
97945 2007-09-12  Bruno Haible  <bruno@clisp.org>
97947         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
97948         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
97949         is not defined.
97951 2007-09-12  Eric Blake  <ebb9@byu.net>
97953         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
97954         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
97955         Autoconf definition.
97956         * modules/euidaccess (Depends-on): Add extensions, for
97957         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
97958         * modules/fnmatch (Depends-on): Likewise.
97959         * modules/getaddrinfo (Depends-on): Likewise.
97960         * modules/getdelim (Depends-on): Likewise.
97961         * modules/getline (Depends-on): Likewise.
97962         * modules/getsubopt (Depends-on): Likewise.
97963         * modules/gettext (Depends-on): Likewise.
97964         * modules/group-member (Depends-on): Likewise.
97965         * modules/mbchar (Depends-on): Likewise.
97966         * modules/memmem (Depends-on): Likewise.
97967         * modules/mempcpy (Depends-on): Likewise.
97968         * modules/memrchr (Depends-on): Likewise.
97969         * modules/pagealign_alloc (Depends-on): Likewise.
97970         * modules/readutmp (Depends-on): Likewise.
97971         * modules/stpcpy (Depends-on): Likewise.
97972         * modules/stpncpy (Depends-on): Likewise.
97973         * modules/strchrnul (Depends-on): Likewise.
97974         * modules/strndup (Depends-on): Likewise.
97975         * modules/strsep (Depends-on): Likewise.
97976         * modules/strverscmp (Depends-on): Likewise.
97977         * modules/vasprintf (Depends-on): Likewise.
97978         * modules/wcwidth (Depends-on): Likewise.
97979         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
97980         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
97981         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
97982         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
97983         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
97984         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
97985         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
97986         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
97987         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
97988         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
97989         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
97990         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
97991         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
97992         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
97993         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
97994         * m4/readutmp.m4 (gl_READUTMP): Likewise.
97995         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
97996         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
97997         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
97998         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
97999         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
98000         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
98001         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
98002         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
98003         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
98004         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
98005         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
98006         so that lock.m4 can be used in gettext without extensions module.
98008 2007-09-11  Bruno Haible  <bruno@clisp.org>
98010         * m4/isc-posix.m4: Remove file.
98011         Suggested by Eric Blake.
98013 2007-09-11  Eric Blake  <ebb9@byu.net>
98015         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
98017 2007-09-10  Bruno Haible  <bruno@clisp.org>
98019         * posix-modules: Fix typo in error message.
98020         Reported by Matt <mkraai@beckman.com>.
98022 2007-09-09  Bruno Haible  <bruno@clisp.org>
98024         * doc/functions/getdelim.texi: Update list of platforms lacking the
98025         function.
98026         * doc/functions/getline.texi: Likewise.
98028 2007-09-09  Jim Meyering  <jim@meyering.net>
98030         * lib/hash.c (hash_initialize): Detect calloc failure.
98031         Reported by Bruno Haible.
98033 2007-09-09  Bruno Haible  <bruno@clisp.org>
98035         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
98036         malloc or realloc fails.
98038 2007-09-09  Bruno Haible  <bruno@clisp.org>
98040         * modules/getcwd (Depends-on): Add malloc-posix.
98041         * modules/glob (Depends-on): Likewise.
98042         * modules/putenv (Depends-on): Likewise.
98043         * modules/strdup (Depends-on): Likewise.
98044         * modules/getdelim (Depends-on): Add realloc-posix.
98045         * modules/read-file (Depends-on): Likewise.
98047 2007-09-09  Bruno Haible  <bruno@clisp.org>
98049         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
98050         (gl_FUNC_MALLOC_POSIX): Require it.
98051         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
98052         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
98053         * modules/realloc (Files): Add m4/malloc.m4.
98054         * modules/calloc (Files): Likewise.
98056 2007-09-09  Bruno Haible  <bruno@clisp.org>
98058         * modules/malloc-posix: New file.
98059         * modules/malloc (Depends-on): Add malloc-posix.
98060         * lib/malloc.c: Include errno.h.
98061         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
98062         and a POSIX-compatible malloc into a single function. Set ENOMEM
98063         when returning NULL.
98064         * m4/malloc.m4: New file.
98065         * doc/functions/malloc.texi: Mention the malloc-posix module.
98066         * lib/stdlib_.h (malloc): New declaration.
98067         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
98068         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
98069         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
98070         and HAVE_MALLOC_POSIX.
98072 2007-09-09  Bruno Haible  <bruno@clisp.org>
98074         * modules/realloc-posix: New file.
98075         * modules/realloc (Depends-on): Add realloc-posix.
98076         * lib/realloc.c: Include errno.h.
98077         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
98078         and a POSIX-compatible realloc into a single function. Set ENOMEM
98079         when returning NULL.
98080         * m4/realloc.m4: New file.
98081         * doc/functions/realloc.texi: Mention the realloc-posix module.
98082         * lib/stdlib_.h (realloc): New declaration.
98083         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
98084         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
98085         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
98086         and HAVE_REALLOC_POSIX.
98088 2007-09-09  Bruno Haible  <bruno@clisp.org>
98090         * modules/calloc-posix: New file.
98091         * modules/calloc (Depends-on): Add calloc-posix.
98092         * lib/calloc.c: Include errno.h.
98093         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
98094         and a POSIX-compatible calloc into a single function. Set ENOMEM
98095         when returning NULL.
98096         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
98097         * doc/functions/calloc.texi: Mention the calloc-posix module.
98098         * lib/stdlib_.h (calloc): New declaration.
98099         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
98100         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
98101         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
98102         and HAVE_CALLOC_POSIX.
98104 2007-09-09  Bruno Haible  <bruno@clisp.org>
98106         Allow for modules to show an arbitrary notice.
98107         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
98108         * gnulib-tool: New option --extract-notice.
98109         (func_usage): Document it.
98110         (sed_extract_prog): Update.
98111         (func_get_notice): New function.
98112         (func_modules_notice): New function.
98113         (func_import, func_create_testdir): Invoke it.
98114         Suggested by Jim Meyering.
98116 2007-09-09  Bruno Haible  <bruno@clisp.org>
98118         * gnulib-tool: New options --verbose, --quiet.
98119         (func_usage): Document them.
98120         (verbose): New variable.
98121         (func_execute_command): New function.
98122         (func_import): Don't show the module list and the file list if
98123         $verbose < 0.
98124         (func_create_testdir): Likewise. Use func_execute_command.
98125         (func_create_megatestdir): Use func_execute_command.
98127 2007-09-08  Bruno Haible  <bruno@clisp.org>
98129         * gnulib-tool (func_import): Prefer rsync over wget when available,
98130         for fetching the PO files.
98132 2007-09-08  Bruno Haible  <bruno@clisp.org>
98134         * posix-modules: New file. Portions copied from gnulib-tool.
98135         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
98137 2007-09-08  Jim Meyering  <jim@meyering.net>
98139         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
98140         * lib/fpending.h: Rename from __fpending.h.
98141         * lib/fpending.c: Rename from __fpending.c.
98142         Include "fpending.h", not "__fpending.h".
98143         * lib/__fpending.h, lib/__fpending.c: Remove files.
98144         * modules/fpending (Files): Reflect new file names.
98145         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
98147 2007-09-08  Bruno Haible  <bruno@clisp.org>
98149         * m4/inttypes-h.m4: Remove stub file.
98151 2007-09-07  Simon Josefsson  <simon@josefsson.org>
98153         * doc/headers/stdint.texi: Discuss #include_next issue.
98155 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
98157         * build-aux/bootstrap: Remove obsolete comment about wget --help.
98159 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
98161         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
98162         in variable name.
98164 2007-09-03  Jim Meyering  <jim@meyering.net>
98166         New module: git-version-gen.
98167         * modules/git-version-gen: New file.
98169         Import changes from coreutils for bootstrap script.
98171         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
98173         bootstrap: uses rsync to download the .po files
98174         * build-aux/bootstrap (po_download_command_format): New global.
98175         (download_po_files): Use rsync.
98176         (update_po_files): Don't remove .po files after download,
98177         so future rsync runs can take advantage of the copies.
98179         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
98181         Solve the unnecessary-.po-file-regeneration problem once and for all.
98182         * build-aux/bootstrap (download_po_files): New function, renamed from
98183         get_translations.  Now, downloads, but doesn't update LINGUAS.
98184         (update_po_files): New function.
98186         bootstrap: Ignore more.
98187         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
98188         uniwidth to e.g., lib/.gitignore.
98189         (slurp): Handle the sys_stat_.h -> sys mapping, too.
98191         * build-aux/bootstrap: New setting: vc_ignore.
98192         (insert_sorted_if_absent): Create $file if absent.
98193         Adapt to new, possibly empty, list: $vc_ignore.
98195         bootstrap: generate more ignorable names
98196         * build-aux/bootstrap (slurp): When generating ignorable names,
98197         also map .sin to .sed, .gperf to .c, and .y to .c.
98199 2007-09-03  Jim Meyering  <jim@meyering.net>
98201         * build-aux/git-version-gen: New file, from coreutils.  For details, see
98202         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
98204 2007-09-02  Bruno Haible  <bruno@clisp.org>
98206         Fix mis-recognition of 'mcs' on QNX 6.
98207         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
98208         output contains the string "Mono".
98209         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
98210         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
98212 2007-09-01  Bruno Haible  <bruno@clisp.org>
98214         Fix collision between uniwidth/* and linebreak modules.
98215         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
98216         u32_width): Remove declarations.
98217         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
98218         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
98219         streq3, streq2, streq1, streq0): Remove functions.
98220         (STREQ): Remove macro.
98221         (is_cjk_encoding): Remove function.
98222         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
98223         (uc_width, u8_width, u16_width, u32_width): Remove functions.
98224         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
98225         * NEWS: Document the change.
98227 2007-09-01  Bruno Haible  <bruno@clisp.org>
98229         * lib/streq.h: Add double-inclusion guard.
98231 2007-09-01  Karl Berry  <karl@gnu.org>
98233         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
98235 2007-08-28  Jim Meyering  <jim@meyering.net>
98237         Rename mreadlink_with_size to areadlink_with_size.
98238         * NEWS: Document the change.
98239         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
98240         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
98241         * lib/mreadlink.h: Rename this to...
98242         * lib/areadlink.h: ...this.
98243         * modules/mreadlink-with-size: Rename this to...
98244         * modules/areadlink-with-size: ...this.
98245         * lib/canonicalize.c: Reflect the renaming.
98246         * modules/canonicalize: Likewise.
98248 2007-08-26  Bruno Haible  <bruno@clisp.org>
98250         * gnulib-tool (func_import): When deciding which files to remove,
98251         consider also dangling symbolic links.
98252         Reported by Eric Blake.
98254 2007-08-26  Bruno Haible  <bruno@clisp.org>
98256         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
98258 2007-08-23  Simon Josefsson  <simon@josefsson.org>
98260         * lib/readline.c: Don't include getline.h, the prototype is now
98261         found in stdio.h.
98263 2007-08-23  Jim Meyering  <jim@meyering.net>
98265         Getdelim touchup.
98266         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
98267         around the funlockfile call, since funlockfile never sets errno.
98268         Don't set errno upon failed realloc.
98270 2007-08-22  Eric Blake  <ebb9@byu.net>
98272         Getline touchups.
98273         * lib/getdelim.c (getdelim): Revert regression that required *n to
98274         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
98275         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
98276         getdelim, rather than whether implementation is missing.
98277         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
98278         * lib/stdio_.h (getline): Also declare if replacement is
98279         required.
98280         * doc/functions/getdelim.texi: New file.
98281         * doc/functions/getline.texi: Likewise.
98282         * doc/gnulib.texi (Function Substitutes): Add new files.
98283         Reported by Bruno Haible.
98285 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
98287         * users.txt: Add Guile.
98289 2007-08-22  Eric Blake  <ebb9@byu.net>
98291         * tests/test-getdelim.c (main): Use remove, not unlink.
98292         * tests/test-getline.c (main): Likewise.
98294         Move getline and getdelim into stdio.h, per POSIX 200x.
98295         * modules/getline (Files): Remove getline.h.
98296         (Depends-on): Add stdio.
98297         (configure.ac): Add module indicator.
98298         * modules/getdelim (Files): Remove getdelim.h.
98299         (Depends-on): Add stdio.
98300         (configure.ac): Add module indicator.
98301         * modules/stdio (Makefile.am): Work with new indicators.
98302         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
98303         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
98304         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
98305         * lib/getdelim.h: Delete.
98306         * lib/getline.h: Delete.
98307         * lib/stdio_.h (getdelim, getline): Declare.
98308         * modules/getdelim-tests: New module.
98309         * modules/getline-tests: Likewise.
98310         * tests/test-getdelim.c: New file.
98311         * tests/test-getline.c: Likewise.
98312         * NEWS: Document the change.
98313         * lib/getline.c: Update choice of header.
98314         * lib/csharpcomp.c: Likewise.
98315         * lib/getpass.c: Likewise.
98316         * lib/javacomp.c: Likewise.
98317         * lib/javaversion.c: Likewise.
98318         * lib/yesno.c: Likewise.
98319         * lib/getdelim.c: Likewise.
98320         (getdelim): Set errno on failure, and avoid memory leak.
98322 2007-08-19  Bruno Haible  <bruno@clisp.org>
98324         * modules/closein (Depends-on): Add freadahead.
98325         * lib/closein.c: Include freadahead.h.
98326         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
98327         is zero.
98329 2007-08-19  Bruno Haible  <bruno@clisp.org>
98331         * modules/freadahead-tests: New file.
98332         * tests/test-freadahead.sh: New file.
98333         * tests/test-freadahead.c: New file.
98335         * modules/freadahead: New file.
98336         * lib/freadahead.h: New file.
98337         * lib/freadahead.c: New file.
98338         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
98339         fbufmode, fpurge, freadable, fwritable.
98341 2007-08-19  Eric Blake  <ebb9@byu.net>
98343         Test yesno in combination with closein.
98344         * lib/yesno.c (yesno): Document use of stdin.
98345         * modules/yesno-tests (Files): New module.
98346         * tests/test-yesno.c (main): New file.
98347         * tests/test-yesno.sh: Likewise.
98349 2007-08-19  Bruno Haible  <bruno@clisp.org>
98351         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
98352         * lib/fseeko.c (rpl_fseeko): Likewise.
98353         * lib/fseterr.c (fseterr): Likewise.
98355 2007-08-19  Bruno Haible  <bruno@clisp.org>
98357         * tests/test-lseek.c (main): Disable a test for BeOS.
98358         * doc/functions/lseek.texi: Document the BeOS bug.
98360 2007-08-19  Bruno Haible  <bruno@clisp.org>
98361             Eric Blake  <ebb9@byu.net>
98363         * lib/lseek.c: Include <sys/stat.h>.
98364         (rpl_lseek): Add workaround code also for Unix platforms.
98365         Needed for BeOS.
98366         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
98367         * doc/functions/lseek.texi: Document BeOS definiency.
98369 2007-08-18  Bruno Haible  <bruno@clisp.org>
98371         * modules/fstrcmp-tests: New file.
98372         * tests/test-fstrcmp.c: New file.
98374 2007-08-18  Bruno Haible  <bruno@clisp.org>
98376         * modules/fstrcmp: New file, from GNU gettext with modifications.
98377         * lib/fstrcmp.h: New file, from GNU gettext.
98378         * lib/fstrcmp.c: New file, from GNU gettext.
98379         * MODULES.html.sh (String handling): Add fstrcmp.
98381 2007-08-18  Bruno Haible  <bruno@clisp.org>
98383         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
98384         'bool'.
98385         (diag, compareseq): Remove const from the ctxt argument.
98386         (USE_HEURISTIC): Undefine at the end.
98388 2007-08-18  Jim Meyering  <jim@meyering.net>
98390         New file: lib/idcache.h
98391         * NEWS: Mention the addition.
98392         * modules/idcache (Files): Add lib/idcache.h
98393         * lib/idcache.c: Include "idcache.h".
98394         Don't include <sys/types.h>.
98395         Add a FIXME comment.
98396         Move file-scoped "static" declarations to the top.
98397         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
98399 2007-08-17  Bruno Haible  <bruno@clisp.org>
98400         and Paul Eggert  <eggert@cs.ucla.edu>
98402         * MODULES.html.sh: Add diffseq.
98403         * modules/diffseq: New file.
98404         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
98405         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
98407 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
98409         Import changes from coreutils for bootstrap script.
98411         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
98413         * build-aux/bootstrap (slurp): Work even in environments where
98414         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
98415         current code does not slurp files whose names start with ".", and
98416         this looks like it might be a troublesome area.
98418         2007-07-11  Jim Meyering  <jim@meyering.net>
98420         If there's a GPL vN copyright comment, require that N == 3.
98422         2007-07-08  Jim Meyering  <jim@meyering.net>
98424         Run the coreutils-specific code only if tests/Makefile.am.in exists.
98425         * build-aux/bootstrap (mam_template): Move definition out of loop.
98427         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
98429         * build-aux/bootstrap (symlink_to_dir): Rename function from
98430         symlink_to_gnulib.  Add a directory parameter.  Update all
98431         callers.
98432         (cp_mark_as_generated): Also check for -- and link to -- files in
98433         gl/.
98435         2007-07-08  Jim Meyering  <jim@meyering.net>
98437         Adapt to deeper hierarchy in gnulib.
98438         * build-aux/bootstrap (symlink_to_dir): If the destination
98439         directory doesn't exist, create it. This is required at least for
98440         "lib/uniwidth/cjk.h".
98442         2007-05-15  Jim Meyering  <jim@meyering.net>
98444         * build-aux/bootstrap: Now that generated Makefile.am files
98445         are no longer under version control, they must be created at
98446         bootstrap time.
98448 2007-08-14  Ben Pfaff  <blp@gnu.org>
98450         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
98452 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
98454         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
98455         given the changes below.
98456         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
98457         even on hosts that have padding bits beyond the supported 64.
98459 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
98461         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
98462         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
98463         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
98464         depends on it.
98465         (xstrtol_error): Remove.
98466         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
98467         but with a different signature.
98468         (ATTRIBUTE_NORETURN, __attribute__): New macros.
98469         * lib/xstrtol-error.c: Include exitfail.h.
98470         (xstrtol_fatal): New function, with a different signature from the
98471         old xstrtol_error, so that the caller need not worry about passing
98472         in an exit status, or about storage management of the option argument.
98473         (xstrtol_error): Now a static function.  Redo signature to
98474         implement xstrtol_fatal.  Output the correct number of hyphens in
98475         front of the option so that the caller need not worry about
98476         storage management.
98477         (N_): New macro.
98478         (_): Remove; not used now.
98479         * modules/xstrtol: Depend on getopt.
98480         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
98481         of old STRTOL_FATAL_ERROR macro.
98482         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
98483         of test program.
98484         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
98485         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
98487 2007-08-08  Eric Blake  <ebb9@byu.net>
98489         * lib/xstrtol-error.c: Add missing include.
98491         Move xstrtol messages into gnulib domain, when --pobase is used.
98492         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
98493         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
98494         * modules/xstrtol (Files): Distribute new file.
98495         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
98496         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
98497         * tests/test-xstrtol.c: ...into new file.
98498         * tests/test-xstrtoul.c: Also test xstrtoul.
98499         * tests/test-xstrtoimax.c: Also test xstrtoimax.
98500         * tests/test-xstrtoumax.c: Also test xstrtoumax.
98501         * tests/test-xstrtol.sh: Drive the tests.
98502         * tests/test-xstrtoimax.sh: Likewise.
98503         * tests/test-xstrtoumax.sh: Likewise.
98504         * modules/xstrtol-tests: New module.
98505         * modules/xstrtoimax-tests: Likewise.
98506         * modules/xstrtoumax-tests: Likewise.
98508 2007-08-08  Jim Meyering  <jim@meyering.net>
98510         New function: mfile_name_concat.
98511         * lib/filenamecat.c (mfile_name_concat): New function, just like
98512         file_name_concat, but return NULL upon failure rather than exiting
98513         with a diagnostic.
98514         * lib/filenamecat.h: Declare it.
98516 2007-08-07  Bruno Haible  <bruno@clisp.org>
98518         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
98519         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
98520         warning from gcc.
98521         Reported by Eric Blake.
98523 2007-08-07  Simon Josefsson  <simon@josefsson.org>
98525         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
98526         * modules/crypto/arcfour (License): Likewise.
98527         * modules/crypto/des-tests (License): Likewise.
98528         * modules/crypto/gc-arctwo-tests (License): Likewise.
98529         * modules/crypto/gc-des-tests (License): Likewise.
98530         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
98531         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
98532         * modules/crypto/gc-md2-tests (License): Likewise.
98533         * modules/crypto/gc-md4-tests (License): Likewise.
98534         * modules/crypto/gc-md5-tests (License): Likewise.
98535         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
98536         * modules/crypto/gc-rijndael-tests (License): Likewise.
98537         * modules/crypto/gc-sha1-tests (License): Likewise.
98538         * modules/crypto/gc-tests (License): Likewise.
98539         * modules/crypto/hmac-md5 (License): Likewise.
98540         * modules/crypto/hmac-sha1 (License): Likewise.
98541         * modules/crypto/md2-tests (License): Likewise.
98542         * modules/crypto/md4-tests (License): Likewise.
98543         * modules/crypto/md5 (License): Likewise.
98544         * modules/crypto/rijndael (License): Likewise.
98545         * modules/crypto/sha1 (License): Likewise.
98546         * modules/memxor (License): Likewise.
98548 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
98549         and Bruno Haible  <bruno@clisp.org>
98551         * NEWS: Describe interface changes to human, xstrtol.
98552         * lib/human.h: Include <xstrtol.h>.
98553         (human_options): Return enum strtol_error, not int.  Remove
98554         bool arg; take int * instead.
98555         * lib/human.c: Don't include "gettext.h".
98556         (_): Remove; no longer used.
98557         Don't include <xstrtol.h>, since human.h does it.
98558         (human_options): Adjust to abovementioned interface changes.
98559         Do not report error to stderr; that's now the caller's
98560         responsibility.
98561         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
98562         interface change.
98563         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
98564         Str, Argument_type_string.  All uses changed.  Put " argument"
98565         in diagnostics to make them clearer.  Change wording of suffix
98566         message for clarity.
98567         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
98568         Argument_type_string.
98569         (STRTOL_FATAL_WARN): Remove; no longer used.
98570         * modules/human (Depends-on): Remove gettext-h.
98572 2007-08-06  Simon Josefsson  <simon@josefsson.org>
98574         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
98576 2007-07-31  Bruno Haible  <bruno@clisp.org>
98578         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
98579         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
98580         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
98582 2007-07-31  Bruno Haible  <bruno@clisp.org>
98584         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
98585         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
98587 2007-07-30  Bruno Haible  <bruno@clisp.org>
98589         * modules/base64 (License): Use the synonymous term "LGPLv2+".
98590         * modules/c-ctype (License): Likewise.
98591         * modules/c-strcase (License): Likewise.
98592         * modules/check-version (License): Likewise.
98593         * modules/iconv (License): Likewise.
98594         * modules/iconv_open (License): Likewise.
98595         * modules/read-file (License): Likewise.
98596         * modules/striconv (License): Likewise.
98597         * modules/strverscmp (License): Likewise.
98598         * modules/vasprintf (License): Likewise.
98599         * modules/crypto/des (License): Likewise.
98600         * modules/crypto/gc (License): Likewise.
98601         * modules/crypto/gc-arcfour (License): Likewise.
98602         * modules/crypto/gc-arctwo (License): Likewise.
98603         * modules/crypto/gc-des (License): Likewise.
98604         * modules/crypto/gc-hmac-md5 (License): Likewise.
98605         * modules/crypto/gc-hmac-sha1 (License): Likewise.
98606         * modules/crypto/gc-md2 (License): Likewise.
98607         * modules/crypto/gc-md4 (License): Likewise.
98608         * modules/crypto/gc-md5 (License): Likewise.
98609         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
98610         * modules/crypto/gc-random (License): Likewise.
98611         * modules/crypto/gc-rijndael (License): Likewise.
98612         * modules/crypto/gc-sha1 (License): Likewise.
98613         * modules/crypto/md2 (License): Likewise.
98614         * modules/crypto/md4 (License): Likewise.
98616 2007-07-30  Jim Meyering  <jim@meyering.net>
98618         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
98619         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
98620         it has valid stat data.  This bug would cause du not to count the
98621         sizes of inaccessible directories.
98622         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
98623         in <http://bugzilla.redhat.com/250077>.
98625 2007-07-25  Peter O'Gorman  <peter@pogma.com>
98626             Bruno Haible  <bruno@clisp.org>
98628         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
98629         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
98630         #include_next, gives a diagnostic about it, but reports no error in
98631         the exit code.
98632         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
98634 2007-07-24  Ben Pfaff  <blp@gnu.org>
98636         Improve name: "count-one-bits" is better than "popcount".
98637         * MODULES.html.sh: Update name.
98638         * lib/popcount.h: Renamed lib/count-one-bits.h.
98639         (popcount): Renamed count_one_bits.
98640         (popcountl): Renamed count_one_bits_l.
98641         (popcountll): Renamed count_one_bits_ll.
98642         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
98643         * modules/popcount: Renamed module/count-one-bits.
98644         * modules/popcount-tests: Renamed module/count-one-bits-tests.
98645         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
98647 2007-07-23  Ben Pfaff  <blp@gnu.org>
98649         * lib/popcount.h (popcount32): Reduce size of constants, to allow
98650         better code generation, and add U to large constants to avoid
98651         warnings, in non-GCC case.
98652         Suggested by Bruno Haible.
98654 2007-07-23  Ben Pfaff  <blp@gnu.org>
98656         * lib/popcount.h: Use verify_true instead of if...abort.
98657         * modules/popcount: Depend on verify module.
98658         Suggested by Jim Meyering.
98660 2007-07-23  Bruno Haible  <bruno@clisp.org>
98662         * gnulib-tool (func_import): Create a .cvsignore file also when the
98663         directory is not yet in CVS but the toplevel directory is. When
98664         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
98665         Reported by Karl Berry.
98667 2007-07-22  Ben Pfaff  <blp@gnu.org>
98669         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
98670         case.
98671         Suggested by Eric Blake.
98673 2007-07-22  Ben Pfaff  <blp@gnu.org>
98675         New module: popcount.
98676         * MODULES.html.sh: Add popcount.
98677         * modules/popcount: New file.
98678         * modules/popcount-tests: New file.
98679         * tests/test-popcount.c: New file.
98680         * lib/popcount.h: New file.
98681         * m4/popcount.m4: New file.
98683 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
98685         * build-aux/announce-gen: Update to GPLv3.
98687         * build-aux/config.guess: Update from config.
98689 2007-07-21  Bruno Haible  <bruno@clisp.org>
98691         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
98692         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
98694 2007-07-20  Jim Meyering  <jim@meyering.net>
98696         * check-module: Diagnose a self-dependency.
98698 2007-07-19  Bruno Haible  <bruno@clisp.org>
98700         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
98701         empty.
98702         Reported by Eric Blake.
98704 2007-07-18  Bruno Haible  <bruno@clisp.org>
98706         * gnulib-tool: New options --po-base, --po-domain.
98707         (func_usage): Document them.
98708         (pobase, po_domain): New variables.
98709         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
98710         DEFAULT_TEXT_DOMAIN.
98711         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
98712         (func_import): Consider pobase and po_domain. Create a po/ directory.
98713         (func_create_testdir): Set pobase and po_domain to empty.
98714         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
98715         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
98717 2007-07-18  Bruno Haible  <bruno@clisp.org>
98719         * gnulib-tool (func_get_automake_snippet): Synthesize also an
98720         EXTRA_DIST augmentation for files in build-aux/.
98722 2007-07-16  Bruno Haible  <bruno@clisp.org>
98724         * modules/lseek (License): Use the synonymous term "LGPLv2+".
98725         * modules/getdelim (License): Likewise.
98727 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
98729         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
98730         * modules/d-type (License): Likewise.
98731         * modules/extensions (License): Likewise.
98732         * modules/fnmatch (License): Likewise.
98733         * modules/fseeko (License): Likewise.
98734         * modules/getaddrinfo (License): Likewise.
98735         * modules/getline (License): Likewise.
98736         * modules/getlogin_r (License): Likewise.
98737         * modules/getpass (License): Likewise.
98738         * modules/gettimeofday (License): Likewise.
98739         * modules/glob (License): Likewise.
98740         * modules/inet_ntop (License): Likewise.
98741         * modules/malloc (License): Likewise.
98742         * modules/malloca (License): Likewise.
98743         * modules/memmem (License): Likewise.
98744         * modules/mempcpy (License): Likewise.
98745         * modules/memset (License): Likewise.
98746         * modules/minmax (License): Likewise.
98747         * modules/mktime (License): Likewise.
98748         * modules/netinet_in (License): Likewise.
98749         * modules/pathmax (License): Likewise.
98750         * modules/poll (License): Likewise.
98751         * modules/regex (License): Likewise.
98752         * modules/snprintf (License): Likewise.
98753         * modules/stdbool (License): Likewise.
98754         * modules/stdint (License): Likewise.
98755         * modules/stdio (License): Likewise.
98756         * modules/strcase (License): Likewise.
98757         * modules/strcasestr (License): Likewise.
98758         * modules/strdup (License): Likewise.
98759         * modules/string (License): Likewise.
98760         * modules/strndup (License): Likewise.
98761         * modules/strnlen (License): Likewise.
98762         * modules/strpbrk (License): Likewise.
98763         * modules/strptime (License): Likewise.
98764         * modules/strsep (License): Likewise.
98765         * modules/sys_select (License): Likewise.
98766         * modules/sys_socket (License): Likewise.
98767         * modules/sys_stat (License): Likewise.
98768         * modules/sys_time (License): Likewise.
98769         * modules/time (License): Likewise.
98770         * modules/time_r (License): Likewise.
98771         * modules/timegm (License): Likewise.
98772         * modules/unistd (License): Likewise.
98773         * modules/vsnprintf (License): Likewise.
98774         * modules/wctype (License): Likewise.
98776 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
98778         * modules/argz (License): LGPLv2+.
98780 2007-07-15  Karl Berry  <karl@gnu.org>
98782         * doc/gnulib.texi: revise node structure per new fdl.texi.
98784 2007-07-14  Bruno Haible  <bruno@clisp.org>
98786         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
98787         the output file.
98788         * lib/uniname/uninames.h: Regenerated.
98790 2007-07-14  Karl Berry  <karl@gnu.org>
98792         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
98793         omitting sectioning and index commands.
98795 2007-07-13  Bruno Haible  <bruno@clisp.org>
98797         New gnulib-tool option --more-symlinks.
98798         * gnulib-tool (func_usage): Document --more-symlinks.
98799         (do_copyrights): New variable.
98800         Recognize option --more-symlinks.
98801         (func_import): Don't add a copyright notice transform to
98802         sed_transform_lib_file if do_copyrights is empty.
98804 2007-07-13  Bruno Haible  <bruno@clisp.org>
98806         * lib/vasnprintf.c (decimal_point_char): Define also if
98807         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
98808         && !NEED_PRINTF_DIRECTIVE_A.
98809         Reported by Clemens Koller <clemens.koller@anagramm.de> via
98810         Gary V. Vaughan <gary@gnu.org>.
98812 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
98814         * lib/inttypes_.h: Undo previous change, since it was fixed
98815         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
98817 2007-07-13  Bruno Haible  <bruno@clisp.org>
98819         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
98820         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
98822 2007-07-13  Jim Meyering  <jim@meyering.net>
98824         df: Don't fail for Tru64's "file-on-file mount".
98825         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
98826         so we fall through and use statfs instead.  Details here:
98827         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
98828         Reported by Albert Chin.
98830 2007-07-13  Bruno Haible  <bruno@clisp.org>
98832         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
98833         * modules/configmake (License): Likewise.
98834         * modules/gettext (License): Likewise.
98835         * modules/gettext-h (License): Likewise.
98836         * modules/include_next (License): Likewise.
98837         * modules/link-warning (License): Likewise.
98838         * modules/localcharset (License): Likewise.
98839         * modules/localename (License): Likewise.
98840         * modules/lock (License): Likewise.
98841         * modules/relocatable-lib-lgpl (License): Likewise.
98842         * modules/size_max (License): Likewise.
98843         * modules/vasnprintf (License): Likewise.
98844         * modules/wchar (License): Likewise.
98845         * modules/xsize (License): Likewise.
98847 2007-07-13  Bruno Haible  <bruno@clisp.org>
98849         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
98850         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
98852 2007-07-12  Bruno Haible  <bruno@clisp.org>
98854         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
98855         in the modules files.
98857 2007-07-11  Karl Berry  <karl@gnu.org>
98859         * MODULES.html.sh (func_module): use
98860          sed -e '\|^'"${includefile}"'$|d'
98861          instead of /.../d, to avoid errors on $includefile's containing /.
98863 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
98865         * gnulib-tool (func_import): Avoid duplication of --avoid
98866         statements
98867         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
98868         names to `_' in variable names.
98870 2007-07-10  Eric Blake  <ebb9@byu.net>
98872         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
98873         * NEWS: Document this change.
98875 2007-07-08  Bruno Haible  <bruno@clisp.org>
98877         Update to Unicode 5.0.
98878         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
98879         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
98880         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
98881         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
98882         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
98883         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
98884         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
98885         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
98886         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
98887         U+10A3F, U+1D242..U+1D244.
98888         (nonspacing_table_ind): Update.
98889         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
98890         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
98892 2007-07-08  Bruno Haible  <bruno@clisp.org>
98894         Update to Unicode 5.0.
98895         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
98896         code transform. Extend the name index field of unicode_name_to_code and
98897         unicode_code_to_name from 16 to 24 bits.
98898         * lib/uniname/uniname.c (unicode_character_name,
98899         unicode_name_character): Add the range 0x12xxx to the code transform.
98900         * lib/uniname/uninames.h: Regenerated.
98901         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
98903 2007-07-07  Bruno Haible  <bruno@clisp.org>
98905         * modules/wcwidth-tests: New file.
98906         * tests/test-wcwidth.c: New file.
98908         Work around MacOS X wcwidth() bug.
98909         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
98910         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
98911         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
98912         original wcwidth in non-UTF-8 locales.
98913         * modules/wcwidth (Depends-on): Add localcharset, streq,
98914         uniwidth/width.
98915         * doc/functions/wcwidth.texi: Update.
98917 2007-07-07  Bruno Haible  <bruno@clisp.org>
98919         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
98920         (wcwidth): New declaration.
98921         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
98922         macros.
98923         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
98924         here. Prepare for creating <wchar.h> unconditionally.
98925         * modules/wchar (Depends-on): Add link-warning.
98926         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
98927         REPLACE_WCWIDTH, and GL_LINK_WARNING.
98928         * lib/wcwidth.h: Remove file.
98929         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
98930         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
98931         * modules/wcwidth (Files): Remove lib/wcwidth.h.
98932         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
98933         (Include): Replace wcwidth.h with <wchar.h>.
98934         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
98935         * lib/mbchar.h: Don't include wcwidth.h.
98936         * lib/mbswidth.c: Likewise.
98937         * NEWS: Mention the change.
98939 2007-07-07  Bruno Haible  <bruno@clisp.org>
98941         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
98942         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
98943         definition with an external declaration.
98944         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
98945         defined as a function. Remove AC_C_INLINE requirement.
98946         * modules/wcwidth (Files): Add lib/wcwidth.c.
98947         (Makefile.am): Remove redundant statement.
98949 2007-07-07  Bruno Haible  <bruno@clisp.org>
98951         * MODULES.html.sh (Unicode string functions): Add the new modules.
98953         * tests/uniwidth/test-u32-strwidth.c: New file.
98954         * modules/uniwidth/u32-strwidth-tests: New file.
98956         * lib/uniwidth/u32-strwidth.c: New file.
98957         * modules/uniwidth/u32-strwidth: New file.
98959         * tests/uniwidth/test-u16-strwidth.c: New file.
98960         * modules/uniwidth/u16-strwidth-tests: New file.
98962         * lib/uniwidth/u16-strwidth.c: New file.
98963         * modules/uniwidth/u16-strwidth: New file.
98965         * tests/uniwidth/test-u8-strwidth.c: New file.
98966         * modules/uniwidth/u8-strwidth-tests: New file.
98968         * lib/uniwidth/u8-strwidth.c: New file.
98969         * modules/uniwidth/u8-strwidth: New file.
98971         * tests/uniwidth/test-u32-width.c: New file.
98972         * modules/uniwidth/u32-width-tests: New file.
98974         * lib/uniwidth/u32-width.c: New file.
98975         * modules/uniwidth/u32-width: New file.
98977         * tests/uniwidth/test-u16-width.c: New file.
98978         * modules/uniwidth/u16-width-tests: New file.
98980         * lib/uniwidth/u16-width.c: New file.
98981         * modules/uniwidth/u16-width: New file.
98983         * tests/uniwidth/test-u8-width.c: New file.
98984         * modules/uniwidth/u8-width-tests: New file.
98986         * lib/uniwidth/u8-width.c: New file.
98987         * modules/uniwidth/u8-width: New file.
98989         * tests/uniwidth/test-uc_width.c: New file.
98990         * modules/uniwidth/width-tests: New file.
98992         * lib/uniwidth/width.c: New file, from GNU libiconv.
98993         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
98994         * modules/uniwidth/width: New file.
98996         * lib/uniwidth.h: New file, from GNU libiconv.
98997         * modules/uniwidth/base: New file.
98999 2007-07-07  Bruno Haible  <bruno@clisp.org>
99001         * lib/uniname.h: New file, from GNU gettext.
99002         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
99003         * lib/uniname/uninames.h: New file, from GNU gettext.
99004         * lib/uniname/uniname.c: New file, from GNU gettext.
99005         * tests/uniname/test-uninames.sh: New file.
99006         * tests/uniname/test-uninames.c: New file, from GNU gettext.
99007         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
99008         * modules/uniname/base: New file.
99009         * modules/uniname/uniname: New file.
99010         * modules/uniname/uniname-tests: New file.
99011         * MODULES.html.sh (Unicode string functions): Add the new modules.
99013 2007-07-06  Bruno Haible  <bruno@clisp.org>
99015         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
99017 2007-07-06  Bruno Haible  <bruno@clisp.org>
99019         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
99020         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
99021         includes <cygwin/sys_time.h> which includes <sys/select.h> which
99022         include <sys/time.h>.
99023         Reported by Eric Blake.
99025 2007-07-06  Eric Blake  <ebb9@byu.net>
99027         Fix testing canonicalize on cygwin.
99028         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
99029         Revert patch from 2007-06-19.
99030         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
99031         canonicalize module is also in use.
99032         * tests/test-canonicalize.c: New file.
99033         * tests/test-canonicalize.sh: Likewise.
99034         * modules/canonicalize-tests: Likewise.
99036 2007-07-06  Jim Meyering  <jim@meyering.net>
99038         * lib/getugroups.c (getugroups): Detect getgrent failure.
99039         Adjust comment to reflect reality: this function may return -1.
99041 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
99043         * build-aux/bootstrap (TP_URL,get_translations): Update to use
99044         the new TP address.
99045         (usage): Fix typo
99046         (gnulib_mk): New variable.
99048 2007-07-05  Jim Meyering  <jim@meyering.net>
99050         Don't let endgrent clobber errno, no matter how improbable.
99051         * lib/getugroups.c (getugroups): Save and restore errno around
99052         endgrent call.
99054         Close the group DB even when failing with 2^31 or more members.
99055         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
99057 2007-07-04  Jim Meyering  <jim@meyering.net>
99059         * lib/getugroups.h: New file.
99060         * lib/getugroups.c: Include "getugroups.h".
99061         Remove uses of "register" keyword.
99062         Move local variable, "cp", down into scope where used.
99063         Give "username" parameter the "const" attribute.
99064         * modules/getugroups (Files): Add lib/getugroups.h
99066 2007-07-04  Karl Berry  <karl@gnu.org>
99068         * MODULES.html.sh (func_all_modules): Complete rename of
99069         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
99071 2007-07-02  Bruno Haible  <bruno@clisp.org>
99073         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
99074         mode, when inttypes.h comes from gnulib.
99075         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
99077 2007-07-02  Simon Josefsson  <simon@josefsson.org>
99079         * NEWS: Mention lgpl module name change.
99081         * modules/lgpl-2.1: Renamed from lgpl.
99083         * NEWS: Mention gpl module name change.
99085         * modules/gpl-3.0: New file, based on gpl-2.0.
99087         * modules/gpl-2.0: Renamed from gpl.
99089         * modules/gpl: Fix filename, doc/gpl.texi is now found at
99090         doc/gpl-2.0.texi.
99092 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
99094         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
99095         #define __STDC_LIMIT_MACROS temporarily while including
99096         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
99097         Problem reported by Joel E. Denny in
99098         <http://lists.gnu.org/r/bug-gnulib/2007-07/msg00008.html>.
99100 2007-07-01  Bruno Haible  <bruno@clisp.org>
99102         * lib/unistdio.h: New file.
99103         * lib/unistdio/u-asnprintf.h: New file.
99104         * lib/unistdio/u-asprintf.h: New file.
99105         * lib/unistdio/u-printf-args.c: New file.
99106         * lib/unistdio/u-printf-args.h: New file.
99107         * lib/unistdio/u-printf-parse.h: New file.
99108         * lib/unistdio/u-snprintf.h: New file.
99109         * lib/unistdio/u-sprintf.h: New file.
99110         * lib/unistdio/u-vasprintf.h: New file.
99111         * lib/unistdio/u-vsnprintf.h: New file.
99112         * lib/unistdio/u-vsprintf.h: New file.
99113         * lib/unistdio/ulc-asnprintf.c: New file.
99114         * lib/unistdio/ulc-asprintf.c: New file.
99115         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
99116         * lib/unistdio/ulc-printf-parse.c: New file.
99117         * lib/unistdio/ulc-snprintf.c: New file.
99118         * lib/unistdio/ulc-sprintf.c: New file.
99119         * lib/unistdio/ulc-vasnprintf.c: New file.
99120         * lib/unistdio/ulc-vasprintf.c: New file.
99121         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
99122         * lib/unistdio/ulc-vsnprintf.c: New file.
99123         * lib/unistdio/ulc-vsprintf.c: New file.
99124         * lib/unistdio/u8-asnprintf.c: New file.
99125         * lib/unistdio/u8-asprintf.c: New file.
99126         * lib/unistdio/u8-printf-parse.c: New file.
99127         * lib/unistdio/u8-snprintf.c: New file.
99128         * lib/unistdio/u8-sprintf.c: New file.
99129         * lib/unistdio/u8-vasnprintf.c: New file.
99130         * lib/unistdio/u8-vasprintf.c: New file.
99131         * lib/unistdio/u8-vsnprintf.c: New file.
99132         * lib/unistdio/u8-vsprintf.c: New file.
99133         * lib/unistdio/u8-u8-asnprintf.c: New file.
99134         * lib/unistdio/u8-u8-asprintf.c: New file.
99135         * lib/unistdio/u8-u8-snprintf.c: New file.
99136         * lib/unistdio/u8-u8-sprintf.c: New file.
99137         * lib/unistdio/u8-u8-vasnprintf.c: New file.
99138         * lib/unistdio/u8-u8-vasprintf.c: New file.
99139         * lib/unistdio/u8-u8-vsnprintf.c: New file.
99140         * lib/unistdio/u8-u8-vsprintf.c: New file.
99141         * lib/unistdio/u16-asnprintf.c: New file.
99142         * lib/unistdio/u16-asprintf.c: New file.
99143         * lib/unistdio/u16-printf-parse.c: New file.
99144         * lib/unistdio/u16-snprintf.c: New file.
99145         * lib/unistdio/u16-sprintf.c: New file.
99146         * lib/unistdio/u16-vasnprintf.c: New file.
99147         * lib/unistdio/u16-vasprintf.c: New file.
99148         * lib/unistdio/u16-vsnprintf.c: New file.
99149         * lib/unistdio/u16-vsprintf.c: New file.
99150         * lib/unistdio/u16-u16-asnprintf.c: New file.
99151         * lib/unistdio/u16-u16-asprintf.c: New file.
99152         * lib/unistdio/u16-u16-snprintf.c: New file.
99153         * lib/unistdio/u16-u16-sprintf.c: New file.
99154         * lib/unistdio/u16-u16-vasnprintf.c: New file.
99155         * lib/unistdio/u16-u16-vasprintf.c: New file.
99156         * lib/unistdio/u16-u16-vsnprintf.c: New file.
99157         * lib/unistdio/u16-u16-vsprintf.c: New file.
99158         * lib/unistdio/u32-asnprintf.c: New file.
99159         * lib/unistdio/u32-asprintf.c: New file.
99160         * lib/unistdio/u32-printf-parse.c: New file.
99161         * lib/unistdio/u32-snprintf.c: New file.
99162         * lib/unistdio/u32-sprintf.c: New file.
99163         * lib/unistdio/u32-vasnprintf.c: New file.
99164         * lib/unistdio/u32-vasprintf.c: New file.
99165         * lib/unistdio/u32-vsnprintf.c: New file.
99166         * lib/unistdio/u32-vsprintf.c: New file.
99167         * lib/unistdio/u32-u32-asnprintf.c: New file.
99168         * lib/unistdio/u32-u32-asprintf.c: New file.
99169         * lib/unistdio/u32-u32-snprintf.c: New file.
99170         * lib/unistdio/u32-u32-sprintf.c: New file.
99171         * lib/unistdio/u32-u32-vasnprintf.c: New file.
99172         * lib/unistdio/u32-u32-vasprintf.c: New file.
99173         * lib/unistdio/u32-u32-vsnprintf.c: New file.
99174         * lib/unistdio/u32-u32-vsprintf.c: New file.
99175         * tests/unistdio/test-ulc-asnprintf1.c: New file.
99176         * tests/unistdio/test-ulc-asnprintf1.h: New file.
99177         * tests/unistdio/test-ulc-printf1.h: New file.
99178         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
99179         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
99180         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
99181         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
99182         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
99183         * tests/unistdio/test-ulc-vasprintf1.c: New file.
99184         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
99185         * tests/unistdio/test-ulc-vsprintf1.c: New file.
99186         * tests/unistdio/test-u8-asnprintf1.c: New file.
99187         * tests/unistdio/test-u8-asnprintf1.h: New file.
99188         * tests/unistdio/test-u8-printf1.h: New file.
99189         * tests/unistdio/test-u8-vasnprintf1.c: New file.
99190         * tests/unistdio/test-u8-vasnprintf2.c: New file.
99191         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
99192         * tests/unistdio/test-u8-vasnprintf3.c: New file.
99193         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
99194         * tests/unistdio/test-u8-vasprintf1.c: New file.
99195         * tests/unistdio/test-u8-vsnprintf1.c: New file.
99196         * tests/unistdio/test-u8-vsprintf1.c: New file.
99197         * tests/unistdio/test-u16-asnprintf1.c: New file.
99198         * tests/unistdio/test-u16-asnprintf1.h: New file.
99199         * tests/unistdio/test-u16-printf1.h: New file.
99200         * tests/unistdio/test-u16-vasnprintf1.c: New file.
99201         * tests/unistdio/test-u16-vasnprintf2.c: New file.
99202         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
99203         * tests/unistdio/test-u16-vasnprintf3.c: New file.
99204         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
99205         * tests/unistdio/test-u16-vasprintf1.c: New file.
99206         * tests/unistdio/test-u16-vsnprintf1.c: New file.
99207         * tests/unistdio/test-u16-vsprintf1.c: New file.
99208         * tests/unistdio/test-u32-asnprintf1.c: New file.
99209         * tests/unistdio/test-u32-asnprintf1.h: New file.
99210         * tests/unistdio/test-u32-printf1.h: New file.
99211         * tests/unistdio/test-u32-vasnprintf1.c: New file.
99212         * tests/unistdio/test-u32-vasnprintf2.c: New file.
99213         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
99214         * tests/unistdio/test-u32-vasnprintf3.c: New file.
99215         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
99216         * tests/unistdio/test-u32-vasprintf1.c: New file.
99217         * tests/unistdio/test-u32-vsnprintf1.c: New file.
99218         * tests/unistdio/test-u32-vsprintf1.c: New file.
99219         * modules/unistdio/base: New file.
99220         * modules/unistdio/u-printf-args: New file.
99221         * modules/unistdio/ulc-asnprintf: New file.
99222         * modules/unistdio/ulc-asprintf: New file.
99223         * modules/unistdio/ulc-fprintf: New file.
99224         * modules/unistdio/ulc-printf-parse: New file.
99225         * modules/unistdio/ulc-snprintf: New file.
99226         * modules/unistdio/ulc-sprintf: New file.
99227         * modules/unistdio/ulc-vasnprintf: New file.
99228         * modules/unistdio/ulc-vasprintf: New file.
99229         * modules/unistdio/ulc-vfprintf: New file.
99230         * modules/unistdio/ulc-vsnprintf: New file.
99231         * modules/unistdio/ulc-vsprintf: New file.
99232         * modules/unistdio/u8-asnprintf: New file.
99233         * modules/unistdio/u8-asprintf: New file.
99234         * modules/unistdio/u8-printf-parse: New file.
99235         * modules/unistdio/u8-snprintf: New file.
99236         * modules/unistdio/u8-sprintf: New file.
99237         * modules/unistdio/u8-vasnprintf: New file.
99238         * modules/unistdio/u8-vasprintf: New file.
99239         * modules/unistdio/u8-vsnprintf: New file.
99240         * modules/unistdio/u8-vsprintf: New file.
99241         * modules/unistdio/u8-u8-asnprintf: New file.
99242         * modules/unistdio/u8-u8-asprintf: New file.
99243         * modules/unistdio/u8-u8-snprintf: New file.
99244         * modules/unistdio/u8-u8-sprintf: New file.
99245         * modules/unistdio/u8-u8-vasnprintf: New file.
99246         * modules/unistdio/u8-u8-vasprintf: New file.
99247         * modules/unistdio/u8-u8-vsnprintf: New file.
99248         * modules/unistdio/u8-u8-vsprintf: New file.
99249         * modules/unistdio/u16-asnprintf: New file.
99250         * modules/unistdio/u16-asprintf: New file.
99251         * modules/unistdio/u16-printf-parse: New file.
99252         * modules/unistdio/u16-snprintf: New file.
99253         * modules/unistdio/u16-sprintf: New file.
99254         * modules/unistdio/u16-vasnprintf: New file.
99255         * modules/unistdio/u16-vasprintf: New file.
99256         * modules/unistdio/u16-vsnprintf: New file.
99257         * modules/unistdio/u16-vsprintf: New file.
99258         * modules/unistdio/u16-u16-asnprintf: New file.
99259         * modules/unistdio/u16-u16-asprintf: New file.
99260         * modules/unistdio/u16-u16-snprintf: New file.
99261         * modules/unistdio/u16-u16-sprintf: New file.
99262         * modules/unistdio/u16-u16-vasnprintf: New file.
99263         * modules/unistdio/u16-u16-vasprintf: New file.
99264         * modules/unistdio/u16-u16-vsnprintf: New file.
99265         * modules/unistdio/u16-u16-vsprintf: New file.
99266         * modules/unistdio/u32-asnprintf: New file.
99267         * modules/unistdio/u32-asprintf: New file.
99268         * modules/unistdio/u32-printf-parse: New file.
99269         * modules/unistdio/u32-snprintf: New file.
99270         * modules/unistdio/u32-sprintf: New file.
99271         * modules/unistdio/u32-vasnprintf: New file.
99272         * modules/unistdio/u32-vasprintf: New file.
99273         * modules/unistdio/u32-vsnprintf: New file.
99274         * modules/unistdio/u32-vsprintf: New file.
99275         * modules/unistdio/u32-u32-asnprintf: New file.
99276         * modules/unistdio/u32-u32-asprintf: New file.
99277         * modules/unistdio/u32-u32-snprintf: New file.
99278         * modules/unistdio/u32-u32-sprintf: New file.
99279         * modules/unistdio/u32-u32-vasnprintf: New file.
99280         * modules/unistdio/u32-u32-vasprintf: New file.
99281         * modules/unistdio/u32-u32-vsnprintf: New file.
99282         * modules/unistdio/u32-u32-vsprintf: New file.
99283         * modules/unistdio/ulc-asnprintf-tests: New file.
99284         * modules/unistdio/ulc-vasnprintf-tests: New file.
99285         * modules/unistdio/ulc-vasprintf-tests: New file.
99286         * modules/unistdio/ulc-vsnprintf-tests: New file.
99287         * modules/unistdio/ulc-vsprintf-tests: New file.
99288         * modules/unistdio/u8-asnprintf-tests: New file.
99289         * modules/unistdio/u8-vasnprintf-tests: New file.
99290         * modules/unistdio/u8-vasprintf-tests: New file.
99291         * modules/unistdio/u8-vsnprintf-tests: New file.
99292         * modules/unistdio/u8-vsprintf-tests: New file.
99293         * modules/unistdio/u16-asnprintf-tests: New file.
99294         * modules/unistdio/u16-vasnprintf-tests: New file.
99295         * modules/unistdio/u16-vasprintf-tests: New file.
99296         * modules/unistdio/u16-vsnprintf-tests: New file.
99297         * modules/unistdio/u16-vsprintf-tests: New file.
99298         * modules/unistdio/u32-asnprintf-tests: New file.
99299         * modules/unistdio/u32-vasnprintf-tests: New file.
99300         * modules/unistdio/u32-vasprintf-tests: New file.
99301         * modules/unistdio/u32-vsnprintf-tests: New file.
99302         * modules/unistdio/u32-vsprintf-tests: New file.
99303         * MODULES.html.sh (Unicode string functions): Add the new modules.
99305 2007-07-01  Bruno Haible  <bruno@clisp.org>
99307         * lib/sprintf.c (sprintf): Limit the available length estimation,
99308         to avoid address wraparound.
99309         * lib/vsprintf.c (vsprintf): Likewise.
99310         * modules/sprintf-posix (Dependencies): Add stdint.
99311         * modules/vsprintf-posix (Dependencies): Likewise.
99313 2007-07-01  Bruno Haible  <bruno@clisp.org>
99315         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
99316         Windows PATH as well. Conservative double-quoting. Comments.
99318 2007-07-01  Bruno Haible  <bruno@clisp.org>
99319             Eric Blake  <ebb9@byu.net>
99320             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
99322         * gnulib-tool (self_abspathname): Fix algorithm to cope with
99323         empty components in $PATH, denoting '.'.
99325 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
99327         * gnulib-tool: Fix indentation.
99328         (func_create_megatestdir): Likewise.
99329         Report by Bruno Haible.
99331 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
99333         Sync from Automake.
99334         * build-aux/gnupload: Fix shell portability issues with for loops.
99335         Report by Karl Berry.
99337 2007-06-29  Simon Josefsson  <simon@josefsson.org>
99339         * build-aux/maint.mk (POURL): Use translationproject.org.
99341 2007-06-27  Simon Josefsson  <simon@josefsson.org>
99342             Bruno Haible  <bruno@clisp.org>
99344         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
99345         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
99346         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
99347         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
99348         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
99350 2007-06-27  Bruno Haible  <bruno@clisp.org>
99352         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
99353         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
99355 2007-06-26  Karl Berry  <karl@gnu.org>
99357         * MODULES.html.sh: remove xreadlink-with-size.
99359 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
99361         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
99362         method that I hope also handles the double-include problem noted
99363         by Bruno Haible in
99364         <http://lists.gnu.org/r/bug-gnulib/2007-05/msg00186.html>.
99366 2007-06-23  Bruno Haible  <bruno@clisp.org>
99368         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
99369         Don't let the 'mostlyclean' target fail if the last subdirectory could
99370         not be removed.
99371         Reported by Karl Berry.
99373 2007-06-23  Bruno Haible  <bruno@clisp.org>
99375         * gnulib-tool (echo): Add a speedier workaround for ksh.
99376         * tests/test-echo.sh: Likewise.
99378 2007-06-23  Bruno Haible  <bruno@clisp.org>
99380         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
99381         * tests/test-echo.sh: Likewise.
99383 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
99385         * gnulib-tool (IFS): Initialize early, so we don't set it to
99386         empty later.
99387         (self_abspathname): Rewrite algorithm to set it, reindent.
99388         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
99389         (func_create_megatestdir): Merge some sed scripts.
99391 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
99393         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
99394         exposed by Sun Studio 11 cc on Solaris 8.
99396 2007-06-22  Bruno Haible  <bruno@clisp.org>
99398         * gnulib-tool (echo): Ensure the echo primitive does not interpret
99399         backslashes.
99400         * tests/test-echo.sh: New file.
99402 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
99404         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
99405         simplify `sed_replace_build_aux' scripts, they are portable but
99406         echoing them with `echo' is not.
99407         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
99409 2007-06-21  Karl Berry  <karl@gnu.org>
99411         * config/srclist.txt: guess we can't handle the licenses via
99412         srclist at the moment.
99414 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
99416         * MODULES.html.sh: Add include_next.
99417         * modules/include_next: New file.
99419 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
99421         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
99422         INCLUDE_NEXT.
99423         (gl_CHECK_NEXT_HEADERS): New macro.
99424         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
99425         the obsolescent gl_ABSOLUTE_HEADER.
99426         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
99427         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
99428         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
99429         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
99430         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
99431         * m4/math_h.m4 (gl_MATH_H): Likewise.
99432         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
99433         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
99434         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
99435         * m4/stdint.m4 (gl_STDINT_H): Likewise.
99436         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
99437         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
99438         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
99439         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
99440         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
99441         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
99442         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
99443         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
99444         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
99445         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
99446         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
99447         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
99448         * m4/inttypes.m4 (gl_INTTYPES_H): Define
99449         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
99450         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
99451         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
99452         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
99453         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
99454         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
99455         * lib/float_.h: Likewise.
99456         * lib/inttypes_.h: Likewise.
99457         * lib/math_.h: Likewise.
99458         * lib/search_.h: Likewise.
99459         * lib/signal_.h: Likewise.
99460         * lib/stdint_.h: Likewise.
99461         * lib/stdio_.h: Likewise.
99462         * lib/stdlib_.h: Likewise.
99463         * lib/string_.h: Likewise.
99464         * lib/sys_stat_.h: Likewise.
99465         * lib/sys_time_.h: Likewise.
99466         * lib/time_.h: Likewise.
99467         * lib/unistd_.h: Likewise.
99468         * lib/wchar_.h: Likewise.
99469         * lib/wctype_.h: Likewise.
99470         * lib/dirent_.h: Likewise.
99471         * lib/iconv_.h: Likewise.
99472         * lib/locale_.h: Likewise.
99473         * lib/netinet_in_.h: Likewise.
99474         * lib/sys_select_.h: Likewise.
99475         * lib/sys_socket_.h: Likewise.
99476         * lib/sysexits_.h: Likewise.
99477         * modules/fcntl (Depends-on): Depend on include_next, not
99478         absolute_header.
99479         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
99480         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
99481         * modules/fchdir: Likewise.
99482         * modules/float: Likewise.
99483         * modules/iconv_open: Likewise.
99484         * modules/inttypes: Likewise.
99485         * modules/locale: Likewise.
99486         * modules/math: Likewise.
99487         * modules/netinet_in: Likewise.
99488         * modules/search: Likewise.
99489         * modules/signal: Likewise.
99490         * modules/stdint: Likewise.
99491         * modules/stdio: Likewise.
99492         * modules/stdlib: Likewise.
99493         * modules/string: Likewise.
99494         * modules/sys_select: Likewise.
99495         * modules/sys_socket: Likewise.
99496         * modules/sys_stat: Likewise.
99497         * modules/sys_time: Likewise.
99498         * modules/sysexits: Likewise.
99499         * modules/time: Likewise.
99500         * modules/unistd: Likewise.
99501         * modules/wchar: Likewise.
99502         * modules/wctype: Likewise.
99503         * modules/sys_stat: Change maintainer to "all".
99504         * modules/unistd: Likewise.
99506 2007-06-20  Karl Berry  <karl@gnu.org>
99508         * config/srclist.txt: track www changes in license files.
99510 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
99512         * build-aux/bootstrap: Remove stray dot.
99513         Make sure build_aux settings are honored when linking
99514         gnulib_extra_files.
99516 2007-06-19  Eric Blake  <ebb9@byu.net>
99518         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
99519         Allow compilation on cygwin.
99521 2007-06-19  Jim Meyering  <jim@meyering.net>
99523         xreadlink-with-size: Remove module.  No longer used.
99524         Ex-callers now use xreadlink or mreadlink-with-size.
99525         * modules/xreadlink-with-size: Remove module.
99526         * lib/xreadlink-with-size.c: Remove file.
99527         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
99528         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
99529         just before the function definition *is* accurate.
99531         Eliminate one way canonicalize_filename_mode could exit.
99532         * lib/canonicalize.c (canonicalize_filename_mode):
99533         Use mreadlink_with_size, not xreadlink_with_size.
99535 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
99537         Detect porting problems to FreeBSD/arm, which has time_t wider than
99538         long int.  Original problem reported for GNU diff by Xin Li in
99539         <http://lists.gnu.org/r/bug-gnu-utils/2007-06/msg00091.html>.
99540         * modules/getdate (Depends-on): Add intprops, verify.
99541         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
99542         is an integer type no wider than long int.
99544 2007-06-18  Jim Meyering  <jim@meyering.net>
99546         New module: mreadlink-with-size.
99547         * MODULES.html.sh: Add mreadlink-with-size.
99548         * modules/mreadlink-with-size: New module
99549         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
99550         not xreadlink-with-size.
99551         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
99553 2007-06-16  Bruno Haible  <bruno@clisp.org>
99555         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
99556         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
99557         Reported by Gary V. Vaughan <gary@gnu.org>.
99559 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
99561         Revamp lchown so that it lives in unistd.h where it belongs.
99562         * lib/lchown.h: Remove.
99563         * lib/dirchownmod.c: Don't include lib/lchown.h.
99564         * lib/fchownat.c: Likewise.
99565         * lib/openat.c: Likewise.
99566         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
99567         does not follow symlinks.
99568         (EOPNOTSUPP): Define if not defined.
99569         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
99570         is defined to 0.
99571         (lchown): New decl.
99572         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
99573         Do not check for lchown decl.
99574         Set REPLACE_LCHOWN.
99575         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
99576         REPLACE_LCHOWN.
99577         * modules/chown: Make it clear it follows symlinks.
99578         * modules/lchown: Make it clear it doesn't follow symlinks.
99579         (Files): Remove lib/lchown.h
99580         (Depends-on): Add unistd.
99581         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
99582         (Include): Include <unistd.h>, not "lchown.h".
99583         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
99584         REPLACE_LCHOWN.
99586 2007-06-15  Jim Meyering  <jim@meyering.net>
99588         Change license (GPL to LGPL) of fsusage and dependents.
99589         * modules/fsusage (License): Change to LGPL.
99590         * modules/full-read (License): Likewise.
99591         * modules/full-write (License): Likewise.
99592         * modules/safe-read (License): Likewise.
99593         * modules/safe-write (License): Likewise.
99595 2007-06-14  Ben Pfaff  <blp@gnu.org>
99597         Missing part of allocsa -> malloca transition.
99598         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
99599         gl_MALLOCA.
99601 2007-06-12  Bruno Haible  <bruno@clisp.org>
99603         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
99604         to ia64, x86_64, i386.
99605         Reported by Eric Blake.
99607 2007-06-12  Bruno Haible  <bruno@clisp.org>
99609         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
99610         cross-compiling to x86_64.
99612 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
99614         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
99615         glitch reported by Ralf Wildenhues in
99616         <http://lists.gnu.org/r/bug-gnulib/2007-06/msg00114.html>.
99618         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
99619         Vin Shelton.
99621 2007-06-11  Bruno Haible  <bruno@clisp.org>
99623         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
99624         replacement string.
99625         Reported by Eric Blake.
99627 2007-06-10  Bruno Haible  <bruno@clisp.org>
99629         Prepare vasnprintf code for use with Unicode strings.
99630         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
99631         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
99632         TYPE_U32_STRING.
99633         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
99634         a_u32_string variants.
99635         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
99636         * lib/printf-args.c: Don't include config.h and the specification
99637         header if PRINTF_FETCHARGS is already defined.
99638         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
99639         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
99640         TYPE_U16_STRING, TYPE_U32_STRING.
99641         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
99642         u16_directive, u16_directives, u32_directive, u32_directives): New
99643         types.
99644         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
99645         New declarations.
99646         * lib/printf-parse.c: Don't include config.h and the specification
99647         header if PRINTF_PARSE is already defined. Eliminate the set of
99648         parameters for WIDE_CHAR_VERSION; the user of this file must provide
99649         them now. Include c-ctype.h.
99650         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
99651         directive and CHAR_T_ONLY_ASCII.
99652         * lib/vasnprintf.c: Don't include config.h and the specification header
99653         if VASNPRINTF is already defined.
99654         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
99655         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
99656         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
99657         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
99658         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
99659         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
99660         code accordingly.
99661         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
99662         pad_ourselves also in this case, with the 'c' and 's' directives, and
99663         with a different notion of "width".
99664         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
99666 2007-06-10  Bruno Haible  <bruno@clisp.org>
99668         * modules/unistr/u32-mbsnlen: New file.
99669         * lib/unistr/u32-mbsnlen.c: New file.
99671         * modules/unistr/u16-mbsnlen: New file.
99672         * lib/unistr/u16-mbsnlen.c: New file.
99674         * modules/unistr/u8-mbsnlen: New file.
99675         * lib/unistr/u8-mbsnlen.c: New file.
99677         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
99678         declarations.
99680 2007-06-10  Bruno Haible  <bruno@clisp.org>
99682         * lib/string_.h (mbsnlen): New declaration.
99683         * lib/mbsnlen.c: New file.
99684         * m4/mbsnlen.m4: New file.
99685         * modules/mbsnlen: New file.
99686         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
99687         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
99688         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
99690 2007-06-10  Bruno Haible  <bruno@clisp.org>
99692         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
99694 2007-06-10  Bruno Haible  <bruno@clisp.org>
99696         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
99697         * lib/mbuiter.h: Likewise.
99699 2007-06-10  Bruno Haible  <bruno@clisp.org>
99701         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
99702         declaration.
99704 2007-06-10  Karl Berry  <karl@gnu.org>
99706         * config/srclist.txt: remove gettext entries, Bruno prefers
99707         to update individually.
99709 2007-06-10  Bruno Haible  <bruno@clisp.org>
99711         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
99712         'maxlen'. Ensure only length + width bytes are allocated, not
99713         length + 1 + width.
99715 2007-06-09  Bruno Haible  <bruno@clisp.org>
99717         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
99718         (CHAR_T): Remove macro.
99719         (VASNPRINTF): Update.
99721 2007-06-09  Bruno Haible  <bruno@clisp.org>
99723         * MODULES.html.sh (Unicode string functions): Add the new modules.
99725         * modules/uniconv/u32-conv-to-enc: New file.
99726         * lib/uniconv/u32-conv-to-enc.c: New file.
99727         * modules/uniconv/u32-conv-to-enc-tests: New file.
99728         * tests/uniconv/test-u32-conv-to-enc.c: New file.
99730         * modules/uniconv/u16-conv-to-enc: New file.
99731         * lib/uniconv/u16-conv-to-enc.c: New file.
99732         * lib/uniconv/u-conv-to-enc.h: New file.
99733         * modules/uniconv/u16-conv-to-enc-tests: New file.
99734         * tests/uniconv/test-u16-conv-to-enc.c: New file.
99736         * modules/uniconv/u8-conv-to-enc: New file.
99737         * lib/uniconv/u8-conv-to-enc.c: New file.
99738         * modules/uniconv/u8-conv-to-enc-tests: New file.
99739         * tests/uniconv/test-u8-conv-to-enc.c: New file.
99741         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
99742         u32_conv_to_encoding): New declarations.
99744 2007-06-09  Bruno Haible  <bruno@clisp.org>
99746         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
99748 2007-06-09  Bruno Haible  <bruno@clisp.org>
99750         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
99751         * modules/malloca: Renamed from modules/allocsa, updated.
99752         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
99753         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
99754         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
99755         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
99756         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
99757         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
99758         * modules/xmalloca: Renamed from modules/xallocsa, updated.
99759         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
99760         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
99761         * modules/c-strcasestr (Depends-on): Update.
99762         * lib/c-strcasestr.c: Update.
99763         * modules/c-strstr (Depends-on): Update.
99764         * lib/c-strstr.c: Update.
99765         * modules/canonicalize-lgpl (Depends-on): Update.
99766         * lib/canonicalize-lgpl.c: Update.
99767         * modules/clean-temp (Depends-on): Update.
99768         * lib/clean-temp.c: Update.
99769         * modules/csharpcomp (Depends-on): Update.
99770         * lib/csharpcomp.c: Update.
99771         * modules/csharpexec (Depends-on): Update.
99772         * lib/csharpexec.c: Update.
99773         * modules/javacomp (Depends-on): Update.
99774         * lib/javacomp.c: Update.
99775         * modules/javaexec (Depends-on): Update.
99776         * lib/javaexec.c: Update.
99777         * modules/mbscasestr (Depends-on): Update.
99778         * lib/mbscasestr.c: Update.
99779         * modules/mbsstr (Depends-on): Update.
99780         * lib/mbsstr.c: Update.
99781         * modules/setenv (Depends-on): Update.
99782         * lib/setenv.c: Update.
99783         * modules/strcasestr (Depends-on): Update.
99784         * lib/strcasestr.c: Update.
99785         * modules/striconveha (Depends-on): Update.
99786         * lib/striconveha.c: Update.
99787         * modules/relocatable-prog-wrapper (Files): Update.
99788         * lib/relocwrapper.c: Update.
99789         * build-aux/install-reloc: Update.
99790         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
99792 2007-06-08  Bruno Haible  <bruno@clisp.org>
99794         Port to uClibc.
99795         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
99796         * lib/fpurge.c (fpurge): Likewise.
99797         * lib/freading.c (freading): Likewise.
99798         * lib/fseeko.c (rpl_fseeko): Likewise.
99799         * lib/fseterr.c (fseterr): Likewise.
99800         * lib/fwriting.c (fwriting): Likewise.
99801         * tests/test-fflush.c (main): Avoid a failure on uClibc.
99803 2007-06-08  Bruno Haible  <bruno@clisp.org>
99805         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
99806         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
99807         * modules/gettext (Files): Add m4/intlmacosx.m4.
99809 2007-06-07  Bruno Haible  <bruno@clisp.org>
99811         * modules/localename-tests: New file.
99812         * tests/test-localename.c: New file.
99814         New module 'localename'.
99815         * lib/localename.h: New file.
99816         * lib/localename.c: New file, from GNU gettext.
99817         * m4/localename.m4: New file.
99818         * modules/localename: New file.
99820 2007-06-07  Bruno Haible  <bruno@clisp.org>
99822         Work around the lack of <wchar.h> on some builds of uClibc.
99823         * doc/headers/wchar.texi: Update.
99824         * lib/wchar_.h: Include <wchar.h> only if it exists.
99825         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
99826         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
99827         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
99828         doesn't exist.
99829         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
99830         * modules/mbfile (Depends-on): Add wchar.
99831         * modules/mbiter (Depends-on): Likewise.
99832         * modules/mbuiter (Depends-on): Likewise.
99833         Reported by Simon Josefsson.
99835 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
99837         Work around problem reported by Steven M. Schweda in
99838         <http://lists.gnu.org/r/bug-tar/2007-06/msg00002.html>:
99839         Tru64 5.1B with the Compaq compiler environment installed declares
99840         an 'isblank' function but does not define it in the C library.
99841         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
99842         * lib/regex_internal.h (isblank): Likewise.
99843         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
99844         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
99846 2007-06-05  Bruno Haible  <bruno@clisp.org>
99848         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
99849         ia64.
99850         * modules/printf-safe: New file.
99851         * modules/fprintf-posix (Depends-on): Add printf-safe.
99852         * modules/printf-posix (Depends-on): Likewise.
99853         * modules/snprintf-posix (Depends-on): Likewise.
99854         * modules/sprintf-posix (Depends-on): Likewise.
99855         * modules/vasnprintf-posix (Depends-on): Likewise.
99856         * modules/vasprintf-posix (Depends-on): Likewise.
99857         * modules/vfprintf-posix (Depends-on): Likewise.
99858         * modules/vprintf-posix (Depends-on): Likewise.
99859         * modules/vsnprintf-posix (Depends-on): Likewise.
99860         * modules/vsprintf-posix (Depends-on): Likewise.
99861         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
99862         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
99863         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
99864         "no" on i386, x86_64, ia64.
99865         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
99866         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
99867         on i386, x86_64, ia64.
99868         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
99869         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
99870         on i386, x86_64, ia64.
99871         * tests/test-vasnprintf-posix.c: Include float.h.
99872         (LDBL80_WORDS): New macro.
99873         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
99874         on i386, x86_64, ia64.
99875         * tests/test-vasprintf-posix.c: Include float.h.
99876         (LDBL80_WORDS): New macro.
99877         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
99878         on i386, x86_64, ia64.
99879         * tests/test-snprintf-posix.c: Include float.h.
99880         * tests/test-sprintf-posix.c: Likewise.
99881         * tests/test-vsnprintf-posix.c: Likewise.
99882         * tests/test-vsprintf-posix.c: Likewise.
99884 2007-06-05  Bruno Haible  <bruno@clisp.org>
99886         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
99887         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
99888         non-IEEE numbers on i386, x86_64, ia64.
99889         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
99890         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
99891         * tests/test-isnanl.h: Include float.h.
99892         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
99894 2007-06-05  Bruno Haible  <bruno@clisp.org>
99896         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
99897         also the %a / %A. Handle the %a / %A code before this extra handling.
99899 2007-06-05  Bruno Haible  <bruno@clisp.org>
99901         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
99902         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
99904 2007-06-05  Bruno Haible  <bruno@clisp.org>
99906         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
99907         typo in variable name.
99909 2007-06-05  Eric Blake  <ebb9@byu.net>
99911         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
99912         Reported by Simon Josefsson.
99914 2007-06-04  Bruno Haible  <bruno@clisp.org>
99916         Avoid test failures on some PowerPC platforms.
99917         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
99918         Define differently for PowerPC.
99919         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
99920         Reported by Gary V. Vaughan <gary@gnu.org>.
99922 2007-06-02  Bruno Haible  <bruno@clisp.org>
99924         Fix test-stdint failure on FreeBSD/ia64.
99925         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
99926         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
99927         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
99928         * doc/headers/stdint.texi: Update.
99930 2007-06-01  Bruno Haible  <bruno@clisp.org>
99932         * tests/test-binary-io.c (main): Pass a third argument to open().
99933         Reported by Gary V. Vaughan <gary@gnu.org>.
99935 2007-06-01  Bruno Haible  <bruno@clisp.org>
99937         * doc/functions/frexpl.texi: Update for mingw.
99939 2007-06-01  Bruno Haible  <bruno@clisp.org>
99941         * tests/test-lseek.c (main): Disable test of errno for invalid third
99942         argument.
99943         * doc/functions/lseek.texi: Update.
99944         Reported by Gary V. Vaughan <gary@gnu.org>.
99946 2007-05-28  Bruno Haible  <bruno@clisp.org>
99948         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
99950 2007-05-31  Eric Blake  <ebb9@byu.net>
99952         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
99953         cross compiling.
99955 2007-05-30  Eric Blake  <ebb9@byu.net>
99956         and Bruno Haible  <bruno@clisp.org>
99958         Work around mingw test failures exposed by m4-1.4.9b.
99959         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
99960         * tests/test-unistd.c: Disable uid_t and git_t tests for the
99961         moment.
99963 2007-05-30  Bruno Haible  <bruno@clisp.org>
99965         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
99966         assuming that they are closed. Needed on HP-UX 11.
99968 2007-05-29  Bruno Haible  <bruno@clisp.org>
99970         Fix a problem with #include_next.
99971         * lib/dirent_.h: Split the double-inclusion guard.
99972         * lib/fcntl_.h: Likewise.
99973         * lib/float_.h: Likewise.
99974         * lib/iconv_.h: Likewise.
99975         * lib/inttypes_.h: Likewise.
99976         * lib/locale_.h: Likewise.
99977         * lib/math_.h: Likewise.
99978         * lib/netinet_in_.h: Likewise.
99979         * lib/search_.h: Likewise.
99980         * lib/signal_.h: Likewise.
99981         * lib/stdint_.h: Likewise.
99982         * lib/stdio_.h: Likewise.
99983         * lib/stdlib_.h: Likewise.
99984         * lib/string_.h: Likewise.
99985         * lib/sys_select_.h: Likewise.
99986         * lib/sys_socket_.h: Likewise.
99987         * lib/sys_stat_.h: Likewise.
99988         * lib/sys_time_.h: Likewise.
99989         * lib/sysexits_.h: Likewise.
99990         * lib/time_.h: Likewise.
99991         * lib/unistd_.h: Likewise.
99992         * lib/wchar_.h: Likewise.
99993         * lib/wctype_.h: Likewise.
99995 2007-05-29  Bruno Haible  <bruno@clisp.org>
99997         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
99998         for the moment.
100000 2007-05-29  Bruno Haible  <bruno@clisp.org>
100002         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
100003         invocation.
100004         Reported by Eric Blake.
100006 2007-05-29  Bruno Haible  <bruno@clisp.org>
100008         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
100009         compiling case.
100011 2007-05-29  Eric Blake  <ebb9@byu.net>
100012             Bruno Haible  <bruno@clisp.org>
100014         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
100015         cross compiles.
100017 2007-05-28  Eric Blake  <ebb9@byu.net>
100019         * modules/closein-tests (test_closein_LDADD): Support test on
100020         cygwin with libtool.
100022 2007-05-28  Bruno Haible  <bruno@clisp.org>
100024         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
100025         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
100026         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
100027         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
100028         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
100029         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
100030         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
100031         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
100032         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
100034 2007-05-28  Eric Blake  <ebb9@byu.net>
100036         Unconditionally include <config.h> in unit tests.
100037         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
100038         * tests/test-allocsa.c, tests/test-arcfour.c,
100039         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
100040         tests/test-array_list.c, tests/test-array_oset.c,
100041         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
100042         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
100043         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
100044         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
100045         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
100046         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
100047         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
100048         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
100049         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
100050         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
100051         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
100052         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
100053         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
100054         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
100055         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
100056         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
100057         test-md5.c, test-memmem.c, test-printf-posix.c,
100058         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
100059         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
100060         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
100061         test-strcasestr.c, test-striconv.c, test-striconveh.c,
100062         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
100063         test-vasnprintf-posix2.c, test-vasnprintf.c,
100064         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
100065         test-vfprintf-posix.c, test-vprintf-posix.c,
100066         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
100067         test-xvasprintf.c: Likewise.
100069 2007-05-28  Bruno Haible  <bruno@clisp.org>
100071         * gnulib-tool (func_import): Remember the --with-tests command-line
100072         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
100073         Reported by Eric Blake.
100075 2007-05-28  Bruno Haible  <bruno@clisp.org>
100077         * modules/ftell-tests: New file.
100078         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
100079         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
100081         * lib/ftell.c: New file.
100082         * modules/ftell: New file.
100083         * m4/ftell.m4: New file.
100084         * doc/functions/ftell.texi: Update.
100085         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
100086         REPLACE_FTELL.
100087         * lib/stdio_.h (rpl_ftell): New declaration.
100088         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
100089         REPLACE_FTELL.
100091 2007-05-28  Eric Blake  <ebb9@byu.net>
100093         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
100095 2007-05-28  Bruno Haible  <bruno@clisp.org>
100097         * modules/fseek-tests: New file.
100098         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
100099         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
100101         * lib/fseek.c: New file.
100102         * modules/fseek: New file.
100103         * m4/fseek.m4: New file.
100104         * doc/functions/fseek.texi: Update.
100105         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
100106         REPLACE_FSEEK.
100107         * lib/stdio_.h (rpl_fseek): New declaration.
100108         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
100109         REPLACE_FSEEK.
100111 2007-05-28  Bruno Haible  <bruno@clisp.org>
100113         * lib/stdio_.h (fflush): More comments.
100115 2007-05-28  Bruno Haible  <bruno@clisp.org>
100117         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
100118         runtime test.
100120 2007-05-28  Eric Blake  <ebb9@byu.net>
100122         Improve lseek module.
100123         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
100124         * lib/unistd_.h (lseek): Scale back link warning message.
100125         * tests/test-lseek.c: Beef up test.
100126         * tests/test-lseek.sh: Exercise more facets of lseek.
100127         Reported by Bruno Haible.
100129 2007-05-28  Bruno Haible  <bruno@clisp.org>
100131         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
100132         to define.
100134 2007-05-27  Bruno Haible  <bruno@clisp.org>
100136         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
100138 2007-05-27  Bruno Haible  <bruno@clisp.org>
100140         * modules/openmp: New file.
100141         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
100142         Noah Misch.
100144 2007-05-26  Bruno Haible  <bruno@clisp.org>
100146         * modules/chdir-long (Depends-on): Add fchdir.
100147         * modules/chdir-safer (Depends-on): Likewise.
100148         * modules/fts (Depends-on): Likewise.
100149         * modules/fts-lgpl (Depends-on): Likewise.
100150         * modules/openat (Depends-on): Likewise.
100151         * modules/savewd (Depends-on): Likewise.
100153 2007-05-24  Eric Blake  <ebb9@byu.net>
100155         Fix lseek on mingw.
100156         * modules/lseek: New module.
100157         * m4/lseek.m4: New file.
100158         * lib/lseek.c: New file.
100159         * modules/lseek-tests: New file.
100160         * tests/test-lseek.c: New file.
100161         * tests/test-lseek.sh: New file.
100162         * MODULES.html.sh: Document lseek module.
100163         * modules/fflush (Depends-on): Add lseek, fseeko.
100164         * modules/fseeko (Depends-on): Likewise.
100165         * modules/ftello (Depends-on): Likewise.
100166         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
100167         broken.
100168         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
100169         broken.
100170         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
100171         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
100172         * lib/ftello.c (rpl_ftello): Likewise.
100173         * tests/test-fseeko.c (main): Test this.
100174         * tests/test-fseeko.sh: Likewise.
100175         * tests/test-ftello.c (main): Likewise.
100176         * tests/test-ftello.sh: Likewise.
100177         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
100178         implies replacing fseek.
100179         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
100180         HAVE_FTELLO.
100181         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
100182         * modules/unistd (Makefile.am): Likewise.
100183         * lib/unistd_.h (lseek): Declare a replacement.
100184         * doc/functions/lseek.texi (lseek): Document this fix.
100185         * doc/functions/fseek.texi (fseek): Likewise.
100186         * doc/functions/ftell.texi (ftell): Likewise.
100188 2007-05-24  Bruno Haible  <bruno@clisp.org>
100190         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
100191         in the printed representation of a NaN.
100192         * tests/test-vasprintf-posix.c (test_function): Likewise.
100193         * tests/test-snprintf-posix.h (test_function): Likewise.
100194         * tests/test-sprintf-posix.h (test_function): Likewise.
100195         Reported by Eric Blake.
100197 2007-05-23  Eric Blake  <ebb9@byu.net>
100199         Fix fseeko/ftello on cygwin 1.5.24.
100200         * doc/functions/fseeko.texi (fseeko): Document the fix.
100201         * doc/functions/ftello.texi (ftello): Document the fix.
100202         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
100203         * doc/functions/stdout.text (stdout): New file.
100204         * doc/functions/stderr.text (stderr): New file.
100205         * doc/gnulib.texi (Function Substitutes): Use new files.
100206         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
100207         prior to 1.7.0.
100208         * tests/test-ftello.c (main): Likewise for ftello.
100209         * tests/test-fseeko.sh: New file.
100210         * tests/test-ftello.sh: New file.
100211         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
100212         with seekable stdin.
100213         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
100214         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
100215         (gl_REPLACE_FSEEKO): New macro.
100216         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
100217         * modules/fseeko (Files): Distribute fseeko.c.
100218         * modules/ftello (Files): Distribute ftello.c.
100219         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
100220         mode.
100221         * lib/ftello.c (rpl_ftello): New file.
100222         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
100223         fseeko, ftello.
100224         (gl_STDIN_LARGE_OFFSET): New macro.
100225         * modules/stdio (Makefile.am): Perform the replacement.
100226         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
100228 2007-05-23  Bruno Haible  <bruno@clisp.org>
100230         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
100231         GNULIB_POSIXCHECK is defined.
100233 2007-05-21  Bruno Haible  <bruno@clisp.org>
100235         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
100236         Check also the output for NaN arguments. When cross-compiling, guess
100237         no on IRIX.
100238         * lib/vasnprintf.c: Update comments.
100239         * tests/test-vasnprintf-posix.c (strisnan): New function.
100240         (test_function): Use it.
100241         * tests/test-vasprintf-posix.c (strisnan): New function.
100242         (test_function): Use it.
100243         * tests/test-snprintf-posix.h (strisnan): New function.
100244         (test_function): Use it.
100245         * tests/test-sprintf-posix.h (strisnan): New function.
100246         (test_function): Use it.
100247         Reported by Eric Blake.
100249 2007-05-20  Bruno Haible  <bruno@clisp.org>
100251         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
100252         numbers that fails on BeOS.
100253         * doc/functions/frexpl.texi: Update.
100255 2007-05-20  Jim Meyering  <jim@meyering.net>
100257         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
100258         forced upon us by glibc-2.6.
100260 2007-05-20  Bruno Haible  <bruno@clisp.org>
100262         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
100263         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
100264         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
100265         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
100266         NEED_PRINTF_INFINITE.
100267         (is_infinitel): New function.
100268         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
100269         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
100270         gl_PREREQ_VASNPRINTF_INFINITE.
100271         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
100272         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
100273         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
100274         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
100275         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
100276         gl_PREREQ_VASNPRINTF_INFINITE.
100277         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
100278         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
100279         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
100280         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
100281         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
100282         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
100283         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
100284         * doc/functions/fprintf.texi: Update.
100285         * doc/functions/printf.texi: Update.
100286         * doc/functions/snprintf.texi: Update.
100287         * doc/functions/sprintf.texi: Update.
100288         * doc/functions/vfprintf.texi: Update.
100289         * doc/functions/vprintf.texi: Update.
100290         * doc/functions/vsnprintf.texi: Update.
100291         * doc/functions/vsprintf.texi: Update.
100293 2007-05-20  Bruno Haible  <bruno@clisp.org>
100295         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
100296         was not found in libc.
100297         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
100299 2007-05-20  Bruno Haible  <bruno@clisp.org>
100301         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
100302         printed as "-nan" instead of "nan".
100303         * tests/test-vasprintf-posix.c (test_function): Likewise.
100304         * tests/test-snprintf-posix.h (test_function): Likewise.
100305         * tests/test-sprintf-posix.h (test_function): Likewise.
100306         Needed for HP-UX 11.
100308 2007-05-20  Jim Meyering  <jim@meyering.net>
100310         Fix buggy test for the fchownat-deref bug.
100311         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
100312         symlink required for the run-test.  Without it, this test would
100313         always declare that fchownat doesn't work, and client code would
100314         unnecessarily use the replacement function with fixed libc.
100315         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
100316         Reported by Greg Schafer.
100318 2007-05-19  Bruno Haible  <bruno@clisp.org>
100320         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
100321         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
100322         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
100323         Needed for IRIX 6.5 and Solaris 2.5.1.
100325 2007-05-19  Bruno Haible  <bruno@clisp.org>
100327         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
100328         (test_function): Skip tests involving -0.0 on platforms where
100329         -0.0 = 0.0.
100330         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
100331         (test_function): Skip tests involving -0.0 on platforms where
100332         -0.0 = 0.0.
100333         * tests/test-snprintf-posix.h (have_minus_zero): New function.
100334         (test_function): Skip tests involving -0.0 on platforms where
100335         -0.0 = 0.0.
100336         * tests/test-sprintf-posix.h (have_minus_zero): New function.
100337         (test_function): Skip tests involving -0.0 on platforms where
100338         -0.0 = 0.0.
100339         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
100340         tests.
100341         * tests/test-printf-posix.h (test_function): Likewise.
100342         * tests/test-printf-posix.output: Remove all -0.0 related results.
100343         Needed for IRIX 6.5.
100345 2007-05-19  Bruno Haible  <bruno@clisp.org>
100347         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
100348         printed as "nan0x7fffffff" instead of "nan".
100349         * tests/test-vasprintf-posix.c (test_function): Likewise.
100350         * tests/test-snprintf-posix.h (test_function): Likewise.
100351         * tests/test-sprintf-posix.h (test_function): Likewise.
100352         * tests/test-fprintf-posix.h (NaN): Remove macro.
100353         (test_function): Remove all NaN related tests.
100354         * tests/test-printf-posix.h (NaN): Remove macro.
100355         (test_function): Remove all NaN related tests.
100356         * tests/test-printf-posix.output: Remove all NaN related results.
100357         Needed for IRIX 6.5.
100359 2007-05-19  Bruno Haible  <bruno@clisp.org>
100361         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
100362         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
100364 2007-05-19  Bruno Haible  <bruno@clisp.org>
100366         * lib/float_.h: New file.
100367         * m4/float_h.m4: New file.
100368         * modules/float: New file.
100369         * modules/isnanl (Dependencies): Add float.
100370         * modules/isnanl-nolibm (Dependencies): Likewise.
100371         * modules/mathl (Dependencies): Likewise.
100372         * modules/printf-frexpl (Dependencies): Likewise.
100373         * modules/signbit (Dependencies): Likewise.
100374         * modules/vasnprintf (Dependencies): Likewise.
100375         * doc/headers/float.texi: Update.
100377 2007-05-19  Jim Meyering  <jim@meyering.net>
100379         * lib/utimens.c (gl_futimens): Rename from futimens,
100380         now that glibc-2.6 declares futimens.
100381         * lib/utimens.h: Likewise.
100383 2007-05-19  Bruno Haible  <bruno@clisp.org>
100385         Avoid test failures on mingw.
100386         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
100387         * tests/test-printf-posix.sh: Likewise.
100388         * tests/test-vfprintf-posix.sh: Likewise.
100389         * tests/test-vprintf-posix.sh: Likewise.
100391 2007-05-19  Bruno Haible  <bruno@clisp.org>
100393         Fix *printf result for NaN, Inf, -0.0 on mingw.
100394         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
100395         * lib/vasnprintf.c: Include math.h and isnan.h.
100396         (is_infinite_or_zero): New function.
100397         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
100398         values in the %f, %F, %e, %E, %g, %G directives.
100399         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
100400         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
100401         gl_PRINTF_INFINITE and test its result. Invoke
100402         gl_PREREQ_VASNPRINTF_INFINITE.
100403         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
100404         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
100405         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
100406         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
100407         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
100408         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
100409         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
100410         * doc/functions/fprintf.texi: Update.
100411         * doc/functions/printf.texi: Update.
100412         * doc/functions/snprintf.texi: Update.
100413         * doc/functions/sprintf.texi: Update.
100414         * doc/functions/vfprintf.texi: Update.
100415         * doc/functions/vprintf.texi: Update.
100416         * doc/functions/vsnprintf.texi: Update.
100417         * doc/functions/vsprintf.texi: Update.
100419 2007-05-19  Bruno Haible  <bruno@clisp.org>
100421         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
100422         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
100423         Instead of multiplying with 10^k, set extra_zeroes to k.
100424         (scale10_round_long_double): Remove function.
100426 2007-05-18  Bruno Haible  <bruno@clisp.org>
100428         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
100429         introduced on 2007-05-06.
100431 2007-05-18  Bruno Haible  <bruno@clisp.org>
100433         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
100434         %g directives.
100435         * tests/test-vasprintf-posix.c (test_function): Likewise.
100436         * tests/test-snprintf-posix.h (test_function): Likewise.
100437         * tests/test-sprintf-posix.h (test_function): Likewise.
100439 2007-05-18  Bruno Haible  <bruno@clisp.org>
100441         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
100442         (strmatch): New function.
100443         (test_function): Test the %f directive on numbers of various exponents.
100444         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
100445         (strmatch): New function.
100446         (test_function): Test the %f directive on numbers of various exponents.
100447         * tests/test-snprintf-posix.h (strmatch): New function.
100448         (test_function): Test the %f directive on numbers of various exponents.
100449         * tests/test-sprintf-posix.h (strmatch): New function.
100450         (test_function): Test the %f directive on numbers of various exponents.
100451         * tests/test-snprintf-posix.c (SIZEOF): New macro.
100452         * tests/test-sprintf-posix.c (SIZEOF): New macro.
100453         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
100454         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
100456 2007-05-18  Bruno Haible  <bruno@clisp.org>
100458         Add support for 'long double' number output.
100459         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
100460         * lib/vasnprintf.c: Include math.h and float+.h.
100461         (mp_limb_t): New type.
100462         (GMP_LIMB_BITS): New macro.
100463         (mp_twolimb_t): New type.
100464         (GMP_TWOLIMB_BITS): New macro.
100465         (mpn_t): New type.
100466         (multiply, divide, convert_to_decimal, decode_long_double,
100467         scale10_round_long_double, scale10_round_decimal_long_double,
100468         floorlog10l): New functions.
100469         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
100470         for the %f, %F, %e, %E, %g, %G directives.
100471         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
100472         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
100473         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
100474         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
100475         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
100476         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
100477         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
100478         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
100479         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
100480         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
100481         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
100482         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
100483         * modules/snprintf-posix (Depends-on): Likewise.
100484         * modules/sprintf-posix (Depends-on): Likewise.
100485         * modules/vasnprintf-posix (Depends-on): Likewise.
100486         * modules/vasprintf-posix (Depends-on): Likewise.
100487         * modules/vfprintf-posix (Depends-on): Likewise.
100488         * modules/vsnprintf-posix (Depends-on): Likewise.
100489         * modules/vsprintf-posix (Depends-on): Likewise.
100490         * modules/vasnprintf (Files): Add lib/float+.h.
100491         * doc/functions/fprintf.texi: Update.
100492         * doc/functions/printf.texi: Update.
100493         * doc/functions/snprintf.texi: Update.
100494         * doc/functions/sprintf.texi: Update.
100495         * doc/functions/vfprintf.texi: Update.
100496         * doc/functions/vprintf.texi: Update.
100497         * doc/functions/vsnprintf.texi: Update.
100498         * doc/functions/vsprintf.texi: Update.
100500 2007-05-18  Bruno Haible  <bruno@clisp.org>
100502         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
100504 2007-05-18  Bruno Haible  <bruno@clisp.org>
100506         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
100507         for printing 64-bit integers. Needed for mingw.
100509 2007-05-18  Bruno Haible  <bruno@clisp.org>
100511         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
100512         gl_FUNC_FREXPL_WORKS.
100513         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
100515 2007-05-18  Bruno Haible  <bruno@clisp.org>
100517         * modules/frexpl-nolibm-tests: New file.
100519         * modules/frexpl-nolibm: New file.
100520         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
100522 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
100524         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
100525         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
100526         GCC 4.2, which otherwise issues a lot of warnings.
100527         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
100528         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
100529         Likewise.
100530         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
100531         * modules/iconv_open (iconv.h): Likewise.
100532         * modules/locale (locale.h): Likewise.
100533         * modules/netinet_in (netinet/in.h): Likewise.
100534         * modules/sys_select (sys_select.h): Likewise.
100535         * modules/sys_socket (sys/socket.h): Likewise.
100536         * modules/sys_stat (sys/stat.h): Likewise.
100537         * modules/sysexits (sysexits.h): Likewise.
100538         * modules/unistd (unistd.h): Likewise.
100540 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
100542         * modules/closein-tests (Makefile.am): Distribute
100543         `test-closein.sh'.
100545 2007-05-17  Bruno Haible  <bruno@clisp.org>
100547         * tests/test-printf-posix.output: Renamed from
100548         tests/test-fprintf-posix.out.
100549         * modules/fprintf-posix-tests: Update.
100550         * modules/printf-posix-tests: Update.
100551         * modules/vfprintf-posix-tests: Update.
100552         * modules/vprintf-posix-tests: Update.
100553         * tests/test-fprintf-posix.sh: Update.
100554         * tests/test-printf-posix.sh: Update.
100555         * tests/test-vfprintf-posix.sh: Update.
100556         * tests/test-vprintf-posix.sh: Update.
100557         Reported by Ralf Wildenhues.
100559 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
100561         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
100562         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
100563         GCC 4.2, which otherwise issues a lot of warnings.
100564         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
100565         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
100566         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
100567         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
100568         it should no longer be needed.
100569         * lib/string_.h: Likewise.
100570         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
100571         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
100572         * modules/inttypes (inttypes.h): Likewise.
100573         * modules/math (math.h): Likewise.
100574         * modules/search (search.h): Likewise.
100575         * modules/signal (signal.h): Likewise.
100576         * modules/stdint (stdint.h): Likewise.
100577         * modules/stdio (stdio.h): Likewise.
100578         * modules/stdlib (stdlib.h): Likewise.
100579         * modules/string (string.h): Likewise.
100580         * modules/sys_time (sys/time.h): Likewise.
100581         * modules/time (time.h): Likewise.
100582         * modules/wchar (wchar.h): Likewise.
100583         * modules/wctype (wtype.h): Likewise.
100585 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
100587         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
100589 2007-05-13  Bruno Haible  <bruno@clisp.org>
100591         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
100592         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
100593         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
100594         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
100595         (gl_PREREQ_STRTOK_R): Don't require it here.
100597 2007-05-13  Bruno Haible  <bruno@clisp.org>
100599         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
100600         when used in C++ mode.
100602 2007-05-12  Bruno Haible  <bruno@clisp.org>
100604         * lib/linebuffer.h: Tweak doc.
100605         * lib/linebuffer.c: Likewise.
100607 2007-05-12  James Youngman  <jay@gnu.org>
100609         * lib/linebuffer.c (readlinebuffer_delim): New function,
100610         like readlinebuffer, but use a caller-specified delimiter.
100611         (readlinebuffer): Just call readlinebuffer_delim with '\n'
100612         as the delimiter.
100613         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
100615 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
100617         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
100618         * modules/openat (Files): Remove openat-die.c.
100619         (Depends-on): Add openat-die.
100620         * modules/openat-die: New module.
100622 2007-05-06  Bruno Haible  <bruno@clisp.org>
100624         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
100625         Update with info about Cygwin.
100626         * doc/functions/fprintf.texi: Update.
100627         * doc/functions/printf.texi: Update.
100628         * doc/functions/snprintf.texi: Update.
100629         * doc/functions/sprintf.texi: Update.
100630         * doc/functions/vfprintf.texi: Update.
100631         * doc/functions/vprintf.texi: Update.
100632         * doc/functions/vsnprintf.texi: Update.
100633         * doc/functions/vsprintf.texi: Update.
100634         Reported by Eric Blake.
100636 2007-05-06  Bruno Haible  <bruno@clisp.org>
100638         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
100639         padding ourselves for the floating-point directives.
100640         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
100641         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
100642         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
100643         gl_PRINTF_FLAG_ZERO and test its result. Invoke
100644         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
100645         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
100646         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
100647         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
100648         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
100649         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
100650         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
100651         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
100652         * tests/test-snprintf-posix.h (test_function): Also check the width
100653         and some flags in the %f directive.
100654         * tests/test-sprintf-posix.h (test_function): Likewise.
100655         * tests/test-vasnprintf-posix.c (test_function): Likewise.
100656         * tests/test-vasprintf-posix.c (test_function): Likewise.
100657         * doc/functions/fprintf.texi: Update.
100658         * doc/functions/printf.texi: Update.
100659         * doc/functions/snprintf.texi: Update.
100660         * doc/functions/sprintf.texi: Update.
100661         * doc/functions/vfprintf.texi: Update.
100662         * doc/functions/vprintf.texi: Update.
100663         * doc/functions/vsnprintf.texi: Update.
100664         * doc/functions/vsprintf.texi: Update.
100666 2007-05-06  Bruno Haible  <bruno@clisp.org>
100668         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
100669         pass the ' flag character to sprintf or snprintf.
100670         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
100671         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
100672         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
100673         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
100674         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
100675         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
100676         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
100677         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
100678         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
100679         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
100680         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
100681         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
100682         * tests/test-snprintf-posix.h (test_function): Also check the grouping
100683         flag.
100684         * tests/test-sprintf-posix.h (test_function): Likewise.
100685         * tests/test-vasnprintf-posix.c (test_function): Likewise.
100686         * tests/test-vasprintf-posix.c (test_function): Likewise.
100687         * doc/functions/fprintf.texi: Update.
100688         * doc/functions/printf.texi: Update.
100689         * doc/functions/snprintf.texi: Update.
100690         * doc/functions/sprintf.texi: Update.
100691         * doc/functions/vfprintf.texi: Update.
100692         * doc/functions/vprintf.texi: Update.
100693         * doc/functions/vsnprintf.texi: Update.
100694         * doc/functions/vsprintf.texi: Update.
100696 2007-05-01  Bruno Haible  <bruno@clisp.org>
100698         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
100700 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
100702         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
100703         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
100705 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
100707         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
100708         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
100709         <http://lists.gnu.org/r/bug-gnulib/2007-05/msg00021.html>.
100711 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
100713         * lib/argp-help.c (struct hol_entry): New member `ord'.
100714         (HOL_ENTRY_PTRCMP): Use ord for comparison
100715         (hol_sort): Initialize ord.
100717 2007-05-01  Bruno Haible  <bruno@clisp.org>
100719         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
100720         Reported by Eric Blake.
100721         * doc/gnulib.texi (Function Substitutes): Update.
100723 2007-05-01  Bruno Haible  <bruno@clisp.org>
100725         * doc/functions.texi: Remove file, now redundant through
100726         doc/functions/*.texi.
100728 2007-05-01  Bruno Haible  <bruno@clisp.org>
100730         * modules/argp (Depends-on): Add sleep.
100732 2007-05-01  Bruno Haible  <bruno@clisp.org>
100734         * modules/sleep-tests: New file.
100735         * tests/test-sleep.c: New file.
100737         * modules/sleep: New file.
100738         * lib/sleep.c: New file.
100739         * m4/sleep.m4: New file.
100740         * lib/unistd_.h (sleep): New declaration.
100741         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
100742         HAVE_SLEEP.
100743         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
100744         * doc/functions/sleep.texi: Document the sleep module.
100746 2007-05-01  Bruno Haible  <bruno@clisp.org>
100748         * lib/sigprocmask.h: Remove file.
100749         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
100750         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
100751         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
100752         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
100753         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
100754         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
100755         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
100756         HAVE_SIGSET_T as a shell variable.
100757         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
100758         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
100759         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
100760         (Depends-on): Add signal. Remove verify.
100761         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
100762         (Include): Mention <signal.h> instead of sigprocmask.h.
100763         * NEWS: Mention the change.
100764         * lib/fatal-signal.c: Don't include sigprocmask.h.
100766 2007-05-01  Bruno Haible  <bruno@clisp.org>
100768         * modules/signal: New file.
100769         * lib/signal_.h: New file.
100770         * m4/signal_h.m4: New file.
100772 2007-05-01  Bruno Haible  <bruno@clisp.org>
100774         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
100775         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
100776         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
100777         HAVE_WCTYPE_CTMP_BUG into wctype.h.
100779 2007-05-01  Bruno Haible  <bruno@clisp.org>
100781         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
100782         configure time.
100783         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
100784         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
100785         * modules/sys_stat (Makefile.am): Substitute their values into
100786         sys/stat.h.
100788 2007-05-01  Bruno Haible  <bruno@clisp.org>
100790         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
100791         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
100792         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
100794 2007-05-01  Bruno Haible  <bruno@clisp.org>
100796         * doc/header/assert.texi: Undo last change: don't mention the gnulib
100797         'assert' module here.
100799 2007-05-01  Bruno Haible  <bruno@clisp.org>
100801         * doc/functions/*.texi: New files.
100802         * doc/functions/google-ranking.txt: New file.
100803         * doc/gnulib.texi (Function Substitutes): New chapter.
100804         (ctime, inet_ntoa): Remove sections.
100805         * doc/ctime.texi: Remove file.
100806         * doc/inet_ntoa.texi: Remove file.
100807         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
100808         dependencies.
100809         (%.info): New rule, specifying a --reference-limit.
100811 2007-05-01  Bruno Haible  <bruno@clisp.org>
100813         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
100815 2007-05-01  Bruno Haible  <bruno@clisp.org>
100817         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
100818         the portability of 'mkdir' to mingw systems.
100820 2007-05-01  Bruno Haible  <bruno@clisp.org>
100822         * doc/headers/google-ranking.txt: New file.
100824 2007-04-30  Eric Blake  <ebb9@byu.net>
100826         Prefer fseeko to fseek.
100827         * modules/getpass (Depends-on): Add fseeko.
100828         * lib/getpass.c (getpass): Use fseeko, not fseek.
100830 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
100832         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
100833         assumes the sorting is stable, while most qsort implementations
100834         are not.  Use argument addresses to ensure they never compare as
100835         equal.
100837         * tests/test-argp-2.sh (usage-indent test): Fix output
100838         (func_compare): Restore diff options
100839         * tests/test-argp.c: Restore #include "progname.h"
100841 2007-04-29  Bruno Haible  <bruno@clisp.org>
100843         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
100844         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
100845         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
100846         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
100847         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
100848         (configure.ac): Define CHECK_SNPRINTF_POSIX.
100849         (TESTS, check_PROGRAMS): Add test-snprintf.
100850         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
100851         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
100852         (TESTS, check_PROGRAMS): Add test-vsnprintf.
100853         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
100854         assertions that fail on HP-UX, OSF/1, or IRIX.
100855         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
100857 2007-04-29  Bruno Haible  <bruno@clisp.org>
100859         * MODULES.html.sh (posix_functions): Remove 'contents'.
100861 2007-04-29  Karl Berry  <karl@gnu.org>
100863         * config/srclist.txt (gendocs_template_min): new entry.
100865 2007-04-29  Bruno Haible  <bruno@clisp.org>
100867         Work around fpurge bug on BSD systems.
100868         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
100869         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
100870         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
100871         fpurge to rpl_fpurge if the system already has this function.
100872         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
100873         the case where the system already has this function. Correct invariants
100874         on BSD systems.
100875         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
100876         BSD systems.
100878 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
100880         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
100881         proposed by Sven Verdoolaege.
100883         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
100884         options.
100885         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
100886         (usage and help tests): Update
100888 2007-04-29  Bruno Haible  <bruno@clisp.org>
100890         * tests/test-fflush.c (main): Use a file of size 17, not 10.
100891         Print more information in case of failure. Disable a test on BeOS.
100893 2007-04-29  Bruno Haible  <bruno@clisp.org>
100895         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
100896         This helps debugging on systems on which no gdb is available.
100898 2007-04-29  Bruno Haible  <bruno@clisp.org>
100900         * lib/freading.h: Improve comments.
100901         * lib/fwriting.h: Likewise.
100902         * tests/test-freading.c (main): Don't check freading immediately after
100903         repositioning. Needed for glibc.
100905 2007-04-29  Bruno Haible  <bruno@clisp.org>
100907         * lib/freading.c (freading): Trivial simplification.
100909 2007-04-28  Bruno Haible  <bruno@clisp.org>
100911         * tests/test-fwriting.c (main): Also test the interaction between
100912         fflush and fwriting.
100913         * modules/fwriting-tests (Depends-on): Add fflush.
100915         * tests/test-freading.c (main): Also test the interaction between
100916         fflush and freading.
100917         * modules/freading-tests (Depends-on): Add fflush.
100919 2007-04-28  Bruno Haible  <bruno@clisp.org>
100921         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
100922         fseeko and ftello.
100923         Suggested by Eric Blake.
100925 2007-04-28  Jim Meyering  <jim@meyering.net>
100927         Avoid false-negative in gl_STDINT_H's C99 conformance test.
100928         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
100929         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
100931 2007-04-27  Eric Blake  <ebb9@byu.net>
100933         * doc/headers/assert.texi (assert.h): Document assert module use.
100935 2007-04-27  Bruno Haible  <bruno@clisp.org>
100937         * doc/headers/*.texi: New files.
100938         * doc/gnulib.texi (Header File Substitutes): New chapter.
100939         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
100940         dependencies.
100941         (standards.info ,standards.html, standards.dvi): Update dependencies.
100942         (mostlyclean, clean): New targets.
100944 2007-04-27  Bruno Haible  <bruno@clisp.org>
100946         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
100947         * modules/sysexits (Files, Makefile.am): Update.
100949         * lib/sys_socket_.h: Renamed from lib/socket_.h.
100950         * modules/sys_socket (Files, Makefile.am): Update.
100952         * lib/sys_stat_.h: Renamed from lib/stat_.h.
100953         * modules/sys_stat (Files, Makefile.am): Update.
100955 2007-04-27  Eric Blake  <ebb9@byu.net>
100957         * lib/freading.h: Improve comments.
100958         * lib/fwriting.h: Likewise.
100959         * lib/fflush.c: Likewise.
100961         Fix closein for mingw.
100962         * modules/closein-tests: Add tests for closein.
100963         * tests/test-closein.c: New file.
100964         * tests/test-closein.sh: Likewise.
100965         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
100966         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
100968 2007-04-27  Bruno Haible  <bruno@clisp.org>
100970         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
100971         version is < 6.
100972         * lib/math_.h [__DECC]: Likewise.
100973         * lib/stdio_.h [__DECC]: Likewise.
100974         * lib/stdlib_.h [__DECC]: Likewise.
100975         * lib/string_.h [__DECC]: Likewise.
100976         * lib/time_.h [__DECC]: Likewise.
100977         * lib/wchar_.h [__DECC]: Likewise.
100978         * lib/wctype_.h [__DECC]: Likewise.
100980 2007-04-27  Bruno Haible  <bruno@clisp.org>
100982         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
100984 2007-04-27  Bruno Haible  <bruno@clisp.org>
100986         * lib/fflush.c: Add comments.
100987         * modules/fpurge-tests (Depends-on): Add fflush.
100988         * modules/freadable-tests (Depends-on): Likewise.
100989         * modules/fwritable-tests (Depends-on): Likewise.
100991 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
100993         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
100994         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
100995         Report by Bruno Haible <bruno@clisp.org>.
100997 2007-04-26  Eric Blake  <ebb9@byu.net>
100999         Fix fflush on mingw.
101000         * modules/fflush (Depends-on): Add freading.
101001         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
101002         but unread data.
101004 2007-04-26  Eric Blake  <ebb9@byu.net>
101005         and Bruno Haible  <bruno@clisp.org>
101007         Implement freading and fwriting.
101008         * lib/freading.c: New file.
101009         * lib/freading.h: Likewise.
101010         * m4/freading.m4: Likewise.
101011         * modules/freading: Likewise.
101012         * modules/freading-tests: Likewise.
101013         * tests/test-freading.c: Likewise.
101014         * lib/fwriting.c: New file.
101015         * lib/fwriting.h: Likewise.
101016         * m4/fwriting.m4: Likewise.
101017         * modules/fwriting: Likewise.
101018         * modules/fwriting-tests: Likewise.
101019         * tests/test-fwriting.c: Likewise.
101020         * MODULES.html.sh (File stream based Input/Output): Mention them.
101022 2007-04-26  Bruno Haible  <bruno@clisp.org>
101024         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
101025         'long' when we assume it.
101026         Suggested by Eric Blake.
101028 2007-04-26  Bruno Haible  <bruno@clisp.org>
101030         Ensure fseeko, ftello are declared on glibc systems.
101031         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
101032         * modules/fseeko (configure.ac-early): Likewise.
101033         * modules/ftello (configure.ac-early): Likewise.
101034         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
101035         AC_FUNC_FSEEKO for this.
101036         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
101037         (gl_CHECK_FSEEKO): Remove macro.
101039 2007-04-26  Bruno Haible  <bruno@clisp.org>
101041         * tests/test-fflush.c (main): Also check the ftell result after
101042         fflush and fseek/fseeko.
101043         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
101044         file descriptor position cache in the stream.
101045         * lib/fseeko.c (rpl_fseeko): Likewise.
101047 2007-04-26  Bruno Haible  <bruno@clisp.org>
101049         * modules/fflush-tests (Depends-on): Add fseeko.
101051 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
101052             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
101054         * lib/argz_.h: ensure error_t definition is obtained in same
101055         mechanism system argz.h would have.
101056         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
101057         argz facilities are known bad.  Err on the side of caution if
101058         cross-compiling.
101060 2007-04-25  Eric Blake  <ebb9@byu.net>
101062         * lib/fpurge.c (includes): Use stdlib.h for free.
101063         * tests/test-fflush.c (main): Also test fflush-fseeko.
101065 2007-04-25  Bruno Haible  <bruno@clisp.org>
101067         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
101068         * lib/fseeko.c: New file.
101069         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
101070         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
101071         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
101072         gl_FUNC_FSEEKO.
101073         (gl_FUNC_FSEEKO): Invoke it.
101074         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
101075         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
101076         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
101078 2007-04-25  Bruno Haible  <bruno@clisp.org>
101080         * modules/fflush (Depends-on): Add ftello.
101082 2007-04-25  Bruno Haible  <bruno@clisp.org>
101084         * modules/ftello-tests: New file.
101085         * tests/test-ftello.c: New file.
101087         * modules/ftello: New file.
101088         * m4/ftello.m4: New file.
101089         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
101090         HAVE_FTELLO.
101091         * lib/stdio_.h (ftello): New declaration.
101092         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
101093         HAVE_FTELLO.
101095 2007-04-25  Bruno Haible  <bruno@clisp.org>
101097         * modules/fseeko-tests: New file.
101098         * tests/test-fseeko.c: New file.
101100         * modules/fseeko: New file.
101101         * m4/fseeko.m4: New file.
101102         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
101103         HAVE_FSEEKO.
101104         * lib/stdio_.h (fseeko): New declaration.
101105         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
101106         HAVE_FSEEKO.
101108 2007-04-25  Bruno Haible  <bruno@clisp.org>
101110         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
101112 2007-04-25  Bruno Haible  <bruno@clisp.org>
101114         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
101115         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
101116         * tests/test-unistd.c: Likewise.
101117         * tests/test-fcntl.c: Likewise.
101119 2007-04-23  Eric Blake  <ebb9@byu.net>
101121         * lib/fflush.c: Fix missing include.
101122         Reported by Bruno Haible.
101124 2007-04-23  Bruno Haible  <bruno@clisp.org>
101126         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
101127         Reported by Eric Blake.
101129 2007-04-23  Bruno Haible  <bruno@clisp.org>
101131         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
101133 2007-04-23  Bruno Haible  <bruno@clisp.org>
101135         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
101137 2007-04-23  Bruno Haible  <bruno@clisp.org>
101139         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
101140         Needed on HP-UX 11.
101142 2007-04-16  Eric Blake  <ebb9@byu.net>
101144         Make fflush rely on fpurge.
101145         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
101146         open coding all variants.
101147         * modules/fflush (Depends-on): Add fpurge and unistd.
101148         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
101149         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
101151         Fix --with-tests compilation on cygwin.
101152         * modules/argmatch-tests (Makefile.am): List gnulib library first
101153         in LDADD.
101154         * modules/argp-tests (Makefile.am): Likewise.
101155         * modules/array-list-tests (Makefile.am): Likewise.
101156         * modules/array-oset-tests (Makefile.am): Likewise.
101157         * modules/avltree-list-tests (Makefile.am): Likewise.
101158         * modules/avltree-oset-tests (Makefile.am): Likewise.
101159         * modules/avltreehash-list-tests (Makefile.am): Likewise.
101160         * modules/carray-list-tests (Makefile.am): Likewise.
101161         * modules/dirname-tests (Makefile.am): Likewise.
101162         * modules/frexp-tests (Makefile.am): Likewise.
101163         * modules/isnanl-tests (Makefile.am): Likewise.
101164         * modules/linked-list-tests (Makefile.am): Likewise.
101165         * modules/linkedhash-list-tests (Makefile.am): Likewise.
101166         * modules/lock-tests (Makefile.am): Likewise.
101167         * modules/rbtree-list-tests (Makefile.am): Likewise.
101168         * modules/rbtree-oset-tests (Makefile.am): Likewise.
101169         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
101170         * modules/tls-tests (Makefile.am): Likewise.
101171         * modules/tsearch-tests (Makefile.am): Likewise.
101172         * modules/xvasprintf-tests (Makefile.am): Likewise.
101174         Fix fpurge for cygwin.
101175         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
101176         value.
101177         * modules/fpurge-tests (Depends-on): Clean up trash.
101179 2007-04-16  Simon Josefsson  <simon@josefsson.org>
101181         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
101183         * m4/autobuild.m4: Re-indent.
101185 2007-04-13  Bruno Haible  <bruno@clisp.org>
101187         * modules/fpurge-tests: New file.
101188         * tests/test-fpurge.c: New file.
101190         * modules/fpurge: New file.
101191         * lib/fpurge.h: New file.
101192         * lib/fpurge.c: New file.
101193         * m4/fpurge.m4: New file.
101195 2007-04-13  Bruno Haible  <bruno@clisp.org>
101197         * modules/fbufmode-tests: New file.
101198         * tests/test-fbufmode.c: New file.
101200         * modules/fbufmode: New file.
101201         * lib/fbufmode.h: New file.
101202         * lib/fbufmode.c: New file.
101203         * m4/fbufmode.m4: New file.
101205 2007-04-13  Bruno Haible  <bruno@clisp.org>
101207         * modules/fwritable-tests: New file.
101208         * tests/test-fwritable.c: New file.
101210         * modules/fwritable: New file.
101211         * lib/fwritable.h: New file.
101212         * lib/fwritable.c: New file.
101213         * m4/fwritable.m4: New file.
101215 2007-04-13  Bruno Haible  <bruno@clisp.org>
101217         * modules/freadable-tests: New file.
101218         * tests/test-freadable.c: New file.
101220         * modules/freadable: New file.
101221         * lib/freadable.h: New file.
101222         * lib/freadable.c: New file.
101223         * m4/freadable.m4: New file.
101225 2007-04-13  Bruno Haible  <bruno@clisp.org>
101227         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
101228         MOSTLYCLEANFILES.
101230 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
101232         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
101233         gzip bootstrap.conf to avoid dragging in i18n machinery.
101234         (gnulib_tool_option): Use it.
101236 2007-04-13  Bruno Haible  <bruno@clisp.org>
101238         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
101239         %F directives.
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-13  Bruno Haible  <bruno@clisp.org>
101249         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
101250         * modules/tls-tests (configure.ac): Likewise.
101251         Reported by Arto C. Nirkko <anirkko@insel.ch>.
101253 2007-04-13  Bruno Haible  <bruno@clisp.org>
101255         * lib/tls.c (glthread_tls_get): Fix return type.
101256         Patch by Arto C. Nirkko <anirkko@insel.ch>.
101258 2007-04-12  Eric Blake  <ebb9@byu.net>
101260         * modules/gettime (Depends-on): Remove gettime.
101261         Reported by Dmitry V. Levin.
101263 2007-04-12  Bruno Haible  <bruno@clisp.org>
101265         * modules/fflush (Include): Mention <stdio.h>.
101266         * modules/strtoimax (Include): Mention <inttypes.h>.
101267         * modules/strtoumax (Include): Likewise.
101269 2007-04-12  Eric Blake  <ebb9@byu.net>
101271         * .cvsignore: New file.
101272         * .gitignore: Likewise.
101274 2007-04-12  Bruno Haible  <bruno@clisp.org>
101276         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
101277         not before, since $(LDADD) often contains libgnu.a.
101278         * modules/striconv-tests (test_striconv_LDADD): Likewise.
101279         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
101280         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
101281         Needed on Cygwin.
101283 2007-04-12  Eric Blake  <ebb9@byu.net>
101285         Work around glibc's failure to flush stdin on fclose.
101286         * lib/closein.c (close_stdin): Flush stdin before closing.
101288         Work around glibc's failure to reset seekable stdin on exit.
101289         * modules/closein: New module.
101290         * lib/closein.c: New file.
101291         * lib/closein.h: Likewise.
101292         * m4/closein.m4: Likewise.
101293         * MODULES.html.sh (File stream based Input/Output): Document it.
101295 2007-04-12  Simon Josefsson  <simon@josefsson.org>
101297         * gnulib-tool: Rename generated 'autobuild' script to
101298         'do-autobuild' in --create-megatestdir output.
101300         * doc/gnulib.texi (Build robot for gnulib): Fix.
101302 2007-04-12  Simon Josefsson  <simon@josefsson.org>
101304         * modules/sysexits (Depends-on): Add absolute-header.
101306 2007-04-12  Eric Blake  <ebb9@byu.net>
101308         No need to preserve errno on success.
101309         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
101310         Reported by Bruno Haible.
101312 2007-04-12  Simon Josefsson  <simon@josefsson.org>
101314         * MODULES.html.sh (Support for maintaining and releasing
101315         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
101317 2007-04-12  Simon Josefsson  <simon@josefsson.org>
101319         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
101321 2007-04-12  Simon Josefsson  <simon@josefsson.org>
101323         * modules/autobuild: New module.
101325         * m4/autobuild.m4: New file.
101327 2007-04-11  Bruno Haible  <bruno@clisp.org>
101329         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
101330         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
101331         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
101332         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
101333         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
101334         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
101335         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
101336         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
101337         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
101338         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
101339         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
101340         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
101341         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
101342         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
101343         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
101344         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
101345         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
101346         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
101347         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
101348         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
101349         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
101350         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
101351         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
101352         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
101353         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
101354         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
101355         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
101356         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
101357         Reported by Eric Blake.
101359 2007-04-11  Bruno Haible  <bruno@clisp.org>
101361         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
101363 2007-04-10  Bruno Haible  <bruno@clisp.org>
101365         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
101366         for NaN and Infinity. Needed on FreeBSD 6.1.
101367         * tests/test-vasnprintf-posix.c (test_function): Undo last change
101368         regarding results for "%010a" of Infinity and NaN.
101369         * tests/test-vasprintf-posix.c (test_function): Likewise.
101370         * tests/test-snprintf-posix.h (test_function): Likewise.
101371         * tests/test-sprintf-posix.h (test_function): Likewise.
101372         * tests/test-fprintf-posix.h (test_function): Likewise.
101373         * tests/test-printf-posix.h (test_function): Likewise.
101374         * tests/test-fprintf-posix.out: Likewise.
101376 2007-04-10  Bruno Haible  <bruno@clisp.org>
101378         * modules/locale-tests: New file.
101379         * tests/test-locale.c: New file.
101381         * modules/locale: New file.
101382         * lib/locale_.h: New file.
101383         * m4/locale_h.m4: New file.
101385 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
101386             Bruno Haible  <bruno@clisp.org>
101388         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
101389         be determined, test for availability of the copysignf, copysign,
101390         copysignl functions.
101391         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
101392         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
101393         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
101395 2007-04-09  Eric Blake  <ebb9@byu.net>
101397         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
101398         * modules/stdio (Makefile.am): Support fflush.
101399         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
101400         * modules/fflush: New file.
101401         * lib/fflush.c: Likewise.
101402         * m4/fflush.m4: Likewise.
101403         * modules/fflush-tests: New test.
101404         * tests/test-fflush.c: Likewise.
101405         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
101407 2007-04-06  Bruno Haible  <bruno@clisp.org>
101409         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
101410         (VASNPRINTF): Use signbit for faster determination whether to print a
101411         minus sign.
101412         * modules/vasnprintf (Files): Remove lib/float+.h.
101413         * modules/fprintf-posix (Depends-on): Add signbit.
101414         * modules/snprintf-posix (Depends-on): Likewise.
101415         * modules/sprintf-posix (Depends-on): Likewise.
101416         * modules/vasnprintf-posix (Depends-on): Likewise.
101417         * modules/vasprintf-posix (Depends-on): Likewise.
101418         * modules/vfprintf-posix (Depends-on): Likewise.
101419         * modules/vsnprintf-posix (Depends-on): Likewise.
101420         * modules/vsprintf-posix (Depends-on): Likewise.
101422 2007-04-06  Bruno Haible  <bruno@clisp.org>
101424         * tests/test-frexp.c (main): Test also the sign bit of zero results.
101425         * tests/test-frexpl.c (main): Likewise.
101426         * tests/test-ldexpl.c (main): Likewise.
101427         * modules/frexp-tests (Depends-on): Add signbit.
101428         * modules/frexpl-tests (Depdends-on): Likewise.
101429         * modules/ldexpl-tests (Depdends-on): Likewise.
101431 2007-04-06  Bruno Haible  <bruno@clisp.org>
101433         * modules/signbit-tests: New file.
101434         * tests/test-signbit.c: New file.
101436         * modules/signbit: New file.
101437         * lib/signbitf.c: New file.
101438         * lib/signbitd.c: New file.
101439         * lib/signbitl.c: New file.
101440         * m4/signbit.m4: New file.
101441         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
101442         (signbit): New macro.
101443         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
101444         REPLACE_SIGNBIT.
101445         * modules/math (Makefile.am): Substitute also GNULIB_SIGNBIT and
101446         REPLACE_FREXPL into math.h.
101448 2007-04-06  Bruno Haible  <bruno@clisp.org>
101450         * modules/isnanf-nolibm-tests: New file.
101451         * tests/test-isnanf.c: New file.
101453         * modules/isnanf-nolibm: New file.
101454         * lib/isnanf.h: New file.
101455         * lib/isnanf.c: New file.
101456         * lib/isnan.c: Consider the USE_FLOAT macro.
101457         * m4/isnanf.m4: New file.
101459 2007-04-06  Bruno Haible  <bruno@clisp.org>
101461         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
101462         (Link): New section.
101464         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
101466 2007-04-06  Bruno Haible  <bruno@clisp.org>
101468         Assume the 'long double' type.
101469         * m4/longdouble.m4: Remove file.
101470         * config/srclist.txt: Don't mention longdouble.m4.
101471         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
101472         * lib/float+.h: Likewise.
101473         * lib/frexp.c: Likewise.
101474         * lib/printf-args.h: Likewise.
101475         * lib/printf-args.c: Likewise.
101476         * lib/printf-frexp.c: Likewise.
101477         * lib/printf-parse.c: Likewise.
101478         * lib/vasnprintf.c: Likewise.
101479         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
101480         * m4/intl.m4: Likewise.
101481         * m4/isnanl.m4: Likewise.
101482         * m4/printf.m4: Likewise.
101483         * m4/printf-frexpl.m4: Likewise.
101484         * m4/vasnprintf.m4: Likewise.
101485         * modules/allocsa (Files): Remove m4/longdouble.m4.
101486         * modules/gettext (Files): Likewise.
101487         * modules/relocatable-prog-wrapper (Files): Likewise.
101488         * modules/vasnprintf (Files): Likewise.
101489         * modules/isnanl (Files): Likewise.
101490         (Include): Simplify.
101491         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
101492         (Include): Simplify.
101493         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
101494         (Include): Simplify.
101495         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
101496         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
101497         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
101498         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
101499         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
101500         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
101501         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
101502         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
101503         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
101504         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
101505         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
101506         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
101507         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
101508         * tests/test-isnanl.c: Likewise.
101509         * tests/test-snprintf-posix.h: Likewise.
101510         * tests/test-sprintf-posix.h: Likewise.
101511         * tests/test-vasnprintf-posix.c: Likewise.
101512         * tests/test-vasnprintf-posix2.c: Likewise.
101513         * tests/test-vasprintf-posix.c: Likewise.
101515 2007-04-06  Bruno Haible  <bruno@clisp.org>
101517         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
101518         * lib/math_.h [__DECC]: Include the overridden include file through
101519         #include_next, outside the double-inclusion guard.
101520         * lib/stdio_.h [__DECC]: Likewise.
101521         * lib/stdlib_.h [__DECC]: Likewise.
101522         * lib/string_.h [__DECC]: Likewise.
101523         * lib/time_.h [__DECC]: Likewise.
101524         * lib/wchar_.h [__DECC]: Likewise.
101525         * lib/wctype_.h [__DECC]: Likewise.
101526         * lib/inttypes_.h [__DECC]: Likewise.
101527         Reported by Albert Chin <china@thewrittenword.com> in
101528         <http://lists.gnu.org/r/bug-gnulib/2007-04/msg00088.html>.
101530 2007-04-04  Eric Blake  <ebb9@byu.net>
101532         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
101533         1.5.x.
101535 2007-04-04  Bruno Haible  <bruno@clisp.org>
101537         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
101538         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
101540 2007-04-04  Bruno Haible  <bruno@clisp.org>
101542         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
101543         results for "%010a" of Infinity and NaN.
101544         * tests/test-vasprintf-posix.c (test_function): Likewise.
101545         * tests/test-snprintf-posix.h (test_function): Likewise.
101546         * tests/test-sprintf-posix.h (test_function): Likewise.
101547         * tests/test-fprintf-posix.h (test_function): Remove these tests.
101548         * tests/test-printf-posix.h (test_function): Likewise.
101549         * tests/test-fprintf-posix.out: Update.
101550         Needed for FreeBSD 6.1.
101552 2007-04-04  Bruno Haible  <bruno@clisp.org>
101554         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
101555         directly used by the gnulib modules nor by gnulib-tool.
101557 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
101559         * DEPENDENCIES: Give overall description of version dependency
101560         desirability.  Use more-typical names for apps.
101561         Add shell, coreutils, diffutils, grep, tar, gzip.
101563 2007-04-04  Simon Josefsson  <simon@josefsson.org>
101565         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
101567 2007-04-04  Karl Berry  <karl@gnu.org>
101569         * MODULES.html.sh (func_module): missing '.
101571 2007-04-03  Bruno Haible  <bruno@clisp.org>
101573         * modules/argmatch-tests (Makefile.am): New variable
101574         test_argmatch_LDADD.
101575         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
101576         * modules/array-list-tests (Makefile.am): New variable
101577         test_array_list_LDADD.
101578         * modules/array-oset-tests (Makefile.am): New variable
101579         test_array_oset_LDADD.
101580         * modules/avltree-list-tests (Makefile.am): New variable
101581         test_avltree_list_LDADD.
101582         * modules/avltree-oset-tests (Makefile.am): New variable
101583         test_avltree_oset_LDADD.
101584         * modules/avltreehash-list-tests (Makefile.am): New variable
101585         test_avltreehash_list_LDADD.
101586         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
101587         test_canonicalize_lgpl_LDADD.
101588         * modules/carray-list-tests (Makefile.am): New variable
101589         test_carray_list_LDADD.
101590         * modules/dirname-tests (Makefile.am): New variable
101591         test_dirname_LDADD.
101592         * modules/linked-list-tests (Makefile.am): New variable
101593         test_linked_list_LDADD.
101594         * modules/linkedhash-list-tests (Makefile.am): New variable
101595         test_linkedhash_list_LDADD.
101596         * modules/rbtree-list-tests (Makefile.am): New variable
101597         test_rbtree_list_LDADD.
101598         * modules/rbtree-oset-tests (Makefile.am): New variable
101599         test_rbtree_oset_LDADD.
101600         * modules/rbtreehash-list-tests (Makefile.am): New variable
101601         test_rbtreehash_list_LDADD.
101602         * modules/xvasprintf-tests (Makefile.am): New variable
101603         test_xvasprintf_LDADD.
101604         Reported by Eric Blake.
101606 2007-04-03  Eric Blake  <ebb9@byu.net>
101608         * DEPENDENCIES: Weaken m4 requirements.
101610 2007-04-03  Bruno Haible  <bruno@clisp.org>
101612         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
101613         * modules/isnanl-tests (configure.ac): Likewise.
101615 2007-04-03  Ben Pfaff  <blp@gnu.org>
101617         * modules/iconv_open: Add $(srcdir)/ to source directory
101618         references in Makefile fragments that call gperf, to fix VPATH
101619         builds.
101621 2007-04-03  Bruno Haible  <bruno@clisp.org>
101623         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
101624         * lib/ldexpl.c: Undo last change.
101626 2007-04-03  Bruno Haible  <bruno@clisp.org>
101628         * modules/printf-frexpl (Depends-on): Undo last change.
101629         (Files): Add m4/ldexpl.m4.
101631 2007-04-03  Bruno Haible  <bruno@clisp.org>
101633         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
101634         * modules/isnanl (Link): New section.
101636         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
101637         * modules/frexp (Link): New section.
101639         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
101640         * modules/frexpl (Link): New section.
101642         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
101643         * modules/ldexpl (Link): New section.
101645 2007-04-03  Bruno Haible  <bruno@clisp.org>
101647         * modules/TEMPLATE-EXTENDED: New file.
101648         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
101650 2007-04-03  Bruno Haible  <bruno@clisp.org>
101652         * DEPENDENCIES: New file.
101653         Suggested by Simon Josefsson.
101655 2007-04-03  Bruno Haible  <bruno@clisp.org>
101657         * doc/gnulib.texi: Escape @.
101659 2007-04-03  James Youngman  <jay@gnu.org>
101660         and Paul Eggert  <eggert@cs.ucla.edu>
101662         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
101663         birthtime on all systems that have birthtime, not just those which
101664         use st_birthtimensec rather than st_birthtim.  Putting zero in
101665         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
101666         that the birth time is not available for files on an NFS mount.
101668 2007-04-03  Simon Josefsson  <simon@josefsson.org>
101670         * modules/memxor: Move back from crypto/, suggested by Bruno.
101671         * modules/crypto/hmac-sha1: Fix memxor dependency.
101673         * modules/crypto/gc: Moved from ../.
101675 2007-04-02  Eric Blake  <ebb9@byu.net>
101677         * lib/ldexpl.c (includes): Avoid libm.
101679         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
101681 2007-04-02  Bruno Haible  <bruno@clisp.org>
101683         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
101684         on IRIX.
101686 2007-04-02  Bruno Haible  <bruno@clisp.org>
101688         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
101689         x86 or x86_64 platforms running MacOS X.
101690         Reported by Ryan Schmidt <@ryandesign.com>.
101692 2007-04-02  Bruno Haible  <bruno@clisp.org>
101694         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
101695         i386.
101697 2007-04-01  Simon Josefsson  <simon@josefsson.org>
101699         * modules/crypto/arcfour: Moved from ../.
101700         * modules/crypto/arcfour-tests: Moved from ../.
101701         * modules/crypto/arctwo: Moved from ../.
101702         * modules/crypto/arctwo-tests: Moved from ../.
101703         * modules/crypto/des: Moved from ../.
101704         * modules/crypto/des-tests: Moved from ../.
101705         * modules/crypto/gc-arcfour: Moved from ../.
101706         * modules/crypto/gc-arcfour-tests: Moved from ../.
101707         * modules/crypto/gc-arctwo: Moved from ../.
101708         * modules/crypto/gc-arctwo-tests: Moved from ../.
101709         * modules/crypto/gc-des: Moved from ../.
101710         * modules/crypto/gc-des-tests: Moved from ../.
101711         * modules/crypto/gc-hmac-md5: Moved from ../.
101712         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
101713         * modules/crypto/gc-hmac-sha1: Moved from ../.
101714         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
101715         * modules/crypto/gc-md2: Moved from ../.
101716         * modules/crypto/gc-md2-tests: Moved from ../.
101717         * modules/crypto/gc-md4: Moved from ../.
101718         * modules/crypto/gc-md4-tests: Moved from ../.
101719         * modules/crypto/gc-md5: Moved from ../.
101720         * modules/crypto/gc-md5-tests: Moved from ../.
101721         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
101722         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
101723         * modules/crypto/gc-random: Moved from ../.
101724         * modules/crypto/gc-rijndael: Moved from ../.
101725         * modules/crypto/gc-rijndael-tests: Moved from ../.
101726         * modules/crypto/gc-sha1: Moved from ../.
101727         * modules/crypto/gc-sha1-tests: Moved from ../.
101728         * modules/crypto/gc-tests: Moved from ../.
101729         * modules/crypto/hmac-md5: Moved from ../.
101730         * modules/crypto/hmac-md5-tests: Moved from ../.
101731         * modules/crypto/hmac-sha1: Moved from ../.
101732         * modules/crypto/hmac-sha1-tests: Moved from ../.
101733         * modules/crypto/md2: Moved from ../.
101734         * modules/crypto/md2-tests: Moved from ../.
101735         * modules/crypto/md4: Moved from ../.
101736         * modules/crypto/md4-tests: Moved from ../.
101737         * modules/crypto/md5: Moved from ../.
101738         * modules/crypto/md5-tests: Moved from ../.
101739         * modules/crypto/memxor: Moved from ../.
101740         * modules/crypto/rijndael: Moved from ../.
101741         * modules/crypto/rijndael-tests: Moved from ../.
101742         * modules/crypto/sha1: Moved from ../.
101744 2007-03-30  James Youngman  <jay@gnu.org>
101746         * tests/test-stat-time.c (prepare_test): use chmod() rather than
101747         rename() to change the ctime of a file (because ctime is unaffected
101748         by rename on jfs2 on AIX 5.1).
101749         (main): Start by doing cleanup, in case a previous run failed leaving
101750         test files behind.
101752 2007-03-31  Bruno Haible  <bruno@clisp.org>
101754         Support old proprietary implementations of iconv.
101755         * modules/iconv_open: New file.
101756         * lib/iconv_.h: New file.
101757         * m4/iconv_h.m4: New file.
101758         * lib/iconv_open.c: New file.
101759         * lib/iconv_open-aix.gperf: New file.
101760         * lib/iconv_open-hpux.gperf: New file.
101761         * lib/iconv_open-irix.gperf: New file.
101762         * lib/iconv_open-osf.gperf: New file.
101763         * m4/iconv_open.m4: New file.
101764         * modules/linebreak (Depends-on): Add iconv_open.
101765         * modules/striconv (Depends-on): Likewise.
101766         * modules/striconveh (Depends-on): Likewise.
101767         * modules/unicodeio (Depends-on): Likewise.
101768         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
101769         (iconv_t)(-1).
101770         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
101771         conversion if cd is (iconv_t)(-1).
101772         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
101773         is not possible.
101775 2007-03-31  Bruno Haible  <bruno@clisp.org>
101777         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
101778         work on Solaris either. Protect also second use of "autodetect_jp".
101780 2007-03-31  Bruno Haible  <bruno@clisp.org>
101782         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
101783         the function is not present.
101785 2007-03-31  Bruno Haible  <bruno@clisp.org>
101787         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
101788         the function is not present.
101790 2007-03-31  Bruno Haible  <bruno@clisp.org>
101792         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
101793         a bug in HP-UX iconv_open().
101795 2007-03-31  Bruno Haible  <bruno@clisp.org>
101797         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
101798         (Mathematics <math.h>): New section, add fpieee.
101799         (Input/output <stdio.h>): Add fseterr.
101800         (Mathematics <math.h>): New section, add printf-frexp.
101801         (Container data structures): Add sublist.
101802         (Core language properties): Add fpucw, inline.
101803         (Functions for greatest-width integer types <inttypes.h>): Add
101804         imaxabs, imaxdiv, inttypes.
101805         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
101806         isnanl-nolibm, ldexp.
101807         (Mathematics <math.h>): New section, add printf-frexpl.
101808         (Support for systems lacking POSIX:2001): Add fprintf-posix,
101809         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
101810         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
101811         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
101812         (Unicode string functions): Add unistr/u*-mbtoucr.
101813         (Java): Add javacomp-script, javaexec-script.
101814         (C#): Add csharpcomp-script, csharpexec-script.
101815         (Support for building libraries and executables): Add havelib,
101816         relocatable-*.
101817         (Support for maintaining and releasing projects): Renamed from
101818         'Support for maintaining and release projects'. Add announce-gen.
101820 2007-03-31  Bruno Haible  <bruno@clisp.org>
101822         * README: Talk primarily about git.
101823         (git and CVS): Renamed from CVS.
101824         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
101825         gnulib is available through git.
101826         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
101828 2007-03-30  Bruno Haible  <bruno@clisp.org>
101830         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
101831         * lib/poll_.h: Likewise.
101832         * lib/stat_.h: Likewise.
101833         * lib/sys_time_.h: Likewise.
101834         * lib/sysexit_.h: Likewise.
101835         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
101836         * lib/stdbool_.h: Likewise.
101837         * lib/byteswap_.h: Add double-inclusion guard.
101839 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
101841         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
101843 2007-03-30  Karl Berry  <karl@gnu.org>
101845         * config/srclist-update: double space after USA in the license
101846         substitution, since that's how it's usually (?) written.
101848 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
101850         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
101851         reported by Bruno Haible.
101853 2007-03-29  Bruno Haible  <bruno@clisp.org>
101855         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
101856         a bug in AIX iconv().
101858 2007-03-29  Bruno Haible  <bruno@clisp.org>
101860         * modules/ldexpl-tests: New file.
101861         * tests/test-ldexpl.c: New file.
101863 2007-03-29  Bruno Haible  <bruno@clisp.org>
101865         * lib/ldexpl.c: Include fpucw.h.
101866         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
101867         multiplication.
101868         * modules/ldexpl (Depends-on): Add fpucw.
101870 2007-03-29  Bruno Haible  <bruno@clisp.org>
101872         * modules/ldexpl: New file.
101873         * m4/ldexpl.m4: New file.
101874         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
101875         set.
101876         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
101877         REPLACE_LDEXPL.
101878         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
101879         REPLACE_LDEXPL.
101880         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
101881         gl_FUNC_LDEXPL_WORKS.
101882         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
101883         * modules/mathl (Files): Remove lib/ldexpl.c.
101884         (Depends-on): Add ldexpl.
101886 2007-03-29  Bruno Haible  <bruno@clisp.org>
101888         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
101890 2007-03-29  Bruno Haible  <bruno@clisp.org>
101892         * tests/test-striconveh.c (main): Don't assume that a direct conversion
101893         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
101894         and possibly also HP-UX.
101895         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
101896         work on AIX, IRIX, HP-UX, OSF/1.
101897         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
101898         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
101899         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
101900         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
101901         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
101902         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
101904 2007-03-29  Bruno Haible  <bruno@clisp.org>
101906         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
101908 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
101910         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
101911         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
101913 2007-03-29  Eric Blake  <ebb9@byu.net>
101915         * lib/acl-internal.h: Remove redundant include.
101916         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
101917         Cygwin when a file is locked.
101919 2007-03-29  Bruno Haible  <bruno@clisp.org>
101921         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
101922         file.
101923         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
101925 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
101927         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
101928         try to remove a parent directory if the child couldn't be removed
101929         (except for the first rmdir, which could fail because the child
101930         doesn't exist).  Problem reported by Jeff Blaine in
101931         <http://lists.gnu.org/r/bug-tar/2007-03/msg00014.html>.
101933 2007-03-28  Bruno Haible  <bruno@clisp.org>
101935         * lib/striconveh.c (utf8conv_carefully): New function.
101936         (mem_cd_iconveh_internal): Invoke it.
101938 2007-03-28  Bruno Haible  <bruno@clisp.org>
101940         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
101941         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
101942         input.
101943         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
101944         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
101945         unistr/u8-uctomb.
101947 2007-03-28  Bruno Haible  <bruno@clisp.org>
101949         * modules/unistr/u8-mbtoucr: New file.
101950         * lib/unistr/u8-mbtoucr.c: New file.
101951         * modules/unistr/u16-mbtoucr: New file.
101952         * lib/unistr/u16-mbtoucr.c: New file.
101953         * modules/unistr/u16-mbtoucr: New file.
101954         * lib/unistr/u16-mbtoucr.c: New file.
101955         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
101957 2007-03-27  Simon Josefsson  <simon@josefsson.org>
101958             Bruno Haible  <bruno@clisp.org>
101960         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
101961         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
101962         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
101964         * m4/stdio_h.m4: Add stubs for vasprintf too.
101966         * modules/stdio: Support vasprintf in sed command.
101968         * modules/vasprintf: Depend on stdio for prototypes.  Remove
101969         vasprintf.h.  Add stdio module indicator.
101971         * lib/stdio_.h: Declare asprintf and vasprintf, based on
101972         vasprintf.h.
101974         * lib/vasprintf.h: File removed.
101976         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
101977         * lib/vasprintf.c: Ditto.
101978         * lib/xvasprintf.c: Ditto.
101979         * tests/test-vasprintf-posix.c: Ditto.
101980         * tests/test-vasprintf.c: Ditto.
101982 2007-03-27  Bruno Haible  <bruno@clisp.org>
101984         Make vasnprintf multithread-safe.
101985         * lib/vasnprintf.c (decimal_point_char): New function.
101986         (VASNPRINTF): Use it.
101987         Suggested by Simon Josefsson.
101989 2007-03-27  Eric Blake  <ebb9@byu.net>
101991         Support sub-second birthtime on cygwin.
101992         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
101993         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
101994         (get_stat_birthtime): Also work with st_birthtim.
101996 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
101998         * lib/stat-time.h (USE_BIRTHTIME): Remove.
101999         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
102000         (get_stat_birthtime_ns): Do not try to use "spare" fields.
102001         (get_stat_birthtime_ns): Simplify compile-time tests.
102002         (get_stat_birthtime): Change the API to look like
102003         get_stat_mtime etc., except return a negative tv_nsec on error.
102004         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
102005         Don't check for "spare" fields.
102006         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
102007         or for struct stat.st_birthtime, as these tests aren't used.
102008         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
102010 2007-03-27  Bruno Haible  <bruno@clisp.org>
102012         * lib/stat-time.h: Include <sys/stat.h>.
102014 2007-03-27  James Youngman  <jay@gnu.org>
102016         * lib/stat-time.h (get_stat_birthtime): New function for
102017           retrieving st_birthtime as provided by UFS2 (hence *BSD).
102018         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
102019           and its variants.
102020         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
102021         * modules/stat-time-test: New file.
102022         * tests/test-stat-time.c: New test, devised by Bruno Haible.
102024 2007-03-26  Bruno Haible  <bruno@clisp.org>
102026         Better support of signalling NaNs.
102027         * lib/atanl.c: Include isnanl.h.
102028         (atanl): Perform test for NaN at the beginning of the function and
102029         through a call to isnanl.
102030         * lib/cosl.c: Include isnanl.h.
102031         (cosl): Perform test for NaN at the beginning of the function and
102032         through a call to isnanl.
102033         * lib/ldexpl.c: Include isnanl.h.
102034         (ldexpl): Perform test for NaN through a call to isnanl.
102035         * lib/logl.c: Include isnanl.h.
102036         (logl): Perform test for NaN at the beginning of the function and
102037         through a call to isnanl.
102038         * lib/sinl.c: Include isnanl.h.
102039         (sinl): Perform test for NaN at the beginning of the function and
102040         through a call to isnanl.
102041         * lib/sqrtl.c: Include isnanl.h.
102042         (sqrtl): Perform test for NaN at the beginning of the function and
102043         through a call to isnanl.
102044         * lib/tanl.c: Include isnanl.h.
102045         (tanl): Perform test for NaN at the beginning of the function and
102046         through a call to isnanl.
102047         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
102048         * modules/mathl (Depends-on): Add isnanl.
102050 2007-03-26  Eric Blake  <ebb9@byu.net>
102052         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
102053         regression in logic sense of previous patch.
102055 2007-03-26  Bruno Haible  <bruno@clisp.org>
102057         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
102058         unportable shell command "if ! ...".
102059         Reported by Ralf Wildenhues.
102061 2007-03-25  Bruno Haible  <bruno@clisp.org>
102063         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
102064         <sysexits.h> file, and only add EX_CONFIG.
102065         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
102066         absolute file name and whether it is sufficient. Substitute also
102067         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
102068         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
102069         ABSOLUTE_SYSEXITS_H into sysexits.h.
102071 2007-03-25  Bruno Haible  <bruno@clisp.org>
102073         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
102074         hints is NULL.
102076 2007-03-25  Bruno Haible  <bruno@clisp.org>
102078         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
102079         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
102081 2007-03-25  Bruno Haible  <bruno@clisp.org>
102083         * lib/vasnprintf.c: Include langinfo.h.
102084         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
102085         multithread-safe.
102086         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
102087         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
102088         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
102089         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
102090         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
102091         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
102092         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
102093         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
102094         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
102095         Reported by Simon Josefsson.
102097 2007-03-25  Bruno Haible  <bruno@clisp.org>
102099         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
102100         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
102101         * modules/vasnprintf (Depends-on): Add stdint.
102103 2007-03-25  Bruno Haible  <bruno@clisp.org>
102105         * modules/fpieee: New file.
102106         * m4/fpieee.m4: New file.
102107         * modules/isnan-nolibm (Depends-on): Add fpieee.
102108         * modules/isnanl-nolibm (Depends-on): Add fpieee.
102109         * modules/isnanl (Depends-on): Add fpieee.
102111 2007-03-25  Bruno Haible  <bruno@clisp.org>
102113         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
102115 2007-03-25  Bruno Haible  <bruno@clisp.org>
102117         Avoid test failures on IRIX 6.5.
102118         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
102119         (main): Use it.
102120         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
102121         macros.
102122         (main): Use them.
102124 2007-03-25  Bruno Haible  <bruno@clisp.org>
102126         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
102127         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
102128         exists but doesn't work.
102129         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
102130         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
102131         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
102132         * modules/math (Makefile.am): Substitute also REPLACE_FREXPL into
102133         math.h.
102135 2007-03-25  Bruno Haible  <bruno@clisp.org>
102137         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
102138         returns inf. Needed on IRIX 6.5.
102140 2007-03-25  Bruno Haible  <bruno@clisp.org>
102142         * tests/test-frexpl.c: Include isnanl-nolibm.h.
102143         (main): Use isnanl instead of x != x idiom.
102144         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
102146         * tests/test-frexp.c: Include isnan.h.
102147         (main): Use isnan instead of x != x idiom.
102148         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
102150 2007-03-25  Bruno Haible  <bruno@clisp.org>
102152         * tests/test-frexp.c (NaN): New function/macro.
102153         (main): Use it instead of 0.0 / 0.0.
102154         * tests/test-isnan.c (NaN): New function/macro.
102155         (main): Use it instead of 0.0 / 0.0.
102156         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
102157         (test_function): Use it instead of 0.0 / 0.0.
102158         * tests/test-vasprintf-posix.c (NaN): New function/macro.
102159         (test_function): Use it instead of 0.0 / 0.0.
102160         * tests/test-snprintf-posix.h (NaN): New function/macro.
102161         (test_function): Use it instead of 0.0 / 0.0.
102162         * tests/test-sprintf-posix.h (NaN): New function/macro.
102163         (test_function): Use it instead of 0.0 / 0.0.
102164         * tests/test-fprintf-posix.h (NaN): New function/macro.
102165         (test_function): Use it instead of 0.0 / 0.0.
102166         * tests/test-printf-posix.h (NaN): New function/macro.
102167         (test_function): Use it instead of 0.0 / 0.0.
102169         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
102171 2007-03-25  Bruno Haible  <bruno@clisp.org>
102173         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
102175 2007-03-25  Bruno Haible  <bruno@clisp.org>
102177         * lib/regexec.c (merge_state_with_log): Make static.
102179 2007-03-25  Bruno Haible  <bruno@clisp.org>
102181         * lib/trigl.c (kernel_rem_pio2): Make static.
102183 2007-03-25  Bruno Haible  <bruno@clisp.org>
102185         * lib/sincosl.c (sincosl_table): Make static.
102187 2007-03-25  Bruno Haible  <bruno@clisp.org>
102189         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
102190         if the compiler does not support C99.
102192 2007-03-25  Bruno Haible  <bruno@clisp.org>
102194         * modules/time (Makefile.am): Ensure all rule action lines start with a
102195         tab.
102197 2007-03-24  Bruno Haible  <bruno@clisp.org>
102199         * modules/tsearch-tests: New file.
102200         * tests/test-tsearch.sh: New file.
102201         * tests/test-tsearch.c: New file, mostly copied from glibc.
102203         * modules/search-tests: New file.
102204         * tests/test-search.c: New file.
102206         * modules/search: New file.
102207         * lib/search_.h: New file, incorporating lib/tsearch.h.
102208         * m4/search_h.m4: New file.
102209         * lib/tsearch.h: Remove file.
102210         * lib/tsearch.c: Include search.h instead of tsearch.h.
102211         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
102212         HAVE_TSEARCH.
102213         * modules/tsearch (Files): Remove lib/tsearch.h.
102214         (Depends-on): Add search.
102215         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
102216         (Include): Change tsearch.h into search.h.
102218 2007-03-24  Bruno Haible  <bruno@clisp.org>
102220         * modules/fpucw: New file.
102221         * lib/fpucw.h: New file.
102222         * lib/frexp.c: Include fpucw.h.
102223         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
102224         (FUNC): Use them.
102225         * lib/printf-frexp.c: Include fpucw.h.
102226         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
102227         (FUNC): Use them.
102228         * lib/vasnprintf.c: Include fpucw.h.
102229         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
102230         'long double' calculations.
102231         * tests/test-frexpl.c: Include fpucw.h.
102232         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
102233         * tests/test-printf-frexpl.c: Include fpucw.h.
102234         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
102235         * modules/frexpl (Depends-on): Add fpucw.
102236         * modules/printf-frexpl (Depends-on): Likewise.
102237         * modules/fprintf-posix (Depends-on): Likewise.
102238         * modules/snprintf-posix (Depends-on): Likewise.
102239         * modules/sprintf-posix (Depends-on): Likewise.
102240         * modules/vasnprintf-posix (Depends-on): Likewise.
102241         * modules/vasprintf-posix (Depends-on): Likewise.
102242         * modules/vfprintf-posix (Depends-on): Likewise.
102243         * modules/vsnprintf-posix (Depends-on): Likewise.
102244         * modules/vsprintf-posix (Depends-on): Likewise.
102245         * modules/frexpl-tests (Depends-on): Likewise.
102246         * modules/printf-frexpl-tests (Depends-on): Likewise.
102248 2007-03-24  Bruno Haible  <bruno@clisp.org>
102250         * lib/float+.h: New file.
102251         * lib/isnan.c: Include float+.h.
102252         (SIZE): New macro.
102253         (FUNC): Compare only SIZE bytes of the value.
102254         * lib/vasnprintf.c: Include float+.h.
102255         (VASNPRINTF): When comparing against +0.0L or +0.0, compare only
102256         SIZEOF_LDBL or SIZEOF_DBL bytes.
102257         * modules/isnan-nolibm (Files): Add lib/float+.h.
102258         * modules/isnanl-nolibm (Files): Add lib/float+.h.
102259         * modules/isnanl (Files): Add lib/float+.h.
102260         * modules/vasnprintf (Files): Add lib/float+.h.
102262 2007-03-24  Bruno Haible  <bruno@clisp.org>
102264         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
102265         include isnanl-nolibm.h.
102267 2007-03-24  Bruno Haible  <bruno@clisp.org>
102269         * tests/test-read-file.c (main): Don't produce spurious output for
102270         expected situations. Make the test fail if it encountered unexpected
102271         results.
102273 2007-03-24  Bruno Haible  <bruno@clisp.org>
102275         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
102276         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
102278 2007-03-24  Bruno Haible  <bruno@clisp.org>
102280         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
102282 2007-03-24  Bruno Haible  <bruno@clisp.org>
102284         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
102285         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
102287         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
102288         * modules/utf8-ucs4: Turn into a symbolic link to module
102289         unistr/u8-mbtouc.
102291         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
102292         utf8-ucs4-unsafe.
102293         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
102294         unistr/u8-mbtouc-unsafe.
102296         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
102297         * modules/utf16-ucs4: Turn into a symbolic link to module
102298         unistr/u16-mbtouc.
102300         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
102301         utf16-ucs4-unsafe.
102302         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
102303         unistr/u16-mbtouc-unsafe.
102305         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
102306         * modules/ucs4-utf8: Turn into a symbolic link to module
102307         unistr/u8-ubtomb.
102309         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
102310         * modules/ucs4-utf16: Turn into a symbolic link to module
102311         unistr/u16-ubtomb.
102313 2007-03-24  Bruno Haible  <bruno@clisp.org>
102315         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
102316         Enable the function only if HAVE_INLINE.
102317         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
102318         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
102319         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
102320         Enable the function only if HAVE_INLINE.
102321         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
102322         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
102323         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
102324         Enable the function only if HAVE_INLINE.
102325         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
102326         Enable the function only if HAVE_INLINE.
102327         * modules/utf8-ucs4: Update.
102328         * modules/utf8-ucs4-unsafe: Update.
102329         * modules/utf16-ucs4: Update.
102330         * modules/utf16-ucs4-unsafe: Update.
102331         * modules/ucs4-utf8: Update.
102332         * modules/ucs4-utf16: Update.
102334 2007-03-24  Bruno Haible  <bruno@clisp.org>
102336         * lib/utf8-ucs4.h: Remove file.
102337         * lib/utf8-ucs4-unsafe.h: Remove file.
102338         * lib/utf16-ucs4.h: Remove file.
102339         * lib/utf16-ucs4-unsafe.h: Remove file.
102340         * lib/ucs4-utf8.h: Remove file.
102341         * lib/ucs4-utf16.h: Remove file.
102342         * lib/unistr.h: Include their previous contents.
102343         * m4/utf-ucs4.m4: Remove file.
102344         * m4/ucs4-utf.m4: Remove file.
102345         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
102346         (Depends-on): Add unistr/base.
102347         (configure.ac): Remove gl_UTF_UCS4.
102348         (Makefile.am): Update.
102349         (Include): Change to unistr.h.
102350         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
102351         (Depends-on): Add unistr/base.
102352         (configure.ac): Remove gl_UTF_UCS4.
102353         (Makefile.am): Update.
102354         (Include): Change to unistr.h.
102355         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
102356         (Depends-on): Add unistr/base.
102357         (configure.ac): Remove gl_UTF_UCS4.
102358         (Makefile.am): Update.
102359         (Include): Change to unistr.h.
102360         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
102361         (Depends-on): Add unistr/base.
102362         (configure.ac): Remove gl_UTF_UCS4.
102363         (Makefile.am): Update.
102364         (Include): Change to unistr.h.
102365         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
102366         (Depends-on): Add unistr/base.
102367         (configure.ac): Remove gl_UCS4_UTF.
102368         (Makefile.am): Update.
102369         (Include): Change to unistr.h.
102370         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
102371         (Depends-on): Add unistr/base.
102372         (configure.ac): Remove gl_UCS4_UTF.
102373         (Makefile.am): Update.
102374         (Include): Change to unistr.h.
102375         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
102376         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
102377         utf8-ucs4-unsafe.h.
102378         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
102379         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
102380         utf16-ucs4-unsafe.h.
102381         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
102382         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
102383         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
102384         * lib/unistr/u8-strchr.c: Likewise.
102385         * lib/unistr/u8-strrchr.c: Likewise.
102386         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
102387         * lib/unistr/u16-strchr.c: Likewise.
102388         * lib/unistr/u16-strrchr.c: Likewise.
102389         * lib/striconveh.c: Update.
102390         * lib/linebreak.c: Update.
102392 2007-03-24  Bruno Haible  <bruno@clisp.org>
102394         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
102395         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
102397 2007-03-22  Bruno Haible  <bruno@clisp.org>
102399         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
102401 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
102403         * MODULES.html.sh (File system functions): New module write-any-file.
102404         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
102405         * m4/write-any-file.m4: New files.
102407 2007-03-23  Eric Blake  <ebb9@byu.net>
102409         * gnulib-tool: Rearrange space-tab sequences, since some editors
102410         like to eat them.
102412 2007-03-23  Eric Blake  <ebb9@byu.net>
102414         * lib/version-etc.c (version_etc_va): Update license wording to
102415         be more concise.  Recommended by Richard Stallman.
102417 2007-03-22  Bruno Haible  <bruno@clisp.org>
102419         * lib/poll.c (MSG_PEEK): New fallback definition.
102421 2007-03-22  Bruno Haible  <bruno@clisp.org>
102423         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
102424         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
102425         (main): Update.
102426         Fixes a compilation error on BeOS.
102428 2007-03-22  Bruno Haible  <bruno@clisp.org>
102430         * modules/frexpl-tests: New file.
102431         * tests/test-frexpl.c: New file.
102433         * modules/frexpl: New file.
102434         * m4/frexpl.m4: New file.
102435         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
102436         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
102437         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
102438         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
102439         (Depends-on): Add frexpl. Remove isnanl-nolibm.
102440         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
102442 2007-03-22  Bruno Haible  <bruno@clisp.org>
102444         * lib/frexpl.c: Share code with lib/frexp.c.
102445         * modules/mathl (Files): Add lib/frexp.c.
102446         (Depends-on): Add isnanl-nolibm.
102448 2007-03-22  Bruno Haible  <bruno@clisp.org>
102450         * modules/printf-frexp (Files): Add m4/frexp.m4.
102451         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
102452         only if the found frexp function actually works.
102454 2007-03-22  Bruno Haible  <bruno@clisp.org>
102456         * lib/frexp.c: Remove older implementation that uses divisions.
102458 2007-03-21  Bruno Haible  <bruno@clisp.org>
102460         * modules/frexp-tests: New file.
102461         * tests/test-frexp.c: New file.
102463         * modules/frexp: New file.
102464         * lib/frexp.c: New file.
102465         * m4/frexp.m4: New file.
102466         * lib/math_.h (frexp): New declaration.
102467         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
102468         REPLACE_FREXP.
102469         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
102471 2007-03-21  Bruno Haible  <bruno@clisp.org>
102473         * modules/isnanl-tests: New file.
102474         * tests/test-isnanl.c: New file.
102476         * modules/isnanl: New file.
102477         * lib/isnanl.h: New file.
102478         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
102479         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
102480         gl_FUNC_ISNANL_WORKS.
102481         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
102482         New macros.
102484 2007-03-21  Bruno Haible  <bruno@clisp.org>
102486         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
102487         lib/isnanl.h.
102488         (Include): Update.
102489         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
102490         * lib/vasnprintf.c: Update.
102491         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
102492         tests/test-isnanl.h, remove tests/test-isnanl.c.
102493         (Makefile.am): Update.
102494         * tests/test-isnanl-nolibm.c: New file.
102495         * tests/test-isnanl.h: New file.
102496         * tests/test-isnanl.c: Remove file.
102498 2007-03-21  Jim Meyering  <jim@meyering.net>
102500         When trying to open ".", treat ESTALE like EACCES.
102501         * lib/savewd.c (savewd_save): Resort to forking not just upon
102502         failure with EACCES, but also when errno is ESTALE.
102504 2007-03-20  Bruno Haible  <bruno@clisp.org>
102506         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
102507         Needed on AIX 5.1. Reported by Matthew Woehlke.
102509 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
102511         Suggestions by Bruno Haible:
102512         * lib/acl-internal.h: Include "gettext.h" rather than rolling
102513         our own.
102514         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
102515         * modules/acl (Depends-on): Add gettext.
102517 2007-03-19  Bruno Haible  <bruno@clisp.org>
102519         * modules/iconvme: Remove file.
102520         * lib/iconvme.h: Remove file.
102521         * lib/iconvme.c: Remove file.
102522         * m4/iconvme.m4: Remove file.
102524 2007-03-19  Bruno Haible  <bruno@clisp.org>
102526         * doc/relocatable-maint.texi: Break long shell script line.
102527         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
102529 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
102531         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
102532         handle file_has_acl.
102533         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
102534         * lib/acl.c: Move header inclusions and related macro defns into
102535         lib/acl-internal.h.
102536         (S_ISLNK): Remove defn, since that's now done for us.
102537         (file_has_acl): Move to lib/file-has-acl.c.
102538         Call acl_trivial if available.  This is the crucial part of the fix.
102539         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
102540         shared within the library.  Rewrite a bit, partly to make it compatible
102541         with the GNU coding style.
102542         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
102543         Remove unnecessary double-quotes.
102544         Don't test for acl_to_text; the build will catch that.
102545         Replace acl_entries if it doesn't exist and it is needed.
102546         Check for -lsec and acl_trivial (as used on Solaris 10).
102547         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
102548         lib/file-has-acl.c.
102549         (Depends-on): Add sys_stat, for S_ISLNK.
102551 2007-03-19  Ben Pfaff  <blp@gnu.org>
102553         * doc/gnulib.texi: Fix typos.
102554         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
102556 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
102558         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
102559         If size is zero here, buf must be zero.
102561 2007-03-19  Simon Josefsson  <simon@josefsson.org>
102563         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
102564         <bruno@clisp.org>.
102566 2007-03-18  Bruno Haible  <bruno@clisp.org>
102568         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
102569         Suggested by Eric Blake.
102571 2007-03-18  Ben Pfaff  <blp@gnu.org>
102573         * doc/relocatable.texi: Recommend using as prefix a directory
102574         that does not exist and will never be created.  Based on
102575         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
102576         and others.
102578 2007-03-17  Bruno Haible  <bruno@clisp.org>
102580         * lib/fchownat.c: Include lchown.h.
102582 2007-03-17  Bruno Haible  <bruno@clisp.org>
102584         Fix endless loop when the given allocated size was > INT_MAX.
102585         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
102586         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
102587         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
102588         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
102589         * lib/sprintf.c (sprintf): Likewise.
102591 2007-03-17  Bruno Haible  <bruno@clisp.org>
102593         * tests/test-argp-2.sh (func_compare): Output a context diff.
102595 2007-03-17  Bruno Haible  <bruno@clisp.org>
102597         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
102598         locale's decimal-point character.
102600 2007-03-17  Bruno Haible  <bruno@clisp.org>
102602         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
102603         before comparing it. Needed because on some platforms (e.g. x86) a
102604         'long double' occupies less bytes than sizeof (long double).
102606 2007-03-17  Bruno Haible  <bruno@clisp.org>
102608         * tests/test-crc.c (main): Make printf statements 64-bit clean.
102609         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
102610         * tests/test-getaddrinfo.c (simple): Likewise.
102611         * tests/test-read-file.c (main): Likewise.
102613 2007-03-17  Bruno Haible  <bruno@clisp.org>
102615         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
102617 2007-03-17  Bruno Haible  <bruno@clisp.org>
102619         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
102620         unused variable.
102622 2007-03-17  Bruno Haible  <bruno@clisp.org>
102624         * tests/test-c-strcasecmp.c: Include c-strcase.h.
102625         * tests/test-c-strncasecmp.c: Likewise.
102627 2007-03-17  Bruno Haible  <bruno@clisp.org>
102629         * modules/stdlib (Depends-on): Add unistd.
102630         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
102631         Needed for MacOS X 10.3.
102633 2007-03-17  Bruno Haible  <bruno@clisp.org>
102635         * lib/unistr/u-strdup.h: Include <stdlib.h>.
102637 2007-03-17  Bruno Haible  <bruno@clisp.org>
102639         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
102641 2007-03-17  Bruno Haible  <bruno@clisp.org>
102643         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
102644         to reflect files copied from gnulib (with or without modifications).
102645         Suggested by Jim Meyering.
102647 2007-03-17  Eric Blake  <ebb9@byu.net>
102649         * NEWS: Document stdlib change from 2007-02-18.
102651 2007-03-17  Jim Meyering  <jim@meyering.net>
102653         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
102654         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
102655         someone uses a name containing shell meta-characters.
102656         Reported by Alfred M. Szmidt.
102658         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
102660 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
102662         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
102663         and copy gettext configuration files only if configure.ac contains
102664         a use of AM_GNU_GETTEXT_VERSION.
102666 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
102668         * build-aux/bootstrap (gnulib_name): New variable.
102669         (gnulib_tool_options): Use it.
102671 2007-03-13  Simon Josefsson  <simon@josefsson.org>
102673         * tests/test-des.c: Use new namespace.
102675 2007-03-15  Bruno Haible  <bruno@clisp.org>
102677         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
102678         Reported by James Youngman <jay@gnu.org>.
102680 2007-03-15  Bruno Haible  <bruno@clisp.org>
102682         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
102683         declared prototype. Needed with cc on OSF/1 5.1.
102685 2007-03-15  Bruno Haible  <bruno@clisp.org>
102687         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
102688         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
102689         (struct gl_list_implementation): Add dispose_fn argument to the
102690         'create_empty', 'create' methods.
102691         (struct gl_list_impl_base): Add field 'dispose_fn'.
102692         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
102693         argument.
102694         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
102695         dispose_fn argument.
102696         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
102697         dispose_fn on the dropped values.
102698         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
102699         dispose_fn argument.
102700         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
102701         dropped values.
102702         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
102703         (gl_tree_remove_node): Call dispose_fn on the dropped value.
102704         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
102705         (gl_tree_remove_node): Call dispose_fn on the dropped value.
102706         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
102707         argument.
102708         (gl_tree_list_free): Call dispose_fn on the dropped values.
102709         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
102710         the dropped values.
102711         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
102712         Add dispose_fn argument.
102713         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
102714         Call dispose_fn on the dropped values.
102715         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
102716         Add dispose_fn argument.
102717         (gl_sublist_create): Initialize the 'dispose_fn' field.
102718         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
102719         * tests/test-array_list.c (main): Update.
102720         * tests/test-carray_list.c (main): Update.
102721         * tests/test-avltree_list.c (main): Update.
102722         * tests/test-rbtree_list.c (main): Update.
102723         * tests/test-avltreehash_list.c (main): Update.
102724         * tests/test-rbtreehash_list.c (main): Update.
102725         * tests/test-linked_list.c (main): Update.
102726         * tests/test-linkedhash_list.c (main): Update.
102727         * tests/test-array_oset.c (main): Update.
102729 2007-03-15  Bruno Haible  <bruno@clisp.org>
102731         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
102732         (gl_oset_create_empty): Add dispose_fn argument.
102733         (struct gl_oset_implementation): Add dispose_fn argument to
102734         'create_empty' method.
102735         (struct gl_oset_impl_base): Add dispose_fn field.
102736         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
102737         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
102738         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
102739         values.
102740         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
102741         (gl_tree_oset_free): Call dispose_fn on the dropped values.
102742         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
102743         dropped value.
102744         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
102745         dropped value.
102746         * tests/test-array_oset.c (main): Update.
102747         * tests/test-avltree_oset.c (main): Update.
102748         * tests/test-rbtree_oset.c (main): Update.
102749         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
102751 2007-03-13  Bruno Haible  <bruno@clisp.org>
102753         * tests/test-stdbool.c (i): Update after last patch.
102755 2007-03-12  Bruno Haible  <bruno@clisp.org>
102757         * lib/quotearg.c: Include <wctype.h> early, before the definition of
102758         the iswprint macro. Needed on Solaris 2.5.1.
102760 2007-03-12  Bruno Haible  <bruno@clisp.org>
102762         * tests/test-printf-frexp.c (main): Declare x as volatile.
102764 2007-03-12  Simon Josefsson  <simon@josefsson.org>
102766         * doc/gnulib.texi (Build robot for gnulib): New section.
102768 2007-03-12  Jim Meyering  <jim@meyering.net>
102770         * build-aux/bootstrap: New file.
102771         * build-aux/bootstrap.conf: New file, from coreutils.
102773 2007-03-11  Bruno Haible  <bruno@clisp.org>
102775         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
102777 2007-03-12  Simon Josefsson  <simon@josefsson.org>
102779         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
102780         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
102781         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
102783 2007-03-11  Bruno Haible  <bruno@clisp.org>
102785         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
102786         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
102788 2007-03-11  Bruno Haible  <bruno@clisp.org>
102790         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
102791         formula. Needed for SunPRO C 5.0.
102793 2007-03-11  Bruno Haible  <bruno@clisp.org>
102795         * modules/long-options (Depends-on): Add getopt.
102797 2007-03-11  Bruno Haible  <bruno@clisp.org>
102799         * modules/modechange (Depends-on): Add stdbool.
102801 2007-03-11  Bruno Haible  <bruno@clisp.org>
102803         * modules/i-ring (Depends-on): Add stdbool.
102805 2007-03-11  Bruno Haible  <bruno@clisp.org>
102807         * modules/gc-des (Depends-on): Add stdbool.
102809 2007-03-11  Bruno Haible  <bruno@clisp.org>
102811         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
102813 2007-03-11  Bruno Haible  <bruno@clisp.org>
102815         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
102817 2007-03-11  Bruno Haible  <bruno@clisp.org>
102819         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
102821 2007-03-11  Bruno Haible  <bruno@clisp.org>
102823         * lib/vasnprintf.c (sprintf): Undefine.
102825 2007-03-11  Bruno Haible  <bruno@clisp.org>
102827         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
102828         initializers in SunPRO C and Compaq C compilers.
102830 2007-03-11  Bruno Haible  <bruno@clisp.org>
102832         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
102833         decrementing code ANSI C compliant.
102835 2007-03-11  Bruno Haible  <bruno@clisp.org>
102837         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
102838         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
102840 2007-03-11  Bruno Haible  <bruno@clisp.org>
102842         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
102843         <stdbool.h> substitute doesn't pass.
102845 2007-03-11  Bruno Haible  <bruno@clisp.org>
102847         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
102849 2007-03-11  Bruno Haible  <bruno@clisp.org>
102851         * gnulib-tool (func_create_megatestdir): Create also an autobuild
102852         script, for submission to autobuild.josefsson.org.
102854 2007-03-10  Bruno Haible  <bruno@clisp.org>
102856         * modules/canonicalize-lgpl-tests: New file.
102857         * tests/test-canonicalize-lgpl.sh: New file.
102858         * tests/test-canonicalize-lgpl.c: New file.
102860         * modules/c-strcase-tests: New file.
102861         * tests/test-c-strcase.sh: New file.
102862         * tests/test-c-strcasecmp.c: New file.
102863         * tests/test-c-strncasecmp.c: New file.
102865         * modules/atexit-tests: New file.
102866         * tests/test-atexit.sh: New file.
102867         * tests/test-atexit.c: New file.
102869 2007-03-10  Bruno Haible  <bruno@clisp.org>
102871         * tests/test-binary-io.sh: Use temporary filenames that are not so
102872         likely to clash with those of other tests (in a parallel make).
102873         * tests/test-binary-io.c: Likewise.
102875 2007-03-10  Bruno Haible  <bruno@clisp.org>
102877         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
102878         fallback; use #error instead.
102879         Suggested by Simon Josefsson.
102881 2007-03-10  Bruno Haible  <bruno@clisp.org>
102883         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
102884         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
102885         first and the last.
102887 2007-03-10  Bruno Haible  <bruno@clisp.org>
102889         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
102891 2007-03-10  Bruno Haible  <bruno@clisp.org>
102893         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
102894         "make distcheck".
102895         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
102896         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
102897         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
102899 2007-03-10  Bruno Haible  <bruno@clisp.org>
102901         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
102902         variable.
102903         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
102904         variable.
102906 2007-03-09  Eric Blake  <ebb9@byu.net>
102907         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
102909         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
102910         types are not being provided by gnulib.
102911         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
102912         types are supported.
102914 2007-03-10  Bruno Haible  <bruno@clisp.org>
102916         * lib/stdio_.h (__attribute__): New macro.
102917         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
102918         vsprintf): Specify __attribute__ __format__ for GCC.
102919         Suggested by Eric Blake.
102921 2007-03-09  Bruno Haible  <bruno@clisp.org>
102923         * modules/printf-posix-tests: New file.
102924         * tests/test-printf-posix.sh: New file.
102925         * tests/test-printf-posix.c: New file.
102927         * modules/printf-posix: New file.
102928         * lib/printf.c: New file.
102929         * m4/printf-posix-rpl.m4: New file.
102930         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
102931         REPLACE_PRINTF.
102932         * lib/stdio_.h (printf): New declaration.
102933         (format, __format__, ____printf____, ____scanf____, ____strftime____,
102934         ____strfmon____): New macros.
102935         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
102936         REPLACE_PRINTF.
102938 2007-03-09  Bruno Haible  <bruno@clisp.org>
102940         * tests/test-vasnprintf-posix2.sh: New file.
102941         * tests/test-vasnprintf-posix2.c: New file.
102942         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
102943         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
102944         (Makefile.am): Activate test-vasnprintf-posix2.sh.
102946         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
102947         a locale dependent decimal point, rather than always '.'.
102949 2007-03-09  Eric Blake  <ebb9@byu.net>
102951         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
102952         spite of platforms like Tandem/NSK that define it to -1.
102954 2007-03-08  Bruno Haible  <bruno@clisp.org>
102956         * modules/vprintf-posix-tests: New file.
102957         * tests/test-vprintf-posix.sh: New file.
102958         * tests/test-vprintf-posix.c: New file.
102959         * tests/test-printf-posix.h: New file.
102961         * modules/vprintf-posix: New file.
102962         * lib/vprintf.c: New file.
102963         * m4/vprintf-posix.m4: New file.
102964         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
102965         REPLACE_VPRINTF.
102966         * lib/stdio_.h (vprintf): New declaration.
102967         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
102968         REPLACE_VPRINTF.
102970 2007-03-08  Bruno Haible  <bruno@clisp.org>
102972         * modules/fprintf-posix-tests: New file.
102973         * tests/test-fprintf-posix.sh: New file.
102974         * tests/test-fprintf-posix.c: New file.
102976         * modules/fprintf-posix: New file.
102977         * lib/fprintf.c: New file.
102978         * m4/fprintf-posix.m4: New file.
102979         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
102980         REPLACE_FPRINTF.
102981         * lib/stdio_.h (fprintf): New declaration.
102982         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
102983         REPLACE_FPRINTF.
102985 2007-03-08  Bruno Haible  <bruno@clisp.org>
102987         * modules/vfprintf-posix-tests: New file.
102988         * tests/test-vfprintf-posix.sh: New file.
102989         * tests/test-vfprintf-posix.c: New file.
102990         * tests/test-fprintf-posix.h: New file.
102991         * tests/test-fprintf-posix.out: New file.
102993         * modules/vfprintf-posix: New file.
102994         * lib/vfprintf.c: New file.
102995         * m4/vfprintf-posix.m4: New file.
102996         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
102997         REPLACE_VFPRINTF.
102998         * lib/stdio_.h (vfprintf): New declaration.
102999         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
103000         REPLACE_VFPRINTF.
103002 2007-03-08  Bruno Haible  <bruno@clisp.org>
103004         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
103006 2007-03-08  Bruno Haible  <bruno@clisp.org>
103008         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
103009         instead of 'expr' invocations.
103010         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
103011         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
103012         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
103013         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
103014         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
103015         Suggested by Paul Eggert.
103017 2007-03-08  Bruno Haible  <bruno@clisp.org>
103019         * modules/fseterr-tests: New file.
103020         * tests/test-fseterr.c: New file.
103022         * modules/fseterr: New file.
103023         * lib/fseterr.h: New file.
103024         * lib/fseterr.c: New file.
103026 2007-03-08  Bruno Haible  <bruno@clisp.org>
103028         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
103029         * lib/getopt_.h: Likewise.
103030         * lib/mbswidth.h: Likewise.
103031         * lib/setenv.h: Likewise.
103032         * lib/vasnprintf.h: Likewise.
103033         * lib/vasprintf.h: Likewise.
103034         * lib/verror.h: Likewise.
103035         * lib/xsetenv.h: Likewise.
103036         * lib/xvasprintf.h: Likewise.
103038 2007-03-08  Jim Meyering  <jim@meyering.net>
103040         * users.txt: Add parted.
103042         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
103044 2007-03-07  Bruno Haible  <bruno@clisp.org>
103046         * m4/printf.m4: Make the shell script snippets copy&pastable.
103048 2007-03-02  Bruno Haible  <bruno@clisp.org>
103050         * lib/netinet_in_.h: New file.
103051         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
103052         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
103053         * modules/netinet_in (Files): Add lib/netinet_in_.h.
103054         (Depends-on): Add absolute-header.
103055         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
103056         into netinet/in.h.
103058 2007-03-03  Bruno Haible  <bruno@clisp.org>
103060         * lib/sys_select_.h: New file.
103061         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
103062         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
103063         * modules/sys_select (Files): Add lib/sys_select_.h.
103064         (Depends-on): Add absolute-header.
103065         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
103066         into sys/select.h.
103068 2007-03-02  Bruno Haible  <bruno@clisp.org>
103070         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
103071         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
103072         values.
103073         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
103074         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
103075         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
103076         * modules/sys_socket (Depends-on): Add absolute-header.
103077         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
103078         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
103079         (Include): Remove requirement of inclusion of <sys/types.h>.
103081 2007-03-02  Bruno Haible  <bruno@clisp.org>
103083         * lib/byteswap_.h (bswap_32): Fix formula.
103085 2007-03-06  Bruno Haible  <bruno@clisp.org>
103087         * modules/sprintf-posix-tests: New file.
103088         * tests/test-sprintf-posix.c: New file.
103090         * modules/sprintf-posix: New file.
103091         * lib/sprintf.c: New file.
103092         * m4/sprintf-posix.m4: New file.
103093         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
103094         REPLACE_SPRINTF.
103095         * lib/stdio_.h (sprintf): New declaration.
103096         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
103097         REPLACE_SPRINTF.
103099 2007-03-06  Bruno Haible  <bruno@clisp.org>
103101         * modules/vsprintf-posix-tests: New file.
103102         * tests/test-vsprintf-posix.c: New file.
103103         * tests/test-sprintf-posix.h: New file.
103105         * modules/vsprintf-posix: New file.
103106         * lib/vsprintf.c: New file.
103107         * m4/vsprintf-posix.m4: New file.
103108         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
103109         REPLACE_VSPRINTF.
103110         * lib/stdio_.h (vsprintf): New declaration.
103111         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
103112         REPLACE_VSPRINTF.
103114 2007-03-06  Bruno Haible  <bruno@clisp.org>
103116         * modules/vsnprintf (Depend-on): Remove minmax.
103118 2007-03-06  Bruno Haible  <bruno@clisp.org>
103120         * modules/snprintf-posix-tests: New file.
103121         * tests/test-snprintf-posix.c: New file.
103123         * modules/snprintf-posix: New file.
103124         * m4/snprintf-posix.m4: New file.
103125         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
103126         gl_FUNC_SNPRINTF.
103127         (gl_FUNC_SNPRINTF): Invoke it.
103128         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
103129         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
103130         is set.
103131         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
103133 2007-03-06  Bruno Haible  <bruno@clisp.org>
103135         * modules/vsnprintf-posix-tests: New file.
103136         * tests/test-vsnprintf-posix.c: New file.
103137         * tests/test-snprintf-posix.h: New file.
103139         * modules/vsnprintf-posix: New file.
103140         * m4/vsnprintf-posix.m4: New file.
103141         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
103142         gl_FUNC_VSNPRINTF.
103143         (gl_FUNC_VSNPRINTF): Invoke it.
103144         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
103145         * lib/stdio_.h (vsnprintf): Define as a replacement if
103146         REPLACE_VSNPRINTF is set.
103147         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
103149 2007-03-06  Bruno Haible  <bruno@clisp.org>
103151         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
103152         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
103154 2007-03-06  Bruno Haible  <bruno@clisp.org>
103156         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
103157         (asinl): Declare also if HAVE_DECL_ASINL is set.
103158         (atanl): Declare also if HAVE_DECL_ATANL is set.
103159         (ceill): Declare also if HAVE_DECL_CEILL is set.
103160         (cosl): Declare also if HAVE_DECL_COSL is set.
103161         (expl): Declare also if HAVE_DECL_EXPL is set.
103162         (floorl): Declare also if HAVE_DECL_FLOORL is set.
103163         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
103164         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
103165         (logl): Declare also if HAVE_DECL_LOGL is set.
103166         (sinl): Declare also if HAVE_DECL_SINL is set.
103167         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
103168         (tanl): Declare also if HAVE_DECL_TANL is set.
103169         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
103170         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
103171         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
103172         declaration of frexpl, ldexpl.
103173         * modules/printf-frexpl (Depends-on): Add math.
103174         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
103176 2007-03-05  Bruno Haible  <bruno@clisp.org>
103178         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
103179         frexpl and ldexpl are declared.
103180         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
103182 2007-03-05  Bruno Haible  <bruno@clisp.org>
103184         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
103185         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
103187 2007-03-05  Bruno Haible  <bruno@clisp.org>
103189         * lib/stdio_.h: Include <stddef.h>.
103191 2007-03-05  Bruno Haible  <bruno@clisp.org>
103193         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
103195 2007-03-05  Bruno Haible  <bruno@clisp.org>
103197         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
103198         NetBSD 4, from Ralf Wildenhues.
103200 2007-03-04  Bruno Haible  <bruno@clisp.org>
103202         * lib/vasprintf.h: Update #if logic for the case when the functions
103203         exist but are overridden.
103205 2007-03-04  Bruno Haible  <bruno@clisp.org>
103207         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
103208         implementations: glibc-2.4 and MacOS X 10.3.
103209         * tests/test-vasnprintf-posix.c (test_function): Test also the case
103210         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
103211         * tests/test-vasprintf-posix.c (test_function): Likewise.
103213 2007-03-04  Bruno Haible  <bruno@clisp.org>
103215         * modules/vasprintf-posix-tests: New file.
103216         * tests/test-vasprintf-posix.c: New file.
103218         * modules/vasprintf-posix: New file.
103219         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
103220         defined.
103221         * m4/vasprintf-posix.m4: New file.
103222         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
103223         gl_FUNC_VASPRINTF.
103224         (gl_FUNC_VASPRINTF): Invoke it.
103225         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
103226         here.
103227         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
103229 2007-03-04  Bruno Haible  <bruno@clisp.org>
103231         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
103232         REPLACE_GETTIMEOFDAY.
103233         * modules/sys_time (Makefile.am): Likewise.
103234         * m4/sys_time_h.m4: Likewise.
103235         * m4/gettimeofday.m4: Likewise.
103237 2007-03-04  Bruno Haible  <bruno@clisp.org>
103239         * modules/vasnprintf-posix-tests: New file.
103240         * tests/test-vasnprintf-posix.c: New file.
103242         * modules/vasnprintf-posix: New file.
103243         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
103244         printf-frexpl.h.
103245         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
103246         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
103247         REPLACE_VASNPRINTF is defined.
103248         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
103249         gl_FUNC_VASNPRINTF.
103250         (gl_FUNC_VASNPRINTF): Invoke it.
103251         * m4/vasnprintf-posix.m4: New file.
103252         * m4/printf.m4: New file.
103254 2007-03-04  Bruno Haible  <bruno@clisp.org>
103256         Compile progreloc.c only if --enable-relocatable is specified.
103257         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
103258         if --enable-relocatable was specified.
103259         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
103260         lib_SOURCES.
103262 2007-03-04  Jim Meyering  <jim@meyering.net>
103264         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
103265         Use it consistently, rather than enumerating errno constants.
103267 2007-03-04  Bruno Haible  <bruno@clisp.org>
103269         * modules/xvasprintf-tests: New file.
103270         * tests/test-xvasprintf.c: New file.
103272         * modules/vasprintf-tests: New file.
103273         * tests/test-vasprintf.c: New file.
103275         * modules/vasnprintf-tests: New file.
103276         * tests/test-vasnprintf.c: New file.
103278         * modules/vsnprintf-tests: New file.
103279         * tests/test-vsnprintf.c: New file.
103281         * modules/snprintf-tests: New file.
103282         * tests/test-snprintf.c: New file.
103284 2007-03-04  Bruno Haible  <bruno@clisp.org>
103286         Compile relocatable.c only if --enable-relocatable is specified.
103287         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
103288         gl_RELOCATABLE_LIBRARY.
103289         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
103290         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
103291         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
103292         gl_RELOCATABLE_LIBRARY.
103293         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
103294         (Makefile.am): Remove lib_SOURCES.
103295         * modules/relocatable-lib-lgpl (configure.ac): Invoke
103296         gl_RELOCATABLE_LIBRARY.
103297         (Makefile.am): Remove lib_SOURCES.
103298         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
103299         always.
103300         * modules/relocatable-prog-wrapper (configure.ac): Invoke
103301         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
103303 2007-03-04  Bruno Haible  <bruno@clisp.org>
103305         * modules/argmatch-tests: New file.
103306         * tests/test-argmatch.c: New file.
103308         * tests/test-allocsa.c (main): Halve the number of loop runs.
103310         * modules/alloca-opt-tests: New file.
103311         * tests/test-alloca-opt.c: New file.
103313 2007-03-04  Jim Meyering  <jim@meyering.net>
103315         Work around difference between Linux ACLs and Solaris 10 ZFS.
103316         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
103317         for EINVAL.
103319 2007-03-03  Bruno Haible  <bruno@clisp.org>
103321         * modules/relocatable-prog (Depends-on): Add back progreloc's
103322         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
103324 2007-03-03  Bruno Haible  <bruno@clisp.org>
103326         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
103327         * modules/relocatable-lib: New file.
103329 2007-03-03  Bruno Haible  <bruno@clisp.org>
103331         * modules/relocatable-prog: Renamed from modules/relocatable.
103332         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
103334 2007-03-03  Bruno Haible  <bruno@clisp.org>
103336         * modules/relocatable-script (Files): Add doc/relocatable.texi,
103337         m4/relocatable-lib.m4.
103338         (Depends-on): Remove 'relocatable'.
103339         (configure.ac): Add gl_RELOCATABLE_NOP.
103341 2007-03-03  Bruno Haible  <bruno@clisp.org>
103343         * modules/relocatable-prog-wrapper: New file.
103344         * modules/relocatable (Depends-on): Add it. Remove all other
103345         dependencies except progname.
103346         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
103348         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
103349         (gl_FUNC_STRERROR): Nop.
103350         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
103352         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
103353         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
103355         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
103356         (gl_FUNC_READLINK): Update.
103358         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
103360 2007-03-03  Bruno Haible  <bruno@clisp.org>
103362         * lib/xreadlink.c: Include <unistd.h> unconditionally.
103363         * modules/xreadlink (Depends-on): Add unistd.
103364         * modules/xreadlink-with-size (Depends-on): Likewise.
103366 2007-03-03  Bruno Haible  <bruno@clisp.org>
103368         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
103369         extracted from gt_FUNC_SETENV.
103370         (gt_FUNC_SETENV): Remove macro.
103371         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
103372         remove gt_FUNC_SETENV.
103374 2007-03-03  Bruno Haible  <bruno@clisp.org>
103376         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
103377         ENABLE_RELOCATABLE here.
103378         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
103380 2007-03-03  Bruno Haible  <bruno@clisp.org>
103382         * modules/rbtreehash-list-tests (Depends-on): Add progname.
103383         * tests/test-rbtreehash_list.c: Include progname.h.
103384         (main): Call set_program_name.
103386         * modules/rbtree-oset-tests (Depends-on): Add progname.
103387         * tests/test-rbtree_oset.c: Include progname.h.
103388         (main): Call set_program_name.
103390         * modules/rbtree-list-tests (Depends-on): Add progname.
103391         * tests/test-rbtree_list.c: Include progname.h.
103392         (main): Call set_program_name.
103394         * modules/linked-list-tests (Depends-on): Add progname.
103395         * tests/test-linked_list.c: Include progname.h.
103396         (main): Call set_program_name.
103398 2007-03-03  Bruno Haible  <bruno@clisp.org>
103400         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
103401         All uses of __restrict changed to _Restrict_.
103402         * lib/glob_.h (__restrict): Remove macro.
103404 2007-03-02  Bruno Haible  <bruno@clisp.org>
103406         * modules/gettext (configure.ac): Require gettext infrastructure
103407         from version 0.16.1.
103409 2007-03-02  Bruno Haible  <bruno@clisp.org>
103411         * modules/linkedhash-list-tests (Depends-on): Add progname.
103412         * tests/test-linkedhash_list.c: Include progname.h.
103413         (main): Call set_program_name.
103415         * modules/carray-list-tests (Depends-on): Add progname.
103416         * tests/test-carray_list.c: Include progname.h.
103417         (main): Call set_program_name.
103419         * modules/avltreehash-list-tests (Depends-on): Add progname.
103420         * tests/test-avltreehash_list.c: Include progname.h.
103421         (main): Call set_program_name.
103423         * modules/avltree-oset-tests (Depends-on): Add progname.
103424         * tests/test-avltree_oset.c: Include progname.h.
103425         (main): Call set_program_name.
103427         * modules/avltree-list-tests (Depends-on): Add progname.
103428         * tests/test-avltree_list.c: Include progname.h.
103429         (main): Call set_program_name.
103431         * modules/array-oset-tests (Depends-on): Add progname.
103432         * tests/test-array_oset.c: Include progname.h.
103433         (main): Call set_program_name.
103435         * modules/array-list-tests (Depends-on): Add progname.
103436         * tests/test-array_list.c: Include progname.h.
103437         (main): Call set_program_name.
103439         * modules/argp-tests (Depends-on): Add progname.
103440         * tests/test-argp.c: Include argp.h first. Include progname.h.
103441         (main): Call set_program_name.
103443 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
103445         * doc/gnulib-tool.texi (Initial import): Reword description of
103446         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
103447         limited effect even if defined after the first system include.
103449 2007-03-01  Bruno Haible  <bruno@clisp.org>
103451         * build-aux/config.libpath: Update to libtool-1.5.22.
103452         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
103454 2007-03-01  Bruno Haible  <bruno@clisp.org>
103456         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
103457         foo_CFLAGS.
103458         Reported by Ralf Wildenhues.
103460 2007-03-01  Bruno Haible  <bruno@clisp.org>
103462         * build-aux/install-reloc: Remove object files left over by some
103463         compilers.
103464         Reported by Ralf Wildenhues.
103466 2007-03-01  Bruno Haible  <bruno@clisp.org>
103468         * build-aux/install-reloc: Break long lines.
103470 2007-03-01  Bruno Haible  <bruno@clisp.org>
103472         * doc/relocatable.texi: Document that it may not work on OpenBSD.
103473         Reported by Ralf Wildenhues.
103475 2007-03-01  Bruno Haible  <bruno@clisp.org>
103477         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
103478         include ordering constraints.
103480 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
103482         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
103483         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00136.html>.
103484         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
103485         as another example.
103486         * lib/time_.h: Fix misspelling.
103487         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
103488         Require gl_HEADER_TIME_H_DEFAULTS.
103489         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
103490         * m4/time_r.m4 (gl_TIME_R): Likewise.
103491         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
103493 2007-03-01  Bruno Haible  <bruno@clisp.org>
103495         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
103496         * m4/utimens.m4 (gl_UTIMENS): Likewise.
103498 2007-03-01  Jim Meyering  <jim@meyering.net>
103500         * modules/xreadlink (Maintainer): Add my name.
103501         * modules/xreadlink-with-size (Depends-on): Alphabetize.
103503 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
103504             Bruno Haible  <bruno@clisp.org>
103506         * build-aux/install-reloc: Compile also c-ctype.c.
103507         * build-aux/relocatable.sh.in: New file.
103508         * doc/relocatable.texi: New file.
103509         * doc/relocatable-maint.texi: New file.
103510         * doc/gnulib.texi: Include relocatable-maint.texi.
103511         * lib/progreloc.c: Include unistd.h unconditionally.
103512         * lib/relocwrapper.c: Include unistd.h unconditionally.
103513         Include c-ctype.h.
103514         (add_dotbin): Use c_tolower.
103515         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
103516         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
103517         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
103518         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
103519         to m4/relocatable-lib.m4.
103520         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
103521         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
103522         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
103523         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
103524         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
103525         * modules/relocatable: New file.
103526         * modules/relocatable-lib: New file.
103527         * modules/relocatable-script: New file.
103529 2007-02-28  Bruno Haible  <bruno@clisp.org>
103531         Import --enable-relocatable infrastructure.
103532         * build-aux/config.libpath: New file, from GNU gettext.
103533         * build-aux/install-reloc: New file, from GNU gettext.
103534         * build-aux/reloc-ldflags: New file, from GNU gettext.
103535         * lib/relocatable.h: New file, from GNU gettext.
103536         * lib/relocatable.c: New file, from GNU gettext.
103537         * lib/relocwrapper.c: New file, from GNU gettext.
103538         * m4/relocatable.m4: New file, from GNU gettext.
103540 2007-02-28  Bruno Haible  <bruno@clisp.org>
103542         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
103544         * modules/xreadlink: New file, from GNU gettext with modifications.
103545         * lib/xreadlink.c: New file, from GNU gettext.
103546         * lib/xreadlink.h: Add comments.
103547         (xreadlink): New declaration.
103549         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
103550         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
103551         lib/xreadlink-with-size.c.
103552         (configure.ac): Remove gl_XREADLINK invocation.
103553         (Makefile.am): Augment lib_SOURCES.
103554         * m4/xreadlink.m4: Remove file.
103555         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
103556         (xreadlink_with_size): Renamed from xreadink.
103557         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
103558         * modules/canonicalize (Depends-on): Replace xreadlink with
103559         xreadlink-with-size.
103560         * lib/canonicalize.c (canonicalize_filename_mode): Update.
103562 2007-02-25  Jim Meyering  <jim@meyering.net>
103564         * build-aux/announce-gen: When complaining about excess arguments,
103565         list them.
103567 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
103569         * README: Document signed integer overflow situation more
103570         accurately.
103572 2007-02-25  Bruno Haible  <bruno@clisp.org>
103574         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
103575         'a' or 'A' conversion.
103577 2007-02-25  Bruno Haible  <bruno@clisp.org>
103579         * modules/filename: Renamed from modules/pathname.
103580         (Files): Replace lib/pathname.h with lib/filename.h. Replace
103581         lib/concatpath.c with lib/concat-filename.c.
103582         (Makefile.am): Update.
103583         (Include): Replace pathname.h with filename.h.
103584         * lib/filename.h: Renamed from lib/pathname.h.
103585         (concatenated_filename): Renamed from concatenated_pathname.
103586         * lib/concat-filename.c: Renamed from lib/concatpath.c.
103587         (concatenated_filename): Renamed from concatenated_pathname.
103588         * lib/findprog.c: Include filename.h instead of pathname.h.
103589         (find_in_path): Update.
103590         * lib/javacomp.c: Include filename.h instead of pathname.h.
103591         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
103592         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
103593         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
103594         is_oldgcj_14_13_usable, is_javac_usable): Update.
103595         * lib/javaexec.c: Include filename.h instead of pathname.h.
103596         (execute_java_class): Update.
103597         * modules/findprog: Update.
103598         * modules/javacomp: Update.
103599         * modules/javaexec: Update.
103600         * MODULES.html.sh (File system functions): Add 'filename', remove
103601         'pathname'.
103603 2007-02-25  Bruno Haible  <bruno@clisp.org>
103605         * modules/printf-frexpl-tests: New file.
103606         * tests/test-printf-frexpl.c: New file.
103608         * modules/printf-frexpl: New file.
103609         * lib/printf-frexpl.h: New file.
103610         * lib/printf-frexpl.c: New file.
103611         * m4/printf-frexpl.m4: New file.
103613 2007-02-25  Bruno Haible  <bruno@clisp.org>
103615         * modules/printf-frexp-tests: New file.
103616         * tests/test-printf-frexp.c: New file.
103618         * modules/printf-frexp: New file.
103619         * lib/printf-frexp.h: New file.
103620         * lib/printf-frexp.c: New file.
103621         * m4/printf-frexp.m4: New file.
103623 2007-02-25  Bruno Haible  <bruno@clisp.org>
103625         Assume automake >= 1.10 for the tests.
103626         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
103627         * modules/arctwo-tests: Likewise.
103628         * modules/argp-tests: Likewise.
103629         * modules/avltree-list-tests: Likewise.
103630         * modules/avltree-oset-tests: Likewise.
103631         * modules/avltreehash-list-tests: Likewise.
103632         * modules/carray-list-tests: Likewise.
103633         * modules/crc-tests: Likewise.
103634         * modules/des-tests: Likewise.
103635         * modules/gc-arcfour-tests: Likewise.
103636         * modules/gc-arctwo-tests: Likewise.
103637         * modules/gc-des-tests: Likewise.
103638         * modules/gc-hmac-md5-tests: Likewise.
103639         * modules/gc-hmac-sha1-tests: Likewise.
103640         * modules/gc-md2-tests: Likewise.
103641         * modules/gc-md4-tests: Likewise.
103642         * modules/gc-md5-tests: Likewise.
103643         * modules/gc-pbkdf2-sha1-tests: Likewise.
103644         * modules/gc-rijndael-tests: Likewise.
103645         * modules/gc-sha1-tests: Likewise.
103646         * modules/gc-tests: Likewise.
103647         * modules/getaddrinfo-tests: Likewise.
103648         * modules/hmac-md5-tests: Likewise.
103649         * modules/hmac-sha1-tests: Likewise.
103650         * modules/linked-list-tests: Likewise.
103651         * modules/linkedhash-list-tests: Likewise.
103652         * modules/lock-tests: Likewise.
103653         * modules/md2-tests: Likewise.
103654         * modules/md4-tests: Likewise.
103655         * modules/md5-tests: Likewise.
103656         * modules/rbtree-list-tests: Likewise.
103657         * modules/rbtree-oset-tests: Likewise.
103658         * modules/rbtreehash-list-tests: Likewise.
103659         * modules/read-file-tests: Likewise.
103660         * modules/rijndael-tests: Likewise.
103661         * modules/stdint-tests: Likewise.
103662         * modules/tls-tests: Likewise.
103664 2007-02-24  Bruno Haible  <bruno@clisp.org>
103666         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
103667         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
103668         function; instead check whether isnan with a double argument links.
103669         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
103670         function; instead check whether isnan with a 'long double' argument
103671         links.
103672         Reported by Eric Blake <ebb9@byu.net>.
103674 2007-02-24  Bruno Haible  <bruno@clisp.org>
103676         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
103677         defined.
103678         * lib/isnanl.c: Remove all code. Just include isnan.c.
103679         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
103681 2007-02-25  Jim Meyering  <jim@meyering.net>
103683         Avoid conflicting types for 'unsetenv' on FreeBSD.
103684         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
103685         conflicting with FreeBSD's (5.0 and 6.1) function declaration
103686         in stdlib.h.
103688 2007-02-24  Bruno Haible  <bruno@clisp.org>
103690         * modules/isnanl-nolibm-tests: New file.
103691         * tests/test-isnanl.c: New file.
103693         * modules/isnanl-nolibm: New file.
103694         * lib/isnanl.h: New file.
103695         * lib/isnanl.c: New file.
103696         * m4/isnanl.m4: New file.
103698 2007-02-24  Bruno Haible  <bruno@clisp.org>
103700         * modules/isnan-nolibm-tests: New file.
103701         * tests/test-isnan.c: New file.
103703         * modules/isnan-nolibm: New file.
103704         * lib/isnan.h: New file.
103705         * lib/isnan.c: New file.
103706         * m4/isnan.m4: New file.
103708 2007-02-24  Bruno Haible  <bruno@clisp.org>
103710         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
103711         assume that an exponent fits in 20 bits.
103713 2007-02-24  Jim Meyering  <jim@meyering.net>
103715         * m4/regex.m4: Update the description of the configure-time option,
103716         --without-included-regex, to state accurately what the defaults are,
103717         and perhaps to give people an idea why using this option is risky.
103719 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
103721         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
103722         loops on small arguments.  This attempts to avoid the problem
103723         Bruno Haible reported for AIX 4.3.2 in
103724         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00309.html>.
103726 2007-02-23  Bruno Haible  <bruno@clisp.org>
103728         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
103729         Needed for help2man.
103731 2007-02-23  Karl Berry  <karl@gnu.org>
103733         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
103734         exists, foo.h should be cvs-ignored, not committed.
103736 2007-02-23  Eric Blake  <ebb9@byu.net>
103738         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
103739         * lib/stat-time.h (includes): Likewise.
103740         * lib/utimecmp.c (includes): Likewise.
103741         * lib/utimens.h (includes): Likewise.
103742         * lib/getdate.y (includes): Also include "timespec.h" for use
103743         internal to the module.
103744         * modules/utimens (Depends-on): Revert yesterday's patch.
103745         * modules/nanosleep (Depends-on): Add missing dependency.
103747 2007-02-22  Bruno Haible  <bruno@clisp.org>
103749         * lib/glob.c: Don't include getlogin_r.h.
103751 2007-02-22  Jim Meyering  <jim@meyering.net>
103753         * modules/utimens (Depends-on): Add timespec, required for
103754         utimens.h's inclusion of timespec.h.
103756 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
103758         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
103759         long unreadable paths in GNU/Linux.  Problem reported by Andreas
103760         Schwab in
103761         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00261.html>.
103762         I'll try to think of a better way to fix the Solaris problem.
103764         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
103765         like glibc; on Solaris 10, it fails with errno == EINVAL.
103766         POSIX says the behavior is unspecified if the first argument is NULL,
103767         so play it safe and never pass NULL to the system getcwd.
103769 2007-02-21  Jim Meyering  <jim@meyering.net>
103771         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
103772         of gettimeofday.  It would conflict with the one now always
103773         provided via sys_time_.h.  Reported by Matthew Woehlke, as
103774         an IRIX 6.5 build failure.
103776 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
103778         Minor fixups to port to Solaris 10 with Sun C 5.8.
103779         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
103780         * modules/getcwd (Depends-on): Add dirfd.
103781         * lib/putenv.c (putenv): #undef it.
103782         (rpl_putenv): New decl.
103783         (malloc, free): Include <stdlib.h> rather than prototyping separately.
103785 2007-02-20  Bruno Haible  <bruno@clisp.org>
103787         * modules/stdio-tests: New file.
103788         * tests/test-stdio.c: New file.
103790         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
103791         (Depends-on): Add stdio.
103792         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
103793         (Include): Use <stdio.h> instead of vsnprintf.h.
103794         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
103795         HAVE_DECL_VSNPRINTF.
103796         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
103798         * modules/snprintf (Files): Remove lib/snprintf.h.
103799         (Depends-on): Add stdio.
103800         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
103801         (Include): Use <stdio.h> instead of snprintf.h.
103802         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
103803         HAVE_DECL_SNPRINTF.
103804         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
103805         * lib/getaddrinfo.c: Likewise.
103807         * modules/stdio: New file.
103808         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
103809         * lib/snprintf.h: Remove file.
103810         * lib/vsnprintf.h: Remove file.
103811         * lib/.cppi-disable: Remove snprintf.h.
103812         * m4/stdio_h.m4: New file.
103813         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
103815 2007-02-20  Jim Meyering  <jim@meyering.net>
103817         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
103818         used by e.g., mingw.  From Bruno Haible.
103820 2007-02-19  Bruno Haible  <bruno@clisp.org>
103822         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
103823         warnings.
103824         Reported by Ben Pfaff <blp@cs.stanford.edu>.
103826 2007-02-19  Bruno Haible  <bruno@clisp.org>
103828         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
103829         from mingw users.
103831 2007-02-19  Bruno Haible  <bruno@clisp.org>
103833         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
103834         warnings.
103835         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
103837 2007-02-19  Jim Meyering  <jim@meyering.net>
103839         Don't use FD after a successful "fdopendir (fd)".
103840         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
103841         Reset it by calling dirfd on the just-obtained DIR*.
103843         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
103844         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
103846 2007-02-18  Bruno Haible  <bruno@clisp.org>
103848         * lib/readlink.c: Include <unistd.h>.
103849         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
103850         HAVE_READLINK.
103851         * modules/readlink (Depends-on): Add unistd.
103852         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
103853         (Include): Add <unistd.h>.
103855         * lib/getlogin_r.h: Remove file.
103856         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
103857         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
103858         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
103859         HAVE_DECL_GETLOGIN_R.
103860         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
103861         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
103862         (Include): Use <unistd.h> instead of getlogin_r.h.
103864         * lib/getcwd.h: Remove file.
103865         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
103866         * lib/xgetcwd.c: Likewise.
103867         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
103868         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
103869         * modules/getcwd (Files): Remove lib/getcwd.h.
103870         (Depends-on): Add unistd.
103871         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
103872         (Include): Use <unistd.h> instad of getcwd.h.
103874         * lib/ftruncate.c: Include <unistd.h> first.
103875         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
103876         Set HAVE_FTRUNCATE.
103877         * modules/ftruncate (Depends-on): Add unistd.
103878         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
103880         * lib/fchdir.c: Include <unistd.h> first.
103881         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
103882         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
103883         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
103884         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
103885         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
103887         * lib/dup2.c: Include <unistd.h> first.
103888         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
103889         HAVE_DUP2.
103890         * modules/dup2 (Depends-on): Add unistd.
103891         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
103893         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
103894         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
103895         REPLACE_CHOWN. Don't define chown as a macro here.
103896         * modules/chown (Depends-on): Add unistd.
103897         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
103899         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
103900         Add definition for GL_LINK_WARNING.
103901         (chown, dup2): New declarations.
103902         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
103903         link warning.
103904         (ftruncate): New declaration.
103905         (getcwd): New declaration, taken from old getcwd.h.
103906         (getlogin_r): New declaration, taken from old getlogin_r.h.
103907         (readlink): New declaration.
103908         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
103909         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
103910         (gl_PREREQ_UNISTD): Remove macro.
103911         (gl_UNISTD_MODULE_INDICATOR): New macro.
103912         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
103913         many new variables. Don't set UNISTD_H.
103914         * modules/unistd (Description): Change.
103915         (Depends-on): Add link-warning.
103916         (configure.ac): Update.
103917         (Makefile.am): Create unistd.h always. Substitute many new variables
103918         into it.
103920 2007-02-18  Bruno Haible  <bruno@clisp.org>
103922         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
103923         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
103924         HAVE_GETSUBOPT.
103925         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
103926         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
103927         * lib/getsubopt.h: Remove file.
103928         * modules/getsubopt (Files): Remove lib/getsubopt.h.
103929         (Depends-on): Add stdlib.
103930         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
103931         (Includes): Use <stdlib.h> instead of getsubopt.h.
103932         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
103933         Set HAVE_GETSUBOPT.
103934         * lib/getsubopt.c: Don't include getsubopt.h.
103936 2007-02-18  Bruno Haible  <bruno@clisp.org>
103938         * modules/fchdir (Depends-on): Add dup2.
103940 2007-02-18  Bruno Haible  <bruno@clisp.org>
103942         * lib/stdlib_.h: Handle glibc's special invocation convention
103943         specially.
103945 2007-02-18  Bruno Haible  <bruno@clisp.org>
103947         * modules/stdlib-tests: New file.
103948         * tests/test-stdlib.c: New file.
103950         * modules/mkstemp (Files): Remove lib/mkstemp.h.
103951         (Depends-on): Add stdlib.
103952         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
103953         (Includes): Use <stdlib.h> instead of mkstemp.h.
103954         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
103955         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
103956         * lib/mkstemp.c: Don't include mkstemp.h.
103957         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
103958         * lib/stdlib--.h: Don't include mkstemp.h.
103960         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
103961         (Depends-on): Add stdlib.
103962         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
103963         (Includes): Use <stdlib.h> instead of mkdtemp.h.
103964         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
103965         HAVE_MKDTEMP.
103966         * lib/mkdtemp.c: Don't include mkdtemp.h.
103967         * lib/clean-temp.c: Don't include mkdtemp.h.
103969         * modules/exit (Files): Remove lib/exit.h.
103970         (Depends-on): Add stdlib.
103971         (Makefile.am): Remove lib_SOURCES.
103972         (Include): Use <stdlib.h> instead of exit.h.
103973         * lib/argmatch.c: Don't include exit.h.
103974         * lib/execute.c: Likewise.
103975         * lib/pagealign_alloc.c: Likewise.
103976         * lib/pipe.c: Likewise.
103977         * lib/wait-process.c: Likewise.
103978         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
103979         * lib/exitfail.c: Likewise.
103980         * lib/savewd.c: Likewise.
103981         * lib/xsetenv.c: Likewise.
103983         * modules/stdlib: New file.
103984         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
103985         and extra comments about mkstemp().
103986         * lib/exit.h: Remove file.
103987         * lib/mkdtemp.h: Remove file.
103988         * lib/mkstemp.h: Remove file.
103989         * m4/stdlib_h.m4: New file.
103990         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
103992 2007-02-18  Bruno Haible  <bruno@clisp.org>
103994         * modules/math-tests: New file.
103995         * tests/test-math.c: New file.
103997         * modules/math: New file.
103998         * modules/mathl (Files): Remove lib/mathl.h.
103999         (Depends-on): Add math.
104000         (Makefile.am): Don't mention mathl.h.
104001         (Include): Use <math.h> instead of mathl.h.
104002         * lib/math_.h: New file.
104003         * lib/mathl.h: Remove file.
104004         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
104005         mathl.h.
104006         * lib/asinl.c: Likewise.
104007         * lib/atanl.c: Likewise.
104008         * lib/ceill.c: Likewise.
104009         * lib/cosl.c: Likewise.
104010         * lib/expl.c: Likewise.
104011         * lib/floorl.c: Likewise.
104012         * lib/frexpl.c: Likewise.
104013         * lib/ldexpl.c: Likewise.
104014         * lib/logl.c: Likewise.
104015         * lib/sincosl.c: Likewise.
104016         * lib/sinl.c: Likewise.
104017         * lib/sqrtl.c: Likewise.
104018         * lib/tanl.c: Likewise.
104019         * lib/trigl.c: Likewise.
104020         * m4/math_h.m4: New file.
104021         * MODULES.html.sh (Mathematics): Add math.
104023 2007-02-17  Bruno Haible  <bruno@clisp.org>
104025         * modules/wctype-tests: New file.
104026         * tests/test-wctype.c: New file.
104028         * modules/wchar-tests: New file.
104029         * tests/test-wchar.c: New file.
104031         * modules/unistd-tests: New file.
104032         * tests/test-unistd.c: New file.
104034         * modules/time-tests: New file.
104035         * tests/test-time.c: New file.
104037         * modules/sysexits-tests: New file.
104038         * tests/test-sysexits.c: New file.
104040         * modules/sys_time-tests: New file.
104041         * tests/test-sys_time.c: New file.
104043         * modules/sys_stat-tests: New file.
104044         * tests/test-sys_stat.c: New file.
104046         * modules/sys_socket-tests: New file.
104047         * tests/test-sys_socket.c: New file.
104049         * modules/sys_select-tests: New file.
104050         * tests/test-sys_select.c: New file.
104052         * modules/string-tests: New file.
104053         * tests/test-string.c: New file.
104055         * modules/stdbool-tests: New file.
104056         * tests/test-stdbool.c: New file.
104058         * modules/netinet_in-tests: New file.
104059         * tests/test-netinet_in.c: New file.
104061         * modules/inttypes-tests: New file.
104062         * tests/test-inttypes.c: New file.
104064         * modules/fcntl-tests: New file.
104065         * tests/test-fcntl.c: New file.
104067         * modules/byteswap-tests: New file.
104068         * tests/test-byteswap.c: New file.
104070         * modules/arpa_inet-tests: New file.
104071         * tests/test-arpa_inet.c: New file.
104073 2007-02-17  Bruno Haible  <bruno@clisp.org>
104075         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
104076         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
104077         if the corresponding module is not enabled. Emit link warnings if
104078         the function is used nevertheless.
104079         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
104080         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
104081         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
104082         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
104083         * modules/inttypes (Depends-on): Add link-warning.
104084         (Makefile.am): Copy the contents of build-aux/link-warning.h into
104085         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
104086         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
104087         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
104088         * modules/imaxdiv (configure.ac): Likewise.
104089         * modules/strtoimax (configure.ac): Likewise.
104090         * modules/strtoumax (configure.ac): Likewise.
104092 2007-02-17  Bruno Haible  <bruno@clisp.org>
104094         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
104095         gl_STRING_MODULE_INDICATOR_DEFAULTS.
104096         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
104097         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
104099 2007-02-17  Bruno Haible  <bruno@clisp.org>
104101         * modules/link-warning: New file.
104102         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
104103         * lib/string_.h (GL_LINK_WARNING): Remove definition.
104104         * modules/string (Depends-on): Add link-warning.
104105         (Makefile.am): Copy the contents of build-aux/link-warning.h into
104106         string.h.
104107         * MODULES.html.sh (Support for building libraries and executables): Add
104108         link-warning.
104110 2007-02-17  Bruno Haible  <bruno@clisp.org>
104112         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
104113         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
104114         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
104115         long lines.
104117 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
104118             Bruno Haible  <bruno@clisp.org>
104120         * modules/tmpfile: New file.
104121         * lib/tmpfile.c: New file.
104122         * m4/tmpfile.m4: New file.
104123         * MODULES.html.sh (func_all_modules): New section "Input/output".
104125 2007-02-15  Bruno Haible  <bruno@clisp.org>
104127         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
104128         (supports_delete_on_close): New function.
104129         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
104131 2007-02-14  Bruno Haible  <bruno@clisp.org>
104133         * modules/mbspcasecmp-tests: New file.
104134         * tests/test-mbspcasecmp.sh: New file.
104135         * tests/test-mbspcasecmp.c: New file.
104137         New module mbspcasecmp.
104138         * modules/mbspcasecmp: New file.
104139         * lib/mbspcasecmp.c: New file.
104140         * lib/string_.h (strncasecmp): Change warning message.
104141         (mbspcasecmp): New declaration.
104142         * m4/mbspcasecmp.m4: New file.
104143         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
104144         GNULIB_MBSPCASECMP.
104145         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
104146         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
104148 2007-02-14  Bruno Haible  <bruno@clisp.org>
104150         * modules/mbsncasecmp-tests: New file.
104151         * tests/test-mbsncasecmp.sh: New file.
104152         * tests/test-mbsncasecmp.c: New file.
104154         New module mbsncasecmp.
104155         * modules/mbsncasecmp: New file.
104156         * lib/mbsncasecmp.c: New file.
104157         * lib/string_.h (mbsncasecmp): New declaration.
104158         * m4/mbsncasecmp.m4: New file.
104159         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
104160         GNULIB_MBSNCASECMP.
104161         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
104162         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
104164 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
104166         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
104167         Verify that it doesn't overlap with our flags.
104168         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
104169         do not have the desired effect in multibyte locales; instead, use
104170         mbscasecmp.
104171         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
104172         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
104173         we don't require GNU fnmatch ourselves (if our users require it, they
104174         should do so explicitly).
104176         Fix regex code so it doesn't rely on strcasecmp.
104177         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
104178         Otherwise, include gnulib's langinfo.h.
104179         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
104180         undesirable behavior in non-C locales.  Instead, rely on localecharset.
104181         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
104182         * modules/regex (FILES): Remove m4/codeset.m4.
104183         (Depends-on): Add localcharset.  Remove strcase.
104185 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
104187         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
104188         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
104190 2007-02-13  Bruno Haible  <bruno@clisp.org>
104192         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
104193         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
104195 2007-02-12  Bruno Haible  <bruno@clisp.org>
104197         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
104198         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
104199         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
104200         time warning rather than a link error.
104202 2007-02-12  Bruno Haible  <bruno@clisp.org>
104204         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
104205         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
104206         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
104208 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
104210         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
104211         args, not 2.
104213 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
104215         New module 'time', so that apps can include <time.h> as per
104216         POSIX and GNU instead of separate include files like time_r.h
104217         and timegm.h.  This implementation tries out a simpler approach
104218         for replacing decls in standard include files (as compared to
104219         the string module), somewhat as an experiment.
104221         * config/srclist.txt: Comment out mktime.c for now.
104222         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
104223         since it doesn't apply any more.  Use generic wording instead.
104224         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
104225         'time'.
104226         * lib/time_.h, m4/time_h.m4, modules/time: New files.
104227         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
104228         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
104229         Don't include <sys/types.h>; no longer needed since we assume C89.
104230         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
104231         * lib/strftime.c: Likewise.
104232         * lib/time_r.c: Likewise.
104233         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
104234         * lib/nanosleep.c: Include <time.h> first, to check interface.
104235         * lib/strptime.c: Likewise.
104236         * lib/time_r.c: Likewise.
104237         * lib/timegm.c: Likewise.
104238         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
104239         needed.
104240         * lib/timegm.c: Don't include timegm.h; no longer needed.
104241         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
104242         time.h now handles any problems in that area.
104243         (struct timespec, nanosleep): Remove; time.h now arranges for these.
104244         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
104245         that time.h defines struct timespec.
104246         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
104247         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
104248         handles that.
104249         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
104250         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
104251         needed.  Set REPLACE_LOCALTIME.
104252         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
104253         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
104254         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
104255         nanosleep; time_h.m4 now does that.  Don't require
104256         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
104257         module handles this now.
104258         * modules/getdate (Depends-on): Remove timespec.  Add time.
104259         * modules/nanosleep (Depends-on): Likewise.
104260         * modules/stat-time (Depends-on): Likewise.
104261         * modules/nanosleep (Include): Include time.h, not timespec.h.
104262         * modules/strptime (Files): Remove lib/strptime.h.
104263         (Depends-on): Add extensions, time.
104264         (Include): Include time.h, not strptime.h.
104265         * modules/time_r (Files): Remove lib/time_r.h.
104266         (Depends-on): Add time.
104267         (Include): Include time.h, not time_r.h.
104268         * modules/timegm: Likewise.
104269         * modules/timespec (Description): Now does timespec-related decls
104270         of our own, instead of struct timespec itself.
104271         (Depends-on): Add time; remove extensions.
104272         (Maintainer): Add self.
104273         * modules/utimecmp (Depends-on): Add time; remove timespec.
104274         * modules/utimens (Depends-on): Likewise.
104275         * modules/xnanosleep (Depends-on): Likewise.
104277 2007-02-11  Bruno Haible  <bruno@clisp.org>
104279         * lib/c-strstr.c: Include allocsa.h.
104280         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
104281         * lib/c-strcasestr.c: Include allocsa.h.
104282         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
104283         * lib/strcasestr.c: Include allocsa.h.
104284         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
104285         * lib/mbsstr.c: Include allocsa.h.
104286         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
104287         allocsa/freesa instead of malloc/free.
104288         * lib/mbscasestr.c: Include allocsa.h.
104289         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
104290         allocsa/freesa instead of malloc/free.
104291         * modules/c-strstr (Depends-on): Add allocsa.
104292         * modules/c-strcasestr (Depends-on): Likewise.
104293         * modules/strcasestr (Depends-on): Likewise.
104294         * modules/mbsstr (Depends-on): Likewise.
104295         * modules/mbscasestr (Depends-on): Likewise.
104297 2007-02-11  Bruno Haible  <bruno@clisp.org>
104299         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
104301         * modules/mbsspn-tests: New file.
104302         * tests/test-mbsspn.sh: New file.
104303         * tests/test-mbsspn.c: New file.
104305 2007-02-11  Bruno Haible  <bruno@clisp.org>
104307         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
104309         * modules/mbspbrk-tests: New file.
104310         * tests/test-mbspbrk.sh: New file.
104311         * tests/test-mbspbrk.c: New file.
104313 2007-02-11  Bruno Haible  <bruno@clisp.org>
104315         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
104316         unneeded cast.
104318         * modules/mbscspn-tests: New file.
104319         * tests/test-mbscspn.sh: New file.
104320         * tests/test-mbscspn.c: New file.
104322 2007-02-11  Bruno Haible  <bruno@clisp.org>
104324         * modules/mbscasecmp-tests: New file.
104325         * tests/test-mbscasecmp.sh: New file.
104326         * tests/test-mbscasecmp.c: New file.
104328 2007-02-11  Bruno Haible  <bruno@clisp.org>
104330         Ensure O(n) worst-case complexity of mbscasestr.
104331         * lib/mbscasestr.c: Include stdbool.h.
104332         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
104333         functions.
104334         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
104335         the bookkeeping indicates that it's worth it.
104336         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
104338         * modules/mbscasestr-tests: New file.
104339         * tests/test-mbscasestr1.c: New file.
104340         * tests/test-mbscasestr2.sh: New file.
104341         * tests/test-mbscasestr2.c: New file.
104342         * tests/test-mbscasestr3.sh: New file.
104343         * tests/test-mbscasestr3.c: New file.
104344         * tests/test-mbscasestr4.sh: New file.
104345         * tests/test-mbscasestr4.c: New file.
104346         * m4/locale-tr.m4: New file.
104348 2007-02-11  Bruno Haible  <bruno@clisp.org>
104350         Ensure O(n) worst-case complexity of mbsstr.
104351         * lib/mbsstr.c: Include stdbool.h.
104352         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
104353         functions.
104354         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
104355         bookkeeping indicates that it's worth it.
104356         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
104358         * modules/mbsstr-tests: New file.
104359         * tests/test-mbsstr1.c: New file.
104360         * tests/test-mbsstr2.sh: New file.
104361         * tests/test-mbsstr2.c: New file.
104362         * tests/test-mbsstr3.sh: New file.
104363         * tests/test-mbsstr3.c: New file.
104364         * m4/locale-fr.m4: New file.
104366 2007-02-11  Bruno Haible  <bruno@clisp.org>
104368         * lib/mbsrchr.c (mbsrchr): Fix bug.
104370         * modules/mbsrchr-tests: New file.
104371         * tests/test-mbsrchr.sh: New file.
104372         * tests/test-mbsrchr.c: New file.
104374 2007-02-11  Bruno Haible  <bruno@clisp.org>
104376         * lib/mbschr.c (mbschr): Fix bug.
104378         * modules/mbschr-tests: New file.
104379         * tests/test-mbschr.sh: New file.
104380         * tests/test-mbschr.c: New file.
104381         * m4/locale-zh.m4: New file.
104383 2007-02-11  Bruno Haible  <bruno@clisp.org>
104385         Support for copying multibyte string iterators.
104386         * lib/mbiter.h: Include <string.h>.
104387         (mbiter_multi_copy): New function.
104388         (mbi_copy): New macro.
104389         * lib/mbuiter.h: Include <string.h>.
104390         (mbuiter_multi_copy): New function.
104391         (mbui_copy): New macro.
104393 2007-02-11  Bruno Haible  <bruno@clisp.org>
104395         New module mbslen.
104396         * modules/mbslen: New file.
104397         * lib/mbslen.c: New file.
104398         * lib/string_.h (mbslen): New declaration.
104399         * m4/mbslen.m4: New file.
104400         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
104401         GNULIB_MBSLEN.
104402         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
104403         * MODULES.html.sh (Internationalization functions): Add mbslen.
104405 2007-02-11  Bruno Haible  <bruno@clisp.org>
104407         Ensure O(n) worst-case complexity of strcasestr substitute.
104408         * lib/strcasestr.c: Include stdbool.h.
104409         (knuth_morris_pratt): New function.
104410         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
104411         bookkeeping indicates that it's worth it.
104412         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
104414         * modules/strcasestr-tests: New file.
104415         * tests/test-strcasestr.c: New file.
104417 2007-02-11  Bruno Haible  <bruno@clisp.org>
104419         Ensure O(n) worst-case complexity of c_strcasestr.
104420         * lib/c-strcasestr.c: Include stdbool.h, string.h.
104421         (knuth_morris_pratt): New function.
104422         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
104423         the bookkeeping indicates that it's worth it.
104424         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
104426         * modules/c-strcasestr-tests: New file.
104427         * tests/test-c-strcasestr.c: New file.
104429 2007-02-11  Bruno Haible  <bruno@clisp.org>
104431         Ensure O(n) worst-case complexity of c_strstr.
104432         * lib/c-strstr.c: Include stdbool.h, string.h.
104433         (knuth_morris_pratt): New function.
104434         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
104435         bookkeeping indicates that it's worth it.
104436         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
104438         * lib/c-strstr.c: Complete rewrite for maintainability.
104440         * modules/c-strstr-tests: New file.
104441         * tests/test-c-strstr.c: New file.
104443 2007-02-11  Bruno Haible  <bruno@clisp.org>
104445         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
104446         5.2.1 and earlier, whereby \055 was treated just like the range
104447         delimiter '-'.
104448         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
104450 2007-02-08  Bruno Haible  <bruno@clisp.org>
104452         * modules/regex (Depends-on): Add stdbool.
104453         Reported by Dalibor Topic <robilad@kaffe.org>.
104455 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
104457         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
104458         Prefer returning from main to exiting from it.
104459         Remove unnecessary parens after sizeof.
104461 2007-02-05  Bruno Haible  <bruno@clisp.org>
104463         New module mbssep.
104464         * modules/mbssep: New file.
104465         * lib/mbssep.c: New file.
104466         * lib/string_.h (strsep): Add a conditional link warning.
104467         (mbssep): New declaration.
104468         * m4/mbssep.m4: New file.
104469         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
104470         GNULIB_MBSSEP.
104471         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
104472         * MODULES.html.sh (Internationalization functions): Add mbssep.
104474 2007-02-05  Bruno Haible  <bruno@clisp.org>
104476         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
104477         Optimize search in case of 1 delimiter.
104479 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
104481         * lib/acl.h: Include sys/types.h before sys/acl.h.
104483 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
104485         Merge upstream fix for glibc bugzilla #3957:
104487         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
104489         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
104490         bit for RE_HAT_LISTS_NOT_NEWLINE.
104491         (build_charclass_op): Remove bogus comment.
104493 2007-02-05  Simon Josefsson  <simon@josefsson.org>
104495         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
104497 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
104499         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
104500         * lib/memmem.c [!defined _LIBC]: Include config.h.
104502 2007-02-04  Bruno Haible  <bruno@clisp.org>
104504         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
104505         warning message.
104507 2007-02-04  Bruno Haible  <bruno@clisp.org>
104509         New module mbstok_r.
104510         * modules/mbstok_r: New file.
104511         * lib/mbstok_r.c: New file.
104512         * lib/string_.h (strtok_r): Change argument names to match the
104513         comments. Add a conditional link warning.
104514         (mbstok_r): New declaration.
104515         * m4/mbstok_r.m4: New file.
104516         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
104517         GNULIB_MBSTOK_R.
104518         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
104519         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
104521 2007-02-04  Bruno Haible  <bruno@clisp.org>
104523         New module mbsspn.
104524         * modules/mbsspn: New file.
104525         * lib/mbsspn.c: New file.
104526         * lib/string_.h (strspn): Add a conditional link warning.
104527         (mbsspn): New declaration.
104528         * m4/mbsspn.m4: New file.
104529         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
104530         GNULIB_MBSSPN.
104531         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
104532         * MODULES.html.sh (Internationalization functions): Add mbsspn.
104534 2007-02-04  Bruno Haible  <bruno@clisp.org>
104536         New module mbspbrk.
104537         * modules/mbspbrk: New file.
104538         * lib/mbspbrk.c: New file.
104539         * lib/string_.h (strpbrk): Add a conditional link warning.
104540         (mbspbrk): New declaration.
104541         * m4/mbspbrk.m4: New file.
104542         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
104543         GNULIB_MBSPBRK.
104544         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
104545         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
104547 2007-02-04  Bruno Haible  <bruno@clisp.org>
104549         New module mbscspn.
104550         * modules/mbscspn: New file.
104551         * lib/mbscspn.c: New file.
104552         * lib/string_.h (strcspn): Add a conditional link warning.
104553         (mbscspn): New declaration.
104554         * m4/mbscspn.m4: New file.
104555         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
104556         GNULIB_MBSCSPN.
104557         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
104558         * MODULES.html.sh (Internationalization functions): Add mbscspn.
104560 2007-02-04  Bruno Haible  <bruno@clisp.org>
104562         New module mbscasestr, reduced goal of strcasestr.
104563         * modules/mbscasestr: New file.
104564         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
104565         (mbscasestr): Renamed from strcasestr.
104566         * lib/strcasestr.c: Don't include mbuiter.h.
104567         (strcasestr): Remove support for multibyte locales.
104568         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
104569         Change the conditional link warning.
104570         (mbscasestr): New declaration.
104571         * m4/mbscasestr.m4: New file.
104572         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
104573         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
104574         REPLACE_STRCASESTR.
104575         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
104576         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
104577         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
104578         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
104579         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
104580         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
104581         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
104582         (Depends-on): Remove mbuiter.
104583         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
104585 2007-02-04  Bruno Haible  <bruno@clisp.org>
104587         Simplify handling of strncasecmp.
104588         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
104589         the conditional link warning.
104590         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
104591         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
104592         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
104593         * modules/strcase (configure.ac): Don't invoke
104594         gl_STRING_MODULE_INDICATOR.
104595         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
104597 2007-02-04  Bruno Haible  <bruno@clisp.org>
104599         New module mbscasecmp, reduced goal of strcasecmp.
104600         * modules/mbscasecmp: New file.
104601         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
104602         (mbscasecmp): Renamed from strcasecmp.
104603         * lib/strcasecmp.c: Don't include mbuiter.h.
104604         (strcasecmp): Remove support for multibyte locales.
104605         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
104606         Change the conditional link warning.
104607         (mbscasecmp): New declaration.
104608         * m4/mbscasecmp.m4: New file.
104609         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
104610         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
104611         REPLACE_STRCASECMP.
104612         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
104613         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
104614         GNULIB_MBSCASECMP.
104615         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
104616         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
104617         * modules/strcase (Files): Remove m4/mbrtowc.m4.
104618         (Depends-on): Remove mbuiter.
104619         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
104621 2007-02-04  Bruno Haible  <bruno@clisp.org>
104623         New module mbsstr. Remove module strstr.
104624         * modules/mbsstr: New file.
104625         * modules/strstr: Remove file.
104626         * lib/mbsstr.c: Renamed from lib/strstr.c.
104627         (mbsstr): Renamed from strstr.
104628         * lib/string_.h (strstr): Remove declaration. Change the conditional
104629         link warning.
104630         (mbsstr): New declaration.
104631         * m4/mbsstr.m4: New file.
104632         * m4/strstr.m4: Remove file.
104633         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
104634         REPLACE_STRSTR.
104635         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
104636         Don't initialize GNULIB_STRSTR.
104637         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
104638         substitute GNULIB_STRSTR and REPLACE_STRSTR.
104639         * MODULES.html.sh (Internationalization functions): Add mbsstr.
104640         (Support for systems lacking ANSI C 89): Remove strstr.
104642 2007-02-04  Bruno Haible  <bruno@clisp.org>
104644         New module mbsrchr.
104645         * modules/mbsrchr: New file.
104646         * lib/mbsrchr.c: New file.
104647         * lib/string_.h (strrchr): Add a conditional link warning.
104648         (mbsrchr): New declaration.
104649         * m4/mbsrchr.m4: New file.
104650         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
104651         GNULIB_MBSRCHR.
104652         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
104653         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
104655 2007-02-04  Bruno Haible  <bruno@clisp.org>
104657         New module mbschr.
104658         * modules/mbschr: New file.
104659         * lib/mbschr.c: New file.
104660         * lib/string_.h (strchr): Add a conditional link warning.
104661         (mbschr): New declaration.
104662         * m4/mbschr.m4: New file.
104663         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
104664         GNULIB_MBSCHR.
104665         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
104666         * MODULES.html.sh (Internationalization functions): Add mbschr.
104668 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
104670         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
104672         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
104674 2007-02-04  Bruno Haible  <bruno@clisp.org>
104676         New module description section 'configure.ac-early'.
104677         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
104678         (func_get_autoconf_early_snippet): New function.
104679         (func_import, func_create_testdir): Use it. Remove special cases for
104680         modules 'extensions' and 'lock'.
104681         * modules/extensions (configure.ac-early): Require
104682         gl_USE_SYSTEM_EXTENSIONS.
104683         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
104685 2007-02-04  Bruno Haible  <bruno@clisp.org>
104687         Make use of gcj-4.3's -fsource and -ftarget option.
104688         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
104689         and if so try the options -fsource and -ftarget.
104690         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
104691         source_version, ftarget_option, target_version arguments.
104692         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
104693         (is_envjavac_oldgcj_14_14_usable): Renamed from
104694         is_envjavac_gcj_14_14_usable.
104695         (is_envjavac_oldgcj_14_13_usable): Renamed from
104696         is_envjavac_gcj_14_13_usable.
104697         (is_gcj_present): Update.
104698         (is_gcj_43, is_gcj43_usable): New functions.
104699         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
104700         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
104701         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
104702         try the options -fsource and -ftarget.
104704 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
104706         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
104707         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
104708         larger value.
104710 2007-02-03  Jim Meyering  <jim@meyering.net>
104712         Give tools a better chance to allocate space for very large buffers.
104713         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
104715         Make pwd and readlink work also when run with an unreadable parent dir
104716         on systems with openat support.
104717         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
104718         provided getcwd function, even when we have openat support.
104719         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
104721 2007-02-02  Bruno Haible  <bruno@clisp.org>
104723         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
104724         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
104725         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
104726         portability problems if one of these functions is only used on specific
104727         platforms.
104728         Reported by Paul Eggert.
104730 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
104732         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
104733         is causing more trouble than it's curing.
104734         * lib/regex_internal.h (__mempcpy): Remove.
104735         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
104736         (and make the code a tad smaller to boot).
104737         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
104739 2007-02-02  Jim Meyering  <jim@meyering.net>
104741         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
104742         section, not in the Makefile.am: one.
104744 2007-02-02  Eric Blake  <ebb9@byu.net>
104746         * lib/strchrnul.c: Always include config.h first.
104748         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
104749         gnulib strstr is not necessary here.
104751 2007-02-02  Simon Josefsson  <simon@josefsson.org>
104753         * m4/socklen.m4: Fix typo.
104755 2007-02-02  Eric Blake  <ebb9@byu.net>
104757         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
104758         * modules/netinet_in (Makefile.am): Likewise.
104760 2007-02-01  Bruno Haible  <bruno@clisp.org>
104762         * lib/string_.h (GL_LINK_WARNING): New macro.
104763         (strcasecmp, strstr, strcasestr): If provided by the system,
104764         conditionally define as a macro that leads to a warning instead of to
104765         an error.
104766         (strncasecmp): Conditionally define as a macro that leads to a warning.
104768 2007-02-01  Karl Berry  <karl@gnu.org>
104770         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
104772 2007-02-01  Bruno Haible  <bruno@clisp.org>
104774         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
104775         renamings.
104777 2007-02-01  Eric Blake  <ebb9@byu.net>
104779         * modules/regex (Depends-on): Revert dependence on mempcpy.
104780         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
104781         module's definition of mempcpy.
104782         Reported by Paul Eggert.
104784 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
104786         * lib/string_.h: If the gnulib module XYZ is not present, undefine
104787         the symbol XYZ before redefining it.  This fixes a problem with
104788         programs that don't use XYZ, when compiled on systems that define
104789         XYZ to something else.
104791 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
104793         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
104794         occurs when "mkdir -m foo" creates a setgid directory that is (1)
104795         writeable to group or other and (2) is intended to have a special
104796         mode bit that is set or cleared.  In such a case, the directory
104797         should be neither group- nor other-writeable until the special
104798         mode bits are right.
104800 2007-01-31  Eric Blake  <ebb9@byu.net>
104802         * modules/mountlist (Depends-on): Add strstr.
104804         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
104805         bug.
104806         * modules/string (Makefile.am): Remove redundant replacement.
104807         * modules/regex (Depends-on): Add mempcpy.
104809 2007-01-31  Bruno Haible  <bruno@clisp.org>
104811         New module description field 'Link'.
104812         * gnulib-tool (func_usage): Document --extract-link-directive.
104813         (sed_extract_prog): Recognize 'Link' directive.
104814         (func_get_link_directive): New function.
104815         (func_import): Show summary of link directives.
104816         Handle --extract-link-directive option.
104817         * modules/acl (Link): New section.
104818         * modules/clock-time (Link): New section.
104819         * modules/euidaccess (Link): New section.
104820         * modules/gettext (Link): New section.
104821         * modules/iconv (Link): New section.
104822         * modules/lock (Link): New section.
104823         * modules/nanosleep (Link): New section.
104824         * modules/readline (Link): New section.
104826 2007-01-27  Bruno Haible  <bruno@clisp.org>
104828         Enforce the use of gnulib modules for unportable <string.h> functions.
104829         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
104830         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
104831         (gl_HEADER_STRING_H_BODY): Require it.
104832         * lib/string_.h: If the gnulib module XYZ is not present, redefine
104833         the symbol XYZ to one that gives a link error.
104834         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
104835         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
104836         * modules/mempcpy (configure.ac): Likewise.
104837         * modules/memrchr (configure.ac): Likewise.
104838         * modules/stpcpy (configure.ac): Likewise.
104839         * modules/stpncpy (configure.ac): Likewise.
104840         * modules/strcase (configure.ac): Likewise.
104841         * modules/strcasestr (configure.ac): Likewise.
104842         * modules/strchrnul (configure.ac): Likewise.
104843         * modules/strdup (configure.ac): Likewise.
104844         * modules/strndup (configure.ac): Likewise.
104845         * modules/strnlen (configure.ac): Likewise.
104846         * modules/strpbrk (configure.ac): Likewise.
104847         * modules/strsep (configure.ac): Likewise.
104848         * modules/strstr (configure.ac): Likewise.
104849         * modules/strtok_r (configure.ac): Likewise.
104851 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
104853         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
104855 2007-01-30  Jim Meyering  <jim@meyering.net>
104857         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
104859 2007-01-29  Bruno Haible  <bruno@clisp.org>
104861         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
104862         * lib/execute.c: Likewise.
104863         * lib/pipe.c: Likewise.
104864         * lib/printf-args.h: Likewise.
104865         * lib/printf-args.c: Likewise.
104866         * lib/printf-parse.c: Likewise.
104867         * lib/vasnprintf.c: Likewise.
104869 2007-01-29  Eric Blake  <ebb9@byu.net>
104871         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
104872         declaration.
104874 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
104876         * lib/strptime.h (strptime): Use 'restrict' for args where
104877         POSIX requires this.
104878         * lib/strptime.c (strptime): Likewise.
104879         Change license notice from LGPL to GPL, since gnulib-tool will
104880         change this as needed.
104881         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
104882         defined.
104883         Include "strptime.h" first, to check interface.
104884         Do not #undef _LIBC and _NL_CURRENT.
104885         Do not include <stdlib.h>; no longer needed.
104886         Include "time_r.h" and declare ptime_locale_status
104887         only if _LIBC is not defined.
104888         (__P): Remove unused macro.
104889         (match_string): Bring back glibc version, but use it only if _LIBC
104890         is defined.
104891         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
104892         Remove unnecessary assertion and abort() call.
104893         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
104894         * m4/strptime.m4: Fix serial number comment.
104895         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
104896         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
104897         (Depends-on): Add time_r.
104899 2007-01-29  Bruno Haible  <bruno@clisp.org>
104901         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
104902         strptime.
104903         * modules/strptime (Depends-on): Add stdbool.
104904         * lib/strptime.h: Include <time.h> always. Add comments.
104906 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
104908         * modules/strptime: New file.
104909         * lib/strptime.h: New file.
104910         * lib/strptime.c: New file.
104911         * m4/strptime.m4: New file.
104913 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
104915         * MODULES.html.sh: New module mpsort.
104916         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
104918         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
104919         a circularity problem with HP-UX ia64 reported by Bob Proulx in
104920         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00394.html>.
104921         All uses changed.
104922         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
104923         All uses changed.
104924         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
104925         to _Restrict_.
104926         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
104927         the parameter matches the prototype.
104929 2007-01-28  Jim Meyering  <jim@meyering.net>
104931         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
104932         sys/time.h here, reverting that part of the previous patch:
104933         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
104935 2007-01-28  Bruno Haible  <bruno@clisp.org>
104937         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
104938         value of $(SYS_TIME_H).
104939         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
104940         remove it conditionally, too. [added by Jim Meyering]
104941         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
104942         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
104943         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
104944         GETTIMEOFDAY_REPLACEMENT to 1.
104946 2007-01-28  Bruno Haible  <bruno@clisp.org>
104948         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
104949         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
104950         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
104951         Set UNISTD_H instead of UNISTD_H2.
104952         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
104954 2007-01-28  Bruno Haible  <bruno@clisp.org>
104956         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
104957         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
104959 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
104961         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
104962         (func_create_testdir): Ensure C locale for `grep' and `tr'
104963         character ranges.
104964         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
104965         ACLOCAL_AMFLAGS parsing state machine.
104967 2007-01-27  Bruno Haible  <bruno@clisp.org>
104969         * modules/unistr/base: Update.
104971 2007-01-27  Bruno Haible  <bruno@clisp.org>
104973         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
104974         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
104975         * modules/unistr/u32-mbtouc-unsafe: Renamed from
104976         modules/unistr/u32-mbtouc.
104977         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
104978         * lib/unistr.h: Update.
104979         * lib/linebreak.c: Update.
104980         * modules/unistr/u32-mbtouc: Renamed from
104981         modules/unistr/u32-mbtouc-safe.
104982         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
104983         * lib/unistr.h: Update.
104984         * lib/unistr/u32-to-u8.c: Update.
104985         * lib/unistr/u32-to-u16.c: Update.
104987 2007-01-27  Bruno Haible  <bruno@clisp.org>
104989         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
104990         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
104991         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
104992         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
104993         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
104994         * modules/unistr/u16-mbtouc-unsafe: Renamed from
104995         modules/unistr/u16-mbtouc.
104996         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
104997         * lib/unistr.h: Update.
104998         * lib/linebreak.c: Update.
104999         * modules/linebreak: Update.
105000         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
105001         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
105002         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
105003         * modules/unistr/u16-mbtouc: Renamed from
105004         modules/unistr/u16-mbtouc-safe.
105005         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
105006         * lib/unistr.h: Update.
105007         * lib/unistr/u16-to-u8.c: Update.
105008         * modules/unistr/u16-to-u8: Update.
105009         * lib/unistr/u16-to-u32.c: Update.
105010         * modules/unistr/u16-to-u32: Update.
105012 2007-01-27  Bruno Haible  <bruno@clisp.org>
105014         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
105015         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
105016         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
105017         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
105018         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
105019         * modules/unistr/u8-mbtouc-unsafe: Renamed from
105020         modules/unistr/u8-mbtouc.
105021         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
105022         * lib/unistr.h: Update.
105023         * lib/striconveh.c: Update.
105024         * modules/striconveh: Update.
105025         * lib/linebreak.c: Update.
105026         * modules/linebreak: Update.
105027         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
105028         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
105029         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
105030         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
105031         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
105032         * lib/unistr.h: Update.
105033         * lib/striconveh.c: Update.
105034         * modules/striconveh: Update.
105035         * lib/unistr/u8-to-u16.c: Update.
105036         * modules/unistr/u8-to-u16: Update.
105037         * lib/unistr/u8-to-u32.c: Update.
105038         * modules/unistr/u8-to-u32: Update.
105040 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
105042         Sync from Libtool.
105043         * lib/argz.c: Do not include strings.h nor memory.h, include
105044         string.h unconditionally.  Patch by Simon Josefsson.
105046 2007-01-27  Bruno Haible  <bruno@clisp.org>
105048         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
105049         from gl_HEADER_STRING_H_BODY.
105050         (gl_HEADER_STRING_H_BODY): Require it.
105051         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
105052         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
105053         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
105054         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
105055         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
105056         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
105057         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
105058         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
105059         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
105060         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
105061         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
105062         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
105063         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
105064         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
105065         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
105067 2007-01-27  Bruno Haible  <bruno@clisp.org>
105069         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
105070         check_PROGRAMS into noinst_PROGRAMS.
105071         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
105072         check_PROGRAMS in this case.
105073         (func_import): Set for_test to false.
105074         (func_create_testdir): Set for_test to true.
105076 2007-01-27  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
105077             Bruno Haible  <bruno@clisp.org>
105079         * modules/strcasestr (Files): Remove lib/strcasestr.h.
105080         (Depends-on): Add string.
105081         (Includes): Use <string.h> instead of strcasestr.h.
105082         * modules/string (Makefile.am): Also substitute the value of
105083         REPLACE_STRCASESTR.
105084         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
105085         assume strcasestr is declared in <string.h> not <strings.h>. Also
105086         set REPLACE_STRCASESTR.
105087         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
105088         REPLACE_STRCASESTR.
105089         * lib/strcasestr.h: Remove file.
105090         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
105091         * lib/string_.h (strcasestr): New declaration.
105093 2007-01-27  Bruno Haible  <bruno@clisp.org>
105095         * lib/string_.h: Use 'extern'.
105097 2007-01-27  Jim Meyering  <jim@meyering.net>
105099         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
105100         of set-but-not-used local, "q".
105102         * lib/mempcpy.c: Include <config.h> before <string.h>.
105103         This fixes a compilation error on HP-UX, due to the system's
105104         "restrict"-using mempcpy prototype.
105106 2007-01-26  Bruno Haible  <bruno@clisp.org>
105108         Small optimization.
105109         * lib/javacomp.c: Include c-strstr.h.
105110          (is_envjavac_gcj): Use c_strstr instead of strstr.
105111         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
105113 2007-01-26  Bruno Haible  <bruno@clisp.org>
105115         * MODULES.html.sh (Unicode string functions): Add the new modules.
105117         * modules/uniconv/u32-strconv-to-locale: New file.
105118         * lib/uniconv/u32-strconv-to-locale.c: New file.
105120         * modules/uniconv/u16-strconv-to-locale: New file.
105121         * lib/uniconv/u16-strconv-to-locale.c: New file.
105123         * modules/uniconv/u8-strconv-to-locale: New file.
105124         * lib/uniconv/u8-strconv-to-locale.c: New file.
105126         * modules/uniconv/u32-strconv-from-locale: New file.
105127         * lib/uniconv/u32-strconv-from-locale.c: New file.
105129         * modules/uniconv/u16-strconv-from-locale: New file.
105130         * lib/uniconv/u16-strconv-from-locale.c: New file.
105132         * modules/uniconv/u8-strconv-from-locale: New file.
105133         * lib/uniconv/u8-strconv-from-locale.c: New file.
105135         * modules/uniconv/u32-strconv-to-enc: New file.
105136         * lib/uniconv/u32-strconv-to-enc.c: New file.
105137         * modules/uniconv/u32-strconv-to-enc-tests: New file.
105138         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
105140         * modules/uniconv/u16-strconv-to-enc: New file.
105141         * lib/uniconv/u16-strconv-to-enc.c: New file.
105142         * lib/uniconv/u-strconv-to-enc.h: New file.
105143         * modules/uniconv/u16-strconv-to-enc-tests: New file.
105144         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
105146         * modules/uniconv/u8-strconv-to-enc: New file.
105147         * lib/uniconv/u8-strconv-to-enc.c: New file.
105148         * modules/uniconv/u8-strconv-to-enc-tests: New file.
105149         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
105151         * modules/uniconv/u32-strconv-from-enc: New file.
105152         * lib/uniconv/u32-strconv-from-enc.c: New file.
105153         * modules/uniconv/u32-strconv-from-enc-tests: New file.
105154         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
105156         * modules/uniconv/u16-strconv-from-enc: New file.
105157         * lib/uniconv/u16-strconv-from-enc.c: New file.
105158         * modules/uniconv/u16-strconv-from-enc-tests: New file.
105159         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
105161         * modules/uniconv/u8-strconv-from-enc: New file.
105162         * lib/uniconv/u8-strconv-from-enc.c: New file.
105163         * lib/uniconv/u-strconv-from-enc.h: New file.
105164         * modules/uniconv/u8-strconv-from-enc-tests: New file.
105165         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
105167         * modules/uniconv/u32-conv-from-enc: New file.
105168         * lib/uniconv/u32-conv-from-enc.c: New file.
105169         * modules/uniconv/u32-conv-from-enc-tests: New file.
105170         * tests/uniconv/test-u32-conv-from-enc.c: New file.
105172         * modules/uniconv/u16-conv-from-enc: New file.
105173         * lib/uniconv/u16-conv-from-enc.c: New file.
105174         * lib/uniconv/u-conv-from-enc.h: New file.
105175         * modules/uniconv/u16-conv-from-enc-tests: New file.
105176         * tests/uniconv/test-u16-conv-from-enc.c: New file.
105178         * modules/uniconv/u8-conv-from-enc: New file.
105179         * lib/uniconv/u8-conv-from-enc.c: New file.
105180         * modules/uniconv/u8-conv-from-enc-tests: New file.
105181         * tests/uniconv/test-u8-conv-from-enc.c: New file.
105183         * modules/uniconv/base: New file.
105184         * lib/uniconv.h: New file.
105186 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
105188         * doc/gnulib-tool.texi (Initial import): Update to match current
105189         behavior with strdup module.
105190         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
105191         * lib/memmem.h: Remove; all uses removed.  This is now done
105192         by <string.h>.
105193         * lib/mempcpy.h: Likewise.
105194         * lib/memrchr.h: Likewise.
105195         * lib/stpcpy.h: Likewise.
105196         * lib/stpncpy.h: Likewise.
105197         * lib/strcase.h: Likewise.
105198         * lib/strchrnul.h: Likewise.
105199         * lib/strdup.h: Likewise.
105200         * lib/strndup.h: Likewise.
105201         * lib/strnlen.h: Likewise.
105202         * lib/strpbrk.h: Likewise.
105203         * lib/strsep.h: Likewise.
105204         * lib/strstr.h: Likewise.
105205         * lib/strtok_r.h: Likewise.
105206         * lib/string_.h: New file.
105207         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
105208         Rely on <string.h> instead.
105209         * lib/canon-host.c: Likewise.
105210         * lib/chdir-long.c: Likewise.
105211         * lib/concatpath.c: Likewise.
105212         * lib/exclude.c: Likewise.
105213         * lib/fchdir.c: Likewise.
105214         * lib/getaddrinfo.c: Likewise.
105215         * lib/getcwd.c: Likewise.
105216         * lib/getsubopt.c: Likewise.
105217         * lib/glob.c: Likewise.
105218         * lib/hard-locale.c: Likewise.
105219         * lib/iconvme.c: Likewise.
105220         * lib/javacomp.c: Likewise.
105221         * lib/mempcpy.c: Likewise.
105222         * lib/memrchr.c: Likewise.
105223         * lib/regex_internal.h: Likewise.
105224         * lib/stpncpy.c: Likewise.
105225         * lib/strcasecmp.c: Likewise.
105226         * lib/strchrnul.c: Likewise.
105227         * lib/strdup.c: Likewise.
105228         * lib/striconv.c: Likewise.
105229         * lib/striconveh.c: Likewise.
105230         * lib/striconveha.c: Likewise.
105231         * lib/strncasecmp.c: Likewise.
105232         * lib/strndup.c: Likewise.
105233         * lib/strnlen.c: Likewise.
105234         * lib/strsep.c: Likewise.
105235         * lib/strstr.c: Likewise.
105236         * lib/strtok_r.c: Likewise.
105237         * lib/userspec.c: Likewise.
105238         * lib/w32spawn.h: Likewise.
105239         * lib/xstrndup.c: Likewise.
105240         * lib/mountlist.c (strstr): Remove decl.
105241         * m4/string_h.m4: New file.
105242         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
105243         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
105244         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
105245         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
105246         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
105247         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
105248         Set REPLACE_STRCASECMP if necessary.
105249         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
105250         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
105251         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
105252         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
105253         HAVE_DECL_STRDUP if necessary.
105254         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
105255         since gl_FUNC_STRNDUP does that now.
105256         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
105257         Check for decl here...
105258         (gl_PREREQ_STRNLEN): ... not here.
105259         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
105260         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
105261         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
105262         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
105263         necessary.
105264         * modules/string: New file.
105265         * modules/memmem (Files): Remove special-purpose include file.
105266         (Depends-on): Add string.
105267         (Include): Include <string.h>, not the removed file.
105268         * modules/mempcpy: Likewise.
105269         * modules/memrchr: Likewise.
105270         * modules/stpcpy: Likewise.
105271         * modules/stpncpy: Likewise.
105272         * modules/strcase: Likewise.
105273         * modules/strchrnul: Likewise.
105274         * modules/strdup: Likewise.
105275         * modules/strndup: Likewise.
105276         * modules/strnlen: Likewise.
105277         * modules/strpbrk: Likewise.
105278         * modules/strsep: Likewise.
105279         * modules/strstr: Likewise.
105280         * modules/strtok_r: Likewise.
105281         * tests/test-dirname.c: Don't include "strdup.h", since
105282         <string.h> now suffices.
105283         * tests/test-memmem.c: Don't include "memmem.h", since
105284         <string.h> now suffices.
105286 2007-01-25  Bruno Haible  <bruno@clisp.org>
105288         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
105289         *resultp is 0.
105291         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
105292         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
105293         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
105294         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
105296         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
105297         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
105298         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
105299         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
105300         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
105301         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
105303 2007-01-24  Bruno Haible  <bruno@clisp.org>
105305         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
105306         <http://lists.gnu.org/r/bug-gnulib/2006-10/msg00279.html>.
105307         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
105308         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
105309         gl_FUNC_FTS_CORE.
105310         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
105311         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
105312         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
105313         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
105314         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
105315         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
105316         gl_FUNC_FCHOWNAT.
105317         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
105318         gl_FUNC_STRFTIME.
105319         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
105320         Reported by Ralf Wildenhues.
105322 2007-01-24  Bruno Haible  <bruno@clisp.org>
105324         Drop AC_REQUIRE calls that are redundant with the module dependencies.
105325         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
105326         gl_GETADDRINFO.
105327         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
105328         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
105329         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
105331 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
105333         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
105334         Don't use 'exit'; just return from 'main'.
105335         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
105337         * lib/fnmatch_.h: Readjust white space and comments to match
105338         glibc, to avoid spurious diffs.
105340 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
105342         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
105343         2004-12-01 change by Jakub Jelinek, since this code won't compile
105344         if !LIBC.  Problem reported by Bob Proulx.
105346 2007-01-23  Bruno Haible  <bruno@clisp.org>
105348         * lib/striconveh.c: Include c-strcaseeq.h.
105349         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
105350         * modules/striconveh (Depends-on): Add c-strcaseeq.
105352 2007-01-23  Bruno Haible  <bruno@clisp.org>
105354         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
105356         * modules/c-strcaseeq: New file.
105357         * lib/c-strcaseeq.h: New file.
105359         * modules/streq: New file.
105360         * lib/streq.h: New file.
105362 2007-01-23  Bruno Haible  <bruno@clisp.org>
105364         * modules/striconveha-tests: New file.
105365         * tests/test-striconveha.c: New file.
105367         * lib/striconveha.h: Include <stdbool.h>.
105368         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
105369         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
105370         (mem_iconveha_notranslit): Renamed from mem_iconveha.
105371         (mem_iconveha): New function.
105372         (str_iconveha_notranslit): Renamed from str_iconveha.
105373         (str_iconveha): New function.
105374         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
105375         c-strcase.
105377 2007-01-23  Bruno Haible  <bruno@clisp.org>
105379         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
105380         encodings without forgiving before trying any encoding with handler.
105381         (str_iconveha): Try all encodings without forgiving before trying any
105382         encoding with handler.
105384 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
105386         Import the following changes from libc.
105388         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
105390         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
105392         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
105394         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
105395         normal_bracket label.
105397         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
105399         [BZ #361]
105400         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
105401         to normal_bracket after fetching the next character.
105403 2007-01-22  Bruno Haible  <bruno@clisp.org>
105405         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
105406         argument.
105407         * lib/striconveh.c (iconv_carefully_1): New function.
105408         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
105409         argument.
105410         (str_cd_iconveh): Update.
105411         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
105412         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
105413         * tests/test-striconveh.c (MAGIC): New macro.
105414         (new_offsets): New function.
105415         (main): Test call with and without offsets.
105417 2007-01-22  Bruno Haible  <bruno@clisp.org>
105419         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
105420         * modules/sys_select (Makefile.am): Likewise.
105421         * modules/sys_socket (Makefile.am): Likewise.
105422         * modules/sys_time (Makefile.am): Likewise.
105424 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
105426         * modules/gettimeofday (License): Change from GPL to LGPL, since
105427         gettimeofday is a library function.
105429 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
105431         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
105433 2007-01-21  Bruno Haible  <bruno@clisp.org>
105435         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
105437 2007-01-21  Bruno Haible  <bruno@clisp.org>
105439         * modules/striconveha: New file.
105440         * lib/striconveha.h: New file.
105441         * lib/striconveha.c: New file.
105442         * MODULES.html.sh (Internationalization functions): Add striconveha.
105443         * lib/striconv.c (str_iconv): Optimize the case of an empty input
105444         string.
105445         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
105447 2007-01-21  Bruno Haible  <bruno@clisp.org>
105449         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
105450         * lib/striconveh.c (str_iconveh): Likewise.
105452 2007-01-21  Bruno Haible  <bruno@clisp.org>
105454         * lib/striconveh.h (mem_iconveh): New declaration.
105455         * lib/striconveh.c (mem_iconveh): New function.
105456         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
105458 2007-01-21  Bruno Haible  <bruno@clisp.org>
105460         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
105462         * lib/striconveh.h (mem_cd_iconveh): Change specification.
105463         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
105464         original result buffer.
105465         (str_cd_iconveh): Update.
105466         * tests/test-striconveh.c (main): Update.
105468         * lib/striconv.h (mem_cd_iconv): Change specification.
105469         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
105470         result buffer.
105471         (str_cd_iconv): Update.
105472         * tests/test-striconv.c (main): Update.
105474 2007-01-21  Bruno Haible  <bruno@clisp.org>
105476         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
105478 2007-01-20  Jim Meyering  <jim@meyering.net>
105480         * lib/userspec.c (parse_with_separator): If a user or group string
105481         starts with "+", skip the corresponding name-to-ID look-up, since
105482         such a look-up must fail: user and group names may not include "+".
105484 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
105486         * lib/poll.c: Include sys/time.h and time.h unconditionally,
105487         since we now assume the sys_time module.
105488         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
105489         check for sys/time.h; no longer needed.
105490         * modules/poll (Depends-on): Depend on sys_time.
105492 2007-01-18  Bruno Haible  <bruno@clisp.org>
105494         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
105495         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
105497         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
105498         gettimeofday.
105500         * tests/test-gettimeofday.c: Include <time.h>.
105501         (dummy): Remove variable.
105503         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
105504         gl_HEADER_SYS_TIME_H.
105505         (gl_HEADER_SYS_TIME_H): New macro.
105507         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
105508         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
105509         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
105510         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
105511         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
105512         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
105513         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
105514         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
105515         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
105516         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
105517         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
105519         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
105520         last change; it caused a compilation error when cross-compiling to
105521         Cygwin.
105523 2007-01-18  Jim Meyering  <jim@meyering.net>
105525         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
105526         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
105527         than the race-prone "test -d sys || mkdir sys".
105528         (configure.ac): Use AC_PROG_MKDIR_P.
105529         * modules/sys_select: Likewise.
105530         * modules/sys_socket: Likewise.
105531         * modules/sys_time: Likewise.
105533 2007-01-18  Eric Blake  <ebb9@byu.net>
105535         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
105536         replace gettimeofday.
105537         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
105538         name, to avoid infinite recursion.
105540 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
105542         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
105543         module sys_time.
105544         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
105545         assume timespec.h defines struct timeval.
105546         * lib/settime.c: Likewise.
105547         * lib/utimens.c: Likewise.
105548         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
105549         since we now assume the gettimeofday module.
105550         * lib/tempname.c (__gen_tempname): Likewise.
105551         * lib/gettimeofday.h: Remove.
105552         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
105553         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
105554         Include <time.h>, for 'time()'.
105555         (localtime_buffer_addr): Also use this workaround if
105556         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
105557         to simplify the uses.  All uses changed.
105558         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
105559         that #undef is inside {}, and 'const' follows type name consistently.
105560         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
105561         (gettimeofday): Do not use the maximum possible value for
105562         tv->tv_usec, since that might break usages other than ls.c.
105563         Instead, we'll leave ls.c alone.  This undoes today's patch
105564         by Bruno.  Add a compile-time warning for 1s-clock resolution;
105565         we've never observed the problem but might as well keep the
105566         canary.
105567         * lib/nanosleep.c: Include timespec.h first, for interface check.
105568         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
105569         now assume the sys_time module.
105570         * lib/tempname.c: Likewise.
105571         * lib/timespec.h: Likewise.
105572         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
105573         needed.
105574         * lib/strftime.c: Likewise.
105575         * lib/timespec.h: Likewise.
105576         * lib/posixtm.c: Include posixtm.h first, for interface check.
105577         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
105578         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
105579         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
105580         * lib/sys_time_.h: New file.
105581         * lib/timespec.h (struct timespec): Use long int, not long.
105582         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
105583         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
105584         Remove obsolescent call to AC_HEADER_TIME.
105585         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
105586         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
105587         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
105588         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
105589         Likewise.
105590         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
105591         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
105592         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
105593         into the sys_time module.  Check for gettimeofday just once.
105594         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
105595         for gettimeofday signature to just check the signature.  Merely
105596         compile it, since linking doesn't test signature.  Improve test for
105597         whether gettimeofday.o is actually needed.
105598         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
105599         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
105600         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
105601         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
105602         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
105603         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
105604         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
105605         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
105606         than worrying about sys/time.h.
105607         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
105608         Don't bother worrying about TIME_WITH_SYS_TIME.
105609         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
105610         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
105611         * m4/sys_time_h.m4: New file.
105612         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
105613         Don't include sys/time.h.  Return from main rather than exiting.
105614         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
105615         all uses changed.
105616         * modules/gethrxtime (Depends-on): Add sys_time.
105617         * modules/gettime (Depends-on): Likewise.
105618         * modules/gettimeofday (Depends-on): Likewise.
105619         * modules/nanosleep (Depends-on): Likewise.
105620         * modules/settime (Depends-on): Likewise.
105621         * modules/tempname (Depends-on): Likewise.
105622         * modules/utimens (Depends-on): Likewise.
105623         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
105624         (Include): Change back to <sys/time.h>.
105625         (Maintainer): Add self.
105626         * modules/sys_time: New file.
105627         * modules/tempname (Depends-on): Add gettimeofday.
105628         * tests/test-gettimeofday.c: Include <sys/time.h>
105629         rather than gettimeofday.h.
105631 2007-01-17  Bruno Haible  <bruno@clisp.org>
105633         * gnulib-tool (func_get_license): Revert last patch. Instead, let
105634         the license default to GPL.
105635         (func_create_testdir): Don't complain if a module is LGPL and its
105636         tests module depends on GPLed modules.
105638 2007-01-17  Bruno Haible  <bruno@clisp.org>
105640         * lib/gettimeofday.c (gettimeofday): Add code for the case
105641         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
105642         maximum possible value for tv->tv_usec, rather than the minimum one.
105644 2005-10-08  Martin Lambers  <marlam@marlam.de>
105645 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
105646 2007-01-16  Bruno Haible  <bruno@clisp.org>
105648         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
105649         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
105650         gl_FUNC_GETTIMEOFDAY.
105651         (Include): Add gettimeofday.h.
105652         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
105653         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
105654         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
105655         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
105656         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
105657         * lib/gettimeofday.h: New file.
105658         * lib/gettimeofday.c: Include <sys/timeb.h>.
105659         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
105660         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
105661         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
105662         fall back on time().
105664         * tests/test-gettimeofday.c: New file.
105665         * modules/gettimeofday-tests: New file.
105667 2007-01-16  Eric Blake  <ebb9@byu.net>
105669         * modules/fnmatch (Depends-on): Depend on wchar.
105670         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
105671         * m4/fnmatch.m4: Likewise.
105672         * modules/mbchar (Makefile.am): Assume <wchar.h>.
105673         * m4/mbchar.m4: Likewise.
105674         * modules/mbswidth (Depends-on): Depend on wchar.
105675         * lib/mbswidth.c: Assume <wchar.h>.
105676         * m4/mbswidth.m4: Likewise.
105677         * modules/quotearg (Depends-on): Depend on wchar.
105678         * lib/quotearg.c: Assume <wchar.h>.
105679         * m4/quotearg.m4: Likewise.
105680         * modules/regex (Depends-on): Depend on wchar.
105681         * lib/regex_internal.h: Assume <wchar.h>.
105682         * m4/regex.m4: Likewise.
105683         * modules/stdint (Depends-on): Depend on wchar.
105684         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
105685         * m4/stdint.m4: Likewise.
105686         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
105687         * modules/strftime (Depends-on): Depend on wchar.
105688         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
105689         * modules/strtol (Depends-on): Depend on wchar.
105690         * lib/strtol.c: Assume <wchar.h>.
105691         * modules/wcwidth (Depends-on): Depend on wchar.
105692         * lib/wcwidth.h: Assume <wchar.h>.
105693         * m4/wcwidth.m4: Likewise.
105695 2007-01-16  Bruno Haible  <bruno@clisp.org>
105697         * modules/csharpexec-script: New, created from...
105698         * modules/csharpexec: ... this.
105700 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
105702         * modules/javaexec-script: New, created from...
105703         * modules/javaexec: ... this.
105705 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
105707         * modules/poll (Dependencies): Add sys_select.
105709 2007-01-15  Jim Meyering  <jim@meyering.net>
105711         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
105712         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
105713         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
105714         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
105716 2007-01-15  Bruno Haible  <bruno@clisp.org>
105718         * modules/striconveh: New file.
105719         * lib/striconveh.h: New file.
105720         * lib/striconveh.c: New file.
105721         * MODULES.html.sh (Internationalization functions): Add striconveh.
105723         * modules/striconveh-tests: New file.
105724         * tests/test-striconveh.c: New file.
105726 2007-01-15  Bruno Haible  <bruno@clisp.org>
105728         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
105729         not from GNU libiconv or GNU libc.
105731 2007-01-15  Bruno Haible  <bruno@clisp.org>
105733         * doc/gnulib-intro.texi (Copyright): Explain the different license
105734         terms for module descriptions, autoconf macros, tests, documentation.
105736 2007-01-14  Bruno Haible  <bruno@clisp.org>
105738         * modules/striconv-tests: New file.
105739         * tests/test-striconv.c: New file.
105741 2007-01-14  Bruno Haible  <bruno@clisp.org>
105743         * modules/iconv-tests: New file.
105744         * tests/test-iconv.c: New file.
105746 2007-01-14  Bruno Haible  <bruno@clisp.org>
105748         * gnulib-tool (func_get_license): For test modules, use the license of
105749         the main module.
105751 2007-01-14  Bruno Haible  <bruno@clisp.org>
105753         * modules/iconv (Include): Clarify that <iconv.h> can only be included
105754         if iconv is found to exist.
105756 2007-01-14  Bruno Haible  <bruno@clisp.org>
105758         * modules/c-ctype-tests: New file.
105759         * tests/test-c-ctype.c: New file.
105761 2007-01-14  Bruno Haible  <bruno@clisp.org>
105763         * modules/binary-io-tests: New file.
105764         * tests/test-binary-io.sh: New file.
105765         * tests/test-binary-io.c: New file.
105767 2007-01-14  Bruno Haible  <bruno@clisp.org>
105769         * modules/array-oset-tests: New file.
105770         * tests/test-array_oset.c: New file.
105772 2007-01-14  Bruno Haible  <bruno@clisp.org>
105774         * modules/array-list-tests: New file.
105775         * tests/test-array_list.c: New file.
105777 2007-01-14  Bruno Haible  <bruno@clisp.org>
105779         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
105780         and make.
105781         Reported by Simon Josefsson in
105782         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00139.html>
105784 2007-01-14  Bruno Haible  <bruno@clisp.org>
105786         * modules/allocsa-tests: New file.
105787         * tests/test-allocsa.c: New file.
105789 2007-01-14  Bruno Haible  <bruno@clisp.org>
105791         * modules/fchdir (Depends-on): Add absolute-header.
105792         * modules/unistd (Depends-on): Likewise.
105794 2006-12-30  Bruno Haible  <bruno@clisp.org>
105796         * modules/fchdir: New file.
105797         * modules/unistd (Files): Add lib/unistd_.h.
105798         (Makefile.am): Generate unistd.h from unistd_.h.
105799         * lib/fchdir.c: New file.
105800         * lib/dirent_.h: New file.
105801         * lib/unistd_.h: New file.
105802         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
105803         * m4/fchdir.m4: New file.
105804         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
105805         (gl_HEADER_UNISTD): Invoke it.
105806         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
105807         function.
105808         * lib/backupfile.c (opendir, closedir): Undefine.
105809         * lib/chown.c (open, close): Undefine.
105810         * lib/clean-temp.c (open, close): Undefine.
105811         * lib/copy-file.c (open, close): Undefine.
105812         * lib/execute.c (open, close): Undefine.
105813         * lib/fsusage.c (open, close): Undefine.
105814         * lib/gc-gnulib.c (open, close): Undefine.
105815         * lib/getcwd.c (opendir, closedir): Undefine.
105816         * lib/glob.c (opendir, closedir): Undefine.
105817         * lib/javacomp.c (open, close): Undefine.
105818         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
105819         * lib/openat-proc.c (open, close): Undefine.
105820         * lib/pagealign_alloc.c (open, close): Undefine.
105821         * lib/pipe.c (open, close): Undefine.
105822         * lib/progreloc.c (open, close): Undefine.
105823         * lib/savedir.c (opendir, closedir): Undefine.
105824         * lib/utime.c (open, close): Undefine.
105825         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
105827 2007-01-10  Bruno Haible  <bruno@clisp.org>
105829         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
105831 2007-01-12  Eric Blake  <ebb9@byu.net>
105833         Provide a robust <wchar.h>.  Further simplifications are now
105834         possible in other modules, but not included here.
105835         * modules/wchar: New module.
105836         * m4/wchar.m4: New file.
105837         * lib/wchar_.h: Likewise.
105838         * modules/mbchar (Depends-on): Depend on wchar, as the first use
105839         of the new module.
105840         * MODULES.html.sh (Extended multibyte and wide character utilities):
105841         New section.
105843 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
105845         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
105846         to a reasonable default for memory allocation.
105847         (xreadlink): Don't allocate a huge buffer, to work around a buggy
105848         file system that reports garbage st_size values for symlinks.
105849         Problem reported by Liyang Hu.
105851 2007-01-11  Simon Josefsson  <simon@josefsson.org>
105853         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
105854         Emacs .#* auto-save files).
105856 2007-01-11  Bruno Haible  <bruno@clisp.org>
105858         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
105859         directory.
105861 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
105863         Use @...@ consistently in lib/wctype_.h.
105864         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
105865         on it being set to 1 or 0.
105866         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
105867         go back to AC_SUBSTing it.
105868         * modules/wctype (Makefile.am): Undo previous change.
105870 2007-01-10  Eric Blake  <ebb9@byu.net>
105872         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
105873         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
105874         * modules/wctype (Makefile.am): Likewise.
105875         Reported by Chris McGuire.
105877 2007-01-10  Jim Meyering  <jim@meyering.net>
105879         fts.c: a small readability/maintainability improvement
105880         * lib/fts.c (fts_read): Make this code slightly more readable and
105881         maintainable by hoisting the "sp->fts_cur = p" assignments to
105882         immediately follow the statements that set P.  Derived from
105883         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
105885 2007-01-10  Eric Blake  <ebb9@byu.net>
105887         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
105888         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
105889         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
105890         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
105891         Reported by Chris McGuire.
105893 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
105895         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
105896         in sed script.
105898 2007-01-09  Bruno Haible  <bruno@clisp.org>
105900         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
105901         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
105902         variables.
105903         (func_module): Use them.
105905 2007-01-09  Bruno Haible  <bruno@clisp.org>
105907         * modules/unistr/base: New file.
105908         * lib/unistr.h: New file.
105910         * modules/unistr/u8-to-u16: New file.
105911         * lib/unistr/u8-to-u16.c: New file.
105913         * modules/unistr/u8-to-u32: New file.
105914         * lib/unistr/u8-to-u32.c: New file.
105916         * modules/unistr/u16-to-u8: New file.
105917         * lib/unistr/u16-to-u8.c: New file.
105919         * modules/unistr/u16-to-u32: New file.
105920         * lib/unistr/u16-to-u32.c: New file.
105922         * modules/unistr/u32-to-u8: New file.
105923         * lib/unistr/u32-to-u8.c: New file.
105925         * modules/unistr/u32-to-u16: New file.
105926         * lib/unistr/u32-to-u16.c: New file.
105928         * modules/unistr/u8-check: New file.
105929         * modules/unistr/u16-check: New file.
105930         * modules/unistr/u32-check: New file.
105931         * lib/unistr/u8-check.c: New file.
105932         * lib/unistr/u16-check.c: New file.
105933         * lib/unistr/u32-check.c: New file.
105935         * modules/unistr/u8-chr: New file.
105936         * modules/unistr/u16-chr: New file.
105937         * modules/unistr/u32-chr: New file.
105938         * lib/unistr/u8-chr.c: New file.
105939         * lib/unistr/u16-chr.c: New file.
105940         * lib/unistr/u32-chr.c: New file.
105942         * modules/unistr/u8-cmp: New file.
105943         * modules/unistr/u16-cmp: New file.
105944         * modules/unistr/u32-cmp: New file.
105945         * lib/unistr/u8-cmp.c: New file.
105946         * lib/unistr/u16-cmp.c: New file.
105947         * lib/unistr/u32-cmp.c: New file.
105949         * modules/unistr/u8-cpy: New file.
105950         * modules/unistr/u16-cpy: New file.
105951         * modules/unistr/u32-cpy: New file.
105952         * lib/unistr/u8-cpy.c: New file.
105953         * lib/unistr/u16-cpy.c: New file.
105954         * lib/unistr/u32-cpy.c: New file.
105955         * lib/unistr/u-cpy.h: New file.
105957         * modules/unistr/u8-cpy-alloc: New file.
105958         * modules/unistr/u16-cpy-alloc: New file.
105959         * modules/unistr/u32-cpy-alloc: New file.
105960         * lib/unistr/u8-cpy-alloc.c: New file.
105961         * lib/unistr/u16-cpy-alloc.c: New file.
105962         * lib/unistr/u32-cpy-alloc.c: New file.
105963         * lib/unistr/u-cpy-alloc.h: New file.
105965         * modules/unistr/u8-endswith: New file.
105966         * modules/unistr/u16-endswith: New file.
105967         * modules/unistr/u32-endswith: New file.
105968         * lib/unistr/u8-endswith.c: New file.
105969         * lib/unistr/u16-endswith.c: New file.
105970         * lib/unistr/u32-endswith.c: New file.
105971         * lib/unistr/u-endswith.h: New file.
105973         * modules/unistr/u8-mblen: New file.
105974         * modules/unistr/u16-mblen: New file.
105975         * modules/unistr/u32-mblen: New file.
105976         * lib/unistr/u8-mblen.c: New file.
105977         * lib/unistr/u16-mblen.c: New file.
105978         * lib/unistr/u32-mblen.c: New file.
105980         * modules/unistr/u8-mbtouc: New file.
105981         * modules/unistr/u16-mbtouc: New file.
105982         * modules/unistr/u32-mbtouc: New file.
105983         * lib/unistr/u8-mbtouc.c: New file.
105984         * lib/unistr/u16-mbtouc.c: New file.
105985         * lib/unistr/u32-mbtouc.c: New file.
105987         * modules/unistr/u8-mbtouc-safe: New file.
105988         * modules/unistr/u16-mbtouc-safe: New file.
105989         * modules/unistr/u32-mbtouc-safe: New file.
105990         * lib/unistr/u8-mbtouc-safe.c: New file.
105991         * lib/unistr/u16-mbtouc-safe.c: New file.
105992         * lib/unistr/u32-mbtouc-safe.c: New file.
105994         * modules/unistr/u8-move: New file.
105995         * modules/unistr/u16-move: New file.
105996         * modules/unistr/u32-move: New file.
105997         * lib/unistr/u8-move.c: New file.
105998         * lib/unistr/u16-move.c: New file.
105999         * lib/unistr/u32-move.c: New file.
106000         * lib/unistr/u-move.h: New file.
106002         * modules/unistr/u8-next: New file.
106003         * modules/unistr/u16-next: New file.
106004         * modules/unistr/u32-next: New file.
106005         * lib/unistr/u8-next.c: New file.
106006         * lib/unistr/u16-next.c: New file.
106007         * lib/unistr/u32-next.c: New file.
106009         * modules/unistr/u8-prev: New file.
106010         * modules/unistr/u16-prev: New file.
106011         * modules/unistr/u32-prev: New file.
106012         * lib/unistr/u8-prev.c: New file.
106013         * lib/unistr/u16-prev.c: New file.
106014         * lib/unistr/u32-prev.c: New file.
106016         * modules/unistr/u8-set: New file.
106017         * modules/unistr/u16-set: New file.
106018         * modules/unistr/u32-set: New file.
106019         * lib/unistr/u8-set.c: New file.
106020         * lib/unistr/u16-set.c: New file.
106021         * lib/unistr/u32-set.c: New file.
106022         * lib/unistr/u-set.h: New file.
106024         * modules/unistr/u8-startswith: New file.
106025         * modules/unistr/u16-startswith: New file.
106026         * modules/unistr/u32-startswith: New file.
106027         * lib/unistr/u8-startswith.c: New file.
106028         * lib/unistr/u16-startswith.c: New file.
106029         * lib/unistr/u32-startswith.c: New file.
106030         * lib/unistr/u-startswith.h: New file.
106032         * modules/unistr/u8-stpcpy: New file.
106033         * modules/unistr/u16-stpcpy: New file.
106034         * modules/unistr/u32-stpcpy: New file.
106035         * lib/unistr/u8-stpcpy.c: New file.
106036         * lib/unistr/u16-stpcpy.c: New file.
106037         * lib/unistr/u32-stpcpy.c: New file.
106038         * lib/unistr/u-stpcpy.h: New file.
106040         * modules/unistr/u8-stpncpy: New file.
106041         * modules/unistr/u16-stpncpy: New file.
106042         * modules/unistr/u32-stpncpy: New file.
106043         * lib/unistr/u8-stpncpy.c: New file.
106044         * lib/unistr/u16-stpncpy.c: New file.
106045         * lib/unistr/u32-stpncpy.c: New file.
106046         * lib/unistr/u-stpncpy.h: New file.
106048         * modules/unistr/u8-strcat: New file.
106049         * modules/unistr/u16-strcat: New file.
106050         * modules/unistr/u32-strcat: New file.
106051         * lib/unistr/u8-strcat.c: New file.
106052         * lib/unistr/u16-strcat.c: New file.
106053         * lib/unistr/u32-strcat.c: New file.
106054         * lib/unistr/u-strcat.h: New file.
106056         * modules/unistr/u8-strchr: New file.
106057         * modules/unistr/u16-strchr: New file.
106058         * modules/unistr/u32-strchr: New file.
106059         * lib/unistr/u8-strchr.c: New file.
106060         * lib/unistr/u16-strchr.c: New file.
106061         * lib/unistr/u32-strchr.c: New file.
106063         * modules/unistr/u8-strcmp: New file.
106064         * modules/unistr/u16-strcmp: New file.
106065         * modules/unistr/u32-strcmp: New file.
106066         * lib/unistr/u8-strcmp.c: New file.
106067         * lib/unistr/u16-strcmp.c: New file.
106068         * lib/unistr/u32-strcmp.c: New file.
106070         * modules/unistr/u8-strcpy: New file.
106071         * modules/unistr/u16-strcpy: New file.
106072         * modules/unistr/u32-strcpy: New file.
106073         * lib/unistr/u8-strcpy.c: New file.
106074         * lib/unistr/u16-strcpy.c: New file.
106075         * lib/unistr/u32-strcpy.c: New file.
106076         * lib/unistr/u-strcpy.h: New file.
106078         * modules/unistr/u8-strcspn: New file.
106079         * modules/unistr/u16-strcspn: New file.
106080         * modules/unistr/u32-strcspn: New file.
106081         * lib/unistr/u8-strcspn.c: New file.
106082         * lib/unistr/u16-strcspn.c: New file.
106083         * lib/unistr/u32-strcspn.c: New file.
106084         * lib/unistr/u-strcspn.h: New file.
106086         * modules/unistr/u8-strdup: New file.
106087         * modules/unistr/u16-strdup: New file.
106088         * modules/unistr/u32-strdup: New file.
106089         * lib/unistr/u8-strdup.c: New file.
106090         * lib/unistr/u16-strdup.c: New file.
106091         * lib/unistr/u32-strdup.c: New file.
106092         * lib/unistr/u-strdup.h: New file.
106094         * modules/unistr/u8-strlen: New file.
106095         * modules/unistr/u16-strlen: New file.
106096         * modules/unistr/u32-strlen: New file.
106097         * lib/unistr/u8-strlen.c: New file.
106098         * lib/unistr/u16-strlen.c: New file.
106099         * lib/unistr/u32-strlen.c: New file.
106100         * lib/unistr/u-strlen.h: New file.
106102         * modules/unistr/u8-strmblen: New file.
106103         * modules/unistr/u16-strmblen: New file.
106104         * modules/unistr/u32-strmblen: New file.
106105         * lib/unistr/u8-strmblen.c: New file.
106106         * lib/unistr/u16-strmblen.c: New file.
106107         * lib/unistr/u32-strmblen.c: New file.
106109         * modules/unistr/u8-strmbtouc: New file.
106110         * modules/unistr/u16-strmbtouc: New file.
106111         * modules/unistr/u32-strmbtouc: New file.
106112         * lib/unistr/u8-strmbtouc.c: New file.
106113         * lib/unistr/u16-strmbtouc.c: New file.
106114         * lib/unistr/u32-strmbtouc.c: New file.
106116         * modules/unistr/u8-strncat: New file.
106117         * modules/unistr/u16-strncat: New file.
106118         * modules/unistr/u32-strncat: New file.
106119         * lib/unistr/u8-strncat.c: New file.
106120         * lib/unistr/u16-strncat.c: New file.
106121         * lib/unistr/u32-strncat.c: New file.
106122         * lib/unistr/u-strncat.h: New file.
106124         * modules/unistr/u8-strncmp: New file.
106125         * modules/unistr/u16-strncmp: New file.
106126         * modules/unistr/u32-strncmp: New file.
106127         * lib/unistr/u8-strncmp.c: New file.
106128         * lib/unistr/u16-strncmp.c: New file.
106129         * lib/unistr/u32-strncmp.c: New file.
106131         * modules/unistr/u8-strncpy: New file.
106132         * modules/unistr/u16-strncpy: New file.
106133         * modules/unistr/u32-strncpy: New file.
106134         * lib/unistr/u8-strncpy.c: New file.
106135         * lib/unistr/u16-strncpy.c: New file.
106136         * lib/unistr/u32-strncpy.c: New file.
106137         * lib/unistr/u-strncpy.h: New file.
106139         * modules/unistr/u8-strnlen: New file.
106140         * modules/unistr/u16-strnlen: New file.
106141         * modules/unistr/u32-strnlen: New file.
106142         * lib/unistr/u8-strnlen.c: New file.
106143         * lib/unistr/u16-strnlen.c: New file.
106144         * lib/unistr/u32-strnlen.c: New file.
106145         * lib/unistr/u-strnlen.h: New file.
106147         * modules/unistr/u8-strpbrk: New file.
106148         * modules/unistr/u16-strpbrk: New file.
106149         * modules/unistr/u32-strpbrk: New file.
106150         * lib/unistr/u8-strpbrk.c: New file.
106151         * lib/unistr/u16-strpbrk.c: New file.
106152         * lib/unistr/u32-strpbrk.c: New file.
106153         * lib/unistr/u-strpbrk.h: New file.
106155         * modules/unistr/u8-strrchr: New file.
106156         * modules/unistr/u16-strrchr: New file.
106157         * modules/unistr/u32-strrchr: New file.
106158         * lib/unistr/u8-strrchr.c: New file.
106159         * lib/unistr/u16-strrchr.c: New file.
106160         * lib/unistr/u32-strrchr.c: New file.
106162         * modules/unistr/u8-strspn: New file.
106163         * modules/unistr/u16-strspn: New file.
106164         * modules/unistr/u32-strspn: New file.
106165         * lib/unistr/u8-strspn.c: New file.
106166         * lib/unistr/u16-strspn.c: New file.
106167         * lib/unistr/u32-strspn.c: New file.
106168         * lib/unistr/u-strspn.h: New file.
106170         * modules/unistr/u8-strstr: New file.
106171         * modules/unistr/u16-strstr: New file.
106172         * modules/unistr/u32-strstr: New file.
106173         * lib/unistr/u8-strstr.c: New file.
106174         * lib/unistr/u16-strstr.c: New file.
106175         * lib/unistr/u32-strstr.c: New file.
106176         * lib/unistr/u-strstr.h: New file.
106178         * modules/unistr/u8-strtok: New file.
106179         * modules/unistr/u16-strtok: New file.
106180         * modules/unistr/u32-strtok: New file.
106181         * lib/unistr/u8-strtok.c: New file.
106182         * lib/unistr/u16-strtok.c: New file.
106183         * lib/unistr/u32-strtok.c: New file.
106184         * lib/unistr/u-strtok.h: New file.
106186         * modules/unistr/u8-uctomb: New file.
106187         * modules/unistr/u16-uctomb: New file.
106188         * modules/unistr/u32-uctomb: New file.
106189         * lib/unistr/u8-uctomb.c: New file.
106190         * lib/unistr/u16-uctomb.c: New file.
106191         * lib/unistr/u32-uctomb.c: New file.
106193         * MODULES.html.sh (Unicode string functions): Add the new modules.
106195 2007-01-08  Bruno Haible  <bruno@clisp.org>
106197         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
106198         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
106199         subdirectories.
106201 2007-01-08  Karl Berry  <karl@gnu.org>
106203         * doc/error.texi: mention that main() fns must set program_name
106204         when progname is used.
106206 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
106208         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
106209         WCTYPE_H is empty, for the benefit of builds from non-distclean
106210         directories.  Problem reported by Eric Blake in
106211         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00157.html>.
106213 2007-01-08  Bruno Haible  <bruno@clisp.org>
106215         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
106216         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
106217         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
106218         PROVIDE_CANONICALIZE_FILENAME_MODE.
106219         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
106221 2007-01-08  Bruno Haible  <bruno@clisp.org>
106223         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
106224         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
106225         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
106226         * lib/fts.c: Likewise.
106227         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
106229 2006-12-25  Bruno Haible  <bruno@clisp.org>
106231         * modules/utf8-ucs4-safe: New file.
106232         * lib/utf8-ucs4-safe.h: New file.
106233         * lib/unistr/utf8-ucs4-safe.c: New file.
106235         * modules/utf16-ucs4-safe: New file.
106236         * lib/utf16-ucs4-safe.h: New file.
106237         * lib/unistr/utf16-ucs4-safe.c: New file.
106239         * MODULES.html.sh (Unicode string functions): Add the new modules.
106241 2007-01-08  Bruno Haible  <bruno@clisp.org>
106243         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
106244         (Depends-on): Add unitypes.
106245         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
106246         (u8_mbtouc_aux): Move out to separate file.
106247         (u8_mbtouc): Use ucs4_t, uint8_t types.
106248         * lib/unistr/utf8-ucs4.c: New file.
106250         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
106251         (Depends-on): Add unitypes.
106252         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
106253         (u16_mbtouc_aux): Move out to separate file.
106254         (u16_mbtouc): Use ucs4_t, uint16_t types.
106255         * lib/unistr/utf16-ucs4.c: New file.
106257         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
106258         (Depends-on): Add unitypes.
106259         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
106260         (u8_uctomb_aux): Move out to separate file.
106261         (u8_uctomb): Use ucs4_t, uint8_t types.
106262         * lib/unistr/ucs4-utf8.c: New file.
106264         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
106265         (Depends-on): Add unitypes.
106266         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
106267         (u16_uctomb_aux): Move out to separate file.
106268         (u16_uctomb): Use ucs4_t, uint16_t types.
106269         * lib/unistr/ucs4-utf16.c: New file.
106271 2006-12-25  Bruno Haible  <bruno@clisp.org>
106273         * modules/unitypes: New file.
106274         * lib/unitypes.h: New file.
106275         * MODULES.html.sh (func_all_modules): New section "Unicode string
106276         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
106277         this section. Add unitypes.
106279 2007-01-08  Bruno Haible  <bruno@clisp.org>
106281         Avoid variable names that conflict with those from libtool.
106282         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
106283         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
106284         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
106285         library_names_spec to acl_library_names_spec, hardcode_* to
106286         acl_hardcode_*.
106287         Reported by Ralf Wildenhues.
106289 2007-01-08  Bruno Haible  <bruno@clisp.org>
106291         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
106292         definition.
106293         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
106294         definition.
106295         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
106296         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
106297         definition.
106298         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
106299         definition.
106300         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
106301         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
106302         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
106303         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
106304         definition.
106305         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
106306         definition.
106307         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
106308         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
106309         GC_USE_<algorithm>.
106310         * lib/gc-libgcrypt.c: Likewise.
106311         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
106312         * modules/gc-arctwo (configure.ac): Likewise.
106313         * modules/gc-des (configure.ac): Likewise.
106314         * modules/gc-hmac-md5 (configure.ac): Likewise.
106315         * modules/gc-hmac-sha1 (configure.ac): Likewise.
106316         * modules/gc-md2 (configure.ac): Likewise.
106317         * modules/gc-md4 (configure.ac): Likewise.
106318         * modules/gc-md5 (configure.ac): Likewise.
106319         * modules/gc-random (configure.ac): Likewise.
106320         * modules/gc-rijndael (configure.ac): Likewise.
106321         * modules/gc-sha1 (configure.ac): Likewise.
106323 2007-01-08  Bruno Haible  <bruno@clisp.org>
106325         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
106326         macro definition.
106327         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
106328         definition.
106329         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
106330         definition.
106331         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
106332         * modules/fcntl-safer (configure.ac): Likewise.
106333         * modules/fopen-safer (configure.ac): Likewise.
106334         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
106335         GNULIB_FWRITEERROR macro definition.
106337 2007-01-08  Bruno Haible  <bruno@clisp.org>
106339         * m4/gnulib-common.m4: New file.
106340         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
106341         (func_get_filelist): Add m4/gnulib-common.m4.
106343 2007-01-08  Bruno Haible  <bruno@clisp.org>
106345         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
106346         command.
106348 2007-01-08  Jim Meyering  <jim@meyering.net>
106350         Use a more robust test for a "can't happen" condition.
106351         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
106352         narrowed the st_size value.  Presuming the "can't happen" condition
106353         is true, that narrowing could conceivably convert an invalid st_size
106354         value into a valid one.  Instead, use a change based on Matthew
106355         Woehlke's original patch.
106357         Slight readability improvement: use an assert-like macro
106358         in place of literal "abort ()" uses.
106359         * lib/fts.c (fts_assert): Define.
106360         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
106361         Use this macro instead of a bare 'abort'.
106363 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
106365         Don't worry about using IRIX 5.3's wctype.h broken definitions;
106366         simply work around them.
106367         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
106368         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
106369         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
106370         declaring.
106371         Don't bother to define as macros, since the standard doesn't require it.
106372         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
106373         longer worry about IRIX 5.3.
106374         (HAVE_WCTYPE_CTMP_BUG): Remove.
106376 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
106378         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
106379         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
106380         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
106381         Problems reported by Georg Schwarz for IRIX 5.3.
106383         * gnulib-tool (autoconf_minversion): Take the maximum version number
106384         found, not the minimum.  Problem reported by James Youngman.
106386 2007-01-03  Karl Berry  <karl@gnu.org>
106388         * doc/error.texi: new file, explaining interaction with progname.
106389         * doc/gnulib.texi: include it.  Update copyright.
106391 2007-01-03  Simon Josefsson  <simon@josefsson.org>
106393         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
106394         AC_CANONICAL_HOST, to improve autobuild outputs.
106396 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
106397             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
106399         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
106400         sockets, server sockets, and other file descriptors.  Count errors
106401         to compute the return value.  Reorder the code a bit to be easier
106402         to follow.  Don't set event bits that were not requested (except
106403         POLLERR and POLLHUP).
106405 2007-01-01  Bruno Haible  <bruno@clisp.org>
106407         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
106409 2007-01-03  Jim Meyering  <jim@meyering.net>
106411         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
106413 2007-01-02  Bruno Haible  <bruno@clisp.org>
106415         * modules/settime (Include): Require timespec.h.
106416         * modules/nanosleep (Include): Likewise.
106418 2007-01-01  Bruno Haible  <bruno@clisp.org>
106420         * gnulib-tool (func_emit_copyright_notice): Bump year.
106421         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
106423 2007-01-01  Bruno Haible  <bruno@clisp.org>
106425         Improve support for OpenBSD.
106426         * build-aux/config.rpath (libname_spec): Export.
106427         (library_names_spec): New variable. Export.
106428         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
106429         library_names_spec from the config.rpath output. Locate shared library
106430         through the name pattern in library_names_spec.
106432 2007-01-01  Eric Blake  <ebb9@byu.net>
106434         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
106436 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
106438         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
106439         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
106440         assume the C locale, and avoid an "eval" that could cause trouble.
106441         Problem with SORT reported by Bob Proulx.
106443         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
106444         Define.  Trivial patch from Henning Nielsen Lund, originally
106445         sent to bug-grep@gnu.org today.
106447 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
106449         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
106450         struct stat.  Problem reported by Henning Nielsen Lund.
106451         * lib/acl.c: Include acl.h first, to check interface.  Don't
106452         bother to include sys/types.h and sys/stat.h again.
106454 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
106456         Import the following change from libc; problem reported by
106457         Sven Verdoolaege.
106459         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
106461         [BZ #1373]
106462         * lib/argp.h: Remove __NTH for __argp_usage inline function.
106464 2006-12-28  Jim Meyering  <jim@meyering.net>
106466         * build-aux/announce-gen: Do not assume that the package
106467         builds any of tar.gz, tar.bz2, and .xdelta files.
106468         Suggestion from Simon Josefsson.
106470 2006-12-28  Simon Josefsson  <simon@josefsson.org>
106472         * modules/announce-gen: New file.
106474 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
106476         * lib/mbchar.h: Just include <wctype.h>; the wctype module
106477         handles its gotchas now.
106478         * lib/mbswidth.c: Likewise.
106479         * lib/wcwidth.h: Likewise.
106480         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
106481         and iswcntrl; the wctype module does this stuff now.
106482         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
106483         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
106484         * modules/mbchar (Depends-on): Add wctype.
106485         * modules/mbswidth (Depends-on): Likewise.
106486         * modules/wcwidth (Depends-on): Likewise.
106488 2006-12-27  Eric Blake  <ebb9@byu.net>
106490         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
106491         module uses more than what <wctype.h> is required to provide.
106493 2006-12-26  Eric Blake  <ebb9@byu.net>
106495         * gnulib-tool (sed_extract_prog): Avoid space-tab.
106497 2006-12-26  Eric Blake  <ebb9@byu.net>
106499         * modules/absolute-header: New module.
106500         * modules/fcntl (Depends-on): Depend on it.
106501         * modules/inttypes (Depends-on): Likewise.
106502         * modules/stdint (Depends-on): Likewise.
106503         * modules/sys_stat (Depends-on): Likewise.
106504         * modules/wctype (Depends-on): Likewise.
106505         * MODULES.html.sh (Support for building libraries and
106506         executables): Document it.
106508 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
106510         * gnulib-tool (SED): Remove, undoing previous change.
106511         The problem was that it broke coreutils on Solaris, because
106512         "sed --posix" leaked into a makefile.
106513         (sed): New alias, if 'alias' and GNU sed.
106515 2006-12-24  Jim Meyering  <jim@meyering.net>
106517         Work around an fchownat bug in glibc-2.4:
106518         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
106519         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
106520         in spite of the -P option.
106521         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
106522         New macros.
106523         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
106524         * modules/openat (Files): Add lib/fchownat.c.
106525         * lib/openat.c (fchownat): Don't define here.  Move to...
106526         * lib/fchownat.c: ...this new file.
106528 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
106530         Fix bug reported by Bruno Haible in
106531         <http://lists.gnu.org/r/bug-gnulib/2006-12/msg00228.html>
106532         where quotearg.c didn't compile on Mac OS X 10.2 because it
106533         lacks <wchar.h> and wint_t.
106534         * lib/wctype_.h (__wctype_wint_t): New type.
106535         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
106536         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
106537         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
106538         Arg is now of type __wctype_wint_t, not wint_t.
106539         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
106540         substitute HAVE_WINT_T.
106541         * modules/wctype (Files): Add m4/wint_t.m4.
106542         (wctype.h): Substitute HAVE_WINT_T.
106544 2006-12-23  Bruno Haible  <bruno@clisp.org>
106546         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
106548 2006-12-23  Bruno Haible  <bruno@clisp.org>
106550         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
106551         S_ISLNK.
106552         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
106553         mingw.
106555 2006-12-22  Bruno Haible  <bruno@clisp.org>
106557         * lib/copy-file.c: Include acl.h.
106558         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
106559         Close the file descriptors only after being done with copy_acl.
106560         * modules/copy-file (Depends-on): Add acl.
106562 2006-12-22  Bruno Haible  <bruno@clisp.org>
106564         * gnulib-tool (SED): New variable.
106565         Use $SED instead of sed everywhere.
106567 2006-12-22  Bruno Haible  <bruno@clisp.org>
106569         * modules/no-c++: New file.
106570         * m4/no-c++.m4: New file.
106571         * MODULES.html.sh (Support for building libraries and executables):
106572         Add no-c++.
106574 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
106576         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
106577         Include <limits.h>, and use its INT_MAX to rewrite the
106578         j loop so that it does not overflow 'int'.  Problem reported by
106579         Ralf Wildenhues in
106580         <http://lists.gnu.org/r/bug-gnulib/2006-12/msg00084.html>.
106581         Play it safe by shifting left by 1 rather than multiplying by 2,
106582         as GCC is less likely to optimize this away when the value
106583         is signed (when it assumes overflow leads to undefined behavior).
106584         Also, don't assume time_t uses two's complement.
106586 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
106588         * MODULES.html.sh: New module wctype.
106589         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
106590         * lib/fnmatch.c: Don't bother to include <wchar.h> before
106591         <wctype.h>, since the new wctype module should fix this.
106592         * lib/quotearg.c: Include <wctype.h> unconditionally, since
106593         the wctype module should arrange for it.
106594         * lib/regex_internal.h: Likewise.
106595         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
106596         since the wctype module should handle this now.
106597         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
106598         * modules/fnmatch (Depends-on): Add wctype.
106599         * modules/quotearg (Depends-on): Likewise.
106600         * modules/regex (Depends-on): Likewise.
106602 2006-12-19  Bruno Haible  <bruno@clisp.org>
106604         * lib/strdup.h [C++]: Wrap definitions in extern "C".
106605         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
106607 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
106609         * modules/savewd (Depends-on): Fix dependency on fcntl.
106611 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
106613         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
106614         conforms to C99, rather than relying on the user's environment
106615         setting of STDINT_H.
106617 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
106618         and Eric Blake  <ebb9@byu.net>
106620         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
106621         This is more consistent with the other defines here.
106622         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
106623         Port to z/OS.  Problem reported by Paul Gilmartin.
106624         Change local vars to use gl_ prefix rather than ac_.
106625         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
106626         with other defines.
106627         * modules/double-slash-root: New module.
106628         * modules/dirname (Files): Remove m4/double-slash-root.m4.
106629         (Depends-on): Add double-slash-root.
106630         * MODULES.html.sh (File system functions): Mention new module.
106632 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
106634         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
106635         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
106636         This is for the benefit of gzip, which doesn't do i18n.
106638 2006-12-12  Jim Meyering  <jim@meyering.net>
106640         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
106641         Reported by Andreas Schwab <schwab@suse.de>.
106643 2006-12-12  Bruno Haible  <bruno@clisp.org>
106645         Merge these changes.
106646         2006-09-05  Bruno Haible  <bruno@clisp.org>
106647         * lib/iconvme.c (iconv_string): No need to save and restore errno when
106648         iconv_alloc succeeded.
106649         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
106650         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
106651         test for " && dest " at the end - dest is always != NULL there. Call
106652         iconv with 4xNULL arguments initially, to reset the state. Call iconv
106653         with 2xNULL arguments, also to flush the state storage. Handle the
106654         IRIX iconv behaviour. Realloc the final result, to throw away unused
106655         memory.
106657 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
106659         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
106660         and fchmodat unconditionally, since glibc 2.4 has them.
106661         Problem reported by Arkadiusz Miskiewicz.
106663 2006-12-10  Bruno Haible  <bruno@clisp.org>
106665         * gnulib-tool (func_import): Show the include files only for those
106666         modules that are copied and specified.
106667         Reported by Karl Berry.
106669 2006-12-08  Jim Meyering  <jim@meyering.net>
106671         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
106672         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
106674         * build-aux/announce-gen: Add two new options, both optional:
106675         --bootstrap-tools=TOOL_LIST
106676               a comma-separated list of tools, e.g.,
106677               autoconf,automake,bison,gnulib
106678         --gnulib-snapshot-date=DATE
106679               if gnulib is in the bootstrap tool list,
106680               then report this as the snapshot date.
106681               If not specified, use the current date/time.
106682               If you specify a date here, be sure it's UTC.
106684 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
106686         * tests/test-argp-2.sh: Fix test to match actual output.
106687         (func_compare): Fix sed script to be portable.
106689 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
106691         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
106692         workaround for this case.  It is not autoconfigured now; offhand
106693         it's hard to see how to autoconfigure it.
106695 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
106697         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
106698         a directory that is about to be chowned.  Such a directory's
106699         initial file permissions should permit the owner only and this
106700         should not be changed until after the chown, since the group and
106701         other bits would be incorrect if they granted permission before
106702         the chown.
106704         Fix porting problem for iswctype reported by Georg Schwarz in:
106705         http://lists.gnu.org/r/bug-coreutils/2006-12/msg00017.html
106706         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
106707         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
106708         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
106709         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
106711 2006-12-03  Jim Meyering  <jim@meyering.net>
106713         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
106714         p->fts_statp may not yet be defined.
106715         (fts_read): Instead, set it in the caller, once p->fts_statp is
106716         sure to be defined, and corresponds to a top-level directory.
106717         This bug made du -x fail.  Here's the coreutils test case:
106718         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
106719         Reported by Mike Frysinger.
106721 2006-12-01  Jim Meyering  <jim@meyering.net>
106723         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
106724         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
106725         Reported by Simon Josefsson.
106727 2006-11-30  Jim Meyering  <jim@meyering.net>
106729         * m4/warning.m4: Use the all-permissive copyright notice
106730         recommended by RMS (rather than LGPL).
106731         * m4/vararrays.m4: Likewise.
106732         * m4/flexmember.m4: Likewise.
106734 2006-11-29  Bruno Haible  <bruno@clisp.org>
106736         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
106737         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
106738         using +=.
106739         Reported by Simon Josefsson <simon@josefsson.org>.
106741 2006-11-28  James Youngman  <jay@gnu.org>
106743         * README: Advise users that they might find the bug-gnulib@gnu.org
106744         and autotools-announce@gnu.org mailing lists useful.
106746 2006-11-28  Bruno Haible  <bruno@clisp.org>
106748         * m4/ptrdiff_max.m4: Remove file.
106750 2006-11-21  Bruno Haible  <bruno@clisp.org>
106752         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
106753         _AC_COMPUTE_INT.
106754         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
106755         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
106756         _AC_COMPUTE_INT.
106757         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
106758         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
106759         _AC_COMPUTE_INT.
106760         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
106762 2006-11-28  Jim Meyering  <jim@meyering.net>
106764         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
106765         warning from "gcc -Wshadow" about shadowing the builtin.
106767 2006-11-27  Bruno Haible  <bruno@clisp.org>
106769         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
106770         _AC_COMPUTE_INT.
106771         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
106773 2006-11-27  Bruno Haible  <bruno@clisp.org>
106774             Paul Eggert  <eggert@cs.ucla.edu>
106776         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
106778 2006-11-26  Bruno Haible  <bruno@clisp.org>
106780         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
106781         noinst_LTLIBRARIES.
106783 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
106784             Bruno Haible  <bruno@clisp.org>
106786         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
106787         if compiling with "gcc -ansi".
106789 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
106791         Fix some incompatibilities with gcc -ansi -pedantic.
106792         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
106793         if compiling pedantically with GCC, unless it's C99 or later.
106794         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
106795         it mishandles gcc -ansi -pedantic as well.
106796         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
106797         if gcc -pedantic.
106798         * lib/regexec.c (check_node_accept_bytes): Don't use auto
106799         initializers for struct if -pedantic, unless it's C99 or later.
106801 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
106803         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
106804         Don't close an fd more than once. Identical atimes indicate
106805         success, not failure.
106807 2006-11-22  Robinson Mittmann  <bob@hoplon.com>  (tiny change)
106809         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
106811 2006-11-23  Jim Meyering  <jim@meyering.net>
106813         * build-aux/announce-gen: New file.  From coreutils.
106815 2006-11-22  Jim Meyering  <jim@meyering.net>
106817         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
106818         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
106819         (fts_read): Use a temporary to narrow the overused st_size member
106820         before using it in a switch statement.  Reported by Matthew Woehlke.
106822         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
106823         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
106825 2006-11-20  Bruno Haible  <bruno@clisp.org>
106827         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
106828         changequote instead of pairs of brackets.
106829         Reported by Andreas Schwab <schwab@suse.de>.
106831 2006-11-21  Jim Meyering  <jim@meyering.net>
106833         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
106834         so as to remain compatible with older compilers.
106835         Patch from Michael Deutschmann.
106837 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
106839         * MODULES.html.sh (File system functions): Add openat.
106841         * lib/openat.h (rpl_fstatat): New macro, if
106842         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
106843         (fstatat): Define to rpl_fstatat under the same conditions,
106844         unless COMPILING_FSTATAT.
106845         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
106846         seems to have the bug.
106847         * lib/fstatat.c: New file.
106848         * modules/openat (Files): Add it.
106850 2006-11-20  Bruno Haible  <bruno@clisp.org>
106852         * Makefile: New file.
106854 2006-11-20  Jim Meyering  <jim@meyering.net>
106856         The beginnings of syntax-related checks for gnulib.
106857         * lib/Makefile: New file.
106858         * lib/t-idcache: New script.  Ensure that the two halves of
106859         idcache.c stay in sync.
106861         * lib/idcache.c: Adjust comments in user- and group- portions to
106862         be more accurate, and to be consistent with one another.
106864 2006-11-20  Jim Meyering  <jim@meyering.net>
106866         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
106867         continue using the flexible array member (thus, this module performs
106868         half as many malloc calls), with the addition that...
106869         (getgroup, getuser): Consistently record a non-match via an empty
106870         "name" string, and map an empty string match to a NULL return value.
106871         * modules/idcache (Depends-on): Re-add flexmember.
106873         * lib/idcache.c (getuser): Remove all uses of the register keyword.
106874         (getuidbyname, getgroup, getgidbyname): Likewise.
106876         Use cleaner syntax: NULL rather than 0.
106877         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
106879 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
106881         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
106882         It mishandled the case where the group was missing.
106883         Problem reported by Greg Schafer.
106884         * modules/idcache: Likewise.
106886 2006-11-18  Jim Meyering  <jim@meyering.net>
106888         * check-module (%exempt_header): Add exception for some
106889         conditionally-included headers.
106891         * modules/i-ring (Depends-on): Add verify.
106892         (License): Change to LGPL.
106894 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
106896         * modules/getaddrinfo (Depends-on): Remove inttostr; add snprintf.
106897         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
106898         and inttostr.h.  Use snprintf rather than uinttostr, so that
106899         LGPLed code doesn't depend on GPLed.
106901 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
106903         * modules/inline (License): Change from GPL to LGPL.
106905 2006-11-17  Jim Meyering  <jim@meyering.net>
106907         * modules/d-type (License): Switch to LGPL.
106909 2006-11-15  Bruno Haible  <bruno@clisp.org>
106911         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
106913 2006-11-15  Eric Blake  <ebb9@byu.net>
106915         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
106916         the module dependency.
106918 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
106919             Bruno Haible  <bruno@clisp.org>
106921         * gnulib-tool (func_create_testdir): Add license consistency check.
106923 2006-11-15  Eric Blake  <ebb9@byu.net>
106925         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
106926         random "(cached)" in configure output.
106928 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
106930         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
106931         test for conforming inttypes.h is both announced and cached.
106933         * MODULES.html.sh (seen_modules, seen_files): New variables.
106934         (func_module): Rewrite to use a few less gnulib-tool and sed
106935         invocations.  Avoid a couple of quadratic algorithms for ...
106936         (missed_modules, missed_files): ... these, with ...
106937         (func_append, func_tmpdir): ... these new functions, from
106938         gnulib-tool.  Analogously, install traps for cleanup.
106940         * tests/test-gc.c (main): Remove unused variables.
106941         * tests/test-read-file.c: Include stdlib.h, for 'free'.
106943 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
106945         * modules/inttostr (License): Change to LGPL.
106947 2006-11-14  Eric Blake  <ebb9@byu.net>
106949         * modules/tempname (License): Change to LGPL.
106951 2006-11-14  Eric Blake  <ebb9@byu.net>
106953         * doc/functions.texi (Function Portability): *printf functions on
106954         Cygwin now understand all POSIX size specifiers.
106956 2006-11-14  Bruno Haible  <bruno@clisp.org>
106958         * modules/c-ctype (License): Change to LGPL.
106960 2006-11-12  Bruno Haible  <bruno@clisp.org>
106962         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
106963         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
106964         for GNOME libraries, for which the include files are installed in
106965         subdirectories of $prefix/include.
106967 2006-11-12  Bruno Haible  <bruno@clisp.org>
106969         * m4/lib-link.m4: Require at least autoconf-2.54.
106970         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
106971         name to underscores for the --with option.
106973 2006-11-13  Bruno Haible  <bruno@clisp.org>
106975         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
106976         the tests directory.
106977         Reported by Ralf Wildenhues.
106979 2006-11-13  Bruno Haible  <bruno@clisp.org>
106981         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
106982         (func_emit_initmacro_end): Undo the override here.
106983         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
106984         Works around the famous automake error in coreutils.
106986 2006-11-13  Eric Blake  <ebb9@byu.net>
106988         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
106989         element, not its node.
106991 2006-11-12  Bruno Haible  <bruno@clisp.org>
106993         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
106994         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
106996 2006-11-12  Bruno Haible  <bruno@clisp.org>
106998         * gnulib-tool: New option --local-symlink.
106999         (func_usage): Document it.
107000         (lsymbolic): New variable.
107001         (func_import, func_create_testdir): If --symlink was not specified,
107002         test whether --local-symlink was specified and the file comes from
107003         the local_gnulib_dir.
107005 2006-11-12  Bruno Haible  <bruno@clisp.org>
107007         * gnulib-tool (func_ln): New function.
107008         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
107010 2006-11-12  Bruno Haible  <bruno@clisp.org>
107012         Finish support for source files in subdirectories.
107013         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
107014         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
107015         AUTOMAKE_OPTIONS.
107016         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
107018 2006-11-12  Bruno Haible  <bruno@clisp.org>
107020         * gnulib-tool (func_get_automake_snippet): Synthesize also an
107021         EXTRA_lib_SOURCES augmentation.
107022         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
107024 2006-11-12  Jim Meyering  <jim@meyering.net>
107026         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
107027         file descriptors.  This also averts a failure on systems with
107028         native openat support when a traversed directory lacks "x" access.
107029         * lib/fts_.h: Include "i-ring.h"
107030         (struct FTS) [fts_fd_ring]: New member.
107031         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
107032         (FCHDIR): Add parentheses.
107033         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
107034         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
107035         When descending, rather than simply closing the previous
107036         fts_cwd_fd value, push that file descriptor onto the ring.
107037         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
107038         (fts_open): Initialize the new fd_ring member.
107039         (fts_close): Clear the ring.
107040         (fts_safe_changedir): When possible, use our new fd_ring to skip
107041         the diropen and fstat and dev/ino comparison that would normally
107042         accompany a virtual `chdir ("..")'.
107044         * modules/fts (Depends-on): Add i-ring.
107045         * modules/i-ring: New module.
107046         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
107047         * m4/i-ring.m4: New file.
107049 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
107051         * gnulib-tool (func_create_testdir): Fix replacement of
107052         `build-aux' in configure.ac.  Run autotools in gltests
107053         subdirectory.
107054         (func_create_testdir, func_create_megatestdir, test): There is
107055         no need for '--force' in most autotool invocations in a new
107056         tree.  Actually fail the whole test if any of the tools, or the
107057         configure or make stages fail.
107059         Sync from Automake.
107060         * build-aux/gnupload: Revert last change.  Add pointer to upload
107061         instructions of the GNU Maintenance Instructions.
107062         Suggestion by Karl Berry.
107064 2006-11-10  Jim Meyering  <jim@meyering.net>
107066         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
107068 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
107070         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
107071         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
107072         (bind_textdomain_codeset) [! ENABLE_NLS]:
107073         Evaluate all the arguments.  That way, callers get compatible behavior
107074         if the arguments have side effects.  Also, it avoids some GCC
107075         diagnostics in some cases; Joel E. Denny reported problems when Bison
107076         was configured with --enable-gcc-warnigs.
107078 2006-11-10  Jim Meyering  <jim@meyering.net>
107080         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
107081         relevant options in CFLAGS (like -O, -fno-inline) are taken into
107082         account.
107084 2006-11-10  Jim Meyering  <jim@meyering.net>
107086         * modules/inline: New file/module.
107087         * modules/xalloc (Files): Remove m4/inline.m4.
107088         (Depends-on): Add inline, instead.
107089         * modules/oset: Likewise.
107090         * modules/list: Likewise.
107092 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
107094         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
107095         Problem reported by Matthew Woehlke.
107097 2006-11-09  Bruno Haible  <bruno@clisp.org>
107099         * lib/tempname.c (gen_tempname): Remove variant that invokes
107100         __gen_tempname.
107101         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
107102         __gen_tempname.
107104 2006-11-08  Bruno Haible  <bruno@clisp.org>
107106         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
107107         to 'yes' instead of 'cross-compiling'.
107109 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
107111         * lib/quotearg.h (quotearg_free): New decl.
107112         * lib/quotearg.c (quotearg_free): New function.
107113         (slot0, nslots, slotvec0, slotvec):
107114         Now file-scope so that quotearg_free can get at them.
107116 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
107118         Sync from Automake.
107119         * build-aux/gnupload: Add missing 'gnu' to example URL.
107120         Report by Karl Berry.
107122 2006-11-08  Bruno Haible  <bruno@clisp.org>
107124         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
107125         Suggested by Paul Eggert.
107127 2006-11-08  Jim Meyering  <jim@meyering.net>
107129         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
107130         It's already included if !_LIBC.
107131         (fts_safe_changedir): Add a comment.
107133 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
107135         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
107136         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
107137         Matthew Woehlke.
107139         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
107140         definitions up, to avoid colliding with change below.
107141         (static_inline) [HAVE_INLINE]: New macro.
107142         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
107143         Provide extern decls when !HAVE_INLINE.  Do not define unless
107144         static_inline is defined, either by us or by xmalloc.c.  Use
107145         static_inline rather than static inline.
107146         (XCALLOC): Optimize sizeof(T) = 1 case.
107147         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
107149 2006-11-07  Bruno Haible  <bruno@clisp.org>
107151         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
107152         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
107153         AC_C_INLINE.
107154         * modules/xalloc (Files): Add m4/inline.m4.
107156 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
107158         * README: Fix typo.
107159         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
107160         (Miscellanous Notes): ...from this.
107162 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
107164         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
107165         Mention that offsetof should be used instead of sizeof.
107166         From Bruno Haible.
107168 2006-11-07  Bruno Haible  <bruno@clisp.org>
107170         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
107172 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
107174         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
107175         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
107176         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
107177         (gl_tree_add_before, gl_tree_add_after):
107178         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
107179         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
107180         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
107181         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
107182         (gl_linked_add_after, gl_linked_add_at): Likewise.
107183         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
107184         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
107185         (gl_tree_add_before, gl_tree_add_after): Likewise.
107186         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
107187         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
107188         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
107190 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
107192         * lib/gl_oset.h: Use C comment style, not C++ comment style.
107194 2006-11-06  Bruno Haible  <bruno@clisp.org>
107196         * m4/inline.m4: New file.
107197         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
107198         * modules/list (Files): Add m4/inline.m4.
107199         * modules/oset (Files): Likewise.
107201 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
107203         * lib/idcache.c: Include <stddef.h>, for offsetof.
107204         (struct userid.name): Change from char * to a flexible array member.
107205         All uses changed.
107206         * modules/idcache (Depends-on): Add flexmember.
107208         * MODULES.html.sh (Core language properties): New module flexmember.
107209         * modules/flexmember, m4/flexmember.m4: New files.
107211         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
107212         inline functions that are identical with the old xnmalloc_inline,
107213         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
107214         that we can avoid some unnecessary integer multiplications and
107215         divisions in the common case where the element size is known at
107216         compile time.
107217         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
107218         needed.
107219         (xnboundedmalloc): Remove.
107220         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
107221         arguments, for consistency with rest of this header.
107222         (xcharalloc): Rewrite using XNMALLOC.
107223         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
107224         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
107225         versions have been moved to lib/xalloc.h and renamed to be the
107226         non-*_inline versions.
107227         (xmalloc, xrealloc): Implement without reference to the xnmalloc
107228         and xnrealloc functions, since those functions are now inline and
107229         now call us.
107230         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
107231         renaming described above.
107232         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
107233         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
107234         captures the dependency in AC_C_INLINE.
107236         New module canonicalize-lgpl, proposed by Charles Wilson in
107237         <http://lists.gnu.org/r/bug-gnulib/2006-11/msg00020.html>
107238         with a few small changes afterwards.
107239         * MODULES.html.sh (File system functions): New module
107240         canonicalize-lgpl.
107241         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
107242         and canonicalize_file_name.
107243         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
107244         * modules/canonicalize-lgpl: New files.
107246 2006-11-05  Bruno Haible  <bruno@clisp.org>
107248         * gnulib-tool (func_import, func_create_testdir): Create directories
107249         also for files in subdirectories of lib/.
107251 2006-11-05  Bruno Haible  <bruno@clisp.org>
107253         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
107254         ANSI C compliant.
107256 2006-11-03  Bruno Haible  <bruno@clisp.org>
107258         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
107259         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
107260         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
107261         (xnboundedmalloc): New inline function.
107262         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
107263         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
107264         xmalloc.
107265         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
107266         xmalloc.
107267         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
107268         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
107269         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
107270         xmalloc.
107271         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
107272         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
107273         xmalloc.
107274         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
107275         gl_tree_add_after): Use XMALLOC instead of xmalloc.
107276         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
107277         xmalloc.
107278         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
107279         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
107280         gl_tree_add_after): Use XMALLOC instead of xmalloc.
107281         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
107282         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
107283         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
107284         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
107286 2006-11-03  Bruno Haible  <bruno@clisp.org>
107288         * lib/c-ctype.h [C++]: Define functions without name mangling.
107289         * lib/fwriteerror.h [C++]: Likewise.
107290         * lib/gcd.h [C++]: Likewise.
107291         * lib/linebreak.h [C++]: Likewise.
107293 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
107295         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
107296         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
107297         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
107298         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
107299         Check for functions and headers just once.
107300         Check for declaration of canonicalize_file_name.
107301         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
107303 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
107305         * gnulib-tool (func_import): Fix typo in actioncmd.
107307 2006-11-02  Bruno Haible  <bruno@clisp.org>
107309         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
107310         newline sequence in the Makefile.am snippet as a space, like "make"
107311         does.
107312         Reported by Roger Persson <perrog@gmail.com>.
107314 2006-11-01  Bruno Haible  <bruno@clisp.org>
107316         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
107317         already declared in <string.h>.
107318         * lib/strcase.h (strncasecmp): Don't declare it if yes.
107320 2006-11-01  Bruno Haible  <bruno@clisp.org>
107322         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
107323         * lib/strcase.h: Include <string.h>.
107324         (strcasecmp): Define to rpl_strcasecmp here.
107326 2006-11-01  Bruno Haible  <bruno@clisp.org>
107328         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
107330 2006-11-01  Eric Blake  <ebb9@byu.net>
107332         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
107334         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
107336 2006-10-29  Bruno Haible  <bruno@clisp.org>
107338         Make it compile in C++ mode.
107339         * lib/full-write.c (full_rw): Add a cast.
107341 2006-11-01  Bruno Haible  <bruno@clisp.org>
107343         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
107344         be POSIX compliant.
107345         Reported by Roger Persson <perrog@gmail.com>.
107347 2006-11-01  Eric Blake  <ebb9@byu.net>
107349         * lib/getopt_.h: Fix comments.
107351 2006-10-31  Eric Blake  <ebb9@byu.net>
107353         * modules/tmpdir (Depends-on): Add sys_stat.
107354         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
107355         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
107356         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
107357         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
107358         tempname.
107360 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
107362         Avoid some C++ diagnostics reported by Bruno Haible.
107363         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
107364         xmalloc.
107365         (quotearg_alloc): Use xcharalloc rather than xmalloc.
107366         (struct slotvec): Move to top level.
107367         (quotearg_n_options): Rewrite to avoid xmalloc.
107368         * lib/xalloc.h (xcharalloc): New function.
107369         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
107370         [defined __cplusplus]: Add function template that provides result
107371         type propagation.  This part of the change is from Bruno Haible.
107373 2006-10-29  Bruno Haible  <bruno@clisp.org>
107375         Make it compile in C++ mode.
107376         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
107377         * lib/strnlen1.c (strnlen1): Cast memchr result.
107378         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
107379         * lib/clean-temp.c (string_equals, string_hash): Add casts.
107380         (create_temp_dir): Rename local variable 'template'.
107381         (compile_csharp_using_sscli): Add cast.
107382         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
107383         * lib/findprog.c (find_in_path): Likewise.
107384         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
107385         * lib/wait-process.c (register_slave_subprocess): Likewise.
107387 2006-10-22  Bruno Haible  <bruno@clisp.org>
107389         * modules/tsearch: New file.
107390         * lib/tsearch.h: New file.
107391         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
107392         * m4/tsearch.m4: New file.
107393         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
107395 2006-10-29  Eric Blake  <ebb9@byu.net>
107397         * lib/arcfour.c: Assume config.h.
107398         * lib/arctwo.c: Likewise.
107399         * lib/base64.c: Likewise.
107400         * lib/check-version.c: Likewise.
107401         * lib/crc.c: Likewise.
107402         * lib/des.c: Likewise.
107403         * lib/gc-gnulib.c: Likewise.
107404         * lib/gc-libgcrypt.c: Likewise.
107405         * lib/gc-pbkdf2-sha1.c: Likewise.
107406         * lib/getaddrinfo.c: Likewise.
107407         * lib/getdelim.c: Likewise.
107408         * lib/getline.c: Likewise.
107409         * lib/hmac-md5.c: Likewise.
107410         * lib/hmac-sha1.c: Likewise.
107411         * lib/iconvme.c: Likewise.
107412         * lib/md2.c: Likewise.
107413         * lib/md4.c: Likewise.
107414         * lib/memxor.c: Likewise.
107415         * lib/read-file.c: Likewise.
107416         * lib/readline.c: Likewise.
107417         * lib/rijndael-alg-fst.c: Likewise.
107418         * lib/rijndael-api-fst.c: Likewise.
107419         * lib/xgetdomainname.c: Likewise.
107421 2006-10-28  Eric Blake  <ebb9@byu.net>
107423         * lib/xstrndup.c: Assume config.h.
107425 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
107427         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
107428         stat-macros.h is now for our own macros, whereas stat_h is for
107429         macros in the <sys/stat.h> name space.
107430         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
107431         (STAT_MACROS_H): Remove.
107432         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
107433         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
107434         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
107435         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
107436         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
107437         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
107438         Move these macros to ...
107439         * lib/stat_.h: here.  Don't include stat-macros.h.
107440         * lib/canonicalize.c: Don't include stat-macros.h.
107441         * lib/chown.c: Likewise.
107442         * lib/euidaccess.c: Likewise.
107443         * lib/file-type.c: Likewise.
107444         * lib/filemode.c: Likewise.
107445         * lib/glob.c: Likewise.
107446         * lib/isapipe.c: Likewise.
107447         * lib/lchown.c: Likewise.
107448         * lib/lstat.c: Likewise.
107449         * lib/mkdir-p.c: Likewise.
107450         * lib/rmdir.c: Likewise.
107451         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
107452         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
107453         unless mkdir isn't declared, to speed up 'configure'.
107454         Always create sys/stat.h, since it's unlikely any real sys/stat.h
107455         would define all the S_* symbols.
107456         * modules/canonicalize (Depends-on):
107457         Depend on sys_stat, not stat-macros.
107458         * modules/chown: Likewise.
107459         * modules/euidaccess: Likewise.
107460         * modules/filemode: Likewise.
107461         * modules/file-type: Likewise.
107462         * modules/glob: Likewise.
107463         * modules/isapipe: Likewise.
107464         * modules/lchown: Likewise.
107465         * modules/lstat: Likewise.
107466         * modules/mkancesdirs: Likewise.
107467         * modules/rmdir: Likewise.
107468         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
107469         * modules/modechange: Likewise.
107470         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
107471         (configure.ac): Remove gl_STAT_MACROS.
107472         * modules/sys_stat (Depends-on): Remove stat-macros.
107474 2006-10-27  Bruno Haible  <bruno@clisp.org>
107476         * m4/signed.m4: Remove file.
107477         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
107478         invocation.
107479         * modules/vasnprintf (Files): Remove m4/signed.m4.
107481 2006-10-27  Bruno Haible  <bruno@clisp.org>
107483         Update to GNU gettext 0.16.
107484         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
107485         m4/inttypes-h.m4, m4/signed.m4.
107486         * m4/gettext.m4: Update to GNU gettext 0.16.
107487         * m4/intl.m4: New file, from GNU gettext.
107488         * m4/intldir.m4: New file, from GNU gettext.
107489         * config/srclist.txt: Update
107491 2006-10-27  Eric Blake  <ebb9@byu.net>
107493         * MODULES.html.sh: Document tempname.
107494         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
107495         dependencies.
107496         (Files): Move lib/tempname.c...
107497         * modules/tempname: ...to this new module.
107498         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
107499         (gl_PREREQ_TEMPNAME): Move...
107500         * m4/tempname.m4: ...to this new file.
107501         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
107502         * modules/sys_stat (Depends-on): Add stat-macros.
107503         * lib/stat_.h (includes): Pick up stat macros.
107504         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
107505         if stat macros are broken.
107506         * lib/tempname.c (includes): No need to include "stat-macros.h".
107507         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
107508         (direxists, __path_search) [!_LIBC]: Don't compile these in
107509         gnulib; the tmpdir module covers that.
107510         * lib/tempname.h: New file.
107512 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
107514         * COPYING: Explain how gnulib-tool converts licence headers.
107515         Almost all wording by Eric Blake.
107517 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
107519         * lib/mbchar.h (is_basic_table): Make read-only.
107520         * lib/mbchar.c (is_basic_table): Likewise.
107521         Reported by John Darrington.
107523 2006-10-25  Bruno Haible  <bruno@clisp.org>
107525         * lib/progname.h (set_program_name): Undefine before defining.
107527 2006-10-25  Bruno Haible  <bruno@clisp.org>
107529         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
107530         false for non-gcc C++ compilers.
107531         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
107533 2006-10-24  Bruno Haible  <bruno@clisp.org>
107535         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
107536         iconv implementations like Irix iconv.
107538 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
107540         * modules/vararrays: New file.
107541         * m4/vararrays.m4: New file, taken from diffutils.
107542         * MODULES.html.sh: New module vararrays.
107544 2006-10-24  Karl Berry  <karl@gnu.org>
107546         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
107547         Don't call GNU Unix.
107549 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
107551         * users.txt: Add Libtool.
107553         Sync from Libtool:
107555         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
107557         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
107558         to gnulib's policy of including config.h unconditionally.
107560 2006-10-24  Bruno Haible  <bruno@clisp.org>
107562         * modules/wcwidth (Files): Add m4/wint_t.m4.
107563         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
107564         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
107566 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
107568         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
107569         to pacify GCC with some -W flags enabled.  Problem reported by
107570         Bruno Haible.
107572 2006-10-24  Jim Meyering  <jim@meyering.net>
107574         * MODULES.html.sh: Remove uinttostr.  It's not a module.
107575         Reported by Karl Berry.
107577 2006-10-23  Bruno Haible  <bruno@clisp.org>
107579         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
107581 2006-10-24  Bruno Haible  <bruno@clisp.org>
107583         * lib/gl_list.h: Use C comment style, not C++ comment style.
107585 2006-10-23  Eric Blake  <ebb9@byu.net>
107587         * lib/getaddrinfo.c (includes): Add missing include.
107589 2006-10-23  Bruno Haible  <bruno@clisp.org>
107590             Paul Eggert  <eggert@cs.ucla.edu>
107592         Ability to rename obstack_free.
107593         * lib/obstack.h (__obstack_free): New macro. Declare instead of
107594         obstack_free.
107595         (obstack_free): Invoke the __obstack_free macro.
107596         * lib/obstack.c (obstack_free): Use __obstack_free macro.
107598 2006-10-23  Bruno Haible  <bruno@clisp.org>
107599             Paul Eggert  <eggert@cs.ucla.edu>
107601         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
107602         __argc, __argv from the declaration. (They are defined as macros on
107603         mingw.)
107605 2006-10-22  Bruno Haible  <bruno@clisp.org>
107607         * doc/gnulib-intro.texi: New file.
107608         * doc/gnulib.texi: Include it.
107610 2006-10-21  Bruno Haible  <bruno@clisp.org>
107612         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
107613         "Introduction", "Miscellanous Notes", "Particular Modules".
107615 2006-10-21  Bruno Haible  <bruno@clisp.org>
107617         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
107618         Change mostlyclean-local rule to avoid sh syntax error from bash
107619         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
107621 2006-10-23  Jim Meyering  <jim@meyering.net>
107623         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
107624         in place of snprintf.
107626         * modules/inttostr (Files): Add lib/uinttostr.c.
107627         * lib/uinttostr.c (inttostr): New file/function.
107628         * lib/inttostr.h (uinttostr): Declare.
107629         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
107630         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
107631         Add uinttostr.
107632         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
107634 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
107636         * lib/canonicalize.c (ELOOP): Define if not already defined.
107637         Problem reported by Bruno Haible in
107638         <http://lists.gnu.org/r/bug-gnulib/2006-10/msg00282.html>.
107640 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
107642         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
107643         Problem reported by Perry Smith and Ville Laurikari.
107645         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
107646         uses.
107648 2006-10-19  Bruno Haible  <bruno@clisp.org>
107650         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
107651         for mingw.
107653 2006-10-19  Bruno Haible  <bruno@clisp.org>
107655         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
107656         Needed for mingw.
107658 2006-10-19  Bruno Haible  <bruno@clisp.org>
107660         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
107662 2006-10-19  Bruno Haible  <bruno@clisp.org>
107664         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
107665         it.
107667 2006-10-19  Bruno Haible  <bruno@clisp.org>
107669         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
107670         invocation.
107672 2006-10-19  Bruno Haible  <bruno@clisp.org>
107674         * gnulib-tool (func_create_testdir): Don't include ftruncate and
107675         mountlist by default.
107677 2006-10-16  Bruno Haible  <bruno@clisp.org>
107679         * lib/c-strstr.c: Include c-strstr.h.
107681 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
107683         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
107684         in a slash.
107686 2006-10-18  Bruno Haible  <bruno@clisp.org>
107688         * lib/lock.h [C++]: Wrap definitions in extern "C".
107690 2006-10-18  Bruno Haible  <bruno@clisp.org>
107692         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
107693         gl_LIBOBJS list.
107695 2006-10-18  Bruno Haible  <bruno@clisp.org>
107697         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
107699 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
107701         * lib/xstrtol.h: Include gettext.h.
107702         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
107703         Problem reported by Eric Blake.
107704         * modules/xstrtol (Depends-on): Add gettext-h.
107706 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
107708         * lib/strftime.c (advance): New macro.
107709         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
107710         incomplete type, so you can't add 0 to it.  Problem and patch
107711         reported by Eelco Dolstra for dietlibc.
107713 2006-10-18  Jim Meyering  <jim@meyering.net>
107715         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
107716         type for a local, and rename it: s/up/user_proc/.
107718 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
107720         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
107721         READ_UTMP_USER_PROCESS.
107722         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
107724 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
107726         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
107727         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
107729 2006-10-17  Eric Blake  <ebb9@byu.net>
107731         * lib/sigprocmask.c (sigprocmask): Fix typo.
107733         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
107735         * modules/clean-temp (Makefile.am): Don't add to make output...
107736         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
107737         config.h.
107739 2006-10-17  Bruno Haible  <bruno@clisp.org>
107741         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
107742         differently if DEFAULT_TEXT_DOMAIN is set.
107744 2006-10-16  Bruno Haible  <bruno@clisp.org>
107746         * lib/clean-temp.c: Include fwriteerror.h.
107748 2006-10-16  Bruno Haible  <bruno@clisp.org>
107750         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
107752 2006-10-16  Bruno Haible  <bruno@clisp.org>
107754         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
107755         * lib/sigprocmask.h: Include <sys/types.h>.
107756         (sigset_t): Use the system's definition if present.
107758 2006-10-17  Eric Blake  <ebb9@byu.net>
107760         * lib/xvasprintf.c (includes): Assume config.h.
107761         * lib/xasprintf.c (includes): Likewise.
107763 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
107765         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
107766         at least as wide as intmax_t.
107768 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
107770         (Imported from Automake.)
107771         * build-aux/gnupload: Update to version 1.1 of directive file.
107773 2006-10-16  Eric Blake  <ebb9@byu.net>
107775         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
107776         match Automake 1.10a.
107778 2006-10-14  Bruno Haible  <bruno@clisp.org>
107780         * modules/sigprocmask: New file.
107781         * lib/sigprocmask.h: New file.
107782         * lib/sigprocmask.c: New file.
107783         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
107784         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
107785         request sigprocmask.o.
107786         (gl_PREREQ_SIGPROCMASK): New macro.
107787         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
107788         (Depends-on): Add sigprocmask.
107789         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
107790         gt_SIGNALBLOCKING. Test for 'raise' only once.
107791         * lib/fatal-signal.c: Include sigprocmask.h.
107792         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
107793         unblock_fatal_signals): Define always.
107794         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
107795         sigprocmask.
107797 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
107799         Sync from Automake.
107800         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
107801         which incorrectly sets the mode of an existing destination
107802         directory.  In some cases the unpatched install-sh could do the
107803         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
107804         system.  We hope this is rare in practice, but it's clearly worth
107805         fixing.  Problem reported by Alex Unleashed in
107806         <http://lists.gnu.org/r/bug-autoconf/2006-10/msg00012.html>.
107807         Also, don't bother to check for -m bugs unless we're using -m;
107808         suggested by Stepan Kasal.
107810 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
107812         Sync from Automake.
107813         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
107814         `-c' flag, so they appear at the same position as in %FASTDEP%
107815         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
107816         which ignores unknown options only after the first non-option.
107817         Bug report against M4 by Nelson H. F. Beebe.
107819 2006-10-13  Jim Meyering  <jim@meyering.net>
107821         Fix a bug in yesterday's change.
107822         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
107823         p->fts_statp->st_dev would be used uninitialized.
107824         Ensures that we always call fts_stat on the very first entry.
107825         Miklos Szeredi reported that find -xdev stopped working.
107827 2006-10-12  Bruno Haible  <bruno@clisp.org>
107829         * gnulib-tool (func_get_automake_snippet): Append an automatically
107830         computed EXTRA_DIST augmentation.
107831         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
107832         * modules/alloca-opt (Makefile.am): Likewise.
107833         * modules/allocsa (Makefile.am): Likewise.
107834         * modules/arcfour (Makefile.am): Likewise.
107835         * modules/arctwo (Makefile.am): Likewise.
107836         * modules/argmatch (Makefile.am): Likewise.
107837         * modules/argz (Makefile.am): Likewise.
107838         * modules/atexit (Makefile.am): Likewise.
107839         * modules/backupfile (Makefile.am): Likewise.
107840         * modules/byteswap (Makefile.am): Likewise.
107841         * modules/c-strtod (Makefile.am): Likewise.
107842         * modules/c-strtold (Makefile.am): Likewise.
107843         * modules/calloc (Makefile.am): Likewise.
107844         * modules/canon-host (Makefile.am): Likewise.
107845         * modules/canonicalize (Makefile.am): Likewise.
107846         * modules/chdir-long (Makefile.am): Likewise.
107847         * modules/chdir-safer (Makefile.am): Likewise.
107848         * modules/check-version (Makefile.am): Likewise.
107849         * modules/chown (Makefile.am): Likewise.
107850         * modules/cloexec (Makefile.am): Likewise.
107851         * modules/close-stream (Makefile.am): Likewise.
107852         * modules/closeout (Makefile.am): Likewise.
107853         * modules/crc (Makefile.am): Likewise.
107854         * modules/csharpexec (Makefile.am): Likewise.
107855         * modules/cycle-check (Makefile.am): Likewise.
107856         * modules/des (Makefile.am): Likewise.
107857         * modules/dev-ino (Makefile.am): Likewise.
107858         * modules/dirfd (Makefile.am): Likewise.
107859         * modules/dirname (Makefile.am): Likewise.
107860         * modules/dup2 (Makefile.am): Likewise.
107861         * modules/eealloc (Makefile.am): Likewise.
107862         * modules/error (Makefile.am): Likewise.
107863         * modules/euidaccess (Makefile.am): Likewise.
107864         * modules/exclude (Makefile.am): Likewise.
107865         * modules/exitfail (Makefile.am): Likewise.
107866         * modules/fcntl-safer (Makefile.am): Likewise.
107867         * modules/fcntl (Makefile.am): Likewise.
107868         * modules/file-type (Makefile.am): Likewise.
107869         * modules/fileblocks (Makefile.am): Likewise.
107870         * modules/filemode (Makefile.am): Likewise.
107871         * modules/filenamecat (Makefile.am): Likewise.
107872         * modules/fnmatch (Makefile.am): Likewise.
107873         * modules/fopen-safer (Makefile.am): Likewise.
107874         * modules/fpending (Makefile.am): Likewise.
107875         * modules/fprintftime (Makefile.am): Likewise.
107876         * modules/free (Makefile.am): Likewise.
107877         * modules/fsusage (Makefile.am): Likewise.
107878         * modules/ftruncate (Makefile.am): Likewise.
107879         * modules/fts (Makefile.am): Likewise.
107880         * modules/gc-arcfour (Makefile.am): Likewise.
107881         * modules/gc-des (Makefile.am): Likewise.
107882         * modules/gc-hmac-md5 (Makefile.am): Likewise.
107883         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
107884         * modules/gc-md4 (Makefile.am): Likewise.
107885         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
107886         * modules/gc-sha1 (Makefile.am): Likewise.
107887         * modules/gc (Makefile.am): Likewise.
107888         * modules/getaddrinfo (Makefile.am): Likewise.
107889         * modules/getcwd (Makefile.am): Likewise.
107890         * modules/getdelim (Makefile.am): Likewise.
107891         * modules/getdomainname (Makefile.am): Likewise.
107892         * modules/getgroups (Makefile.am): Likewise.
107893         * modules/gethostname (Makefile.am): Likewise.
107894         * modules/gethrxtime (Makefile.am): Likewise.
107895         * modules/getline (Makefile.am): Likewise.
107896         * modules/getloadavg (Makefile.am): Likewise.
107897         * modules/getlogin_r (Makefile.am): Likewise.
107898         * modules/getndelim2 (Makefile.am): Likewise.
107899         * modules/getopt (Makefile.am): Likewise.
107900         * modules/getpagesize (Makefile.am): Likewise.
107901         * modules/getpass-gnu (Makefile.am): Likewise.
107902         * modules/getpass (Makefile.am): Likewise.
107903         * modules/getsubopt (Makefile.am): Likewise.
107904         * modules/gettime (Makefile.am): Likewise.
107905         * modules/gettimeofday (Makefile.am): Likewise.
107906         * modules/getugroups (Makefile.am): Likewise.
107907         * modules/getusershell (Makefile.am): Likewise.
107908         * modules/glob (Makefile.am): Likewise.
107909         * modules/group-member (Makefile.am): Likewise.
107910         * modules/hard-locale (Makefile.am): Likewise.
107911         * modules/hash (Makefile.am): Likewise.
107912         * modules/hmac-md5 (Makefile.am): Likewise.
107913         * modules/hmac-sha1 (Makefile.am): Likewise.
107914         * modules/human (Makefile.am): Likewise.
107915         * modules/idcache (Makefile.am): Likewise.
107916         * modules/imaxabs (Makefile.am): Likewise.
107917         * modules/imaxdiv (Makefile.am): Likewise.
107918         * modules/inet_ntop (Makefile.am): Likewise.
107919         * modules/inet_pton (Makefile.am): Likewise.
107920         * modules/intprops (Makefile.am): Likewise.
107921         * modules/inttostr (Makefile.am): Likewise.
107922         * modules/inttypes (Makefile.am): Likewise.
107923         * modules/isapipe (Makefile.am): Likewise.
107924         * modules/javaversion (Makefile.am): Likewise.
107925         * modules/lchmod (Makefile.am): Likewise.
107926         * modules/lchown (Makefile.am): Likewise.
107927         * modules/localcharset (Makefile.am): Likewise.
107928         * modules/long-options (Makefile.am): Likewise.
107929         * modules/lstat (Makefile.am): Likewise.
107930         * modules/malloc (Makefile.am): Likewise.
107931         * modules/mathl (Makefile.am): Likewise.
107932         * modules/mbchar (Makefile.am): Likewise.
107933         * modules/md2 (Makefile.am): Likewise.
107934         * modules/md4 (Makefile.am): Likewise.
107935         * modules/md5 (Makefile.am): Likewise.
107936         * modules/memcasecmp (Makefile.am): Likewise.
107937         * modules/memchr (Makefile.am): Likewise.
107938         * modules/memcmp (Makefile.am): Likewise.
107939         * modules/memcoll (Makefile.am): Likewise.
107940         * modules/memcpy (Makefile.am): Likewise.
107941         * modules/memmem (Makefile.am): Likewise.
107942         * modules/memmove (Makefile.am): Likewise.
107943         * modules/mempcpy (Makefile.am): Likewise.
107944         * modules/memrchr (Makefile.am): Likewise.
107945         * modules/memset (Makefile.am): Likewise.
107946         * modules/memxor (Makefile.am): Likewise.
107947         * modules/mkancesdirs (Makefile.am): Likewise.
107948         * modules/mkdir-p (Makefile.am): Likewise.
107949         * modules/mkdir (Makefile.am): Likewise.
107950         * modules/mkdtemp (Makefile.am): Likewise.
107951         * modules/mkstemp (Makefile.am): Likewise.
107952         * modules/mktime (Makefile.am): Likewise.
107953         * modules/modechange (Makefile.am): Likewise.
107954         * modules/mountlist (Makefile.am): Likewise.
107955         * modules/nanosleep (Makefile.am): Likewise.
107956         * modules/obstack (Makefile.am): Likewise.
107957         * modules/openat (Makefile.am): Likewise.
107958         * modules/pagealign_alloc (Makefile.am): Likewise.
107959         * modules/pathmax (Makefile.am): Likewise.
107960         * modules/physmem (Makefile.am): Likewise.
107961         * modules/poll (Makefile.am): Likewise.
107962         * modules/posixtm (Makefile.am): Likewise.
107963         * modules/posixver (Makefile.am): Likewise.
107964         * modules/putenv (Makefile.am): Likewise.
107965         * modules/quote (Makefile.am): Likewise.
107966         * modules/quotearg (Makefile.am): Likewise.
107967         * modules/raise (Makefile.am): Likewise.
107968         * modules/read-file (Makefile.am): Likewise.
107969         * modules/readline (Makefile.am): Likewise.
107970         * modules/readlink (Makefile.am): Likewise.
107971         * modules/readtokens (Makefile.am): Likewise.
107972         * modules/readutmp (Makefile.am): Likewise.
107973         * modules/realloc (Makefile.am): Likewise.
107974         * modules/regex (Makefile.am): Likewise.
107975         * modules/rename-dest-slash (Makefile.am): Likewise.
107976         * modules/rename (Makefile.am): Likewise.
107977         * modules/rijndael (Makefile.am): Likewise.
107978         * modules/rmdir (Makefile.am): Likewise.
107979         * modules/rpmatch (Makefile.am): Likewise.
107980         * modules/safe-read (Makefile.am): Likewise.
107981         * modules/safe-write (Makefile.am): Likewise.
107982         * modules/same-inode (Makefile.am): Likewise.
107983         * modules/same (Makefile.am): Likewise.
107984         * modules/save-cwd (Makefile.am): Likewise.
107985         * modules/savedir (Makefile.am): Likewise.
107986         * modules/setenv (Makefile.am): Likewise.
107987         * modules/settime (Makefile.am): Likewise.
107988         * modules/sha1 (Makefile.am): Likewise.
107989         * modules/sig2str (Makefile.am): Likewise.
107990         * modules/snprintf (Makefile.am): Likewise.
107991         * modules/stat-macros (Makefile.am): Likewise.
107992         * modules/stat-time (Makefile.am): Likewise.
107993         * modules/stdbool (Makefile.am): Likewise.
107994         * modules/stdint (Makefile.am): Likewise.
107995         * modules/stdlib-safer (Makefile.am): Likewise.
107996         * modules/stpcpy (Makefile.am): Likewise.
107997         * modules/stpncpy (Makefile.am): Likewise.
107998         * modules/strcase (Makefile.am): Likewise.
107999         * modules/strcasestr (Makefile.am): Likewise.
108000         * modules/strchrnul (Makefile.am): Likewise.
108001         * modules/strcspn (Makefile.am): Likewise.
108002         * modules/strdup (Makefile.am): Likewise.
108003         * modules/strerror (Makefile.am): Likewise.
108004         * modules/strftime (Makefile.am): Likewise.
108005         * modules/strndup (Makefile.am): Likewise.
108006         * modules/strnlen (Makefile.am): Likewise.
108007         * modules/strpbrk (Makefile.am): Likewise.
108008         * modules/strsep (Makefile.am): Likewise.
108009         * modules/strstr (Makefile.am): Likewise.
108010         * modules/strtod (Makefile.am): Likewise.
108011         * modules/strtoimax (Makefile.am): Likewise.
108012         * modules/strtok_r (Makefile.am): Likewise.
108013         * modules/strtol (Makefile.am): Likewise.
108014         * modules/strtoll (Makefile.am): Likewise.
108015         * modules/strtoul (Makefile.am): Likewise.
108016         * modules/strtoull (Makefile.am): Likewise.
108017         * modules/strtoumax (Makefile.am): Likewise.
108018         * modules/strverscmp (Makefile.am): Likewise.
108019         * modules/sys_socket (Makefile.am): Likewise.
108020         * modules/sys_stat (Makefile.am): Likewise.
108021         * modules/sysexits (Makefile.am): Likewise.
108022         * modules/time_r (Makefile.am): Likewise.
108023         * modules/timegm (Makefile.am): Likewise.
108024         * modules/timespec (Makefile.am): Likewise.
108025         * modules/tmpfile-safer (Makefile.am): Likewise.
108026         * modules/trim (Makefile.am): Likewise.
108027         * modules/unistd-safer (Makefile.am): Likewise.
108028         * modules/unlinkdir (Makefile.am): Likewise.
108029         * modules/unlocked-io (Makefile.am): Likewise.
108030         * modules/userspec (Makefile.am): Likewise.
108031         * modules/utime (Makefile.am): Likewise.
108032         * modules/utimecmp (Makefile.am): Likewise.
108033         * modules/utimens (Makefile.am): Likewise.
108034         * modules/vasnprintf (Makefile.am): Likewise.
108035         * modules/vasprintf (Makefile.am): Likewise.
108036         * modules/vsnprintf (Makefile.am): Likewise.
108037         * modules/xalloc (Makefile.am): Likewise.
108038         * modules/xgetcwd (Makefile.am): Likewise.
108039         * modules/xnanosleep (Makefile.am): Likewise.
108040         * modules/xreadlink (Makefile.am): Likewise.
108041         * modules/xstrtod (Makefile.am): Likewise.
108042         * modules/xstrtol (Makefile.am): Likewise.
108043         * modules/xstrtold (Makefile.am): Likewise.
108044         * modules/yesno (Makefile.am): Likewise.
108045         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
108047 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
108049         * modules/error (Makefile.am): Distribute files through
108050         EXTRA_DIST, not lib_SOURCES.
108052 2006-10-12  Eric Blake  <ebb9@byu.net>
108054         * modules/error (Makefile.am): Distribute files in /lib.
108055         * modules/obstack (Makefile.am): Likewise.
108057 2006-10-12  Bruno Haible  <bruno@clisp.org>
108059         * modules/acl (Makefile.am): Distribute all files in lib/ through
108060         EXTRA_DIST.
108061         * modules/arcfour (Makefile.am): Likewise.
108062         * modules/arctwo (Makefile.am): Likewise.
108063         * modules/argmatch (Makefile.am): Likewise.
108064         * modules/argz (Makefile.am): Likewise.
108065         * modules/atexit (Makefile.am): Likewise.
108066         * modules/backupfile (Makefile.am): Likewise.
108067         * modules/c-strtod (Makefile.am): Likewise.
108068         * modules/c-strtold (Makefile.am): Likewise.
108069         * modules/calloc (Makefile.am): Likewise.
108070         * modules/canon-host (Makefile.am): Likewise.
108071         * modules/canonicalize (Makefile.am): Likewise.
108072         * modules/chdir-long (Makefile.am): Likewise.
108073         * modules/chdir-safer (Makefile.am): Likewise.
108074         * modules/check-version (Makefile.am): Likewise.
108075         * modules/chown (Makefile.am): Likewise.
108076         * modules/cloexec (Makefile.am): Likewise.
108077         * modules/close-stream (Makefile.am): Likewise.
108078         * modules/closeout (Makefile.am): Likewise.
108079         * modules/crc (Makefile.am): Likewise.
108080         * modules/cycle-check (Makefile.am): Likewise.
108081         * modules/des (Makefile.am): Likewise.
108082         * modules/dirfd (Makefile.am): Likewise.
108083         * modules/dirname (Makefile.am): Likewise.
108084         * modules/dup2 (Makefile.am): Likewise.
108085         * modules/euidaccess (Makefile.am): Likewise.
108086         * modules/exclude (Makefile.am): Likewise.
108087         * modules/exitfail (Makefile.am): Likewise.
108088         * modules/fcntl-safer (Makefile.am): Likewise.
108089         * modules/file-type (Makefile.am): Likewise.
108090         * modules/fileblocks (Makefile.am): Likewise.
108091         * modules/filemode (Makefile.am): Likewise.
108092         * modules/filenamecat (Makefile.am): Likewise.
108093         * modules/fnmatch (Makefile.am): Likewise.
108094         * modules/fopen-safer (Makefile.am): Likewise.
108095         * modules/fpending (Makefile.am): Likewise.
108096         * modules/fprintftime (Makefile.am): Likewise.
108097         * modules/free (Makefile.am): Likewise.
108098         * modules/fsusage (Makefile.am): Likewise.
108099         * modules/ftruncate (Makefile.am): Likewise.
108100         * modules/fts (Makefile.am): Likewise.
108101         * modules/gc (Makefile.am): Likewise.
108102         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
108103         * modules/getaddrinfo (Makefile.am): Likewise.
108104         * modules/getcwd (Makefile.am): Likewise.
108105         * modules/getdelim (Makefile.am): Likewise.
108106         * modules/getdomainname (Makefile.am): Likewise.
108107         * modules/getgroups (Makefile.am): Likewise.
108108         * modules/gethostname (Makefile.am): Likewise.
108109         * modules/gethrxtime (Makefile.am): Likewise.
108110         * modules/getline (Makefile.am): Likewise.
108111         * modules/getloadavg (Makefile.am): Likewise.
108112         * modules/getlogin_r (Makefile.am): Likewise.
108113         * modules/getopt (Makefile.am): Likewise.
108114         * modules/getpass (Makefile.am): Likewise.
108115         * modules/getpass-gnu (Makefile.am): Likewise.
108116         * modules/getsubopt (Makefile.am): Likewise.
108117         * modules/gettime (Makefile.am): Likewise.
108118         * modules/gettimeofday (Makefile.am): Likewise.
108119         * modules/getugroups (Makefile.am): Likewise.
108120         * modules/getusershell (Makefile.am): Likewise.
108121         * modules/glob (Makefile.am): Likewise.
108122         * modules/group-member (Makefile.am): Likewise.
108123         * modules/hard-locale (Makefile.am): Likewise.
108124         * modules/hash (Makefile.am): Likewise.
108125         * modules/hmac-md5 (Makefile.am): Likewise.
108126         * modules/hmac-sha1 (Makefile.am): Likewise.
108127         * modules/human (Makefile.am): Likewise.
108128         * modules/idcache (Makefile.am): Likewise.
108129         * modules/imaxabs (Makefile.am): Likewise.
108130         * modules/imaxdiv (Makefile.am): Likewise.
108131         * modules/inet_ntop (Makefile.am): Likewise.
108132         * modules/inet_pton (Makefile.am): Likewise.
108133         * modules/inttostr (Makefile.am): Likewise.
108134         * modules/isapipe (Makefile.am): Likewise.
108135         * modules/lchown (Makefile.am): Likewise.
108136         * modules/long-options (Makefile.am): Likewise.
108137         * modules/lstat (Makefile.am): Likewise.
108138         * modules/malloc (Makefile.am): Likewise.
108139         * modules/mathl (Makefile.am): Likewise.
108140         * modules/mbchar (Makefile.am): Likewise.
108141         * modules/md2 (Makefile.am): Likewise.
108142         * modules/md4 (Makefile.am): Likewise.
108143         * modules/md5 (Makefile.am): Likewise.
108144         * modules/memcasecmp (Makefile.am): Likewise.
108145         * modules/memchr (Makefile.am): Likewise.
108146         * modules/memcmp (Makefile.am): Likewise.
108147         * modules/memcoll (Makefile.am): Likewise.
108148         * modules/memcpy (Makefile.am): Likewise.
108149         * modules/memmem (Makefile.am): Likewise.
108150         * modules/memmove (Makefile.am): Likewise.
108151         * modules/mempcpy (Makefile.am): Likewise.
108152         * modules/memrchr (Makefile.am): Likewise.
108153         * modules/memset (Makefile.am): Likewise.
108154         * modules/memxor (Makefile.am): Likewise.
108155         * modules/mkancesdirs (Makefile.am): Likewise.
108156         * modules/mkdir (Makefile.am): Likewise.
108157         * modules/mkdir-p (Makefile.am): Likewise.
108158         * modules/mkdtemp (Makefile.am): Likewise.
108159         * modules/mkstemp (Makefile.am): Likewise.
108160         * modules/mktime (Makefile.am): Likewise.
108161         * modules/modechange (Makefile.am): Likewise.
108162         * modules/mountlist (Makefile.am): Likewise.
108163         * modules/nanosleep (Makefile.am): Likewise.
108164         * modules/openat (Makefile.am): Likewise.
108165         * modules/pagealign_alloc (Makefile.am): Likewise.
108166         * modules/physmem (Makefile.am): Likewise.
108167         * modules/poll (Makefile.am): Likewise.
108168         * modules/posixtm (Makefile.am): Likewise.
108169         * modules/posixver (Makefile.am): Likewise.
108170         * modules/putenv (Makefile.am): Likewise.
108171         * modules/quote (Makefile.am): Likewise.
108172         * modules/quotearg (Makefile.am): Likewise.
108173         * modules/raise (Makefile.am): Likewise.
108174         * modules/read-file (Makefile.am): Likewise.
108175         * modules/readline (Makefile.am): Likewise.
108176         * modules/readlink (Makefile.am): Likewise.
108177         * modules/readtokens (Makefile.am): Likewise.
108178         * modules/readutmp (Makefile.am): Likewise.
108179         * modules/realloc (Makefile.am): Likewise.
108180         * modules/regex (Makefile.am): Likewise.
108181         * modules/rename (Makefile.am): Likewise.
108182         * modules/rename-dest-slash (Makefile.am): Likewise.
108183         * modules/rijndael (Makefile.am): Likewise.
108184         * modules/rmdir (Makefile.am): Likewise.
108185         * modules/rpmatch (Makefile.am): Likewise.
108186         * modules/safe-read (Makefile.am): Likewise.
108187         * modules/safe-write (Makefile.am): Likewise.
108188         * modules/same (Makefile.am): Likewise.
108189         * modules/save-cwd (Makefile.am): Likewise.
108190         * modules/savedir (Makefile.am): Likewise.
108191         * modules/setenv (Makefile.am): Likewise.
108192         * modules/settime (Makefile.am): Likewise.
108193         * modules/sha1 (Makefile.am): Likewise.
108194         * modules/sig2str (Makefile.am): Likewise.
108195         * modules/snprintf (Makefile.am): Likewise.
108196         * modules/stdlib-safer (Makefile.am): Likewise.
108197         * modules/stpcpy (Makefile.am): Likewise.
108198         * modules/stpncpy (Makefile.am): Likewise.
108199         * modules/strcase (Makefile.am): Likewise.
108200         * modules/strcasestr (Makefile.am): Likewise.
108201         * modules/strchrnul (Makefile.am): Likewise.
108202         * modules/strcspn (Makefile.am): Likewise.
108203         * modules/strdup (Makefile.am): Likewise.
108204         * modules/strerror (Makefile.am): Likewise.
108205         * modules/strftime (Makefile.am): Likewise.
108206         * modules/strndup (Makefile.am): Likewise.
108207         * modules/strnlen (Makefile.am): Likewise.
108208         * modules/strpbrk (Makefile.am): Likewise.
108209         * modules/strsep (Makefile.am): Likewise.
108210         * modules/strstr (Makefile.am): Likewise.
108211         * modules/strtod (Makefile.am): Likewise.
108212         * modules/strtoimax (Makefile.am): Likewise.
108213         * modules/strtok_r (Makefile.am): Likewise.
108214         * modules/strtol (Makefile.am): Likewise.
108215         * modules/strtoll (Makefile.am): Likewise.
108216         * modules/strtoul (Makefile.am): Likewise.
108217         * modules/strtoull (Makefile.am): Likewise.
108218         * modules/strtoumax (Makefile.am): Likewise.
108219         * modules/strverscmp (Makefile.am): Likewise.
108220         * modules/time_r (Makefile.am): Likewise.
108221         * modules/timegm (Makefile.am): Likewise.
108222         * modules/tmpfile-safer (Makefile.am): Likewise.
108223         * modules/unistd-safer (Makefile.am): Likewise.
108224         * modules/unlinkdir (Makefile.am): Likewise.
108225         * modules/userspec (Makefile.am): Likewise.
108226         * modules/utime (Makefile.am): Likewise.
108227         * modules/utimecmp (Makefile.am): Likewise.
108228         * modules/utimens (Makefile.am): Likewise.
108229         * modules/vasnprintf (Makefile.am): Likewise.
108230         * modules/vasprintf (Makefile.am): Likewise.
108231         * modules/vsnprintf (Makefile.am): Likewise.
108232         * modules/xalloc (Makefile.am): Likewise.
108233         * modules/xgetcwd (Makefile.am): Likewise.
108234         * modules/xnanosleep (Makefile.am): Likewise.
108235         * modules/xreadlink (Makefile.am): Likewise.
108236         * modules/xstrtod (Makefile.am): Likewise.
108237         * modules/xstrtol (Makefile.am): Likewise.
108238         * modules/xstrtold (Makefile.am): Likewise.
108239         * modules/yesno (Makefile.am): Likewise.
108241 2006-10-12  Jim Meyering  <jim@meyering.net>
108243         * m4/getloadavg.m4: Revert the change below.
108245         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
108246         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
108247         fail with a symlink, which is what coreutils' ./bootstrap now
108248         creates by default.
108250 2006-10-12  Bruno Haible  <bruno@clisp.org>
108252         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
108253         mingw.
108254         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
108255         MSVC and mingw explicitly.
108257 2006-10-11  Simon Josefsson  <jas@extundo.com>
108258             Bruno Haible  <bruno@clisp.org>
108260         Add support for multiple gnulib-tool invocations in the scope of a
108261         single configure.ac file.
108262         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
108263         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
108264         with the same contents as the _LIBADD variable.
108265         (func_emit_initmacro_start, func_emit_initmacro_end,
108266         func_emit_initmacro_done): New functions.
108267         (func_import, func_create_testdir): Invoke them. Allow the identifiers
108268         gl_LIBOBJS and gl_LTLIBOBJS.
108270 2006-10-11  Bruno Haible  <bruno@clisp.org>
108272         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
108273         (func_create_testdir): Don't create po/Makefile.am, don't invoke
108274         autoreconf. Instead, invoke autopoint explicitly but move back the
108275         *.m4 files from gnulib.
108277 2006-10-11  Bruno Haible  <bruno@clisp.org>
108279         * gnulib-tool (func_usage): Make module names after --create-testdir
108280         optional.
108281         (func_create_testdir): If no module was specified, use nearly all
108282         modules.
108284 2006-10-12  Jim Meyering  <jim@meyering.net>
108286         Big performance improvement for fts-based tools that use FTS_NOSTAT.
108287         Avoid spurious inode-mismatch problems on non-POSIX file systems.
108288         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
108289         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
108290         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
108291         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
108292         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
108293         (fts_set_stat_required): New function.
108294         (fts_open): Defer the calls to fts_stat, if possible or requested.
108295         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
108296         into fts_stat itself.
108297         (fts_read): Perform any required (deferred) fts_stat call.
108298         (fts_build): Likewise, for the directory we're about to open and read.
108299         In the readdir loop, carefully decide whether each entry will require
108300         an eventual call to fts_stat, using dirent.d_type info if available.
108301         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
108302         a command line argument into this function.  Update all callers.
108303         Map a return value of FTS_DOT to FTS_D for a command line argument.
108304         * modules/fts (Depends-on): Add d-type.  Alphabetize.
108305         Thanks to Miklos Szeredi for his tenacity and for the initial
108306         bug report about "find" failing on a FUSE-based file system.
108308         * lib/fts.c (fts_open): Use consistent indentation.
108310 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
108312         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
108313         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
108314         reported by Jim Meyering.  All uses of cache variables renamed
108315         to match Autoconf's.
108316         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
108317         the other one.
108319         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
108320         Fix misspelling in diagnostic.
108322 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
108324         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
108325         defined.  Problem reported by Matthew Woehlke.
108327         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
108328         Add support for Tandem NonStop R series.
108329         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
108330         Use new macro.
108332         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
108333         (has_trailing_slash): Omit size arg; all callers changed.
108334         Omit 'inline', since it doesn't help performance and we'd
108335         need to configure it.
108336         Don't count //, ///, etc. as having a trailing slash.
108337         As a side effect, this removes a C99ism reported by Matthew Woehlke.
108338         (rpl_rename_dest_slash): On failure, use rename's errno rather
108339         than (in some cases) an incorrect or junk errno.
108340         Simplify code by removing need to compute length; this does
108341         cause it to make two passes instead of one over the file name,
108342         but it's worth it.
108344         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
108345         change, since Autoconf's version may no longer be appropriate now
108346         that we are using CVS Autoconf's version.  Add support for Tandem.
108348 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
108349             Bruno Haible  <bruno@clisp.org>
108351         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
108352         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
108353         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
108354         gl_AC_TYPE_LONG_LONG.
108356         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
108357         instead of HAVE_LONG_LONG.
108358         * lib/printf-args.c (printf_fetchargs): Likewise.
108359         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
108360         * lib/vasnprintf.c (VASNPRINTF): Likewise.
108361         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
108362         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
108363         gl_AC_TYPE_LONG_LONG.
108365 2006-10-11  Bruno Haible  <bruno@clisp.org>
108367         * m4/longlong.m4: Add comments.
108368         * m4/ulonglong.m4: Likewise.
108370 2006-10-10  Bruno Haible  <bruno@clisp.org>
108372         Make it possible to #define stpcpy, strdup to aliases.
108373         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
108374         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
108376 2006-10-10  Bruno Haible  <bruno@clisp.org>
108378         Make it possible to #define gcd to an alias.
108379         * lib/gcd.c: Include config.h.
108381 2006-10-10  Bruno Haible  <bruno@clisp.org>
108383         Make it possible to #define c_isascii to an alias.
108384         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
108385         defined. Undefine the macros before defining them, to avoid gcc
108386         warnings.
108387         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
108388         define NO_C_CTYPE_MACROS early.
108390 2006-10-10  Bruno Haible  <bruno@clisp.org>
108392         Make it possible to #define set_program_name to an alias.
108393         * lib/progname.c: Don't undefine set_program_name; instead, undefine
108394         ENABLE_RELOCATABLE early.
108396 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
108398         Port to Tandem NSK OSS, which has 64-bit signed int but at most
108399         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
108400         http://lists.gnu.org/r/bug-coreutils/2006-10/msg00062.html
108401         More generally, don't assume that 64-bit signed int is available
108402         if unsigned int is, and vice versa.
108403         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
108404         unsigned symbols, not on their signed counterparts.
108405         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
108406         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
108407         (UINT64_C, UINTMAX_C):
108408         Likewise.
108409         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
108410         unsigned counterparts.
108411         (Have_long_long, Unsigned): New macros.
108412         (Int): Renamed from INT.
108413         (strtoimax): Use the new macros.
108414         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
108415         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
108416         * modules/inttypes (inttypes.h): Substitute
108417         HAVE_UNSIGNED_LONG_LONG_INT.
108418         * modules/stdint (stdint.h): Likewise.
108419         (Files): Add m4/ulonglong.m4.
108421 2006-10-10  Bruno Haible  <bruno@clisp.org>
108423         Fix a gcc -Wshadow warning.
108424         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
108425         to 'bucket'.
108426         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
108427         gl_linked_indexof_from_to): Likewise.
108428         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
108429         Likewise.
108430         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
108431         Likewise.
108432         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
108433         Reported by Eric Blake.
108435 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
108437         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
108438         for NetBSD.  Problem reported by Bruno Haible.
108440 2006-10-09  Jim Meyering  <jim@meyering.net>
108442         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
108443         Patch from Bruno Haible.
108445 2006-10-09  Jim Meyering  <jim@meyering.net>
108447         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
108448         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
108449         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
108451 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
108453         Don't include <config.h> twice; this doesn't work in some cases,
108454         e.g., when config.h has "#define intmax_t long long int" and
108455         we include <config.h>, <inttypes.h>, <config.h> in that order.
108456         Problem reported by Matthew Woehlke in:
108457         http://lists.gnu.org/r/bug-coreutils/2006-10/msg00073.html
108458         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
108459         * lib/fts-cycle.c: Don't include config.h.
108460         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
108461         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
108462         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
108463         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
108464         inttypes.h.
108465         * lib/xstrtoumax.c: Likewise.
108466         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
108467         __strtol and the like, so that this module is more like its siblings.
108468         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
108469         Remove; no longer needed now that we assume gnulib inttypes.h.
108471 2006-10-08  Bruno Haible  <bruno@clisp.org>
108473         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
108474         option.
108476 2006-10-07  Jim Meyering  <jim@meyering.net>
108478         * modules/inttypes (inttypes.h): Revert what seems to have been
108479         an inadvertent part of today's change: use "|", not "/" in the
108480         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
108482 2006-10-07  Bruno Haible  <bruno@clisp.org>
108484         * modules/sublist: New file.
108486 2006-10-07  Bruno Haible  <bruno@clisp.org>
108488         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
108489         * modules/argz (argz.h): Likewise.
108490         * modules/arpa_inet (arpa/inet.h): Likewise.
108491         * modules/byteswap (byteswap.h): Likewise.
108492         * modules/configmake (configmake.h): Likewise.
108493         * modules/fcntl (fcntl.h): Likewise.
108494         * modules/fnmatch (fnmatch.h): Likewise.
108495         * modules/getopt (getopt.h): Likewise.
108496         * modules/glob (glob.h): Likewise.
108497         * modules/inttypes (inttypes.h): Likewise.
108498         * modules/netinet_in (netinet/in.h): Likewise.
108499         * modules/poll (poll.h): Likewise.
108500         * modules/stdbool (stdbool.h): Likewise.
108501         * modules/stdint (stdint.h): Likewise.
108502         * modules/sys_select (sys/select.h): Likewise.
108503         * modules/sys_socket (sys/socket.h): Likewise.
108504         * modules/sys_stat (sys/stat.h): Likewise.
108505         * modules/sysexits (sysexits.h): Likewise.
108506         * modules/unistd (unistd.h): Likewise.
108507         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
108508         Add a "DO NOT EDIT" comment to the generated file.
108509         (func_import): Likewise for gnulib-comp.m4.
108511 2006-10-07  Bruno Haible  <bruno@clisp.org>
108513         * lib/gl_sublist.h: New file.
108514         * lib/gl_sublist.c: New file.
108516 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
108518         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
108519         name (relative to the original working directory) and the file
108520         name component (relative to the temporary working directory).  All
108521         callers changed.
108522         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
108523         * lib/mkdir-p.c (make_dir_parents): Likewise.
108524         * lib/mkdir-p.h (make_dir_parents): Likewise.
108526 2006-10-06  Eric Blake  <ebb9@byu.net>
108528         Define several macros for use by the clean-temp module.
108529         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
108530         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
108531         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
108533         * lib/clean-temp.h (close_stream_temp): New declaration.
108534         * lib/clean-temp.c (includes): Pull in headers according to what
108535         other modules are in use.
108536         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
108538 2006-10-06  Bruno Haible  <bruno@clisp.org>
108540         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
108541         instead of fopen, fwriteerror.
108543 2006-10-06  Bruno Haible  <bruno@clisp.org>
108545         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
108546         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
108547         int.
108548         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
108549         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
108550         Return an error indicator.
108551         Suggested by Eric Blake.
108553 2006-10-06  Bruno Haible  <bruno@clisp.org>
108555         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
108556         Reported by Eric Blake.
108558 2006-10-06  Bruno Haible  <bruno@clisp.org>
108560         * modules/closeout (Description): Mention stderr too.
108562 2006-10-06  Bruno Haible  <bruno@clisp.org>
108563         and Paul Eggert  <eggert@cs.ucla.edu>
108565         * lib/closeout.c (close_stdout): Also close stderr.
108566         * lib/closeout.h: Update comment.
108568 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
108570         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
108571         <http://lists.gnu.org/r/bug-coreutils/2006-10/msg00063.html>.
108572         * lib/dirchownmod.c: Include lchown.h.
108573         * lib/lchown.c: Don't include files that lchown.h now includes.
108574         Don't declare chown, since lchown.h now does that.
108575         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
108576         (lchown): Define to rpl_chown if lchown is declared but
108577         does not exist.  Declare using a prototype if lchown is not
108578         declared.  Add a copyright notice.
108579         * lib/mkstemp.h: Include <unistd.h>.
108580         * lib/openat.c: Include lchown.h.
108582         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
108583         we now test for that separately.
108584         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
108585         rather than O_NOFOLLOW, when testing whether it's possible to
108586         avoid a race condition reliably.
108587         * lib/savewd.c (savewd_chdir): Likewise.
108589         Remove macros that are no longer needed now that stdint.h is
108590         reliable.
108591         * lib/fsusage.c (UINTMAX_MAX): Remove.
108592         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
108593         * lib/utimecmp.c (SIZE_MAX): Remove.
108595         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
108597         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
108598         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
108599         O_NOATIME works.
108601 2006-10-05  Bruno Haible  <bruno@clisp.org>
108603         * lib/gl_list.h (gl_sortedlist_search_from_to,
108604         gl_sortedlist_indexof_from_to): New declarations.
108605         (gl_list_implementation): New fields sortedlist_search_from_to,
108606         sortedlist_indexof_from_to.
108607         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
108608         inline functions.
108609         * lib/gl_list.c (gl_sortedlist_search_from_to,
108610         gl_sortedlist_indexof_from_to): New functions.
108611         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
108612         function.
108613         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
108614         (gl_array_sortedlist_search_from_to): New function.
108615         (gl_array_list_implementation): Update.
108616         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
108617         function.
108618         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
108619         (gl_carray_sortedlist_search_from_to): New function.
108620         (gl_carray_list_implementation): Update.
108621         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
108622         gl_linked_sortedlist_indexof_from_to): New functions.
108623         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
108624         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
108625         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
108626         gl_tree_sortedlist_indexof_from_to): New functions.
108627         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
108628         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
108629         Update.
108630         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
108631         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
108632         Update.
108634 2006-10-05  Bruno Haible  <bruno@clisp.org>
108636         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
108637         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
108638         (struct gl_list_implementation): Add fields search_from_to,
108639         indexof_from_to. Remove fields search, indexof.
108640         (gl_list_search): Use the search_from_to method.
108641         (gl_list_search_from, gl_list_search_from_to): New functions.
108642         (gl_list_indexof): Use the indexof_from_to method.
108643         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
108644         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
108645         (gl_list_search_from, gl_list_search_from_to): New functions.
108646         (gl_list_indexof): Use the indexof_from_to method.
108647         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
108648         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
108649         gl_array_indexof. Add start_index, end_index arguments.
108650         (gl_array_search_from_to): Renamed from gl_array_search. Add
108651         start_index, end_index arguments.
108652         (gl_array_remove, gl_array_list_implementation): Update.
108653         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
108654         gl_carray_indexof. Add start_index, end_index arguments.
108655         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
108656         start_index, end_index arguments.
108657         (gl_carray_remove, gl_carray_list_implementation): Update.
108658         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
108659         gl_linked_search. Add start_index, end_index arguments.
108660         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
108661         start_index, end_index arguments.
108662         (gl_linked_remove): Update.
108663         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
108664         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
108665         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
108666         field to 'size_t'.
108667         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
108668         gl_tree_search. Add start_index, end_index arguments.
108669         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
108670         start_index, end_index arguments.
108671         (gl_tree_remove): Update.
108672         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
108673         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
108674         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
108675         function.
108676         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
108677         gl_tree_search. Add start_index, end_index arguments.
108678         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
108679         start_index, end_index arguments.
108680         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
108681         Update.
108682         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
108684 2006-10-05  Bruno Haible  <bruno@clisp.org>
108686         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
108688         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
108689         fwriteerror_temp): New declarations.
108690         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
108691         (descriptors): New variable.
108692         (cleanup): First, close the descriptors.
108693         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
108694         fclose_temp, fwriteerror_temp): New functions.
108696 2006-10-04  Jim Meyering  <jim@meyering.net>
108698         * lib/fts.c (fts_open): Tiny comment change.
108700 2006-10-04  Bruno Haible  <bruno@clisp.org>
108702         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
108703         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
108704         gl_LOCK_BODY.
108705         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
108706         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
108707         gl_LOCK_EARLY_BODY.
108708         (gl_LOCK): Require gl_LOCK_BODY.
108710 2006-10-04  Bruno Haible  <bruno@clisp.org>
108712         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
108713         (gl_oset_search_atleast): New declaration.
108714         (struct gl_oset_implementation): Add field 'search_atleast'.
108715         (gl_oset_search_atleast): New inline function.
108716         * lib/gl_oset.c (gl_oset_search_atleast): New function.
108717         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
108718         (gl_array_oset_implementation): Update.
108719         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
108720         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
108721         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
108723 2006-10-04  Bruno Haible  <bruno@clisp.org>
108725         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
108727 2006-10-03  Bruno Haible  <bruno@clisp.org>
108729         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
108730         from gl_avltreehash_list_implementation.
108732 2006-10-03  Bruno Haible  <bruno@clisp.org>
108734         * lib/gl_oset.c (gl_oset_add): Fix return type.
108736 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
108738         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
108740 2006-10-02  Eric Blake  <ebb9@byu.net>
108742         * modules/strnlen (Depends-on): Add extensions.
108744 2006-10-02  Eric Blake  <ebb9@byu.net>
108746         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
108747         definition in 2.60+.
108749 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
108751         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
108752         checks.
108754 2006-10-02  Bruno Haible  <bruno@clisp.org>
108756         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
108757         to the AUTOMAKE_OPTIONS.
108758         Reported by Jim Meyering.
108760 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
108762         Work around bug in Solaris 10 /proc file system:
108763         /proc/self/fd/NNN/.. isn't the parent directory of
108764         the directory whose file descriptor is NNN.  This needs to
108765         be worked around at run time, not compile time, since a
108766         program might be built on Solaris 8, where things work, and
108767         run on Solaris 10.
108768         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
108769         to use the following interface instead:
108770         (OPENAT_BUFFER_SIZE): New macro.
108771         (openat_proc_name): New function.
108772         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
108773         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
108774         Likewise.
108775         * lib/openat-proc.c: New file.
108776         * modules/openat (Files): Add lib/openat-proc.c.
108777         (Depends-on): Add same-inode, stdbool.
108778         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
108780 2006-09-29  Bruno Haible  <bruno@clisp.org>
108782         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
108783         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
108784         argument. Set stdout_closed before testing for ferror, not after.
108785         (fwriteerror, fwriteerror_no_ebadf): New functions.
108787 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
108789         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
108791 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
108793         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
108794         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
108796 2006-09-28  Jim Meyering  <jim@meyering.net>
108798         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
108799         Include <unistd.h>.
108801 2006-09-28  Bruno Haible  <bruno@clisp.org>
108803         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
108804         * modules/linkedhash-list (Depends-on): Likewise.
108805         * modules/rbtreehash-list (Depends-on): Likewise.
108807 2006-09-28  Bruno Haible  <bruno@clisp.org>
108809         * lib/strndup.h: Simplify the redefinition of strndup.
108810         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
108811         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
108813 2006-09-28  Bruno Haible  <bruno@clisp.org>
108815         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
108816         * lib/gl_linkedhash_list.c: Likewise.
108817         * lib/gl_rbtreehash_list.c: Likewise.
108819 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
108821         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
108822         getaddrinfo.
108824         * lib/__fpending.h: Don't include <stdio_ext.h> unless
108825         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
108826         it causes <stdio_ext.h> to cause a compile-time error.
108827         Problem reported by Nelson H. F. Beebe.
108828         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
108829         of HAVE_DECL___PENDING.
108831         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
108832         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
108833         declaration.
108835 2006-09-27  Jim Meyering  <jim@meyering.net>
108837         This file could end up with a definition for a function
108838         named __strndup, rather than rpl_strndup on a system with
108839         incomplete weak_alias support.
108840         * lib/strndup.c (strndup): Rename from __strndup.
108841         Remove #defines that used to map __strndup to strndup.
108842         Don't use K&R prototypes.
108843         Remove LIBC-related code, since this file is not sync'd with glibc.
108844         * lib/strndup.h: Revamp, accordingly.
108845         * m4/strndup.m4: Modernize.
108847 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
108849         * modules/savewd (Depends-on): Add 'raise'.
108850         * lib/savewd.c: Include <signal.h>, for 'raise'.
108852 2006-09-26  Jim Meyering  <jim@meyering.net>
108854         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
108855         when we detect Darwin 8.7.0's acl_get_file bug.
108856         Rearrange to perform the new (below) run-test while $LIBS
108857         contains any acl-related library.  Set USE_ACL at the end.
108858         (gl_ACL_GET_FILE): New function.
108860 2006-09-26  Eric Blake  <ebb9@byu.net>
108862         * lib/verror.c: Include <config.h> unconditionally.
108864 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
108866         * modules/clock-time (Maintainer): Add self.
108867         * modules/getlogin_r (Depends-on): Add extensions.
108869 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
108871         * modules/clock-time: New module.
108872         * modules/nanosleep (Depends-on): Add clock-time.
108873         * modules/gethrxtime (Depends-on): Likewise.
108874         * modules/gettime (Depends-on): Likewise.
108875         * modules/settime (Depends-on): Likewise.
108877         * modules/fts-lgpl: Depend on openat.
108878         * modules/mkancesdirs: Depend on savewd.
108879         * modules/mkdir-p: Likewise.
108881 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
108883         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
108885         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
108886         `gl_have_arbitrary_file_name_length_limit' to
108887         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
108888         actually works between configure runs.
108890 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
108891             Bruno Haible  <bruno@clisp.org>
108893         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
108895 2006-09-25  Jim Meyering  <jim@meyering.net>
108897         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
108898         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
108900 2006-09-25  Eric Blake  <ebb9@byu.net>
108902         * gnulib-tool (func_import, func_create_testdir): Fix typos in
108903         exec's in 2006-09-18 patch when shuffling fds.
108905 2006-09-25  Bruno Haible  <bruno@clisp.org>
108907         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
108908         Reported by Jim Meyering.
108910 2006-09-24  Jim Meyering  <jim@meyering.net>
108912         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
108913         compare a pointer against a literal "0".  That caused failures with
108914         at least HP-UX's hpcc.
108916 2006-09-22  Simon Josefsson  <jas@extundo.com>
108918         * modules/gc-sha1:
108919         * modules/gc-md4:
108920         * modules/gc-hmac-sha1:
108921         * modules/gc-hmac-md5:
108922         * modules/gc-des:
108923         * modules/gc-arcfour: Distribute more files.
108925 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
108927         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
108928         (gl_linked_iterator_from_to): Initialize struct completely.
108929         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
108930         (gl_tree_iterator_from_to): Likewise
108931         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
108932         * lib/gl_array_list.c [lint] (gl_array_iterator)
108933         (gl_array_iterator_from_to): Likewise.
108934         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
108935         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
108936         (gl_carray_iterator_from_to): Likewise.
108938         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
108939         * lib/md4.c (md4_process_block): Remove unused variable.
108940         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
108941         parentheses for clarity.
108943 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
108945         * modules/bison-i18n (Depends-on): Add gettext.
108947 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
108949         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
108950         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
108951         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
108952         also add missing comma that caused broken test.
108953         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
108954         stdlib.h, for `abort'.
108955         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
108956         variables.
108957         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
108958         include unistd.h if present, for `rmdir'.
108959         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
108960         variables.
108961         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
108962         in the process include standard headers for prototypes.
108963         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
108964         gets declared on GNU/Linux.
108965         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
108966         unistd.h, for `rmdir'.
108967         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
108969         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
108970         always true.
108971         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
108973         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
108975 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
108977         * gnulib-tool (func_version): Create output all at once.  This
108978         may help avoid triggering unnecessary SIGPIPEs, and at any
108979         rate it doesn't hurt.
108981 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
108982             Bruno Haible  <bruno@clisp.org>
108984         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
108985         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
108986         * m4/signed.m4 (bh_C_SIGNED): Likewise.
108988         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
108989         (gl_FUNC_VASPRINTF): Invoke it.
108991 2006-09-22  Bruno Haible  <bruno@clisp.org>
108993         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
108994         getloadavg.c as first argument.
108996 2006-09-22  Bruno Haible  <bruno@clisp.org>
108998         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
108999         at the beginning of the gl_INIT macro.
109000         * modules/getloadavg (configure.ac): Pass $gl_source_base to
109001         gl_GETLOADAVG.
109003 2006-09-22  Bruno Haible  <bruno@clisp.org>
109005         * gnulib-tool (func_create_megatestdir): Don't include the config-h
109006         module.
109007         Suggested by Ralf Wildenhues.
109009 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
109011         Import this patch from libc:
109013         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
109015         * lib/regex_internal.c (re_string_reconstruct): Handle
109016         offset < pstr->valid_raw_len && pstr->offsets_needed case.
109017         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
109018         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
109019         re_string_context_at.
109021         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
109022         now requires it.
109023         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
109024         gl_REGEX now does it for us.
109025         (gl_REGEX): Add test taken from
109026         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
109028         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
109029         Check that large offsets work.  Modernize Autoconf usages.
109030         Prefer "yes" to mean a good thing rather than a bad.
109031         Don't put "#define mkstemp" in config.h, as this might interfere
109032         with standard system headers that "#define mkstemp mkstemp64".
109034         * modules/mkstemp (Depends-on): Add extensions, so that
109035         mkstemp is visible on some platforms.
109036         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
109037         (Include): Change to "mkstemp.h" from <stdlib.h>.
109038         (Files): Add mkstemp.h.
109040         * lib/mkstemp.h: New file, since some standard headers
109041         #define mkstemp.
109042         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
109043         Include "mkstemp.h".
109044         Make the _LIBC code resemble glibc original more,
109045         e.g., use K&R style.
109046         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
109047         (mkstemp): Remove, since mkstemp.h does this for us.
109048         * lib/stdlib--.h: Include mkstemp.h.
109050         Import this patch from libc:
109052         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
109054         * lib/tempname.c (__gen_tempname): Change attempts_min
109055         into a macro.  Use preprocessor to decide how to initialize
109056         attempts [Coverity CID 67].
109058 2006-09-20  Bruno Haible  <bruno@clisp.org>
109060         * lib/mkdtemp.c: Import from libc.
109061         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
109062                 * sysdeps/posix/tempname.c (__gen_tempname): Change
109063                 attempts_min into a macro.  Use preprocessor to decide how to
109064                 initialize attempts [Coverity CID 67].
109065         2001-11-27  Paul Eggert  <eggert@twinsun.com>
109066                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
109067                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
109069 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109071         * gnulib-tool (func_exit): New function, to allow to pass the
109072         exit status portably through the trap.  Use everywhere.
109073         (--help, --version): Signal a write error.
109074         (trap): catch SIGPIPE, for write errors.
109075         Exit at the end of the trap, with the correct exit status.
109077 2006-09-19  Karl Berry  <karl@gnu.org>
109079         * doc/gnulib.texi: note about the license texinfo files.
109081 2006-09-19  Eric Blake  <ebb9@byu.net>
109083         * gnulib-tool: Avoid space-tab.
109085 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
109087         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
109088         that prevented coreutils 6.1 from building.  Problem reported
109089         by Petter Reinholdtsen.
109091 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
109093         * gnulib-tool (avoidlist): Fix typo that broke options like
109094         --avoid=lock that are used by coreutils bootstrap.
109096 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
109098         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
109099         more systematically.
109101 2006-09-18  Jim Meyering  <jim@meyering.net>
109103         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
109105 2006-09-18  Bruno Haible  <bruno@clisp.org>
109107         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
109109 2006-09-18  Bruno Haible  <bruno@clisp.org>
109111         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
109112         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
109113         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
109114         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
109115         * m4/gettext.m4: Require autoconf >= 2.52.
109116         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
109117         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
109118         of gl_cv_header_inttypes_h.
109120 2006-09-18  Bruno Haible  <bruno@clisp.org>
109122         * lib/javaversion.c: Include configmake.h.
109124 2006-09-18  Bruno Haible  <bruno@clisp.org>
109126         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
109127         avoid that the while loops be executed in a subshell.
109129 2006-09-18  Bruno Haible  <bruno@clisp.org>
109131         * MODULES.html.sh (func_module): Break long lines.
109132         Suggested by Bruce Korb <bkorb@gnu.org>.
109134 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109136         Speed up by a factor of 1.12.
109137         * gnulib-tool (nl): New variable.
109138         (func_import): Rewrite include directive extraction to only read each
109139         directive once.
109141 2006-09-17  Bruno Haible  <bruno@clisp.org>
109143         * modules/javaversion (Makefile.am): Remove DEFS setting.
109144         (Depends-on): Add configmake, for PKGDATADIR definition.
109146 2006-09-17  Bruno Haible  <bruno@clisp.org>
109148         * gnulib-tool (func_create_testdir): Rewrite all files at once.
109150 2006-09-17  Bruno Haible  <bruno@clisp.org>
109152         * gnulib-tool (func_append): New function, stolen from libtool.m4.
109153         (func_modules_transitive_closure, func_modules_add_dummy,
109154         func_modules_to_filelist, func_import, func_create_testdir,
109155         func_create_megatestdir, ...): Use it wherever possible.
109156         Suggested by Ralf Wildenhues.
109158 2006-09-16  Karl Berry  <karl@gnu.org>
109160         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
109161         to avoid sectioning errors.
109162         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
109163         [ifinfo]: blank line after @center-ed titles.
109164         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
109165         Spell FSF address consistently with others.
109166         (These changes approved by rms.)
109168 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109170         Speed up by a factor of 1.61.
109171         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
109172         already checked module names again.
109174 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109176         Speed up by a factor of 1.13.
109177         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
109178         for new_files, and the input to func_add_or_update.
109180 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109182         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
109183         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
109185 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
109187         * modules/mkancesdirs (Depends-on): Add fcntl.
109188         * modules/savewd: New file.
109189         * MODULES.html.sh (File system functions): Add savewd.
109191         * modules/configmake (Makefile.am): Add support for the
109192         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
109194 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
109196         * m4/savewd.m4: New file.
109198 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
109200         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
109201         (dirchownmod): New arg FD.  All callers changed.
109202         Use FD rather than opening the directory ourself, as opening is
109203         now the caller's responsibility.
109204         * lib/dirchownmod.h: Likewise.
109205         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
109206         hosts that require <sys/types.h> before <sys/stat.h>.  Include
109207         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
109208         (test_dir): Remove.
109209         (mkancesdirs): Return length of prefix of FILE that has already
109210         been made, or -2 if there is a child doing the work.  Redo
109211         algorithm so that it is O(N) rather than O(N**2).  Optimize away
109212         ".", and treat ".." specially since it might stray back into
109213         already-created areas.  Use a subprocess if necessary.  New arg
109214         WD; all users changed.  MAKE_DIR function should now return 1
109215         if it creates a directory that is not readable.  Return -2 if
109216         a child process is spun off.
109217         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
109218         Adjust signature to match code.
109219         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
109220         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
109221         all users changed.
109222         * lib/savewd.c, lib/savewd.h: New files.
109224 2006-09-15  Jim Meyering  <jim@meyering.net>
109226         * modules/rename-dest-slash: New module.
109227         * MODULES.html.sh (posix_compat): Add it here.
109229         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
109231 2006-09-15  Jim Meyering  <jim@meyering.net>
109233         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
109234         file.
109236         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
109238 2006-09-15  Jim Meyering  <jim@meyering.net>
109240         * lib/rename-dest-slash.c (has_trailing_slash): Use
109241         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
109242         (rpl_rename_dest_slash): Perform the cheaper trailing slash
109243         test before testing whether SRC is a directory.
109244         Suggestions from Bruno Haible.
109246         Avoid a warning about an unused variable.
109247         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
109248         into the #ifdef block where it's used.
109250         * lib/rename-dest-slash.c: New file.
109252 2006-09-14  Bruno Haible  <bruno@clisp.org>
109254         * lib/allocsa.c: Include <config.h> unconditionally.
109255         * lib/asnprintf.c: Likewise.
109256         * lib/asprintf.c: Likewise.
109257         * lib/c-strcasecmp.c: Likewise.
109258         * lib/c-strcasestr.c: Likewise.
109259         * lib/c-strncasecmp.c: Likewise.
109260         * lib/c-strstr.c: Likewise.
109261         * lib/classpath.c: Likewise.
109262         * lib/clean-temp.c: Likewise.
109263         * lib/concatpath.c: Likewise.
109264         * lib/copy-file.c: Likewise.
109265         * lib/csharpcomp.c: Likewise.
109266         * lib/csharpexec.c: Likewise.
109267         * lib/execute.c: Likewise.
109268         * lib/fatal-signal.c: Likewise.
109269         * lib/findprog.c: Likewise.
109270         * lib/fwriteerror.c: Likewise.
109271         * lib/gl_array_list.c: Likewise.
109272         * lib/gl_array_oset.c: Likewise.
109273         * lib/gl_avltree_list.c: Likewise.
109274         * lib/gl_avltree_oset.c: Likewise.
109275         * lib/gl_avltreehash_list.c: Likewise.
109276         * lib/gl_carray_list.c: Likewise.
109277         * lib/gl_linked_list.c: Likewise.
109278         * lib/gl_linkedhash_list.c: Likewise.
109279         * lib/gl_list.c: Likewise.
109280         * lib/gl_oset.c: Likewise.
109281         * lib/gl_rbtree_list.c: Likewise.
109282         * lib/gl_rbtree_oset.c: Likewise.
109283         * lib/gl_rbtreehash_list.c: Likewise.
109284         * lib/imaxabs.c: Likewise.
109285         * lib/imaxdiv.c: Likewise.
109286         * lib/javacomp.c: Likewise.
109287         * lib/javaexec.c: Likewise.
109288         * lib/javaversion.c: Likewise.
109289         * lib/linebreak.c: Likewise.
109290         * lib/localcharset.c: Likewise.
109291         * lib/lock.c: Likewise.
109292         * lib/mbchar.c: Likewise.
109293         * lib/mbswidth.c: Likewise.
109294         * lib/mkdtemp.c: Likewise.
109295         * lib/pipe.c: Likewise.
109296         * lib/printf-args.c: Likewise.
109297         * lib/printf-parse.c: Likewise.
109298         * lib/progname.c: Likewise.
109299         * lib/progreloc.c: Likewise.
109300         * lib/readlink.c: Likewise.
109301         * lib/sh-quote.c: Likewise.
109302         * lib/stpcpy.c: Likewise.
109303         * lib/stpncpy.c: Likewise.
109304         * lib/strcasecmp.c: Likewise.
109305         * lib/strcasestr.c: Likewise.
109306         * lib/strcspn.c: Likewise.
109307         * lib/striconv.c: Likewise.
109308         * lib/strncasecmp.c: Likewise.
109309         * lib/strnlen1.c: Likewise.
109310         * lib/strstr.c: Likewise.
109311         * lib/strtok_r.c: Likewise.
109312         * lib/tls.c: Likewise.
109313         * lib/tmpdir.c: Likewise.
109314         * lib/unicodeio.c: Likewise.
109315         * lib/unsetenv.c: Likewise.
109316         * lib/vasnprintf.c: Likewise.
109317         * lib/vasprintf.c: Likewise.
109318         * lib/wait-process.c: Likewise.
109319         * lib/xallocsa.c: Likewise.
109320         * lib/xsetenv.c: Likewise.
109321         * lib/xstriconv.c: Likewise.
109323 2006-09-13  Simon Josefsson  <jas@extundo.com>
109325         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
109326         that internally, suggested by Ralf Wildenhues
109327         <Ralf.Wildenhues@gmx.de>.
109329 2006-09-13  Simon Josefsson  <jas@extundo.com>
109331         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
109332         @LIBOBJS@.
109333         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
109335 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
109337         * lib/_fpending.c: Include <config.h> unconditionally, since we no
109338         longer worry about uses that don't define HAVE_CONFIG_H.
109339         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
109340         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
109341         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
109342         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
109343         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
109344         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
109345         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
109346         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
109347         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
109348         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
109349         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
109350         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
109351         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
109352         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
109353         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
109354         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
109355         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
109356         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
109357         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
109358         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
109359         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
109360         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
109361         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
109362         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
109363         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
109364         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
109365         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
109366         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
109367         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
109368         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
109369         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
109370         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
109371         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
109372         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
109373         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
109374         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
109375         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
109376         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
109377         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
109378         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
109379         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
109380         Likewise.
109382 2006-09-13  Eric Blake  <ebb9@byu.net>
109384         * lib/getopt.c: Fix typo in last commit.
109386 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
109388         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
109389         dgettext.
109391 2006-09-12  Jim Meyering  <jim@meyering.net>
109393         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
109394         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
109395         Reported by Nelson H. F. Beebe.
109397 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
109399         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
109400         program_invocation_name and program_invocation_short_name are
109401         initialized.
109402         * lib/argp-namefrob.h: Move declarations of program_invocation_name
109403         and program_invocation_short_name to argp.h, so they are visible
109404         to user programs.
109405         * lib/argp.h: Likewise
109407 2006-09-10  Bruno Haible  <bruno@clisp.org>
109409         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
109410         m4/inttypes_h.m4, m4/uintmax_t.m4.
109412 2006-09-10  Bruno Haible  <bruno@clisp.org>
109414         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
109415         gl_AC_TYPE_UINTMAX_T.
109417 2006-09-10  Bruno Haible  <bruno@clisp.org>
109419         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
109421 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
109423         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
109424         convention.  Text proposed by Bruno Haible.
109425         (struct argp_option): Document the use of N_() wrappers.
109427         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
109428         '\v', and translate the two parts separately, instead of feeding
109429         the whole string to gettext.  This allows to exclude
109430         '\v' from the strings visible to the translator by writing doc
109431         strings as N_("..") "\v" N_("..").
109433 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
109435         * config/srclist.txt: Undo latest change; the bug was fixed.
109437 2006-09-09  Bruno Haible  <bruno@clisp.org>
109439         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
109440         assignments if building a library without libtool.
109441         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
109442         in func_emit_lib_Makefile_am.
109443         (func_import): When building a static library libfoo.a, arrange to
109444         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
109445         (func_create_testdir): Likewise.
109446         * modules/gc (configure.ac, Makefile.am): If building statically,
109447         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
109448         * modules/iconvme (configure.ac, Makefile.am): Likewise.
109449         * modules/striconv (configure.ac, Makefile.am): Likewise.
109450         Based on a suggestion by Ralf Wildenhues.
109452 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
109454         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
109455         Check for unistd.h too, since Autoconf doesn't assume POSIX.
109456         Also:
109458         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
109459         Add year_2050_test to catch glibc bug 2821
109460         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
109462         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
109463         Prefer #ifdef to #if.
109465         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
109466         Return from 'main' instead of calling 'exit'.
109468 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
109470         * lib/mktime.c (guess_time_tm): Fix bug where mktime
109471         returned the maximum time_t value rather than (time_t) -1.
109472         Problem originally reported by William Bardwell
109473         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
109475         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
109476         Moved to here ...
109477         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
109478         ... from here.
109480 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
109482         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
109483         2821 is fixed.
109485 2006-09-08  Jim Meyering  <jim@meyering.net>
109487         Don't make generated files read-only.  That would bother too many
109488         people.  However, do retain the ability to work when targets are
109489         read-only: remove the destination and temporary files before writing
109490         them (when generated via sed or echo), or by using the -f option for
109491         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
109492         * modules/alloca-opt, modules/argz, modules/arpa_inet:
109493         * modules/byteswap, modules/configmake, modules/fcntl:
109494         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
109495         * modules/localcharset, modules/netinet_in, modules/poll:
109496         * modules/stdbool, modules/stdint, modules/sys_select:
109497         * modules/sys_socket, modules/sys_stat, modules/sysexits:
109499 2006-09-08  Jim Meyering  <jim@meyering.net>
109501         Avoid new build failure on FreeBSD 6.0.
109502         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
109503         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
109504         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
109506 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109508         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
109510 2006-09-07  Jim Meyering  <jim@meyering.net>
109512         Fix global typo in last change: use chmod u-w, not chmod u-x.
109513         Spotted by Paul Eggert and Bruce Korb.
109514         * modules/alloca-opt, modules/argz, modules/arpa_inet:
109515         * modules/byteswap, modules/configmake, modules/fcntl:
109516         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
109517         * modules/localcharset, modules/netinet_in, modules/poll:
109518         * modules/stdbool, modules/stdint, modules/sys_select:
109519         * modules/sys_socket, modules/sys_stat, modules/sysexits:
109521 2006-09-06  Jim Meyering  <jim@meyering.net>
109523         Make generated files be read-only.
109524         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
109525         Ensure that each generated file is now read-only.
109526         * modules/argz: Likewise.
109527         * modules/arpa_inet: Likewise.
109528         * modules/byteswap: Likewise.
109529         * modules/configmake: Likewise.
109530         * modules/fcntl: Likewise.
109531         * modules/fnmatch: Likewise.
109532         * modules/getopt: Likewise.
109533         * modules/glob: Likewise.
109534         * modules/inttypes: Likewise.
109535         * modules/netinet_in: Likewise.
109536         * modules/poll: Likewise.
109537         * modules/stdbool: Likewise.
109538         * modules/stdint: Likewise.
109539         * modules/sys_select: Likewise.
109540         * modules/sys_socket: Likewise.
109541         * modules/sys_stat: Likewise.
109542         * modules/sysexits: Likewise.
109543         * modules/localcharset: Same as above, but continue using temporary
109544         file named "t-$@" (why different?) rather than the "$@-t" used
109545         everywhere else.
109547         * modules/sysexits (Makefile.am): Replace literal occurrences
109548         of "sysexit.h" more readable, and more consistent, "$@".
109550 2006-09-06  Bruno Haible  <bruno@clisp.org>
109552         * modules/striconv: New file.
109553         * modules/xstriconv: New file.
109554         * MODULES.html.sh (Internationalization functions): Add striconv,
109555         xstriconv.
109557 2006-09-06  Bruno Haible  <bruno@clisp.org>
109559         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
109560         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
109561         not using libtool correctly.
109563 2006-09-06  Bruno Haible  <bruno@clisp.org>
109565         * lib/striconv.h: New file.
109566         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
109567         iconvstring.c.
109568         * lib/xstriconv.h: New file.
109569         * lib/xstriconv.c: New file.
109571 2006-09-06  Bruno Haible  <bruno@clisp.org>
109573         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
109574         lib_..._LDFLAGS.
109576 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109578         * lib/argz_.h: Sync from Libtool.
109580         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
109581                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
109583         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
109585 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
109587         * modules/trim: New file.
109589 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
109591         * lib/trim.h: New file.
109592         * lib/trim.c: New file.
109594 2006-09-05  Bruno Haible  <bruno@clisp.org>
109596         * MODULES.html.sh (String handling): Add trim.
109598 2006-09-04  Karl Berry  <karl@gnu.org>
109600         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
109601         until next release.
109603 2006-09-03  Bruno Haible  <bruno@clisp.org>
109605         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
109606         correctly.
109608 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
109610         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
109611         not gl_GETLOADAVG.  Omit unneeded semicolons.
109612         Problems reported by Ralf Wildenhues in
109613         <http://lists.gnu.org/r/bug-gnulib/2006-09/msg00000.html>.
109614         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
109615         at the end, which is the usual gnulib style.
109617         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
109618         of doing all the work ourselves.
109619         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
109620         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
109622 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
109624         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
109625         Problem reported by Ralf Wildenhues in
109626         <http://lists.gnu.org/r/bug-gnulib/2006-09/msg00000.html>.
109628         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
109629         HAVE_STRUCT_STATFS_F_FSTYPENAME.
109631 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
109633         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
109634         yesterday's patch by changing test -n to test -z.
109636 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
109638         * modules/getloadavg (Files): Add m4/getloadavg.m4.
109639         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
109640         the former is now obsolescent.
109642         * modules/chdir-long (Depends-on): Add fcntl.
109644 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
109646         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
109647         obsolescent, and programs should use gnulib instead.
109648         * m4/getloadavg.m4: New file, with contents taken from Autoconf
109649         but with prefixes changed.
109651 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
109653         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
109654         or stdbool.h, because they might not exist while configuring.
109656         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
109657         Don't include unistd.h or limits.h; not needed, since chdir-long.h
109658         does that for us.
109659         (O_DIRECTORY): Remove.
109661 2006-08-31  Eric Blake  <ebb9@byu.net>
109663         * gnulib-tool: Don't let emacs change spaces to TAB.
109665 2006-08-31  Bruno Haible  <bruno@clisp.org>
109667         * gnulib-tool: When calling func_import more than once, do it in a
109668         subshell.
109669         Reported by Eric Blake <ebb9@byu.net>.
109671 2006-08-31  Bruno Haible  <bruno@clisp.org>
109673         * gnulib-tool (nl): Remove variable.
109674         (sed_transform_lib_file): Use more robust test for config-h module.
109675         (func_import): Fix typo in 2006-08-25 patch.
109677 2006-08-31  Bruno Haible  <bruno@clisp.org>
109679         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
109680         specified, augment Makefile.am variables instead of assigning them.
109682 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
109684         Work around a bug in both the Linux and SunOS 64-bit kernels:
109685         nanosleep mishandles sleeps for longer than 2**31 seconds.
109686         Problem reported by Frank v Waveren in
109687         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00298.html>.
109688         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
109689         Check for nanosleep bug.
109690         (LIB_NANOSLEEP): Append clock_gettime library if needed.
109692 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
109694         Work around a bug in both the Linux and SunOS 64-bit kernels:
109695         nanosleep mishandles sleeps for longer than 2**31 seconds.
109696         Problem reported by Frank v Waveren in
109697         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00298.html>.
109698         * lib/nanosleep.c (BILLION): New constant.
109699         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
109700         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
109701         implementation.
109703 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
109705         * modules/nanosleep (Depends-on): Add gettime.
109707 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
109708         and Simon Josefsson  <jas@extundo.com>
109709         and Oskar Liljeblad  <oskar@osk.mine.nu>
109711         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
109712         * gnulib-tool (func_import): New license type 'unmodifiable license
109713         text'.
109714         * modules/fdl: Use it.  Longer description.
109715         * module/gpl, module/lgpl: New files.
109717 2006-08-30  Jim Meyering  <jim@meyering.net>
109719         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
109720         shadowing the parameter.
109722 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109724         Sync from Libtool:
109726         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109728         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
109729         sharing with gnulib.  Report by Eric Blake.
109731 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
109733         * modules/isapipe: New file.
109734         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
109736 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
109738         * modules/configmake (Makefile.am): Add a comment, and omit
109739         the CONFIGMAKE_ prefix from generated macro names.  Suggested
109740         by Bruno Haible.
109742 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
109744         * m4/isapipe.m4: New file.
109746 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
109748         * lib/isapipe.c, lib/isapipe.h: New files.
109750 2006-08-29  Jim Meyering  <jim@meyering.net>
109752         * modules/configmake (Makefile.am): Make configmake.h depend on
109753         Makefile.  Otherwise, a stale configmake.h could hang around.
109755 2006-08-29  Eric Blake  <ebb9@byu.net>
109757         * lib/error.c (error_at_line, print_errno_message): Match libc, after
109758         resolution of upstream bug 3044.
109760 2006-08-29  Bruno Haible  <bruno@clisp.org>
109762         * modules/localcharset (Depends-on): Add configmake.
109763         (Makefile.am): Remove setting of LIBDIR through DEFS.
109765 2006-08-29  Bruno Haible  <bruno@clisp.org>
109767         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
109768         defined.
109770 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
109772         * modules/fcntl: New file.
109773         * modules/chdir-safer (Depends-on): Add fcntl.
109774         * modules/fts: Likewise.
109775         * modules/mkdir-p: Likewise.
109777         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
109778         This undoes the most recent change, since we're now addressing the
109779         problem in a different way.
109781         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
109782         into output, since the output might be called Makefile.am even
109783         if $makefile_name is something different.
109784         (func_import): Use $makefile_am rather than
109785         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
109786         empty.
109788         * modules/inttypes (Files): Add m4/inttypes-h.m4.
109790 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
109792         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
109793         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
109794         recent change to stdint.m4, since we're now addressing the problem in a
109795         different way.
109797 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
109799         * m4/fcntl_h.m4: New file.
109801 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
109803         * lib/fcntl_.h: New file.
109804         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
109805         the fcntl module.
109806         * lib/dirchownmod.c: Likewise.
109807         * lib/fts.c: Likewise.
109809         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
109810         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
109811         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
109812         just before including <inttypes.h>, to avoid circular inclusion.
109814 2006-08-28  Jim Meyering  <jim@meyering.net>
109816         * doc/visibility.texi: Actually read and correct the grammar of the
109817         sentence affected by yesterday's change.
109819 2006-08-28  Eric Blake  <ebb9@byu.net>
109821         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
109822         needs wrapper.
109824 2006-08-28  Eric Blake  <ebb9@byu.net>
109826         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
109828 2006-08-28  Eric Blake  <ebb9@byu.net>
109830         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
109832 2006-08-28  Bruno Haible  <bruno@clisp.org>
109834         * modules/c-strstr: New file, from GNU gettext.
109835         * MODULES.html.sh (String handling): Add c-strstr.
109837 2006-08-28  Bruno Haible  <bruno@clisp.org>
109839         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
109840         macros.
109841         Reported by Eric Blake.
109843 2006-08-28  Bruno Haible  <bruno@clisp.org>
109845         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
109846         (VASNPRINTF): Return a string of length > INT_MAX without failing.
109847         * lib/vasprintf.c: Include errno.h, limits.h.
109848         (EOVERFLOW): New fallback definition.
109849         (vasprintf): Test here whether the string length is > INT_MAX.
109850         * lib/vsnprintf.c: Include errno.h, limits.h.
109851         (EOVERFLOW): New fallback definition.
109852         (vsnprintf): Fix bug when generated string was too long for the buffer.
109853         Test here whether the string length is > INT_MAX.
109855 2006-08-28  Bruno Haible  <bruno@clisp.org>
109857         * lib/inttypes_.h (SCNX*): Remove definitions.
109858         Reported by Eric Blake.
109860 2006-08-28  Bruno Haible  <bruno@clisp.org>
109862         * lib/c-strstr.h: New file, from GNU gettext.
109863         * lib/c-strstr.c: New file, from GNU gettext.
109865 2006-08-28  Bruno Haible  <bruno@clisp.org>
109867         * gnulib-tool: Reorder some statements.
109869 2006-08-28  Bruno Haible  <bruno@clisp.org>
109871         * gnulib-tool: New option --makefile-name.
109872         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
109873         $makefile_name.
109874         (func_import): Write $makefile_name to the cache file, and read it from
109875         there unless explicitly specified. Use $makefile_name as file name
109876         instead of Makefile.am. Adjust the recommendations accordingly.
109878 2006-08-28  Bruno Haible  <bruno@clisp.org>
109880         * gnulib-tool (func_verify_module): Check against misapplying patch.
109882 2006-08-28  Bruno Haible  <bruno@clisp.org>
109884         * gnulib-tool (func_relativize, func_relconcat): New functions.
109885         Give an error if --local-dir is given with --update.
109886         Remove trailing slashes from $local_gnulib_dir.
109887         (func_import): Store the relativized $local_gnulib_dir in
109888         gnulib-cache.m4, and read it from there if not specified explicitly.
109890 2006-08-28  Bruno Haible  <bruno@clisp.org>
109892         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
109893         is the current directory. Respect also $local_gnulib_dir.
109895 2006-08-28  Bruno Haible  <bruno@clisp.org>
109896             Simon Josefsson  <jas@extundo.com>
109898         BeOS portability.
109899         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
109901 2006-08-27  Jim Meyering  <jim@meyering.net>
109903         * doc/visibility.texi: Remove duplicate word: "pointer".
109905 2006-08-26  Bruno Haible  <bruno@clisp.org>
109907         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
109908         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
109909         (Makefile.am): Create inttypes.h from inttypes_.h.
109910         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
109912         * modules/imaxabs: New file.
109914         * modules/imaxdiv: New file.
109916 2006-08-26  Bruno Haible  <bruno@clisp.org>
109918         * m4/inttypes.m4: New file.
109919         * m4/_inttypes_h.m4: Remove file.
109920         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
109921         PRI_MACROS_BROKEN.
109922         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
109924         * m4/imaxabs.m4: New file.
109926         * m4/imaxdiv.m4: New file.
109928 2006-08-26  Bruno Haible  <bruno@clisp.org>
109930         * lib/inttypes_.h: New file.
109931         * lib/inttypes.h: Remove file.
109932         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
109934         * lib/imaxabs.c: New file.
109936         * lib/imaxdiv.c: New file.
109938 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
109940         New config-h module, so that "make" output needn't be cluttered
109941         by -DHAVE_CONFIG_H.
109942         * MODULES.html.sh (Support for building libraries and executables):
109943         Add config-h.
109944         * modules/config-h: New file.
109945         * gnulib-tool (nl, sed_transform_lib_file): New vars.
109946         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
109947         the config-h module is used.
109949         New configmake module, so that "make" output needn't be cluttered
109950         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
109951         * MODULES.html.sh (Support for building libraries and executables):
109952         Add configmake.
109953         * modules/configmake: New file.
109955 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
109957         * m4/config-h.m4: New file.
109959 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
109961         * config/srclist.txt: Add elisp-comp.
109963 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
109965         * MODULES.html.sh (Support for building libraries and executables):
109966         Add elisp-comp.
109967         * build-aux/elisp-comp: New file.
109968         * modules/elisp-comp: New file.
109970 2006-08-24  Bruno Haible  <bruno@clisp.org>
109972         * gnulib-tool (func_create_testdir): Use non-default values of
109973         sourcebase and m4base.
109975 2006-08-24  Bruno Haible  <bruno@clisp.org>
109977         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
109978         HTML structure.
109980 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
109982         * modules/openat (Depends-on): Add lchown.
109984 2006-08-23  Bruno Haible  <bruno@clisp.org>
109986         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
109987         of gl_LOCK_EARLY instead of gl_LOCK.
109989 2006-08-23  Bruno Haible  <bruno@clisp.org>
109991         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
109992         on OSF/1 to no.
109993         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
109995 2006-08-23  Bruno Haible  <bruno@clisp.org>
109997         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
109998         as unusable.
110000         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
110001         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
110002         (gl_LOCK): New macro.
110004 2006-08-22  Simon Josefsson  <jas@extundo.com>
110006         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
110007         to md5 module.
110009 2006-08-22  Simon Josefsson  <jas@extundo.com>
110011         * MODULES.html.sh: Add "Support for maintaining and release
110012         projects".
110014         * build-aux/gnupload: New file, from coreutils.
110016 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
110018         Avoid the need for AC_LIBSOURCES in m4 macros.
110019         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
110020         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
110021         * modules/check-version (EXTRA_DIST): Add check-version.h.
110022         * modules/crc (EXTRA_DIST): Add crc.h.
110023         * modules/des (EXTRA_DIST): Add des.h.
110024         * modules/gc (EXTRA_DIST): Add gc.h.
110025         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
110026         * modules/getline (EXTRA_DIST): Add getline.h.
110027         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
110028         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
110029         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
110030         * modules/md2 (EXTRA_DIST): Add md2.h.
110031         * modules/md4 (EXTRA_DIST): Add md4.h.
110032         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
110033         * modules/read-file (EXTRA_DIST): Add read-file.h.
110034         * modules/readline (EXTRA_DIST): Add readline.h.
110035         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
110036         rijndael-api-fst.h.
110038 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
110040         * m4/rijndael.m4 (gl_ARCFOUR):
110041         * m4/arctwo.m4 (gl_ARCTWO):
110042         * m4/check-version.m4 (gl_CHECK_VERSION):
110043         * m4/crc.m4 (gl_CRC):
110044         * m4/des.m4 (gl_DES):
110045         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
110046         * m4/gc.m4 (gl_GC):
110047         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
110048         * m4/getline.m4 (gl_FUNC_GETLINE):
110049         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
110050         * m4/hmac-md5.m4 (gl_HMAC_MD5):
110051         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
110052         * m4/md2.m4 (gl_MD2):
110053         * m4/md4.m4 (gl_MD4):
110054         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
110055         * m4/read-file.m4 (gl_FUNC_READ_FILE):
110056         * m4/readline.m4 (gl_FUNC_READLINE):
110057         * m4/rijndael.m4 (gl_RIJNDAEL):
110058         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
110059         to get the necessary .h files and whatnot.
110061 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
110063         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
110064         gnulib rather than the other way around.
110065         * config/srclistvars.sh (COREUTILS): Remove.
110067 2006-08-22  Jim Meyering  <jim@meyering.net>
110069         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
110071         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
110073 2006-08-22  Eric Blake  <ebb9@byu.net>
110075         * modules/regexprops-generic: New file.
110076         * MODULES.html.sh (Support for building documentation): List it.
110078 2006-08-22  Eric Blake  <ebb9@byu.net>
110080         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
110081         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
110082         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
110083         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
110085 2006-08-22  Bruno Haible  <bruno@clisp.org>
110087         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
110088         and lib_LTLIBRARIES like the other lib_* variables.
110090 2006-08-22  Bruno Haible  <bruno@clisp.org>
110092         * build-aux/x-to-1.in: New file, from GNU gettext.
110094 2006-08-22  Bruno Haible  <bruno@clisp.org>
110096         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
110097         <utmpx.h> exists.
110099 2006-08-22  Bruno Haible  <bruno@clisp.org>
110101         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
110102         <utmpx.h> exists.
110104 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
110106         BeOS portability.
110107         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
110108         exist.
110109         Problem reported by Bruno Haible.
110111 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
110113         Avoid the need for AC_LIBSOURCES in m4 macros.
110114         * modules/acl (EXTRA_DIST): Add acl.h.
110115         * modules/argmatch (Files): Add m4/argmatch.m4.
110116         (configure.ac): Add gl_ARGMATCH.
110117         (EXTRA_DIST): Renamed from lib_SOURCES, for
110118         consistency with the other modules.  Remove argmatch.c.
110119         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
110120         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
110121         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
110122         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
110123         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
110124         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
110125         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
110126         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
110127         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
110128         * modules/closeout (EXTRA_DIST): Add closeout.h.
110129         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
110130         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
110131         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
110132         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
110133         dirname.h; remove basename.c and stripslash.c.
110134         * modules/exclude (EXTRA_DIST): Add exclude.h.
110135         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
110136         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
110137         * modules/file-type (EXTRA_DIST): Add file-type.h.
110138         * modules/filemode (EXTRA_DIST): Add filemode.h.
110139         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
110140         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
110141         * modules/fpending (EXTRA_DIST): Add __fpending.h.
110142         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
110143         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
110144         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
110145         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
110146         * modules/getdate (EXTRA_DIST): Add getdate.c.
110147         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
110148         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
110149         * modules/getpass (EXTRA_DIST): Add getpass.h.
110150         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
110151         * modules/group-member (EXTRA_DIST): Add group-member.h.
110152         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
110153         * modules/hash (EXTRA_DIST): Add hash.h.
110154         * modules/human (EXTRA_DIST): Add human.h.
110155         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
110156         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
110157         * modules/lchown (EXTRA_DIST): Add lchown.h.
110158         * modules/long-options (EXTRA_DIST): Add long-options.h.
110159         * modules/lstat (EXTRA_DIST): Add lstat.h.
110160         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
110161         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
110162         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
110163         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
110164         * modules/memxor (EXTRA_DIST): Add memxor.h.
110165         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
110166         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
110167         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
110168         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
110169         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
110170         * modules/physmem (EXTRA_DIST): Add physmem.h.
110171         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
110172         * modules/posixver (EXTRA_DIST): Add posixver.h.
110173         * modules/quote (EXTRA_DIST): Add quote.h.
110174         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
110175         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
110176         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
110177         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
110178         regex_internal.h regexec.c.
110179         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
110180         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
110181         * modules/same (EXTRA_DIST): Add same.h.
110182         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
110183         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
110184         * modules/savedir (EXTRA_DIST): Add savedir.h.
110185         * modules/sha1 (EXTRA_DIST): Add sha1.h.
110186         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
110187         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
110188         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
110189         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
110190         * modules/strdup (EXTRA_DIST): Add strdup.h.
110191         * modules/strftime (EXTRA_DIST): Add strftime.h.
110192         * modules/strndup (EXTRA_DIST): Add strndup.h.
110193         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
110194         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
110195         * modules/time_r (EXTRA_DIST): Add time_r.h.
110196         * modules/timespec (EXTRA_DIST): Add timespec.h.
110197         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
110198         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
110199         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
110200         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
110201         * modules/userspec (EXTRA_DIST): Add userspec.h.
110202         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
110203         * modules/utimens (EXTRA_DIST): Add utimens.h.
110204         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
110205         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
110206         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
110207         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
110208         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
110209         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
110210         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
110211         * modules/yesno (EXTRA_DIST): Add yesno.h.
110213 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
110215         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
110217         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
110218         * m4/dev-ino.m4, same-inode.m4: Remove.
110220         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
110221         * m4/acl.m4 (AC_FUNC_ACL):
110222         * m4/backupfile.m4 (gl_BACKUPFILE):
110223         * m4/c-strtod.m4 (gl_C99_STRTOLD):
110224         * m4/canon-host.m4 (gl_CANON_HOST):
110225         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
110226         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
110227         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
110228         * m4/cloexec.m4 (gl_CLOEXEC):
110229         * m4/close-stream.m4 (gl_CLOSE_STREAM):
110230         * m4/closeout.m4 (gl_CLOSEOUT):
110231         * m4/dirfd.m4 (gl_FUNC_DIRFD):
110232         * m4/dirname.m4 (gl_DIRNAME):
110233         * m4/exclude.m4 (gl_EXCLUDE):
110234         * m4/exitfail.m4 (gl_EXITFAIL):
110235         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
110236         * m4/file-type.m4 (gl_FILE_TYPE):
110237         * m4/filemode.m4 (gl_FILEMODE):
110238         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
110239         * m4/fpending.m4 (gl_FUNC_FPENDING):
110240         * m4/fprintftime.m4 (gl_FPRINTFTIME):
110241         * m4/fts.m4 (gl_FUNC_FTS):
110242         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
110243         * m4/getdate.m4 (gl_GETDATE):
110244         * m4/gethrxtime.m4 (gl_GETHRXTIME):
110245         * m4/getpagesize.m4 (gl_GETPAGESIZE):
110246         * m4/getpass.m4 (gl_FUNC_GETPASS):
110247         * m4/gettime.m4 (gl_GETTIME):
110248         * m4/getugroups.m4 (gl_GETUGROUPS):
110249         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
110250         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
110251         * m4/hard-locale.m4 (gl_HARD_LOCALE):
110252         * m4/hash.m4 (gl_HASH):
110253         * m4/idcache.m4 (gl_IDCACHE):
110254         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
110255         * m4/lchown.m4 (gl_FUNC_LCHOWN):
110256         * m4/long-options.m4 (gl_LONG_OPTIONS):
110257         * m4/lstat.m4 (gl_FUNC_LSTAT):
110258         * m4/md5.m4 (gl_MD5):
110259         * m4/memcasecmp.m4 (gl_MEMCASECMP):
110260         * m4/memcoll.m4 (gl_MEMCOLL):
110261         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
110262         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
110263         * m4/memxor.m4 (gl_MEMXOR):
110264         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
110265         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
110266         * m4/modechange.m4 (gl_MODECHANGE):
110267         * m4/mountlist.m4 (gl_MOUNTLIST):
110268         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
110269         * m4/openat.m4 (gl_FUNC_OPENAT):
110270         * m4/pathmax.m4 (gl_PATHMAX):
110271         * m4/physmem.m4 (gl_PHYSMEM):
110272         * m4/posixtm.m4 (gl_POSIXTM):
110273         * m4/posixver.m4 (gl_POSIXVER):
110274         * m4/quote.m4 (gl_QUOTE):
110275         * m4/quotearg.m4 (gl_QUOTEARG):
110276         * m4/readtokens.m4 (gl_READTOKENS):
110277         * m4/readutmp.m4 (gl_READUTMP):
110278         * m4/regex.m4 (gl_REGEX):
110279         * m4/safe-read.m4 (gl_SAFE_READ):
110280         * m4/safe-write.m4 (gl_SAFE_WRITE):
110281         * m4/same.m4 (gl_SAME):
110282         * m4/save-cwd.m4 (gl_SAVE_CWD):
110283         * m4/savedir.m4 (gl_SAVEDIR):
110284         * m4/settime.m4 (gl_SETTIME):
110285         * m4/sha1.m4 (gl_SHA1):
110286         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
110287         * m4/stat-macros.m4 (gl_STAT_MACROS):
110288         * m4/stat-time.m4 (gl_STAT_TIME):
110289         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
110290         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
110291         * m4/strdup.m4 (gl_FUNC_STRDUP):
110292         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
110293         * m4/strndup.m4 (gl_FUNC_STRNDUP):
110294         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
110295         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
110296         * m4/time_r.m4 (gl_TIME_R):
110297         * m4/timespec.m4 (gl_TIMESPEC):
110298         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
110299         * m4/unlinkdir.m4 (gl_UNLINKDIR):
110300         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
110301         * m4/userspec.m4 (gl_USERSPEC):
110302         * m4/utimecmp.m4 (gl_UTIMECMP):
110303         * m4/utimens.m4 (gl_UTIMENS):
110304         * m4/xalloc.m4 (gl_XALLOC):
110305         * m4/xgetcwd.m4 (gl_XGETCWD):
110306         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
110307         * m4/xreadlink.m4 (gl_XREADLINK):
110308         * m4/xstrtod.m4 (gl_XSTRTOD):
110309         * m4/yesno.m4 (gl_YESNO):
110310         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
110311         to get the necessary .h files and whatnot.
110313 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
110314             Bruno Haible  <bruno@clisp.org>
110316         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
110317         /bin/sh understanding of '!' conditional negation.
110319 2006-08-21  Jim Meyering  <jim@meyering.net>
110321         * modules/openat (Depends-on): Really alphabetize.
110323         * modules/acl (Depends-on): Add error and quote.
110325         * check-module (find_included_lib_files): Add at-func.c to the
110326         ok-to-include-more-than-once white list.
110328         * modules/openat (Depends-on): Add lstat.  Alphabetize.
110330 2006-08-21  Bruno Haible  <bruno@clisp.org>
110332         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
110333         Emit a pkgdata_DATA variable only if some snippets add contents to it.
110334         Reported by Martin Lambers <marlam@marlam.de>.
110336 2006-08-21  Bruno Haible  <bruno@clisp.org>
110338         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
110339         specify an installation location, don't emit a noinst_LIBRARIES or
110340         noinst_LTLIBRARIES assignment.
110342 2006-08-21  Bruno Haible  <bruno@clisp.org>
110344         BeOS portability.
110345         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
110346         BeOS has mbrtowc() but no <wctype.h>.
110348 2006-08-21  Bruno Haible  <bruno@clisp.org>
110350         BeOS portability.
110351         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
110352         exist.
110354 2006-08-21  Bruno Haible  <bruno@clisp.org>
110356         BeOS portability.
110357         * lib/mbchar.h: Include <wctype.h> only if it exists.
110359 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
110361         Remove files that are no longer needed by their respective modules.
110362         * m4/obstack.m4: Remove.
110363         * m4/strerror_r.m4: Remove.
110364         * m4/uint32_t.m4: Remove.
110365         * m4/uintptr_t.m4: Remove.
110366         * m4/ullong_max.m4: Remove.
110367         * m4/xstrtoimax.m4: Remove.
110368         * m4/xstrtoumax.m4: Remove.
110370         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
110371         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
110372         dependencies now capture this.
110374         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
110375         Do not use AC_LIBSOURCES, since gnulib modules now do this.
110376         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
110377         * m4/human.m4 (gl_HUMAN): Likewise.
110378         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
110379         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
110381         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
110383         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
110384         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
110385         stdint.
110386         * m4/human.m4 (gl_HUMAN): Likewise.
110387         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
110388         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
110389         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
110390         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
110391         * m4/xstrtol (gl_XSTRTOL): Likewise.
110393         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
110394         AC_TYPE_LONG_LONG_INT.
110395         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
110396         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
110397         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
110398         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
110400         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
110401         on stdbool.
110403         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
110404         (gl_PREREQ_XSTRTOUL): Remove.
110406         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
110408         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
110409         mode.
110411 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
110413         Add and change modules to make it easier for coreutils to use
110414         gnulib-tool.
110415         * modules/backupfile (Files): Remove m4/d-ino.m4.
110416         (Depends-on): Add d-ino.
110417         * modules/cycle-check (Depends-on): Add stdint.
110418         (lib_SOURCES): Add cycle-check.h.
110419         * modules/d-ino: New module.
110420         * modules/d-type: New module.
110421         * modules/error (Files): Remove m4/strerror_r.m4.
110422         * modules/filemode (Files): Add m4/st_dm_mode.m4.
110423         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
110424         m4/inttypes_h.m4, m4/uintmax_t.m4.
110425         (Depends-on): Add stdint.
110426         (lib_SOURCES): Add fsusage.h.
110427         * modules/getcwd (Files): Remove d-ino.m4.
110428         (Depends-on): Add d-ino.
110429         * modules/getndelim2 (Depends-on): Add stdint.
110430         * modules/glob (Files): Remove m4/d-type.m4.
110431         (Depends-on): Add d-type.
110432         * modules/host-os: New module.
110433         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
110434         m4/inttypes_h.m4, m4/uintmax_t.m4.
110435         * Depends-on: Add stdint.
110436         (lib_SOURCES): Add human.h.
110437         * modules/inttostr (Files): Remove m4/intmax_t.m4,
110438         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
110439         m4/uintmax_t.m4, m4/ulonglong.m4.
110440         (Depends-on): Add stdint.
110441         (EXTRA_DIST): Add inttostr.h.
110442         * modules/lchmod: New module.
110443         * modules/link-follow: New module.
110444         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
110445         (Depends-on): Add lchmod.
110446         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
110447         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
110448         (Depends-on): Add stdint.
110449         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
110450         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
110451         (Depends-on): Add stdint.
110452         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
110453         * modules/perl: New module.
110454         * modules/regex (Depends-on): Add stdint.
110455         * modules/rmdir-errno: New module.
110456         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
110457         m4/intmax_t.m4.
110458         (Depends-on): Add stdint.
110459         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
110460         m4/uintmax_t.m4.
110461         (Depends-on): Add stdint.
110462         * modules/unlink-busy: New module.
110463         * modules/utimecmp (Depends-on): Add stdint.
110464         * modules/uptime: New module.
110465         * modules/winsz-ioctl: New module.
110466         * modules/winsz-termios: New module.
110467         * modules/xnanosleep (Depends-on): Add nanosleep.
110468         * modules/ullong_max: Remove.
110469         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
110470         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
110471         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
110472         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
110473         (Depends-on): Add inttypes.
110474         (lib_SOURCES): Add xstrtol.h.
110475         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
110476         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
110477         * MODULES.html.sh: Move 'assert' into the assert section.
110478         Move 'dummy' into the linking section.
110479         Remove ullong_max.
110480         Add section for compatibility checks for POSIX:2001 functions,
110481         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
110482         winsz-ioctl, and winsz-termios into it.
110483         Add lchmod.
110484         Add top-level Misc section and put host-os, perl, and uptime
110485         into it.
110487 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
110489         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
110490         now assume the stdint module.  Do not include inttypes.h.
110491         * lib/fsusage.h: Likewise.
110492         * lib/getndelim2.c: Likewise.
110493         * lib/human.h: Likewise.
110494         * lib/inttostr.h: Likewise.
110495         * lib/obstack.c: Likewise.
110496         * lib/regex_internal.h: Likewise.
110497         * lib/tempname.c: Likewise.
110498         * lib/utimecmp.c: Likewise.
110499         * lib/xstrtol.h: Likewise.
110501         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
110503         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
110504         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
110505         * lib/xtime.h: Likewise.
110507 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
110509         * modules/openat (Files): Add lib/fchmodat.c.
110510         Fixes problem reported by Jay Youngman.
110512 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
110514         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
110515         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
110517 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
110518             Bruno Haible  <bruno@clisp.org>
110520         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
110521         and is a script that invokes bison. Tighten the code. Add comments.
110523 2006-08-18  Jim Meyering  <jim@meyering.net>
110525         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
110526         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
110527         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
110528         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
110530 2006-08-18  Bruno Haible  <bruno@clisp.org>
110532         * modules/bison-i18n: New file.
110533         * MODULES.html.sh (Internationalization functions): Add it.
110535 2006-08-18  Bruno Haible  <bruno@clisp.org>
110537         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
110538         sys/statvfs.h. When getmntinfo was found, check its declaration and
110539         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
110541 2006-08-18  Bruno Haible  <bruno@clisp.org>
110543         * m4/bison-i18n.m4: New file, from bison.
110545 2006-08-18  Bruno Haible  <bruno@clisp.org>
110547         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
110548         (ME_DUMMY): Treat "kernfs" as a dummy.
110549         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
110551 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
110553         Update from coreutils.
110555         2006-08-15  Jim Meyering  <jim@meyering.net>
110557         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
110559         2006-01-17  Jim Meyering  <jim@meyering.net>
110561         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
110563         2006-01-11  Jim Meyering  <jim@meyering.net>
110565         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
110566         Check for the lchmod function.
110568 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
110570         Update from coreutils.
110572         * lib/__fpending.h: Add copyright notice.
110573         * lib/fprintftime.h: Likewise.
110574         * lib/savedir.c: Use (C) in copyright notice.
110575         * lib/savedir.h: Likewise.
110577         2006-08-15  Jim Meyering  <jim@meyering.net>
110579         * lib/at-func.c: New file, with the logic of all emulated at-functions.
110580         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
110581         in support of the EXPECTED_ERRNO macro.
110582         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
110583         definitions.  Instead, define the appropriate symbols and include
110584         "at-func.c".
110585         * lib/mkdirat.c (mkdirat): Likewise.
110586         * lib/fchmodat.c (fchmodat): Likewise.
110587         (ENOSYS): Remove definition.
110588         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
110589         it.  Don't include "unistd--.h" -- it wasn't ever used.
110591         2006-01-17  Jim Meyering  <jim@meyering.net>
110593         Rewrite fts.c not to change the current working directory,
110594         by using openat, fstatat, fdopendir, etc..
110596         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
110597         (HAVE_OPENAT_SUPPORT): Define.
110598         [_LIBC] (fchdir): Don't undef or define; no longer used.
110599         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
110600         Now, this `function' always succeeds, and consumes its file descriptor
110601         parameter -- so callers must not close such FDs.  Update callers.
110602         (diropen_fd, opendirat, cwd_advance_fd): New functions.
110603         (diropen): Add parameter, SP.  Adjust all callers.
110604         Implement using diropen_fd, rather than open.
110605         (fts_open): Initialize new member, fts_cwd_fd.
110606         Remove fts_rft-setting code.
110607         (fts_close): Close fts_cwd_fd, if necessary.
110608         (__opendir2): Define in terms of opendir or opendirat,
110609         depending on whether the FST_NOCHDIR flag is set.
110610         (fts_build): Since fts_safe_changedir consumes its FD, and since
110611         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
110612         and close the dup'd file descriptor upon failure.
110613         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
110614         (fts_safe_changedir): Tweak semantics to reflect that this function
110615         now calls cwd_advance_fd and hence consumes its FD argument.
110616         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
110617         [struct FTS] (fts_rft): Remove now-unused member.
110618         [struct FTS] (fts_cycle.state): Improve comment.
110620         * lib/openat.c (openat_needs_fchdir): New function.
110621         * lib/openat.h (openat_needs_fchdir): Declare it.
110623 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
110625         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
110626         Problem and fix reported by Pádraig Brady in
110627         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00099.html>.
110629 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
110631         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
110633 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
110635         * lib/memcoll.c (memcoll): Optimize for the common case where the
110636         arguments are bytewise equal.
110638 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
110640         * doc/regexprops-generic.texi: Add a copyright notice.
110642 2006-08-15  Bruno Haible  <bruno@clisp.org>
110644         * modules/tmpdir (License): Change to LGPL.
110646 2006-08-15  Bruno Haible  <bruno@clisp.org>
110648         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
110649         module.
110651 2006-08-14  Simon Josefsson  <jas@extundo.com>
110653         * config/srclist.txt: Add gnupload.
110655 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
110657         Change copyright notice from LGPL 2 to GPL 2, since that's the
110658         standard form used in the gnulib repository.
110659         * tests/test-lock.c: Likewise.
110660         * tests/test-stdint.c: Likewise.
110661         * tests/test-tls.c: Likewise.
110663         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
110664         prelude-manager.  User shorter URLs for GNU projects, without '?'.
110665         Add copyright notice.
110667         * check-module: Add copyright notice.  Output a copyright
110668         notice if "--version" is specified.
110669         * modules/COPYING: New file.
110670         * tests/test-getaddrinfo.c: Add copyright notice.
110671         * tests/test-verify.c: Likewise.
110673 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
110675         Change copyright notice from LGPL 2 to GPL 2, since that's the
110676         standard form used in the gnulib repository.
110677         * lib/lock.c: LGPL -> GPL.
110678         * lib/lock.h: Likewise.
110679         * lib/strnlen1.c: Likewise.
110680         * lib/strnlen1.h: Likewise.
110681         * lib/tls.c: Likewise.
110682         * lib/tls.h: Likewise.
110683         * lib/tmpdir.c: Likewise.
110685         * lib/TODO: Remove; this belongs only in coreutils.
110687 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
110689         Add copyright notices to long-enough files that lack them, since
110690         otherwise the files aren't clearly free.  Use the same notice that
110691         getdate.texi already uses.
110692         * doc/alloca-opt.texi: Add copyright notice.
110693         * doc/alloca.texi: Likewise.
110694         * doc/ctime.texi: Likewise.
110695         * doc/functions.texi: Likewise.
110696         * doc/gcd.texi: Likewise.
110697         * doc/gnulib-tool.texi: Likewise.
110698         * doc/inet_ntoa.texi: Likewise.
110699         * doc/visibility.texi: Likewise.
110701         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
110702         * doc/quote.texi: Add copyright notice.
110704         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
110705         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
110706         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
110707         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
110708         is now obsolete, and give a pointer to the Sun list.
110709         Add copyright notice.
110711 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
110713         * config/srclistvars.sh: Add copyright notice.
110715 2006-08-14  Eric Blake  <ebb9@byu.net>
110717         Import the following change from libc:
110719         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
110721         Upstream bug 2997.
110722         * lib/misc/error.c: Add space between program name and message if file
110723         name is missing.
110725 2006-08-12  Karl Berry  <karl@gnu.org>
110727         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
110728         remove, these originate in gnulib now.
110730 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
110732         * doc/Makefile (standards.info standards.html standards.dvi):
110733         Also depend on make-stds.texi.
110735 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
110737         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
110738         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
110740         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
110741         in wchar_t.  Problem reported by Eric Blake.
110743         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
110744         LEN is smaller than SIZE.  Suggested by Bruno Haible.
110745         Also, help the compiler to keep LEN in a register.
110747 2006-08-11  Eric Blake  <ebb9@byu.net>
110749         * users.txt: Sort.  Add tar.
110751 2006-08-11  Bruno Haible  <bruno@clisp.org>
110753         * users.txt: New file.
110755 2006-08-11  Bruno Haible  <bruno@clisp.org>
110757         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
110758         before <wchar.h>. Needed for OSF/1 and BSD/OS.
110760 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
110762         * modules/snprintf (Depends-on): Remove minmax.
110763         (Maintainer): Add self and Bruno.
110765 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
110767         * lib/.cppi-disable: Add snprintf.h, socket_.h.
110768         * lib/snprintf.c: Include <errno.h> and <limits.h>.
110769         (EOVERFLOW): Define if the system does not.
110770         Do not include "minmax.h"; it wasn't used.
110771         (snprintf): Don't assume size_t promotes to an unsigned type.
110772         Fix bug when generated string was too long for the buffer: the
110773         buffer's contents are supposed to be the initial prefix of the
110774         output.  Don't assume vasnprintf returns EOVERFLOW if the size
110775         exceeds INT_MAX; do the check ourselves.
110777         Import the following changes from libc:
110779         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
110781         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
110782         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
110783         set wc to the byte which couldn't be converted.
110784         (re_string_reconstruct): Don't clear valid_raw_len before calling
110785         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
110786         tip_context using re_string_context_at.
110788         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
110790         * lib/posix/regex.h: g++ still cannot handled [restrict].
110792         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
110794         * lib/posix/regex.h: Remove special handling for VMS.
110796 2006-08-10  Jim Meyering  <jim@meyering.net>
110798         * modules/same-inode: New module.
110799         * modules/dev-ino: New module.
110800         * modules/cycle-check: Depend on these modules, rather than simply
110801         including their .h files.
110802         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
110803         required via m4/cycle-check.m4.
110804         * modules/same: Depend on new same-inode module, rather than
110805         including same-inode.h.
110806         * modules/chdir-safer: New file.
110808         * modules/chown (Depends-on): Add stat-macros.
110810 2006-08-10  Jim Meyering  <jim@meyering.net>
110812         * m4/cycle-check.m4: New file.
110813         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
110814         * m4/dev-ino.m4, m4/same-inode.m4: New files.
110816 2006-08-10  Eric Blake  <ebb9@byu.net>
110818         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
110819         in from original proposal.
110821 2006-08-10  Eric Blake  <ebb9@byu.net>
110822         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
110824         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
110825         namespace.
110827 2006-08-10  Bruno Haible  <bruno@clisp.org>
110829         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
110830         as well.
110832 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
110834         Sync from coreutils.
110836         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
110838         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
110839         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
110841 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
110843         * modules/restrict: Remove; no longer needed now that we assume
110844         Autoconf 2.59 or later.
110845         * MODULES.html.sh: Remove 'restrict'.
110846         * modules/argp (Depends-on): Remove 'restrict'.
110847         * modules/base64 (Depends-on): Likewise.
110848         * modules/gc (Depends-on): Likewise.
110849         * modules/getaddrinfo (Depends-on): Likewise.
110850         * modules/glob (Depends-on): Likewise.
110851         * modules/inet_ntop (Depends-on): Likewise.
110852         * modules/inet_pton (Depends-on): Likewise.
110853         * modules/memxor (Depends-on): Likewise.
110854         * modules/regex (Depends-on): Likewise.
110855         * modules/strtok_r (Depends-on): Likewise.
110856         * modules/time_r (Depends-on): Likewise.
110858 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
110860         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
110861         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
110862         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
110863         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
110864         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
110865         * m4/memxor.m4 (gl_MEMXOR): Likewise.
110866         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
110867         gl_C_RESTRICT replaced by AC_C_RESTRICT.
110869         Merge from coreutils.
110870         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
110871         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
110872         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
110873         * m4/time_r.m4 (gl_TIME_R): Likewise.
110875 2006-08-09  Karl Berry  <karl@gnu.org>
110877         * config/srclist.txt: no more gettext-tools, per Bruno.
110879 2006-08-08  Eric Blake  <ebb9@byu.net>
110881         * modules/verror: New module.
110882         * MODULES.html.sh: Document it.
110884 2006-08-08  Eric Blake  <ebb9@byu.net>
110886         * lib/verror.h, lib/verror.c: New files.
110888 2006-08-08  Eric Blake  <ebb9@byu.net>
110890         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
110891         verror_at_line output complies with GNU Coding Standards even when
110892         file is NULL.
110894 2006-08-07  Bruno Haible  <bruno@clisp.org>
110896         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
110897         versions of AIX.
110898         Reported by Ralf Wildenhues.
110900 2006-08-07  Bruno Haible  <bruno@clisp.org>
110902         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
110903         in an AC_DEFUN. Needed so that the autoconf snippets can use
110904         AC_REQUIRE.
110906 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
110908         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
110909         Initialize pkgdata_DATA.
110910         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
110911         overriding it.
110913 2006-08-06  Eric Blake  <ebb9@byu.net>
110915         * lib/error.h: Fold in some upstream changes from glibc.
110916         * lib/error.c: Likewise.
110918 2006-08-04  Bruno Haible  <bruno@clisp.org>
110920         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
110921         Make the mostlyclean-local rule depend on mostlyclean-generic.
110922         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
110924 2006-07-31  Bruno Haible  <bruno@clisp.org>
110926         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
110927         <stdlib.h>, <string.h>.
110929 2006-07-30  Bruno Haible  <bruno@clisp.org>
110931         * modules/readlink (License): Change to LGPL.
110933 2006-07-30  Bruno Haible  <bruno@clisp.org>
110935         * modules/javaversion (Makefile.am): Distribute javaversion.java and
110936         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
110937         set PKGDATADIR to point to it.
110939 2006-07-30  Bruno Haible  <bruno@clisp.org>
110941         * modules/csharpexec (configure.ac): Comment out macro invocation.
110942         * modules/javaexec (configure.ac): Likewise.
110943         * modules/javacomp-script (configure.ac): Likewise.
110945         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
110947 2006-07-30  Bruno Haible  <bruno@clisp.org>
110949         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
110950         linked-list.
110952 2006-07-30  Bruno Haible  <bruno@clisp.org>
110954         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
110956 2006-07-30  Bruno Haible  <bruno@clisp.org>
110958         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
110959         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
110960         get removed.
110962 2006-07-29  Bruno Haible  <bruno@clisp.org>
110964         Make it possible for gnulib-tool to work with locally modified or
110965         augmented gnulib repositories.
110966         * gnulib-tool (func_usage): Document --local-dir option.
110967         (local_gnulib_dir): New variable.
110968         Handle --local-dir option.
110969         (func_lookup_file): New function.
110970         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
110971         (func_get_description, func_get_filelist, func_get_description,
110972         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
110973         func_get_automake_snippet, func_get_include_directive,
110974         func_get_license, func_get_maintainer): Use func_lookup_file.
110975         (func_import, func_create_testdir): Use func_lookup_file.
110977 2006-07-29  Bruno Haible  <bruno@clisp.org>
110979         * modules/setenv (Depends-on): Add unistd.
110981 2006-07-29  Bruno Haible  <bruno@clisp.org>
110983         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
110985 2006-07-29  Bruno Haible  <bruno@clisp.org>
110987         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
110989 2006-07-29  Bruno Haible  <bruno@clisp.org>
110991         * gnulib-tool (import, update): If there is no Makefile.am, look at
110992         aclocal.m4, instead of bailing out.
110994 2006-07-29  Bruno Haible  <bruno@clisp.org>
110996         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
110997         Categorize the options by when they are useful.
110999 2006-07-29  Bruno Haible  <bruno@clisp.org>
111001         * gnulib-tool (func_usage): Document option --no-libtool.
111002         Handle option --no-libtool.
111003         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
111004         for changed semantics of $libtool variable.
111005         (func_import): Likewise. If libtool is not used, show this through
111006         an option --no-libtool.
111007         (func_create_testdir): Update.
111009 2006-07-29  Bruno Haible  <bruno@clisp.org>
111011         * gnulib-tool (func_import): Extend error message about missing
111012         --doc-base.
111014 2006-07-29  Bruno Haible  <bruno@clisp.org>
111016         * gnulib-tool (func_import): Don't create the $docbase directory if
111017         there is no file to store there.
111019 2006-07-29  Bruno Haible  <bruno@clisp.org>
111021         * gnulib-tool (autoconf_minversion): If a --dir option is given and
111022         relevant, look for configure.ac there, not in the current directory.
111023         Also use a simple search for AC_PREREQ, not "autoconf --trace".
111025 2006-07-29  Bruno Haible  <bruno@clisp.org>
111027         * gnulib-tool (SORT): New variable.
111028         (func_usage): Undocument --assume-autoconf option.
111029         Remove --assume-autoconf option handling.
111030         (autoconf_minversion): Determine from the contents of configure.ac.
111031         (func_import): Remove autoconf_minversion handling.
111032         Suggested by Eric Blake.
111034 2006-07-29  Bruno Haible  <bruno@clisp.org>
111036         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
111038 2006-07-29  Bruno Haible  <bruno@clisp.org>
111040         * config/srclist.txt (*setenv.[ch]): Remove rules.
111042 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
111044         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
111046 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
111048         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
111049         arpa/inet.h.
111051 2006-07-28  Simon Josefsson  <jas@extundo.com>
111053         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
111054         * modules/inet_pton (Depends-on): Likewise.
111056 2006-07-28  Simon Josefsson  <jas@extundo.com>
111058         * m4/netinet_in_h.m4: New file.
111060 2006-07-28  Simon Josefsson  <jas@extundo.com>
111062         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
111063         #include's.
111065 2006-07-28  Simon Josefsson  <jas@extundo.com>
111067         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
111068         #include's.
111070 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
111072         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
111073         setgid on directories only if they set these bits.
111074         * lib/modechange.h: Remove obsolete comment about masks.
111076 2006-07-28  Eric Blake  <ebb9@byu.net>
111078         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
111079         macro expansion.
111081 2006-07-28  Bruno Haible  <bruno@clisp.org>
111083         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
111085 2006-07-28  Bruno Haible  <bruno@clisp.org>
111087         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
111089 2006-07-28  Bruno Haible  <bruno@clisp.org>
111091         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
111092         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
111093         Define fallbacks.
111094         Avoids link error on FreeBSD 4.x.
111095         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
111097         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
111098         encoding.
111099         * lib/mbswidth.c (iswcntrl): Likewise.
111101 2006-07-27  Bruno Haible  <bruno@clisp.org>
111103         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
111104         test.
111106 2006-07-27  Bruno Haible  <bruno@clisp.org>
111108         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
111109         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
111110         defined.
111112 2006-07-26  Eric Blake  <ebb9@byu.net>
111114         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
111116 2006-07-26  Eric Blake  <ebb9@byu.net>
111118         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
111119         like mingw that lack mkstemp.
111120         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
111121         avoid compilation warning on mingw.
111123 2006-07-26  Bruno Haible  <bruno@clisp.org>
111125         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
111126         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
111127         INT_FAST*_MIN, INTPTR_MIN.
111129 2006-07-25  Bruno Haible  <bruno@clisp.org>
111131         * modules/version-etc (Depends-on): Add stdarg.
111133 2006-07-25  Bruno Haible  <bruno@clisp.org>
111135         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
111136         complex commands.
111138 2006-07-25  Bruno Haible  <bruno@clisp.org>
111140         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
111141         defined in <stdarg.h> or config.h.
111143 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
111145         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
111146         (gl_STDIO_SAFER): Remove.
111148 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
111150         * MODULES.html.sh (File stream based Input/Output):
111151         Add fopen-safer, tmpfile-safer; remove stdio-safer.
111152         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
111153         * modules/fopen-safer, modules/tmpfile-safer: New files.
111154         * modules/stdio-safer: Remove.
111156 2006-07-24  Bruno Haible  <bruno@clisp.org>
111158         * modules/tmpdir: New file.
111159         * MODULES.html.sh (File system functions): Add it.
111161 2006-07-24  Bruno Haible  <bruno@clisp.org>
111163         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
111164         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
111166 2006-07-24  Bruno Haible  <bruno@clisp.org>
111168         * modules/clean-temp: New file.
111170 2006-07-24  Bruno Haible  <bruno@clisp.org>
111172         * m4/tmpdir.m4: New file, from GNU gettext.
111174 2006-07-24  Bruno Haible  <bruno@clisp.org>
111176         * lib/tmpdir.h: New file, from GNU gettext.
111177         * lib/tmpdir.c: New file, from GNU gettext.
111179 2006-07-24  Bruno Haible  <bruno@clisp.org>
111181         * lib/clean-temp.h: New file, from GNU gettext.
111182         * lib/clean-temp.c: New file, from GNU gettext.
111184 2006-07-23  Eric Blake  <ebb9@byu.net>
111186         * modules/stdio-safer (Files): Add tmpfile-safer.c.
111187         (Depends-on): Add binary-io.
111189 2006-07-23  Eric Blake  <ebb9@byu.net>
111191         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
111193 2006-07-23  Eric Blake  <ebb9@byu.net>
111195         * lib/tmpfile-safer.c: New file.
111196         * lib/stdio-safer.h (fopen_safer): Add prototype.
111197         * lib/stdio--.h (tmpfile): Make safer.
111199 2006-07-23  Bruno Haible  <bruno@clisp.org>
111201         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
111202         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
111203         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
111204         gl_linked_remove_at): Use it.
111206 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
111207         and Simon Josefsson <jas@extundo.com>
111209         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
111211         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
111213 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
111215         * modules/close-stream: New file.
111216         * modules/closeout (Description): Make it clear that it exits
111217         with a diagnostic on error.
111218         (Depends-on): Add close-stream.  Remove fpending, stdbool.
111219         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
111221 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
111223         * m4/close-stream.m4: New file.
111225 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
111227         * lib/close-stream.c, lib/close-stream.h: New files.
111229 2006-07-22  Bruno Haible  <bruno@clisp.org>
111231         Merge from GNU gettext 0.15.
111233         2006-05-01  Bruno Haible  <bruno@clisp.org>
111235                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
111237         2006-07-22  Bruno Haible  <bruno@clisp.org>
111239                 * modules/javaversion: New file.
111240                 * MODULES.html.sh (Java): Add javaversion.
111242         2006-03-12  Bruno Haible  <bruno@clisp.org>
111244                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
111246         2005-12-04  Bruno Haible  <bruno@clisp.org>
111248                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
111249                 (untested).
111251         2006-06-21  Bruno Haible  <bruno@clisp.org>
111253                 Avoid warnings from recent versions of mcs.
111254                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
111255                 -o, -L, -r any more. Use options documented since mcs-1.0
111256                 instead. Similarly for -g.
111258         2005-12-04  Bruno Haible  <bruno@clisp.org>
111260                 * build-aux/csharpcomp.sh.in: Suffix for resources is
111261                 .resources, not .resource.
111263         2005-07-09  Bruno Haible  <bruno@clisp.org>
111265                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
111266                 add a .dll suffix.
111267                 Reported by Mark Junker <mjscod@gmx.de>.
111269         2006-07-22  Bruno Haible  <bruno@clisp.org>
111271                 * modules/gettext: Upgrade to gettext-0.15.
111272                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
111273                 m4/visibility.m4.
111274                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
111276 2006-07-22  Bruno Haible  <bruno@clisp.org>
111278         Merge from GNU gettext 0.15.
111280         2006-03-25  Bruno Haible  <bruno@clisp.org>
111282                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
111284         2006-07-21  Bruno Haible  <bruno@clisp.org>
111286                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
111287                 "1.1".
111289         2006-05-09  Bruno Haible  <bruno@clisp.org>
111291                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
111292                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
111293                 for the conftestver execution.
111295         2006-05-01  Bruno Haible  <bruno@clisp.org>
111297                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
111298                 optional target-version argument. Verify that the compiler
111299                 groks source of the specified source-version, or add -source
111300                 option as necessary. Verify that the compiler produces
111301                 bytecode in the specified target-version, or add -target and
111302                 -source options as necessary. Make the result of the test
111303                 available as variable CONF_JAVAC. Also log error output in
111304                 config.log.
111306         2006-03-11  Bruno Haible  <bruno@clisp.org>
111308                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
111310         2006-05-09  Bruno Haible  <bruno@clisp.org>
111312                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
111313                 CLASSPATH_SEPARATOR to a semicolon.
111315         2006-03-12  Bruno Haible  <bruno@clisp.org>
111317                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
111318                 available as variable CONF_JAVA, for subsequent autoconf
111319                 tests. Also log error output in config.log.
111321         2006-07-19  Bruno Haible  <bruno@clisp.org>
111323                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
111324                 that getline works on glibc2 systems. Needed to avoid trouble
111325                 in relocatable.c.
111326                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
111328         2005-12-04  Bruno Haible  <bruno@clisp.org>
111330                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
111331                 launcher (untested).
111333         2005-12-04  Bruno Haible  <bruno@clisp.org>
111335                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
111337         2006-07-22  Bruno Haible  <bruno@clisp.org>
111339                 * gettext.m4: Update from GNU gettext-0.15.
111340                 * nls.m4: Likewise.
111341                 * po.m4: Likewise.
111342                 * inttypes-pri.m4: Likewise.
111343                 * inttypes-h.m4: Renamed from inttypes.m4.
111344                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
111346 2006-07-22  Bruno Haible  <bruno@clisp.org>
111348         Merge from GNU gettext 0.15.
111350         2005-07-05  Bruno Haible  <bruno@clisp.org>
111352                 * printf-args.c (printf_fetchargs): Work around broken
111353                 definition of wint_t on mingw.
111355         2005-02-12  Bruno Haible  <bruno@clisp.org>
111357                 * xallocsa.h: Add extern "C" for C++.
111359         2006-05-17  Bruno Haible  <bruno@clisp.org>
111361                 Cygwin portability.
111362                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
111364         2006-04-30  Bruno Haible  <bruno@clisp.org>
111366                 * progreloc.c: Include <mach-o/dyld.h> if available.
111367                 (find_executable): Use _NSGetExecutablePath when possible.
111369         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
111371                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
111372                 function.
111374         2005-12-29  Bruno Haible  <bruno@clisp.org>
111376                 * progreloc.c (set_program_name_and_installdir): Fix
111377                 compilation error.
111379         2005-12-04  Bruno Haible  <bruno@clisp.org>
111381                 Cygwin portability.
111382                 * progreloc.c: Include <windows.h> also on Cygwin.
111383                 (find_executable): Add support for Cygwin.
111384                 (set_program_name_and_installdir): Handle also platforms with
111385                 nonempty EXEEXT.
111387         2006-07-11  Bruno Haible  <bruno@clisp.org>
111389                 * javacomp.c: Fix a comment.
111390                 Reported by Jim Meyering.
111392         2006-04-30  Bruno Haible  <bruno@clisp.org>
111394                 * javacomp.h (compile_java_class): Add source_version,
111395                 target_version arguments.
111396                 * javacomp.c: Rewritten to choose only a compiler that
111397                 respects the specified source_version and target_version.
111399         2006-06-27  Bruno Haible  <bruno@clisp.org>
111401                 Assume correct S_ISDIR macro.
111402                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
111404         2006-07-22  Bruno Haible  <bruno@clisp.org>
111406                 * javaversion.h: New file, from GNU gettext.
111407                 * javaversion.c: New file, from GNU gettext.
111408                 * javaversion.java: New file, from GNU gettext.
111409                 * javaversion.class: New file, from GNU gettext.
111411         2006-05-17  Bruno Haible  <bruno@clisp.org>
111413                 Cygwin portability.
111414                 * javaexec.c (execute_java_class): Test for jview program
111415                 also on Cygwin.
111417         2006-04-09  Bruno Haible  <bruno@clisp.org>
111419                 * fatal-signal.c: Don't include string.h.
111420                 (at_fatal_signal): Use a copying loop instead of memcpy.
111422         2005-12-04  Bruno Haible  <bruno@clisp.org>
111424                 * csharpexec.c: Add support for 'clix' launcher (untested).
111425                 (execute_csharp_using_sscli): New function.
111426                 (execute_csharp_program): Call it.
111428         2006-06-21  Bruno Haible  <bruno@clisp.org>
111430                 Avoid warnings from recent versions of mcs.
111431                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
111432                 -o, -L, -r any more. Use options documented since mcs-1.0
111433                 instead. Similarly for -g.
111435         2005-07-09  Bruno Haible  <bruno@clisp.org>
111437                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
111438                 add a .dll suffix.
111439                 Reported by Mark Junker <mjscod@gmx.de>.
111441         2006-06-17  Bruno Haible  <bruno@clisp.org>
111443                 * config.charset: Update for NetBSD 3.0.
111445         2006-05-17  Bruno Haible  <bruno@clisp.org>
111447                 Cygwin portability.
111448                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
111450         2006-05-16  Bruno Haible  <bruno@clisp.org>
111452                 * localcharset.c [CYGWIN]: Include <windows.h>.
111453                 (get_charset_aliases): For Cygwin, return the same CPxxx
111454                 aliases list as under WIN32.
111455                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
111456                 the environment variables. Fall back to GetACP().
111458         2006-04-05  Bruno Haible  <bruno@clisp.org>
111460                 * config.charset: Update Juan Manuel Guerrero's address.
111462         2005-02-12  Bruno Haible  <bruno@clisp.org>
111464                 * allocsa.h: Add extern "C" for C++.
111466         2005-02-10  Bruno Haible  <bruno@clisp.org>
111468                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
111469                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
111471         2006-07-22  Bruno Haible  <bruno@clisp.org>
111473                 * gettext.h: Update to GNU gettext-0.15.
111475 2006-07-22  Bruno Haible  <bruno@clisp.org>
111477         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
111478         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
111479         lib-prefix.m4, longdouble.m4, ssize_t.m4.
111481 2006-07-21  Eric Blake  <ebb9@byu.net>
111483         * modules/stdlib-safer: New file.
111484         * MODULES.html.sh (File stream based Input/Output): Add
111485         stdlib-safer.
111487 2006-07-21  Eric Blake  <ebb9@byu.net>
111489         * lib/stdlib-safer.h: New file from coreutils, required by
111490         stdlib--.h.
111492 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
111494         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
111496 2006-07-20  Bruno Haible  <bruno@clisp.org>
111498         * gnulib-tool: Recognize new option --assume-autoconf.
111499         (autoconf_minversion): New variable.
111500         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
111502 2006-07-20  Bruno Haible  <bruno@clisp.org>
111504         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
111506 2006-07-19  Derek R. Price  <derek@ximbiot.com>
111508         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
111509         Reindent and repaginate.
111511 2006-07-19  Derek Price  <derek@ximbiot.com>
111513         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
111514         Correct grammar.
111516 2006-07-17  Bruno Haible  <bruno@clisp.org>
111518         * modules/list: New file.
111519         * modules/array-list: New file.
111520         * modules/carray-list, modules/carray-list-tests: New files.
111521         * modules/linked-list, modules/linked-list-tests: New files.
111522         * modules/avltree-list, modules/avltree-list-tests: New files.
111523         * modules/rbtree-list, modules/rbtree-list-tests: New files.
111524         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
111525         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
111526         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
111527         * modules/oset: New file.
111528         * modules/array-oset: New file.
111529         * modules/avltree-oset, modules/avltree-oset-tests: New files.
111530         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
111531         * tests/test-carray_list.c: New file.
111532         * tests/test-linked_list.c: New file.
111533         * tests/test-avltree_list.c: New file.
111534         * tests/test-rbtree_list.c: New file.
111535         * tests/test-linkedhash_list.c: New file.
111536         * tests/test-avltreehash_list.c: New file.
111537         * tests/test-rbtreehash_list.c: New file.
111538         * tests/test-avltree_oset.c: New file.
111539         * tests/test-rbtree_oset.c: New file.
111540         * MODULES.html.sh (Container data structures): New section.
111542 2006-07-17  Bruno Haible  <bruno@clisp.org>
111544         * m4/gl_list.m4: New file.
111546 2006-07-17  Bruno Haible  <bruno@clisp.org>
111548         * lib/gl_list.h: New file.
111549         * lib/gl_list.c: New file.
111550         * lib/gl_array_list.h: New file.
111551         * lib/gl_array_list.c: New file.
111552         * lib/gl_carray_list.h: New file.
111553         * lib/gl_carray_list.c: New file.
111554         * lib/gl_linked_list.h: New file.
111555         * lib/gl_linked_list.c: New file.
111556         * lib/gl_anylinked_list1.h: New file.
111557         * lib/gl_anylinked_list2.h: New file.
111558         * lib/gl_avltree_list.h: New file.
111559         * lib/gl_avltree_list.c: New file.
111560         * lib/gl_anyavltree_list1.h: New file.
111561         * lib/gl_anyavltree_list2.h: New file.
111562         * lib/gl_rbtree_list.h: New file.
111563         * lib/gl_rbtree_list.c: New file.
111564         * lib/gl_anyrbtree_list1.h: New file.
111565         * lib/gl_anyrbtree_list2.h: New file.
111566         * lib/gl_anytree_list1.h: New file.
111567         * lib/gl_anytree_list2.h: New file.
111568         * lib/gl_linkedhash_list.h: New file.
111569         * lib/gl_linkedhash_list.c: New file.
111570         * lib/gl_anyhash_list1.h: New file.
111571         * lib/gl_anyhash_list2.h: New file.
111572         * lib/gl_avltreehash_list.h: New file.
111573         * lib/gl_avltreehash_list.c: New file.
111574         * lib/gl_rbtreehash_list.h: New file.
111575         * lib/gl_rbtreehash_list.c: New file.
111576         * lib/gl_anytreehash_list1.h: New file.
111577         * lib/gl_anytreehash_list2.h: New file.
111579         * lib/gl_oset.h: New file.
111580         * lib/gl_oset.c: New file.
111581         * lib/gl_array_oset.h: New file.
111582         * lib/gl_array_oset.c: New file.
111583         * lib/gl_avltree_oset.h: New file.
111584         * lib/gl_avltree_oset.c: New file.
111585         * lib/gl_rbtree_oset.h: New file.
111586         * lib/gl_rbtree_oset.c: New file.
111587         * lib/gl_anytree_oset.h: New file.
111589 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
111591         * m4/mkancesdirs.m4: New file.
111592         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
111593         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
111594         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
111595         it.
111597 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
111599         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
111600         * lib/mkancesdirs.h: New files.
111601         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
111602         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
111603         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
111604         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
111605         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
111606         callers changed.  Revamp internals significantly, by not
111607         attempting to create directories that are temporarily more
111608         permissive than the final results.  Do not attempt to use
111609         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
111610         This removes some race conditions, fixes some bugs, and simplifies
111611         things.  Use new dirchownmod function to do owner and mode changes.
111612         * lib/mkdir-p.h: Likewise.
111613         * lib/modechange.c (octal_to_mode): New function.
111614         (struct mode_change): New member mentioned.
111615         (make_node_op_equals): New arg mentioned.  All callers changed.
111616         (mode_compile): Keep track of which mode bits the user has explicitly
111617         mentioned.
111618         (mode_adjust): New arg DIR, so that we implement the X op correctly.
111619         New arg PMODE_BITS, to keep track of which mode bits the user
111620         mentioned; it treats S_ISUID and S_ISGID speciall.
111621         All callers changed.
111622         * lib/modechange.h: Likewise.
111624 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
111626         * MODULES.html.sh: Add mkancestors.
111627         * modules/mkancesdirs: New module.
111628         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
111629         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
111630         The chdir-safer and afs files are now orphans; I'll remove them
111631         unless someone speaks up.
111632         Add lib/dirchownmod.c, lib/dirchownmod.h.
111633         (Depends-on): Remove alloca, chown, save-cwd, dirname.
111634         Add lchown, mkancesdirs.
111635         (Maintainer): Add self.
111637 2006-07-15  Karl Berry  <karl@gnu.org>
111639         * gnulib-tool: help message wording/arrangement.
111641 2006-07-14  Simon Josefsson  <jas@extundo.com>
111643         * doc/gnulib.texi (Libtool and Windows): New section.
111645 2006-07-12  Simon Josefsson  <jas@extundo.com>
111647         * modules/gendocs (License): Fix license, approved by Karl.
111649 2006-07-12  Eric Blake  <ebb9@byu.net>
111651         * MODULES.html.sh: Add gendocs.
111653 2006-07-11  Eric Blake  <ebb9@byu.net>
111655         * modules/fdl: New module, to install doc/fdl.texi.
111656         * MODULES.html.sh: Add new section for documentation modules.
111657         * gnulib-tool: Avoid space-tab.
111658         (--doc-base): New option, to manage files from doc.
111660 2006-07-11  Eric Blake  <ebb9@byu.net>
111662         * m4/absolute-header.m4: Fix comments to match recent change.
111664 2006-07-11  Eric Blake  <ebb9@byu.net>
111666         * gnulib-tool: List --doc-base before --tests-base.
111668 2006-07-11  Derek R. Price  <derek@ximbiot.com>
111670         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
111672 2006-07-11  Bruno Haible  <bruno@clisp.org>
111674         * README: Mention where to put documentation.
111676 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
111678         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
111680 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
111682         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
111683         to stdint.m4.
111685 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
111687         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
111688         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
111689         "no/such/file/stdint.h" when there is no such file, so that
111690         the resulting C code can be parsed by dodgy compilers.
111691         Problems reported by Bob Proulx.
111693 2006-07-10  Derek R. Price  <derek@ximbiot.com>
111695         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
111696         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
111697         macros into the GNU _D_EXACT_NAMLEN.
111698         * lib/savedir.c:  Likewise.
111699         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
111701 2006-07-10  Derek R. Price  <derek@ximbiot.com>
111702         and Paul Eggert  <eggert@cs.ucla.edu>
111704         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
111705         * m4/savedir.m4:
111706         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
111707         macros into the GNU _D_EXACT_NAMLEN.
111709 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
111711         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
111712         around the absolute name, to work around a problem with the HP-UX
111713         11.23 native C compiler, reported by Bob Proulx.
111715 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
111717         * doc/maintain.texi, make-stds.texi: Sync from
111718         <http://savannah.gnu.org/projects/gnustandards>.
111720 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
111722         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
111724 2006-07-09  Jim Meyering  <jim@meyering.net>
111726         * m4/glob.m4: Remove a doubled word in a comment.
111728 2006-07-09  Jim Meyering  <jim@meyering.net>
111730         * lib/argp-pv.c: Remove a doubled word in a comment.
111731         * lib/check-version.c (check_version): Likewise.
111732         * lib/javacomp.c (compile_java_class): Likewise.
111734 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
111736         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
111737         for the benefit of people using Autoconf 2.60.  If you want to
111738         support older Autoconf versions you can copy m4/onceonly_2_57.m4
111739         (or m4/onceonly.m4, if pre-2.57) manually.
111741 2006-07-08  Jim Meyering  <jim@meyering.net>
111743         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
111744         comment.
111745         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
111746         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
111747         comment.
111749 2006-07-08  Jim Meyering  <jim@meyering.net>
111751         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
111753 2006-07-07  Simon Josefsson  <jas@extundo.com>
111755         * tests/test-crc.c: Change expected crc value, the test vector
111756         were probably computed using the old broken crc.c?
111758 2006-07-06  Simon Josefsson  <jas@extundo.com>
111760         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
111761         now the canonical place for the M4 file).
111763         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
111764         from the sys_socket dependency now.
111766         * modules/inet_pton (Files): Ditto.
111768         * modules/inet_ntop (Files): Ditto.
111770 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
111772         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
111773         not gl_PREREQ_GETUSERSHELL.
111775 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
111777         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
111778         with only one argument, for Autoconf 2.60.
111779         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
111780         expand to nothing, so add a shell command to avoid syntax error.
111781         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
111783 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
111785         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
111787 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
111789         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
111790         no longer needed.  Check for isblank decl.
111791         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
111792         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
111793         of existence.
111795 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
111797         * lib/getloadavg.c: Use __VMS, not VMS.
111798         * lib/getopt.c: Likewise.
111799         * lib/getpagesize.h: Likewise.
111800         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
111801         and probably does not work.
111803 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
111805         * lib/.cppi-disable: Add wcwidth.
111806         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
111807         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
111808         (ISGRAPH): Remove.  All uses changed to isgraph.
111809         (FOLD) [!defined _LIBC]: Remove special case.
111810         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
111811         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
111812         HAVE_ISBLANK.
111813         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
111814         case.
111816 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
111818         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
111819         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
111820         brackets.  Other minor changes to suppress some compiler
111821         warnings.
111823 2006-07-06  Derek R. Price  <derek@ximbiot.com>
111824         and Paul Eggert  <eggert@cs.ucla.edu>
111826         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
111827         of invoking obsolescent AC_HEADER_DIRENT macro.
111828         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
111829         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
111830         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
111831         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
111832         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
111833         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
111834         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
111835         * m4/readdir.m4: Remove; no longer needed.
111837 2006-07-06  Derek R. Price  <derek@ximbiot.com>
111838         and Paul Eggert  <eggert@cs.ucla.edu>
111840         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
111841         Don't worry about this obsolete case any more.
111842         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
111843         directories.
111844         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
111845         worry about this obsolete case any more.
111846         * lib/fts.c: Likewise.
111847         * lib/getcwd.c: Likewise.
111848         * lib/glob.h: Likewise.
111849         * lib/savedir.c: Likewise.
111851 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
111853         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
111854         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
111855         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
111856         needed.
111857         All uses removed.
111858         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
111859         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
111860         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
111861         needed.
111862         * m4/getdate.m4 (gl_GETDATE): Likewise.
111863         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
111864         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
111865         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
111866         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
111867         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
111868         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
111869         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
111870         needed.
111872 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
111874         * lib/memcasecmp.c: Include <limits.h>.
111875         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
111876         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
111877         Don't assume isdigit succeeds only on '0' through '9'.
111879 2006-07-05  Eric Blake  <ebb9@byu.net>
111881         * modules/getaddrinfo (Depends-on): Add snprintf.
111883 2006-07-05  Eric Blake  <ebb9@byu.net>
111885         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
111886         to avoid 'header present but could not be compiled' on cygwin.
111888 2006-07-05  Eric Blake  <ebb9@byu.net>
111890         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
111891         missing from netdb.h.
111892         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
111894 2006-07-05  Derek R. Price  <derek@ximbiot.com>
111896         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
111897         no longer needed.
111898         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
111899         * m4/getdate.m4 (gl_GETDATE): Likewise.
111900         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
111901         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
111902         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
111903         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
111904         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
111906 2006-07-05  Derek R. Price  <derek@ximbiot.com>
111908         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
111909         All uses of is_space replaced by isspace.
111910         * lib/exit.h: Don't talk about STDC_HEADERS.
111911         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
111912         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
111913         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
111914         replaced by isprint etc.
111915         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
111916         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
111917         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
111918         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
111919         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
111920         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
111922 2006-07-05  Bruno Haible  <bruno@clisp.org>
111924         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
111925         the function exists, before testing against AIX.
111926         Reported by Martin Lambers <marlam@marlam.de>.
111928 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
111930         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
111931         From Mark D. Baushke.
111933 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
111935         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
111936         to the absolute name, not just one, to bypass Sun C 5.8's
111937         "warning: #include of /usr/include/... may be non-portable".
111939 2006-07-04  Eric Blake  <ebb9@byu.net>
111941         * modules/dirname-tests: New test module.
111942         * tests/test-dirname.c: New file, replacing dirname.c
111943         TEST_DIRNAME section that was recently deleted.
111945 2006-07-04  Bruno Haible  <bruno@clisp.org>
111947         Assume ANSI C header files and <ctype.h> functions.
111948         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
111949         (mbsnwidth): Use isprint, iscntrl instead.
111951 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
111953         Merge from coreutils.
111954         * MODULES.html.sh: Add xstrtold.
111955         * modules/xstrtold: New file.
111956         * modules/cycle-check (Files): Add lib/same-inode.h.
111957         * modules/dirname (Files): Add m4/double-slash-root.m4.
111958         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
111959         * modules/mkdir-p (Files): Add lib/same-inode.h.
111960         * modules/same (Files): Add lib/same-inode.h.
111962 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
111964         * m4/absolute-header.m4: Renamed from full-header-path.m4.
111965         This is to keep the terminology clean; POSIX talks about
111966         "absolute pathnames", not "full pathnames", but the GNU
111967         Coding Standards say to use "path" for something else;
111968         so use "absolute" to keep both sides happy.
111969         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
111970         Set gl_absolute_header, not gl_full_header_path.
111971         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
111972         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
111973         All uses changed.
111975         Merge from coreutils.
111977         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
111979         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
111980         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
111981         want to require the building of c-strtod.o.
111982         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
111983         needs -lm directly.
111984         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
111986         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
111988         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
111989         --as-needed option if available.  Problem reported by Albert Chin in
111990         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00114.html>.
111991         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
111992         cc merely issues a bunch of annoying warnings for --as-needed
111993         (this problem was reported by Bob Proulx).  Also, try linking with
111994         -lm to detect a bug in binutils 2.16 (this problem was reported
111995         by Ralf Wildenhues).
111997         2006-06-18  Jim Meyering  <jim@meyering.net>
111999         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
112000         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
112001         macro.
112002         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
112003         also check for glibc-2.4's abort-inducing bug.
112005         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
112006         Low-probability clean-up should be to use rmdir to get rid of
112007         the just-created directory, not unlink.
112009         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
112010         configure fail, and request a bug report to inform us about it.
112011         Add a comment that, barring reports to the contrary, in 2007 we'll
112012         assume ftruncate is universally available.
112014         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
112016         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
112018         2006-03-12  Jim Meyering  <jim@meyering.net>
112020         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
112021         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
112022         * m4/same.m4 (gl_SAME): Likewise.
112023         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
112025         2006-03-11  Eric Blake  <ebb9@byu.net>
112027         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
112028         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
112029         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
112030         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
112032 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
112034         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
112035         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
112036         reported by Mark D. Baushke, one in
112037         <http://lists.gnu.org/r/bug-gnulib/2006-07/msg00015.html>.
112039         Merge from coreutils.
112041         * lib/.cppi-disable: Add stdint_.h.
112042         * lib/.cvsignore: Add stdint.h.
112044         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
112046         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
112047         both double and long double versions.
112048         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
112049         * lib/xstrtold.c: New file.
112050         * lib/xstrtod.h (xstrtold): New decl.
112052         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
112054         * lib/filemode.c (setst): Remove.
112055         (strmode): Rewrite to avoid setst.  This makes the code shorter,
112056         (arguably) clearer, and the generated code is a bit smaller on my
112057         Debian GNU/Linux stable x86 host.
112059         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
112061         * lib/filemode.c: Include "filemode.h" first, to test the interface.
112062         Assume that filemode.h includes sys/types.h and sys/stat.h.
112063         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
112064         (ftypelet): Reorder to put common cases first, for efficiency.
112065         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
112066         to do 'M'.
112067         (strmode): Renamed from mode_string, and now stores 12 bytes instead
112068         of 10, for compatibility with FreeBSD.  All callers changed.
112069         (filemodestring): Now stores 12 bytes instead of 10, and sets file
112070         types that can't be deduced solely from st_mode.  First arg is now a
112071         const pointer.
112072         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
112073         (strmode): Renamed from mode_string.
112074         (filemodestring): New decl.
112075         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
112076         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
112077         needed.
112078         (S_ISPORT, S_ISWHT): New macros, if not already defined.
112080         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
112082         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
112083         fsusage.h now does that.  Include fsusage.h first, to test interface.
112084         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
112085         at most one method (the old code could have generated decls that
112086         didn't conform to C89, not that this was ever exercised).
112087         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
112089         2006-03-19  Jim Meyering  <jim@meyering.net>
112091         Work even in a chroot where d_ino values for entries in "/"
112092         don't match the stat.st_ino values for the same names.
112093         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
112094         number, iterate through all entries again, using lstat instead.
112095         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
112096         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
112098         * lib/getcwd.c (__getcwd): Clarify a comment.
112099         Use memcpy in place of a call to strcpy.
112101         2006-03-12  Jim Meyering  <jim@meyering.net>
112103         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
112104         matches that of the current directory (which we're about to chdir ".."
112105         out of), then save the dev-ino of the parent, instead.
112107         * lib/same-inode.h (SAME_INODE): New file/macro.
112108         * lib/chdir-safer.c (SAME_INODE): Remove definition.
112109         Include "same-inode.h", instead.
112110         * lib/same.c: Likewise.
112111         * lib/cycle-check.h: Include "same-inode.h".
112112         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
112113         * lib/cycle-check.c (SAME_INODE): Remove definition.
112114         * lib/root-dev-ino.h: Include "same-inode.h".
112116         2006-03-11  Eric Blake  <ebb9@byu.net>
112118         * lib/same.c (same_name): s/base_name/last_component/
112119         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
112120         * lib/filenamecat.c (file_name_concat): Likewise.
112122         2006-03-11  Eric Blake  <ebb9@byu.net>,
112123                     Paul Eggert  <eggert@cs.ucla.edu>
112125         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
112126         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
112127         drive prefix.
112128         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
112129         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
112130         (last_component): New method.
112131         * lib/dirname.c (dir_len): Determine when drive letters need a
112132         subsequent slash.  Preserve // when it is special.
112133         (dir_name): Don't append dot when drive letter is absolute.
112134         [TEST_DIRNAME]: Move into a full-blown gnulib test.
112135         * lib/basename.c (base_name): New semantics - malloc the result.
112136         Preserve // when it is special.  Preserve relative files that look
112137         like drive letters.
112138         (base_len): Preserve // when it is special.
112139         (last_component): New method, similar to old base_name semantics.
112140         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
112141         base_name.  Strip redundant slashes from ///.
112143 2006-07-03  Jim Meyering  <jim@meyering.net>
112145         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
112146         macro is used before the first cycle_check call.
112148 2006-07-03  Eric Blake  <ebb9@byu.net>
112150         * modules/dirname (Depends-on): Add xstrndup.
112152 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
112154         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
112155         test cases, so that config.log is a bit easier to follow.
112157 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
112159         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
112160         both are 64 bits, since this seems to be the tradition, and this
112161         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
112162         we ever run into a host that prefers long long to long in this
112163         case, we'll need another configure-time test.  Problem reported by
112164         Jim Meyering.
112166 2006-07-02  Eric Blake  <ebb9@byu.net>
112168         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
112170 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
112172         * modules/inttypes (Depends-on): No longer depends on stdint.
112173         * modules/stdint (Description): Say more about assumptions.
112174         Say that the fast types might differ.  Say macros are used.
112175         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
112176         (Makefile.am): Revise list of substituted symbols to match
112177         new stdint.m4.
112178         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
112179         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
112180         * tests/test-stdint.c (verify_same_types)
112181         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
112182         the code conforms to C99/C89.
112183         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
112184         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
112186 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
112188         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
112189         but fix a bug, by requiring at least 64 bits.
112190         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
112191         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
112192         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
112193         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
112195         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
112196         changes.  Make 2.59 a prerequisite.  Check and substitute for
112197         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
112198         inttypes.h.  Do not use special include files; just use the
112199         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
112200         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
112201         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
112202         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
112203         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
112204         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
112205         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
112206         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
112207         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
112208         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
112209         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
112210         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
112211         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
112212         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
112213         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
112214         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
112215         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
112216         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
112217         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
112218         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
112219         WINT_MAX.  Check for C99 conformance more strictly, by detecting
112220         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
112221         not check for things that C99 does not require, e.g., int8_t.  If
112222         a test isn't needed unless <stdint.h> isn't working, and is
112223         unlikely to be needed for any other reason, then don't do it
112224         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
112225         size_t, since we assume C89 freestanding at least.  Do not check
112226         for sig_atomic_t, wchar_t, or wint_t, since the code now does
112227         the right thing even if the types are not defined.  Instead use:
112228         (gl_STDINT_TYPE_PROPERTIES): New macro.
112229         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
112230         testing whether <sys/types.h> clashes, as Autoconf does this for
112231         us now.  All uses removed.
112232         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
112233         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
112234         (gl_CHECK_TYPE_SAME):
112235         Remove; no longer needed.
112236         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
112237         exists, since we'll return 0 anyway in that case.
112238         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
112240 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
112242         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
112243         possible collision with system files.
112244         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
112245         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
112246         WCHAR_MIN and WCHAR_MAX in this case.
112247         (<stddef.h>): Do not include; no longer needed.
112248         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
112249         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
112250         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
112251         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
112252         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
112253         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
112254         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
112255         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
112256         !defined(__c99))]: Include in this case too, since it's harmless
112257         now.
112258         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
112259         dangerous to do so.
112260         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
112261         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
112262         (_STDINT_MIN, _STDINT_MAX): New macros.
112263         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
112264         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
112265         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
112266         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
112267         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
112268         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
112269         macros, not typedefs; this simplifies things quite a bit.
112270         Use long int for all types narrower than int64_t.
112271         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
112272         Define in terms of long long int or int64_t or long int,
112273         not int64_t or int32_t.  This saves some compile-time testing.
112274         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
112275         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
112276         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
112277         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
112278         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
112279         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
112280         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
112281         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
112282         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
112283         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
112284         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
112285         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
112286         undef any previous version and define our own version, for
112287         simplicity and consistency with the new macros for types.
112288         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
112289         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
112290         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
112291         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
112292         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
112293         @WINT_T_SUFFIX@ to keep things simple here.
112294         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
112295         Simplify by assuming typical 8/16/32/64 host, since we're
112296         already doing that elsewhere anyway.
112297         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
112298         and assume long long int is 64 bits if available.  This
112299         speeds up 'configure'.
112301 2006-07-01  Eric Blake  <ebb9@byu.net>
112303         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
112304         Reported by Andreas Buening.
112306 2006-07-01  Eric Blake  <ebb9@byu.net>
112308         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
112310 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
112312         * lib/getaddrinfo.c: fixed typo
112314 2006-06-29  Jim Meyering  <jim@meyering.net>
112316         * modules/strftime (Maintainer): Add my name, since with the
112317         FPRINTFTIME changes strftime.c has forked from glibc.
112319 2006-06-29  Eric Blake  <ebb9@byu.net>
112321         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
112323 2006-06-29  Eric Blake  <ebb9@byu.net>
112325         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
112327 2006-06-29  Eric Blake  <ebb9@byu.net>
112329         * lib/stat_.h: New file.
112331 2006-06-29  Eric Blake  <ebb9@byu.net>
112333         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
112334         unused static function.
112336 2006-06-29  Eric Blake  <ebb9@byu.net>
112338         * doc/functions.texi (Function Portability): Document missing lstat
112339         on mingw.
112341 2006-06-29  Eric Blake  <ebb9@byu.net>
112343         * MODULES.html.sh: Add sys_stat.
112344         * modules/sys_stat: New module.
112345         * modules/mkstemp (Depends-on): Add sys_stat.
112347 2006-06-29  Derek R. Price  <derek@ximbiot.com>
112349         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
112351 2006-06-29  Derek R. Price  <derek@ximbiot.com>
112353         * m4/c-bs-a.m4: Removed.
112355 2006-06-29  Derek R. Price  <derek@ximbiot.com>
112357         * lib/strftime.c: Assume strftime() exists.
112359 2006-06-29  Derek Price  <derek@ximbiot.com>
112361         * modules/c-bs-a: Removed - \a is C89.
112362         * MODULES.html.sh: Remove c-bs-a.
112364 2006-06-29  Bruno Haible  <bruno@clisp.org>
112366         * modules/wcwidth (License): Change to LGPL.
112368 2006-06-28  Simon Josefsson  <jas@extundo.com>
112370         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
112371         on _WIN32.
112373         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
112374         getnameinfo.
112376 2006-06-28  Simon Josefsson  <jas@extundo.com>
112378         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
112380 2006-06-28  Simon Josefsson  <jas@extundo.com>
112382         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
112383         functions there.  It will succeed on Windows XP, but on Windows
112384         2000 and (presumably) earlier, it will fail, and use the internal
112385         re-implementation.
112386         (use_win32_p): New function.
112387         (getaddrinfo): Use strtoul on servname, to support numeric ports.
112388         Support AI_NUMERICSERV to disable getservbyname.
112389         (getnameinfo): New function, only supports
112390         NI_NUMERICHOST|NI_NUMERICSERV for now.
112392         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
112393         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
112394         getnameinfo.
112396 2006-06-28  Eric Blake  <ebb9@byu.net>
112398         * modules/wcwidth: New file.
112399         * modules/mbchar (Depends-on): Add wcwidth.
112400         * modules/mbswidth (Depends-on): Add wcwidth.
112401         * MODULES.html.sh: Add wcwidth.
112403 2006-06-28  Eric Blake  <ebb9@byu.net>
112405         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
112406         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
112408 2006-06-28  Eric Blake  <ebb9@byu.net>
112410         * lib/xvasprintf.h: Fix comments.
112412 2006-06-28  Eric Blake  <ebb9@byu.net>
112414         * lib/mbchar.h (wcwidth): Include wcwidth.h.
112415         * lib/mbswidth.c (wcwidth): Move from here...
112416         * lib/wcwidth.h: ...to this new file.
112418 2006-06-28  Derek R. Price  <derek@ximbiot.com>
112420         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
112422         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
112423         it's obsolete.
112424         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
112426 2006-06-28  Derek R. Price  <derek@ximbiot.com>
112428         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
112429         Autoconf 2.60 says this stuff was obsolete.
112431 2006-06-28  Bruno Haible  <bruno@clisp.org>
112433         * modules/wcwidth (Files): Add m4/wchar_t.m4.
112435 2006-06-28  Bruno Haible  <bruno@clisp.org>
112437         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
112438         gt_TYPE_WCHAR_T.
112440 2006-06-28  Bruno Haible  <bruno@clisp.org>
112442         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
112443         declaration for wcwidth.
112444         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctype.h>.
112446 2006-06-28  Bruno Haible  <bruno@clisp.org>
112448         * lib/mkdtemp.c [MINGW]: Include <io.h>.
112449         (mkdir): Define using _mkdir.
112451 2006-06-28  Bruno Haible  <bruno@clisp.org>
112453         * lib/getaddrinfo.h: Fix POSIX URL.
112454         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
112455         _WIN32.
112456         (use_win32_p): Make static.
112457         (getaddrinfo): Reject service name if it is empty or does not consist
112458         solely of decimal digits, or if its value is > 65535.
112459         (getnameinfo): Remove useless casts.
112461 2006-06-27  Simon Josefsson  <jas@extundo.com>
112463         * modules/sys_select: New file, suggested by Bruno Haible, Paul
112464         Eggert and Martin Lambers.
112466 2006-06-27  Simon Josefsson  <jas@extundo.com>
112468         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
112469         Eggert and Martin Lambers.
112471 2006-06-27  Bruno Haible  <bruno@clisp.org>
112473         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
112474         result to 0, not to empty.
112475         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
112477 2006-06-27  Bruno Haible  <bruno@clisp.org>
112479         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
112481 2006-06-26  Simon Josefsson  <jas@extundo.com>
112483         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
112484         present.
112486 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
112488         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
112489         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
112490         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00181.html>.
112492 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
112494         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
112496 2006-06-26  Bruno Haible  <bruno@clisp.org>
112498         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
112500 2006-06-26  Bruno Haible  <bruno@clisp.org>
112502         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
112504 2006-06-26  Bruno Haible  <bruno@clisp.org>
112506         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
112507         SGI C compiler in pre-C99 mode.
112508         Suggested by Mark D. Baushke and Larry Jones.
112510 2006-06-26  Bruno Haible  <bruno@clisp.org>
112512         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
112513         WCHAR_MAX.
112514         Reported by Mark D. Baushke and Larry Jones.
112516 2006-06-26  Bruno Haible  <bruno@clisp.org>
112518         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
112519         in pre-C99 mode.
112520         Suggested by Mark D. Baushke and Larry Jones.
112522 2006-06-23  Simon Josefsson  <jas@extundo.com>
112523             Bruno Haible  <bruno@clisp.org>
112525         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
112526         Emit mostlyclean-local rule.
112527         (func_emit_tests_Makefile_am): Likewise.
112528         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
112530 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
112532         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
112534 2006-06-23  Bruno Haible  <bruno@clisp.org>
112536         * tests/test-stdint.c: Update to match ISO C 99 Technical
112537         Corrigendum 1.
112539 2006-06-23  Bruno Haible  <bruno@clisp.org>
112541         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
112543 2006-06-23  Bruno Haible  <bruno@clisp.org>
112545         * lib/stdint_.h: Treat IRIX like OpenBSD.
112547 2006-06-23  Bruno Haible  <bruno@clisp.org>
112549         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
112550         ISO C 99 Technical Corrigendum 1.
112552 2006-06-22  Simon Josefsson  <jas@extundo.com>
112554         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
112555         MinGW.
112557 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
112559         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
112560         needed.  Some compiler complained about some of them.  Problem reported
112561         by Larry Jones in
112562         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00172.html>.
112564 2006-06-21  Simon Josefsson  <jas@extundo.com>
112566         * tests/test-getaddrinfo.c: New file.
112568         * modules/getaddrinfo-tests: New file.
112570         * MODULES.html.sh: Add inet_pton.
112572         * modules/inet_pton: New file.
112574 2006-06-21  Simon Josefsson  <jas@extundo.com>
112576         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
112577         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
112578         of using the (limited) gnulib implementation on Windows XP.
112580         * m4/inet_pton.m4: New file.
112582 2006-06-21  Simon Josefsson  <jas@extundo.com>
112584         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
112585         variable.
112587         * lib/socket_.h: Don't define WINVER.
112589         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
112590         slightly modified to work in gnulib.
112592 2006-06-21  Simon Josefsson  <jas@extundo.com>
112594         * doc/gnulib.texi (Windows sockets): Add.
112596 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
112598         * lib/read-file.c (fread_file): Start with buffer allocation of
112599         0 bytes rather than 1 byte; this simplifies the code.
112600         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
112601         code to free buffer and save/restore errno.
112602         (internal_read_file): Remove unused local.
112604 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
112606         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
112607         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
112608         Problem reported by Denis Excoffier in
112609         <http://lists.gnu.org/r/bug-tar/2006-06/msg00023.html>.
112611 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
112613         * modules/sys_socket, modules/socklen: Include sys/types since
112614         FreeBSD 4.x's sys/socket.h needs it.
112616 2006-06-19  Simon Josefsson  <jas@extundo.com>
112618         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
112620 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
112622         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
112624 2006-06-19  Bruno Haible  <bruno@clisp.org>
112626         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
112627         and FULL_PATH_INTTYPES_H in angle brackets.
112628         Reported by Mark D. Baushke <mdb@gnu.org>.
112630 2006-06-17  Eric Blake  <ebb9@byu.net>
112632         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
112633         errno.
112635 2006-06-17  Bruno Haible  <bruno@clisp.org>
112637         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
112638         <sys/inttypes.h>.
112640 2006-06-17  Bruno Haible  <bruno@clisp.org>
112642         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
112643         whether errno is declared. Assume <errno.h> declares errno.
112645 2006-06-17  Bruno Haible  <bruno@clisp.org>
112647         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
112649 2006-06-17  Bruno Haible  <bruno@clisp.org>
112651         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
112652         problem on Solaris 2.5.1.
112654 2006-06-16  Eric Blake  <ebb9@byu.net>
112656         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
112657         * lib/unicodeio.c [!defined errno]: Likewise.
112658         * lib/strtol.c [!defined errno]: Likewise.
112659         * lib/strtod.c [!defined errno]: Likewise.
112661 2006-06-15  Eric Blake  <ebb9@byu.net>
112663         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
112665 2006-06-15  Eric Blake  <ebb9@byu.net>
112667         * config/srclist.txt (ssize_t.m4): Lose sync.
112669 2006-06-15  Bruno Haible  <bruno@clisp.org>
112671         * modules/stdint (Files): Include m4/full-header-path.m4,
112672         m4/size_max.m4, m4/wchar_t.m4.
112673         (Makefile.am): Many more substitutions.
112674         * modules/stdint-tests: New file.
112675         * tests/test-stdint.c: New file.
112677 2006-06-15  Bruno Haible  <bruno@clisp.org>
112679         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
112680         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
112681         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
112682         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
112683         gl_CHECK_TYPE_SAME): New macros.
112685 2006-06-15  Bruno Haible  <bruno@clisp.org>
112687         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
112689 2006-06-15  Bruno Haible  <bruno@clisp.org>
112691         * lib/stdint_.h: Rewritten to be fully auto-configured.
112692         Fixes bug on HP-UX/IA64.
112694 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
112696         * lib/getdate.y (__attribute__): Don't define if already defined.
112697         Problem reported by Larry Jones.
112698         * lib/utimens.c (__attribute__): Likewise.
112700 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
112702         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
112703         reported by Andreas Schwab.
112705 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112706             Bruno Haible  <bruno@clisp.org>
112708         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
112709         check for the declaration of strnlen and a run test that exposes the
112710         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
112711         rpl_strndup.
112713 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112714             Bruno Haible  <bruno@clisp.org>
112716         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
112718 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112720         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
112721         compile test, for Tru64 4.0D.
112723 2006-05-28  Karl Berry  <karl@gnu.org>
112725         * config/srclist.txt (printf-args.c): lose sync.
112727 2006-05-26  Martin Lambers  <marlam@marlam.de>
112729         * lib/getpass.c: Updates the test for the native W32 API, and adds
112730         missing includes, thus fixing compilation warnings.
112732 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
112734         * lib/exclude.c (exclude_fnmatch): New function.
112735         (excluded_file_name): Call exclude_fnmatch.
112736         * lib/exclude.h (excluded_file_name): New prototype
112738 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
112740         * lib/tempname.c (small_open, large_open): New macros.
112741         (__open, __open64) [!_LIBC]: Remove.
112742         (__gen_tempname): Use small_open and large_open instead of __open
112743         and __open64.  This fixes a portability bug on HP-UX 11.11i
112744         reported by Simon Wing-Tang in
112745         <http://lists.gnu.org/r/bug-coreutils/2006-05/msg00114.html>.
112747 2006-05-24  Bruno Haible  <bruno@clisp.org>
112749         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
112750         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
112751         Reported by Thorsten Maerz <torte@netztorte.de> via
112752         Aaron Stone <aaron@serendipity.cx>.
112754 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
112756         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
112757         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
112758         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
112759         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
112760         not really conditional on the cache.
112761         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
112763 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
112765         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
112766         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
112767         (my_usleep): Don't mishandle maximum value.
112769 2006-05-19  Jim Meyering  <jim@meyering.net>
112771         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
112773 2006-05-17  Bruno Haible  <bruno@clisp.org>
112775         Cygwin portability.
112776         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
112778 2006-05-17  Bruno Haible  <bruno@clisp.org>
112780         * lib/stdint_.h: Fix recognition of Cygwin.
112782 2006-05-15  Bruno Haible  <bruno@clisp.org>
112784         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
112785         on libtool patch by Ralf Wildenhues.
112787 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
112789         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
112790         test for C99 conformance; (bool) 0.5 is an integer constant
112791         expression, but (bool) -0.5 is not.  Problem reported by Fedor
112792         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
112794 2006-05-11  Simon Josefsson  <jas@extundo.com>
112796         * m4/xvasprintf.m4: Fix obvious typo.
112798 2006-05-11  Jim Meyering  <jim@meyering.net>
112800         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
112801         James Lemley.
112803 2006-05-10  Simon Josefsson  <jas@extundo.com>
112805         * lib/md4.c: Typo fix, update copyright years.
112806         (K1, K2): Don't use L because it turn computations into 64-bit on
112807         64-bit platforms.
112809 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
112811         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
112812         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
112813         unwanted sign propagation, e.g., on hosts with 64-bit int.
112814         There still are some problems with reeelly weird theoretical hosts
112815         (e.g., 33-bit int) but it's not worth worrying about now.
112816         * lib/sha1.c (rol): Likewise.
112817         (K1, K2, K3, K4): Remove unnecessary L suffix.
112819 2006-05-10  Bruno Haible  <bruno@clisp.org>
112821         * lib/des.c: Cast to avoid warnings.
112823 2006-05-09  Bruno Haible  <bruno@clisp.org>
112825         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
112826         (Depends-on): Depend also on xsize, stdarg.
112827         (configure.ac): Add gl_XVASPRINTF.
112829 2006-05-09  Bruno Haible  <bruno@clisp.org>
112831         * m4/xvasprintf.m4: New file.
112833 2006-05-09  Bruno Haible  <bruno@clisp.org>
112835         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
112836         (EOVERFLOW): Define fallback value.
112837         (xstrcat): New function.
112838         (xvasprintf): Recognize the special case of a string concatenation.
112840 2006-05-08  Eric Blake  <ebb9@byu.net>
112842         * gnulib-tool (func_version): Base copyright year on CVS date.
112843         (func_emit_copyright_notice): New function.
112844         (func_emit_lib_Makefile_am): Use it.
112845         (func_emit_tests_Makefile_am): Likewise.
112846         (func_import): Likewise.
112848 2006-05-08  Bruno Haible  <bruno@clisp.org>
112850         * modules/stdarg: New file.
112851         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
112853 2006-05-08  Bruno Haible  <bruno@clisp.org>
112855         * m4/stdarg.m4: New file, from GNU gettext.
112857 2006-05-08  Bruno Haible  <bruno@clisp.org>
112859         * config/srclist.txt (build-aux/config.rpath): different from latest
112860         release.
112862 2006-05-08  Bruno Haible  <bruno@clisp.org>
112864         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
112866 2006-05-05  Jim Meyering  <jim@meyering.net>
112868         * m4/warning.m4: New file, derived from bison's file by the same name.
112870 2006-05-03  Bruno Haible  <bruno@clisp.org>
112872         * lib/stdint_.h: Shorter URL.
112873         * lib/inttypes.h: Likewise.
112875 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
112877         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
112879 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
112881         * lib/verify.h: Document the internals better.  Most of this change
112882         was written by Bruno Haible.
112884 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
112886         * doc/verify.texi: New file, partly based on a proposal by
112887         Bruno Haible.
112889 2006-05-02  Bruno Haible  <bruno@clisp.org>
112891         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
112892         test from here...
112893         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
112895 2006-04-29  Bruno Haible  <bruno@clisp.org>
112897         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
112898         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
112900 2006-04-29  Bruno Haible  <bruno@clisp.org>
112902         * gnulib-tool: Make --update option actually work.
112904 2006-04-29  Bruno Haible  <bruno@clisp.org>
112906         * doc/gcd.texi: New file.
112907         * doc/gnulib.texi: Include it.
112909 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
112911         * lib/getdate.y (get_date): When adding relative date, start with the
112912         initial time, not with the result of the first mktime call.
112914 2006-04-25  Bruno Haible  <bruno@clisp.org>
112916         * gnulib-tool (func_import): Output the include directives in three
112917         blocks, sorted separately.
112918         Reported by Ben Pfaff <blp@cs.stanford.edu>.
112920 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
112922         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
112923         to define main with arguments, for C++.  Reported by Eric Blake.
112924         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
112925         Prefer 'int main ()' to 'int main (void)', for C++.
112926         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
112927         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
112928         for 'main', for C99 and C++.
112930 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
112932         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
112933         Don't assume that exit status -1 is valid.
112934         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
112935         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
112936         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
112937         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
112938         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
112939         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
112940         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
112941         functions can be used without declaring them, or that you can
112942         exit with status -1.
112943         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
112945 2006-04-24  Karl Berry  <karl@gnu.org>
112947         * config/srclist.txt (longdouble.m4): sync lost.
112949 2006-04-24  Eric Blake  <ebb9@byu.net>
112951         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
112953 2006-04-24  Bruno Haible  <bruno@clisp.org>
112955         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
112956         poll() implementation in AIX.
112957         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
112959 2006-04-24  Bruno Haible  <bruno@clisp.org>
112961         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
112962         assigned exactly once.
112964 2006-04-23  Claudio Fontana  <claudio@gnu.org>
112965             Bruno Haible  <bruno@clisp.org>
112967         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
112968         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
112969         for AM_CPPFLAGS.
112971 2006-04-23  Bruno Haible  <bruno@clisp.org>
112973         * modules/copy-file: Depend on unistd.
112974         * modules/execute: Likewise.
112975         * modules/fatal-signal: Likewise.
112976         * modules/findprog: Likewise.
112977         * modules/mkdtemp : Likewise.
112978         * modules/pipe: Likewise.
112979         * modules/wait-process: Likewise.
112981 2006-04-23  Bruno Haible  <bruno@clisp.org>
112983         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
112984         condition was already detected.
112985         Reported by Ben Pfaff <blp@cs.stanford.edu>.
112987 2006-04-23  Bruno Haible  <bruno@clisp.org>
112989         * lib/copy-file.c: Include <unistd.h> unconditionally.
112990         * lib/execute.c: Likewise.
112991         * lib/fatal-signal.c: Likewise.
112992         * lib/findprog.c: Likewise.
112993         * lib/mkdtemp.c: Likewise.
112994         * lib/pipe.h: Likewise.
112995         * lib/pipe.c: Likewise.
112996         * lib/wait-process.h: Likewise.
112998 2006-04-23  Bruno Haible  <bruno@clisp.org>
113000         * gnulib-tool (func_usage): Fix --import description. Document
113001         --update.
113002         (func_import): Create temporary file in a temporary directory, if
113003         --dry-run is specified. Silence errors from 'grep' when there are no
113004         m4 files in $m4dir.
113005         (func_create_testdir): Silence errors from 'grep' when there are no
113006         m4 files in $m4dir.
113007         Reported by Karl Berry <karl@freefriends.org>.
113009 2006-04-20  Bruno Haible  <bruno@clisp.org>
113011         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
113012         one argument, so that the code will be portable to Autoconf 2.60.
113013         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
113014         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
113015         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
113017 2006-04-19  Derek Price  <derek@ximbiot.com>
113018             Eric Blake  <ebb9@byu.net>
113020         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
113021         rather than "/full/path.h".  Update comment to match.  Shorten &
113022         generalize m4_translit call via AS_TR_CPP.
113024 2006-04-19  Derek Price  <derek@ximbiot.com>
113025             Eric Blake  <ebb9@byu.net>
113027         * lib/inttypes.h: Correct grammar in comment.
113029 2006-04-18  Derek Price  <derek@ximbiot.com>
113030             Paul Eggert  <eggert@cs.ucla.edu>
113032         * modules/inttypes: New file.
113033         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
113035 2006-04-18  Derek Price  <derek@ximbiot.com>
113036             Paul Eggert  <eggert@cs.ucla.edu>
113038         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
113039         New files.
113041 2006-04-18  Derek Price  <derek@ximbiot.com>
113042             Paul Eggert  <eggert@cs.ucla.edu>
113044         * lib/inttypes.h: New file.
113045         * lib/strtoimax.c: Assume <inttypes.h>.
113047 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
113049         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
113050         isn't mounted.  Problem reported by Kir Kolyshkin.
113052 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
113054         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
113055         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
113056         Derek R. Price.
113057         * lib/regex.h (RE_DUP_MAX): Update comment to match current
113058         implementation.
113060 2006-04-12  Eric Blake  <ebb9@byu.net>
113062         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
113063         is now done automatically by the corresponding Autoconf macro.
113065 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
113067         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
113068         time_r.h.
113070 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
113072         Merge regex changes from libc, removing some of our
113073         POSIX-conformance changes that were rejected and redoing them in a
113074         less-intrusive way.
113076         * lib/regcomp.c (re_compile_internal, init_dfa):
113077         Length arg is now size_t, not Idx.  All uses changed.
113078         (peek_token): Forward decl now says internal_function.
113079         (__re_error_msgid, __re_error_msgid_idx):
113080         Now static rather than extern with attribute_hidden.
113081         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
113082         For some reason libc prefers K&R style defns for external functions.
113083         (regerror) [!defined _LIBC]: Likewise.
113084         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
113085         (seek_collating_symbol_entry, lookup_collation_sequence_value):
113086         (build_range_exp, build_collating_symbol):
113087         Use K&R-style defn.
113088         (re_compile_fastmap): Use '\0' to memset, not 0.
113089         (utf8_sb_map): Make the calculations more obvious.
113090         (init_dfa, parse_bracket_exp, build_charclass_op):
113091         Call calloc and cast result, as glibc does.
113092         (init_word_char, fetch_token, peek_token, peek_token_bracket):
113093         (build_range_exp, build_collating_symbol):
113094         Now internal functions.
113096         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
113098         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
113099         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
113100         Don't depend on VMS; depend on __VMS instead, for POSIX
113101         namespace cleanness.
113102         (regoff_t): Define to ssize_t, not long int.
113104         Remove the REG_ macros named below.  Instead, make the old names
113105         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
113106         __USE_GNU_REGEX.
113107         (REG_BACKSLASH_ESCAPE_IN_LISTS):
113108         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
113109         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
113110         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
113111         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
113112         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
113113         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
113114         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
113115         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
113116         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
113117         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
113118         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
113119         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
113120         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
113121         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
113122         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
113123         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
113124         (REG_NREGS):
113125         Remove.  All uses replaced by the old RE_* names.
113126         (RE_BACKSLASH_ESCAPE_IN_LISTS):
113127         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
113128         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
113129         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
113130         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
113131         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
113132         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
113133         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
113134         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
113135         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
113136         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
113137         Don't bother having these macros be independent of each others'
113138         values, since they no longer exist in the POSIX name space.
113140         Rename the following member names back to their old names,
113141         unless !__USE_GNU_REGEX.  All uses changed back.
113142         (buffer): Renamed from re_buffer.
113143         (allocated): Renamed from re_allocated.
113144         (used): Renamed from re_used.
113145         (syntax): Renamed from re_syntax.
113146         (fastmap): Renamed from re_fastmap.
113147         (translate): Renamed from re_translate.
113148         (can_be_null): Renamed from re_can_be_null.
113149         (regs_allocated): Renamed from re_regs_allocated.
113150         (fastmap_accurate): Renamed from re_fastmap_accurate.
113151         (no_sub): Renamed from re_no_sub.
113152         (not_bol): Renamed from re_not_bol.
113153         (not_eol): Renamed from re_not_eol.
113154         (newline_anchor): Renamed from re_newline_anchor.
113155         (num_regs): Renamed from rm_num_regs.
113156         (start): Renamed from rm_start.
113157         (end): Renamed from rm_end.
113159         (free_state): Move up a bit.
113161         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
113162         #define to be empty.
113163         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
113164         when that is what is intended.
113165         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
113166         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
113167         (MAX): New macro.
113168         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
113169         All uses changed back to re_malloc, etc.  It's now the caller's
113170         responsibility to check for overflow; all callers changed.
113171         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
113172         (re_x2nrealloc): Remove.
113173         (free_state): Remove decl.
113175         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
113176         (re_set_registers, re_exec):
113177         Use K&R-style defn.
113179         2006-01-31  Roland McGrath  <roland@redhat.com>
113181         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
113182         Reported by Mike Frysinger <vapier@gentoo.org>.
113184         2006-01-15  Andreas Jaeger  <aj@suse.de>
113186         [BZ #1950]
113187         * lib/regex_internal.c (re_string_reconstruct): Adjust for
113188         build_wcs_upper_buffer change.
113189         (build_wcs_upper_buffer): Change return type.
113191         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
113193         * lib/regex_internal.h: Include <stdint.h> if available.
113195         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
113197         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
113199         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
113201         * lib/regcomp.c: Adjust for changed secondary hash function.
113203         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
113205         * lib/regex.h: Pretty printing.
113206         Clean up namespace a bit.
113208         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
113210         * lib/regexec.c (update_cur_sifted_state, check_arrival,
113211         check_arrival_add_next_nodes): Avoid using uninitialized variable.
113213         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
113214                     Ulrich Drepper  <drepper@redhat.com>
113216         [BZ #1302]
113217         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
113218         changed.
113219         (bitset_word_t): Renamed from bitset_word.  All uses changed.
113221         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
113223         [BZ #281]
113224         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
113225         * lib/regcomp.c: Remove unnecessary uses of
113226         unsigned RE_TRANSLATE_TYPE.
113227         * lib/regex_internal.h: Likewise.
113228         * lib/regex_internal.c: Likewise.
113229         * lib/regexec.c: Likewise.
113230         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
113232         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
113234         * lib/regexec.c (find_recover_state): Remove unnecessary
113235         initialization.
113236         (transit_state_bkref): Make DFA a const pointer.
113237         (get_subexp): Likewise.
113238         (check_arrival): Likewise.
113239         (update_cur_sifted_state): Likewise.
113240         (re_search_internal): Likewise.
113241         (prune_impossible_nodes): Likewise.
113242         (acquire_init_state_context): Likewise.
113243         (proceed_next_node): Likewise.
113244         (set_regs): Likewise.
113245         (free_fail_stack_return): Likewise.
113246         (check_arrival_expand_ecl): Mark DFA parameter as const.
113247         (check_arrival_expand_ecl_sub): Likewise.
113248         (check_subexp_limits): Likewise.
113249         (sub_epsilon_src_nodes):  Likewise.
113250         (add_epsilon_src_nodes):  Likewise.
113251         (merge_state_array): Likewise.
113252         (update_regs): Likewise.
113253         (build_trtable): Likewise.
113254         (sift_states_backward): Mark MCTX parameter as const.
113255         (build_sifted_states): Likewise.
113256         (update_cur_sifted_state): Likewise.
113257         (sift_states_mkref): Likewise.
113258         (check_arrival_expand_ecl): Mark eclosure as const.
113259         (check_dst_limits_calc_pos_1): Likewise.
113260         * lib/regex_internal.h (re_match_context_t): Make dfa a const
113261         pointer.
113263         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
113265         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
113266         (transit_state_sb): Likewise.
113267         (transit_state_mb): Likewise.
113268         (sift_states_iter_mb): Likewise.
113269         (check_arrival_add_next_nodes): Likewise.
113270         (check_node_accept_bytes): Change first parameter to pointer-to-const.
113271         [_LIBC] (re_search_2_stub): Use mempcpy.
113273         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
113274         mbrtowc for very simple UTF-8 case.
113276         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
113277         a pointer-to-const.
113278         (re_acquire_state_context): Likewise.
113279         * lib/regex_internal.h: Adjust prototypes.
113281         * lib/regex.c: Prevent using C++ compilers.
113283         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
113284         (re_acquire_state_context): Likewise.
113286 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
113288         * modules/regex (Depends-on): Add ssize_t.
113290 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
113292         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
113293         translation table.
113295 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
113297         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
113299 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
113300             Bruno Haible  <bruno@clisp.org>
113302         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
113303         <sys/types.h> and <inttypes.h>.
113305 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113307         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
113308         `__error_t_defined', so argp.h will not typedef the former.
113310 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
113312         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
113313         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
113314         glibc names.  Even if glibc is changed to conform to POSIX, the
113315         traditional names will be available anyway, since regex depends on
113316         the extensions module.  Also, fix a longstanding typo in the
113317         implementation of Spencer ERE test #75 from grep 2.3.  Problems
113318         reported by Emanuele Giaquinta.  Also, change sense of cached
113319         variable, so that the message makes sense.
113321 2006-03-24  Simon Josefsson  <jas@extundo.com>
113323         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
113324         including some doc fixes.
113325         (base64_encode_alloc): Fix +1 bug on allocation failures.
113327 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113329         * lib/base64.c (base64_encode): Do not read past end of array with
113330         unsanitized input on systems with CHAR_BIT > 8.
113332 2006-03-24  Eric Blake  <ebb9@byu.net>
113334         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
113336 2006-03-22  Karl Berry  <karl@gnu.org>
113338         * config/srclist.txt (*setenv.[ch]): get from coreutils.
113339         * config/srclistvars.sh (COREUTILS): new var.
113341 2006-03-17  Jim Meyering  <jim@meyering.net>
113343         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
113344         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
113346 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
113348         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
113349         no longer needs it.  Instead, check that regoff_t is as least
113350         as wide as ptrdiff_t.
113352         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
113353         so that our regex.h stays compatible with the installed regex.
113354         This is helpful for installers who configure --without-included-regex.
113355         Problem reported by Emanuele Giaquinta.
113357 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
113359         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
113360         Typedef to long int, not to off_, as POSIX will likely change
113361         in that direction.
113363 2006-03-15  Eric Blake  <ebb9@byu.net>
113365         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
113367 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
113369         * lib/argp-help.c (validate_uparams): Fix typo
113370         * lib/argp-parse.c (argp_default_options): Consistently begin help
113371         messages with a lowercase letter.
113373 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
113375         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
113376         overrun buffers and shouldn't be used (much as gets shouldn't be
113377         used).
113378         * lib/time_r.c (asctime_r, ctime_r): Likewise.
113380 2006-03-08  Simon Josefsson  <jas@extundo.com>
113382         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
113383         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
113385 2006-03-08  Simon Josefsson  <jas@extundo.com>
113387         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
113388         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
113390 2006-03-08  Simon Josefsson  <jas@extundo.com>
113392         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
113393         signal that configure disabled the device.
113395 2006-03-08  Simon Josefsson  <jas@extundo.com>
113397         * build-aux/maint.mk: Fix refresh-po, to handle no translated
113398         languages.
113400 2006-03-07  Simon Josefsson  <jas@extundo.com>
113402         * modules/getopt (Depends-on): Add unistd.
113404         * modules/unistd: New file.
113406 2006-03-07  Simon Josefsson  <jas@extundo.com>
113408         * modules/gc-random: New file.
113410 2006-03-07  Simon Josefsson  <jas@extundo.com>
113412         * m4/unistd_h.m4: New file.
113414 2006-03-07  Simon Josefsson  <jas@extundo.com>
113416         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
113417         test to be side-effect free by storing the result in the cache
113418         variable gl_cv_lib_readline, and moving the assignment of
113419         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
113420         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
113422 2006-03-07  Simon Josefsson  <jas@extundo.com>
113424         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
113425         error on missing devices (the functions will return an error).
113427         * m4/gc.m4: Move random stuff to gc-random.m4
113429 2006-03-07  Simon Josefsson  <jas@extundo.com>
113431         * lib/unistd_.h: New file.
113433 2006-03-07  Simon Josefsson  <jas@extundo.com>
113435         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
113437 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
113439         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
113440         Problem reported by Juan Manuel Guerrero.
113442 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
113444         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
113445         the unistd module.
113446         * lib/getlogin_r.c: Likewise.
113447         * lib/getlogin_r.h: Likewise.
113448         * lib/glob.c: Likewise.
113449         * lib/pagealign_alloc.c: Likewise.
113450         * lib/unistd_.h: Remove; no longer needed.
113452 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
113454         * MODULES.html.sh (Support for systems lacking POSIX:2001):
113455         Add unistd.
113456         * modules/c-stack (Depends-on): Add unistd.
113457         * modules/getlogin_r: Likewise.
113458         * modules/glob: Likewise.
113459         * modules/pagealign_alloc: Likewise.
113460         * modules/unistd (Files): Remove lib/unistd_.h.
113461         (EXTRA_DIST): Remove.
113462         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
113463         need unistd_.h.
113464         (MOSTLYCLEANFILES): Remove unistd.h-t.
113466 2006-03-03  Simon Josefsson  <jas@extundo.com>
113468         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
113470 2006-03-03  Simon Josefsson  <jas@extundo.com>
113472         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
113473         libidn and bison.
113475 2006-03-03  Simon Josefsson  <jas@extundo.com>
113477         * build-aux/maint.mk: Add indent target.
113479 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
113481         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
113482         our replacement poll.h in any case, to avoid a differing
113483         declaration from a system header.  Seen on AIX.
113485 2006-03-01  Simon Josefsson  <jas@extundo.com>
113487         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
113488         <kasal@ucw.cz>.
113490 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
113492         * modules/gettime (Depends-on): Add extensions module.
113493         * modules/nanosleep (Depends-on): Likewise.
113494         * modules/settime (Depends-on): Likewise.
113496 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
113498         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
113499         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
113500         pedantically.
113501         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
113502         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
113504         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
113505         not "==".  Reported by Ralf Wildenhues.
113507 2006-03-01  Karl Berry  <karl@gnu.org>
113509         * doc/Copyright/request-*: new files, synced from gnuorg.
113511 2006-03-01  Karl Berry  <karl@gnu.org>
113513         * config/srclist.txt (Copyright/*): new entries.
113515 2006-02-28  Simon Josefsson  <jas@extundo.com>
113517         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
113519 2006-02-27  Simon Josefsson  <jas@extundo.com>
113521         * lib/base64.h: Indent #define's.  From Jim Meyering
113522         <jim@meyering.net>.
113524 2006-02-27  Jim Meyering  <jim@meyering.net>
113526         Revert the change of 2006-02-24, so these files can continue
113527         to be sync'd from gettext.
113528         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
113529         of `config.h'.
113531 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
113533         * modules/intprops: New file.
113534         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
113535         Add intprops.
113536         * modules/getloadavg (Files): Remove lib/intprops.h.
113537         (Depends-on): Add intprops.
113538         * modules/human: Likewise.
113539         * modules/inttostr: Likewise.
113540         * modules/openat: Likewise.
113541         * modules/sig2str: Likewise.
113542         * modules/userspec: Likewise.
113543         * modules/utimecmp: Likewise.
113544         * modules/xnanosleep: Likewise.
113545         * modules/xstrtol: Likewise.
113547 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
113549         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
113550         * modules/lock-tests (TESTS): Use $(EXEEXT).
113551         * modules/tls-tests: Likewise.
113552         * modules/argp-tests: Likewise.
113553         (check_PROGRAMS): New var, replacing...
113554         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
113556 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113558         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
113559         `config.h'.
113561 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
113563         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
113565 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113567         Sync from coreutils.
113568         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
113569         gl_CHDIR_SAFER.
113571 2006-02-22  Jim Meyering  <jim@meyering.net>
113573         Sync from coreutils.
113574         * m4/chdir-safer.m4: New file.
113576 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
113578         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
113579         AT_FDCWD exceeds INT_MAX.
113580         * lib/openat.h (AT_FDCWD): Likewise.
113582 2006-02-17  Eric Blake  <address@hidden>
113584         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
113586 2006-02-16  Simon Josefsson  <jas@extundo.com>
113588         * modules/getaddrinfo (Depends-on): Add sys_socket.
113590 2006-02-15  Simon Josefsson  <jas@extundo.com>
113592         * build-aux/maint.mk: Add dsyntax-check rule.
113594 2006-02-15  Eric Blake  <ebb9@byu.net>
113596         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
113597         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
113598         'present but cannot compile' warnings on cygwin.
113599         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
113600         use ws2tcpip.h if sys/socket.h works.
113601         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
113602         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
113604 2006-02-14  Simon Josefsson  <jas@extundo.com>
113606         * modules/maintainer-makefile (Files): Rename.
113608         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
113609         and (the local) Makefile.cfg to maint-cfg.mk.
113611         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
113612         to the latter.
113614         * modules/maintainer-makefile: New module.
113616         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
113617         severaly stripped to make it possible to build it up from scratch
113618         with reliable tests.
113620         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
113621         fixes to permit overriding the default actions when configure and
113622         makefile are not available.
113624 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
113626         Sync from coreutils.
113627         * modules/lstat (Depends-on): Don't depend on xalloc.
113628         (License): Change from GPL to LGPL, since this is now simply a
113629         replacement for a libc function.
113631 2006-02-14  Jim Meyering  <jim@meyering.net>
113633         Sync from coreutils.
113635         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
113636         failure on deficient systems, and simplify gnulib lgpl dependencies.
113637         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
113638         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
113640         * lib/xalloc-die.c: Remove unused definition of N_.
113642 2006-02-14  Jim Meyering  <jim@meyering.net>
113644         Sync from coreutils.
113645         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
113646         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
113647         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
113648         double-quote uses of that variable, to accommodate the rare case in
113649         which getmntent is available in none of the libraries checked.  This
113650         happens at least on FreeBSD 5.0.
113652 2006-02-13  Simon Josefsson  <jas@extundo.com>
113654         * gnulib-tool (Usage): Fix --import, from
113655         karl@freefriends.org (Karl Berry).
113657 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
113659         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
113661 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
113663         * lib/argp-namefrob.h: Restore changes accidentally lost during the
113664         "autoupdate" on 2005-12-12.
113666 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
113668         * modules/closeout (Depends-on): Remove atexit.
113670 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
113672         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
113673         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
113675 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
113677         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
113678         __EXTENSIONS__ if this causes compilation to fail.  Problem
113679         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
113680         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
113682 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
113684         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
113685         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
113686         <http://lists.gnu.org/r/bug-gnulib/2006-01/msg00074.html>.
113687         All uses changed.
113689 2006-01-26  Simon Josefsson  <jas@extundo.com>
113691         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
113692         prototype is visible on mingw32.
113694         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
113695         for mingw32.
113697         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
113698         mingw32).
113700 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
113702         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
113703         attempt to open for write; this always fails, at least on POSIX
113704         hosts.  This reinstates the 2006-01-09 change, which was
113705         inadvertently removed.
113707 2006-01-26  Bruno Haible  <bruno@clisp.org>
113709         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
113710         Reported by Paul Eggert.
113712 2006-01-26  Bruno Haible  <bruno@clisp.org>
113713             Paul Eggert  <eggert@cs.ucla.edu>
113715         * lib/stdbool_.h (_Bool)
113716         [(! (defined __cplusplus || defined __BEOS__)
113717           && !defined __GNUC__
113718           && !(defined __HP_cc || defined __xlc__
113719                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
113720                || defined __sgi))]:
113721         #define to signed char in these cases too; this simplifies
113722         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
113723         etc., separately) and makes it more conservative.
113725 2006-01-25  Simon Josefsson  <jas@extundo.com>
113727         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
113728         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
113729         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
113731 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
113733         * lib/argp-namefrob.h: Bugfix. Remove stray #
113735 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
113737         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
113738         so that we test the test.
113739         Check for yet another HP-UX cc bug involving *bool |= bool.
113741 2006-01-25  Karl Berry  <karl@gnu.org>
113743         * config/srclist.txt (vasnprintf.c): sync lost.
113745 2006-01-25  Jim Meyering  <jim@meyering.net>
113747         Sync from the stable (b5) branch of coreutils:
113749         * lib/fts.c (fts_children): Don't let close() clobber errno from
113750         failed fchdir().
113752         * lib/fts.c (fts_stat): When following a symlink-to-directory,
113753         don't necessarily interpret stat-fails+lstat-succeeds as indicating
113754         a dangling symlink.  That can also happen at least for ELOOP.
113755         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
113756         FYI, this bug predates the inclusion of fts.c in coreutils.
113758         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
113759         in their own block, so pre-c99 compilers don't object.
113761         Avoid the double-free (first in fts_read, second in fts_close) that
113762         would occur when an `active' directory is made inaccessible (e.g.,
113763         via chmod a-x) during a traversal.
113764         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
113765         before returning.  Reproduce this failure by
113766         mkdir -p a/b; cd a; chmod a-x . b
113767         Reported by Stavros Passas.
113769 2006-01-25  Jim Meyering  <jim@meyering.net>
113771         * lib/fileblocks.c: Remove more useless parentheses.
113772         * lib/readutmp.h: Likewise.
113774 2006-01-25  Bruno Haible  <bruno@clisp.org>
113776         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
113777         warnings.
113778         Reported by Paul Eggert.
113780 2006-01-25  Bruno Haible  <bruno@clisp.org>
113782         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
113783         rid of a trap command. For Solaris sh.
113784         Reported by Mark D. Baushke <mdb@gnu.org>.
113786 2006-01-24  Simon Josefsson  <jas@extundo.com>
113788         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
113789         Bruno.
113791 2006-01-24  Karl Berry  <karl@gnu.org>
113793         * config/srclist.txt (argp-namefrob.h): sync lost.
113795 2006-01-24  Jim Meyering  <jim@meyering.net>
113797         * modules/openat (Files): Add lib/intprops.h.
113798         From Mark D. Baushke.
113800 2006-01-24  Jim Meyering  <jim@meyering.net>
113802         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
113803         Reported by Mark D. Baushke.
113805 2006-01-24  Jim Meyering  <jim@meyering.net>
113807         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
113809 2006-01-24  Bruno Haible  <bruno@clisp.org>
113811         * modules/strnlen (Maintainer): Change from glibc to all.
113813 2006-01-24  Bruno Haible  <bruno@clisp.org>
113815         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
113816         Patch by Paul Eggert.
113818 2006-01-24  Bruno Haible  <bruno@clisp.org>
113820         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
113821         already has it.
113822         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
113823         2005-11-26.
113825         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
113826         'signed char' to avoid problems with the built-in _Bool type.
113827         Reported by Paul Eggert on 2005-11-26.
113829 2006-01-24  Bruno Haible  <bruno@clisp.org>
113831         * gnulib-tool (func_import): Avoid constructing complicated sed
113832         expressions inside backquote.
113833         Report and solution by Mark D. Baushke <mdb@gnu.org>.
113835 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
113837         These changes imported from libc.
113838         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
113839         test and two separate function calls.
113840         * lib/strndup.c (__strndup): Add libc_hidden_def.
113842 2006-01-23  Simon Josefsson  <jas@extundo.com>
113844         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
113845         Remove the test_*_SOURCES variable: automake infers it by default.
113846         * modules/tls-tests: Likewise.
113848 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
113850         Work around porting bugs reported by Dieter in
113851         <http://lists.gnu.org/r/bug-bison/2006-01/msg00049.html>.
113852         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
113853         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
113854         Include "getopt.h" first, to check interface.
113855         (getenv): Declare only if defined HAVE_DECL_GETENV &&
113856         !HAVE_DECL_GETENV.
113857         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
113858         (__strndup): Revert to K&R-style function dfns, the glibc style.
113859         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
113860         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
113861         Include strnlen.h first, to get prototype properly.
113862         (strnlen): Renamed from __strnlen.
113863         Remove weak alias.
113865 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
113867         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
113869 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
113871         * config/srclist.txt: Adjust to reflect glibc reorganization.
113872         This affects only comments.
113874 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
113876          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
113877          Reported by Bruce Korb <bkorb@gnu.org>.
113879 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
113881         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
113882         to pacify gcc -Wswitch-default.
113884 2006-01-22  Bruno Haible  <bruno@clisp.org>
113886         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
113887         temporary buffer for sprintf, take into account the precision also
113888         for 'd', 'i', 'u', 'o', 'x', 'X'.
113890 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
113892         * modules/argp-tests: New module
113893         * tests/test-argp.c: New file
113894         * tests/test-argp-2.sh: New file
113896 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
113898         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
113899         (__argp_base_name): Removed
113900         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
113901         typo.
113902         (__argp_base_name): Provide macro definition or extern declaration
113903         depending on the configuration
113905 2006-01-20  Simon Josefsson  <jas@extundo.com>
113907         * modules/inet_ntop (Depends-on): Depend on sys_socket.
113909 2006-01-20  Simon Josefsson  <jas@extundo.com>
113911         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
113913 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
113915         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
113916         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
113917         Suggested by Bruno Haible.
113919 2006-01-20  Karl Berry  <karl@gnu.org>
113921         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
113922         until changes propagate, I guess.
113924 2006-01-19  Simon Josefsson  <jas@extundo.com>
113926         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
113928 2006-01-19  Simon Josefsson  <jas@extundo.com>
113930         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
113932 2006-01-19  Simon Josefsson  <jas@extundo.com>
113934         * gnulib-tool: Set check_PROGRAMS.
113936         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
113937         modules/des-tests, modules/gc-arcfour-tests,
113938         modules/gc-arctwo-tests, modules/gc-des-tests,
113939         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
113940         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
113941         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
113942         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
113943         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
113944         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
113945         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
113946         test_*_SOURCES.
113948 2006-01-18  Simon Josefsson  <jas@extundo.com>
113950         * modules/socklen (Depends-on): Depend on sys_socket.
113952 2006-01-18  Simon Josefsson  <jas@extundo.com>
113954         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
113955         modules/des-tests, modules/gc-arcfour-tests,
113956         modules/gc-arctwo-tests, modules/gc-des-tests,
113957         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
113958         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
113959         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
113960         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
113961         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
113962         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
113963         $(EXEEXT) to automake TESTS variable, for mingw32.
113965 2006-01-17  Simon Josefsson  <jas@extundo.com>
113967         * modules/socklen (Include): Need sys/socket.h.
113969 2006-01-17  Bruno Haible  <bruno@clisp.org>
113971         * modules/ssize_t (Include): Add <sys/types.h>.
113973 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
113975         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
113976         it's not portable and it doesn't work with cross-compiles.
113977         Problem reported by Bruno Haible.  Fix missing-$ typo in
113978         'test "gl_cv_ignore_unused_libraries" ...' that prevented
113979         -zignore from being used with Sun's C compiler.
113981 2006-01-12  Simon Josefsson  <jas@extundo.com>
113983         * lib/base64.c: Fix warning, reported by Bruno Haible
113984         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
113986 2006-01-12  Bruno Haible  <bruno@clisp.org>
113988         * modules/ldd: New file.
113989         * build-aux/ldd.sh.in: New file.
113990         * MODULES.html.sh (Support for building libraries and executables): Add
113991         ldd.
113993 2006-01-12  Bruno Haible  <bruno@clisp.org>
113995         * m4/ldd.m4: New file.
113997 2006-01-12  Bruno Haible  <bruno@clisp.org>
113999         * gnulib-tool (func_import, func_create_testdir): Don't go into an
114000         endless loop while replacing $auxdir with build-aux.
114002 2006-01-11  Simon Josefsson  <jas@extundo.com>
114004         * lib/stdint_.h (SIZE_MAX): Add missing (.
114006 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
114008         Sync from coreutils.
114009         * lib/md5.c: Fix commentary typos.
114010         (alignof, UNALIGNED_P): No need for a GCC-specific version.
114011         * lib/md5.h (__attribute__): Remove; unused.
114012         * lib/sha1.c: Fix commentary to match md5 better.
114013         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
114014         so that we don't need to worry about alignment.  All uses changed.
114015         This merges the 2005-10-28 md5 change into sha1.
114017 2006-01-11  Jim Meyering  <jim@meyering.net>
114019         Sync from coreutils.
114020         * lib/md5.c (OP): Fix spacing.
114022 2006-01-11  Bruno Haible  <bruno@clisp.org>
114024         Ensure automatic ordering between gl_LOCK and gl_ARGP.
114025         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
114026         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
114028 2006-01-11  Bruno Haible  <bruno@clisp.org>
114030         Ensure automatic ordering between gl_LOCK and gl_ARGP.
114031         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
114032         the "early" section as well.
114034 2006-01-11  Bruno Haible  <bruno@clisp.org>
114036         Avoid "ar: no archive members specified" error on MacOS X.
114037         * gnulib-tool (func_modules_add_dummy): New function.
114038         (func_import, func_create_testdir): Invoke it.
114040 2006-01-11  Bruno Haible  <bruno@clisp.org>
114042         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
114043         with $auxdir in AC_CONFIG_FILES statements.
114045 2006-01-11  Bruno Haible  <bruno@clisp.org>
114047         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
114048         Initialize also noinst_HEADERS to empty.
114050 2006-01-11  Bruno Haible  <bruno@clisp.org>
114052         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
114053         variables.
114054         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
114055         autoreconf.
114057 2006-01-11  Bruno Haible  <bruno@clisp.org>
114059         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
114060         overridable by the user.
114061         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
114063 2006-01-10  Simon Josefsson  <jas@extundo.com>
114065         * modules/sys_socket: New file.
114067 2006-01-10  Simon Josefsson  <jas@extundo.com>
114069         * m4/sys_socket_h.m4: New file.
114071 2006-01-10  Simon Josefsson  <jas@extundo.com>
114073         * lib/socket_.h: New file.
114075 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
114077         * modules/readutmp (Maintainer): Add myself.
114079 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
114081         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
114082         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
114083         People who are still concerned with buggy memcmp implementations
114084         can invoke gl_FUNC_MEMCMP themselves.
114086 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
114088         * lib/regex_internal.h (BITSET_WORD_BITS):
114089         Work around a bug in 64-bit PGC (before version 6.1-2), where the
114090         preprocessor mishandles large unsigned values as if they were signed.
114091         Problem reported by Claudio Fontana in
114092         <http://lists.gnu.org/r/bug-gnulib/2005-12/msg00061.html>.
114094 2006-01-10  Jim Meyering  <jim@meyering.net>
114096         Avoid the double-free (first in fts_read, second in fts_close) that
114097         would occur when an `active' directory is made inaccessible (e.g.,
114098         via chmod a-x) during a traversal.
114099         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
114100         before returning.  Reproduce this failure by
114101         mkdir -p a/b; cd a; chmod a-x . b
114102         Reported by Stavros Passas.
114104         Sync from coreutils.
114105         * lib/sha1.c: Tweak grammar in a comment.
114107 2006-01-10  Jim Meyering  <jim@meyering.net>
114109         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
114110         Patch by Joerg Sonnenberger.
114112 2006-01-10  Bruno Haible  <bruno@clisp.org>
114114         * modules/readutmp: Depend on module free.
114115         * modules/strtok_r: Depend on module restrict.
114117 2006-01-10  Bruno Haible  <bruno@clisp.org>
114119         * modules/gettext (configure.ac): Add an invocation of
114120         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
114122 2006-01-10  Bruno Haible  <bruno@clisp.org>
114124         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
114125         Reported by Werner Lemberg <wl@gnu.org>.
114127 2006-01-10  Bruno Haible  <bruno@clisp.org>
114129         * lib/localcharset.c: Update from GNU gettext.
114131 2006-01-10  Bruno Haible  <bruno@clisp.org>
114133         * lib/argp.h (__const): Remove macro. Use const instead.
114134         * lib/argp-fmtstream.h (__const): Likewise.
114135         * lib/glob_.h (__const): Remove macro.
114136         * lib/glob-libc.h: Use const instead of __const.
114138 2006-01-10  Bruno Haible  <bruno@clisp.org>
114140         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
114141         variable.
114142         Needed to avoid an automake error regarding the 'gettext' module.
114144 2006-01-09  Simon Josefsson  <jas@extundo.com>
114146         * modules/inet_ntop (Depends-on): Add restrict.
114148 2006-01-09  Simon Josefsson  <jas@extundo.com>
114150         * modules/gc-rijndael-tests (License): Put under LGPL.
114152         * modules/gc-des-tests (License): Likewise.
114154         * modules/gc-arcfour-tests (License): Likewise.
114156         * modules/gc-arctwo-tests (License): Likewise.
114158         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
114160         * modules/gc-hmac-sha1-tests (Files): Likewise.
114162         * modules/gc-hmac-md5-tests (License): Likewise.
114164         * modules/gc-sha1-tests (License): Likewise.
114166         * modules/gc-md5-tests (License): Likewise.
114168         * modules/gc-md4-tests (License): Likewise.
114170         * modules/gc-md2-tests (License): Likewise.
114172         * modules/gc-tests (License): Likewise.
114174         * modules/des-tests (License): Likewise.
114176         * modules/md4-tests (License): Likewise.
114178         * modules/md2-tests (License): Likewise.
114180 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
114182         Sync from coreutils:
114184         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
114185         * modules/lib-ignore: New file.
114186         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
114187         chdir-safer.m4, lchmod.m4.
114188         * modules/openat: Add mkdirat.c, openat-priv.h.
114190 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
114192         Sync from coreutils.
114193         * m4/lib-ignore.m4: New file.
114194         * m4/lchmod.m4: New file.
114196 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
114198         Sync from coreutils.
114199         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
114200         for write access: POSIX says that must fail.
114201         * lib/fts.c (diropen): Likewise.
114202         * lib/save-cwd.c (save_cwd): Likewise.
114203         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
114204         well, for minor improvements on hosts that lack O_DIRECTORY.
114205         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
114206         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
114207         Fall back on chown if open failed with EACCES.
114209         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
114210         Report an error at compile-time if only a 1-second nominal clock
114211         resolution is found.
114213         * lib/lchmod.h: New file.
114214         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
114215         (make_dir_parents): Use lchown rather than chown, and
114216         lchmod rather than chmod.
114218         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
114219         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
114220         "proc" reported by n0dalus.
114222         * lib/mountlist.c: Include <limits.h>.
114223         (dev_from_mount_options)
114224         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
114225         New function.  It no longer assumes "dev=" has the System V meaning
114226         on Linux (since it doesn't).  It also parses "dev=" more carefully.
114227         (read_file_system_list)
114228         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
114229         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
114230         dev= in that case.
114232         * lib/posixtm.h (PDS_PRE_2000): New macro.
114233         * lib/posixtm.c (year): Arg is now syntax_bits rather than
114234         allow_century.  All usages changed.  Reject dates outside the range
114235         1969-1999 if PDS_PRE_2000 is used.
114237 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
114239         Sync from coreutils.
114240         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
114241         (Time of day items): Mention the possibility of leap seconds.
114242         Problem reported by Dr. David Alan Gilbert.
114244 2006-01-09  Jim Meyering  <jim@meyering.net>
114246         Sync from coreutils.
114248         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
114250         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
114252         * lib/modechange.c (mode_compile): Reject an invalid mode string
114253         that starts with an octal digit.  From Andreas Gruenbacher.
114255         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
114256         and dup to open_safer and dup_safer, respectively.
114257         (openat_permissive): Fix typo in comment.
114259         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
114260         "gettext.h"; either no longer needed or are guaranteed by openat.h.
114261         (_): Remove; no longer needed.
114262         (openat): Renamed from rpl_openat; no need for rpl_openat
114263         since openat.h renames openat for us.
114264         Replace most of the body with a call to openat_permissive,
114265         to avoid duplicate code.
114266         Port to (probably hypothetical) environments were mode_t is
114267         wider than int.
114268         (openat_permissive): Require mode arg, so that we can check
114269         types better.  Put it just after flags.  Change cwd failure
114270         indicator from pointer-to-bool to pointer-to-errno-value.
114271         All callers changed.
114272         Invoke openat_save_fail and/or openat_restore_fail if
114273         cwd_errno is null, so that openat can call us.
114274         (openat_permissive, fdopendir, fstatat, unlinkat):
114275         Simplify errno handling to avoid some duplicate code,
114276         as it's OK to set errno on success.
114277         * lib/openat.h: Revamp code so that function macros depend on
114278         __OPENAT_PREFIX only, not also on AT_FDCWD.
114279         (openat_ro): Remove.  Caller changed to use openat_permissive.
114280         (openat_permissive): Now a macro, if not a function.
114281         (openat_restore_fail, openat_save_fail): Now always functions,
114282         since mkdirat needs them even if __OPENAT_PREFIX is defined.
114284         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
114285         and openat.c.
114286         * lib/mkdirat.c: Include openat-priv.h.
114287         Remove definitions of macros defined therein.
114288         * lib/openat.c: Likewise.
114290         * lib/mkdirat.c (mkdirat): New file and function.
114291         * lib/openat.h (mkdirat): Declare.
114293         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
114295         * lib/openat.h (openat_permissive): Declare.
114296         (openat_ro): Define.
114298         * lib/openat.c (EXPECTED_ERRNO): New macro.
114299         (openat_permissive): New function -- used in remove.c rewrite.
114300         (all functions): Set errno just before returning, only if there
114301         was an actual failure.
114302         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
114304         Emulate openat-family functions using Linux's procfs, if possible.
114305         Idea and some code based on Ulrich Drepper's glibc changes.
114307         * lib/openat.c: (BUILD_PROC_NAME): New macro.
114308         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
114309         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
114310         before falling back on save_cwd and restore_cwd.
114311         (fdopendir, fstatat, unlinkat): Likewise.
114313         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
114314         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
114316         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
114317         as second argument to va_arg.  Otherwise, some versions of gcc
114318         warn that `if this code is reached, the program will abort'.
114320 2006-01-09  Jim Meyering  <jim@meyering.net>
114322         Sync from coreutils.
114323         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
114324         Require openat-priv.h.
114326 2006-01-09  Bruno Haible  <bruno@clisp.org>
114328         * modules/strnlen (Include): Use strnlen.h.
114330 2006-01-09  Bruno Haible  <bruno@clisp.org>
114332         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
114334 2006-01-09  Bruno Haible  <bruno@clisp.org>
114336         * lib/sysexit_.h (EX_OK): New macro.
114337         Suggested by Martin Lambers <marlam@marlam.de>.
114339 2006-01-09  Bruno Haible  <bruno@clisp.org>
114341         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
114342         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
114344 2006-01-09  Bruno Haible  <bruno@clisp.org>
114346         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
114347         numbers.
114349 2006-01-09  Bruno Haible  <bruno@clisp.org>
114351         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
114352         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
114353         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
114354         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
114356 2006-01-09  Bruno Haible  <bruno@clisp.org>
114358         * build-aux/javacomp.sh.in: New file, moved from lib/.
114359         * modules/javacomp-script (Files): Update.
114360         (configure.ac): Add AC_CONFIG_FILES invocation.
114361         (EXTRA_DIST): Remove variable.
114363         * build-aux/javaexec.sh.in: New file, moved from lib/.
114364         * modules/javaexec (Files): Update.
114365         (configure.ac): Add AC_CONFIG_FILES invocation.
114366         (EXTRA_DIST): Remove javaexec.sh.in.
114368         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
114369         * modules/csharpcomp-script (Files): Update.
114370         (configure.ac): Add AC_CONFIG_FILES invocation.
114371         (EXTRA_DIST): Remove variable.
114373         * build-aux/csharpexec.sh.in: New file, moved from lib/.
114374         * modules/csharpexec (Files): Update.
114375         (configure.ac): Add AC_CONFIG_FILES invocation.
114376         (EXTRA_DIST): Remove csharpexec.sh.in.
114378 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
114380         Sync from coreutils.
114382         Add POSIX ACL support
114383         * lib/acl.h (copy_acl, set_acl): Add declarations.
114384         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
114385         systems other than Linux.
114386         (chmod_or_fchmod): New function: use fchmod when possible,
114387         and chmod otherwise.
114388         (file_has_acl): Add a POSIX ACL implementation, with a
114389         Linux-specific subcase.
114390         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
114391         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
114392         acls are unsupported.
114393         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
114394         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
114395         are unsupported.
114397 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
114399         Sync from coreutils.
114400         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
114402 2006-01-07  Bruno Haible  <bruno@clisp.org>
114404         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
114405         gl_EARLY.
114407 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
114409         * lib/strftime.c (tzname): Don't declare if it is already #defined.
114410         Problem reported for Mingw by Mark Junker.
114412 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
114414         * README: Gnulib normally doesn't generate a tarball.
114416 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
114418         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
114419         long int, not int, for nanosecond counts, so that people who are
114420         used to POSIX struct timespec won't be surprised.  Reported by Jim
114421         Meyering.
114423 2005-12-28  Bruno Haible  <bruno@clisp.org>
114425         * build-aux/config.rpath: Update from GNU gettext.
114427 2005-12-16  Jim Meyering  <jim@meyering.net>
114429         * modules/fprintftime: New module.
114430         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
114432 2005-12-16  Jim Meyering  <jim@meyering.net>
114434         * m4/fprintftime.m4: New file.
114436 2005-12-16  Jim Meyering  <jim@meyering.net>
114438         * lib/fprintftime.c, lib/fprintftime.h: New files.
114440 2005-12-15  Simon Josefsson  <jas@extundo.com>
114442         * modules/socklen (configure.ac): Fix M4 macro name, to align with
114443         new m4/socklen.m4.
114445 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
114447         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
114448         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
114450 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
114452         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
114453         * lib/argp-help.c (fill_in_uparams): Check if the constructed
114454         struct uparams is valid. Fall back to the default values if it is
114455         not.
114457 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
114459         * modules/argp (Files): Add argp-pin.c
114460         (Depends-on): dirname
114461         (lib_SOURCES): Add argp-pin.c
114463 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
114465         * m4/argp.m4:  Check if program_invocation_name and
114466         program_invocation_short_name are declared and define appropriate
114467         macros if they are not.
114469 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
114471         * lib/argp-help.c (__argp_base_name): New function
114472         (__argp_short_program_name): Rewrite using __argp_base_name
114473         * lib/argp-namefrob.h: Define program_invocation_name and
114474         program_invocation_short_name if requested
114475         (__argp_base_name): Add prototype
114476         * lib/argp-parse.c (argp_def): Use gettext wrappers
114477         (argp_default_parser): Use __argp_base_name
114478         * lib/argp-pin.c: New file. Defines program_invocation_name and
114479         program_invocation_short_name on systems that lack them.
114481 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
114483         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
114484         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
114485         porting problem reported by Georg Schwarz in
114486         <http://lists.gnu.org/r/bug-coreutils/2005-12/msg00083.html>.
114488 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
114490         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
114491         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
114492         porting problem reported by Georg Schwarz in
114493         <http://lists.gnu.org/r/bug-coreutils/2005-12/msg00083.html>.
114495 2005-12-05  Bruno Haible  <bruno@clisp.org>
114497         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
114498         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
114499         Reported by Mark Junker <mjscod@gmx.de>.
114501 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
114503         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
114504         Use implementation from Albert Chin, with some
114505         comments/corrections by Stepan Kasal and myself.
114507 2005-12-02  Bruno Haible  <bruno@clisp.org>
114509         * gnulib-tool (func_import): Accept GPLed build tool modules when
114510         --lgpl is given.
114511         * modules/csharpcomp-script: New file.
114512         * modules/csharpcomp: Depend on it.
114513         * modules/javacomp-script: New file.
114514         * modules/javacomp: Depend on it.
114515         Suggested by Simon Josefsson.
114517 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
114519         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
114520         statement, to work around an HP-UX 10.20 compiler bug reported by
114521         Peter O'Gorman.
114523 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
114525         * modules/savedir (Depends-on): Add openat.
114527 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
114529         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
114530         (uintmax_t) [defined uintmax_t]: Do not declare.
114531         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
114532         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
114533         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
114534         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
114535         sake of portability to weird hosts that C allows (though we don't
114536         know of any practical examples).
114538         * lib/savedir.h (fdsavedir): New decl.
114539         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
114540         contains most of the former guts of savedir.
114541         (savedir): Use savedirstream.
114542         Include "openat.h".
114544 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
114546         * modules/obstack (Files): Add m4/ulonglong.m4.
114547         Problem reported by Davide Angelocola.
114549 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
114551         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
114552         coreutils no longer futzes with rounding modes.
114554 2005-11-14  Jim Meyering  <jim@meyering.net>
114556         * lib/mkstemp-safer.c: Include <config.h>, required for possible
114557         replacement of mkstemp.
114559 2005-11-10  Simon Josefsson  <jas@extundo.com>
114561         * lib/readline.c: Remove EOL.
114563 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
114565         * modules/gethrxtime (Depends-on): Add gettime.
114567 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
114569         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
114570         or gettimeofday; no longer needed.
114572 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
114574         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
114575         time business.
114576         (gethrxtime) [! (HAVE_NANOUPTIME
114577         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
114578         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
114579         our own approximation.
114581 2005-11-08  Eric Blake  <ebb9@byu.net>
114583         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
114585 2005-11-08  Eric Blake  <ebb9@byu.net>
114587         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
114589 2005-11-04  Bruno Haible  <bruno@clisp.org>
114591         * gnulib-tool: Implement --update mode.
114593 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
114595         Fix porting problem reported by Theodoros V. Kalamatianos.
114596         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
114597         Don't assume that futimes failing means we must fail.
114599 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
114601         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
114602         variables to suggest the intended function of the PATH_MAX check.
114604 2005-10-30  Kean Johnston  <jkj@sco.com>
114606         Trivial changes to support SCO systems.
114607         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
114608         as PATH_MAX.
114609         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
114610         where __ptr is null when no I/O is pending.
114612 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
114614         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
114615         leave errno alone.  Problem reported by Dmitry V. Levin.
114617 2005-10-28  Simon Josefsson  <jas@extundo.com>
114619         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
114620         Test more.
114622         * tests/test-gc-md2.c, tests/test-md2.c: New files.
114624         * modules/md2, modules/md2-tests: New files.
114626 2005-10-28  Simon Josefsson  <jas@extundo.com>
114628         * m4/inet_ntop.m4: More tests.
114630         * m4/gc-md2.m4, md2.m4: New file.
114632 2005-10-28  Simon Josefsson  <jas@extundo.com>
114634         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
114635         "restrict" keywords, as per POSIX.  Protect the function
114636         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
114637         Don't use K&R prototypes.  Check the sprintf return values.
114638         Re-define EAFNOSUPPORT if not present.  Indent.
114640         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
114641         suggested by Bruno Haible <bruno@clisp.org>.
114643         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
114645         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
114647         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
114648         libgcrypt).
114650         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
114652         * lib/md2.h, lib/md2.c: New files.
114654 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
114656         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
114657         errno alone.  Problem reported by Frederic Jolliton.
114659 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
114661         * modules/verify (License): Change from GPL to LGPL.  This is a
114662         tiny module and there are apparently near-equivalents that are
114663         under the BSD license.
114665 2005-10-24  Simon Josefsson  <jas@extundo.com>
114667         * modules/sha1: Relicense to LGPL.
114669 2005-10-24  Simon Josefsson  <jas@extundo.com>
114671         * lib/md4.h: Shrink buffer size, now that we changed the type.
114673 2005-10-23  Simon Josefsson  <jas@extundo.com>
114675         * gnulib-tool (func_import): Fix --tests-base.
114677 2005-10-22  Simon Josefsson  <jas@extundo.com>
114679         * modules/arcfour (Depends-on): Need stdint.
114681 2005-10-22  Simon Josefsson  <jas@extundo.com>
114683         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
114684         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
114686 2005-10-22  Simon Josefsson  <jas@extundo.com>
114688         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
114689         suggested by Bruno Haible <bruno@clisp.org>.
114691 2005-10-22  Simon Josefsson  <jas@extundo.com>
114693         * lib/crc.h: Include stddef.h, for size_t.
114695 2005-10-22  Simon Josefsson  <jas@extundo.com>
114697         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
114698         arcfour_context struct (simplify test vector testing in GNU
114699         Shishi).
114701 2005-10-21  Simon Josefsson  <jas@extundo.com>
114703         * modules/des, modules/des-tests: New files.
114705         * modules/gc-des, modules/gc-des-tests: New files.
114707         * tests/test-des.c, tests/test-gc-des.c: New file.
114709 2005-10-21  Simon Josefsson  <jas@extundo.com>
114711         * modules/arctwo, modules/arctwo-tests: New files.
114713         * tests/test-arctwo.c: New file.
114715         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
114717         * tests/test-gc-arctwo.c: New file.
114719 2005-10-21  Simon Josefsson  <jas@extundo.com>
114721         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
114722         Bruno Haible <bruno@clisp.org>.
114724         * m4/gc-des.m4: New file.
114726 2005-10-21  Simon Josefsson  <jas@extundo.com>
114728         * m4/arctwo.m4: New file.
114730         * m4/gc-arctwo.m4: New file.
114732 2005-10-21  Simon Josefsson  <jas@extundo.com>
114734         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
114735         block.
114737 2005-10-21  Simon Josefsson  <jas@extundo.com>
114739         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
114740         <bruno@clisp.org>.
114742         * lib/hmac-sha1.c (hmac_sha1): Likewise.
114744         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
114745         Bruno Haible <bruno@clisp.org>.
114747         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
114748         <bruno@clisp.org>.
114750 2005-10-21  Simon Josefsson  <jas@extundo.com>
114752         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
114754 2005-10-21  Simon Josefsson  <jas@extundo.com>
114756         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
114758 2005-10-21  Simon Josefsson  <jas@extundo.com>
114760         * lib/des.h, lib/des.c: New files.
114762         * lib/gc-gnulib.c: Support DES.c
114764 2005-10-21  Simon Josefsson  <jas@extundo.com>
114766         * lib/arctwo.h, lib/arctwo.c: New files.
114768         * lib/gc-gnulib.c: Support ARCTWO.
114770 2005-10-21  Simon Josefsson  <jas@extundo.com>
114772         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
114773         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
114775 2005-10-21  Simon Josefsson  <jas@extundo.com>
114777         * gnulib-tool (func_import, func_create_testdir): Define automake
114778         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
114779         Makefile.am snippet),
114780         suggested by Bruno Haible <bruno@clisp.org>.
114782         * modules/gc (Makefile.am): Use it.
114784 2005-10-21  Bruno Haible  <bruno@clisp.org>
114786         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
114787         patch.
114789 2005-10-19  Simon Josefsson  <jas@extundo.com>
114791         * tests/test-gc-rijndael.c: New file.
114793         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
114795 2005-10-19  Simon Josefsson  <jas@extundo.com>
114797         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
114798         interface too.
114800 2005-10-19  Simon Josefsson  <jas@extundo.com>
114802         * tests/test-gc-arcfour.c: New file.
114804         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
114806 2005-10-19  Simon Josefsson  <jas@extundo.com>
114808         * modules/gc-md4, modules/gc-md4-tests: New file.
114810         * tests/test-gc-md4.c: New file.
114812 2005-10-19  Simon Josefsson  <jas@extundo.com>
114814         * m4/gc-md4.m4: New file.
114816 2005-10-19  Simon Josefsson  <jas@extundo.com>
114818         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
114819         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
114820         <kasal@ucw.cz>.
114822 2005-10-19  Simon Josefsson  <jas@extundo.com>
114824         * m4/gc-arcfour.m4: New file.
114826         * m4/gc-rijndael.m4: New file.
114828 2005-10-19  Simon Josefsson  <jas@extundo.com>
114830         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
114832 2005-10-19  Simon Josefsson  <jas@extundo.com>
114834         * lib/gc-gnulib.c: Support ARCFOUR.
114836 2005-10-19  Simon Josefsson  <jas@extundo.com>
114838         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
114839         support.
114841         * lib/gc.h: Add ECB enum type.
114843         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
114845 2005-10-18  Simon Josefsson  <jas@extundo.com>
114847         * tests/test-md5.c: New file.
114849         * modules/md5-tests: New file.
114851 2005-10-18  Simon Josefsson  <jas@extundo.com>
114853         * tests/test-md4.c: New file.
114855         * modules/md4, modules/md4-tests: New files.
114857 2005-10-18  Simon Josefsson  <jas@extundo.com>
114859         * m4/md4.m4: New file.
114861 2005-10-18  Simon Josefsson  <jas@extundo.com>
114863         * lib/md4.h, lib/md4.c: New files, based on md5.?.
114865 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
114867         * gnulib-tool (func_create_testdir): Omit the second check whether
114868         BUILT_SOURCES in nonempty.
114870 2005-10-17  Simon Josefsson  <jas@extundo.com>
114872         * tests/test-rijndael.c: New file.
114874 2005-10-17  Simon Josefsson  <jas@extundo.com>
114876         * modules/sha1: Depend on stdint instead of md5.
114878         * modules/md5: Depend on stdint, remove uint32_t.
114880 2005-10-17  Simon Josefsson  <jas@extundo.com>
114882         * modules/gc-sha1-tests: New file.
114884         * tests/test-gc-sha1.c: New file.
114886 2005-10-17  Simon Josefsson  <jas@extundo.com>
114888         * m4/md5.m4: Remove call to uint32_t.m4.
114890 2005-10-17  Simon Josefsson  <jas@extundo.com>
114892         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
114894         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
114895         md5.h.
114897         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
114899         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
114901 2005-10-17  Simon Josefsson  <jas@extundo.com>
114903         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
114905 2005-10-17  Simon Josefsson  <jas@extundo.com>
114907         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
114909 2005-10-17  Simon Josefsson  <jas@extundo.com>
114911         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
114913         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
114915 2005-10-17  Bruno Haible  <bruno@clisp.org>
114917         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
114918         that it can also be used in a test.
114920 2005-10-16  Bruno Haible  <bruno@clisp.org>
114922         * gnulib-tool (func_emit_tests_Makefile_am): Also define
114923         TESTS_ENVIRONMENT, so that individual tests can augment it.
114925         * gnulib-tool (func_create_testdir): Use an intermediate target for
114926         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
114927         macros, like $(ALLOCA_H), which cannot be passed through the command
114928         line.
114930 2005-10-15  Simon Josefsson  <jas@extundo.com>
114932         * modules/rijndael-tests: New file.
114934         * modules/rijndael: New file.
114936 2005-10-15  Simon Josefsson  <jas@extundo.com>
114938         * m4/rijndael.m4: New file.
114940 2005-10-15  Simon Josefsson  <jas@extundo.com>
114942         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
114944         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
114946 2005-10-14  Simon Josefsson  <jas@extundo.com>
114948         * tests/test-arcfour.c: New file.
114950         * modules/arcfour, modules/arcfour-tests: New files.
114952 2005-10-14  Simon Josefsson  <jas@extundo.com>
114954         * m4/arcfour.m4: New file.
114956 2005-10-14  Simon Josefsson  <jas@extundo.com>
114958         * lib/arcfour.h, lib/arcfour.c: New files.
114960 2005-10-14  Roland McGrath  <roland@redhat.com>
114962         Import from libc.  [BZ #1331]
114963         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
114964         macro argument.
114965         Reported by Matej Vela <vela@debian.org>.
114967 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
114969         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
114970         include <wchar.h>; no longer needed.
114972 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
114974         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
114976 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
114977         and  Ulrich Drepper  <drepper@redhat.com>
114979         Import from libc.
114980         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
114981         instead of inline stream orientation test and two separate
114982         function calls.  Pay no attention to USE_IN_LIBIO.
114984 2005-10-13  Simon Josefsson  <jas@extundo.com>
114986         * modules/gc-hmac-md5-tests: New file.
114988         * tests/test-gc-hmac-sha1.c: New file.
114990         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
114992         * modules/gc-hmac-md5-tests: New file.
114994         * tests/test-gc-md5.c: New file.
114996         * modules/gc-md5-tests: New file.
114998 2005-10-13  Simon Josefsson  <jas@extundo.com>
115000         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
115001         Move memory allocation outside of loop.
115003 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
115005         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
115006         intermediate directory is in a read-only file system.  Problem
115007         reported by Eric Blake.
115009 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
115011         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
115013 2005-10-12  Simon Josefsson  <jas@extundo.com>
115015         * tests/test-hmac-sha1.c: New file.
115017         * modules/hmac-sha1-tests: New file.
115019         * modules/hmac-sha1: New file.
115021 2005-10-12  Simon Josefsson  <jas@extundo.com>
115023         * modules/gc-sha1: New file.
115025 2005-10-12  Simon Josefsson  <jas@extundo.com>
115027         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
115029         * tests/test-gc-pbkdf2-sha1.c: New file.
115031 2005-10-12  Simon Josefsson  <jas@extundo.com>
115033         * modules/gc-md5, modules/gc-hmac-md5: New files.
115035         * modules/gc (Files): Remove md5, memxor and hmac files.
115037 2005-10-12  Simon Josefsson  <jas@extundo.com>
115039         * m4/gc-pbkdf2-sha1.m4: New file.
115041         * m4/gc-hmac-sha1.m4: New file.
115043         * m4/gc-sha1: New file.
115045         * m4/hmac-sha1.m4: New file.
115047 2005-10-12  Simon Josefsson  <jas@extundo.com>
115049         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
115051         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
115053 2005-10-12  Simon Josefsson  <jas@extundo.com>
115055         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
115056         suggested by Bruno Haible <bruno@clisp.org>.
115058 2005-10-12  Simon Josefsson  <jas@extundo.com>
115060         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
115062 2005-10-12  Simon Josefsson  <jas@extundo.com>
115064         * lib/gc-pbkdf2-sha1.c: New file.
115066         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
115068 2005-10-12  Simon Josefsson  <jas@extundo.com>
115070         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
115072         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
115074 2005-10-12  Simon Josefsson  <jas@extundo.com>
115076         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
115077         GC_USE_HMAC_MD5, respectively.
115079         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
115080         (gc_md5): Fix typo.
115082         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
115084         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
115086         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
115088 2005-10-12  Bruno Haible  <bruno@clisp.org>
115090         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
115091         Reported by Stepan Kasal <kasal@ucw.cz>.
115093 2005-10-11  Simon Josefsson  <jas@extundo.com>
115095         * tests/test-crc.c: New file.
115097         * modules/crc, modules/crc-tests: New files.
115099 2005-10-11  Simon Josefsson  <jas@extundo.com>
115101         * m4/crc.m4: New file.
115103 2005-10-11  Simon Josefsson  <jas@extundo.com>
115105         * lib/gc.h: Add gc_hash and gc_hash_buffer.
115107         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
115109         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
115111 2005-10-11  Simon Josefsson  <jas@extundo.com>
115113         * lib/crc.h, lib/crc.c: New files.
115115         * lib/gc.h (gc_hash_buffer): Add doc.
115117 2005-10-11  Bruno Haible  <bruno@clisp.org>
115119         * modules/c-strcasestr: New file.
115120         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
115122 2005-10-11  Bruno Haible  <bruno@clisp.org>
115124         * modules/c-strcase: New file.
115125         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
115127 2005-10-11  Bruno Haible  <bruno@clisp.org>
115129         * lib/strcasecmp.c: Include limits.h.
115130         (strcasecmp): Avoid integer overflow on exotic platforms.
115131         * lib/strncasecmp.c: Include limits.h.
115132         (strncasecmp): Avoid integer overflow on exotic platforms.
115133         Reported by Paul Eggert.
115135 2005-10-11  Bruno Haible  <bruno@clisp.org>
115137         * lib/c-strcasestr.h: New file, from GNU gettext.
115138         * lib/c-strcasestr.c: New file, from GNU gettext.
115140 2005-10-11  Bruno Haible  <bruno@clisp.org>
115142         * lib/c-strcase.h: New file, from GNU gettext.
115143         * lib/c-strcasecmp.c: New file, from GNU gettext.
115144         * lib/c-strncasecmp.c: New file, from GNU gettext.
115146 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
115148         * modules/mempcpy (License): GPL -> LGPL.
115149         * modules/strchrnul (License): Likewise.
115150         * modules/sysexits (License): Likewise.
115152 2005-10-08  Simon Josefsson  <jas@extundo.com>
115154         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
115156 2005-10-07  Simon Josefsson  <jas@extundo.com>
115158         * m4/memxor.m4: Remove gl_C_RESTRICT call.
115160 2005-10-06  Simon Josefsson  <jas@extundo.com>
115162         * tests/test-hmac-md5.c: New file.
115164         * modules/hmac-md5-tests: New file.
115166         * modules/hmac-md5: New file.
115168 2005-10-06  Simon Josefsson  <jas@extundo.com>
115170         * m4/hmac-md5.m4: New file.
115172         * m4/memxor.m4: Require gl_C_RESTRICT.
115174 2005-10-06  Simon Josefsson  <jas@extundo.com>
115176         * lib/memxor.c (memxor): Avoid casts and warnings.
115178 2005-10-06  Simon Josefsson  <jas@extundo.com>
115180         * lib/hmac-md5.c: New file.
115182         * lib/hmac.h: New file.
115184 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
115186         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
115187         promotes to int, not unsigned int, to catch the AIX 5.3
115188         compiler bug.
115190 2005-10-05  Simon Josefsson  <jas@extundo.com>
115192         * modules/memxor: New file.
115194         * modules/iconv (Files): Move config.rpath to havelib, it is used
115195         there.
115197         * modules/havelib (Files): Add config.rpath.
115199 2005-10-05  Simon Josefsson  <jas@extundo.com>
115201         * m4/memxor.m4: New file.
115203 2005-10-05  Simon Josefsson  <jas@extundo.com>
115205         * lib/memxor.c (memxor): Fix compiler error.
115207         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
115208         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
115210         * lib/memxor.h, lib/memxor.c: New files.
115212         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
115213         we assume all systems have it, suggested by Jim Meyering
115214         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
115215         any systems lack sys/socket.h; mingw32 is known to lack it, but we
115216         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
115217         same reasons.
115219 2005-10-05  Simon Josefsson  <jas@extundo.com>
115221         * config/srclist.txt: Add glibc bug 1423 for md5.h.
115223 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
115225         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
115226         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
115227         needed, since the source code now assumes these .h files.
115229 2005-10-05  Derek Price  <derek@ximbiot.com>
115231         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
115233 2005-10-05  Bruno Haible  <bruno@clisp.org>
115235         * modules/stdint (License): Change to LGPL.
115237 2005-10-04  Simon Josefsson  <jas@extundo.com>
115239         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
115240         D. Baushke" <mdb@gnu.org>.
115242 2005-10-04  Bruno Haible  <bruno@clisp.org>
115244         * lib/verify.h (verify_true): Provide alternative definition for C++.
115246 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
115248         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
115249         (SSIZE_MAX): New macro, if not already defined.
115250         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
115251         than 2 GiB.
115253 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
115255         Sync from coreutils.
115256         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
115257         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
115258         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
115259         ULLONG_MAX doesn't work with 2.7.2.1.
115261 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
115263         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
115264         From Ben Pfaff.
115266         * modules/exclude (Depends-on): Depend on verify.
115267         * modules/strtoimax (Depends-on): Likewise.
115268         * modules/utimecmp (Depends-on): Likewise.
115270 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
115272         * lib/exclude.c: Include verify.h.
115273         (verify): Remove.  All callers changed to use verify.h's version.
115274         * lib/strtoimax.c: Likewise.
115275         * lib/utimecmp.c: Likewis.e
115277         Sync from coreutils.
115278         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
115279         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
115280         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
115281         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
115282         bother returning ENOSYS if settimeofday or stime fails; just let
115283         them return whatever errno they want to return.
115284         * lib/utimens.c: Include unistd.h, for dup2.
115285         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
115286         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
115288 2005-10-02  Jim Meyering  <jim@meyering.net>
115290         Sync from coreutils.
115291         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
115292         from glibc-2.2.5 that fails for read-only files.
115294 2005-10-02  Jim Meyering  <jim@meyering.net>
115296         Sync from coreutils.
115297         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
115298         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
115299         `#if HAVE_CONFIG_H'.
115300         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
115301         Remove AT_FDCWD test.
115302         Do not consume the fd unless successful.
115303         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
115304         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
115305         block, so that we don't even try to compile it if settimeofday is
115306         available.  This works around a compilation failure on OSF1 V5.1,
115307         due to stime requiring a `long int*' while tv_sec is `int'.
115309 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
115311         Sync from coreutils.
115312         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
115313         against `yes', rather than just testing for nonempty.
115315 2005-10-01  Simon Josefsson  <jas@extundo.com>
115317         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
115318         and Darwin.
115320         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
115321         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
115322         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
115323         freeaddrinfo and gai_strerror are declared by the POSIX headers.
115324         Check if struct addrinfo is declared.
115326 2005-10-01  Simon Josefsson  <jas@extundo.com>
115328         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
115329         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
115330         AI_* and EAI_* definitions.  Protect function declarations.
115332 2005-10-01  Jim Meyering  <jim@meyering.net>
115334         Sync from coreutils.
115336         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
115337         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
115338         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
115339         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
115340         in the inet and nsl libraries.  Required on Solaris 5.7.
115342 2005-10-01  Jim Meyering  <jim@meyering.net>
115344         Sync from coreutils.
115345         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
115346         in the inet and nsl libraries.  Required on Solaris 5.7.
115348 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
115350         * lib/getdelim.c (getdelim): Remove unused variables.
115352 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
115354         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
115355         so that the code works even with ancient cpp.  Portability problem
115356         with GCC 2.7.2.1 reported by Thomas M.Ott.
115358 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
115360         * modules/regex (Depends-on): Add strcase.
115362         * modules/gethostname (Licence): Change from GPL to LGPL, since
115363         gethostname.c is a trivial implementation of a standard library
115364         function.
115365         * modules/poll (License): Change from GPL to LGPL, since it's
115366         derived from LGPL code.
115368 2005-09-27  Jim Meyering  <jim@meyering.net>
115370         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
115371         HAVE_CONFIG_H.
115373         * lib/intprops.h (signed_type_or_expr__): Define.
115374         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
115375         for unsigned types.
115377 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
115379         * lib/verify.h (verify_expr): Remove, replacing with:
115380         (verify_true): New macro that returns true instead of void.
115381         (verify_type__): Remove.
115382         (verify): Use verify_true rather than verify_type__.
115384 2005-09-26  Bruno Haible  <bruno@clisp.org>
115386         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
115387         is necessary.
115388         (lib_SOURCES): Remove mbchar.c.
115389         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
115390         (Files): Add m4/mbrtowc.m4.
115391         * modules/mbiter: Likewise.
115392         * modules/mbuiter: Likewise.
115394 2005-09-26  Bruno Haible  <bruno@clisp.org>
115396         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
115397         compile mbchar.c if they are not both present.
115398         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
115399         * m4/mbiter.m4 (gl_MBITER): Likewise.
115400         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
115401         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
115402         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
115404 2005-09-25  Jim Meyering  <jim@meyering.net>
115406         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
115407         also uses socklen_t.
115409 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
115411         * lib/utimens.c (ENOSYS): Define if not already defined.
115412         (futimens): Support having a null PATH if the file descriptor
115413         is nonnegative.
115415         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
115416         Remove.
115417         (__attribute): Define to empty unless GCC 3.1 or later.
115418         This works around a core dump on OpenBSD 3.4, which has GCC
115419         2.95.3, which dumps core when given __attribute__(()).  It also
115420         simplifies other tests, since we really don't want to bother with
115421         worrying about which ancient version of GCC supported what.
115422         Original problem reported by Yoann Vandoorselaere, with part of
115423         the fix suggested by Derek Price.
115425 2005-09-24  Jim Meyering  <jim@meyering.net>
115427         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
115428         so we can once again use a positive bitfield width of 1 -- now we
115429         don't have to explain why we were using a bitfield width of 2.
115431 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
115433         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
115434         and similarly for the other external symbols.  Problem reported
115435         by James Gallager.
115437         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
115438         bug reported by Jim Meyering.
115440         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
115441         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
115442         not needed, since socklen is a prerequisite module.
115444 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
115446         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
115447         Problem reported by Eric Blake.
115448         (getaddrinfo): Initialize se so that it's not garbage.
115449         Redo internal storage allocation so that it doesn't make unportable
115450         assumptions about alignment.
115451         Fix a memory leak.
115453         * lib/utimens.c (futimens): Use futimesat if available.
115454         Prefer it to futimes since it doesn't have the futimes bug.
115456         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
115457         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
115458         Instead, declare a function that returns a pointer to an array,
115459         and use verify_type__ to declare the size of the array.
115460         Problem and germ of a solution reported by Bruno Haible.
115461         (verify_type__): Use 2, not 1, for bitfield size, to avoid
115462         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
115464 2005-09-23  Jim Meyering  <jim@meyering.net>
115466         Sync from coreutils.
115467         Correct build failure (socklen_t not defined) on at least
115468         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
115469         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
115471 2005-09-23  Jim Meyering  <jim@meyering.net>
115473         * modules/getaddrinfo (Depends-on): Add socklen.
115475 2005-09-23  Bruno Haible  <bruno@clisp.org>
115477         * tests/test-verify.c: New file.
115479 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
115481         Sync from coreutils.
115483         * modules/argmatch (Depends-on): Add verify.
115484         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
115485         unistd-safer.
115486         * modules/save-cwd (Depends-on): Likewise.
115488         * modules/openat (Files): Add lib/openat-die.c.
115489         (Depends-on): Remove error, exitfail.
115490         Add dirname.
115492         * modules/verify: New file.
115493         * MODULES.html.sh (Diagnostics <assert.h>): New section,
115494         with "verify" module.
115496 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
115498         Sync from coreutils.
115500         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
115501         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
115502         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
115503         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
115504         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
115505         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
115506         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
115507         Don't bother checking for string.h, stdlib.h, unistd.h.
115508         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
115509         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
115510         module's job.
115511         * m4/jm-macros.m4 (gl_MACROS): Likewise.
115512         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
115514         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
115515         (gl_GETDATE): Use it.
115517         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
115519 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
115521         Sync from coreutils.
115523         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
115524         stat-time.h.
115525         * lib/argmatch.h: Include verify.h
115526         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
115527         (ARGMATCH_ASSERT): Remove; unused.
115528         * lib/canonicalize.c: Assume STDC_HEADERS.
115529         * lib/exclude.c: Include "strcase.h".
115530         * lib/regex_internal.h [!defined _LIBC]: Likewise.
115531         * lib/getusershell.c: Include stdio--.h rather than stdio.h
115532         and stdio-safer.h.
115533         (getusershell): Call fopen, not fopen_safer.
115534         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
115535         Do not include unistd-safer.h.
115536         (save_cwd): Don't call fd_safer; no longer needed
115537         now that we include fcntl--.h.
115539         * lib/getdate.y (relative_time): New type.
115540         (RELATIVE_TIME_0): New constant.
115541         (parser_control): Use relative_time instead of doing it ourselves.
115542         (%union): Add new relative_time rel member.
115543         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
115544         Now typeless.
115545         (relunit, relunit_snumber): Now of type rel.
115546         (zone, rel, relunit, get_date): Adjust to above changes.
115548         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
115549         Do not include unistd-safer.h.
115550         (getloadavg): Don't call fd_safer; no longer needed
115551         now that we include fcntl--.h.
115553         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
115554         (make_dir_parents): Treat ENOSYS like EEXIST.
115556         Improve quality of diagnostics on restore_cwd failure.
115557         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
115558         (make_dir_parents): Last arg is now int * (for errno), not bool *.
115559         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
115560         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
115561         each time through the loop.  Do not diagnose restore_cwd failure;
115562         that is the caller's job (and perhaps the caller does not care).
115564         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
115565         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
115566         If the file already exists but is not a directory, don't bother
115567         to try to make its parents.
115568         Close potential file descriptor leak if we can't chdir("/") (!).
115569         Don't always return true if chdir($PWD) fails; return true only
115570         if the requested action was done successfully (except for the
115571         chdir($PWD)).
115572         Don't log final directory unless we actually made it.
115573         Refactor to avoid duplicate code to fix up permissions.
115574         Don't attempt to fix up parent permissions if chdir($PWD) fails.
115576         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
115577         to make it a bit faster and (I hope) clearer.
115578         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
115579         Fix bug in formats like %2N.
115581         * lib/verify.h: New file.
115583 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
115585         Sync from coreutils.
115586         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
115588 2005-09-22  Jim Meyering  <jim@meyering.net>
115590         Sync from coreutils.
115592         * m4/lstat.m4 (gl_FUNC_LSTAT):
115593         Use AC_LIBSOURCES to require lstat.c and lstat.h.
115594         Remove obsolete comment.
115595         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
115596         * m4/xstrtod.m4: Likewise.
115598         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
115600 2005-09-22  Jim Meyering  <jim@meyering.net>
115602         Sync from coreutils.
115604         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
115606         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
115607         the .tm_year member, since otherwise gcc-4.0 would now warn about
115608         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
115610         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
115611         order to avoid an unsuppressible warning from gcc on 64-bit systems.
115613         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
115614         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
115615         when run in a time zone for which daylight savings time is in effect
115616         for the starting date.
115618         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
115619         stop us from restricting permissions of just-created absolute-named
115620         directories.
115621         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
115622         to restore initial working directory.
115623         * lib/mkdir-p.c (make_dir_parents): New parameter:
115624         different_working_dir, to tell caller if/when we change the working
115625         directory and are unable to return to the initial one.
115626         * lib/mkdir-p.h (make_dir_parents): Update prototype.
115627         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
115628         `return false'.  This fixes a bug introduced on 2004-07-30.
115630         * lib/openat.c (fdopendir): Be sure to close the supplied
115631         file descriptor before returning.  This makes our replacement
115632         implementation a little closer to Solaris's, where fdopendir
115633         ties the file descriptor to the returned DIR* pointer.
115634         * lib/openat.c (unlinkat): New function.
115635         * lib/openat.h (unlinkat): Add prototype.
115636         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
115637         (openat_restore_fail): Rename from openat_restore_die.
115638         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
115640         Provide an alternative to exiting immediately upon save_cwd or
115641         restore_cwd failure.  Now, an application can arrange e.g.,
115642         to perform a longjump in that case.
115643         * lib/openat.c: Include dirname.h.
115644         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
115645         (rpl_openat, fdopendir, fstatat): Call openat_save_die
115646         and openat_restore_die rather than calling error directly.
115647         Don't include "error.h" or "exitfail.h"; they're no longer needed.
115649         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
115650         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
115651         define.
115653         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
115654         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
115655                             int utc, int nanoseconds);
115656         Background:
115657         date should not have to allocate a megabyte of virtual memory to
115658         handle a format argument like +%1048575T.  When implemented with
115659         strftime, it must allocate such a buffer, use strftime to fill it
115660         in, print it, then free it.
115661         With fprintftime, it simply prints everything and exits.
115662         With no need for memory allocation, that's one fewer way to fail.
115663         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
115664         optional field width, not before, so we accept %9:z, not %:9z.
115665         (my_strftime): Be sure to use L_('x') for literals.
115667         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
115668         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
115669         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
115670         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
115671         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
115672         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
115673         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
115674         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
115675         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
115676         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
115677         * lib/xgethostname.c, lib/xreadlink.c:
115678         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
115680         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
115681         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
115682         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
115683         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
115684         and don't include <sys/file.h>).
115686 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
115688         Sync from coreutils.
115690         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
115691         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
115692         [!LDAV_DONE]: Avoid unused variable warning.
115694 2005-09-21  Bruno Haible  <bruno@clisp.org>
115696         * lib/unicodeio.h (unicode_to_mb): New declaration.
115698 2005-09-20  Derek Price  <derek@ximbiot.com>
115700         * lib/getaddrinfo.c: Don't include <netdb.h> included from
115701         getaddrinfo.h.
115703 2005-09-20  Bruno Haible  <bruno@clisp.org>
115705         * gnulib-tool: Remove trailing slashes from the values specified for
115706         --source-base, --m4-base, --tests-base, --aux-dir.
115707         Suggested by Simon Josefsson <jas@extundo.com>.
115709 2005-09-20  Bruno Haible  <bruno@clisp.org>
115711         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
115712         func_modules_to_filelist, func_import, func_create_testdir): Make all
115713         sorting results locale-independent, so that gnulib-cache.m4 doesn't
115714         change when gnulib-tool is invoked in a different locale.
115716 2005-09-19  Simon Josefsson  <jas@extundo.com>
115718         * m4/socklen.m4: Fix typo.
115720 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
115722         Use a consistent style for including <config.h>.
115723         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
115724         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
115725         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
115726         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
115727         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
115728         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
115729         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
115730         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
115731         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
115732         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
115733         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
115734         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
115735         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
115736         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
115737         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
115738         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
115739         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
115740         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
115741         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
115742         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
115743         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
115744         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
115745         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
115746         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
115747         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
115748         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
115749         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
115750         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
115751         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
115752         lib/xstrtoumax.c, lib/yesno.c:
115753         Standardize inclusion of config.h.
115754         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
115755         lib/inttostr.h:  Removed inclusion of config.h from header files.
115756         * lib/inttostr.c:  Adjusted in-tree users.
115757         * lib/timespec.h: Remove superfluous warning to include config.h.
115758         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
115759         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
115760         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
115761         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
115762         config.h with HAVE_CONFIG_H.
115764 2005-09-19  Jim Meyering  <jim@meyering.net>
115766         * modules/pathmax (License): Change to LGPL.
115768 2005-09-19  Derek Price  <derek@ximbiot.com>
115770         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
115772 2005-09-19  Bruno Haible  <bruno@clisp.org>
115774         * gnulib-tool (import): Provide default for --tests-base.
115776 2005-09-19  Bruno Haible  <bruno@clisp.org>
115778         * doc/quote.texi: New file, extracted from gnulib.texi.
115779         * doc/ctime.texi: New file, extracted from gnulib.texi.
115780         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
115781         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
115782         * doc/gnulib.texi: Include them.
115784 2005-09-18  Bruno Haible  <bruno@clisp.org>
115786         Portability fix.
115787         * gnulib-tool (func_readlink): New function.
115788         (func_ln_if_changed): Use it.
115790 2005-09-18  Bruno Haible  <bruno@clisp.org>
115792         * gnulib-tool: Support --with-tests also with --import.
115793         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
115794         (func_import): Use variables $testsbase and $inctests. Emit a
115795         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
115796         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
115797         SUBDIRS += $testsdir.
115798         (func_create_testdir): Update.
115800 2005-09-18  Bruno Haible  <bruno@clisp.org>
115802         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
115803         instead of $dry_run.
115804         (func_cp_if_changed, func_mv_if_changed): Remove functions.
115805         (func_ln_if_changed): Don't handle dry-run here.
115806         (func_import): In dry-run mode, detect more precisely which actions
115807         would be performed, and don't use "...ing" verbs.
115809 2005-09-18  Bruno Haible  <bruno@clisp.org>
115811         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
115812         (func_import): Use join on two temporary files instead of three nested
115813         loops, in order to determine which files are new or old.
115815 2005-09-18  Bruno Haible  <bruno@clisp.org>
115817         * gnulib-tool (func_import): Comment out code that spits out the
115818         new files with --dry-run.
115820 2005-09-18  Bruno Haible  <bruno@clisp.org>
115822         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
115824 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
115826         * lib/stat-time.h: New file.
115827         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
115828         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
115829         in a different way.
115830         (timespec_cmp): New function.
115831         * lib/utimecmp.c: Include stat-time.h.
115832         (SYSCALL_RESOLUTION): Depend on whether various struct stat
115833         members exist, not on the obsolescent ST_MTIM_NSEC.
115834         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
115836 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
115838         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
115840 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
115842         * MODULES.html.sh (File system functions): Add stat-time.
115843         * modules/stat-time: New file.
115844         * modules/timespec (Files): Remove m4/st_mtim.m4; this
115845         is now done in a different way, by the stat-time module.
115846         * modules/utimecmp (Depends-on): Add stat-time.
115848 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
115850         * m4/st_mtim.m4: Remove.  Superseded by...
115851         * m4/stat-time.m4: New file.
115852         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
115853         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
115855 2005-09-15  Derek Price  <derek@ximbiot.com>
115857         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
115859 2005-09-15  Derek Price  <derek@ximbiot.com>
115861         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
115862         * lib/regex_internal.c: Ditto, using this...
115863         (__GNUC_PREREQ): ...new macro.
115864         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
115865         using...
115866         (__GNUC_PREREQ): ...this new macro.
115868         * lib/strstr.h: Include string.h. Define strstr as a macro here.
115870 2005-09-15  Derek Price  <derek@ximbiot.com>
115871             Paul Eggert  <eggert@cs.ucla.edu>
115873         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
115874         changes, consolidating in...
115875         * lib/regex_internal.h: ...this file.
115877 2005-09-13  Jim Meyering  <jim@meyering.net>
115879         * lib/canon-host.c: Filter through gnu indent and reword comments
115880         slightly.
115881         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
115883 2005-09-13  Derek Price  <derek@ximbiot.com>
115885         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
115886         failure.
115887         Reported by Jim Meyering  <jim@meyering.net>.
115889 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
115891         * lib/base64.c: Typo.
115892         (base64_encode): Put b64str in initialized data section.
115894 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
115896         Merge glibc and coreutils changes into gnulib, plus a few
115897         extra fixes.
115898         * lib/md5.c: Use #error rather than a string.
115899         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
115900         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
115901         (__attribute__): Define to empty for non recent-GCC.
115902         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
115903         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
115904         Renamed from their non-__ counterparts, with new macros replacing
115905         them if not _LIBC.  Add __THROW attribute.
115906         (rol): Remove.
115907         (struct md5_ctx): Align buffer if using GCC.
115908         * lib/sha1.h (struct sha1_ctx): Likewise.
115909         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
115910         The old name was backwards.
115911         (NOTSWAP): Remove; not used.
115912         (rol): New macro, moved here from md5.h.
115913         (sha1_process_block): Remove a FIXME that doesn't make sense.
115915 2005-09-12  Derek Price  <derek@ximbiot.com>
115917         Return usable errors from canon-host.
115918         * lib/canon-host.h: New file.
115919         * lib/canon-host.c (canon_host): Wrap...
115920         (canon_host_r): ...this new function, which now relies exclusively on
115921         getaddrinfo.
115922         (ch_strerror): New function.
115923         (last_cherror): New global.
115924         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
115925         interface.
115926         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
115927         void *.
115928         (freeaddrinfo): Free ai->ai_canonname when set.
115930 2005-09-12  Derek Price  <derek@ximbiot.com>
115932         Make canon-host require getaddrinfo.
115933         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
115934         AC_LIBSOURCE canon-host.h.  Call...
115935         (gl_PREREQ_CANON_HOST): ...this new function, which requires
115936         gl_GETADDRINFO.
115937         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
115939 2005-09-12  Derek Price  <derek@ximbiot.com>
115941         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
115942         LGPL.
115943         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
115945 2005-09-12  Derek Price  <derek@ximbiot.com>
115947         * lib/gai_strerror.c: Include config.h when available.  Include
115948         getaddrinfo.h before other headers to test interface.
115949         Reported by Larry Jones <lawrence.jones@ugs.com>.
115951 2005-09-12  Derek Price  <derek@ximbiot.com>
115952             Paul Eggert  <eggert@cs.ucla.edu>
115954         * modules/glob (Files): Add glob-libc.h.
115956 2005-09-12  Derek Price  <derek@ximbiot.com>
115957             Paul Eggert  <eggert@cs.ucla.edu>
115959         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
115960         glob_.h, glob-libc.h.
115961         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
115963 2005-09-12  Derek Price  <derek@ximbiot.com>
115964             Paul Eggert  <eggert@cs.ucla.edu>
115966         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
115967         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
115968         protecting things that should be done only in gnulib contexts.
115969         * lib/glob_.h: New file, containing only the glob things needed for
115970         gnulib.
115971         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
115972         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
115973         (glob, globfree, glob_pattern_p): Now defined simply in terms of
115974         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
115975         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
115976         and to respect the namespace rules better.
115978 2005-09-08  Simon Josefsson  <jas@extundo.com>
115980         * modules/socklen: New file.
115982 2005-09-08  Simon Josefsson  <jas@extundo.com>
115984         * m4/socklen.m4: New file.
115986 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
115988         * modules/utimens (Files): Add m4/utimbuf.m4, since
115989         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
115990         Reported by Sergey Poznyakoff.
115992 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
115994         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
115995         definitions, since that's the preferred style in glibc.
115996         Fix a minor spacing issue, and update copyright notice to match
115997         glibc's.
115999 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
116001         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
116003 2005-09-06  Simon Josefsson  <jas@extundo.com>
116005         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
116006         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
116008 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
116010         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
116011         warning.
116013 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
116015         * config/srclist.txt: Add glibc bug 1302.
116017 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
116019         Change bitset word type from unsigned int to unsigned long int,
116020         as this has better performance on typical 64-bit hosts.
116021         Port bitset code to hosts with unusual word sizes.
116022         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
116023         (build_collating_symbol):
116024         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
116025         argument is a bitset.  This is merely a style issue, but it makes
116026         it clearer that an entire array is expected.
116027         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
116028         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
116029         Port to the case where bitset_word is not the same as unsigned int.
116030         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
116031         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
116032         Likewise.
116033         * lib/regexec.c (check_dst_limits_calc_pos_1,
116034         check_subexp_matching_top):
116035         (build_trtable, group_nodes_into_DFAstates):
116036         Likewise.
116037         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
116038         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
116039         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
116040         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
116041         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
116042         * lib/regcomp.c (optimize_subexps, lower_subexp):
116043         Work even if bitset_word has holes in its bitwise representation.
116044         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
116045         * lib/regexec.c (check_dst_limits_calc_pos_1,
116046         check_subexp_matching_top):
116047         Likewise.
116048         * lib/regex_internal.c (re_string_reconstruct):
116049         Don't assume UCHAR_MAX == 255.
116050         * lib/regex_internal.h (bitset_set_all): Likewise.
116051         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
116052         All uses changed.
116053         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
116054         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
116055         All uses changed.
116056         (BITSET_WORD_MAX): New macro.
116057         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
116058         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
116059         (bitset_empty, bitset_copy):
116060         Prefer sizeof (bitset) to multiplying it out ourselves.
116061         (bitset_not_merge): Remove; unused.
116062         (bitset_contain): Return bool, not unsigned int with one bit on.
116063         All callers changed.
116064         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
116065         alignment than re_node_set; do this by defining a new internal
116066         type struct dests_alloc and using it to allocate memory.
116068 2005-09-05  Bruno Haible  <bruno@clisp.org>
116070         * gnulib-tool (func_import): Fix comparison in handling of symbolic
116071         links.
116073 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
116075         * modules/size_max (Makefile.am): Add size_max.h
116077 2005-09-04  Derek Price  <derek@ximbiot.com>
116079         * gnulib-tool (func_import): Fix reversed $symbolic logic.
116081 2005-09-03  Simon Josefsson  <jas@extundo.com>
116083         * gnulib-tool: Fix typo.
116085 2005-09-03  Simon Josefsson  <jas@extundo.com>
116087         * config/srclist.txt: Add glibc bug 1293.
116089 2005-09-03  Derek Price  <derek@ximbiot.com>
116091         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
116092         From Larry Jones <lawrence.jones@ugs.com>.
116094 2005-09-02  Simon Josefsson  <jas@extundo.com>
116096         * modules/socklen: New file.
116098 2005-09-02  Simon Josefsson  <jas@extundo.com>
116100         * modules/havelib: New module.
116102         * modules/gettext, modules/iconv, modules/lock, modules/readline:
116103         Use havelib.
116105 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
116107         Check for arithmetic overflow when calculating sizes, to prevent
116108         some buffer-overflow issues.  These patches are conservative, in the
116109         sense that when I couldn't determine whether an overflow was possible,
116110         I inserted a run-time check.
116111         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
116112         macros.
116113         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
116114         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
116115         (re_xnrealloc, re_x2nrealloc): New inline functions.
116116         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
116117         parse_bracket_exp):
116118         (build_equiv_class, build_charclass): Check for arithmetic overflow
116119         in size expression calculations.
116120         * lib/regex_internal.c (re_string_realloc_buffers):
116121         (build_wcs_upper_buffer, re_node_set_add_intersect):
116122         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
116123         (re_dfa_add_node, register_state): Likewise.
116124         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
116125         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
116126         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
116127         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
116129 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
116131         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
116132         m4/ulonglong.m4.  Problem reported by Martin Lambers.
116134 2005-09-02  Bruno Haible  <bruno@clisp.org>
116136         Support for lib vs. lib64 distinction on biarch platforms.
116137         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
116138         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
116139         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
116141 2005-09-02  Bruno Haible  <bruno@clisp.org>
116143         * gnulib-tool (import): In the other first-use case, provide defaults
116144         as well.
116146 2005-09-02  Bruno Haible  <bruno@clisp.org>
116148         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
116149         patches not yet found in the latest gettext release.
116151 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
116153         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
116154         to avoid a collision with bits/local_lim.h in glibc.
116155         All uses changed.  Problem reported by Dmitry V. Levin in
116156         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
116158         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
116159         bugs in int versus size_t comparisons.
116160         (re_string_context_at): Fix bug where the code assumed that
116161         Idx is signed.
116163         Use bool where appropriate.
116164         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
116165         All callers changed.
116166         (calc_eclosure_iter): Likewise, for ROOT arg.
116167         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
116168         (build_charclass_op): Likewise, for NON_MATCH arg.
116169         * lib/regex_internal.c (re_string_allocate, re_string_construct):
116170         (re_string_construct_common): Likewise, for ICASE arg.
116171         * lib/regexec.c (re_search_2_stub, re_search_stub):
116172         Likewise, for RET_LEN arg.
116173         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
116174         (set_regs): Likewise, for FL_BACKTRACK arg.
116175         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
116176         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
116177         (calc_eclosure_iter, parse_bracket_exp):
116178         Use bool for internal variables that are booleans.
116179         * lib/regexec.c (re_search_internal, check_matching,
116180         proceed_next_node):
116181         (set_regs, build_sifted_states, sift_states_bkref):
116182         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
116183         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
116184         (find_collation_sequence_value):
116185         Likewise.
116186         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
116187         (re_node_set_compare):
116188         Return bool, not int. All callers changed.
116189         * lib/regexec.c (check_halt_node_context, check_dst_limits):
116190         (build_trtable, check_node_accept): Likewise.
116191         * lib/regex_internal.h: Include stdbool.h.
116193         Fix bugs uncovered when converting to bool.
116194         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
116195         failure instead of charging ahead blindly.
116196         * lib/regex_internal.c (register_state): Likewise.
116197         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
116198         for freeing internal storage.
116199         (group_nodes_into_DFA_states): Use unsigned int, not int, for
116200         bitset pieces used as boolean, to avoid undefined behavior
116201         on hosts that do int overflow checking.
116203 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
116205         * config/srclist.txt: Add glibc bugs 1285-1287.
116207 2005-09-01  Jim Meyering  <jim@meyering.net>
116209         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
116210         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
116211         Require gl_STAT_MACROS, too.
116213 2005-09-01  Bruno Haible  <bruno@clisp.org>
116215         * gnulib-tool (import): In the first-use case, provide defaults.
116217 2005-09-01  Bruno Haible  <bruno@clisp.org>
116219         * gnulib-tool (func_import): Remove the .tmp files.
116221 2005-09-01  Bruno Haible  <bruno@clisp.org>
116223         * gnulib-tool (func_import): Fix handling of symbolic links.
116225 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
116227         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
116228         old glibc regex code mishandles strings longer than 2**31 bytes.
116229         This patch fixes this when the regex code is used in gnulib
116230         (i.e., outside glibc).
116232         This patch should not affect the use of the regex code inside
116233         glibc.  No doubt this problem also needs to be handled for glibc
116234         as well, but the result will be an incompatible change to the
116235         glibc ABI, and the old ABI will have to be supported too.  That
116236         can be the subject for another patch.
116238         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
116239         governing whether the rest of this patch is active.  By default,
116240         the macro is disabled and the patch has no effect.
116241         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
116242         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
116243         (struct re_pattern_buffer, re_search, re_search_2, re_match):
116244         (re_match_2, re_set_registers): Use the new types.
116245         * lib/regex_internal.h (Idx, re_hashval_t): New types.
116246         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
116247         New macros.
116248         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
116249         (re_string_context_at, bin_tree_t, re_dfastate_t):
116250         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
116251         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
116252         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
116253         (re_string_char_size_at, re_string_wchar_at):
116254         (re_string_elem_size_at):
116255         Use the new types and macros to port to 64-bit hosts.
116256         Use unsigned types for internal values, so that the code
116257         mostly works even for arrays larger than SSIZE_MAX.
116258         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
116259         (search_duplicated_node, calc_eclosure_iter, fetch_number):
116260         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
116261         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
116262         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
116263         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
116264         (calc_inveclosure, parse_dup_op, build_range_exp):
116265         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
116266         (fetch_number, create_token_tree, mark_opt_subexp):
116267         Likewise.
116268         * lib/regex_internal.c (re_string_construct_common,
116269         create_ci_newstate):
116270         (create_cd_newstate, re_string_allocate, re_string_construct):
116271         (re_string_realloc_buffers, build_wcs_upper_buffer):
116272         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
116273         (re_string_reconstruct, re_string_peek_byte_case):
116274         (re_string_fetch_byte_case, re_string_context_at):
116275         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
116276         (re_node_set_init_copy, re_node_set_add_intersect):
116277         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
116278         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
116279         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
116280         (re_acquire_state, re_acquire_state_context, register_state):
116281         Likewise.
116282         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
116283         search_cur_bkref_entry):
116284         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
116285         (re_search_internal, re_search_2_stub, re_search_stub)
116286         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
116287         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
116288         (update_cur_sifted_state, check_dst_limits):
116289         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
116290         (check_subexp_limits, sift_states_bkref, merge_state_array):
116291         (check_subexp_matching_top, get_subexp, get_subexp_sub):
116292         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
116293         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
116294         (expand_bkref_cache, check_node_accept_bytes):
116295         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
116296         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
116297         (acquire_init_state_context, check_halt_node_context):
116298         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
116299         (sift_states_backward, clean_state_log_if_needed):
116300         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
116301         (find_recover_state, transit_state_sb, transit_state_mb):
116302         (transit_state_bkref, build_trtable, match_ctx_clean):
116303         Likewise.
116304         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
116305         to work around an assumption that REG_MISSING is negative.
116307         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
116308         (seek_collating_symbol_entry) [defined _LIBC]:
116309         (lookup_collation_sequence_value) [defined _LIBC]:
116310         (build_range_exp, build_collating_symbol) [defined _LIBC]:
116311         Use prototypes rather than old-style function definitions.
116312         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
116313         (transit_state_sb) [0]:
116314         (find_collation_sequence_value) [defined _LIBC]: Likewise.
116316         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
116317         rm_eo.
116319         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
116320         (optimize_subexps, lower_subexp):
116321         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
116322         since the signed shift might overflow.  Use 1u<<31 instead.
116323         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
116324         Likewise.
116325         * lib/regexec.c (check_dst_limits_calc_pos_1,
116326         check_subexp_matching_top): Likewise.
116328         * lib/regcomp.c (optimize_subexps, lower_subexp):
116329         Use CHAR_BIT rather than 8, for clarity.
116330         * lib/regexec.c (check_dst_limits_calc_pos_1):
116331         (check_subexp_matching_top): Likewise.
116332         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
116333         have to worry about portability issues when shifting it left.
116334         Remove no-longer-needed test for table_size > 0.
116335         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
116336         in a word, as the resulting behavior is undefined.
116337         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
116338         in one case, a <= should have been an <, and in another case the
116339         whole test was missing.
116340         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
116341         the standard name CHAR_BIT.
116342         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
116343         this is not true on one's complement and signed-magnitude hosts.
116345         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
116346         next_last_offset.
116347         (struct re_dfa_t): Remove unused member states_alloc.
116348         * lib/regcomp.c (init_dfa): Don't initialize unused members.
116350 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
116352         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
116353         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
116354         and large-file glibc and in 32-bit large-file Solaris.
116356 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
116358         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
116359         lengths fit in regoff_t; this isn't true if regoff_t is the same
116360         width as size_t.
116361         * lib/regex.c (re_search_internal): 5th arg is LAST_START
116362         (= START + RANGE) instead of RANGE.  This avoids overflow
116363         problems when regoff_t is the same width as size_t.
116364         All callers changed.
116365         (re_search_2_stub): Check for overflow when adding the
116366         sizes of the two strings.
116367         (re_search_stub): Check for overflow when adding START
116368         to RANGE; if it occurs, substitute the extreme value.
116370 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
116372         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
116374 2005-08-31  Jim Meyering  <jim@meyering.net>
116376         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
116377         a pointer-to-const.
116378         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
116379         (register_state): Likewise.
116380         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
116381         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
116382         (group_nodes_into_DFAstates): Likewise.
116384 2005-08-31  Jim Meyering  <jim@meyering.net>
116386         * check-module: Add a FIXME comment.
116388 2005-08-31  Eric Blake  <ebb9@byu.net>
116390         * modules/unistd-safer (Files): Add unistd--.h.
116391         * modules/stdio-safer (Files): Add stdio--.h.
116393 2005-08-31  Derek Price  <derek@ximbiot.com>
116395         * lib/getdelim.c (getdelim): Return EOF on EOF.
116396         Reported by Larry Jones <lawrence.jones@ugs.com>.
116398 2005-08-31  Bruno Haible  <bruno@clisp.org>
116400         Avoid unnecessary diffs in the generated lib/Makefile.am.
116401         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
116402         the generated files.
116403         (func_import): Don't set cmd.
116405 2005-08-31  Bruno Haible  <bruno@clisp.org>
116407         * lib/strstr.c: Include <stddef.h>, for NULL.
116408         * lib/strcasestr.c: Likewise.
116409         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
116411 2005-08-31  Bruno Haible  <bruno@clisp.org>
116413         * gnulib-tool: New option --macro-prefix.
116414         (func_import): Use macro_prefix.
116415         (import): Handle option --macro-prefix.
116417 2005-08-31  Bruno Haible  <bruno@clisp.org>
116419         * gnulib-tool (import): Rename most ac_* variables to cached_*.
116420         Also use new variables cached_lgpl, cached_libtool.
116422 2005-08-31  Bruno Haible  <bruno@clisp.org>
116424         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
116425         always instantiating them.
116427 2005-08-31  Bruno Haible  <bruno@clisp.org>
116429         * gnulib-tool (func_import): Read the previous cached settings
116430         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
116431         earlier added by gnulib but are now dropped. Warn when a gnulib file
116432         overwrites a non-gnulib file.
116434 2005-08-31  Bruno Haible  <bruno@clisp.org>
116436         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
116437         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
116438         projects that don't keep autogenerated files in CVS. Put into
116439         actioncmd only the specified modules, not the transitive closure.
116441 2005-08-31  Bruno Haible  <bruno@clisp.org>
116443         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
116444         Create directories that shall be filled.
116445         (import): Don't look for gl_* macros in configure.ac. Recurse across
116446         all directories containing a gnulib-cache.m4 files, if meaningful.
116448 2005-08-31  Bruno Haible  <bruno@clisp.org>
116450         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
116451         (import): Set seen_libtool when we see gl_LIBTOOL.
116453 2005-08-31  Bruno Haible  <bruno@clisp.org>
116455         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
116456         declaration macro definitions from generated gnulib.m4.
116458 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
116460         * lib/iconvme.h: Add prototype for iconv_alloc.
116462 2005-08-29  Simon Josefsson  <jas@extundo.com>
116464         * lib/iconvme.c: Fix errno.
116466 2005-08-29  Bruno Haible  <bruno@clisp.org>
116468         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
116469         that it works when the directory contains spaces.
116471 2005-08-29  Bruno Haible  <bruno@clisp.org>
116473         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
116475 2005-08-29  Bruno Haible  <bruno@clisp.org>
116477         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
116478         Emit more advice.
116480 2005-08-29  Bruno Haible  <bruno@clisp.org>
116481         and Stepan Kasal  <kasal@ucw.cz>
116483         * check-module: If more parameters are given, check each of them
116484         separately; add more exceptions, as noted by Jim Meyering.
116485         (check_module): New procedure.
116486         (%exempt_header): Now contains all exceptions.
116488 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
116490         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
116492 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
116494         * lib/iconvme.c: Split iconv_string into iconv_alloc.
116496 2005-08-28  Bruno Haible  <bruno@clisp.org>
116498         * m4/gnulib-tool.m4: New file.
116500 2005-08-27  Jim Meyering  <jim@meyering.net>
116502         * modules/unistd-safer (Files): Add pipe-safer.c.
116503         * modules/fcntl-safer (Files): Add creat-safer.c.
116505 2005-08-27  Jim Meyering  <jim@meyering.net>
116507         * m4/stdlib-safer.m4: New file.  From coreutils.
116508         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
116509         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
116510         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
116511         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
116512         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
116514 2005-08-27  Jim Meyering  <jim@meyering.net>
116516         * lib/fopen-safer.c: Merge minor changes from coreutils.
116517         * lib/dup-safer.c: Likewise.
116518         * lib/fd-safer.c: Likewise.
116520         Merge from coreutils.
116521         * lib/stdio--.h: New file.
116522         * lib/stdlib--.h: New file.
116523         * lib/mkstemp-safer.c: New file.
116525         GNU tar needs these.
116526         * lib/pipe-safer.c: New file.
116527         * lib/creat-safer.c: New file.
116528         * lib/fcntl--.h (creat): Define to creat_safer.
116529         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
116530         * lib/unistd--.h (pipe): Define to pipe_safer.
116531         * lib/unistd-safer.h: Declare pipe_safer.
116533 2005-08-26  Simon Josefsson  <jas@extundo.com>
116535         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
116536         Haible <bruno@clisp.org>.
116538 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
116540         * lib/regex_internal.h: Remove all references to
116541         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
116542         or better.
116543         (bitset_not, bitset_merge, bitset_not_merge):
116544         (bitset_mask, re_string_allocate, re_string_construct):
116545         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
116546         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
116547         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
116548         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
116549         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
116550         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
116551         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
116552         (re_acquire_state_context):
116553         Remove unnecessary forward decls.
116554         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
116555         Put __attribute at function definition,
116556         now that the function decl has been removed.
116557         * lib/regex_internal.c (re_string_peek_byte_case):
116558         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
116559         Likewise.
116561 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
116563         * m4/regex.m4: Add AC_PREREQ(2.50).
116564         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
116566 2005-08-25  Simon Josefsson  <jas@extundo.com>
116568         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
116569         __fsetlocking.
116571 2005-08-25  Simon Josefsson  <jas@extundo.com>
116573         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
116574         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
116575         GLIBC specific code.
116577 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
116579         Make regex safe for g++.  This fixes one real bug (an "err"
116580         that should have been "*err").  g++ problem reported by
116581         Sam Steingold.
116582         * lib/regex_internal.h (re_calloc): New macro, consistent with
116583         re_malloc etc.  All callers of calloc changed to use re_calloc.
116584         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
116585         not int.  All callers changed.
116586         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
116587         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
116588         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
116589         (find_recover_state): Change "err" to "*err"; this fixes what
116590         appears to be a real bug.
116591         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
116592         versus int.
116594 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
116596         * modules/regex (Depends-on): Add malloc, since the code
116597         assumes that !malloc(0) means failure.
116599 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
116601         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
116603         alloca modernization/simplification for regex.
116604         * lib/regex.c: Remove portability cruft for alloca.  This no longer
116605         needs to be at the start of the file, and can be moved into
116606         regex_internal.h and simplified.
116607         * lib/regex_internal.h: Include <alloca.h>.
116608         (__libc_use_alloca) [!defined _LIBC]: New macro.
116609         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
116610         now works outside glibc.
116612 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
116614         * config/srclist.txt: Add glibc bugs 1241, 1245.
116616 2005-08-25  Jim Meyering  <jim@meyering.net>
116618         * lib/open-safer.c: Include <config.h>.
116619         Otherwise, we'd lose LARGEFILE support in any file using
116620         e.g. "fcntl--.h"
116622 2005-08-25  Bruno Haible  <bruno@clisp.org>
116624         * m4/minmax.m4: Require autoconf 2.52.
116625         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
116626         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
116627         alternatives of translit over the alphabet.
116628         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
116630 2005-08-24  Simon Josefsson  <jas@extundo.com>
116632         * tests/test-getpass.c: New file.
116634 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
116636         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
116637         for GNU regex features.
116639 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
116641         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
116642         * lib/regex.h (regerror): Likewise.
116644         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
116645         requires this.  (The code never needed it.)
116647         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
116648         All uses of recently-renamed identifiers changed to use the new,
116649         POSIX-compliant names.  The code will build and run just fine
116650         without these changes, but it's better to eat our own dog food
116651         and use the standard-conforming names.
116653         * lib/regex.h: Fix a multitude of POSIX name space violations.
116654         These changes have an effect only for programs that define
116655         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
116656         do not change anything for programs compiled in the normal way.
116657         Also, there is no effect on the ABI.
116659         (_REGEX_SOURCE): New macro.
116660         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
116661         defined and _GNU_SOURCE is not; this fixes a name space violation.
116663         Rename the following macros to obey POSIX requirements.
116664         The old names are still visible as macros if _REGEX_SOURCE is defined.
116665         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
116666         RE_BACKSLASH_ESCAPE_IN_LISTS.
116667         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
116668         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
116669         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
116670         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
116671         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
116672         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
116673         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
116674         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
116675         (REG_INTERVALS): renamed from RE_INTERVALS.
116676         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
116677         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
116678         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
116679         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
116680         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
116681         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
116682         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
116683         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
116684         RE_UNMATCHED_RIGHT_PAREN_ORD.
116685         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
116686         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
116687         (REG_DEBUG): renamed from RE_DEBUG.
116688         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
116689         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
116690         unusual, since we can't clash with the POSIX REG_ICASE.
116691         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
116692         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
116693         (REG_NO_SUB): renamed from RE_NO_SUB.
116694         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
116695         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
116696         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
116697         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
116698         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
116699         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
116700         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
116701         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
116702         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
116703         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
116704         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
116705         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
116706         RE_SYNTAX_POSIX_MINIMAL_BASIC.
116707         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
116708         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
116709         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
116710         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
116711         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
116712         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
116713         (REG_FIXED): Renamed from REGS_FIXED.
116714         (REG_NREGS): Renamed from RE_NREGS.
116716         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
116717         of other REG_* macros, since POSIX says the user is allowed to
116718         #undef these macros selectively.
116720         (reg_errcode_t): Update comment stating what other tables need
116721         to be consistent.
116723         Rename the following enum values to obey POSIX requirements.
116724         The old names are still visible as macros.
116725         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
116726         is not defined, since GNU is supposed to be a superset of POSIX as
116727         much as possible, and since we want reg_errcode_t to be a signed
116728         type for implementation consistency.
116729         (_REG_NOERROR): Renamed from REG_NOERROR.
116730         (_REG_NOMATCH): Renamed from REG_NOMATCH.
116731         (_REG_BADPAT): Renamed from REG_BADPAT.
116732         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
116733         (_REG_ECTYPE): Renamed from REG_ECTYPE.
116734         (_REG_EESCAPE): Renamed from REG_EESCAPE.
116735         (_REG_ESUBREG): Renamed from REG_ESUBREG.
116736         (_REG_EBRACK): Renamed from REG_EBRACK.
116737         (_REG_EPAREN): Renamed from REG_EPAREN.
116738         (_REG_EBRACE): Renamed from REG_EBRACE.
116739         (_REG_BADBR): Renamed from REG_BADBR.
116740         (_REG_ERANGE): Renamed from REG_ERANGE.
116741         (_REG_ESPACE): Renamed from REG_ESPACE.
116742         (_REG_BADRPT): Renamed from REG_BADRPT.
116743         (_REG_EEND): Renamed from REG_EEND.
116744         (_REG_ESIZE): Renamed from REG_ESIZE.
116745         (_REG_ERPAREN): Renamed from REG_ERPAREN.
116746         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
116747         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
116748         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
116749         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
116751         (_REG_RE_NAME, _REG_RM_NAME): New macros.
116752         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
116753         changed.  But support the old name if the new one is not defined
116754         and if _REGEX_SOURCE.
116756         Change the following member names in struct re_pattern_buffer.
116757         The old names are still supported if !_REGEX_SOURCE.
116758         The new names are always supported, regardless of _REGEX_SOURCE.
116759         (re_buffer): Renamed from buffer.
116760         (re_allocated): Renamed from allocated.
116761         (re_used): Renamed from used.
116762         (re_syntax): Renamed from syntax.
116763         (re_fastmap): Renamed from fastmap.
116764         (re_translate): Renamed from translate.
116765         (re_can_be_null): Renamed from can_be_null.
116766         (re_regs_allocated): Renamed from regs_allocated.
116767         (re_fastmap_accurate): Renamed from fastmap_accurate.
116768         (re_no_sub): Renamed from no_sub.
116769         (re_not_bol): Renamed from not_bol.
116770         (re_not_eol): Renamed from not_eol.
116771         (re_newline_anchor): Renamed from newline_anchor.
116773         Change the following member names in struct re_registers.
116774         The old names are still supported if !_REGEX_SOURCE.
116775         The new names are always supported, regardless of _REGEX_SOURCE.
116776         (rm_num_regs): Renamed from num_regs.
116777         (rm_start): Renamed from start.
116778         (rm_end): Renamed from end.
116780         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
116781         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
116782         Prepend __ to parameter names.
116784         Undo yesterday's changes.
116786 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
116788         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
116789         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
116790         lib/regex.c.
116792 2005-08-24  Jim Meyering  <jim@meyering.net>
116794         Sync from coreutils.
116795         * m4/fcntl-safer.m4: New file.
116797         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
116798         and object files for this module.
116800 2005-08-24  Jim Meyering  <jim@meyering.net>
116802         Sync from coreutils.
116803         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
116805 2005-08-24  Jim Meyering  <jim@meyering.net>
116807         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
116808         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
116810 2005-08-24  Jim Meyering  <jim@meyering.net>
116812         * modules/fcntl-safer: New module.
116813         * modules/fts (Depends-on): Add fcntl-safer.
116814         * MODULES.html.sh (File descriptor based Input/Output):
116815         Add fcntl-safer.
116817 2005-08-24  Bruno Haible  <bruno@clisp.org>
116819         Support for unit test modules.
116820         * modules/README: Mention tests modules.
116821         * modules/TEMPLATE-TESTS: New file.
116822         * gnulib-tool: New options --extract-tests-module, --with-tests and
116823         --tests-base (unused for the moment).
116824         (testsbase, inctests): New variables.
116825         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
116826         (func_verify_module): Exclude TEMPLATE-TESTS.
116827         (func_verify_nontests_module, func_verify_tests_module): New functions.
116828         (func_get_dependencies): Add implicit dependency for tests modules.
116829         (func_get_tests_module): New function.
116830         (func_modules_transitive_closure): When --with-tests was specified,
116831         include the unit tests as well, unless explicitly avoided.
116832         (func_emit_lib_Makefile_am): Ignore the tests modules here.
116833         (func_emit_tests_Makefile_am): New function.
116834         (func_create_testdir): When --with-tests was specified, emit a
116835         tests/ directory.
116836         * MODULES.html.sh (Future developments): Update.
116838 2005-08-24  Bruno Haible  <bruno@clisp.org>
116840         * modules/tls-tests: New file.
116841         * tests/test-tls.c: New file, from GNU gettext.
116843 2005-08-24  Bruno Haible  <bruno@clisp.org>
116845         * modules/lock-tests: New file.
116846         * tests/test-lock.c: New file, from GNU gettext.
116848 2005-08-24  Bruno Haible  <bruno@clisp.org>
116850         * lib/lock.h: Add multiple inclusion guard.
116851         * lib/tls.h: Add multiple inclusion guard.
116853 2005-08-24  Bruno Haible  <bruno@clisp.org>
116855         * gnulib-tool: Add support for the --aux-dir option to
116856         --create-testdir, --create-megatestdir, --test, --megatest.
116857         (func_create_testdir, func_create_megatestdir): Optionally emit a
116858         AC_CONFIG_AUX_DIR directive.
116859         (create-testdir, create-megatestdir, test, megatest): Provide a
116860         default value for $auxdir.
116862 2005-08-24  Bruno Haible  <bruno@clisp.org>
116864         * gnulib-tool (import): Use compound statement instead of subshell
116865         where possible.
116867 2005-08-24  Bruno Haible  <bruno@clisp.org>
116869         * gnulib-tool (import): Change --aux-dir default to "build-aux".
116871 2005-08-24  Bruno Haible  <bruno@clisp.org>
116873         * gnulib-tool (func_version): Update.
116875 2005-08-24  Bruno Haible  <bruno@clisp.org>
116877         * gnulib-tool (func_import, func_create_testdir,
116878         func_create_megatestdir): Quote all autoconf macro arguments.
116880 2005-08-24  Bruno Haible  <bruno@clisp.org>
116882         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
116883         option --force, because --force causes the aclocal.m4 of each
116884         subdirectory to be newer than the corresponding config.h.in.
116886 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
116888         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
116889         All contents moved to gl_REGEX.
116890         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
116891         assume that it does.
116893 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
116895         * lib/regex.h (REG_NOSYS)
116896         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
116897         Define, since POSIX requires it as of 2001.
116898         (_REG_ENOSYS)
116899         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
116900         New private symbol, used to keep the enum signed in all cases.
116901         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
116902         Youngman in
116903         <http://lists.gnu.org/r/bug-gnulib/2005-07/msg00132.html>.
116905         * lib/regex_internal.c (re_string_skip_chars, register_state):
116906         (calc_state_hash):
116907         Remove forward decls; no longer needed now that we use prototypes.
116908         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
116909         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
116910         (clean_state_log_if_needed): Likewise.
116912 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
116914         * config/srclist.txt: Add glibc bugs 1231-1233.
116916 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
116918         Fix problems reported by Sam Steingold in
116919         <http://lists.gnu.org/r/bug-gnulib/2005-08/msg00007.html>.
116920         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
116921         assumed that reg_errcode_t is a signed type, which is not
116922         necessarily true if _XOPEN_SOURCE is not defined.
116923         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
116924         since some compilers warn about it otherwise.
116926 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
116928         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
116929         (init_word_char, create_initial_state, duplicate_node_closure):
116930         (fetch_token, peek_token_bracket, build_range_exp):
116931         (build_collating_symbol): Remove forward decls; no longer needed
116932         now that we use prototypes.
116934         * lib/regcomp.c:
116935         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
116936         (re_compile_fastmap_iter, regcomp, regerror, regfree):
116937         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
116938         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
116939         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
116940         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
116941         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
116942         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
116943         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
116944         (build_range_exp, build_collating_symbol, parse_bracket_exp):
116945         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
116946         (build_charclass, build_charclass_op, fetch_number, create_tree):
116947         (create_token_tree, mark_opt_subexp, duplicate_tree):
116948         Use prototypes rather than old-style definitions.
116950         * lib/regex_internal.c:
116951         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
116952         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
116953         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
116954         (re_string_reconstruct, re_string_peek_byte_case):
116955         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
116956         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
116957         (re_node_set_init_copy, re_node_set_add_intersect):
116958         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
116959         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
116960         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
116961         (re_acquire_state, re_acquire_state_context, register_state):
116962         (create_ci_newstate, create_cd_newstate, free_state):
116963         Likewise.
116964         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
116965         re_search_2):
116966         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
116967         (re_search_internal, prune_impossible_nodes):
116968         (acquire_init_state_context, check_matching, static):
116969         (check_halt_node_context, check_halt_state_context, proceed_next_node):
116970         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
116971         (update_regs, sift_states_backward, build_sifted_states):
116972         (clean_state_log_if_needed, merge_state_array):
116973         (update_cur_sifted_state, add_epsilon_src_nodes):
116974         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
116975         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
116976         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
116977         (find_recover_state, check_subexp_matching_top, transit_state_mb):
116978         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
116979         (check_arrival, check_arrival_add_next_nodes):
116980         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
116981         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
116982         (check_node_accept_bytes, check_node_accept, extend_buffers):
116983         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
116984         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
116985         (sift_ctx_init):
116986         Likewise.
116988         * lib/regex_internal.h:
116989         (re_string_allocate, re_string_construct, re_string_reconstruct):
116990         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
116991         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
116992         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
116993         (re_string_context_at, re_string_peek_byte_case):
116994         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
116995         is defined, since we now use prototypes always.
116997         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
116998         C89 or better.  All uses removed.
117000 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
117002         * config/srclist.txt: Add glibc bugs 1220-1227.
117004 2005-08-20  Jim Meyering  <jim@meyering.net>
117006         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
117007         of unused local, dfa.
117009 2005-08-20  Bruno Haible  <bruno@clisp.org>
117011         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
117013 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
117015         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
117016         (re_node_set_insert_last, re_dfa_add_node):
117017         Rename local variables to avoid GCC shadowing warnings.
117019 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
117021         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
117022         [defined lint]: Suppress bogus uninitialized-variable warnings.
117024         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
117025         and let the caller return REG_ESPACE if out of space.  This
117026         removes an uninitialied-variable warning with GCC 4.0.1, and also
117027         avoids taking the address of a local variable.  All callers
117028         changed.
117030 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
117032         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
117033         $LIBCSRC/posix/regexec.c.
117034         Add glibc bug 1217 for regcomp.c.
117036 2005-08-19  Jim Meyering  <jim@meyering.net>
117038         * lib/regexec.c (proceed_next_node): Redo local variables to
117039         avoid GCC shadowing warnings.
117041 2005-08-18  Bruno Haible  <bruno@clisp.org>
117043         * lib/strstr.c (strstr): Fix return value in multibyte case.
117044         * lib/strcasestr.c (strcasestr): Likewise.
117046 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
117048         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
117050 2005-08-17  Jim Meyering  <jim@meyering.net>
117052         Make the %s format (seconds since the epoch) work for a negative
117053         number and when used with a zero-padded field width, e.g. %015s.
117055         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
117056         label so that it precedes the code to set `digits'.  Otherwise,
117057         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
117058         print `00-22'.  Now, it prints `-0022', as it should.
117060 2005-08-17  Bruno Haible  <bruno@clisp.org>
117062         * modules/strstr (Files): Add m4/mbrtowc.m4.
117063         (Depends-on): Add mbuiter.
117065 2005-08-17  Bruno Haible  <bruno@clisp.org>
117067         * modules/strcasestr: New file.
117068         * MODULES.html.sh (String handling, based on ANSI C 89): Add
117069         strcasestr.
117071 2005-08-17  Bruno Haible  <bruno@clisp.org>
117073         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
117075 2005-08-17  Bruno Haible  <bruno@clisp.org>
117077         * modules/mbuiter: New file.
117078         * MODULES.html.sh (Extended multibyte and wide character utilities):
117079         Add mbuiter.
117081 2005-08-17  Bruno Haible  <bruno@clisp.org>
117083         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
117084         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
117086 2005-08-17  Bruno Haible  <bruno@clisp.org>
117088         * m4/strcasestr.m4: New file.
117090 2005-08-17  Bruno Haible  <bruno@clisp.org>
117092         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
117093         * lib/strstr.c: Completely rewritten, with multibyte locale support.
117095 2005-08-17  Bruno Haible  <bruno@clisp.org>
117097         * lib/strcasestr.h: New file.
117098         * lib/strcasestr.c: New file.
117100 2005-08-17  Bruno Haible  <bruno@clisp.org>
117102         * lib/strcasecmp.c: Use mbuiter.h.
117104 2005-08-17  Bruno Haible  <bruno@clisp.org>
117106         * lib/mbuiter.h: New file.
117108 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
117110         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
117111         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
117112         and gl_GETOPT are both invoked via different paths (as happens
117113         with GNU tar CVS because it uses both argp and getopt), the former
117114         wins.
117116 2005-08-16  Bruno Haible  <bruno@clisp.org>
117118         * modules/tls: New file.
117119         * MODULES.html.sh (Multithreading): Add tls.
117121 2005-08-16  Bruno Haible  <bruno@clisp.org>
117123         * modules/strnlen1: New file.
117124         * MODULES.html.sh (String handling): Add strnlen1.
117126 2005-08-16  Bruno Haible  <bruno@clisp.org>
117128         * modules/strcase (Files): Add m4/mbrtowc.m4.
117129         (Depends-on): Add strnlen1, mbchar.
117131 2005-08-16  Bruno Haible  <bruno@clisp.org>
117133         * modules/mbiter: New file.
117134         * MODULES.html.sh (Extended multibyte and wide character utilities):
117135         Add mbiter.
117137 2005-08-16  Bruno Haible  <bruno@clisp.org>
117139         * modules/mbfile: New file.
117140         * MODULES.html.sh (Extended multibyte and wide character utilities):
117141         Add mbfile.
117143 2005-08-16  Bruno Haible  <bruno@clisp.org>
117145         * modules/mbchar: New file.
117146         * MODULES.html.sh (Extended multibyte and wide character utilities):
117147         New section.
117149 2005-08-16  Bruno Haible  <bruno@clisp.org>
117151         * m4/tls.m4: New file, from GNU gettext.
117153 2005-08-16  Bruno Haible  <bruno@clisp.org>
117155         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
117156         always.
117157         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
117159 2005-08-16  Bruno Haible  <bruno@clisp.org>
117161         * m4/mbiter.m4: New file.
117163 2005-08-16  Bruno Haible  <bruno@clisp.org>
117165         * m4/mbfile.m4: New file.
117167 2005-08-16  Bruno Haible  <bruno@clisp.org>
117169         * m4/mbchar.m4: New file.
117171 2005-08-16  Bruno Haible  <bruno@clisp.org>
117173         * lib/tls.h: New file, from GNU gettext.
117174         * lib/tls.c: New file, from GNU gettext.
117176 2005-08-16  Bruno Haible  <bruno@clisp.org>
117178         * lib/strnlen1.h: New file.
117179         * lib/strnlen1.c: New file.
117181 2005-08-16  Bruno Haible  <bruno@clisp.org>
117183         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
117184         (mbi_init): Update.
117185         (mbi_avail, mbi_advance): Let the iteration end before the terminating
117186         NUL byte, not after it.
117188 2005-08-16  Bruno Haible  <bruno@clisp.org>
117190         * lib/strcase.h (strcasecmp): Add note in comments.
117191         * lib/strncasecmp.c: Use code from strcasecmp.c.
117192         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
117193         (strcasecmp): Work correctly in multibyte locales.
117195 2005-08-16  Bruno Haible  <bruno@clisp.org>
117197         * lib/mbiter.h: New file.
117199 2005-08-16  Bruno Haible  <bruno@clisp.org>
117201         * lib/mbfile.h: New file.
117203 2005-08-16  Bruno Haible  <bruno@clisp.org>
117205         * lib/mbchar.h: New file.
117206         * lib/mbchar.c: New file.
117208 2005-08-16  Bruno Haible  <bruno@clisp.org>
117210         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
117211         the valid ones. Makes the comparison operations transitive:
117212         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
117213         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
117215 2005-08-15  Simon Josefsson  <jas@extundo.com>
117217         * modules/ssize_t (License): Change to 'unlimited'.
117219         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
117221 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
117223         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
117224         Add comments for each pending glibc patch.
117226 2005-08-15  Bruno Haible  <bruno@clisp.org>
117228         * lib/regex.h (__restrict_arr): Don't define to __restrict if
117229         __cplusplus is defined.
117231 2005-08-14  Jim Meyering  <jim@meyering.net>
117233         Sync from coreutils.
117235         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
117236         Use the hash-table-based cycle-detection code not just when
117237         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
117238         Reported by James Youngman in
117239         <http://lists.gnu.org/r/bug-gnulib/2005-08/msg00011.html>.
117240         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
117241         FTS_TIGHT_CYCLE_CHECK.
117242         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
117243         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
117244         once again.
117245         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
117246         * lib/fts.c (fd_safer): Remove decl.
117247         Include fcntl--.h rather than unistd-safer.h
117248         (fts_safe_changedir): Don't call fd_safer; no longer needed
117249         now that we include fcntl--.h.
117251 2005-08-12  Simon Josefsson  <jas@extundo.com>
117253         * modules/getndelim2: Use ssize_t module.
117254         * modules/getnline: Likewise.
117255         * modules/safe-read: Likewise.
117256         * modules/xreadlink: Likewise.
117258         * modules/ssize_t: New file.
117260 2005-08-12  Simon Josefsson  <jas@extundo.com>
117262         * m4/readline.m4: Look for termcap, curses or ncurses if required.
117264 2005-08-12  Simon Josefsson  <jas@extundo.com>
117266         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
117267         ssize_t.
117269 2005-08-12  Simon Josefsson  <jas@extundo.com>
117271         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
117272         readline, getdelim and check_version.
117273         (Support for systems lacking ISO C 99: Sizes of integer types):
117274         Add size_max.
117276 2005-08-12  Bruno Haible  <bruno@clisp.org>
117278         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
117280 2005-08-11  Simon Josefsson  <jas@extundo.com>
117282         * modules/readline: New file.
117284         * modules/strnlen (Files): Add strnlen.h.
117286 2005-08-11  Simon Josefsson  <jas@extundo.com>
117288         * m4/readline.m4: New file.
117290 2005-08-11  Simon Josefsson  <jas@extundo.com>
117292         * lib/readline.h, readline.c: New file.
117294 2005-08-11  Simon Josefsson  <jas@extundo.com>
117296         * doc/gnulib.texi (Initial import, Finishing touches): Mention
117297         gl_AVOID.
117299 2005-08-11  Bruno Haible  <bruno@clisp.org>
117301         * lib/strnlen.h (strnlen): Change parameter name to match comment.
117303 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
117305         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
117307 2005-08-10  Simon Josefsson  <jas@extundo.com>
117309         * tests/test-iconvme.c: New file.
117311 2005-08-10  Simon Josefsson  <jas@extundo.com>
117313         * m4/strnlen.m4: New file.
117315         * m4/strndup.m4: Don't check for strnlen declaration, done in
117316         strnlen.m4.
117318 2005-08-10  Simon Josefsson  <jas@extundo.com>
117320         * lib/strndup.c: Use strnlen.h.
117322         * lib/strnlen.h: New file.
117324 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
117326         * README: Typos.
117328 2005-08-02  Simon Josefsson  <jas@extundo.com>
117330         * modules/readline: New file.
117332 2005-08-02  Simon Josefsson  <jas@extundo.com>
117334         * modules/getdelim: New file.
117336         * modules/getline: Rewrite, don't use getndelim2.
117338 2005-08-02  Simon Josefsson  <jas@extundo.com>
117340         * m4/getline.m4: Separate out getdelim stuff into separate module.
117342         * m4/getdelim.m4: New file.
117344 2005-08-02  Simon Josefsson  <jas@extundo.com>
117346         * lib/getline.h, getline.c: Rewrite.
117348         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
117350 2005-07-31  Bruno Haible  <bruno@clisp.org>
117352         * lib/lock.h (gl_lock_initializer): New macro.
117353         (gl_lock_define_initialized): Use it.
117354         (gl_rwlock_initializer): New macro.
117355         (gl_rwlock_define_initialized): Use it.
117356         (gl_recursive_lock_initializer): New macro.
117357         (gl_recursive_lock_define_initialized): Use it.
117359 2005-07-30  Karl Berry  <karl@gnu.org>
117361         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
117362         Report from Ben Pfaff, regarding getopt.
117364 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
117366         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
117367         normal way.
117368         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
117369         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
117370         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
117371         (gl_GETOPT): Use the new macros.  Most of the implementation
117372         is moved to the new macros.  This is for programs like Emacs
117373         that don't want all the functionality of gl_GETOPT.
117375 2005-07-26  Bruno Haible  <bruno@clisp.org>
117377         * m4/lock.m4: Update from GNU gettext.
117379 2005-07-26  Bruno Haible  <bruno@clisp.org>
117381         * lib/lock.h: Update from GNU gettext.
117382         * lib/lock.c: Update from GNU gettext.
117384 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
117386         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
117387         obsolescent AC_TRY_RUN.  Include the default includes files, for
117388         'exit'.
117390 2005-07-24  Bruno Haible  <bruno@clisp.org>
117392         * modules/visibility: New file.
117393         * MODULES.html.sh (Misc): Add visibility.
117395 2005-07-24  Bruno Haible  <bruno@clisp.org>
117397         * m4/visibility.m4: New file.
117399 2005-07-24  Bruno Haible  <bruno@clisp.org>
117401         * doc/visibility.texi: New file.
117403 2005-07-22  Bruno Haible  <bruno@clisp.org>
117405         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
117406         $(ALLOCA_H), redundant through BUILT_SOURCES.
117407         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
117408         redundant through BUILT_SOURCES.
117409         * modules/byteswap (Makefile.am): Remove explicit dependency on
117410         $(BYTESWAP_H), redundant through BUILT_SOURCES.
117411         * modules/fnmatch (Makefile.am): Remove explicit dependency on
117412         $(FNMATCH_H), redundant through BUILT_SOURCES.
117413         * modules/getopt (Makefile.am): Remove explicit dependency on
117414         $(GETOPT_H), redundant through BUILT_SOURCES.
117415         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
117416         redundant through BUILT_SOURCES.
117417         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
117418         redundant through BUILT_SOURCES.
117419         * modules/stdbool (Makefile.am): Remove explicit dependency on
117420         $(STDBOOL_H), redundant through BUILT_SOURCES.
117421         * modules/stdint (Makefile.am): Remove explicit dependency on
117422         $(STDINT_H), redundant through BUILT_SOURCES.
117423         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
117424         Remove explicit dependency on $(SYSEXITS_H).
117425         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
117427 2005-07-18  Simon Josefsson  <jas@extundo.com>
117429         * lib/check-version.c (check_version): Accept identical versions too.
117431 2005-07-18  Bruno Haible  <bruno@clisp.org>
117433         * modules/lock: New file.
117434         * MODULES.html.sh (Multithreading): New section.
117436 2005-07-18  Bruno Haible  <bruno@clisp.org>
117438         * m4/lock.m4: New file, from GNU gettext.
117440 2005-07-18  Bruno Haible  <bruno@clisp.org>
117442         * lib/lock.h: New file, from GNU gettext.
117443         * lib/lock.c: New file, from GNU gettext.
117445 2005-07-18  Bruno Haible  <bruno@clisp.org>
117447         * lib/lock.h (gl_once_t): New type.
117448         (gl_once_define, gl_once): New macros.
117449         * lib/lock.c (fresh_once): New variable.
117450         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
117451         functions.
117453 2005-07-16  Simon Josefsson  <jas@extundo.com>
117455         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
117456         workaround, suggested by Bruno.
117458 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
117460         * modules/xalloc (Depends-on): Add xalloc-die.
117461         * modules/xvasprintf (Depends-on): Add xalloc-die.
117463 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
117465         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
117466         with a minor change.
117468 2005-07-15  Bruno Haible  <bruno@clisp.org>
117470         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
117471         When using lib/poll.c, define poll as rpl_poll.
117473 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
117475         * modules/argp (Depends-on): Remove unlocked-io.
117477 2005-07-14  Derek Price  <derek@ximbiot.com>
117479         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
117480         for glob symlink bug.
117482 2005-07-14  Bruno Haible  <bruno@clisp.org>
117484         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
117485         Instead, test for *_unlocked function declarations directly.
117487 2005-07-11  Simon Josefsson  <jas@extundo.com>
117489         * modules/size_max: New file.
117491         * modules/xsize: Depend on size_max module for size_max.m4.
117493 2005-07-11  Simon Josefsson  <jas@extundo.com>
117495         * lib/size_max.h: New file.
117497 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
117499         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
117500         copyright symbol and the year.
117501         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
117502         (version_etc_va): Use parameterized copyright notice.
117503         Reword to conform to the current GNU coding standards.
117505 2005-07-11  Karl Berry  <karl@gnu.org>
117507         * doc/gnulib.texi (Quoting): new node.
117508         (Initial import): more info, from Patrice.
117510 2005-07-11  Bruno Haible  <bruno@clisp.org>
117512         * gnulib-tool (func_usage): Document option --avoid.
117513         (Command line options): Handle --avoid.
117514         (func_acceptable): New function.
117515         (func_modules_transitive_closure): Use it.
117517 2005-07-11  Bruno Haible  <bruno@clisp.org>
117519         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
117520         Reported by Jim Meyering.
117522 2005-07-10  Bruno Haible  <bruno@clisp.org>
117524         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
117525         Needed when size_t is smaller than 'unsigned int'.
117526         Reported by Paul Eggert.
117528 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
117530         * modules/argp (Depends-on): Add unlocked-io
117532 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
117534         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
117535         block of defines.
117537 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
117539         * config/srclist.txt: Comment out regcomp.c, since we have a porting
117540         fix now.
117542 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
117543         and Paul Eggert  <eggert@cs.ucla.edu>
117545         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
117546         in wint_t, not wchar_t.  Remove now-unnecessary cast.
117548 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
117550         * modules/regex (Files): Add lib/regex_internal.c,
117551         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
117552         (Depends-on): Add extensions.
117553         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
117555 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
117557         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
117558         pathconf.
117559         * m4/same.m4 (gl_SAME): Likewise.
117560         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
117562         * m4/regex.m4: Adjust to new libc regex implementation.
117563         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
117564         all the .c and .h parts of (the new) regex.
117565         Quote the m4 stuff better.
117566         Check for RE_ICASE bug of old gnulib.
117567         Check for REG_STARTEND of recent libc.
117568         Rename local variables from jm_* to gl_*.
117569         Quote operand of "test -f".
117570         Say "recent enough" version of libc, not "version 2".
117571         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
117572         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
117573         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
117574         Remove check for btowc, isascii.
117575         Require AM_LANGINFO_CODESET.
117577 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
117579         * lib/regex.c, regex.h: Sync from libc.
117580         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
117581         * lib/regexec.c:
117582         New files, synced from libc, except that regex_internal.h
117583         currently has a small porting fix.
117585 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
117587         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
117588         regex_internal.c, regexec.c.
117589         Add regex_internal.h too, but as a comment, since the libc version
117590         is currently broken in gnulib mode.
117592 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
117594         Support programs like Emacs that use gnulib but not gettext.
117595         * MODULES.html.sh (Internationalization functions): Add gettext-h.
117596         * modules/gettext-h: New file.
117597         * modules/gettext (Files): Remove lib/gettext.h.
117598         (Depends-on): Add gettext-h.
117599         (Makefile.am): Remove lib_SOURCES.
117600         * modules/argmatch, modules/c-stack, modules/closeout:
117601         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
117602         * modules/execute, modules/file-type, modules/getaddrinfo:
117603         * modules/getopt, modules/human, modules/javacomp:
117604         * modules/javaexec, modules/mkdir-p, modules/obstack:
117605         * modules/openat, modules/pagealign_alloc, modules/pipe:
117606         * modules/quotearg, modules/regex, modules/rpmatch:
117607         * modules/unicodeio, modules/userspec, modules/version-etc:
117608         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
117609         * modules/xsetenv:
117610         Depend on gettext-h, not gettext.
117612 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
117614         * gnulib-tool (func_import): Add support for 'public domain' license.
117615         * modules/alloca, modules/atexit, modules/memmove:
117616         Now public domain, not GPL.
117617         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
117618         * modules/realloc, modules/strerror, modules/strtod:
117619         Now LGPL, not GPL.
117621 2005-07-05  Bruno Haible  <bruno@clisp.org>
117623         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
117624         autoconf CVS. Needed for mingw.
117626 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
117628         Remove the dependency of the strftime module on the tzset module.
117629         * modules/strftime (Depends-on): Remove dependency on tzset.
117631 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
117633         Remove the dependency of the strftime module on the tzset module.
117634         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
117635         gl_FUNC_TZSET_CLOBBER.
117637 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
117639         Remove the dependency of the strftime module on the tzset module.
117640         * lib/strftime.c (my_strftime)
117641         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
117642         Copy the input structure, to work around some of the bug with
117643         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
117644         Solaris releases, you should also use the tzset module, but we won't
117645         require it as a dependency any more since we don't want LGPLed code
117646         to depend on GPLed code.
117648 2005-07-02  Jim Meyering  <jim@meyering.net>
117650         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
117651         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
117652         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
117653         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
117655 2005-07-02  Jim Meyering  <jim@meyering.net>
117657         * lib/backupfile.c (backup_args): Change a `0' to NULL.
117659 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
117661         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
117662         declares only 'struct timespec;' (!).
117664 2005-07-01  Jim Meyering  <jim@meyering.net>
117666         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
117667         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
117668         * lib/save-cwd.c, tempname.c:
117669         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
117670         and don't include <sys/file.h>).
117672 2005-06-29  Jim Meyering  <jim@meyering.net>
117674         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
117675         type name.  Use the variable name instead.
117676         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
117677         Likewise.
117679 2005-06-28  Simon Josefsson  <jas@extundo.com>
117681         * modules/check-version (Files): Add check-version.m4.
117683 2005-06-28  Simon Josefsson  <jas@extundo.com>
117685         * m4/check-version.m4: New file, suggested by Jim Meyering
117686         <jim@meyering.net>.
117688 2005-06-28  Simon Josefsson  <jas@extundo.com>
117690         * lib/check-version.h, lib/check-version.c: New files.
117692 2005-06-28  Simon Josefsson  <jas@extundo.com>
117694         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
117695         collision with global variable.  Better indentation.  Don't
117696         increment buffer pointer beyond buffer end.  Based on comments
117697         from Paul Eggert <eggert@cs.ucla.edu>.
117699         * lib/base64.h: Indent.
117701 2005-06-28  Simon Josefsson  <jas@extundo.com>
117703         * doc/gnulib.texi (Library version handling): New section.
117705 2005-06-28  Jim Meyering  <jim@meyering.net>
117707         * check-module (find_included_lib_files): Hard-code another
117708         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
117709         but modules/fts-lgpl (correctly) does not list those files.
117711         * modules/canonicalize (Files): Add lib/pathmax.h.
117713 2005-06-25  Simon Josefsson  <jas@extundo.com>
117715         * modules/check-version: New file.
117717 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
117719         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
117720         initializer of struct addrinfo, as an indication that we don't
117721         care how many members the structure has.
117723 2005-06-24  Derek Price  <derek@ximbiot.com>
117724         and Bruno Haible  <bruno@clisp.org>
117726         Remove stat module & update lstat.
117727         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
117728         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
117729         * m4/stat.m4: Remove this file.
117731 2005-06-24  Derek Price  <derek@ximbiot.com>
117732         and Bruno Haible  <bruno@clisp.org>
117734         Remove stat module & update lstat.
117735         * lib/stat.c: Remove this file...
117736         (slash_aware_lstat): ...moving this content and its support...
117737         * lib/lstat.c (rpl_lstat): ...into here.
117738         * lib/lstat.h: New file.
117740 2005-06-24  Derek Price  <derek@ximbiot.com>
117741         and Bruno Haible  <bruno@clisp.org>
117743         Remove stat module & update lstat.
117744         * config/srclist.txt (libc sources): Remove stat.
117746 2005-06-24  Derek Price  <derek@ximbiot.com>
117747         and Bruno Haible  <bruno@clisp.org>
117749         Remove stat module & update lstat.
117750         * MODULES.html.sh (stat): Remove.
117751         * MODULES.html: Regenerated.
117752         * modules/lstat (Description): Correct function name.
117753         (Files): Add "lstat.h".
117754         (Depends-on): Remove stat, add xalloc, stat-macros.
117755         * modules/stat: Remove this file.
117756         (Include): Add "lstat.h", remove <sys/stat.h>.
117758 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
117760         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
117761         (ranged_convert): Don't save conversion in a temporary struct.
117762         This causes a warning with GCC 4.0.0, and anyway in the typical
117763         case it's not worth the extra 100 bytes or so of code.
117764         (ranged_convert, __mktime_internal): When calling a function via a
117765         pointer P, use P () rather than (*P) (), as we now assume C89 or
117766         better.
117768 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
117770         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
117771         "who -r" failed to give output.  Problem reported by Tim Waugh.
117773         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
117774         (xcalloc): Use it to avoid needless tests.
117775         Problem reported by Jim Meyering.
117777 2005-06-20  Derek Price  <derek@ximbiot.com>
117779         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
117780         unnecessary for Autoconfs > 2.59c.
117782 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
117784         * lib/argp.h (__option_is_short): Check upper limit of
117785         __key. Isprint() requires its argument to have the value
117786         of an unsigned char or EOF.
117788 2005-06-16  Jim Meyering  <jim@meyering.net>
117790         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
117791         when either N or S is zero.
117793 2005-06-16  Derek Price  <derek@ximbiot.com>
117795         * m4/bison.m4: Declare YACC & YFLAGS precious.
117797 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
117799         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
117800         multibyte string or pattern, fall back on unibyte matching.
117801         Problem reported by James Youngman.
117803 2005-06-08  Bruno Haible  <bruno@clisp.org>
117805         * modules/csharpcomp: New file.
117806         * MODULES.html.sh (C#): Add csharpcomp.
117808 2005-06-08  Bruno Haible  <bruno@clisp.org>
117810         * m4/csharpcomp.m4: New file, from GNU gettext.
117812 2005-06-08  Bruno Haible  <bruno@clisp.org>
117814         * lib/csharpcomp.h: New file, from GNU gettext.
117815         * lib/csharpcomp.c: New file, from GNU gettext.
117816         * lib/csharpcomp.sh.in: New file, from GNU gettext.
117818 2005-06-08  Bruno Haible  <bruno@clisp.org>
117820         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
117821         warning on mingw.
117823 2005-06-07  Derek Price  <derek@ximbiot.com>
117825         Sync from CVS.
117826         * lib/glob_.h: Indent nested #ifdef.
117828 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
117830         Sync from coreutils.
117831         Use "file name" when talking about file names, instead of "filename"
117832         or "path", as per the GNU coding standards.
117833         * lib/mkdir-p.c: Renamed from makepath.c.
117834         (make_dir_parents): Renamed from make_path.  All callers changed.
117835         * lib/mkdir-p.h: Likewise.  All includers changed.
117836         * lib/filenamecat.c: Renamed from path-concat.c.
117837         (file_name_concat): Renamed from path_concat.  All callers changed.
117838         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
117839         * lib/filenamecat.h: Likewise.  All includers changed.
117840         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
117841         in comments or local variable names.
117842         * lib/basename.c: Likewise.
117843         * lib/canonicalize.c, canonicalize.h: Likewise.
117844         * lib/dirname.c, dirname.h: Likewise.
117845         * lib/euidaccess.c: Likewise.
117846         * lib/exclude.c: Likewise
117847         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
117848         * lib/fsusage.c, fsuage.h: Likewise.
117849         * lib/fts.c, fts_.h: Likewise.
117850         * lib/getcwd.c: Likewise.
117851         * lib/getloadavg.c: Likewise.
117852         * lib/mkstemp.c: Likewise.
117853         * lib/mountlist.c, mountlist.h: Likewise.
117854         * lib/openat.c, openat.h: Likewise.
117855         * lib/readlink-stub.c: Likewise.
117856         * lib/readutmp.c, readutmp.h: Likewise.
117857         * lib/rename.c: Likewise.
117858         * lib/rmdir.c: Likewise.
117859         * lib/same.c: Likewise.
117860         * lib/savedir.c: Likewise.
117861         * lib/stripslash.c: Likewise.
117862         * lib/tempname.c: Likewise.
117863         * lib/xreadlink.c: Likewise.
117864         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
117865         All uses changed.
117866         * lib/exclude.h: Likewise.
117868         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
117869         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
117870         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
117871         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
117872         * lib/pathmax.h: Include <limits.h> unconditionally, since other
117873         files have been getting away with it for years (MORE/BSD 4.3
117874         is extinct now).
117875         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
117876         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
117878         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
117879         Define to 256, not 255, as per modern POSIX.
117881 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
117883         Sync from coreutils.
117884         Use "file name" when talking about file names, instead of "filename"
117885         or "path", as per the GNU coding standards.
117886         * MODULES.html.sh: mkdir-p renamed from makepath.
117887         filenamecat renamed from path-concat.
117888         * modules/filenamecat: Renamed from modules/path-concat.
117889         (Files): filenamecat.h and filenamecat.c renamed from
117890         path-concat.h and path-concat.c.
117891         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
117892         (Include): filenamecat.h, not path-concat.h.
117893         * modules/mkdir-p: Renamed from modules/makepath.
117894         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
117895         makepath.c.
117896         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
117897         (Include): mkdir-p.h, not makepath.h.
117899 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
117901         Sync from coreutils.
117902         * m4/mkdir-p.m4: Renamed from makepath.m4.
117903         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
117904         Rename files from makepath.c to mkdir-p.c, and from
117905         makepath.h to mkdir-p.h.
117906         * m4/filenamecat.m4: Renamed from path-concat.m4.
117907         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
117908         Rename files from path-concat.c to filenamecat.c,
117909         and from path-concat.h to filenamecat.h.
117910         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
117911         "file name" in local variables or comments.
117912         * m4/rename.m4: Likewise.
117914 2005-06-01  Bruno Haible  <bruno@clisp.org>
117916         * modules/csharpexec: New file.
117917         * MODULES.html.sh (C#): New section.
117919 2005-06-01  Bruno Haible  <bruno@clisp.org>
117921         * m4/csharp.m4: New file, from GNU gettext.
117922         * m4/csharpexec.m4: New file, from GNU gettext.
117924 2005-06-01  Bruno Haible  <bruno@clisp.org>
117926         * lib/csharpexec.h: New file, from GNU gettext.
117927         * lib/csharpexec.c: New file, from GNU gettext.
117928         * lib/csharpexec.sh.in: New file, from GNU gettext.
117930 2005-05-31  Derek Price  <derek@ximbiot.com>
117931             Paul Eggert  <eggert@cs.ucla.edu>
117933         Sync from cvs.
117934         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
117936 2005-05-31  Derek Price  <derek@ximbiot.com>
117937             Paul Eggert  <eggert@cs.ucla.edu>
117939         Sync from cvs.
117940         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
117942 2005-05-29  Derek Price  <derek@ximbiot.com>
117944         * config/srclist.txt (glob_.h, glob.c): Add these files.
117946 2005-05-29  Derek Price  <derek@ximbiot.com>
117948         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
117949         * modules/glob: New file.
117950         * modules/getlogin_r: Add link to POSIX spec in description.
117952 2005-05-29  Derek Price  <derek@ximbiot.com>
117953             Paul Eggert  <eggert@cs.ucla.edu>
117955         * m4/glob.m4: New file.
117957 2005-05-29  Derek Price  <derek@ximbiot.com>
117958             Paul Eggert  <eggert@cs.ucla.edu>
117960         * lib/glob_.h, lib/glob.c: New files.
117962 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
117964         * modules/fts (Files): Remove m4/inttypes-pri.m4.
117965         * modules/fts-lgpl (Depends-on): Remove gettext.
117967 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
117969         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
117970         and don't require gt_INTTYPES_PRI.
117972 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
117974         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
117976         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
117977         the configuration hassle isn't worth it.
117978         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
117979         (LONGEST_MODIFIER, PRIuMAX): Remove.
117981 2005-05-27  Bruno Haible  <bruno@clisp.org>
117983         * lib/getlogin_r.h: Remove second include of <stddef.h>.
117985 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
117987         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
117988         _POSIX_PTHREAD_SEMANTICS for Solaris.
117990 2005-05-25  Derek Price  <derek@ximbiot.com>
117992         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
117994 2005-05-25  Derek Price  <derek@ximbiot.com>
117995             Paul Eggert  <eggert@cs.ucla.edu>
117997         * modules/getlogin_r, m4/getlogin_r.m4: New files.
117998         * lib/getlogin_r.c, getlogin_r.h: New files.
118000 2005-05-25  Bruno Haible  <bruno@clisp.org>
118001             Derek Price  <derek@ximbiot.com>
118003         * lib/getlogin_r.h: Simplify API documentation.
118005 2005-05-23  Derek Price  <derek@ximbiot.com>
118007         * modules/minmax (Files): Add m4/minmax.m4.
118008         (configure.ac): Add gl_MINMAX.
118010 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
118012         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
118013         so that unistd-safer.h (GPL'ed code) need not be included.
118015 2005-05-22  Bruno Haible  <bruno@clisp.org>
118017         * m4/minmax.m4: New file.
118018         Based on a patch by Derek Price <derek@ximbiot.com>.
118020 2005-05-22  Bruno Haible  <bruno@clisp.org>
118022         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
118023         (INT64_MIN): Fix definition.
118024         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
118026         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
118027         NEED_SIGNED_INT_TYPES.
118029         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
118030         HAVE_SYSTEM_INTTYPES.
118032 2005-05-22  Bruno Haible  <bruno@clisp.org>
118034         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
118035         Also include <sys/param.h> if it defines MIN, MAX.
118036         Based on a patch by Derek Price <derek@ximbiot.com>.
118038 2005-05-21  Jim Meyering  <jim@meyering.net>
118040         * modules/fts (Files): Add m4/inttypes-pri.m4.
118041         (Depends-on): Add lstat and remove gettext.  Alphabetize.
118043 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
118045         New fts module.
118046         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
118047         (setup_dir, free_dir): New functions.
118048         (enter_dir, leave_dir): Define trivial
118049         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
118050         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
118051         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
118052         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
118053         Move to fts-cycle.c.
118054         (fts_open): Use setup_dir.
118055         (fts_close): Use free_dir.
118056         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
118057         This adds a label and some gotos, but the alternatives were messier.
118058         Check for memory allocation failure when entering a dir.
118059         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
118060         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
118061         (FTS): New member fts_cycle, that is a union that contains the
118062         old active_dir_ht and cycle_state.  All uses changed to mention
118063         fts_cycle.ht and fts_cycle.state.
118064         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
118065         fts.c, with the following changes:
118066         (setup_dir, free_dir): New functions.
118067         (enter_dir): Now returns bool.  Return true if successful, false
118068         if memory exhausted.  All callers changed.
118069         Do not bother partly cleaning up on
118070         memory allocation failure; that is free_dir's job.
118071         However, free ad if hash_insert fails, to avoid memory leak.
118072         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
118073         fts->fts_options to see which union member to use.
118075 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
118077         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
118078         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
118080 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
118082         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
118084 2005-05-20  Jim Meyering  <jim@meyering.net>
118086         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
118087         Now a macro, to pacify GCC.
118089 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
118091         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
118092         of -1.
118094 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
118096         * lib/chown.c (rpl_chown): Return -1 on failure.
118098 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
118100         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
118101         Don't check for stddef.h.
118102         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
118103         don't use its results.
118104         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
118105         since we include them unconditionally.  Don't require
118106         AM_STDBOOL_H, since stdbool is a prerequisite.
118107         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
118108         since we assume C89 or better.
118109         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
118110         as we don't use their results.
118111         Don't check for fchdir, memmove, memset, strrchr, as we use
118112         them unconditionally.
118113         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
118114         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
118116 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
118118         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
118119         Include <stddef.h> unconditionally, since we assume C89 now.
118120         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
118121         * lib/fts.c: Include fts_.h first, to check interface.
118122         Do not include intprops.h; no longer needed.
118123         Include cycle-check.h and hash.h, since fts_.h no longer does.
118124         Remove unnecessary casts of closedir to void.
118125         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
118126         decide whether to decrement nlinks.
118127         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
118128         (FTS): Use struct hash_table * instead of Hash_table, so that
118129         we no longer need to include hash.h here.
118131 2005-05-18  Jim Meyering  <jim@meyering.net>
118133         * modules/dirfd (License): Change to LGPL.  Most of the code
118134         is already in the public domain.
118136 2005-05-18  Jim Meyering  <jim@meyering.net>
118138         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
118139         Reported by Yoann Vandoorselaere.
118141 2005-05-17  Jim Meyering  <jim@meyering.net>
118143         * m4/fts.m4: New file, from coreutils.
118145 2005-05-17  Jim Meyering  <jim@meyering.net>
118147         * lib/fts.c, lib/fts_.h: New files, from coreutils.
118149 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
118151         Sync from coreutils.
118152         * m4/unlinkdir.m4: New file.
118154 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
118156         Sync from coreutils.
118157         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
118158         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
118159         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
118160         White space changes only.
118161         * lib/makepath.c (make_path): Port to hosts where leading "//" is
118162         special.
118163         * lib/yesno.c: Include getline.h, not ctype.h.
118164         (yesno): Don't remove leading white space; POSIX doesn't allow it.
118165         Use getline to remove arbitrary restriction on response length.
118167 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
118169         * config/srclist-update: Spell out "Street" in FSF postal
118170         mail address; this is the style the FSF seems to prefer.
118172         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
118173         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
118174         this updates FSF postal mail address.
118176         Sync from coreutils.
118177         * modules/unlinkdir: New file.
118178         * modules/yesno (Depends-on): Add getline.
118179         * MODULES.html.sh (File system functions): Add unlinkdir.
118181 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
118183         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
118184         lib/strsep.h:
118185         Change the initial comment to refer to GPL, not LGPL.
118186         gnulib-tool will change it to LGPL as needed.
118188         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
118189         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
118190         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
118191         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
118192         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
118193         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
118194         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
118195         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
118196         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
118197         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
118198         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
118199         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
118200         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
118201         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
118202         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
118203         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
118204         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
118205         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
118206         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
118207         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
118208         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
118209         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
118210         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
118211         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
118212         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
118213         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
118214         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
118215         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
118216         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
118217         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
118218         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
118219         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
118220         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
118221         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
118222         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
118223         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
118224         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
118225         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
118226         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
118227         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
118228         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
118229         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
118230         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
118231         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
118232         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
118233         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
118234         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
118235         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
118236         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
118237         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
118238         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
118239         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
118240         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
118241         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
118242         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
118243         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
118244         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
118245         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
118246         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
118247         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
118248         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
118249         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
118250         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
118251         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
118252         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
118253         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
118254         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
118255         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
118256         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
118257         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
118258         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
118259         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
118260         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
118261         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
118262         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
118263         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
118264         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
118265         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
118266         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
118267         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
118268         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
118269         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
118270         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
118271         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
118272         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
118273         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
118274         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
118275         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
118276         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
118277         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
118278         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
118279         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
118280         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
118281         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
118282         lib/yesno.c, lib/yesno.h:
118283         Update FSF postal mail address.
118285 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
118287         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
118288         tests/test-memmem.c, tests/test-stpncpy.c:
118289         Update FSF postal mail address.
118291 2005-05-13  Bruno Haible  <bruno@clisp.org>
118293         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
118294         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
118295         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
118296         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
118297         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
118298         Add support for 64-bit integers in the MSVC compiler.
118300 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
118302         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
118304 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
118306         * gnulib-tool (func_import): Sort and uniquify recommended includes.
118308 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
118310         * doc/getdate.texi (General date syntax): Don't say that date
118311         date --iso-8601=ns generates acceptable dates; it doesn't yet.
118312         Problem reported by Nic Ferrier.
118314 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
118316         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
118317         specified in ai_socktype. Fix invalid ai_protocol
118318         check. ai_protocol is usually set to 0 or depending on
118319         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
118320         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
118321         ai_socktype / ai_protocol in the returned addrinfo structure.
118323 2005-05-10  Simon Josefsson  <jas@extundo.com>
118325         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
118326         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
118328 2005-05-10  Karl Berry  <karl@gnu.org>
118330         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
118331         (from http://www.gnu.org/licenses).
118332         * doc/COPYING.LIB: also rename to COPYING.LESSER.
118333         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
118334         fdl.texi suffices.
118336 2005-05-10  Karl Berry  <karl@gnu.org>
118338         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
118339         (COPYING.DOC): remove.
118341         * config/srclist-update: new FSF address.
118343 2005-05-10  Derek Price  <derek@ximbiot.com>
118345         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
118346         possible.
118348 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
118349             Bruno Haible  <bruno@clisp.org>
118351         * modules/inet_ntop: New file.
118352         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
118353         inet_ntop.
118355 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
118356             Bruno Haible  <bruno@clisp.org>
118358         * m4/inet_ntop.m4: New file.
118360 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
118361             Bruno Haible  <bruno@clisp.org>
118363         * lib/inet_ntop.h: New file.
118364         * lib/inet_ntop.c: New file, from glibc with modifications.
118366 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
118368         * modules/time_r (License): Change to LGPL.
118369         * modules/extensions (License): Change to LGPL.  Actually,
118370         the license is more permissive than that, but currently gnulib-tool
118371         doesn't know how to handle more-permissive licenses.
118373         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
118374         Problem reported by Dave Love.
118376 2005-05-08  Jim Meyering  <jim@meyering.net>
118378         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
118379         blank.
118381 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
118383         * modules/argmatch (Depends-on): Add stdbool.
118384         * modules/backupfile (Depends-on): Likewise.
118385         * modules/chdir-long (Depends-on): Likewise.
118386         * modules/closeout (Depends-on): Likewise.
118387         * modules/cycle-check (Depends-on): Likewise.
118388         * modules/dirname (Depends-on): Likewise.
118389         * modules/fnmatch (Depends-on): Likewise.
118390         * modules/fsusage (Depends-on): Likewise.
118391         * modules/fwriteerror (Depends-on): Likewise.
118392         * modules/getcwd (Depends-on): Likewise.
118393         * modules/getloadavg (Depends-on): Likewise.
118394         * modules/hard-locale (Depends-on): Likewise.
118395         * modules/makepath (Depends-on): Likewise.
118396         * modules/mountlist (Depends-on): Likewise.
118397         * modules/nanosleep (Depends-on): Likewise.
118398         * modules/posixtm (Depends-on): Likewise.
118399         * modules/quotearg (Depends-on): Likewise.
118400         * modules/readtokens (Depends-on): Likewise.
118401         * modules/readtokens0 (Depends-on): Likewise.
118402         * modules/readutmp (Depends-on): Likewise.
118403         * modules/save-cwd (Depends-on): Likewise.
118404         * modules/strftime (Depends-on): Likewise.
118405         * modules/userspec (Depends-on): Likewise.
118406         * modules/utimecmp (Depends-on): Likewise.
118407         * modules/xgetcwd (Depends-on): Likewise.
118408         * modules/xnanosleep (Depends-on): Likewise.
118409         * modules/xstrtod (Depends-on): Likewise.
118410         * modules/yesno (Depends-on): Likewise.
118412 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
118414         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
118415         needless checks.
118417 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
118419         Merge from coreutils.  Among other things,
118420         add bulletproofing for cases where stdin, stdout, or stderr are closed.
118421         * lib/fd-safer.c: New file.
118422         * lib/fcntl-safer.h, open-safer.c: Remove.
118423         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
118424         * lib/dup-safer.c: Include unistd-safer.h first.
118425         Don't include errno.h.
118426         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
118427         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
118428         * lib/file-type.c: Rely on file-type.h change.
118429         * lib/getloadavg.c: Include unistd-safer.h.
118430         (getloadavg): Use safer open.
118431         * lib/getusershell.c: Include "stdio-safer.h".
118432         (getusershell): Use safer fopen.
118433         * lib/long-options.c (long_options): Use NULL rather than 0.
118434         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
118435         'free'.
118436         * lib/modechange.c: Likewise.
118437         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
118438         (MODE_DONE): New constant.
118439         (struct mode_change): Remove 'next' member.
118440         (make_node_op_equals): New function; like the old one of the
118441         same name, except it allocates an array.
118442         (mode_compile, mode_create_from_ref): Use it.
118443         (mode_compile): Allocate result as an array, not a linked list.
118444         Parse octal string ourself, so that we catch mistakes like "+0".
118445         (mode_adjust): Arg is an array, not a linked list.
118446         * lib/modechange.c: Include stat-macros.h, xalloc.h.
118447         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
118448         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
118449         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
118450         Remove.  This is now stat-macros.h's job.
118451         (talloc): Remove.  All callers replaced by xalloc, so that
118452         our invokers don't have to worry about reporting memory failures.
118453         (make_node_op_equals): Remove.
118454         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
118455         New constants.
118456         (struct mode_change): Moved here from modechange.h.
118457         (mode_append_entry): Remove.
118458         (mode_compile): Remove MASKED_OPS arg, since it encouraged
118459         apps to have incorrect behavior.  Use simpler algorithm for head
118460         and tail.  Don't futz with umask; that's now the job of mode_adjust.
118461         Detect more invalid usages rather than having somewhat-random behavior.
118462         Don't insert an "a=" action, as that leads to incorrect behavior.
118463         (mode_compile, mode_create_from_ref): Return NULL on error instead
118464         of an enum, since now there's only one way to have an error.  All
118465         callers changed.
118466         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
118467         at the correct time.  Simplify calculation of "+u" and its ilk.
118468         Don't mishandle "+X".
118469         (mode_free): Remove "register" and localize decls.
118470         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
118471         (struct mode_change): Move to modechange.c; callers don't
118472         need to see this stuff.
118473         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
118474         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
118475         (mode_change, mode_adjust): Reflect the new signatures noted above.
118476         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
118477         that might redefine system include files.
118478         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
118479         (my_usleep): Use NULL rather than (void *) 0.
118480         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
118481         Use siginterrupt to specify that system calls should be interrupted.
118482         (rpl_nanosleep): Move initialization of suspended closer to call of
118483         my_usleep.
118484         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
118485         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
118486         (desirable_utmp_entry): New function.
118487         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
118488         using x2nrealloc, to simplify logic.
118489         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
118490         size calculation.  Do not assume utmp file is a regular file.
118491         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
118492         (READ_UTMP_CHECK_PIDS): New constant.
118493         * lib/save-cwd.c: Include unistd-safer.h.
118494         (save_cwd): Use fd_safer.
118495         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
118496         [!_LIBC] Include "stat-macros.h" instead.
118497         * lib/unistd-safer.h (fd_safer): New decl.
118499 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
118501         * modules/getloadavg (Depends-on): Add unistd-safer.
118502         * modules/getusershell (Depends-on): Add stdio-safer.
118503         * modules/lstat (Depends-on): Remove xalloc.
118504         * modules/mkstemp (Depends-on): Add stat-macros.
118505         * modules/modechange (Depends-on): Remove xstrtol.
118506         Add stat-macros, xalloc.
118507         * modules/save-cwd (Depends-on): Add unistd-safer.
118508         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
118509         * modules/unistd-safer (Files): Add lib/fd-safer.c
118510         (Makefile.am): Remove lib_SOURCES.
118512         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
118513         Remove fcntl-safer; unistd-safer supersedes it.
118515 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
118517         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
118518         AC_HEADER_STAT.
118519         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
118520         (gl_PREREQ_CHOWN): Remove.
118521         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
118522         it.  Don't require AC_HEADER_STAT.
118523         (gl_PREREQ_LSTAT): Remove.
118524         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
118525         Don't require AC_HEADER_STAT.
118526         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
118527         (gl_PREREQ_RMDIR): Remove.
118528         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
118529         mention stat-macros.h or AC_HEADER_STAT, since we'll make
118530         the stat-macros module a prerequisite.
118531         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
118532         * m4/filemode.m4 (gl_FILEMODE): Likewise.
118533         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
118534         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
118535         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
118536         variable names.
118537         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
118538         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
118539         variable prefixes.
118540         * m4/fcntl-safer.m4: Remove.
118541         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
118542         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
118543         Invoke gl_PREREQ_FD_SAFER.
118544         (gl_PREREQ_FD_SAFER): New macro.
118545         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
118546         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
118547         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
118548         Remove duplicate call to AC_LIBOBJ(readutmp).
118549         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
118551         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
118552         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
118554 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
118556         * MODULES.html.sh (Misc): Add byteswap.
118558 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
118560         * modules/getcwd (Depends-on): Add extensions.
118561         * modules/openat (Depends-on): Likewise.
118563 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
118565         * modules/byteswap: New file.
118567 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
118569         * m4/byteswap.m4: New file.
118571 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
118573         * lib/byteswap_.h: New file.
118575 2005-04-25  Karl Berry  <karl@gnu.org>
118577         * m4/gettext.m4: Update from GNU gettext 0.14.4.
118579 2005-04-25  Albert Chin  <china@thewrittenword.com>
118581         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
118582         Toolkit C bug.
118584 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
118586         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
118587         (func_ln_if_changed): Remove forcibly for no error message
118588         in case file does not exist.
118590 2005-04-19  Simon Josefsson  <jas@extundo.com>
118592         * gnulib-tool (Options): Make --symlink mean --symbolic.
118594 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
118596         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
118598 2005-04-16  Simon Josefsson  <jas@extundo.com>
118600         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
118602 2005-04-15  Simon Josefsson  <jas@extundo.com>
118604         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
118606 2005-04-15  Simon Josefsson  <jas@extundo.com>
118608         * gnulib-tool: Rename --symlink to --symbolic.
118610 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
118612         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
118613         symbolic links to files instead of copying/moving.  Add --aux-dir,
118614         specifying directory relative --dir where auxiliary build tools
118615         are placed.
118617 2005-04-14  Bruno Haible  <bruno@clisp.org>
118619         * modules/allocsa (License): Change to LGPL.
118620         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
118622 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
118624         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
118625         that "UTC +1 second" continues to work.  Problem reported
118626         by Dmitry V. Levin.
118627         (relunit_snumber): New rule.
118628         (relunit): Use it.
118630 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
118632         * lib/getdate.y (universal_time_zone_table): New constant.
118633         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
118634         universal_time_zone_table.
118635         (lookup_zone): Prefer universal_time_zone_table to
118636         local_time_zone_table, so that "GMT" time stamps are allowed in
118637         London during the summer.  Problem reported by Ian Abbott.
118639 2005-04-12  Jim Meyering  <jim@meyering.net>
118641         * lib/human.c (humblock): Set *options even when returning due to
118642         xstrtoumax conversion failure.  Thanks to a used-uninitialized
118643         warning from gcc-4.
118645 2005-04-09  Jim Meyering  <jim@meyering.net>
118647         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
118648         -Wuninitialized: initialize tm0.tm_year.
118650 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
118652         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
118653         count, since there's no maximum.  All uses changed.
118654         Add member dsts_seen.
118655         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
118656         not being INT_MAX.
118657         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
118658         Use pc_rels_seen to decide whether a date is absolute.
118660         * lib/getdate.y (number): Don't overwrite year.
118661         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
118662         check.
118664 2005-04-02  Simon Josefsson  <jas@extundo.com>
118666         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
118667         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
118669 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
118671         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
118672         where no absolute path name can be longer than PATH_MAX.
118674 2005-03-27  Jim Meyering  <jim@meyering.net>
118676         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
118678 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
118680         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
118681         "one's complement" -> "ones' complement" in comment, as per Knuth.
118682         "value of type" -> "type or expression" in comment.
118683         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
118685 2005-03-26  Jim Meyering  <jim@meyering.net>
118687         Comment nits.
118688         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
118689         Correct typos: s/or/of/.
118691 2005-03-26  Jim Meyering  <jim@meyering.net>
118693         * modules/check-include-files: Move to ../ and rename to...
118694         * check-module: ...this.
118696 2005-03-25  Jim Meyering  <jim@meyering.net>
118698         * modules/xvasprintf (Files): Add xalloc.h.
118700 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
118702         * modules/gettext (Files): config/config.rpath ->
118703         build-aux/config.rpath
118704         * modules/iconv (Files): Likewise.
118705         Problem reported by Oskar Liljeblad.
118707 2005-03-23  Jim Meyering  <jim@meyering.net>
118709         * modules/check-include-files: New script to check for
118710         missing dependencies, multiple includes, etc.
118712         * modules/c-strtold (Depends-on): Add xalloc.
118713         * modules/c-strtod (Depends-on): Add xalloc.
118714         * modules/hash (Depends-on): Add xalloc.
118715         (Files): Remove lib/xalloc.h.
118717         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
118718         * modules/userspec (Files): Add lib/inttostr.h.
118720 2005-03-23  Jim Meyering  <jim@meyering.net>
118722         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
118724 2005-03-22  Jim Meyering  <jim@meyering.net>
118726         * modules/stat-macros: New module.
118727         * modules/canonicalize, modules/euidaccess, modules/file-type,
118728         * modules/filemode, modules/lchown, modules/makepath,
118729         * modules/rmdir, modules/stat: Depend on new stat-macros module
118730         rather than listing lib/stat-macros.h manually.
118731         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
118733 2005-03-22  Jim Meyering  <jim@meyering.net>
118735         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
118737 2005-03-22  Bruno Haible  <bruno@clisp.org>
118739         * config/srclist.txt: Replace target directory 'config' with
118740         'build-aux'.
118741         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
118742         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
118743         ../build-aux/.
118745 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
118747         * modules/chdir-long (Depends-on): Add mempcpy.
118749         * modules/acl, modules/backupfile, modules/c-strtod,
118750         modules/c-strtold, modules/canon-host, modules/canonicalize,
118751         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
118752         modules/exclude, modules/exitfail, modules/file-type,
118753         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
118754         modules/getdate, modules/getline, modules/getpagesize,
118755         modules/getpass, modules/getugroups, modules/group-member,
118756         modules/hard-locale, modules/hash, modules/human, modules/idcache,
118757         modules/inttostr, modules/long-options, modules/makepath,
118758         modules/md5, modules/memcasecmp, modules/memcoll,
118759         modules/modechange, modules/mountlist, modules/path-concat,
118760         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
118761         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
118762         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
118763         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
118764         modules/strftime, modules/strndup, modules/strverscmp,
118765         modules/timespec, modules/unlocked-io, modules/userspec,
118766         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
118767         modules/yesno:
118768         Remove lib_SOURCES line from Makefile.am section, as this is now
118769         done automatically by the corresponding Autoconf macro.
118771 2005-03-21  Jim Meyering  <jim@meyering.net>
118773         Changes imported from coreutils.
118775         * lib/cycle-check.c: Don't include xalloc.h.
118777         * lib/path-concat.c: Don't include assert.h.
118778         (path_concat): Remove assertion that would have triggered
118779         for ABASE starting with more than one slash.
118780         Reported by Andreas Schwab.
118782         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
118783         properly when ABASE is an absolute file name.
118784         Correct the description of this function.
118785         Include <assert.h>.
118786         Add an assertion and a test driver.
118787         This fixes a bug introduced on 2004-07-02.
118788         Andreas Schwab reported the resulting failure of cp --parents:
118789         http://lists.gnu.org/r/bug-coreutils/2005-01/msg00130.html
118791 2005-03-21  Jim Meyering  <jim@meyering.net>
118793         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
118794         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
118796 2005-03-21  Jim Meyering  <jim@meyering.net>
118797         and  Paul Eggert  <eggert@cs.ucla.edu>
118799         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
118800         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
118801         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
118802         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
118803         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
118804         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
118805         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
118806         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
118807         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
118808         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
118809         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
118810         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
118811         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
118812         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
118813         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
118814         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
118815         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
118816         for these modules.
118818 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
118820         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
118821         (which shouldn't happen), generate nothing instead of returning 0
118822         immediately, so that nstrftime (NULL, ...) doesn't return 0.
118824 2005-03-16  Bruno Haible  <bruno@clisp.org>
118826         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
118827         HAVE_LONGLONG_64BIT.
118829 2005-03-16  Bruno Haible  <bruno@clisp.org>
118831         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
118832         HAVE_LONGLONG_64BIT.
118834 2005-03-16  Bruno Haible  <bruno@clisp.org>
118836         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
118837         HAVE_LONGLONG_64BIT.
118839 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
118841         * lib/strftime.c (my_strftime): Prepend space to format so that we can
118842         reliably distinguish strftime failure from empty output on POSIX
118843         hosts.
118845 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
118847         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
118848         (iconv_string): Don't guess a size-zero buffer, as that might cause
118849         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
118850         result would be 'too large', where 'too large' is (heuristically)
118851         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
118852         overflow concerns.  This will prevent some unwanted malloc failures
118853         when the inputs are very large.
118855 2005-03-15  Karl Berry  <karl@gnu.org>
118857         * config/srclist.txt (config.rpath): from gettext.
118858         * config/config.rpath: update.
118860 2005-03-15  Bruno Haible  <bruno@clisp.org>
118862         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
118863         to 'negate'.
118865         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
118866         variable.
118868         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
118869         results.
118871 2005-03-14  Simon Josefsson  <jas@extundo.com>
118873         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
118874         <fx@gnu.org>.
118876 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
118878         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
118879         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
118880         intprops.h.
118881         * lib/strtol.c: Likewise.
118883 2005-03-14  Jim Meyering  <jim@meyering.net>
118885         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
118886         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
118887         to be nonzero so that we (and caller) can detect the difference
118888         between a valid zero-length expansion and an error return, even
118889         when the underlying strftime fails before writing anything into
118890         that location.
118892 2005-03-14  Bruno Haible  <bruno@clisp.org>
118894         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
118895         Update from GNU gettext 0.14.3.
118897 2005-03-10  Jim Meyering  <jim@meyering.net>
118899         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
118901 2005-03-10  Jim Meyering  <jim@meyering.net>
118903         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
118904         so that this module works on systems without fchdir.
118906 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
118908         Factor int-properties macros into a single file, except for
118909         glibc-related files.
118910         * lib/intprops.h: New file.
118911         * lib/getloadavg.c: Include it instead of limits.h.
118912         (INT_STRLEN_BOUND): Remove.
118913         * lib/human.c: Include intprops.h.
118914         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
118915         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
118916         302/1000.
118917         * lib/inttostr.h: Include intprops.h instead of limits.h.
118918         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
118919         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
118920         for consistency with intprops.h.
118921         (time_t_is_integer, twos_complement_arithmetic): Use them.
118922         * lib/sig2str.h: Include <signal.h>, intprops.h.
118923         (INT_STRLEN_BOUND): Remove.
118924         * lib/strftime.c (TYPE_SIGNED): Remove.
118925         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
118926         * lib/strtol.c: Adjust comments to match intprops.h.
118927         * lib/userspec.c: Include intprops.h.
118928         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
118929         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
118930         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
118931         instead of rolling our own expressions.
118932         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
118934         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
118935         instead of int.
118936         (my_strftime): Do not mishandle years close to INT_MAX, by doing
118937         the right thing even if adding 1900 would overflow.  Similarly
118938         for tm_mon + 1 and tm_yday + 1.
118939         Make %Y always equivalent to %C%y, and similarly for %G and %g.
118940         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
118941         (DO_SIGNED_NUMBER): New macro.
118942         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
118944 2005-03-07  Bruno Haible  <bruno@clisp.org>
118946         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
118948 2005-03-07  Bruno Haible  <bruno@clisp.org>
118950         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
118952 2005-03-04  Derek R. Price  <derek@ximbiot.com>
118954         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
118955         (func_import): Only replace files via --import when they have actually
118956         changed.
118958 2005-03-03  Derek R. Price  <derek@ximbiot.com>
118960         * m4/mmap-anon.m4: New file.
118961         * m4/pagealign_alloc.m4: New file.
118963 2005-03-03  Derek R. Price  <derek@ximbiot.com>
118964             Bruno Haible  <bruno@clisp.org>
118966         * modules/pagealign_alloc: New file.
118967         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
118969 2005-03-03  Derek R. Price  <derek@ximbiot.com>
118970             Bruno Haible  <bruno@clisp.org>
118972         * lib/pagealign_alloc.h: New file.
118973         * lib/pagealign_alloc.c: New file.
118975 2005-03-03  Bruno Haible  <bruno@clisp.org>
118977         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
118978         Use an all-permissive copyright notice, recommended by RMS.
118980 2005-03-02  Bruno Haible  <bruno@clisp.org>
118982         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
118983         of AIX, the replacement has to be done only after <string.h> is
118984         included, therefore not in config.h. stpncpy.h does the replacement,
118985         and stpncpy.c uses it.
118987 2005-03-02  Bruno Haible  <bruno@clisp.org>
118989         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
118990         stpncpy.c uses it.
118992 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
118994         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
118995         The workaround isn't strictly needed for POSIX conformance, and
118996         it's too much of a pain to configure and maintain.  We'll ask
118997         people to fix their kernels instead.
118998         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
118999         (NANOSLEEP_BUG_WORKAROUND): Remove.
119000         (xnanosleep): Remove the workaround.
119002 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
119004         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
119005         Reported by Derek Price.
119006         (Include): Add "timespec.h".
119008         * modules/xnanosleep (Depends-on): Remove gethrxtime.
119010 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
119012         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
119013         to detect nanosleep bug.
119015 2005-03-01  Bruno Haible  <bruno@clisp.org>
119017         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
119019 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
119021         * modules/gethrxtime: New file.
119022         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
119023         (Depends-on): Add gethrxtime.
119024         (configure.ac): Add gl_XNANOSLEEP.
119025         (Makefile.am): Remove lib_SOURCES line.
119027 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
119029         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
119030         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
119032 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
119034         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
119035         * lib/timespec.h (gettime): Return void, since it always
119036         succeeds now.  All uses changed.
119037         * lib/gettime.c (gettime): Likewise.
119038         [HAVE_NANOTIME]: Prefer nanotime.
119039         Assume gettimeofday succeeds, as POSIX requires.
119040         Assime time () succeeds, since other code already does.
119041         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
119042         (timespec_subtract): Remove.
119043         (NANOSLEEP_BUG_WORKAROUND): New constant.
119044         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
119045         things considerably.  Use it only on GNU/Linux hosts, since the
119046         workaround shouldn't be needed elsewhere.
119048 2005-02-24  Bruno Haible  <bruno@clisp.org>
119050         * modules/gettext (Files): Add m4/glibc2.m4.
119052 2005-02-24  Bruno Haible  <bruno@clisp.org>
119054         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
119055         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
119056         * m4/progtest.m4:
119057         Update from GNU gettext 0.14.2.
119058         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
119060 2005-02-24  Bruno Haible  <bruno@clisp.org>
119062         * lib/localcharset.c: Update from GNU gettext 0.14.2.
119063         * lib/config.charset: Update from GNU gettext 0.14.2.
119065 2005-02-24  Bruno Haible  <bruno@clisp.org>
119067         * lib/gettext.h: Update from GNU gettext 0.14.2.
119069 2005-02-23  Simon Josefsson  <jas@extundo.com>
119071         * m4/iconvme.m4: New file.
119073 2005-02-23  Jim Meyering  <jim@meyering.net>
119075         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
119076         change.
119077         Thanks to Bruno Haible for catching it.
119079 2005-02-22  Simon Josefsson  <jas@extundo.com>
119081         * modules/iconvme: New file.
119083         * MODULES.html.sh: Add iconvme.
119085 2005-02-22  Simon Josefsson  <jas@extundo.com>
119087         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
119089 2005-02-22  Simon Josefsson  <jas@extundo.com>
119091         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
119093 2005-02-22  Jim Meyering  <jim@meyering.net>
119095         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
119096         s/ifndef/ifdef/.
119098 2005-02-20  Neil Conway  <neilc@samurai.com>
119100         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
119101         returned by OSX/Darwin if the specified buffer is not large
119102         enough for the hostname.
119104 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
119106         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
119107         pass it to _help, otherwise the latter coredumps trying to
119108         dereference state.root_argp.
119110 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
119112         * modules/chdir-long (Depends-on): Add memrchr.
119113         * modules/memrchr (Files): Add lib/memrchr.h.
119114         (Include): "memrchr.h".
119116 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
119118         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
119120 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
119122         * lib/memrchr.h: New file.
119123         * lib/chdir-long.c: Include it.
119124         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
119125         Don't bother including stddef.h.
119127 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
119129         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
119130         inclusion.
119131         Include <sys/types.h>, for dev_t.
119132         (ME_DUMMY, ME_REMOTE): Move from here....
119133         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
119134         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
119135         Dmitry V. Levin.
119136         Include mountlist.h first, to test the interface.
119138 2005-01-29  Bruno Haible  <bruno@clisp.org>
119140         * lib/progname.c (program_name): Initialize.
119141         Needed when linking statically on MacOS X.
119143 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
119145         Sync from coreutils.
119146         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
119147         (Depends-on): Add c-strtod.
119148         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
119150 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
119152         Sync from coreutils.
119153         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
119155         Remove files that are specific to coreutils.
119156         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
119158 2005-01-28  Bruno Haible  <bruno@clisp.org>
119160         * modules/javacomp: New file.
119161         * MODULES.html.sh (Java): Add javacomp.
119163 2005-01-28  Bruno Haible  <bruno@clisp.org>
119165         * m4/javacomp.m4: New file, from GNU gettext.
119167 2005-01-28  Bruno Haible  <bruno@clisp.org>
119169         * lib/javacomp.sh.in: New file, from GNU gettext.
119170         * lib/javacomp.h: New file, from GNU gettext.
119171         * lib/javacomp.c: New file, from GNU gettext.
119173 2005-01-26  Simon Josefsson  <jas@extundo.com>
119175         * lib/gai_strerror.c: Use GPL in header.
119177 2005-01-26  Bruno Haible  <bruno@clisp.org>
119179         * modules/javaexec: New file.
119180         * MODULES.html.sh (Java): Add javaexec.
119182 2005-01-26  Bruno Haible  <bruno@clisp.org>
119184         * m4/javaexec.m4: New file, from GNU gettext.
119186 2005-01-26  Bruno Haible  <bruno@clisp.org>
119188         * lib/javaexec.sh.in: New file, from GNU gettext.
119189         * lib/javaexec.h: New file, from GNU gettext.
119190         * lib/javaexec.c: New file, from GNU gettext.
119192 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
119194         * modules/lchown (Depends-on): Remove lchown.h
119196 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
119198         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
119199         must be defined if the header file was not found, in order
119200         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
119202 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
119204         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
119205         initializers for struct pentry_state.
119206         (__argp_error): Check return value of __asprintf
119207         (__argp_failure): Translate error message
119209         * lib/argp-parse.c: Removed braces around the expansion of N_()
119211 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
119213         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
119214         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
119215         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
119216         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
119217         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
119218         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
119219         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
119220         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
119221         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
119222         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
119223         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
119224         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
119225         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
119226         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
119227         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
119228         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
119229         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
119230         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
119231         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
119232         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
119233         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
119234         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
119235         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
119236         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
119237         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
119238         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
119239         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
119240         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
119241         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
119242         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
119243         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
119244         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
119245         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
119246         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
119247         xstrtol.m4, xstrtoumax.m4, yesno.m4:
119248         Use an all-permissive copyright notice, recommended by RMS.
119250 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
119252         * modules/chdir-long (Depends-on): Remove mempcpy.
119254 2005-01-21  Jim Meyering  <jim@meyering.net>
119256         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
119257         same value as for Solaris 9.
119259         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
119260         component length.  This included changing the parameter to be
119261         of type `char *' rather than `char const *'.
119262         * lib/chdir-long.h (chdir_long): Update prototype.
119264         * lib/openat.c (fdopendir, fstatat): New functions.
119265         * lib/openat.h: Include headers required for use of DIR and struct
119266         stat.
119267         [AT_SYMLINK_NOFOLLOW]: Define.
119268         (fdopendir, fstatat): Add prototypes.
119270 2005-01-21  Bruno Haible  <bruno@clisp.org>
119272         * modules/classpath: New file.
119273         * MODULES.html.sh (Java): Add classpath.
119275 2005-01-21  Bruno Haible  <bruno@clisp.org>
119277         * lib/classpath.h: New file, from GNU gettext.
119278         * lib/classpath.c: New file, from GNU gettext.
119280 2005-01-20  Simon Josefsson  <jas@extundo.com>
119282         * modules/version-etc-fsf: New file.
119284 2005-01-20  Simon Josefsson  <jas@extundo.com>
119286         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
119287         * lib/version-etc.c: Remove version_etc_copyright.
119288         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
119289         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
119291 2005-01-20  Simon Josefsson  <jas@extundo.com>
119293         * lib/base64.h (isbase64): Add.
119295         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
119296         using a unsigned prototype, don't inline.
119297         (base64_decode): Use it.
119299 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
119301         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
119302         it.
119304 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
119306         * lib/save-cwd.c (save_cwd): Remove code to support the case
119307         where fchdir is missing or flaky.
119309 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
119311         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
119313 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
119315         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
119316         AC_LIBSOURCES now does this.
119317         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
119318         with new ullong_max module.
119320 2005-01-19  Bruno Haible  <bruno@clisp.org>
119322         * modules/sh-quote: New file.
119323         * MODULES.html.sh (Executing programs): Add sh-quote.
119325 2005-01-19  Bruno Haible  <bruno@clisp.org>
119327         * lib/sh-quote.h: New file, from GNU gettext.
119328         * lib/sh-quote.c: New file, from GNU gettext.
119330 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
119332         Merge from coreutils.
119333         * m4/ullong_max.m4: New file.
119334         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
119335         (gl_MACROS): Assume localeconv exists.
119337 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
119339         Merge changes from coreutils, as described below in several
119340         changelogs dated today.
119342         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
119343         (O_DIRECTORY): Remove; not needed here, since "." must be
119344         a directory.  All uses removed.
119345         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
119346         universal on Suns, and we also need to test for IRIX.
119347         Revamp code to use 'if' rather than '#if'.
119348         Avoid unnecessary comparison of cwd->desc to 0.
119350         * lib/utimens.c (futimens): Robustify the previous patch, by checking
119351         for known valid error numbers rather than observed invalid ones.
119353 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
119355         * modules/ullong_max: New file.
119357         * modules/chdir-long, modules/openat: New files.
119358         * modules/save-cwd (Depends-on): Depend on chdir-long.
119359         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
119361 2005-01-18  Jim Meyering  <jim@meyering.net>
119363         Merge from coreutils.
119364         * m4/chdir-long.m4, m4/openat.m4: New files.
119365         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
119366         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
119367         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
119368         is sane and DOES follow symlinks.  Besides, testing 20 different
119369         systems found no broken chown implementations.
119370         Prompted by a change in rsync's copy of this macro.
119371         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
119373         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
119375         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
119376         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
119377         NULL-means-set-to-current-time semantics.
119378         Remove temporary file immediately, rather than waiting
119379         for configure's at-exit trap code to do it.
119381 2005-01-18  Jim Meyering  <jim@meyering.net>
119383         * lib/version-etc.c (version_etc_copyright): Update copyright date.
119385         * lib/utimens.c (futimens): Account for the fact that futimes
119386         can also fail with errno == ENOSYS or errno == ENOENT.
119387         Patch from Dmitry V. Levin.
119389         Change the name of the robust chdir function from chdir to chdir_long.
119390         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
119391         (restore_cwd): Use chdir_long, not chdir.
119392         * lib/chdir-long.c: Renamed from chdir.c.
119393         * lib/chdir-long.h: Renamed from chdir.h.
119394         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
119395         Hurd.
119397 2005-01-18  Bruno Haible  <bruno@clisp.org>
119399         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
119400         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
119401         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
119402         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
119403         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
119404         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
119405         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
119406         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
119407         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
119408         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
119409         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
119410         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
119411         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
119412         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
119413         Use an all-permissive copyright notice, recommended by RMS.
119415 2005-01-18  Bob Proulx  <bob@proulx.com>
119417         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
119418         simplify offsetof() macro construct to avoid compile failure with
119419         native HP-UX 11.0 ANSI C compiler.
119421 2005-01-17  Bruno Haible  <bruno@clisp.org>
119423         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
119424         redundant because stpncpy.m4 takes care of it.
119426 2005-01-17  Bruno Haible  <bruno@clisp.org>
119428         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
119430 2005-01-17  Bruno Haible  <bruno@clisp.org>
119432         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
119433         used.
119435 2005-01-17  Bruno Haible  <bruno@clisp.org>
119437         * lib/fwriteerror.h (fwriteerror): Change specification to include
119438         fclose.
119439         * lib/fwriteerror.c: Include <stdbool.h>.
119440         (fwriteerror): At the end, close the file stream. Record whether
119441         stdout was already closed.
119443 2005-01-17  Bruno Haible  <bruno@clisp.org>
119445         * lib/execute.c (environ): Declare if needed.
119446         * lib/pipe.c (environ): Likewise.
119447         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
119449 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
119451         * modules/argp: Depend on vsnprintf
119453 2005-01-10  Jim Meyering  <jim@meyering.net>
119455         * modules/closeout (Depends-on): Add atexit.
119457 2005-01-06  Bruno Haible  <bruno@clisp.org>
119459         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
119461 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
119463         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
119464         definitions to be after all include files, to avoid collisions.
119465         Problem reported by Bob Proulx.
119467 2005-01-04  Jim Meyering  <jim@meyering.net>
119469         Changes imported from coreutils.
119470         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
119471         as the mkstemp template, use a temporary directory and an
119472         8.3-friendly template to avoid trouble on systems like DJGPP.
119473         Reported by Juan M. Guerrero via Stepan Kasal.
119474         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
119475         close. Remove the temporary directory right away, rather than waiting
119476         for configure's at-exit trap code to do it.
119477         Suggestion from Stepan Kasal.
119479 2005-01-01  Simon Josefsson  <jas@extundo.com>
119481         * gnulib-tool: Print #include directives when --import'ing.
119483 2004-12-28  Simon Josefsson  <jas@extundo.com>
119485         * tests/test-base64.c: Include required header files.  Remove
119486         unused variables.
119488 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
119490         * modules/error (Depends-on): Remove gettext.
119492 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
119494         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
119495         not needed.  This removes a dependency on the gettext module.
119496         [defined _LIBC]: Do not include <libintl.h>; not needed.
119498 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
119500         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
119501         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
119503 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
119505         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
119506         HAVE_DECL_STRTOLD.
119508 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
119510         * modules/getdate (Depends-on): Remove alloca-opt.
119512 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
119514         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
119516 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
119518         * lib/argp-parse.c: Include <stddef.h>.
119519         (alignof, alignto): New macros.
119520         (parser_init): Don't assume that void * is aligned sufficiently
119521         for struct option.
119523         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
119524         need to extend the stack.
119525         (YYINITDEPTH): New macro, so that the initial stack isn't overly
119526         large.
119528 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
119530         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
119532 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
119534         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
119535         (2004-10-24) change.  Apparently this was a false alarm.
119537         * modules/getdate: Depend on alloca-opt, not alloca.
119539 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
119541         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
119542         Remove now-obsolete comment about AIX.
119543         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
119544         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
119545         (YYMAXDEPTH): New macro.
119547 2004-12-18  Simon Josefsson  <jas@extundo.com>
119549         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
119551 2004-12-18  Bruno Haible  <bruno@clisp.org>
119553         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
119555 2004-12-18  Bruno Haible  <bruno@clisp.org>
119557         * lib/fatal-signal.c (fatal_signals): Make non-const.
119558         (init_fatal_signals): New function.
119559         (uninstall_handlers, install_handlers): Ignore signals that were set to
119560         SIG_IGN.
119561         (at_fatal_signal): Call init_fatal_signals.
119562         (init_fatal_signal_set): Likewise. Ignore signals that were set to
119563         SIG_IGN.
119564         Reported by Paul Eggert.
119566 2004-12-18  Bruno Haible  <bruno@clisp.org>
119568         * doc/alloca.texi: New file.
119569         * doc/alloca-opt.texi: New file.
119571 2004-12-17  Jim Meyering  <jim@meyering.net>
119573         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
119574         Otherwise, install-sh could exit with improper exit status when
119575         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
119577 2004-12-16  Simon Josefsson  <jas@extundo.com>
119579         * tests/test-base64.c: Add license.
119581 2004-12-15  Stepan Kasal  <address@hidden>
119583         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
119585 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
119587         * modules/getcwd (Files): Add m4/d-ino.m4.
119588         Suggested by Mark D. Baushke.
119590 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
119592         * lib/getdate.y (textint): New member "negative".
119593         (time_zone_hhmm): New function.
119594         Expect 14 shift-reduce conflicts, not 13.
119595         (o_colon_minutes): New rule.
119596         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
119597         (yylex): Set the "negative" member of signed numbers.
119599 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
119601         * doc/getdate.texi (Time of day items, Time zone items):
119602         Describe new formats +00:00, UTC+00:00.
119604 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
119606         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
119607         spurious "-l"s.  Problem reported by Stepan Kasal.
119609 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
119611         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
119612         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
119614 2004-12-04  Simon Josefsson  <jas@extundo.com>
119616         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
119617         Vandoorselaere <yoann@prelude-ids.org>.
119619 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
119621         Changes imported from coreutils.
119622         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
119623         exist.
119624         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
119626 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
119628         Changes imported from coreutils.
119629         * lib/hard-locale.c: Assume <locale.h> exists.
119630         Include "strdup.h".
119631         (GLIBC_VERSION): New macro.
119632         (hard_locale): Assume setlocale exists.
119633         Rewrite to avoid #ifdef.
119634         Use strdup rather than malloc + strcpy.
119635         * lib/human.c: Assume <locale.h> exists.
119636         (human_readable): Assume localeconv exists.
119638 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
119640         * modules/hard-locale (Depends-on): Add strdup.
119642 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
119644         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
119645         convert T2, not T.  (Imported from libc.)
119647 2004-11-30  Simon Josefsson  <jas@extundo.com>
119649         * modules/restrict (License): Change to LGPL.
119651 2004-11-30  Simon Josefsson  <jas@extundo.com>
119653         * m4/restrict.m4: Add copyright and copying conditions.
119655 2004-11-30  Simon Josefsson  <jas@extundo.com>
119657         * m4/base64.m4: New file.
119659 2004-11-30  Simon Josefsson  <jas@extundo.com>
119661         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
119662         base64.
119664         * tests/test-base64.c: New file.
119666         * modules/base64: New file.
119668 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
119670         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
119671         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
119673         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
119675 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
119677         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
119678         (__getcwd.c): Don't restore errno; glibc doesn't.
119679         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
119680         first, falling back to our code only if its results look suspicious.
119681         Ensure that the resulting buffer is only as large as necessary.
119683         * lib/readutmp.c: Include readutmp.h first.
119684         Include <errno.h>, since readutmp.h no longer does that.
119685         * lib/readutmp.h: Don't include <errno.h>,
119686         <sys/param.h>, <time.h>; not needed to establish interface.
119687         (errno): Remove decl.
119688         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
119689         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
119690         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
119692 2004-11-28  Simon Josefsson  <jas@extundo.com>
119694         * lib/base64.h, base64.c: New file.
119696 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
119698         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
119700 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
119702         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
119703         (Depends-on): Remove pathmax, same.  Add mempcpy.
119704         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
119705         (Makefile.am): Append getcwd.h to lib_SOURCES.
119706         (Include): Add getcwd.h.
119707         (Maintainer): Change from Jim Meyering to "all, glibc",
119708         since getdate now uses intended-for-glibc code.
119709         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
119710         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
119712 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
119714         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
119715         HP's ANSI C compiler.
119716         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
119717         Declaring int functions causes warnings on some modern systems and
119718         shouldn't be needed to compile on ancient ones.
119719         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
119720         defined.
119722         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
119723         with the following changes.
119724         (__set_errno): Parenthesize properly.
119725         Include <stdbool.h>.
119726         (MIN, MAX, MATCHING_INO): New macros.
119727         (__getcwd): Define with prototype, not K&R form.
119728         Use heuristics to allocate default buffer on stack if possible.
119729         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
119730         behavior, and to avoid the PATH_MAX limit when computing
119731         ../../../../...
119732         Use MATCHING_INO to compare inode number to file.
119733         Check for arithmetic overflow in size calculations.
119734         Fix bug in reallocation of dot array that caused getcwd to fail
119735         on directories nested deeper than 75.
119736         Be more careful about saving errno on error.
119737         Do not use realloc; use only free+malloc, as this is a bit
119738         more flexible and avoids a needless copy operation.
119739         Do not inspect st_dev and st_ino for symbolic links; POSIX
119740         doesn't specify the latter.
119741         Check for closedir errors.
119742         Avoid needless casts.
119743         Use "#ifdef weak_alias" around weak_alias, to be like other
119744         glibc code.
119745         The following changes to getcwd.c have effect only when used in
119746         gnulib; they have no effect inside glibc proper.
119747         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
119748         as alloca isn't used.
119749         (alloca, __alloca): Likewise.
119750         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
119751         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
119752         unconditionally, as gnulib assumes C89 or better.
119753         Do not include <sys/param.h>.
119754         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
119755         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
119756         better.
119757         (NULL) [!defined NULL]: Remove; we assume C89 or better.
119758         Include <dirent.h> in a way that is compatible with modern Autoconf.
119759         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
119760         New macros, if not already defined.
119761         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
119762         Use "_LIBC", not "defined _LIBC", for consistency.
119763         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
119764         a mempcpy module.
119765         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
119766         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
119767         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
119768         credit only to Jim Meyering and adjust the copyright dates.
119769         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
119770         <stdlib.h>, <unistd.h>, "pathmax.h".
119771         Instead, include "xgetcwd.h" (first) and "getcwd.h".
119772         (INITIAL_BUFFER_SIZE): Remove.
119773         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
119775 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
119777         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
119778         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
119779         Use the _ONCE methods, for efficiency.
119780         Check for fcntl.h.  In test program, include <errno.h>
119781         and <fcntl.h> if available.  Remove old K&R cruft from
119782         test program.  Check for common errors in GNU/Linux,
119783         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
119784         don't do AC_LIBOBJ, as that's getcwd.m4's job.
119785         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
119786         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
119787         name accordingly.
119788         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
119789         accommodate new getcwd.c.
119790         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
119791         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
119792         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
119793         that's all we need now.
119795 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
119797         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
119798         argp-parse.c depends on getopt internals, that means we should
119799         always use our getopt, to be on the safe side.
119800         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
119801         order not to spoil the result of an eventual previous invocation
119802         of gl_GETOPT_SUBSTITUTE.
119804 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
119806         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
119807         redefinition warnings. To avoid them, include the defines
119808         in `#if !defined __need_getopt ... #endif'. The only place
119809         where __getopt_argv_const is used is in definitions
119810         of getopt_long and getopt_long_only below, which are as well
119811         protected by `#ifndef __need_getopt'.
119812         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
119813         __need_getopt after including <stdio.h> and <unistd.h> These
119814         headers might have defined it.
119816 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
119818         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
119820 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
119822         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
119823         (futimens): New function, which uses futimes if available.
119824         (futimens, utimens): Support timespec==NULL, with same semantics
119825         as utime and utimens.
119826         * lib/utimens.h (futimens): New decl.
119828 2004-11-23  Jim Meyering  <jim@meyering.net>
119830         * lib/getopt_.h: Remove trailing blanks.
119832 2004-11-23  Jim Meyering  <jim@meyering.net>
119834         * lib/__fpending.c: Add comment.
119836 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
119838         * modules/canonicalize (Depends-on): Add xreadlink.
119839         Problem reported by James Youngman.
119841 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
119843         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
119844         New macros.
119845         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
119846         optopt): Use them instead of invoking ## directly; otherwise, the
119847         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
119849 2004-11-19  Bruno Haible  <bruno@clisp.org>
119851         * lib/strtok_r.c: Move comments from here...
119852         * lib/strtok_r.h: ... to here.
119854 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
119856         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
119857         implementations that mishandle size_t overflow.
119859 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
119861         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
119862         might fail.  Problem reported by Yoann Vandoorselaere.
119863         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
119864         implementations that mishandle size_t overflow.
119866 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
119868         * modules/canon-host (Depends-on): Add strdup.
119870 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
119872         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
119874 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
119876         * lib/canon-host.c: Include "strdup.h".
119877         (canon_host): Use getaddrinfo if available, so that IPv6 works.
119878         Use strdup instead of malloc/strcpy to duplicate strings.
119880         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
119881         (human_space_before_unit): New constant.
119882         * lib/human.c (human_readable): Support it.
119884         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
119885         (xgetcwd): Set errno correctly when failing.
119886         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
119887         the failure is actually due to a PATH_MAX problem.
119889         Further getopt changes to make it more likely that glibc will
119890         buy the changes back.
119891         * lib/getopt.c (POSIXLY_CORRECT): New constant.
119892         (getopt): Use it, so to preserve glibc semantic
119893         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
119894         when compiling for libc.
119895         * lib/getopt_.h (__getopt_argv_const): Bring it back.
119896         (getopt_long, getopt_long_only): Use it.
119898         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
119899         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
119900         (getopt): Argv is now char * const *, as per standard.
119901         (_getopt_internal_r, _getopt_internal): Argv is now char **,
119902         not char *__getopt_argv_const *.
119903         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
119904         _getopt_long_only_r): Likewise.
119905         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
119906         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
119907         _getopt_long_r, _getopt_long_only_r): Likewise.
119908         * lib/getopt_.h (__getopt_argv_const): Remove.
119909         (getopt): Argv is now char * const *, as per standard.
119911         * lib/getdate.y (tORDINAL): New token.
119912         (day, relunit): Allow it for relative times.
119913         (relative_time_table): Use tORDINAL for ordinals.
119915 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
119917         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
119918         Document that "second" isn't allowed as an ordinal number.
119920 2004-11-16  Jim Meyering  <jim@meyering.net>
119922         * modules/closeout (Depends-on): Add fpending.
119924 2004-11-15  Jim Meyering  <jim@meyering.net>
119926         * lib/closeout.c: Include "__fpending.h" once again.
119927         Include <stdbool.h>.
119928         (close_stdout): Don't fail just because stdout was closed initially,
119929         since some programs don't write to stdout in the normal course of
119930         operation (other than --version and --help), and we don't want this
119931         function to make e.g. `touch file >&-' fail.
119932         But do fail if it was closed and someone has tried to write to it.
119933         E.g., `printf foo >&-' must fail.
119935 2004-11-13  Jim Meyering  <jim@meyering.net>
119937         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
119939 2004-11-12  Simon Josefsson  <jas@extundo.com>
119941         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
119942         small doc fix is still pending.
119944 2004-11-11  Simon Josefsson  <jas@extundo.com>
119946         * modules/strtok_r: New file.
119948         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
119949         strtok_r.
119951 2004-11-11  Simon Josefsson  <jas@extundo.com>
119953         * m4/strtok_r.m4: New file.
119955         * m4/getopt.m4: Replace opterr.
119957 2004-11-11  Simon Josefsson  <jas@extundo.com>
119959         * lib/strtok_r.h, strtok_r.c: New file.
119961 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
119963         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
119964         of replacing opterr, getopt, etc.  This should handle the
119965         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
119967 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
119969         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
119970         we can stop lying to compilers about the constness of argv when we
119971         are compiled outside glibc.
119972         (getopt, getopt_long, getopt_long_only): Use it.
119973         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
119974         _getopt_internal, getopt): Likewise.
119975         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
119976         _getopt_long_only_r): Likewise.
119977         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
119978         _getopt_long_r, _getopt_long_only_r): Likewise.
119980         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
119981         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
119982         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
119983         the other external symbols.
119984         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
119985         declaration, since the above renaming now works around collisions.
119987 2004-11-11  Jim Meyering  <jim@meyering.net>
119989         * lib/linebreak.c: Remove trailing blanks.
119990         * lib/alloca_.h: Likewise.
119991         * lib/acosl.c: Likewise.
119992         * lib/euidaccess.c: Likewise.
119993         * lib/allocsa.h: Likewise.
119995 2004-11-10  Simon Josefsson  <jas@extundo.com>
119997         * m4/getaddrinfo.m4: New file.
119999 2004-11-10  Simon Josefsson  <jas@extundo.com>
120001         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
120003 2004-11-10  Simon Josefsson  <jas@extundo.com>
120005         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
120006         getaddrinfo.
120008         * modules/getaddrinfo: New file.
120010 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
120012         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
120014 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
120016         * lib/mktime.c (SHR): New macro, which is a portable
120017         substitute for >> that should work even on Crays.
120018         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
120019         Problem reported by Mark D. Baushke in
120020         <http://lists.gnu.org/r/bug-gnulib/2004-11/msg00071.html>.
120021         * lib/getdate.y (SHR): Likewise.
120022         (tm_diff): Use it.
120023         * lib/strftime.c (SHR): Likewise.
120024         (tm_diff): Use it.
120025         * lib/quotearg.c (struct quoting_options): Use unsigned int for
120026         quote_these_too, so that right shifts are well defined.  All uses
120027         changed.
120029 2004-11-10  Jim Meyering  <jim@meyering.net>
120031         Ensure that no close failure goes unreported.
120032         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
120033         return early when it seems there's nothing to flush.
120034         Don't include __fpending.h.
120036 2004-11-10  Jim Meyering  <jim@meyering.net>
120038         * modules/closeout (Depends-on): Remove fpending.
120040 2004-11-10  Jim Meyering  <jim@meyering.net>
120042         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
120044 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
120046         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
120047         gl_FUNC_STRFTIME.
120048         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
120049         and AC_REQUIRE when possible, to avoid duplicate checks.
120050         Check for <wchar.h>.
120052 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
120054         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
120056 2004-11-09  Bruno Haible  <bruno@clisp.org>
120058         * m4/sockpfaf.m4: New file.
120060 2004-11-05  Bruno Haible  <bruno@clisp.org>
120062         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
120063         Reported by Mark D. Baushke <mdb@cvshome.org>.
120065 2004-11-04  Bruno Haible  <bruno@clisp.org>
120067         2004-09-11  Bruno Haible  <bruno@clisp.org>
120068                 * allocsa.valgrind: New file.
120069         2004-02-06  Bruno Haible  <bruno@clisp.org>
120070                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
120071                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
120072                 Reported by Christopher Seip <chris.seip@hp.com>.
120074 2004-11-04  Bruno Haible  <bruno@clisp.org>
120076         * modules/allocsa (Files): Add lib/allocsa.valgrind.
120077         (Makefile.am): Distribute it.
120079 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
120081         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
120082         with errno == ERANGE if the buffer is too small.
120083         Problem reported by Mark D. Baushke.
120085 2004-11-03  Albert Chin  <china@thewrittenword.com>
120086             Paul Eggert  <eggert@cs.ucla.edu>
120088         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
120089         equivalent, substitute $ac_type for equivalent type rather than
120090         blindly using uint32_t *always* which won't work if uint32_t is not
120091         available.  Define _UINT32_T to work around typedef of uint32_t if
120092         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
120093         2.5.1.
120095 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
120097         * m4/jm-macros.m4: Sync from coreutils.
120098         (gl_MACROS): Check for mbrlen, for pathchk.
120099         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
120101 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
120103         * lib/xreadlink.c (MAXSIZE): New macro.
120104         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
120105         size does not exceed MAXSIZE.  Avoid cast.
120106         As suggested by Mark D. Baushke in
120107         <http://lists.gnu.org/r/bug-gnulib/2004-11/msg00009.html>,
120108         if readlink fails with buffer size just under MAXSIZE, try again
120109         with MAXSIZE.
120111 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
120113         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
120115 2004-11-02  Derek R. Price  <derek@ximbiot.com>
120116         and  Paul Eggert  <eggert@cs.ucla.edu>
120118         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
120119         (get_date): Overparenthesize to avoid GCC warning.
120121 2004-11-02  Bruno Haible  <bruno@clisp.org>
120123         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
120124         returns void.
120126 2004-11-02  Bruno Haible  <bruno@clisp.org>
120128         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
120129         function returns void.
120131 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
120133         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
120134         fflush_unlocked, flockfile, funlockfile, funlockfile,
120135         fputs_unlocked, putc_unlocked.
120137 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
120139         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
120140         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
120141         already declared.
120143 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
120145         * modules/getdate (Files): Add doc/getdate.texi.
120146         (Depends-on): Add setenv, xalloc.
120148 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
120150         * lib/getdate.y: Add support for TZ="foo" within a date string.
120151         Fix some bugs near time_t boundaries.  Reject dates with
120152         out-of-range components, e.g., "Sept 31".
120153         Include <stdlib.h>, "setenv.h", "xalloc.h".
120154         (ISDIGIT_LOCALE): Remove; unused.
120155         Note that the TZ and time functions used here are not reentrant.
120156         (mktime_ok, get_tz): New functions.
120157         (TZBUFSIZE): New constant.
120158         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
120159         This requires that we sometimes generate our own TZ="XXX..." setting.
120161 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
120163         * doc/getdate.texi: New file, from coreutils with modifications for
120164         the new TZ parsing.
120166 2004-10-27  Derek R. Price  <derek@ximbiot.com>
120168         * lib/mktime.c (not_equal_tm): Remove redundant check.
120170 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
120172         * modules/regex (lib_SOURCES): Add regex.c.
120173         Reported by James Youngman in
120174         <http://lists.gnu.org/r/bug-gnulib/2004-10/msg00199.html>.
120176 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
120178         * lib/getdate.y: Use Bison 1.875 features, and some minor
120179         code cleanups.  This change does not affect semantics.
120180         Don't include <stdlib.h>; no longer needed.
120181         Don't include unlocked-io.h; only the "#if TEST" code uses
120182         stdio, and performance isn't crucial there.
120183         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
120184         Bison 1.875 features as described below.
120185         All uses of "PC." replaced by "pc->".
120186         (YYSTYPE): Add a forward declaration.
120187         (yylex, yyerror): Use full prototypes in forward decls.
120188         Use "%pure-parser" rather than obsolescent "%pure_parser".
120189         Use %parse-param and %lex-param instead of obsolescent
120190         YYPARSE_PARAM and YYLEX_PARAM.
120191         (meridian_table, month_and_day_table, time_units_table,
120192         relative_time_table, time_zone_table, military_table,
120193         lookup_zone, lookup_word, get_date):
120194         Use NULL instead of 0 where appropriate.
120195         (to_hour): Avoid abort (), to avoid a dependency on
120196         stdlib.h.
120197         (yyerror, yylex): Now accepts parser_control * arg.
120198         (main) [TEST]: Use '\0' rather than 0 for char.
120200 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
120202         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
120204 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
120206         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
120207         It's now the caller's responsibility to handle the case where
120208         !HAVE_GETPAGESIZE && !defined getpagesize.
120210         * lib/mktime.c (leapyear): Arg is long int, not int.
120212 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
120214         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
120216 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
120218         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
120219         missing.  Problem reported by James Youngman.
120221 2004-10-16  Simon Josefsson  <jas@extundo.com>
120223         * gnulib-tool: Fix comments.  Fix parse problem.
120224         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
120226 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
120228         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
120229         implementation of getopt_long.  Problem reported by Alexander Taler in:
120230         http://lists.gnu.org/r/bug-gnulib/2004-10/msg00103.html
120232 2004-10-15  Bruno Haible  <bruno@clisp.org>
120234         * gnulib-tool: Untabify. Initialize supplied_libname.
120235         (func_usage): More homogenous output.
120236         (func_modules_transitive_closure, func_modules_to_filelist,
120237         func_emit_lib_Makefile_am): New functions.
120238         (func_import): New function, extracted from big case statement. Use
120239         func_get_license, func_modules_transitive_closure,
120240         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
120241         opt_lgpl. Don't use test -a, as it's not portable.
120242         (func_create_testdir): Use func_modules_transitive_closure,
120243         func_modules_to_filelist, func_emit_lib_Makefile_am.
120245 2004-10-15  Bruno Haible  <bruno@clisp.org>
120247         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
120249 2004-10-15  Bruno Haible  <bruno@clisp.org>
120251         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
120252         the portions belonging to each module.
120253         Suggested by Derek Robert Price <derek@ximbiot.com>.
120255 2004-10-12  Simon Josefsson  <jas@extundo.com>
120257         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
120258         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
120259         to real functions.
120261 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
120263         * modules/vsnprintf: New file.
120265 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
120267         * m4/vsnprintf.m4: New file.
120269 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
120271         * lib/vsnprintf.h: New file.
120272         * lib/vsnprintf.c: New file.
120274 2004-10-11  Bruno Haible  <bruno@clisp.org>
120276         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
120277         vsnprintf.
120279 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
120281         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
120283 2004-10-07  Bruno Haible  <bruno@clisp.org>
120285         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
120286         fits into the provided buffer.
120288 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
120290         * lib/diacrit.c, diacrit.h: Add GPL notice.
120292         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
120293         notice.
120294         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
120295         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
120296         This avoids a potential constant-folding bug.
120298 2004-10-05  Bruno Haible  <bruno@clisp.org>
120300         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
120301         for the declaration of strsep.
120303 2004-10-05  Bruno Haible  <bruno@clisp.org>
120305         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
120307 2004-10-04  Simon Josefsson  <jas@extundo.com>
120309         * modules/memmem: New file.
120310         * tests/test-memmem.c: New file.
120311         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
120313 2004-10-04  Simon Josefsson  <jas@extundo.com>
120315         * m4/memmem.m4: New file.
120317 2004-10-04  Simon Josefsson  <jas@extundo.com>
120319         * lib/memmem.h: New file.
120320         * lib/memmem.c: New file, taken from glibc.
120322 2004-10-04  Simon Josefsson  <jas@extundo.com>
120324         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
120325         '#ifdef USE_UNLOCKED_IO'.
120327 2004-10-04  Simon Josefsson  <jas@extundo.com>
120329         * config/srclist.txt: Add memmem from glibc.
120331 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
120333         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
120335         * modules/argmatch, modules/argp, modules/closeout, modules/error,
120336         modules/exclude, modules/getdate, modules/getline,
120337         modules/getndelim2, modules/getpass, modules/getpass-gnu,
120338         modules/getusershell, modules/linebuffer, modules/md5,
120339         modules/mountlist, modules/posixtm, modules/readtokens,
120340         modules/readutmp, modules/regex, modules/sha1,
120341         modules/version-etc, modules/yesno:
120342         Remove dependency on unlocked-io.
120344 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
120346         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
120348         * m4/unlocked-io.m4: Add copyright notice.
120349         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
120351 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
120353         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
120354         * lib/xmalloc.c (xmemdup): Likewise.
120355         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
120356         XFREE): Remove these long-obsolescent macros.
120357         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
120358         * lib/xstrdup.c: Remove.
120360         * lib/regex.c (re_comp): Cast gettext return value to char *,
120361         Problem reported by Martin Neitzel via Mark D. Baushke.
120363 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
120365         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
120366         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
120367         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
120368         regex.c, sha1.c, version-etc.c, yesno.c:
120369         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
120370         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
120371         the includer's responsibility.
120373         Sync from coreutils.
120375         * lib/modechange.c (mode_compile): Don't decrement a pointer that
120376         points to the start of a string, as the C Standard says the
120377         resulting behavior is undefined.
120379         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
120380         simple -> simple_backups, numbered_existing ->
120381         numbered_existing_backups, numbered -> numbered_backups
120382         to avoid shadowing problems.  All uses changed.
120383         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
120384         * lib/backupfile.c (check_extension, numbered_backup):
120385         Rename locals to avoid shadowing 'basename'.
120386         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
120387         once.
120389         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
120390         * lib/.cvsignore: Add getopt.h.
120392 2004-10-04  Bruno Haible  <bruno@clisp.org>
120394         * modules/README: New file.
120395         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
120396         not a module.
120398 2004-10-02  Jim Meyering  <jim@meyering.net>
120400         * lib/dirfd.h, getpagesize.h: Add copyright notice.
120402 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
120404         * modules/strsep: New file.
120406 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
120408         * m4/strsep.m4: New file.
120410 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
120412         * lib/strsep.h: New file.
120413         * lib/strsep.c: New file.
120415 2004-10-01  Simon Josefsson  <jas@extundo.com>
120417         * lib/snprintf.c (snprintf): Handle size==0.
120419 2004-10-01  Simon Josefsson  <jas@extundo.com>
120420             Bruno Haible  <bruno@clisp.org>
120422         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
120423         (snprintf): Declare 'args'.
120425 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
120427         * lib/snprintf.c: Remove comments as to why each header is needed.
120429 2004-10-01  Bruno Haible  <bruno@clisp.org>
120431         * MODULES.html.sh: Add strsep.
120433 2004-09-30  Simon Josefsson  <jas@extundo.com>
120435         * modules/snprintf: New file.
120437 2004-09-30  Simon Josefsson  <jas@extundo.com>
120439         * m4/snprintf.m4: New file.
120441 2004-09-30  Simon Josefsson  <jas@extundo.com>
120443         * lib/snprintf.h, lib/snprintf.c: New files.
120445 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
120447         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
120448         (hol_entry_help): Never translate an empty string.
120449         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
120450         * lib/argp.h (OPTION_NO_TRANS): New option.
120452 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
120454         * modules/argp (Maintainer): Replace Simon Josefsson
120455         by Sergey Poznyakoff.
120457 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
120459         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
120460         changes merged back into glibc.
120462 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
120464         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
120466 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
120468         * lib/xvasprintf.c: Include xalloc.h.
120469         (xvasprintf): Use xalloc_die, not xmalloc_die.
120471 2004-09-29  Bruno Haible  <bruno@clisp.org>
120473         * modules/alloca-opt: New file, derived from modules/alloca.
120474         * modules/allocsa: Depend on alloca-opt instead of alloca.
120475         * modules/setenv: Likewise.
120476         * modules/vasnprintf: Likewise.
120477         * MODULES.html.sh: Add alloca-opt.
120479 2004-09-28  Simon Josefsson  <jas@extundo.com>
120481         * gnulib-tool: New parameter --lgpl, to asseert that modules are
120482         LGPL, and to replace license template from GPL to LGPL.
120484 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
120486         * modules/dummy: Change license to LGPL.
120488 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
120490         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
120492 2004-09-24  Simon Josefsson  <jas@extundo.com>
120494         * modules/minmax (License): Change from GPL to LGPL.
120496 2004-09-23  Simon Josefsson  <jas@extundo.com>
120498         * gnulib-tool (--import): Typo.
120500 2004-09-23  Simon Josefsson  <jas@extundo.com>
120502         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
120504 2004-09-22  Bruno Haible  <bruno@clisp.org>
120506         * modules/*: Add 'License' field.
120507         * gnulib-tool: Accept --extract-license option.
120508         (func_get_license): New function.
120510 2004-09-21  Bruno Haible  <bruno@clisp.org>
120512         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
120513         Reported by Simon Josefsson.
120515 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
120517         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
120518         gl_AC_TYPE_LONG_LONG.
120520 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
120522         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
120524 2004-09-18  Simon Josefsson  <jas@extundo.com>
120525         and  Paul Eggert  <eggert@cs.ucla.edu>
120527         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
120528         calls with autoreconf.  Define GL_LIB.
120530 2004-09-14  Karl Berry  <karl@gnu.org>
120532         * config/srclist.txt: unsync setenv.c, sigh.
120534 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
120536         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
120537         Problem reported by Bruno Haible in:
120538         http://lists.gnu.org/r/bug-tar/2004-09/msg00023.html
120540 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
120542         * config/srclist.txt: Comment out argp-pvh.c.
120544 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
120546         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
120547         in case some system header has #define'd it.  Problem reported by
120548         Soeren D. Schulze in
120549         <http://lists.gnu.org/r/bug-gnulib/2004-09/msg00017.html>.
120551 2004-09-09  Karl Berry  <karl@gnu.org>
120553         * regex.[ch]: delete from the root.  These were supposed to be
120554                 synced with emacs cvs, but this has not happened for about
120555                 a year, and anyway nothing else uses emacs regex.[ch].
120556                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
120557                 lib/regex[.ch] is untouched.
120559 2004-09-09  Bruno Haible  <bruno@clisp.org>
120561         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
120563 2004-09-09  Bruno Haible  <bruno@clisp.org>
120565         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
120566         modifications.
120567         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
120569 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
120571         * modules/xvasprintf: New file.
120572         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
120574 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
120576         * lib/xvasprintf.h: New file.
120577         * lib/xvasprintf.c: New file.
120578         * lib/xasprintf.c: New file.
120580 2004-09-08  Bruno Haible  <bruno@clisp.org>
120582         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
120584 2004-09-08  Bruno Haible  <bruno@clisp.org>
120586         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
120587         length is > INT_MAX.
120588         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
120589         more.
120591 2004-09-08  Bruno Haible  <bruno@clisp.org>
120593         * lib/stdint_.h: New file, taken from GNU clisp.
120595 2004-09-08  Bruno Haible  <bruno@clisp.org>
120596             Oskar Liljeblad  <oskar@osk.mine.nu>
120598         * modules/stdint: New file.
120599         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
120601 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
120603         Import from coreutils.
120604         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
120605         strings on unbounded length.  alloca's performance benefits aren't
120606         that important here.
120607         (V_STRDUP): Remove.
120608         (parse_with_separator): New function, with most of the internals
120609         of the old parse_user_spec.  Allow user to omit both user and group,
120610         for compatibility with FreeBSD.
120611         Clone only the user name, not the entire spec.
120612         Do not set *uid, *gid unless entirely successful.
120613         Avoid memory leak in some failing cases.
120614         Fix regression for USER.GROUP reported by Dmitry V. Levin in
120615         <http://lists.gnu.org/r/bug-coreutils/2004-08/msg00102.html>
120616         (parse_user_spec): Rewrite to use parse_with_separator.
120618 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
120620         * modules/userspec: Don't depend on alloca.
120622 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
120624         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
120626 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
120628         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
120629         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
120630         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
120632 2004-08-16  Simon Josefsson  <jas@extundo.com>
120634         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
120635         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
120636         Add --dry-run for --import.
120637         Let user provided command line parameters override configure.ac
120638         settings.
120640 2004-08-12  Simon Josefsson  <jas@extundo.com>
120642         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
120643         as discussed with Paul Eggert in threads rooted at
120644         <http://lists.gnu.org/r/bug-gnulib/2004-06/msg00039.html>
120645         and
120646         <http://lists.gnu.org/r/bug-gnulib/2004-07/msg00001.html>.
120647         Before, the test was empty, and relied on ELIDE_CODE in source
120648         code.)
120649         (gl_PREREQ_GETOPT): New macro.
120650         (gl_GETOPT): Use them.
120652 2004-08-12  Simon Josefsson  <jas@extundo.com>
120654         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
120655         * lib/getopt_.h: Renamed from getopt.h.
120657 2004-08-12  Simon Josefsson  <jas@extundo.com>
120659         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
120660         Change default library name from libfoo to libgnu.
120661         Now, if you have a configure.ac that says:
120662                 gl_SOURCE_BASE(gl)
120663                 gl_M4_BASE(gl/m4)
120664                 gl_MODULES(error getopt etcetera)
120665                 gl_INIT
120666         you can import all you need by running:
120667                 ../gnulib/gnulib-tool --import
120669         * modules/getopt (Files): Rename getopt.h to getopt_.h.
120670         (Makefile.am): Rewrite, use logic from argz.
120671         (Include): Use <getopt.h> instead of "getopt.h".
120673 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
120675         * modules/argp (Files): Add m4/unlocked-io.m4.
120676         (Depends-on): Add extensions.
120678 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
120680         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
120681         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
120682         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
120683         Check for program_invocation_name, program_invocation_short_name,
120684         flockfile, funlockfile, features.h, _getopt_long_only_r.
120686 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
120688         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
120689         its complicated substitute.
120690         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
120691         and program_invocation_name.
120692         (__argp_basename) [!_LIBC]: Remove; the only use was
120693         replaced by its body.
120694         (__argp_short_program_name): Change condition from
120695         !defined __argp_short_program_name to
120696         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
120697         to match argp-namefrob.h.
120698         (__argp_failure): Don't assume strerror_r returns char *.
120699         * lib/argp-parse.c (N_): Define unconditionally.
120700         (argp_default_options): Fill out initializers with 0 to avoid
120701         gcc warnings.
120703 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
120705         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
120706         getopt1.c.
120708 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
120710         Merge from coreutils.
120712         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
120714         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
120715         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
120717 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
120719         Merge from coreutils.
120721         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
120722         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
120723         for Reliant Unix 5.43.
120725         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
120726         (union fooround): Use uintmax_t, not long int.
120727         The rest is a merge from libc:
120728         [defined _LIBC]: Include <shlib-compat.h>.
120729         (_obstack) [defined _LIBC]: Remove after 2.3.4.
120731         * lib/settime.c (settime): Recode to avoid warning with
120732         Sun Forte C 6U2.
120734         * lib/strverscmp.c: Convert to UTF-8.
120736 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
120738         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
120739         m4/uintmax_t.m4.
120741 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
120743         * modules/xalloc-die: New file.
120744         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
120746         * modules/md5 (Files): Add m4/uint32_t.m4.
120747         * modules/sha1: Renamed from modules/sha.
120748         (Files):
120749         Rename lib/sha.h to lib/sha1.h.
120750         Rename lib/sha.c to lib/sha1.c.
120751         Rename m4/sha.m4 to m4/sha1.m4.
120752         (lib_SOURCES): Likewise.
120753         (configure.ac): Rename gl_SHA to gl_SHA1.
120754         (Include): sha.h -> sha1.h.
120756 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
120758         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
120759         * m4/sha1.m4: Renamed from sha.m4.
120760         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
120762 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
120764         * lib/obstack.h (obstack_empty_p):
120765         Don't assume that chunk->contents is suitably aligned.
120766         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
120767         Likewise. Problem reported by Benno in
120768         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
120770         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
120771         readable.  This could be improved further but it'd take some work.
120773 2004-08-08  Simon Josefsson  <jas@extundo.com>
120775         * modules/xgethostname (Depends-on): Remove exit and error (not
120776         used).
120778         * modules/getpass-gnu: Add getpass.h.
120779         (Depends-on): Add stdbool.
120780         * modules/getpass: Add getpass.h.
120782 2004-08-08  Simon Josefsson  <jas@extundo.com>
120784         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
120785         Check getpass declaration.
120787 2004-08-08  Simon Josefsson  <jas@extundo.com>
120789         * lib/xgethostname.c: Don't include error.h (not used).
120791         * lib/getpass.h: Add.
120792         * lib/getpass.c: Include getpass.h first.
120794 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
120796         * lib/xalloc-die.c: New file.
120797         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
120798         All uses removed.
120799         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
120800         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
120801         xalloc-die.c.
120802         (_, N_, xalloc_die): Move to xalloc-die.c.
120803         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
120804         so that we needn't mess with xalloc_msg_memory_exhausted.
120806         * lib/sha1.h: Renamed from sha.h.
120807         (SHA1_H): Renamed from _SHA_H.
120808         (sha1_ctx): Renamed from sha_ctx.
120809         (sha1_init_ctx): Renamed from sha_init_ctx.
120810         (sha1_process_block): Renamed from sha_process_block.
120811         (sha1_process_bytes): Renamed from sha_process_bytes.
120812         (sha1_finish_ctx): Renamed from sha_finish_ctx.
120813         (sha1_read_ctx): Renamed from sha_read_ctx.
120814         (sha1_stream): Renamed from sha_stream.
120815         (sha1_buffer): Renamed from sha_buffer.
120816         * lib/sha1.c: Likewise; renamed from sha.c.
120817         Do not include <sys/types.h>.
120818         Include <stddef.h> rather than <stdlib.h>.
120820 2004-08-08  Bruno Haible  <bruno@clisp.org>
120822         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
120823         FILESYSTEM_PREFIX_LEN.
120824         * lib/progreloc.c: Likewise.
120825         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
120827 2004-08-06  Simon Josefsson  <jas@extundo.com>
120829         * modules/progname (Depends-on): Don't depend on stdbool.
120831 2004-08-06  Simon Josefsson  <jas@extundo.com>
120833         * modules/getsubopt: New file.
120834         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
120835         getsubopt.
120837 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
120839         More merge from coreutils.
120841         * m4/utimens.m4, m4/utimecmp.m4: New files.
120842         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
120843         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
120844         prereq.m4, sha.m4: Import changes from coreutils.
120846 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
120848         More merge from coreutils.
120849         * modules/raise, modules/readtokens0, modules/utimens:
120850         * modules/utimecmp, module/xnanosleep: New files.
120851         * modules/strftime: Add lib/strftime.h.
120852         Change include from <time.h> to "strftime.h".
120853         * modules/yesno: Add lib/yesno.h.
120854         * modules/backupfile: Remove lib/addext.c.
120855         * modules/euidaccess: Add stat-macros.h.
120856         * modules/canonicalize, modules/euidaccess,
120857         modules/filemode, modules/lchown, modules/makepath,
120858         modules/rmdir, modules/stat: Likewise.
120860 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
120862         Merge from tar.
120863         * lib/argp-help.c (make_hol, hol_append): Don't assume that
120864         SIZE_MAX is a valid preprocessor constant.
120865         (__argp_basename): Change from "#ifndef _LIBC"
120866         to "#ifndef __argp_short_program_name", so that
120867         we don't compile these functions for tar.
120869         More merges from coreutils.
120870         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
120871         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
120872         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
120873         * lib/addext.c: Remove; no longer needed.
120874         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
120875         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
120876         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
120877         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
120878         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
120879         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
120880         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
120881         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
120882         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
120883         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
120884         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
120885         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
120886         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
120887         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
120888         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
120889         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
120890         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
120891         Import changes from coreutils.
120893 2004-08-05  Simon Josefsson  <jas@extundo.com>
120895         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
120897 2004-08-05  Simon Josefsson  <jas@extundo.com>
120899         * m4/getsubopt.m4: New file.
120901 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
120903         Merge from coreutils.
120905         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
120906         * m4/getcwd-path-max.m4: New files.
120908         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
120909         FILESYSTEM_PREFIX_LEN ->
120910         FILE_SYSTEM_PREFIX_LEN.
120911         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
120912         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
120913         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
120914         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
120916         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
120917         prerequisite modules now handle the DOS stuff.
120918         Don't check for unistd.h.
120920 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
120922         Merge from coreutils.
120924         * lib/.gdb-history: Remove; this doesn't belong here.
120926         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
120927         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
120928         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
120929         * lib/getcwd.c: New files.
120931         * lib/dirname.h: Include <stdbool.h>.
120932         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
120933         for consistency with POSIX terminology.  All uses changed.
120934         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
120935         (strip_trailing_slashes): Use bool for booleans.
120936         * lib/stripslash.c (strip_trailing_slashes): Likewise.
120938         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
120939         sometimes returns a positive errno value even when it succeeds.
120940         (print_errno_message) [!LIBC]: Fall back on strerror if
120941         __strerror_r fails.
120943         * lib/path-concat.c (mempcpy): Don't define if a system header defines
120944         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
120945         (longest_relative_suffix): New function.
120946         (path_concat): Use it.  Assume first argument is not NULL.
120947         Port to DOS.  Omit redundant separators.
120948         Report an error instead of returning NULL.
120949         Use mempcpy instead of memcpy.
120950         (xpath_concat): Remove: not declared or used.
120952         * lib/same.h: Include <stdbool.h>
120953         (same_name): Return bool, not int.
120954         * lib/same.c (same_name): Likewise.
120955         (errno): Don't declare; we assume C89 or better now.
120957         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
120958         if not already defined.
120960         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
120961         * lib/dup-safer.c (errno): Likewise.
120963 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
120965         Merge from coreutils.
120966         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
120967         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
120968         * modules/path-concat: Don't depend on strdup.
120970 2004-08-03  Simon Josefsson  <jas@extundo.com>
120972         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
120973         * lib/progname.h: Don't include stdbool.h.
120975 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
120977         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
120978         * MODULES.html.sh (func_all_modules): Remove fatal.
120980 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
120982         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
120984 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
120986         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
120987         working.
120989 2004-08-02  Simon Josefsson  <jas@extundo.com>
120991         * lib/getsubopt.h: New file, with comments from Bruno Haible.
120992         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
120993         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
120995 2004-08-01  Simon Josefsson  <jas@extundo.com>
120997         * lib/xgetdomainname.c: Include stdlib.h, for free().
120999 2004-07-19  Bruno Haible  <bruno@clisp.org>
121001         * MODULES.html.sh (func_all_modules): Add dummy.
121003 2004-07-16  Simon Josefsson  <jas@extundo.com>
121005         * modules/dummy: New file.
121007 2004-07-16  Simon Josefsson  <jas@extundo.com>
121009         * lib/dummy.c: New file.
121011 2004-07-16  Bruno Haible  <bruno@clisp.org>
121013         * lib/backupfile.h: Add extern "C" for C++.
121014         * lib/closeout.h: Likewise.
121015         * lib/copy-file.h: Likewise.
121016         * lib/findprog.h: Likewise.
121017         * lib/full-write.h: Likewise.
121018         * lib/pathname.h: Likewise.
121019         * lib/progname.h: Likewise.
121020         * lib/stpcpy.h: Likewise.
121021         * lib/stpncpy.h: Likewise.
121022         * lib/strcase.h: Likewise.
121023         * lib/strstr.h: Likewise.
121024         * lib/xalloc.h: Likewise.
121026         * lib/mbswidth.h: Add extern "C" for C++.
121027         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
121029 2004-07-13  Robert Millan  <robertmh@gnu.org>
121031         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
121033 2004-07-09  Simon Josefsson  <jas@extundo.com>
121035         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
121036         failed without this.)
121038 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
121040         * modules/chown (Files): Add lib/fchown-stub.c, since
121041         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
121043 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
121045         * lib/fchown-stub.c: New file.
121047 2004-06-24  Jim Meyering  <jim@meyering.net>
121049         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
121051 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
121053         * modules/argz: Omit "#include".
121055         * MODULES.html.sh (func_all_modules): Add calloc, to match
121056         2004-06-01 addition of calloc module.
121058 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
121060         * m4/argz.m4: New file, which is autoupdated from libtool.
121062 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
121064         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
121065         libtool.
121067 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
121069         * config/srclist-update: Don't insist on "USA." before the
121070         close-comment, as libtool omits the period and puts the */ on a
121071         separate line.
121072         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
121073         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
121075 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
121077         * modules/argz: New file.
121078         * MODULES.html.sh (func_all_modules): Add argz.
121080 2004-06-12  Jim Meyering  <jim@meyering.net>
121081         and  Paul Eggert  <eggert@cs.ucla.edu>
121083         * modules/hash (Files): Add lib/xalloc.h.
121084         * modules/pipe (Depends-on): Add wait-process.
121085         * modules/stat (Depends-on): Add xalloc.
121086         * modules/userspec (Files): Add lib/userspec.h.
121087         * modules/xstrto
121089         Upgrade from gettext-0.13.
121090         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
121091         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
121092         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
121094 2004-06-10  Jim Meyering  <jim@meyering.net>
121096         * lib/calloc.c: New file.
121098 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
121100         * lib/getdate.y (yylex): Allow space between sign and number.
121101         Problem reported by Dan Jacobson.
121103 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
121105         Merge from coreutils CVS.
121107         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
121108         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
121109         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
121110         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
121111         xstrtol.m4: Fix copyright date and/or serial number.
121113         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
121114         See if we need an fchown replacement.
121115         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
121116         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
121117         and use the replacement function if we detect either defect.
121119         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
121120         gl_UTIMECMP.
121122 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
121123         and  Jim Meyering  <jim@meyering.net>
121125         Merge from coreutils CVS.
121127         * lib/stat-macros.h: New file, with contents from file-type.h
121128         and coreutils' system.h.
121129         * lib/file-type.c: Include "stat-macros.h".
121130         * lib/file-type.h (file_type): Move all macro definitions to new file,
121131         stat-macros.h.
121133         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
121134         Wrap old code with this conditional.
121135         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
121136         function that does not dereference symlinks.
121137         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
121139         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
121140         dependency problems.
121141         (xreadlink): Accept new arg SIZE, for efficiency.
121142         All decls and uses changed.
121143         * lib/xreadlink.h: Include <stddef.h>, for size_t.
121145         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
121146         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
121148         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
121149         sysexits.h.
121151 2004-06-01  Jim Meyering  <jim@meyering.net>
121153         * m4/calloc.m4: New file.
121155 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
121157         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
121158         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
121159         Also, fix a typo in a diagnostic.
121161 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
121163         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
121164         or AC_FUNC_REALLOC.
121166 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
121168         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
121169         macros to be defined.
121170         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
121171         the allocator returns NULL because the requested size is zero.
121173 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
121175         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
121176         var.  Add comment explaining why libc still defines it.  This
121177         merges the following patch from glibc:
121178         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
121180 2004-05-20  Andreas Schwab  <schwab@suse.de>
121182         * m4/free.m4: Replace free if it not known to work, not the other
121183         way round.
121185 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
121187         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
121188         present in glibc since revision 1.1 of this file.
121189         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
121190         obstack_alignment_mask, obstack_alloc, obstack_base,
121191         obstack_blank, obstack_blank_fast, obstack_chunk_size,
121192         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
121193         obstack_grow0, obstack_init, obstack_int_grow,
121194         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
121195         obstack_next_free, obstack_object_size, obstack_ptr_grow,
121196         obstack_ptr_grow_fast, obstack_room): Remove declarations of
121197         nonexistent functions.
121199 2004-05-18  Karl Berry  <karl@gnu.org>
121201         * config/srclist.txt: break link for vasnprintf.c.
121203 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
121205         Port obstack to the AS/400, where pointers are 16 bytes wide and
121206         you cannot cast an integer to a valid pointer.  This patch is
121207         currently waiting to be integrated into glibc; see
121208         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
121210         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
121211         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
121212         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
121213         (struct obstack): temp member is now a union of a pointer and
121214         an integer, instead of an integer.  All integer uses changed.
121215         This does not affect the physical layout of struct obstack,
121216         except on hosts (like the AS/400) where the size or alignment of
121217         void * is greater than that of ptrdiff_t.
121218         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
121219         __STDC__)]: Store temporary in pointer member of union, not
121220         integer member.
121221         * lib/obstack.c: Include <stddef.h>, for offsetof.
121222         (struct fooalign): Remove; it doesn't need a name.
121223         (union fooround): Change double to long double, and add void *.
121224         (DEFAULT_ALIGNMENT): Use offsetof to compute.
121225         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
121226         not a macro.  Hence the values are always int; so remove all
121227         casts-to-int in uses.
121229 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
121231         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
121232         we can get this patch merged into glibc.
121234 2004-05-17  Derek R. Price  <derek@ximbiot.com>
121235             Paul Eggert  <eggert@cs.ucla.edu>
121237         * m4/argp: Depend on alloca.
121239 2004-05-17  Derek R. Price  <derek@ximbiot.com>
121240             Paul Eggert  <eggert@cs.ucla.edu>
121242         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
121243         freecoding.
121245 2004-05-17  Bruno Haible  <bruno@clisp.org>
121247         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
121248         precision that consists of a '.' followed by an empty digit string.
121249         Patch by Tor Lillqvist <tml@iki.fi>.
121251 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
121253         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
121254         for backward compatibility with older code.  We need our own
121255         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
121256         it under some other name, and our alloca.h will define it.
121258 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
121259             Derek Price  <derek@ximbiot.com>
121261         * lib/alloca.c: Include <alloca.h>, to get our interface.
121262         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
121263         include <alloca.h> first.  Use C89 prototype for alloca; this
121264         requires including <stddef.h> for size_t.  Use extern "C" if C++.
121265         Use #elif for simplicity, since we can assume C89 now.
121266         Don't try to source the system alloca.h since it will not be found
121267         and to prevent recursively including its replacement.
121268         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
121269         * lib/regex.c: Likewise.
121271 2004-05-16  Derek Price  <derek@ximbiot.com>
121272             Paul Eggert  <eggert@cs.ucla.edu>
121274         getline cleanup.  This changes the getndelim2 API: both order of
121275         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
121276         no delimiter).
121278         * lib/getline.c: Don't include stddef.h or stdio.h, since our
121279         interface does that.
121280         (getline): Always use getdelim, so that we don't have two
121281         copies of this code.
121282         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
121283         if available.
121284         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
121285         (GETNDELIM2_MAXIMUM): New macro.
121286         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
121287         instead of the old practice of delim2==0.  All callers changed.
121288         Return -1 on overflow, instead of returning junk.
121289         Do not set *linesize unless allocation succeeds.
121290         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
121291         that we include sys/types.h.
121292         * lib/getnline.h: Likewise.
121293         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
121294         (getndelim2): Reorder arguments.
121295         * lib/getnline.c (getnline, getndelim):
121296         Don't discard the NMAX argument.
121297         (getnline): Invoke getndelim, to avoid code duplication.
121298         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
121299         of (size_t) -1 by callers of the getnline family.
121301 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
121303         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
121304         Check for gettimeofday.
121305         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
121306         Check for settimeofday, stime.
121308 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
121310         * lib/nanosleep.c (suspended): Change its type from int to
121311         sig_atomic_t volatile.
121312         (first_call): Make it private to rpl_nanosleep, and have it
121313         be zero initially as that's a bit faster.
121314         (my_usleep): Round up fractional times instead of truncating them,
121315         as this is the usual meaning for 'sleep'.
121317         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
121318         doesn't work.
121319         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
121320         (ENOSYS): Define if not defined.
121321         (settime): Fall back on stime if it exists and settimeofday fails.
121322         But don't bother with fallbacks if a method fails with errno == EPERM.
121324 2004-05-11  Jim Meyering  <jim@meyering.net>
121326         Prior to this change, the save_cwd caller required read access to the
121327         current directory on most systems (ones with the fchdir function).
121329         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
121330         fails, try write-only, and finally, resort to using xgetcwd.
121332 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
121334         * lib/obstack.c, obstack.h: Import changes from libc.
121336 2004-04-28  Bruno Haible  <bruno@clisp.org>
121338         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
121339         also implicitly appends .exe to executables.
121340         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
121341         accepts Windows pathnames.
121342         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
121343         Treat Cygwin like Windows, since it now accepts Windows pathnames.
121344         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
121345         Treat Cygwin like Windows, since it now accepts Windows pathnames.
121346         Reported by Derek Robert Price <derek@ximbiot.com>.
121348 2004-04-21  Karl Berry  <karl@gnu.org>
121350         * config/srclist.txt (localcharset.c): break sync.
121352 2004-04-20  Paul Eggert  <eggert@twinsun.com>
121354         * m4/host-os.m4: Add a copyright notice.
121356 2004-04-20  Jim Meyering  <jim@meyering.net>
121358         Change UTILS_ to gl_ in AC_DEFINE'd names.
121359         Change utils_- and jm_-prefixed variables, too.
121360         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
121361         UTILS_FUNC_MKDIR_TRAILING_SLASH.
121362         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
121364         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
121365         Don't emit trailing blanks.
121366         Also rename jm_-prefixed variables to have gl_ prefix.
121368         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
121369         Also rename jm_-prefixed variables to have gl_ prefix.
121371         * m4/jm-macros.m4: Reflect the renamings.
121372         * m4/prereq.m4: Likewise.
121374 2004-04-20  Jim Meyering  <jim@meyering.net>
121376         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
121377         memory.
121379 2004-04-20  Jim Meyering  <jim@meyering.net>
121380             Bruno Haible  <bruno@clisp.org>
121382         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
121383         memory when realloc fails.
121385 2004-04-19  Jim Meyering  <jim@meyering.net>
121387         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
121388         now that readutmp.c may call `free (0)'.
121390 2004-04-19  Bruno Haible  <bruno@clisp.org>
121392         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
121393         * m4/inttypes_h.m4: Likewise.
121394         * m4/stdint_h.m4: Likewise.
121395         * m4/intmax_t.m4: Likewise.
121396         * m4/uintmax_t.m4: Likewise.
121398 2004-04-18  Jim Meyering  <jim@meyering.net>
121400         * m4/prereq.m4: Don't forbid jm_ prefix.
121402         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
121403         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
121404         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
121405         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
121406         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
121407         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
121408         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
121409         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
121410         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
121411         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
121412         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
121413         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
121414         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
121415         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
121416         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
121417         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
121418         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
121419         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
121420         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
121422 2004-04-18  Jim Meyering  <jim@meyering.net>
121424         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
121425         failure, don't leak memory and do call END_UTMP_ENT.
121427 2004-04-16  Jim Meyering  <jim@meyering.net>
121429         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
121430         coreutils' stat program.
121431         (gl_PREREQ): Don't require jm_PREREQ_STAT.
121433 2004-04-11  Paul Eggert  <eggert@twinsun.com>
121435         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
121436         C89.
121437         (CHAR_BIT): Remove, since we assume C89.
121438         Include <stdint.h> if available, as per current Autoconf CVS advice.
121440 2004-03-31  Jim Meyering  <jim@meyering.net>
121442         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
121443         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
121444         * m4/xalloc.m4: Likewise.
121446 2004-03-30  Paul Eggert  <eggert@twinsun.com>
121448         Merge from coreutils.
121450         * m4/inttostr.m4: New file.
121451         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
121452         Require AM_STDBOOL_H and gl_TIMESPEC instead.
121453         Require gl_CLOCK_TIME.
121454         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
121456 2004-03-30  Paul Eggert  <eggert@twinsun.com>
121458         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
121459         not bool, to be more consistent with Unix conventions.
121460         Suggested by Bruno Haible.
121462         Merge from coreutils.
121464         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
121465         * lib/umaxtostr.c: New files.
121467         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
121468         the usual <time.h> dance.
121469         (get_date): Change signature to support fractional time stamps.
121470         All callers changed.
121471         * lib/getdate.y: Include "getdate.h" first, as we can now
121472         assume C89 and don't need to worry about 'const'.
121473         Similarly, include "unlocked-io.h" near start, not in middle.
121474         Include <limits.h>.
121475         (textint.value): Use long int rather than int.
121476         (textint.digits): Use size_t rather than int.
121477         (BILLION, LOG10_BILLION): New constants.
121478         (parser_control): New member rel_ns.  Members day_ordinal,
121479         time_zone, month, day, hour, minutes, rel_year, rel_month,
121480         rel_day, rel_hour, rel_minutes, rel_seconds
121481         are now long int, not int.  Member seconds is now struct timespec,
121482         not int.  New member timespec_seen.  Members dates_seen, days_seen,
121483         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
121484         not int.
121485         (%union.intval): Now long int, not int.
121486         New member timespec.
121487         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
121488         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
121489         (spec): Now is a timespec or an item list.
121490         (timespec, items): New nonterminals.
121491         (time, rel, relunit, number, get_date):
121492         Add support for fractional seconds.
121493         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
121494         (gmtime, localtime, mktime): Remove decls; not needed with C89.
121495         (to_hour): First arg is now long int, not int.
121496         (to_year): Returns long int, not int.
121497         Don't treat year -70 like 70.
121498         (tm_diff): Returns long int, not int.
121499         (lookup_word): Use bool instead of int when appropriate.
121500         (yylex): Use size_t for count, not int.
121501         Detect overflow when parsing large integer constants.
121502         Add support for fractions.
121503         (get_date): Make pointers 'const' if possible.
121504         Use more-portable code to detect integer overflow.
121505         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
121506         Don't use ctime; it's not reliable if the year has >4 digits.
121508         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
121509         This is for compatibility with BSD.
121511         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
121512         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
121513         From coreutils' system.h.
121515         * lib/userspec.c: Don't include "posixver.h".
121516         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
121517         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
121518         compatible extension.  Simplify code by removing a boolean int
121519         that was always nonzero if a string was nonnull.
121521 2004-03-30  Jim Meyering  <jim@meyering.net>
121523         Merge from coreutils.
121525         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
121526         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
121527         on some systems one must include <grp.h> before it.
121528         Reported by Christian Krackowizer.
121530 2004-03-30  Jim Meyering  <jim@meyering.net>
121532         Merge from coreutils.
121534         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
121536         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
121537         an empty input stream.
121539         * lib/readtokens.c: Include <stdbool.h>.
121540         (readtoken): Use `size_t' rather than int/long.
121541         All callers adjusted.
121542         Use `bool' rather than `int' where appropriate.
121543         Use memset rather than an explicit loop.
121544         Use x2nrealloc rather than xrealloc.
121545         Allow the use of `\0' as a delimiter.
121546         (readtokens): Likewise.
121547         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
121549 2004-03-30  Jim Meyering  <jim@meyering.net>
121551         * m4/realloc.m4: Remove file, since now it does no more than
121552         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
121553         the `configure.ac' section of module/realloc.
121554         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
121556 2004-03-30  Bruno Haible  <bruno@clisp.org>
121558         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
121559         nonnull.
121561 2004-03-29  Paul Eggert  <eggert@twinsun.com>
121563         Merge changes to getloadavg.c from coreutils and Emacs.
121565         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
121566         Define to an expression, not to the empty string.
121567         Include cloexec.h and xalloc.h.
121568         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
121569         Use set_cloexec_flag rather than rolling our own.
121570         * lib/cloexec.c, lib/cloexec.h: New files.
121572 2004-03-29  Paul Eggert  <eggert@twinsun.com>
121574         * m4/cloexec.m4: New file.
121576 2004-03-18  Paul Eggert  <eggert@twinsun.com>
121578         * lib/getopt.h: Sync with libc CVS.
121580 2004-03-18  Paul Eggert  <eggert@twinsun.com>
121581             Bruno Haible  <bruno@clisp.org>
121583         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
121584         mbswidth.
121586 2004-03-18  Paul Eggert  <eggert@twinsun.com>
121587             Bruno Haible  <bruno@clisp.org>
121589         * lib/mbswidth.h: Include <wchar.h> only if
121590         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
121591         <wchar.h>.
121592         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
121594 2004-03-09  Paul Eggert  <eggert@twinsun.com>
121596         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
121597         Sync with libc CVS.
121598         * lib/getopt_int.h: New file, also synced from libc.
121600 2004-03-09  Paul Eggert  <eggert@twinsun.com>
121602         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
121603         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
121604         Bring back getopt.c, getopt.h, getopt1.c.
121606 2004-03-07  Paul Eggert  <eggert@twinsun.com>
121608         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
121609         All uses changed.  Check for sa_sigaction member; this fixes
121610         a bug first reported by Jason Andrade in
121611         <http://mail.gnu.org/r/bug-textutils/2003-03/msg00027.html>.
121613 2004-03-07  Paul Eggert  <eggert@twinsun.com>
121615         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
121616         '#if' expressions.  Unlike the code it replaces, it does not
121617         depend on (defined _SC_PAGESIZE).  However, it does depend on
121618         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
121619         first reported by Jason Andrade in
121620         <http://mail.gnu.org/r/bug-textutils/2003-03/msg00027.html>.
121622 2004-02-25  Simon Josefsson  <jas@extundo.com>
121624         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
121626 2004-02-25  Simon Josefsson  <jas@extundo.com>
121628         * lib/strdup.h: New file.
121629         * lib/strdup.c: Include it.
121630         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
121631         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
121633 2004-02-23  Karl Berry  <karl@gnu.org>
121635         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
121636         (from fencepost.gnu.org:/gd/gnuorg).
121638 2004-02-23  Karl Berry  <karl@gnu.org>
121640         * config/srclistvars.sh (GNUORG) [karl]: redefine.
121641         * config/srclist.txt: add maintain/standards documents.
121643 2004-02-18  Bruno Haible  <bruno@clisp.org>
121645         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
121646         Reported by Derek Robert Price <derek@ximbiot.com>.
121648 2004-02-16  Karl Berry  <karl@gnu.org>
121650         * config/mkinstalldirs, install-sh: update from automake.
121652 2004-02-06  Karl Berry  <karl@gnu.org>
121654         * m4/po.m4: update from gettext 0.14.1.
121656 2004-02-06  Karl Berry  <karl@gnu.org>
121658         * lib/config.charset: update from gettext 0.14.1.
121660 2004-02-05  Paul Eggert  <eggert@twinsun.com>
121662         Add comments and code, prompted by suggestions from Bruno Haible
121663         for sh-quote.
121664         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
121665         describing the enum quoting_style values.
121666         * lib/quotearg.c (quotearg_alloc): New function.
121667         (quotearg_buffer_restyled): Treat lone { and } as special.
121668         Treat = as special.  Work around bug with older shells
121669         that "see" a '\' that is really the 2nd byte of a multibyte char.
121670         Quote empty string with shell_quoting_style.
121672 2004-02-03  Bruno Haible  <bruno@clisp.org>
121674         * m4/pipe.m4: New file, from GNU gettext.
121676 2004-02-03  Bruno Haible  <bruno@clisp.org>
121678         * lib/pipe.h: New file, from GNU gettext.
121679         * lib/pipe.c: New file, from GNU gettext.
121681 2004-01-27  Bruno Haible  <bruno@clisp.org>
121683         * m4/execute.m4: New file, from GNU gettext.
121685 2004-01-27  Bruno Haible  <bruno@clisp.org>
121687         * lib/execute.h: New file, from GNU gettext.
121688         * lib/execute.c: New file, from GNU gettext.
121689         * lib/w32spawn.h: New file, from GNU gettext.
121691 2004-01-24  Paul Eggert  <eggert@twinsun.com>
121693         Merge from diffutils.
121695         * lib/file-type.c (file_type): Add typed memory objects.
121696         * lib/file-type.h (S_TYPEISTMO): New macro.
121698         * lib/c-stack.h (c_stack_action): Remove argv argument.
121699         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
121700         (die): Don't calculate message unless segv_action returns.
121701         (get_stack_location, min_address_from_argv, max_address_from_argv,
121702         volatile stack_base, volatile_stack_size): Remove.
121703         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
121704         that every segmentation violation is a stack overflow.  (Ouch!)
121705         See Debian bug 136249 (still outstanding) for more info about why
121706         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
121708 2004-01-24  Paul Eggert  <eggert@twinsun.com>
121710         Exit-status fix from coreutils.
121712         Use exit_failure consistently in place of EXIT_FAILURE,
121713         so that program exit statuses are consistent on failure.
121715         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
121716         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
121717         * lib/argmatch.h: Comment fix to match the above.
121718         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
121719         Now a macro referring to exit_failure, instead of a separate
121720         variable.  Include "exitfail.h" to get it.
121721         * lib/xstrtol.h: Include "exitfail.h".
121722         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
121724         * lib/long-options.c (parse_long_options): Use prototype
121725         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
121726         for clarity.
121728 2004-01-21  Jim Meyering  <jim@meyering.net>
121730         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
121731         so as not to conflict with a different-sized __mktime_internal
121732         function in GNU libc.
121733         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
121734         Problem building statically-linked `ls' reported by Michael Brunnbauer.
121736 2004-01-20  Karl Berry  <karl@gnu.org>
121738         * config/config.guess: update from config.
121740         * config/srclistvars.sh: GNUWWWLICENSES for karl.
121742 2004-01-20  Bruno Haible  <bruno@clisp.org>
121744         Safer stack allocation.
121745         * lib/setenv.c: Include allocsa.h.
121746         (alloca): Remove fallback definition.
121747         (freea): Remove macro.
121748         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
121749         instead of freea.
121751 2004-01-20  Bruno Haible  <bruno@clisp.org>
121753         * m4/eealloc.m4: New file, from GNU gettext.
121755 2004-01-20  Bruno Haible  <bruno@clisp.org>
121757         * m4/allocsa.m4: New file, from GNU gettext.
121759 2004-01-20  Bruno Haible  <bruno@clisp.org>
121761         * lib/xallocsa.h: New file, from GNU gettext.
121762         * lib/xallocsa.c: New file, from GNU gettext.
121764 2004-01-20  Bruno Haible  <bruno@clisp.org>
121766         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
121768 2004-01-20  Bruno Haible  <bruno@clisp.org>
121770         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
121771         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
121772         specially.
121774 2004-01-20  Bruno Haible  <bruno@clisp.org>
121776         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
121777         patch.
121779 2004-01-20  Bruno Haible  <bruno@clisp.org>
121781         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
121783 2004-01-20  Bruno Haible  <bruno@clisp.org>
121785         * lib/eealloc.h: New file.
121787 2004-01-20  Bruno Haible  <bruno@clisp.org>
121789         * lib/binary-io.h: Avoid warnings on Cygwin.
121791 2004-01-20  Bruno Haible  <bruno@clisp.org>
121793         * lib/allocsa.h: New file, from GNU gettext.
121794         * lib/allocsa.c: New file, from GNU gettext.
121796 2004-01-18  Karl Berry  <karl@gnu.org>
121798         * doc/gpl.texi, doc/lgpl.texi: new files.
121800 2004-01-18  Karl Berry  <karl@gnu.org>
121802         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
121803         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
121805 2004-01-15  Paul Eggert  <eggert@twinsun.com>
121807         Merge from coreutils.
121809         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
121810         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
121811         (gl_DEFAULT_POSIX2_VERSION): Move
121812         the documentation from 'configure' into 'config.hin',
121813         so that 'configure --help' isn't burdened by it and
121814         we don't have to worry about its formatting there.
121815         Reword the documentation so that it's more succinct
121816         and can be run together into a single paragraph.
121817         * m4/same.m4 (gl_SAME): Check for pathconf.
121819 2004-01-15  Paul Eggert  <eggert@twinsun.com>
121821         Merge from coreutils.
121823         * lib/posixver.c: Include posixver.h.
121825         * lib/same.c: Include <stdbool.h>, <limits.h>.
121826         (_POSIX_NAME_MAX): Define if not defined.
121827         (MIN): New macro.
121828         (same_name): If file names are silently truncated, report
121829         that the file names are the same if they are the same after
121830         the silent truncation.
121832         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
121833         conversion function.
121834         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
121835         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
121836         longer needed.
121838 2004-01-15  Jim Meyering  <jim@meyering.net>
121840         Merge from coreutils.
121842         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
121843         if no library is required.
121844         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
121845         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
121846         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
121847         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
121848         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
121849         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
121850         value, $ac_cv_search_crypt, if it's "none required".
121851         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
121852         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
121853         not gl_FUNC_GETLOADAVG.
121854         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
121855         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
121857 2004-01-15  Jim Meyering  <jim@meyering.net>
121859         Merge from coreutils.
121861         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
121862         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
121863         http://mail.gnu.org/r/bug-coreutils/2003-11/msg00144.html
121865         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
121866         optional configure-time default.
121868         * lib/version-etc.c (version_etc_copyright): Update copyright date.
121870         * lib/xreadlink.c (xreadlink): Correct outdated comment.
121872 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
121874         Merge from coreutils.
121876         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
121877         value, $ac_cv_search_nanosleep, if it's "none required".
121879 2004-01-14  Paul Eggert  <eggert@twinsun.com>
121881         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
121882         with like-named macro in fnmatch.c.
121883         (EXT): Use an internal constant instead.
121885         Merge fnmatch patches from glibc.
121886         * lib/fnmatch.c (mbsinit): Remove define.
121887         Add libc_hidden_ver (__fnmatch, fnmatch).
121888         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
121889         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
121891 2004-01-14  Karl Berry  <karl@gnu.org>
121893         * config/install-sh: update from automake.
121895 2004-01-13  Karl Berry  <karl@gnu.org>
121897         * config/install-sh: update from automake.
121899 2004-01-09  Karl Berry  <karl@gnu.org>
121901         * config/install-sh: update from automake.
121903 2004-01-05  Karl Berry  <karl@gnu.org>
121905         * config/config.{sub,guess}: update from config.
121907 2003-12-31  Karl Berry  <karl@gnu.org>
121909         * config/depcomp: update from automake.
121911 2003-12-14  Karl Berry  <karl@gnu.org>
121913         * lib/config.charset: update from gettext-runtime.
121915 2003-12-03  Paul Eggert  <eggert@twinsun.com>
121917         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
121918         Bug reported by Alfred M. Szmidt.
121920 2003-12-03  Bruno Haible  <bruno@clisp.org>
121922         * m4/gettext.m4: Upgrade from gettext-0.13.
121923         * m4/po.m4: Upgrade from gettext-0.13.
121924         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
121925         * m4/intmax.m4: New file, from gettext-0.13.
121926         * m4/printf-posix.m4: New file, from gettext-0.13.
121928 2003-11-29  Karl Berry  <karl@gnu.org>
121930         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
121932 2003-11-25  Paul Eggert  <eggert@twinsun.com>
121933             Bruno Haible  <bruno@clisp.org>
121935         * lib/printf-parse.h: Don't include sys/types.h.
121936         (ARG_NONE): New macro.
121937         (char_directive): Change type of *arg_index fields to size_t.
121938         * lib/printf-parse.c: Don't include sys/types.h.
121939         (SSIZE_MAX): Remove macro.
121940         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
121941         Remove unnecessary overflow check.
121942         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
121943         fields.
121945 2003-11-25  Bruno Haible  <bruno@clisp.org>
121947         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
121949 2003-11-25  Bruno Haible  <bruno@clisp.org>
121951         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
121952         gt_TYPE_SSIZE_T.
121954 2003-11-24  Paul Eggert  <eggert@twinsun.com>
121956         * modules/alloca: Remove dependency on xalloc.
121958 2003-11-24  Paul Eggert  <eggert@twinsun.com>
121960         * lib/alloca.c: Remove dependency on xalloc module.
121961         (xalloc_die): Remove.
121962         (memory_full) [!defined emacs]: New macro.
121963         [!defined emacs]: Don't include xalloc.h.
121964         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
121965         address arithmetic overflows.  Change datatypes a bit to avoid
121966         unnecessary casts.
121968 2003-11-22  Jim Meyering  <jim@meyering.net>
121970         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
121971         s/size/size_t/.
121973 2003-11-21  Karl Berry  <karl@gnu.org>
121975         * config/config.{sub,guess}: update from config.
121977 2003-11-18  Karl Berry  <karl@gnu.org>
121979         * config/config.{sub,guess}: update from config.
121981         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
121983 2003-11-17  Paul Eggert  <eggert@twinsun.com>
121985         * README: Mention that S+T cannot overflow if S is the size of
121986         an existing object and T is sufficiently small.
121988 2003-11-17  Jim Meyering  <jim@meyering.net>
121990         On systems without utime and without a utimes function capable of
121991         dealing with a NULL struct utimbuf* argument, this utime replacement
121992         could -- in unusual circumstances -- leak a file descriptor.
121993         * lib/utime.c: Include <unistd.h> and <errno.h>.
121994         (utime_null): Be sure to close `fd' and to preserve errno.
121995         Reported by Geoff Collyer via Arnold Robbins.
121997 2003-11-17  Bruno Haible  <bruno@clisp.org>
121999         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
122000         (Depends-on): Add xsize.
122002 2003-11-17  Bruno Haible  <bruno@clisp.org>
122004         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
122006 2003-11-17  Bruno Haible  <bruno@clisp.org>
122008         * lib/vasnprintf.c (alloca): Remove fallback definition.
122009         (freea): Remove definition.
122010         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
122011         Reported by Paul Eggert.
122013 2003-11-16  Paul Eggert  <eggert@twinsun.com>
122014             Bruno Haible  <bruno@clisp.org>
122016         Protect against address arithmetic overflow.
122017         * lib/printf-args.h: Include stddef.h.
122018         (arguments): Change type of field 'count' to size_t.
122019         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
122020         'unsigned int' where appropriate.
122021         * lib/printf-parse.h: Include sys/types.h.
122022         (char_directive): Change type of *arg_index fields to ssize_t.
122023         (char_directives): Change type of fields 'count', max_*_length to
122024         size_t.
122025         * lib/printf-parse.c: Include sys/types.h and xsize.h.
122026         (SSIZE_MAX): Define fallback value.
122027         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
122028         instead of 'int' where appropriate. Check a_allocated, d_allocated
122029         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
122030         * lib/vasnprintf.c: Include xsize.h.
122031         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
122032         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
122033         overflow. Avoid wraparound when converting a width or precision from
122034         decimal to binary.
122036 2003-11-16  Bruno Haible  <bruno@clisp.org>
122038         Update from GNU gettext.
122039         * lib/printf-parse.c: Generalize to it can be compiled for wide
122040         strings.
122041         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
122042         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
122043         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
122044         SNPRINTF): New macros.
122045         Don't include <alloca.h> if the file is used inside libintl.
122046         (local_wcslen): New function, for Solaris 2.5.1.
122047         (VASNPRINTF): Use it instead of wcslen.
122049 2003-11-16  Bruno Haible  <bruno@clisp.org>
122051         * lib/xsize.h (xmax): New function.
122052         (xsum, xsum3, xsum4): Declare as "pure" functions.
122054 2003-11-12  Paul Eggert  <eggert@twinsun.com>
122056         * modules/xalloc (Files): Undo latest change, since xalloc.h
122057         no longer needs SIZE_MAX or PTRDIFF_MAX.
122059 2003-11-12  Paul Eggert  <eggert@twinsun.com>
122061         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
122062         gl_PTRDIFF_MAX.
122064 2003-11-12  Paul Eggert  <eggert@twinsun.com>
122066         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
122067         "return", to pacify some unknown compiler.  Problem reported
122068         by Joerg Schilling.
122070 2003-11-12  Paul Eggert  <eggert@twinsun.com>
122072         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
122073         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
122074         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
122075         heuristic is just as accurate as far as we know, and it removes a
122076         dependency on size_max.m4 and ptrdiff_max.m4.
122078 2003-11-11  Bruno Haible  <bruno@clisp.org>
122080         * modules/xsize (Files): Add m4/size_max.m4.
122081         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
122083 2003-11-11  Bruno Haible  <bruno@clisp.org>
122085         * m4/size_max.m4: New file.
122086         * m4/ptrdiff_max.m4: New file.
122087         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
122088         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
122089         (gl_XALLOC): Invoke it.
122091 2003-11-11  Bruno Haible  <bruno@clisp.org>
122093         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
122094         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
122095         defined.
122097 2003-11-10  Paul Eggert  <eggert@twinsun.com>
122099         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
122100         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
122101         rejected some allocations of exactly SIZE_MAX - 2 bytes.
122102         From Bruno Haible.
122103         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
122104         not (size_t) -1, since it's defined here.
122106 2003-11-09  Karl Berry  <karl@gnu.org>
122108         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
122110 2003-11-06  Paul Eggert  <eggert@twinsun.com>
122112         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
122113         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
122114         Reject sizes of exactly SIZE_MAX bytes.
122115         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
122116         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
122118 2003-11-05  Bruno Haible  <bruno@clisp.org>
122120         * lib/xsize.h: Include limits.h, to avoid a possible collision with
122121         SIZE_MAX defined in <limits.h> on Solaris.
122123 2003-11-04  Jim Meyering  <jim@meyering.net>
122125         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
122126         variable names, rather than @VAR@.
122127         * modules/poll: Likewise.
122129 2003-11-04  Bruno Haible  <bruno@clisp.org>
122131         * modules/xsize: New file.
122132         * modules/linebreak: Depend on xsize.
122133         * MODULES.html.sh (func_all_modules): Add xsize.
122135 2003-11-04  Bruno Haible  <bruno@clisp.org>
122137         * m4/xsize.m4: New file.
122139 2003-11-04  Bruno Haible  <bruno@clisp.org>
122141         * lib/xsize.h: New file.
122142         * lib/linebreak.c: Include xsize.h.
122143         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
122144         argument for overflow.
122145         Suggested by Paul Eggert.
122147 2003-11-03  Karl Berry  <karl@gnu.org>
122149         * config/config.{guess,sub}: update from config.
122151 2003-11-03  Jim Meyering  <jim@meyering.net>
122153         * modules/userspec (lib_SOURCES): Add userspec.h.
122154         (Include): Add "userspec.h".
122155         Improve description.
122157 2003-11-03  Jim Meyering  <jim@meyering.net>
122159         * lib/userspec.c: Include "userspec.h".
122160         * lib/userspec.h: New file.
122162 2003-11-03  Bruno Haible  <bruno@clisp.org>
122164         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
122166 2003-11-03  Bruno Haible  <bruno@clisp.org>
122168         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
122169         available, to avoid (extremely rare) race condition.
122170         Suggested by Paul Eggert.
122172 2003-11-02  Karl Berry  <karl@gnu.org>
122174         * config/srclist.txt (vasprintf.c): sync broken, sigh.
122176 2003-10-31  Paul Eggert  <eggert@twinsun.com>
122178         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
122179         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
122180         (read_filesystem_list): Set and use me_type_malloced.
122181         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
122182         whatever the type happens to be), for brevity and consistency.
122183         Check for size calculation overflow on Alphas running OSF/1.
122185 2003-10-31  Jim Meyering  <jim@meyering.net>
122187         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
122189         * lib/linebuffer.c: Include <string.h> for declaration of memset.
122191 2003-10-30  Paul Eggert  <eggert@twinsun.com>
122192             Bruno Haible  <bruno@clisp.org>
122194         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
122195         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
122197 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
122199         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
122200         netbsd*-gnu*.  Suggested by Robert Millan.
122202 2003-10-29  Paul Eggert  <eggert@twinsun.com>
122204         * modules/group-member: Depend on stdbool.
122206 2003-10-29  Paul Eggert  <eggert@twinsun.com>
122208         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
122210 2003-10-29  Paul Eggert  <eggert@twinsun.com>
122212         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
122213         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
122214         after the 'gnu' in these cases.  This fixes some bugs in the
122215         previous change, and is based on suggestions by Robert Millan.
122217 2003-10-29  Paul Eggert  <eggert@twinsun.com>
122219         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
122220         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
122221         no longer needed.
122222         * lib/quotearg.c (quotearg_n_options): Use it.
122223         * lib/group-member.c: Include <stdbool.h>.
122224         (free_group_info): Arg is now const *; don't free arg.
122225         (get_group_info): Now returns bool and accepts struct group_info *,
122226         rather than returning a malloc'ed struct group_info *.
122227         All uses changed.  Check for overflow in internal size calculation.
122229         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
122230         rather than xmalloc/xrealloc.
122231         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
122232         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
122233         conformance bug: the old code used a pointer after freeing the
122234         storage that it addressed.
122235         * lib/hash.c (hash_initialize): Simplify the code by using
122236         xalloc_oversized rather than doing it by hand.
122237         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
122238         the buffer preserved.  Use free and xmalloc instead.
122239         * lib/quotearg.c (quotearg_n_options): Likewise.
122240         Use a simpler test for size overflow.  Don't use xalloc_oversized
122241         because unsigned int might be wider than size_t (!); this suggests
122242         that we should switch from unsigned int to size_t for slot numbers.
122244 2003-10-28  Paul Eggert  <eggert@twinsun.com>
122246         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
122247         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
122248         NetBSD kernels.  Requested by Richard Stallman.
122250 2003-10-27  Paul Eggert  <eggert@twinsun.com>
122252         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
122253         to allocate the returned structure.  Do not allocate a subarray,
122254         as x2nrealloc will do that.
122255         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
122256         instead of xnrealloc.
122257         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
122259 2003-10-27  Bruno Haible  <bruno@clisp.org>
122261         * lib/stdbool_.h: Better support for BeOS.
122263 2003-10-26  Paul Eggert  <eggert@twinsun.com>
122265         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
122266         now uses inline.
122268 2003-10-26  Paul Eggert  <eggert@twinsun.com>
122270         * lib/xalloc.h (xalloc_oversized): New static inline function, for
122271         callers that want to do their own size-overflow checking.  Include
122272         <stdbool.h>, since xalloc_oversized returns bool.
122273         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
122274         to use xalloc_oversized.
122276         Add two functions x2realloc, x2nrealloc, for programs that grow
122277         arrays dynamically by doubling their sizes.
122278         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
122279         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
122280         New functions.
122282         Port to C99 semantics for 'inline' of external functions.
122283         Bug reported by Bruno Haible.
122284         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
122285         with the old contents of xnmalloc.
122286         (xnmalloc, xmalloc): Use it.
122287         (xnrealloc_inline): New static inline function,
122288         with the old contents of xnrealloc.
122289         (xnrealloc, xrealloc): Use it.
122291         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
122292         that.
122294 2003-10-26  Karl Berry  <karl@gnu.org>
122296         * config/srclist.txt (COPYING.DOC): no longer available from
122297         /gd/gnuorg; don't know where the ultimate source is.
122299 2003-10-25  Paul Eggert  <eggert@twinsun.com>
122301         Fix several address-calculation bugs in the hash modules,
122302         plus some minor code cleanup.
122304         * lib/hash.h: Include <stdbool.h>, for bool.
122305         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
122306         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
122307         hash_get_n_entries, hash_get_max_bucket_length,
122308         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
122309         hash_rehash): Use size_t rather than unsigned.
122310         * lib/hash.c (struct hash_table, hash_get_n_buckets,
122311         hash_get_n_buckets_used, hash_get_n_entries,
122312         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
122313         hash_get_entries, hash_do_for_each, hash_string, is_prime,
122314         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
122315         Likewise.
122316         (SIZE_MAX): Define if not defined.
122317         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
122318         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
122319         hash_print):
122320         Use const * when possible.
122321         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
122322         (check_tuning): Fix bug: if tuning parameters were very close to
122323         0 or 1, rounding errors could have caused subscript violations.
122324         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
122325         (hash_initialize): Add 'fail:' label
122326         to free table and return NULL, and use it to simplify code.
122327         Use calloc rather than clearing the storage ourself.
122328         (hash_initialize, hash_rehash): Check for arithmetic overflow in
122329         buffer size calculations.
122330         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
122331         Include <stddef.h>, for size_t.
122332         * lib/hash-pjw.c (hash_pjw): Likewise.
122333         Switch to method described by Bruno Haible.
122334         Include <limits.h>, for CHAR_BIT.
122335         (SIZE_BITS): New macro.
122337 2003-10-23  Paul Eggert  <eggert@twinsun.com>
122339         * m4/getline.m4 (AM_FUNC_GETLINE):
122340         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
122341         hosts.  Problem reported by Derek Robert Price in
122342         <http://mail.gnu.org/r/bug-gnulib/2003-10/msg00092.html>.
122343         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
122344         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
122346 2003-10-21  Paul Eggert  <eggert@twinsun.com>
122348         * lib/getndelim2.c (getndelim2): When size calculation overflows,
122349         ceiling the allocation at NMAX bytes rather than silently
122350         discarding input bytes before NMAX is reached.  This makes
122351         a difference only if NMAX exceeds SIZE_MAX / 2.
122353         * lib/obstack.c: Merge from glibc.
122354         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
122355         Add libc_hidden_def (_obstack_newchunk).
122356         (_obstack_free) [! defined _LIBC]: Remove.
122357         [defined _LIBC]: Make a strong alias from obstack_free, rather than
122358         a clone of the function body.
122359         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
122360         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
122362         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
122363         glibc.
122364         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
122365         arg to memcpy.
122367         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
122368         (obstack_ptr_grow_fast, obstack_int_grow_fast):
122369         Don't use lvalue casts, as GCC plans to remove support for them
122370         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
122371         was also present in the non-GCC version, indicating that this
122372         code had always been buggy and had never been widely used.
122373         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
122374         Use the fast variant of each macro, rather than copying the
122375         definiens of the fast variant; that way, we'll be more likely to
122376         catch future bugs in the fast variants.
122378 2003-10-20  Bruno Haible  <bruno@clisp.org>
122380         * modules/wait-process: New file.
122381         * MODULES.html.sh (func_all_modules): Add wait-process.
122383 2003-10-20  Bruno Haible  <bruno@clisp.org>
122385         * m4/wait-process.m4: New file.
122387 2003-10-20  Bruno Haible  <bruno@clisp.org>
122389         * lib/wait-process.h: New file, from GNU gettext.
122390         * lib/wait-process.c: New file, from GNU gettext.
122392 2003-10-19  Jim Meyering  <jim@meyering.net>
122394         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
122395         HPUX 10.20.
122397 2003-10-18  Karl Berry  <karl@gnu.org>
122399         * config/config.guess: update from config.
122401 2003-10-16  Paul Eggert  <eggert@twinsun.com>
122403         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
122404         (getgroups): First arg is int, not size_t.
122405         Don't let 'free' mangle errno.
122407 2003-10-16  Paul Eggert  <eggert@twinsun.com>
122409         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
122411 2003-10-16  Karl Berry  <karl@gnu.org>
122413         * config/config.{guess,sub}: update from config.
122415 2003-10-16  Jim Meyering  <jim@meyering.net>
122417         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
122418         memcpy.
122420 2003-10-15  Paul Eggert  <eggert@twinsun.com>
122422         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
122423         (SIZE_MAX): Remove.
122424         (new_exclude, add_exclude_file): Initial size no longer needs to
122425         be a power of 2.
122426         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
122427         our own address arithmetic overflow checking.
122429         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
122430         (fnmatch): Do not alloca more than 2000 wide characters;
122431         instead, use malloc for large buffers.
122432         Check for address arithmetic overflow, and return -1
122433         with errno set to ENOMEM in that case.
122434         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
122435         (NEW_PATTERN): Do not alloca more than 8000 bytes;
122436         instead, return -1.  Check for address arithmetic overflow.
122438 2003-10-14  Paul Eggert  <eggert@twinsun.com>
122440         Handle invalid suffixes and overflow independently, so that
122441         callers can treat them independently as needed.  Fix some bugs in
122442         suffix handling, e.g., "100k@" was not diagnosed as an invalid
122443         suffix for a human-readable blocksize.  The major caller-visible
122444         change is the addition of a new
122445         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
122446         that both overflow and suffix chars were found.
122448         * lib/human.c (humblock): Don't check separately for invalid suffix
122449         char; that is xstrtoumax's job (now that its bug is fixed).
122450         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
122451         INTMAX_MAX]: New macros.
122452         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
122453         TYPE_MAXIMUM): New macros.
122454         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
122455         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
122456         if overflow occurs, as it's what __strtol does and it's more useful
122457         in practice.
122458         (__xstrtol): If __strtol reports some error other than ERANGE,
122459         reflect it to the caller as LONGINT_INVALID.  If it reports
122460         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
122461         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
122462         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
122463         value.
122464         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
122465         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
122466         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
122467         [defined UINTMAX_MAX]: New macros.
122469 2003-10-14  Bruno Haible  <bruno@clisp.org>
122471         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
122473 2003-10-14  Bruno Haible  <bruno@clisp.org>
122475         * m4/sig_atomic_t: New file, from GNU gettext.
122476         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
122478 2003-10-14  Bruno Haible  <bruno@clisp.org>
122480         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
122481         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
122482         Also use volatile where needed.
122484 2003-10-12  Paul Eggert  <eggert@twinsun.com>
122486         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
122487         Change maintainer from Bruno Haible to 'all'.
122489 2003-10-12  Paul Eggert  <eggert@twinsun.com>
122491         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
122493 2003-10-12  Paul Eggert  <eggert@twinsun.com>
122495         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
122496         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
122497         and define in terms of the other primitives.
122498         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
122499         (SIZE_MAX): Define if not already defined.
122500         (array_size_overflow): New function.
122501         (xalloc_die): Abort instead of exiting if 'error' returns.
122502         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
122503         (xmalloc, xrealloc): Use them.
122504         (xcalloc): Check for address arithmetic overflow.
122505         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
122506         a bit faster than strcpy.
122508 2003-10-10  Simon Josefsson  <jas@extundo.com>
122510         * modules/argp (Depends-on): Add restrict and strcase.
122512 2003-10-10  Simon Josefsson  <jas@extundo.com>
122514         * m4/argp.m4: Add AC_C_INLINE.
122516 2003-10-08  Paul Eggert  <eggert@twinsun.com>
122518         Merge getpass from libc, plus a few fixes.
122520         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
122521         Include <stdbool.h>.
122522         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
122523         __fsetlocking to empty.
122524         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
122525         do include <bits/libc-lock.h>.
122526         Do not include <fcntl.h>; not needed.
122527         [_LIBC]: Include <wchar.h>.
122528         (NOTCANCEL_MODE): New macro.
122529         (flockfile, funlockfile) [_LIBC]: New macros.
122530         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
122531         [!_LIBC]: New macros.
122532         (call_fclose): New function.
122533         (getpass): Use it.  Save tty stream separately; this simplifies the
122534         code and makes it more reliable if stdin happens to equal stdout.
122535         Invoke __fsetlocking on tty.
122536         Handle thread cancellation if needed.
122537         Namespace cleanup (use __tcgetattr, __getline).
122538         Use bool for Booleans.
122539         [USE_IN_LIBIO]: Handle wide streams.
122540         [!_LIBC]: Unconditionally do the fseek, since we don't know what
122541         stream might go where.
122543         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
122544         doesn't have to include <stdio.h> before us.
122545         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
122546         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
122547         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
122548         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
122549         if not declared, so that we can use getpass.c code from libc without
122550         rewriting it.
122551         (flockfile, ftrylockfile, funlockfile): New macros.
122553 2003-10-08  Paul Eggert  <eggert@twinsun.com>
122555         * modules/getpass: Depend on stdbool.
122557 2003-10-08  Paul Eggert  <eggert@twinsun.com>
122559         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
122561 2003-10-07  Karl Berry  <karl@gnu.org>
122563         * config/config.{guess,sub}: update from config.
122565 2003-10-06  Jim Meyering  <jim@meyering.net>
122566             Bruno Haible  <bruno@clisp.org>
122568         This lets translators provide better translations for the
122569         "Written by ..." part of --version output.
122570         * lib/version-etc.h: Include stdarg.h.
122571         (version_etc_copyright): Declare as readonly.
122572         (version_etc): Make this function variadic with a NULL-terminated list
122573         of author name strings.
122574         (version_etc_va): New declaration.
122575         * lib/version-etc.c: Include stdarg.h, stdlib.h.
122576         (version_etc_copyright): Declare as readonly.
122577         (version_etc_va): New function. Provide a different translatable string
122578         for each possible number of authors < 10. Abbreviate when there are 10
122579         authors or more.
122580         (version_etc): Make this function variadic. Call version_etc_va.
122581         Suggestion from Gary V. Vaughan.
122583         * lib/long-options.h (parse_long_options): Change prototype: the
122584         authors string is moved to the end and becomes variadic.
122585         * lib/long-options.c: Include stdarg.h.
122586         (parse_long_options): Make this function variadic, too.
122587         Call version_etc_va, not version_etc.
122589 2003-10-06  Bruno Haible  <bruno@clisp.org>
122591         * modules/version-etc-2: Remove file.
122592         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
122594 2003-10-06  Bruno Haible  <bruno@clisp.org>
122596         * modules/fatal-signal: New file.
122597         * MODULES.html.sh (func_all_modules): Add fatal-signal.
122599 2003-10-06  Bruno Haible  <bruno@clisp.org>
122601         * m4/fatal-signal.m4: New file.
122602         * m4/signalblocking.m4: New file, from GNU gettext.
122604 2003-10-06  Bruno Haible  <bruno@clisp.org>
122606         * lib/version-etc-2.h: Remove file.
122607         * lib/version-etc-2.c: Remove file.
122609 2003-10-06  Bruno Haible  <bruno@clisp.org>
122611         * lib/fatal-signal.h: New file, from GNU gettext.
122612         * lib/fatal-signal.c: New file, from GNU gettext.
122614 2003-10-05  Paul Eggert  <eggert@twinsun.com>
122616         * README: Rework advice for preventing empty .o files.
122617         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
122618         not <sys/types.h>.
122620 2003-10-04  Karl Berry  <karl@gnu.org>
122622         * lib/argp*: update from libc.
122624 2003-10-04  Karl Berry  <karl@gnu.org>
122626         * config/config.{guess,sub}: update from config.
122628 2003-10-02  Bruno Haible  <bruno@clisp.org>
122630         * modules/lchown (Include): Add lchown.h.
122631         * modules/time_r (Include): Use "..." syntax.
122632         * modules/xgetdomainname (Include): Add xgetdomainname.h.
122634 2003-10-01  Simon Josefsson  <jas@extundo.com>
122636         * MODULES.html.sh (func_all_modules): Move gethostname from section
122637         'based on' to section 'lacking' POSIX:2001.
122639 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
122641         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
122642         to output mode on the same stream.
122644 2003-09-29  Paul Eggert  <eggert@twinsun.com>
122646         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
122647         Fix arg typo in previous patch.
122649 2003-09-28  Jim Meyering  <jim@meyering.net>
122651         * lib/error.c: Correct cpp indentation.
122653 2003-09-27  Paul Eggert  <eggert@twinsun.com>
122655         * modules/free: New file.
122657 2003-09-27  Paul Eggert  <eggert@twinsun.com>
122659         * m4/free.m4: New file.
122661 2003-09-27  Paul Eggert  <eggert@twinsun.com>
122663         * lib/minmax.h (MIN, MAX)
122664         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
122665         Omit the special code that used __typeof__, since we worry that
122666         it could be more trouble than it's worth.  See:
122667         http://mail.gnu.org/r/bug-gnulib/2003-01/msg00090.html
122668         http://mail.gnu.org/r/bug-gnulib/2003-01/msg00095.html
122670         * lib/free.c: New file.
122672 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
122674         Trivial fixes to Makefile.am parts of module listings.
122675         * modules/strstr: Append strstr.h to lib_SOURCES.
122676         * modules/strcase: Likewise, for strcase.h.
122678 2003-09-27  Karl Berry  <karl@gnu.org>
122680         * config/mkinstalldirs: update from automake.
122682 2003-09-26  Paul Eggert  <eggert@twinsun.com>
122684         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
122685         (error_tail): Do not loop, reallocating temporary buffer, since
122686         the output cannot contain more wide characters than the input
122687         contains bytes, the size must be big enough already.  This avoids
122688         one potential size overflow calculation.  Check for size overflow
122689         when calculating temporary buffer size.  Free temporary buffer
122690         when done, if it was allocated with malloc; this plugs a memory
122691         leak.  Remove casts from void * to pointers, that are no longer
122692         needed now that we're assuming C89 or better.
122694         Merge error changes from glibc.
122696         * lib/error.c, error.h: Update copyright notice header to match glibc.
122697         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
122698         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
122699         Disable cancellation while printing error.
122700         * lib/error.h: Prepend __ to parameter names.
122702 2003-09-26  Jim Meyering  <jim@meyering.net>
122704         * lib/error.c (error_tail): Move some declarations
122705         into inner scope where the local variables are used.
122707 2003-09-26  Bruno Haible  <bruno@clisp.org>
122709         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
122710         stpncpy().
122711         Don't define stpncpy through config.h; it's now done through stpncpy.h.
122713 2003-09-26  Bruno Haible  <bruno@clisp.org>
122715         * lib/stpncpy.h (gnu_stpncpy): New declaration.
122716         (stpncpy): Define as alias for gnu_stpncpy.
122717         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
122719 2003-09-25  Simon Josefsson  <jas@extundo.com>
122721         * lib/xgetdomainname.h: New file.
122722         * lib/xgetdomainname.c: New file.
122724 2003-09-25  Simon Josefsson  <jas@extundo.com>
122725             Bruno Haible  <bruno@clisp.org>
122727         * modules/getdomainname: New file.
122728         * modules/xgetdomainname: New file.
122729         * MODULES.html.sh (func_all_modules): Add getdomainname,
122730         xgetdomainname.
122732 2003-09-25  Simon Josefsson  <jas@extundo.com>
122733             Bruno Haible  <bruno@clisp.org>
122735         * m4/getdomainname.m4: New file.
122737 2003-09-25  Simon Josefsson  <jas@extundo.com>
122738             Bruno Haible  <bruno@clisp.org>
122740         * lib/getdomainname.h: New file.
122741         * lib/getdomainname.c: New file.
122743 2003-09-25  Karl Berry  <karl@gnu.org>
122745         * lib/argp-fmtstream.c, argp-help.c: update from libc.
122747 2003-09-25  Karl Berry  <karl@gnu.org>
122749         * config/install-sh: update from automake.
122751 2003-09-25  Bruno Haible  <bruno@clisp.org>
122753         * modules/version-etc-2: New file, from modules/version-etc with
122754         modifications.
122755         * MODULES.html.sh (func_all_modules): Add version-etc-2.
122757 2003-09-25  Bruno Haible  <bruno@clisp.org>
122759         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
122760         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
122762 2003-09-24  Simon Josefsson  <jas@extundo.com>
122764         * modules/xgethostname: Add xgethostname.h.
122766 2003-09-24  Paul Eggert  <eggert@twinsun.com>
122768         * lib/linebuffer.c (freebuffer): Don't free the argument, just
122769         the buffer associated with the argument.  Bug reported by
122770         Simon Josefsson.
122772 2003-09-24  Paul Eggert  <eggert@twinsun.com>
122774         * README: Document assumptions that 'int' is at least 32 bits
122775         wide, that integer arithmetic is 2's complement without overflow,
122776         that there are no holes in integer values, that adding sizes of
122777         two nonoverlapping objects can't overflow, and that all-bits-zero
122778         yields scalar zero.  Fix spelling and capitalization typos.
122780 2003-09-19  Karl Berry  <karl@gnu.org>
122782         * lib/argp.h: update from libc.
122784 2003-09-17  Paul Eggert  <eggert@twinsun.com>
122786         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
122787         to avoid spurious warnings like "AC_RUN_IFELSE was called before
122788         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
122790 2003-09-17  Paul Eggert  <eggert@twinsun.com>
122792         * gnulib-tool: Use "test -h", not "test -L", for portability
122793         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
122794         (tags_regexp): Remove, since \| doesn't conform to POSIX.
122795         (sed_extract_prog): Issue s commands one-by-one, rather than
122796         using \| in one s command.
122798 2003-09-16  Paul Eggert  <eggert@twinsun.com>
122800         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
122801         input error, instead of returning NULL the next time we are called
122802         (and therefore losing track of errno).
122804 2003-09-16  Bruno Haible  <bruno@clisp.org>
122806         * gnulib-tool (func_create_testdir): Warn about duplicated
122807         dependencies.
122809 2003-09-15  Paul Eggert  <eggert@twinsun.com>
122811         * modules/argmatch, modules/fatal, modules/obstack,
122812         modules/xalloc, modules/xgethostname: Sort dependencies by
122813         importance, not alphabetically.
122815 2003-09-15  Paul Eggert  <eggert@twinsun.com>
122817         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
122818         fails, so that the caller gets the proper errno.
122820         * lib/readutmp.c (read_utmp): Likewise.
122821         Check for fstat error.  Close stream and free storage
122822         when failing.
122824 2003-09-14  Karl Berry  <karl@gnu.org>
122826         * config/srclist.txt (strdup.c): disable for c89 changes.
122828 2003-09-14  Jim Meyering  <jim@meyering.net>
122830         * lib/getloadavg.c: Correct cpp indentation.
122831         * lib/strdup.c: Likewise.
122832         * lib/vasnprintf.c: Likewise.
122834 2003-09-14  Bruno Haible  <bruno@clisp.org>
122836         * modules/fwriteerror: New file.
122837         * MODULES.html.sh (func_all_modules): Add fwriteerror.
122839 2003-09-14  Bruno Haible  <bruno@clisp.org>
122841         * lib/fwriteerror.h: New file.
122842         * lib/fwriteerror.c: New file.
122844 2003-09-12  Paul Eggert  <eggert@twinsun.com>
122846         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
122847         modules/xgethostname, modules/xalloc: Depend on exit.
122849 2003-09-12  Paul Eggert  <eggert@twinsun.com>
122851         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
122853         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
122854         and AC_MINIX, too, so that their extensions are available.
122856         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
122857         This macro has been superseded by gl_BACKUPFILE.
122859         More patches to assume C89 or better.
122861         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
122863         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
122864         unconditionally.
122865         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
122866         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
122867         Include <string.h>, <stdlib.h> unconditionally.
122868         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
122869         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
122870         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
122871         headers or for string.h.
122872         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
122873         or strtoul.
122875         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
122876         headers.
122877         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
122878         * m4/userspec.m4 (gl_USERSPEC): Likewise.
122879         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
122880         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
122881         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
122882         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
122883         memcpy, memset.
122884         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
122885         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
122886         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
122887         strtol.
122888         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
122889         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
122890         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
122891         strtoul.
122893 2003-09-12  Paul Eggert  <eggert@twinsun.com>
122895         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
122896         * lib/obstack.c [!defined _LIBC]: Likewise.
122897         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
122898         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
122899         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
122901         More changes to assume C89 or better.
122903         * lib/error.c (error_tail): Assume vprintf.
122905         * lib/argmatch.c (getenv): Remove decl.
122906         * lib/progreloc.c (get_full_program_name): Define via prototype.
122907         * lib/setenv.c (clearenv): Likewise.
122908         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
122909         needed.
122910         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
122911         (malloc, memcpy): Remove decls.
122912         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
122913         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
122914         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
122915         (memcpy): Remove macro.
122916         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
122917         (__P): Remove.  All uses removed.
122918         (PTR): Remove.  All uses changed to void *.
122919         (CHAR_BIT, NULL): Remove.
122920         (spaces, zeros, memset_space, memset_zero)
122921         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
122922         Remove.
122923         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
122924         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
122925         Define with prototype.
122926         Remove now-unnecessary prototype decl.
122927         (extra_args_spec): Assume ANSI C.  All uses changed.
122928         (extra_args_spec_iso): Remove.
122929         (my_strftime, emacs_strftimeu): Define via prototype.
122930         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
122931         unconditionally.
122932         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
122933         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
122934         (strtoul, strtol): Remove decls.
122935         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
122936         LONG_MAX): Remove.
122937         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
122938         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
122939         (LOCALE_PARAM_PROTO): New macro.
122940         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
122941         (INTERNAL (strtol), strtol): Define with a prototype.
122942         (PARAMS): Remove.  All uses removed.
122943         * lib/tempname.c: Include <string.h> unconditionally.
122944         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
122945         * lib/xgethostname.c (main): Define with a prototype.
122946         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
122947         Include <stdlib.h> unconditionally.
122948         (calloc, malloc, realloc, free): Remove decls.
122949         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
122950         Include <stdlib.h> unconditionally.  Sort include file names.
122951         (strtod): Remove.
122952         (xstrtod): Define with a prototype.
122953         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
122954         (strtol, strtoul): Remove decls.
122956 2003-09-11  Paul Eggert  <eggert@twinsun.com>
122958         More patches to assume C89 or better.
122959         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
122960         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
122961         string.h, memchr, STDC_HEADERS.
122963 2003-09-11  Paul Eggert  <eggert@twinsun.com>
122965         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
122966         Include <stdlib.h>, <string.h> unconditionally.
122967         Remove now-unnecessary cast to char *.
122968         * lib/strnlen.c: Include <string.h> unconditionally.
122969         * lib/yesno.c (yesno): Define with a prototype.
122971 2003-09-11  Bruno Haible  <bruno@clisp.org>
122973         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
122975 2003-09-10  Jim Meyering  <jim@meyering.net>
122977         * lib/error.c: Correct indentation of cpp directives.
122979 2003-09-10  Bruno Haible  <bruno@clisp.org>
122981         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
122982         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
122983         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
122984         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
122985         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
122986         <stdlib.h> and <string.h> checks.
122987         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
122988         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
122990 2003-09-10  Bruno Haible  <bruno@clisp.org>
122992         * lib/strcspn.c: Include <string.h> unconditionally.
122993         * lib/strpbrk.c: Include <string.h> unconditionally.
122994         * lib/strstr.c: Include <string.h> unconditionally.
122995         * lib/unicodeio.c: Include <string.h> unconditionally.
122996         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
122997         * lib/unsetenv.c: Likewise.
122998         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
122999         * lib/yesno.c: Include <stdlib.h> unconditionally.
123000         (rpmatch): Add prototype.
123002 2003-09-09  Paul Eggert  <eggert@twinsun.com>
123004         More patches to assume C89 or better.
123005         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
123006         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
123007         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
123008         or for string.h.
123009         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
123010         stdlib.h.
123011         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
123012         C headers.
123013         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
123014         string.h.
123015         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
123016         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
123017         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
123018         or for string.h.
123019         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
123020         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
123021         C headers.
123022         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
123023         memcpy.
123024         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
123025         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
123026         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
123027         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
123028         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
123029         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
123030         string.h, free.
123031         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
123032         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
123033         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
123034         C headers, or for string.h.
123035         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
123036         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
123037         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
123038         headers, memory.h, stdlib.h, string.h, strings.h.
123039         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
123040         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
123041         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
123042         strchr.
123043         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
123044         headers, memory.h, string.h.
123045         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
123046         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
123047         free.
123048         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
123049         headers.
123050         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
123051         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
123052         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
123053         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
123054         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
123056 2003-09-09  Paul Eggert  <eggert@twinsun.com>
123058         More K&R removal.
123060         * lib/acosl.c (main): Use a prototype.
123061         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
123062         tanl.c: Likewise.
123064         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
123066         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
123067         (getopt, etopt_long, getopt_long_only, _getopt_internal)
123068         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
123069         with a prototype.
123070         * lib/getopt.c (const): Remove macro.
123071         Include <string.h> unconditionally.
123072         (my_index): Remove; all uses changed to strchr.
123073         (strlen): Remove decl.
123074         (exchange): Remove forward decl; no longer needed.
123075         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
123076         Define with prototype.
123077         * lib/getopt1.c (const): Remove macro.
123078         (getopt_long, getopt_long_only, main): Define with prototype.
123080         * lib/getugroups.c: Include <string.h> unconditionally.
123082         * lib/getusershell.c: Include <stdlib.h> unconditionally.
123083         (getusershell, setusershell, endusershell, readname, main):
123084         Define with prototypes.
123086         * lib/group-member.c: Include group-member.h first.
123087         Include <stdlib.h> unconditionally.
123089         * lib/hard-locale.c: Include hard-locale.h first.
123090         Include <stdlib.h>, <string.h> unconditionally.
123092         * lib/hash.c (free, malloc): Remove decls.
123093         Include <stdlib.h> unconditionally.
123095         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
123096         (getenv): Do not declare.
123098         * lib/idcache.c: Include <string.h> unconditionally.
123100         * lib/long-options.c: Include long-options.h first, to test interface.
123101         Include <stdlib.h> unconditionally.
123103         * lib/makepath.c: Include makepath.h first, to test interface.
123104         Include <stdlib.h> and <string.h> unconditionally.
123106         * lib/linebuffer.c: Include <stdlib.h>.
123107         (free): Remove decl.
123109         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
123110         stddef.h. rpl_malloc returns void *, not char *.
123111         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
123112         prototype.
123114         * lib/md5.h: Include <limits.h> unconditionally.
123115         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
123116         (__P): Remove; all uses removed.
123117         * lib/md5.c: Include "md5.h" first.
123118         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
123119         md5_buffer, md5_process_bytes, md5_process_block):
123120         Define with prototypes.
123121         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
123122         * lib/sha.c: Include "sha.h" first.
123123         Include <stdlib.h>, <string.h> unconditionally.
123125         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
123126         * lib/memcmp.c (__ptr_t): Likewise.
123127         * lib/memrchr.c (__ptr_t): Likewise.
123128         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
123129         Include <string.h> unconditionally.
123130         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
123131         * lib/memchr.c: Include <stdlib.h> unconditionally.
123132         * lib/memchr.c (LONG_MAX): Remove.
123133         * lib/memrchr.c (LONG_MAX): Likewise.
123134         * lib/memchr.c (__memchr): Define via a prototype.
123135         * lib/memrchr.c (__memrchr): Likewise.
123136         * lib/memcmp.c (__P): Remove, and remove all uses.
123137         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
123138         Remove forward decls; no longer needed.
123139         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
123140         Use types required by C89 in prototype.
123142         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
123143         * lib/savedir.c: Likewise.
123144         * lib/mkdir.c (free): Remove decl.
123145         * lib/rmdir.c (rmdir): Define with a prototype.
123146         * lib/savedir.c: Include savedir.h first, to test interface.
123148         * lib/mktime.c (STDC_HEADERS): Remove.
123149         Include <stdlib.h>, <string.h> unconditionally.
123151         * lib/modechange.c: Include <stdlib.h> unconditionally.
123152         (malloc): Remove decl.
123154         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
123155         (free): Remove decl.
123157         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
123158         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
123159         (This type really should be intptr_t, but that's a C99ism.)
123160         (_obstack_memcpy): Remove: all uses changed to memcpy.
123161         Include <string.h> unconditionally.
123162         (struct obstack): Assume __STDC__ for types of members
123163         chunkfun, freefun, extra_arg.
123164         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
123165         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
123166         obstack_begin, obstack_specify_allocation,
123167         obstack_specify_allocation_with_arg, obstack_chunkfun,
123168         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
123169         Remove unprototyped decls and the macros that use them.
123170         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
123171         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
123172         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
123173         (defined __STDC__ && __STDC__)]:
123174         Remove nonprototyped code.
123175         Include <stdlib.h> unconditionally.
123176         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
123177         _obstack_allocated_p, _obstack_free, obstack_free,
123178         _obstack_memory_used, print_and_abort):
123179         Define using prototypes.
123180         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
123181         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
123182         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
123183         obstack_next_free, obstack_object_size, obstack_room) [0]:
123184         Remove unused, unprototyped code.
123186         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
123188         * lib/physmem.c (physmem_total, physmem_available, main): Define
123189         with prototypes.
123191         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
123192         (main): Define with a prototype.
123194         * lib/posixver.c (getenv): Remove decl.
123196         * lib/putenv.c (malloc): Returns void *, not char *.
123197         Include <string.h> unconditionally.
123198         (strchr, memcpy, NULL): Do not define.
123200         * lib/readtokens.c: Include readtokens.h first, to test interface.
123201         Include <stdlib.h>, <string.h> unconditionally.
123202         (init_tokenbuffer): Define with a prototype.
123204         * lib/regex.c (PARAMS): Remove.  All uses removed.
123205         All uses of _RE_ARGS removed, too.
123206         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
123207         unconditionally.
123208         (bzero): Assume memset exists.
123209         (memcmp, memcpy, NULL): Remove.
123210         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
123211         char, or assignments to local vars of type signed char.
123212         (init_syntax_once, PREFIX(extract_number_and_incr),
123213         PREFIX(print_partial_compiled_pattern),
123214         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
123215         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
123216         PREFIX(regex_grow_registers), PREFIX(regex_compile),
123217         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
123218         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
123219         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
123220         wcs_compile_range, byte_compile_range, truncate_wchar,
123221         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
123222         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
123223         count_mbs_length, wcs_re_match_2_internal,
123224         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
123225         PREFIX(alt_match_null_string_p),
123226         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
123227         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
123228         regfree, PREFIX(extract_number)): Define with prototype.  Remove
123229         now-unnecessary declaration, if any.
123230         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
123231         regcomp, regexec):
123232         Remove now-unnecessary casts among pointer types.
123233         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
123235         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
123236         (free): Remove decl.
123238         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
123240         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
123241         (free): Remove decl.
123243         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
123244         * lib/xgetcwd.c: Likewise.
123246         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
123247         (free): Remove decl.
123249         * lib/strchrnul.c (strchrnul): Define with a prototype.
123250         Fix bug: c_in was not converted to char before searching.
123252         The following changes are not K&R related:
123254         * lib/group-member.h: Include <sys/types.h>, so that this file is
123255         self-contained.
123256         * lib/makepath.h: Likewise.
123258         * lib/getusershell.c (readname, default_index, line_size, readname):
123259         Use size_t, not int, for sizes.
123260         (readname): If the size overflows, report an error instead of
123261         looping forever.
123263 2003-09-09  Paul Eggert  <eggert@twinsun.com>
123265         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
123266         libc.
123268 2003-09-09  Paul Eggert  <eggert@twinsun.com>
123270         * README: New section: portability guidelines.
123272 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
123274         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
123275         C89 spec.
123277 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
123279         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
123281 2003-09-08  Paul Eggert  <eggert@twinsun.com>
123283         Assume C89 or better; remove K&R cruft.
123284         A few of these changes were first proposed by Derek Robert Price
123285         in <http://mail.gnu.org/r/bug-gnulib/2003-07/msg00105.html>.
123287         * lib/addext.c: Include <string.h> unconditionally.
123288         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
123289         Don't declare getenv or malloc.
123291         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
123292         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
123293         (NULL): Remove.
123294         (find_stack_direction, alloca): Use prototypes.
123296         * lib/atexit.c (atexit): Define using a prototype.
123298         * lib/basename.c, dirname.c, stripslash.c:
123299         Include <string.h> unconditionally.
123301         * lib/bcopy.c: Include <stddef.h>.
123302         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
123304         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
123306         * lib/error.h (error, error_at_line, error_print_progname)
123307         [! (defined (__STDC__) && __STDC__)]: Remove decls.
123308         * lib/error.c: Include error.h first, to check interface.
123309         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
123310         (VA_START): Remove; all uses changeed to va_start.
123311         (exit, strerror): Remove decls.
123312         (error_print_progname): Prototype uncondionally.
123313         Don't include <errno.h>; no longer needed.
123314         (private_strerror): Remove.
123315         (error_tail): Always define.
123316         (error, error_at_line): Assume C89 or better; always use prototypes.
123317         * lib/fatal.c: Include "fatal.h" first, to test interface.
123318         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
123319         (VA_START): Remove; all uses changed to va_start.
123320         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
123321         this case.
123322         (exit): Remove decl.
123323         (fatal): Prototype unconditionally.  Assume va_start works.
123324         Abort at end, to pacify gcc.
123326         * lib/euidaccess.c (main): Define with a prototype.
123328         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
123330         * lib/exitfail.c: Include <stdlib.h> unconditionally.
123332         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
123333         prototypes.
123334         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
123335         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
123336         (getenv): Remove decl.
123337         (fnmatch): Define using a prototype.
123338         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
123339         (FCT): Define using a prototype.
123341         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
123343         * lib/gethostname.c: Include <stddef.h>.
123344         (gethostname): Define with prototype.  Length is size_t, not int.
123346 2003-09-08  Paul Eggert  <eggert@twinsun.com>
123348         Assume C89 or better; remove K&R cruft.
123349         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
123350         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
123351         string.h, getenv, malloc.
123352         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
123353         headers.
123354         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
123355         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
123356         do not check for strerror.
123357         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
123358         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
123359         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
123360         do not check for doprnt or vprintf.
123361         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
123362         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
123364 2003-09-08  Paul Eggert  <eggert@twinsun.com>
123366         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
123367         getversion.c should have been removed then, but was accidentally
123368         preserved.
123370         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
123371         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
123373 2003-09-08  Karl Berry  <karl@gnu.org>
123375         * config/config.sub, config.guess, srclistvars.sh: update from savannah
123376                 config, forget about prep.
123378         * config/depcomp, missing: update from automake.
123380 2003-09-07  Paul Eggert  <eggert@twinsun.com>
123382         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
123383         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00028.html>.
123385 2003-09-07  Paul Eggert  <eggert@twinsun.com>
123387         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
123388         copy_tm_result.  Bug reported by Simon Josefsson in
123389         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00028.html>.
123391 2003-09-06  Paul Eggert  <eggert@twinsun.com>
123393         * m4/time_r.m4: New file.
123394         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
123395         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
123396         is. Check for timegm declaration.
123397         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
123398         Do not check for gmtime_r.
123399         Replace mktime if __mktime_internal does not exist and if mktime
123400         hasn't been replaced already.
123402 2003-09-06  Paul Eggert  <eggert@twinsun.com>
123404         * lib/time_r.c, lib/time_r.h: New files.
123406         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
123407         __localtime_r.
123408         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
123409         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
123411         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
123412         __gmtime_r.
123413         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
123414         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
123415         Include <time_r.h>.
123417         * lib/timegm.c: Switch to glibc implementation, with the following
123418         changes:
123419         [defined HAVE_CONFIG_H]: Include <config.h>.
123420         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
123421         (__mktime_internal) [!defined _LIBC]: New decl.
123422         (__gmtime_r) [!defined _LIBC]: New macro and function.
123423         (timegm): Use a prototype, since gnulib assumes C89.
123424         Do not bother declaring tmp to be const, as it's not really usefu.
123425         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
123426         (timegm): Declare only if HAVE_DECL_TIMEGM.
123428 2003-09-06  Paul Eggert  <eggert@twinsun.com>
123430         * MODULES.html.sh (func_all_modules): Add time_r.
123431         * modules/time_r: New file.
123432         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
123433         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
123435 2003-09-03  Paul Eggert  <eggert@twinsun.com>
123437         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
123438         Bug reported by Lute Kamstra in
123439         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00003.html>.
123441         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
123442         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
123443         course with correspondingly smaller numbers for tomorrow and
123444         yesterday.  From Tadayoshi Funaba.  Originally installed into
123445         sh-utils on 1999-08-07, but the patch got lost (I guess during the
123446         coreutils merge?).
123448 2003-08-31  Simon Josefsson  <jas@extundo.com>
123450         * modules/timegm: New file.
123451         * MODULES.html.sh (func_all_modules): Add timegm.
123453 2003-08-31  Simon Josefsson  <jas@extundo.com>
123455         * m4/timegm.m4: New file.
123457 2003-08-31  Simon Josefsson  <jas@extundo.com>
123459         * lib/timegm.h: New file.
123460         * lib/timegm.c: New file.  Based on
123461         wget-1.8.2/src/http.c:mktime_from_utc.
123463 2003-08-31  Karl Berry  <karl@gnu.org>
123465         * lib/argp.h: update from libc.
123467 2003-08-28  Bruno Haible  <bruno@clisp.org>
123469         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
123470         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
123471         followed by '#define fnmatch fnmatch_posix' gives an error.
123473 2003-08-28  Bruno Haible  <bruno@clisp.org>
123475         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
123476         warning on QNX, which defines O_BINARY to 000000.
123478 2003-08-27  Jim Meyering  <jim@meyering.net>
123480         * m4/mkstemp.m4: Require that the system mkstemp be able to create
123481         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
123482         would fail after 32.  Reported by Danny Levinson.  Details here:
123483         http://mail.gnu.org/r/bug-coreutils/2003-08/msg00124.html
123485 2003-08-24  Bruno Haible  <bruno@clisp.org>
123487         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
123488         MSVC7 <stdio.h> is included later.
123490 2003-08-22  Simon Josefsson  <jas@extundo.com>
123492         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
123494 2003-08-20  Karl Berry  <karl@gnu.org>
123496         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
123498 2003-08-20  Bruno Haible  <bruno@clisp.org>
123500         * modules/progname: New file.
123501         * MODULES.html.sh (func_all_modules): Add progname.
123503 2003-08-20  Bruno Haible  <bruno@clisp.org>
123505         * lib/progname.h: New file, from GNU gettext.
123506         * lib/progname.c: New file, from GNU gettext.
123507         * lib/progreloc.c: New file, from GNU gettext.
123509 2003-08-19  Jim Meyering  <jim@meyering.net>
123511         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
123512         http://mail.gnu.org/r/bug-gnulib/2003-08/msg00155.html
123514 2003-08-19  Bruno Haible  <bruno@clisp.org>
123516         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
123517         more.
123519 2003-08-19  Bruno Haible  <bruno@clisp.org>
123521         * lib/xstrdup.c: Assume <string.h> exists.
123523 2003-08-18  Paul Eggert  <eggert@twinsun.com>
123525         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
123526         in makefile rules.
123528 2003-08-18  Jim Meyering  <jim@meyering.net>
123530         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
123531         * m4/lib-ld.m4: Likewise.
123533 2003-08-18  Jim Meyering  <jim@meyering.net>
123535         * lib/setenv.h: Indent nested cpp directive.
123536         * lib/vasnprintf.c: Remove trailing blanks.
123538 2003-08-17  Simon Josefsson  <jas@extundo.com>
123540         * modules/xstrndup: New file.
123541         * MODULES.html.sh (func_all_modules): Add xstrndup.
123543 2003-08-17  Simon Josefsson  <jas@extundo.com>
123545         * modules/argp: Fix autoconf macro name. Add more dependencies.
123547 2003-08-17  Simon Josefsson  <jas@extundo.com>
123549         * m4/xstrndup.m4: New file.
123551 2003-08-17  Simon Josefsson  <jas@extundo.com>
123553         * m4/argp.m4: New file.
123555 2003-08-17  Simon Josefsson  <jas@extundo.com>
123556             Bruno Haible  <bruno@clisp.org>
123558         * lib/xstrndup.h: New file.
123559         * lib/xstrndup.c: New file.
123561 2003-08-17  Bruno Haible  <bruno@clisp.org>
123563         * modules/strndup (Files, Include): Add lib/strndup.h.
123565 2003-08-17  Bruno Haible  <bruno@clisp.org>
123567         * modules/euidaccess (Files): Add lib/euidaccess.h.
123569 2003-08-17  Bruno Haible  <bruno@clisp.org>
123571         * lib/strndup.h: New file.
123573 2003-08-17  Bruno Haible  <bruno@clisp.org>
123575         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
123576         like AC_GNU_SOURCE.
123577         * modules/extensions (configure.ac): Comment out the invocation of
123578         gl_USE_SYSTEM_EXTENSIONS.
123580 2003-08-16  Paul Eggert  <eggert@twinsun.com>
123582         Merges from coreutils, etc.
123583         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
123584         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
123585         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
123586         fixing a typo.
123587         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
123588         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
123590 2003-08-16  Paul Eggert  <eggert@twinsun.com>
123592         Document merge from coreutils.
123593         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
123594         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
123595         * modules/utime: Add m4/utimes-null.m4.
123597 2003-08-16  Paul Eggert  <eggert@twinsun.com>
123599         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
123600         space, undoing this 2003-08-12 change:
123601         <http://mail.gnu.org/r/bug-gnulib/2003-08/msg00080.html>
123603 2003-08-16  Paul Eggert  <eggert@twinsun.com>
123605         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
123606         strtoul.c from libc, undoing this 2003-08-12 change:
123607         <http://mail.gnu.org/r/bug-gnulib/2003-08/msg00080.html>
123609 2003-08-16  Jim Meyering  <jim@meyering.net>
123611         Merges from coreutils.
123612         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
123613         prefix.  Adjust cache variables similarly.  Create 500 rather than
123614         just 300 files, to exercise bug on Darwin6.5, too.
123615         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
123616         $missing_dir.
123617         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
123618         AM_SYS_POSIX_TERMIOS.
123619         Reported by mkc@mathdogs.com.
123620         Also change use of $am_cv_sys_posix_termios
123621         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
123622         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
123623         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
123624         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
123625         in /proc/mounts until it finds one with matching device number.  This
123626         is unnecessary when the FILE argument *is* a mount point.  No stat call
123627         is necessary in that case.  So, disable the statvfs-testing code on
123628         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
123629         as RedHat bug# 84846.
123630         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
123631         to 1MB, so as not to render systems with no stack size limit (e.g.,
123632         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
123633         Include <unistd.h>.  On some systems,
123634         it is required for the definition of _SC_PAGESIZE.
123636 2003-08-16  Jim Meyering  <jim@meyering.net>
123638         Merge from coreutils.
123639         * lib/xstrtoimax.c: #else #if -> #elif.
123640         * lib/xstrtoumax.c: Likewise.
123642 2003-08-16  Jim Meyering  <jim@meyering.net>
123644         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
123645         * m4/utimes.m4: Removed.
123646         * m4/utimes-null.m4: Renamed from utimes.m4.
123648         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
123649         to 1MB, so as not to render systems with no stack size limit (e.g.,
123650         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
123651         Include <unistd.h>.  On some systems,
123652         it is required for the definition of _SC_PAGESIZE.
123654 2003-08-16  Jim Meyering  <jim@meyering.net>
123655         and Paul Eggert  <eggert@cs.ucla.edu>
123657         Merges from coreutils, etc.
123659         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
123660         using the latest version from cvs.  This avoids problems with #line
123661         directives using a vendor (Sun) compiler.
123662         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
123663         Don't set GETGROUPS_LIB here; now it's
123664         done via getgroups.m4's wrapper function.
123665         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
123666         rather than just in sh-util/configure.in, so that the
123667         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
123668         same.
123669         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
123670         AC_FUNC_GETLOADAVG where to find getloadavg.c.
123671         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
123672         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
123673         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
123674         Remove code that is now done by the newly-required macros.
123675         Append $(EXEEXT) to DF_PROG.
123676         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
123677         Do not invoke or require the following here,
123678         since prereq.m4 or some gnulib .m4 now does this for us:
123679         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
123680         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
123681         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
123682         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
123683         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
123684         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
123685         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
123686         AC_FUNC_OBSTACK.
123687         Do not replace the following functions, as this is now the job
123688         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
123689         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
123690         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
123691         atexit getpass, strdup, getpagesize.
123692         Replace 'raise'.
123693         Do not check for the following functions, as this is now the job
123694         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
123695         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
123696         setregid.
123697         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
123698         Check for sys/sysctl.h.
123699         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
123700         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
123701         of checking for ssize_t ourselves.
123703         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
123704         Require every macro that gnulib/modules/* suggests for us.
123705         (jm_PREREQ_ADDEXT): New macro.
123706         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
123707         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
123709         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
123710         (gl_PHYSMEM): Use it.
123711         Also check for `table' function.
123712         Check for new headers and functions.
123713         Add check for sys/sysmp.h.
123714         With suggestions from Kaveh Ghazi.
123715         Ignore headers that are present but cannot be compiled.  This
123716         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
123717         C 5.4.
123719 2003-08-15  Paul Eggert  <eggert@twinsun.com>
123721         Document merge from coreutils.
123722         * modules/userspec: Depend on posixver.
123723         * modules/strftime: Depend on tzset.
123725 2003-08-15  Paul Eggert  <eggert@twinsun.com>
123727         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
123728         rather than tab, after '#' in shell-script copyright notices.
123729         Suggested by Bruno Haible.
123731 2003-08-15  Paul Eggert  <eggert@twinsun.com>
123733         * config/srclist-update: Use three spaces, rather than tab, after '#'
123734         in shell-script copyright notices.  Suggested by Bruno Haible.
123735         Remove unnecessary parenthesization in regular expression.
123737 2003-08-15  Jim Meyering  <jim@meyering.net>
123739         Merge from coreutils.
123740         * lib/xgethostname.c: Include <stdlib.h>.
123741         (xghostname): Don't exit for anything other than memory-related
123742         failure; just return NULL.
123743         * lib/userspec.c: Include "posixver.h".
123744         (parse_user_spec): Accept `.' as a separator only
123745         in pre-POSIX-200112 mode.
123746         * lib/strtoimax.c: Use #elif rather than #else #if.
123747         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
123748         Remove function, now that we can rely on a working tzset function.
123749         [!_LIBC]: Ensure that the required autoconf test has been run.
123750         [!defined _NL_CURRENT && HAVE_STRFTIME]:
123751         Use underlying_strftime for %r.
123752         * lib/sha.c: Merge in some clean-up and optimization changes from
123753         glibc.
123754         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
123755         Ensure that it is a multiple of 64.
123756         Rearrange loop exit tests so as to avoid performing an
123757         additional fread after encountering an error or EOF.
123758         * lib/realloc.c: Update copyright date.
123760 2003-08-15  Jim Meyering  <jim@meyering.net>
123761         and Paul Eggert  <eggert@twinsun.com>
123763         Merge from coreutils.
123764         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
123765         member but strut utmpx does not.  Needed for AIX 4.3.3.
123766         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
123768 2003-08-15  Jim Meyering  <jim@meyering.net>
123769         and Paul Eggert  <eggert@cs.ucla.edu>
123771         Merges from coreutils, etc.
123772         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
123773         Require gl_FUNC_TZSET_CLOBBER.
123774         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
123775         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
123776         members.
123778 2003-08-14  Paul Eggert  <eggert@twinsun.com>
123780         Help the merge from coreutils.
123781         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
123782         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
123783         * m4/tzset.m4: Use it too.
123785 2003-08-14  Paul Eggert  <eggert@twinsun.com>
123787         * modules/tzset: New file.
123789 2003-08-14  Jim Meyering  <jim@meyering.net>
123791         Merges from coreutils.
123792         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
123793         variable names, rather than @FNMATCH_H@.
123794         * modules/alloca: Likewise for $(ALLOCA_H).
123796         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
123797         the three copies of the literal target, `fnmatch.h'.
123798         * modules/alloca (alloca.h): Likewise.
123800 2003-08-14  Jim Meyering  <jim@meyering.net>
123802         Merge from coreutils.
123803         * m4/tzset.m4: New file.
123804         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
123805         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
123806         otherwise, AIX 5.1 systems would end up using the latter.
123807         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
123808         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
123809         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
123810         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
123812 2003-08-14  Jim Meyering  <jim@meyering.net>
123814         Merge from coreutils.
123815         * lib/obstack.h: Whitespace changes.
123816         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
123817         and xcalloc return values.
123818         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
123819         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
123820         hang on OSF/1 5.1 for DIR on both local and remote file systems.
123821         Reported by (and fix confirmed by) Nelson H. F. Beebe.
123822         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
123823         error from mntctl.
123824         Use mntctl's return value to drive the entry-processing loop, since
123825         we can't rely on the value of the vmt_length member in the last
123826         entry.  On some systems doing so could result in exhausting
123827         virtual memory.  Based in part on a patch from Mike Jetzer.
123829 2003-08-14  Jim Meyering  <jim@meyering.net>
123830         and Paul Eggert  <eggert@twinsun.com>
123832         Merges from coreutils, plus other fixes.
123833         * lib/physmem.c: Merge in portability changes from gcc/libiberty
123834         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
123835         for credits and details.  Thanks to Kaveh Ghazi for helping
123836         to keep these files in sync.
123837         (ARRAY_SIZE): Define it.
123838         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
123839         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
123840         (memcasecmp): Don't assume size_t fits in unsigned int.
123841         Remove casts and duplicate code.
123842         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
123843         (memcpy): Remove definition.
123844         Merge in some clean-up and optimization changes from glibc.
123845         [BLOCKSIZE]: Move definition to top of file.
123846         Ensure that it is a multiple of 64.
123847         Rearrange loop exit tests so as to avoid performing an
123848         additional fread after encountering an error or EOF.
123849         * lib/md5.h (md5_uintptr): Define.
123850         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
123851         return to the initial working directory.  Preserve errno
123852         for caller.
123853         * lib/idcache.c: Include "xalloc.h".
123854         (xmalloc, xrealloc): Remove decls.
123855         (getuser): Remove casts no longer required in C89.
123856         * lib/human.c: Include stdio.h, for sprintf.
123857         * lib/group-member.c: Include "xalloc.h".
123858         (xmalloc, xrealloc): Remove decls.
123859         (get_group_info): Remove casts no longer required in C89.
123860         * lib/getusershell.c (readname): Remove casts no longer required in
123861         C89.
123862         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
123863         * lib/getline.c: Whitespace fix, from coreutils.
123865 2003-08-13  Paul Eggert  <eggert@twinsun.com>
123867         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
123868         Check for isascii.
123870         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
123871         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
123872         Undo previous (whitespace-only) change.
123874 2003-08-13  Paul Eggert  <eggert@twinsun.com>
123876         * lib/exclude.c: Include <ctype.h>
123877         (IN_CTYPE_DOMAIN): New macro.
123878         (is_space): New fn.
123879         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
123880         and empty lines.
123882         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
123883         Undo previous (whitespace-only) change.
123885 2003-08-13  Paul Eggert  <eggert@twinsun.com>
123887         * config/srclist-update: Change update back to the old behavior,
123888         leaving whitespace alone.  Use one 'sed' command rather than a
123889         pipeline.
123890         (fixlicense): Now a variable, not a function.
123891         (remove_trailing_blanks): Remove.
123892         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
123893         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
123894         Undo previous (whitespace-only) change.
123896 2003-08-12  Paul Eggert  <eggert@twinsun.com>
123898         Merge from coreutils.
123899         * modules/euidaccess: Add lib_SOURCES, include for new
123900         file euidaccess.h
123902 2003-08-12  Paul Eggert  <eggert@twinsun.com>
123904         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
123905         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
123906         Normalize leading white space and remove trailing white space.
123908         Merge from coreutils
123909         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
123911         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
123912         0.12.1.  These files are now being upgraded automatically by
123913         ../config/srclist-update.
123915 2003-08-12  Paul Eggert  <eggert@twinsun.com>
123917         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
123918         Normalize leading white space and remove trailing white space.
123919         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
123920         notice, as per ../config/srclist-update.
123922         Merge from coreutils.
123923         * lib/euidaccess.h: New file.
123924         * lib/euidaccess.c: Include it.
123925         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
123926         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
123927         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
123929 2003-08-12  Paul Eggert  <eggert@twinsun.com>
123931         * config/srclist-update: Add copyright notice.
123932         (remove_id_lines, remove_trailing_blanks): New constants.
123933         (fixfile): Use them to normalize spacing a bit in copied files.
123934         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
123935         Normalize leading white space and remove trailing white space.
123937         * config/texinfo.tex: Sync with texinfo.
123939         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
123940         strtoul.c from libc, to merge coreutils whitespace changes.
123942         * config/srclist.txt: Get the following m4 files from gettext:
123943         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
123944         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
123945         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
123946         wint_t.m4.
123948 2003-08-12  Karl Berry  <karl@gnu.org>
123950         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
123951         been made.
123953 2003-08-11  Paul Eggert  <eggert@twinsun.com>
123955         * modules/gnu-source, m4/gnu-source.m4:
123956         Remove; we're assuming Autoconf 2.54 or later now.
123957         Suggested by Bruno Haible.
123958         * MODULES.html.sh (func_all_modules): Remove gnu-source.
123960 2003-08-11  Bruno Haible  <bruno@clisp.org>
123962         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
123964 2003-08-11  Bruno Haible  <bruno@clisp.org>
123966         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
123967         (vasnprintf): Use it instead of wcslen.
123969 2003-08-11  Bruno Haible  <bruno@clisp.org>
123971         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
123972         value to ensure that _Bool promotes to int. Use #define for _Bool when
123973         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
123975 2003-08-10  Karl Berry  <karl@gnu.org>
123977         * lib/regex.h: update from libc (whitespace fix).
123979 2003-08-09  Paul Eggert  <eggert@twinsun.com>
123981         Merge some files from coreutils.  These changes were
123982         originally made by Jim Meyering.
123983         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
123984         many older Unixes require this.
123985         * lib/alloca.c (alloca): Remove cast to argument of free;
123986         no longer needed in C89.
123987         * lib/alloca_.h, regex.h: Fix white space to match
123988         what GNU indent does.
123990 2003-08-09  Paul Eggert  <eggert@twinsun.com>
123992         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
123993         apparently Emacs's Unicode mode got confused before my 2003-08-05
123994         checkin.
123996 2003-08-08  Paul Eggert  <eggert@twinsun.com>
123998         * m4/extensions.m4: New file.
123999         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
124000         Require gl_USE_SYSTEM_EXTENSIONS.
124001         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
124002         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
124004 2003-08-08  Paul Eggert  <eggert@twinsun.com>
124006         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
124007         * modules/extensions, modules/gnu-source: New files.
124008         * modules/timespec, modules/unlocked-io: Depend on extensions.
124010 2003-08-07  Paul Eggert  <eggert@twinsun.com>
124012         * modules/restrict: New file.
124013         * MODULES.html.sh (func_all_modules): Add restrict.
124014         * modules/regex: Depend on restrict.
124016 2003-08-07  Paul Eggert  <eggert@twinsun.com>
124018         * m4/restrict.m4: New file.
124019         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
124021 2003-08-07  Bruno Haible  <bruno@clisp.org>
124023         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
124024         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
124026 2003-08-07  Bruno Haible  <bruno@clisp.org>
124028         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
124029         makes the module 'getndelim2' compatible with the module 'getline'.
124031 2003-08-05  Paul Eggert  <eggert@twinsun.com>
124033         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
124034         byte with "\201" to avoid glitches when editing that source file
124035         with multi-gnome-terminal.
124037 2003-08-05  Paul Eggert  <eggert@twinsun.com>
124039         * lib/bumpalloc.h: Remove.
124041 2003-08-05  Paul Eggert  <eggert@twinsun.com>
124043         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
124044         * modules/bumpalloc: Remove.
124046 2003-08-04  Paul Eggert  <eggert@twinsun.com>
124048         * lib/getloadavg.c: Change copyright notice and spacing to conform to
124049         GNU coding style.
124051         Merge from coreutils.
124052         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
124053         1. From glibc.
124054         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
124055         from Karl Berry, implemented by Jim Meyering.
124056         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
124057         from Dmitry V. Levin.
124058         Remove anachronistic cast of xrealloc.
124059         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
124060         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
124061         type. Otherwise, it wouldn't compile with at least /bin/cc on
124062         ymp-cray-unicos9.0.2.X.
124063         Combine two mostly-identical uses of alloca into one.
124064         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
124066 2003-08-04  Dave Love  <d.love@dl.ac.uk>
124068         [From Emacs.]
124070         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
124071         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
124072         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
124073         obsolete NLIST_NAME_UNION.
124074         [__GNU__]: Undef BSD and FSCALE.
124075         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
124077 2003-08-03  Paul Eggert  <eggert@twinsun.com>
124079         * lib/stdbool_.h (_Bool): Make it signed char, instead of
124080         an enum type, so that it's guaranteed to promote to int.  See:
124081         <http://mail.gnu.org/r/bug-gnulib/2003-07/msg00124.html>
124083 2003-08-03  Karl Berry  <karl@gnu.org>
124085         * config/depcomp: update from automake.
124087 2003-07-31  Paul Eggert  <eggert@twinsun.com>
124089         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
124090         (strerror): Don't assume that a printable int fits in 14 bytes.
124092 2003-07-31  Bruno Haible  <bruno@clisp.org>
124094         * modules/getpass-gnu: New file.
124095         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
124097 2003-07-31  Bruno Haible  <bruno@clisp.org>
124099         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
124101 2003-07-24  Karl Berry  <karl@gnu.org>
124103         * config/missing: update from automake.
124105 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
124106             Bruno Haible  <bruno@clisp.org>
124108         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
124109         * lib/getline.c (getline, getdelim): Likewise.
124110         Remove _GNU_SOURCE define; now it's defined in config.h through
124111         m4/getline.m4.
124113 2003-07-23  Karl Berry  <karl@gnu.org>
124115         * config/config.sub: update from prep.
124117 2003-07-22  Paul Eggert  <eggert@twinsun.com>
124119         * modules/xalloc (Depends-on): Add exitfail.
124120         * modules/xmemcoll: Likewise.
124122 2003-07-22  Paul Eggert  <eggert@twinsun.com>
124124         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
124125         over-parenthesization in macros.
124127         Sync with coreutils.
124129         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
124130         required by C99.
124132         Use `exit_failure' for xalloc and xmemcoll instead of their own
124133         private exit-failure variables.
124134         * lib/xalloc.h (xalloc_exit_failure): Remove.
124135         * lib/xmalloc.c: Likewise.  Include exitfail.h.
124136         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
124137         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
124138         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
124139         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
124141 2003-07-20  Jim Meyering  <jim@meyering.net>
124143         * modules/closeout (Depends-on): Add exitfail.
124144         Suggestion from Bruno Haible.
124146 2003-07-19  Karl Berry  <karl@gnu.org>
124148         * config/config.sub: update from prep.
124150 2003-07-18  Paul Eggert  <eggert@twinsun.com>
124152         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
124153         Remove.
124154         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
124155         to test that it can stand by itself.  Include "exitfail.h".
124156         Clients should set exit_failure instead.
124157         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
124159 2003-07-18  Bruno Haible  <bruno@clisp.org>
124161         * modules/getndelim2: New file.
124162         * modules/getline: Share files with module getndelim2.
124163         * modules/getnline: Depend on getndelim2 instead of sharing files with
124164         it. Add getnline.c to lib_SOURCES.
124165         * MODULES.html.sh (func_all_modules): Add getndelim2.
124167 2003-07-18  Bruno Haible  <bruno@clisp.org>
124169         * m4/getndelim2.m4: New file.
124170         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
124171         invoke gl_PREREQ_GETNDELIM2.
124172         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
124173         gl_PREREQ_GETNDELIM2.
124174         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
124175         gl_GETNDELIM2.
124177 2003-07-18  Bruno Haible  <bruno@clisp.org>
124179         * lib/getndelim2.h: New file.
124180         * lib/getndelim2.c: Make into a module of its own. Include config.h,
124181         getndelim2.h.
124182         (getndelim2): Make non-static. Change return type to ssize_t.
124183         * lib/getline.h: Change argument names.
124184         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
124185         * lib/getnline.c: Include getndelim2.h.
124187 2003-07-18  Andreas Schwab  <schwab@suse.de>
124189         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
124191 2003-07-17  Karl Berry  <karl@gnu.org>
124193         * config/config.sub: update from prep.
124195 2003-07-17  Bruno Haible  <bruno@clisp.org>
124197         * modules/getnline: New file.
124198         * modules/getline: Add lib/getndelim2.c to source file list.
124199         * MODULES.html.sh (func_all_modules): Add getnline.
124201 2003-07-17  Bruno Haible  <bruno@clisp.org>
124203         * m4/getnline.m4: New file.
124205 2003-07-17  Bruno Haible  <bruno@clisp.org>
124207         * m4/Makefile.am.in: Remove file.
124208         * m4/Makefile.am: Remove file.
124209         * m4/Makefile.in: Remove file.
124211 2003-07-17  Bruno Haible  <bruno@clisp.org>
124213         * lib/getnline.h: New file.
124214         * lib/getnline.c: New file.
124215         * lib/getndelim2.c: New file, extracted from getline.c.
124216         (getndelim2): Renamed from getdelim2, with added nmax argument.
124217         * lib/getline.c: Include getndelim2.c.
124218         (getdelim2): Moved out to getndelim2.c.
124219         (getline, getdelim): Update.
124221 2003-07-17  Bruno Haible  <bruno@clisp.org>
124223         * lib/Makefile.am: Remove file.
124224         * lib/Makefile.in: Remove file.
124226 2003-07-17  Bruno Haible  <bruno@clisp.org>
124228         * configure.in: Remove file.
124229         * Makefile.in: Remove file.
124231 2003-07-17  Bruno Haible  <bruno@clisp.org>
124233         * MODULES.html.sh: Put the </BODY> right before </HTML>.
124235 2003-07-16  Karl Berry  <karl@gnu.org>
124237         * config/srclist-update: was running fixlicense twice, which caused
124238                 texinfo.tex to be nullified for some reason.  Simplify,
124239                 $gplsrc is no longer needed as far as I can see?
124241 2003-07-16  Jim Meyering  <jim@meyering.net>
124243         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
124245 2003-07-15  Paul Eggert  <eggert@twinsun.com>
124247         * config/srclist.txt: Get the following files from gettext-runtime/intl
124248         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
124249         ref-del.sin.  From Bruno Haible.
124250         * config/srclist-update (fixfile): Change grep pattern again, since the
124251         previous fix didn't work (there was another trailing $).  Use
124252         '[$]' to escape the $s.
124254 2003-07-15  Karl Berry  <karl@gnu.org>
124256         * lib/vasnprintf.c: update from gettext.
124258 2003-07-15  Karl Berry  <karl@gnu.org>
124260         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
124261         gets expanded when surrounded by '$'.
124263 2003-07-15  Jim Meyering  <jim@meyering.net>
124265         * modules/save-cwd: Don't depend on error.  From Derek Price.
124267 2003-07-15  Jim Meyering  <jim@meyering.net>
124269         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
124271 2003-07-14  Simon Josefsson  <jas@extundo.com>
124273         * modules/mempcpy: New file.
124274         * MODULES.html.sh (func_all_modules): Add mempcpy.
124276 2003-07-14  Simon Josefsson  <jas@extundo.com>
124278         * m4/mempcpy.m4: New file.
124280 2003-07-14  Simon Josefsson  <jas@extundo.com>
124282         * lib/mempcpy.h: New file.
124283         * lib/mempcpy.c: New file.
124285 2003-07-14  Paul Eggert  <eggert@twinsun.com>
124287         * modules/getdate, modules/posixtm: Depend on mktime.
124289 2003-07-14  Paul Eggert  <eggert@twinsun.com>
124291         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
124292         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
124293         unicodeio.c, unicodeio.h, unlocked-io.h:
124294         Switch from LGPL to GPL.
124296 2003-07-14  Paul Eggert  <eggert@twinsun.com>
124298         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
124299         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
124300         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
124301         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
124302         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
124303         updated automatically by ../config/srclist-update.  This changes
124304         their license from LPGL to GPL.
124306 2003-07-14  Paul Eggert  <eggert@twinsun.com>
124308         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
124309         assumed to refer to the root of the most recent stable gettext version.
124310         * config/srclistvars.sh: Add defaults for eggert.
124311         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
124312         Match "This program" as well as "The program".  This is needed
124313         for gettext.
124315 2003-07-14  Jim Meyering  <jim@meyering.net>
124317         Don't emit diagnostics.  Let callers do that.
124318         * lib/save-cwd.c: Don't include "error.h".
124319         (save_cwd): Don't call error.  Ensure that errno is valid
124320         when returning nonzero.
124322         * lib/save-cwd.h (restore_cwd): Update prototype.
124323         * lib/save-cwd.c (restore_cwd): Remove two parameters.
124324         Simplify.  Don't call error upon failure.  Let callers do that.
124325         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
124326         when auditing is enabled.  But don't bother updating the #if.
124328 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
124330         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
124331         it breaks C++ compilation.
124332         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
124334 2003-07-10  Simon Josefsson  <jas@extundo.com>
124336         * modules/strchrnul (Makefile.am): Add strchrnul.h.
124338 2003-07-10  Jim Meyering  <jim@meyering.net>
124340         * m4/clock_time.m4: Remove trailing blank.
124341         * m4/intmax_t.m4: Likewise.
124343 2003-07-10  Jim Meyering  <jim@meyering.net>
124345         * lib/vasnprintf.c: Remove trailing blanks.
124346         Make cpp indentation consistent.
124348 2003-07-09  Paul Eggert  <eggert@twinsun.com>
124350         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
124351         posixver.c, strftime.c, strnlen.c, strverscmp.c:
124352         Switch from LGPL to GPL.
124354 2003-07-09  Paul Eggert  <eggert@twinsun.com>
124356         * config/srclist.txt: Sort sublists.  Add
124357         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
124358         that differ from gnulib for one reason or another; we'd like this list
124359         to be smaller but for now let's document what we have.
124361 2003-07-08  Paul Eggert  <eggert@twinsun.com>
124363         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
124364         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
124365         and sweeter "eval x=$x".
124366         * config/srclist.txt: Get lib/argp* from glibc.
124368 2003-07-07  Paul Eggert  <eggert@twinsun.com>
124370         * lib/mktime.c: Fix some boundary cases and remove need for floating
124371         point.
124373         Issue a compile-time diagnostic if time_t is floating point, or if
124374         two's complement arithmetic is not in effect, or if arithmetic
124375         right shift does not propagate the sign.  These assumptions were
124376         all in the original code but they weren't checked.
124378         (TIME_T_MIDPOINT, verify): New macros.
124379         (__isleap): Remove; it has integer overflow problems.
124380         (leapyear): New function, without those problems.
124381         (ydhms_tm_diff): Remove; splitting into two parts.
124382         (ydhms_diff): New function, containing the arithmetic part of
124383         the old ydhms_tm_diff function.  Issue a compile-time
124384         diagnostic if we are not using C99 integer division.
124385         Avoid casts when possible.
124386         (guess_time_tm): New function, containing the checking part of
124387         the old ydhms_tm_diff function.  Return the new value, rather than
124388         the difference between it and the old.  Accept a new argument T
124389         so that *T specifies the old value.  Check for overflow in the result.
124391         (__mktime_internal): Use a time_t offset, not a long int offset.
124392         This undoes the 2003-06-04 change, which is no longer needed now
124393         that we have better overflow checking.
124394         (localtime_offset): Likewise.
124396         (__mktime_internal): Avoid harmful overflow on hosts where time_t
124397         and long are 64-bit but int is only 32-bit.
124398         (ydhms_diff): Use long int to store year1 and yday1.
124399         Issue a compile-time diagnostic if long int is not wide enough.
124401         (__mktime_internal): Use long int to store adjusted year and yday.
124402         Use plain C rather than preprocessor commands, if that doesn't
124403         affect efficiency.
124404         Check for overflow (and try to repair) after each probe
124405         rather than checking only at the very end.  This avoids some bugs
124406         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
124407         does not equal GMT offset at maximum time).
124408         Use integer to check for overflow rather than floating point; this
124409         is more portable to non-IEEE hosts, and is a tad faster.
124410         When we detect that we are oscillating between two values,
124411         don't check whether tm_isdst has the requested value, since
124412         we already know the answer.  When tm_isdst has the wrong value,
124413         use a different heuristic to find the right one, based on the
124414         extreme values actually observed in practice in tz2003a,
124415         rather than the (overly optimistic) "previous 3 calendar quarters".
124417         (not_equal_tm, print_tm, check_result): Use "const T" rather than
124418         "T const" to accommodate glibc style.
124419         (check_result): Use less-confusing report format.  "long" -> "long int.
124420         (main): Likewise.
124421         Don't loop if the iteration overflows time_t.
124422         Allow a negative step in the iteration.
124424 2003-07-06  Karl Berry  <karl@gnu.org>
124426         * config/depcomp: update from automake.
124427         * config/config.sub: update from prep.
124429 2003-07-03  Karl Berry  <karl@gnu.org>
124431         * config/config.guess: update from prep.
124433 2003-07-01  Paul Eggert  <eggert@twinsun.com>
124435         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
124436         xreadlink.c now includes it unconditionally.
124438 2003-07-01  Paul Eggert  <eggert@twinsun.com>
124440         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
124441         having it depend on HAVE_SYS_TYPES_H.
124443 2003-07-01  Bruno Haible  <bruno@clisp.org>
124445         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
124446         <sys/types.h> should be sufficient.
124447         Reported by Paul Eggert.
124449 2003-06-26  Karl Berry  <karl@gnu.org>
124451         * config/depcomp: update from automake.
124453 2003-06-26  Bruno Haible  <bruno@clisp.org>
124455         * modules/human: Depend on module stdbool.
124457 2003-06-25  Bruno Haible  <bruno@clisp.org>
124459         * modules/readlink: New file.
124460         * modules/xreadlink: Depend on it.
124461         * MODULES.html.sh (func_all_modules): Add readlink.
124463 2003-06-25  Bruno Haible  <bruno@clisp.org>
124465         * m4/readlink.m4: New file.
124467 2003-06-25  Bruno Haible  <bruno@clisp.org>
124469         * lib/readlink.c: New file.
124471 2003-06-22  Karl Berry  <karl@gnu.org>
124473         * config/srclist.txt: update mkinstalldirs from automake.
124474         * config/mkinstalldirs: update.
124476 2003-06-22  Bruno Haible  <bruno@clisp.org>
124478         Portability to mingw32.
124479         * m4/ssize_t.m4: New file, from GNU gettext.
124480         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
124481         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
124483 2003-06-22  Bruno Haible  <bruno@clisp.org>
124485         * modules/safe-read: Add m4/ssize_t.m4.
124486         * modules/xreadlink: Add m4/ssize_t.m4.
124488 2003-06-20  Bruno Haible  <bruno@clisp.org>
124490         Assume C89, so PARAMS isn't needed.
124491         * lib/unicodeio.h (PARAMS): Remove.
124492         * lib/unicodeio.c: Don't use PARAMS.
124494 2003-06-18  Karl Berry  <karl@gnu.org>
124496         * config/config.{guess,sub}: update from prep.
124498 2003-06-18  Jim Meyering  <jim@meyering.net>
124500         Merge changes from coreutils.
124501         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
124502         Remove explicit declarations of xmalloc and realloc.
124503         Include xalloc.h.
124504         (read_utmp): Remove anachronistic cast of xmalloc.
124506 2003-06-17  Paul Eggert  <eggert@twinsun.com>
124508         Assume C89, so PARAMS isn't needed.
124509         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
124510         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
124511         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
124512         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
124513         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
124514         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
124515         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
124516         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
124517         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
124518         lib/xstrtod.h, lib/xstrtol.h: Likewise.
124519         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
124520         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
124521         no longer needed. Anyway, config.h should always be included before any
124522         other file.
124524 2003-06-11  Simon Josefsson  <jas@extundo.com>
124526         * modules/sysexits: New file.
124527         * MODULES.html.sh (func_all_modules): Add sysexits.
124529 2003-06-11  Simon Josefsson  <jas@extundo.com>
124531         * lib/sysexit_.h: New file.
124533 2003-06-11  Derek Price  <derek@ximbiot.com>
124535         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
124536         necessary.
124538 2003-06-11  Bruno Haible  <bruno@clisp.org>
124540         * m4/sysexits.m4: New file.
124542 2003-06-10  Simon Josefsson  <jas@extundo.com>
124544         * lib/argp.h: New file, from glibc.
124545         * lib/argp-ba.c: New file, from glibc.
124546         * lib/argp-eexst.c: New file, from glibc.
124547         * lib/argp-fmtstream.c: New file, from glibc.
124548         * lib/argp-fmtstream.h: New file, from glibc.
124549         * lib/argp-fs-xinl.c: New file, from glibc.
124550         * lib/argp-help.c: New file, from glibc.
124551         * lib/argp-namefrob.h: New file, from glibc.
124552         * lib/argp-parse.c: New file, from glibc.
124553         * lib/argp-pv.c: New file, from glibc.
124554         * lib/argp-pvh.c: New file, from glibc.
124555         * lib/argp-xinl.c: New file, from glibc.
124557 2003-06-10  Simon Josefsson  <jas@extundo.com>
124559         * modules/strchrnul: New file.
124561 2003-06-10  Simon Josefsson  <jas@extundo.com>
124563         * modules/argp: New file.
124565 2003-06-10  Simon Josefsson  <jas@extundo.com>
124567         * m4/strchrnul.m4: New file.
124569 2003-06-10  Simon Josefsson  <jas@extundo.com>
124571         * lib/strchrnul.h: New file.
124572         * lib/strchrnul.c: New file.
124574 2003-06-10  Bruno Haible  <bruno@clisp.org>
124576         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
124578 2003-06-07  Karl Berry  <karl@gnu.org>
124580         * config/config.{guess,sub}: update from prep.
124582 2003-06-07  Jim Meyering  <jim@meyering.net>
124584         * modules/strtod: Use $(...) notation, not @...@ for
124585         AC_REPLACE'd variables.
124586         * modules/localcharset: Likewise.
124588 2003-06-07  Jim Meyering  <jim@meyering.net>
124590         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
124591         in place of my name in the copyright comment.
124592         Remove definition and uses of __P.
124594         From coreutils.
124595         * lib/stat.c: Don't declare xmalloc explicitly.
124596         Instead, include "xalloc.h".
124597         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
124598         xrealloc, and xcalloc return values.
124599         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
124600         Improve comment.
124601         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
124603 2003-06-07  Bruno Haible  <bruno@clisp.org>
124605         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
124606         avoid AC_CONFIG_LINKS.
124607         * modules/fnmatch (Makefile.am): Use explicit creation rule for
124608         fnmatch.h, to avoid AC_CONFIG_LINKS.
124609         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
124611 2003-06-07  Bruno Haible  <bruno@clisp.org>
124613         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
124614         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
124615         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
124616         directory.
124617         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
124618         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
124619         directory.
124621 2003-06-06  Jim Meyering  <jim@meyering.net>
124623         Merge from coreutils.
124624         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
124625         Consolidate declarations and initializations of *_base* locals.
124627         Merge from coreutils.
124628         This avoids a core dump on systems without GNU putenv,
124629         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
124630         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
124631         (unsetenv): New static function, from GNU libc.
124632         (rpl_putenv): Use it.
124634         * lib/modechange.c: Remove trailing blanks.
124636         Merge from coreutils.
124637         * lib/fsusage.c: Remove declaration of statfs.
124638         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
124640         * lib/posixtm.c: Include <stdbool.h> unconditionally.
124642 2003-06-06  Jim Meyering  <jim@meyering.net>
124644         * lib/stdbool_.h: Renamed from stdbool.h.in.
124646 2003-06-06  Jim Meyering  <jim@meyering.net>
124647             Bruno Haible  <bruno@clisp.org>
124649         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
124650         Adjust Makefile.am snippet not to redirect directly to target.
124651         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
124653 2003-06-05  Paul Eggert  <eggert@twinsun.com>
124655         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
124656         mismatch, look in future quarters as well as past.  This fixes a
124657         bug when processing fall-backwards gaps immediately after a long
124658         period of daylight-saving time.
124660         * lib/mktime.c: Assume freestanding C89 or better.
124661         (HAVE_LIMITS_H): Remove.  Assume it's 1.
124662         (__P): Remove; not used.
124663         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
124664         (mktime, not_equal_tm, print_tm, check_result,
124665         main): Use prototypes.  Use const * where appropriate.
124666         (main): Fix typo in testing code that uncovered by above changes.
124667         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
124669 2003-06-04  Paul Eggert  <eggert@twinsun.com>
124671         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
124672         locale.h, localeconv.  This merges changes from coreutils.
124674         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
124675         It can be removed after the next Autoconf is released.
124676         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
124677         needed.
124679 2003-06-04  Paul Eggert  <eggert@twinsun.com>
124681         * lib/mktime.c: Fix Debian bug 177940
124682         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
124683         (localtime_offset): Now long int, not time_t, because we want it
124684         to be guaranteed to be signed.  All uses changed.
124685         (__mktime_internal): If overflow would occur when adding offset,
124686         don't add it.
124688         Merge 'human' changes from coreutils.  Rewrite to support
124689         locale-specific notations like thousands separators.
124690         * lib/human.c: Simplify authorship notice.
124691         Include human.h immediately after config.h.
124692         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
124693         <limits.h>: Do not include, since human.h does.
124694         (SIZE_MAX, UINTMAX_MAX): New macros.
124695         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
124696         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
124697         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
124698         (power_letter): Renamed from suffixes.
124699         (generate_suffix_backwards): Remove.
124700         (adjust_value): Now takes int style (because of human.h changes)
124701         and long double value (for greater precision on some platforms).
124702         (group_number): New function.
124703         (human_readable): Use it.  Use integer options, not enum.
124704         Put the options before the sizes in the arg list.
124705         Support all the new options.
124706         The old human_readable function has been removed;
124707         use inttostr.h instead.
124708         (human_readable, default_block_size, humblock):
124709         Use uintmax_t, not int, for block sizes.
124710         (human_readable_inexact, block_size_types): Remove.
124711         (block_size_opts): New constant.
124712         (human_options): Renamed from human_block_size, with new signature
124713         that allows block sizes up to UINTMAX_MAX.  All callers changed.
124714         * lib/human.h: Add copyright and authorship notice.
124715         Include <limits.h> and <stdbool.h> unconditionally.
124716         (PARAMS): Remove.  All uses removed.
124717         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
124718         (enum human_inexact_style): Remove tag; now a nameless enum.
124719         (human_floor, human_ceiling, human_round_to_even): Now have
124720         values 2, 0, 1 rather than -1, 1, 0.
124721         (human_group_digits, human_suppress_point_zero, human_autoscale,
124722         human_base_1024, human_SI, human_B): New constants.
124723         (human_readable_inexact, human_block_size): Remove.
124724         (human_readable): Size args are now uintmax_t, not int.
124725         (human_options): New decl.
124727         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
124728         unnecessary now that we assume C89 or better.  This change
124729         imported from coreutils.
124731         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
124732         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
124733         in the 2003-05-30 sync from glibc.
124735         .h files should stand alone, but we shouldn't include <sys/types.h>
124736         if we can get away with just <stddef.h>.
124738         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
124739         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
124740         rather than <sys/types.h>, as we merely need size_t.
124741         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
124742         to get size_t.
124743         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
124744         Include <stdio.h>, to get FILE.
124745         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
124746         memcasecmp.h has included <stddef.h> and all we need is size_t.
124747         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
124748         our interface, instead of including <sys/types.h>
124750 2003-06-04  Paul Eggert  <eggert@twinsun.com>
124752         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
124753         now, as glibc mktime is buggy on non-glibc systems.
124755 2003-06-03  Karl Berry  <karl@gnu.org>
124757         * config/config.sub: update from prep.
124759 2003-06-02  Paul Eggert  <eggert@twinsun.com>
124761         [from coreutils]
124762         Fix some minor time-related bugs with POSIX time arguments.
124763         Some valid time stamps were being rejected (notably -1, and
124764         time stamps before 1900 on 64-bit hosts).  And some invalid
124765         time stamps were being accepted, e.g. September 31.
124767         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
124768         that we can return (time_t) -1 successfully.
124769         * lib/posixtm.c: Likewise.
124770         [HAVE_STDBOOL_H]: Include <stdbool.h>.
124771         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
124772         (t): Remove static var.
124773         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
124774         of static var.  All uses changed.
124775         (year): Do not reject years before 1900; they can occur with
124776         64-bit time_t.
124777         (posix_time_parse): Do not check for out-of-range components;
124778         that is now the caller's responsibility, since our checks were
124779         only approximations.
124780         (posixtime): Use mktime to check for out-of-range components,
124781         since it knows them exactly.
124782         If mktime returns (time_t) -1, check whether an error actually occurred
124783         by invoking localtime on -1.
124784         (main) [TEST_POSIXTIME]: Check for input data errors, and report
124785         posixtime failures better.
124786         Improve the test data (in comments only).
124788 2003-06-02  Karl Berry  <karl@gnu.org>
124790         * config/mkinstalldirs (version): new variable.
124791         (--version): new option.
124792         (usage): improve message.
124794 2003-05-30  Karl Berry  <karl@gnu.org>
124796         * lib/mktime.c: update from libc.
124798 2003-05-30  Bruno Haible  <bruno@clisp.org>
124800         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
124801         * config/config.rpath: Upgrade to gettext-0.12.1.
124803 2003-05-30  Bruno Haible  <bruno@clisp.org>
124805         * m4/gettext.m4: Upgrade to gettext-0.12.1.
124806         * m4/nls.m4: New file, from gettext-0.12.1.
124807         * m4/po.m4: New file, from gettext-0.12.1.
124808         * m4/progtest.m4: Upgrade to gettext-0.12.1.
124810 2003-05-30  Bruno Haible  <bruno@clisp.org>
124812         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
124813         * lib/localcharset.h: Likewise.
124814         * lib/localcharset.c: Likewise.
124816 2003-05-29  Karl Berry  <karl@gnu.org>
124818         * config/config.rpath: update from gettext.
124820 2003-05-28  Paul Eggert  <eggert@twinsun.com>
124822         Assume the headers required for C89 freestanding compilers.
124823         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
124824         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
124825         * m4/human.m4 (gl_HUMAN): Likewise.
124826         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
124827         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
124828         * m4/userspec.m4 (gl_USERSPEC): Likewise.
124829         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
124830         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
124831         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
124833 2003-05-28  Paul Eggert  <eggert@twinsun.com>
124835         Assume the headers required for C89 freestanding compilers.
124836         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
124837         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
124838         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
124839         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
124840         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
124841         define, since <limits.h> is guaranteed to do that.
124842         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
124843         * lib/exclude.c: Include <stdbool.h> unconditionally.
124844         * lib/tempname.c: Include <stddef.h> unconditionally.
124845         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
124846         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
124847         <stddef.h> does that.
124848         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
124849         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
124850         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
124851         needed.
124852         * lib/xstrtol.c: Likewise.
124853         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
124854         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
124856         * lib/addext.c (addext): Use assignment rather than cast, to avoid
124857         warnings on some platforms.
124859         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
124860         arbitrarily.
124862 2003-05-26  Jim Meyering  <jim@meyering.net>
124864         Merge in a change from coreutils:
124865         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
124866         that is guaranteed to be `no'.  Use `no_such_member' to indicate
124867         that condition, rather than `-1' which is slightly misleading.
124868         Change the name of the cache variable to have the gl_ prefix.
124869         Prompted by a patch from Richard Dawe for DJGPP.
124871 2003-05-24  Karl Berry  <karl@gnu.org>
124873         * config/config.guess: update from prep.
124875 2003-05-22  Karl Berry  <karl@gnu.org>
124877         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
124879 2003-05-20  Karl Berry  <karl@gnu.org>
124881         * config/config.guess: update from prep.
124883 2003-05-18  Karl Berry  <karl@gnu.org>
124885         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
124886         might actually be set by the user.
124888         * config/depcomp, install-sh, mdate-sh: update from automake.
124890 2003-05-17  Bruno Haible  <bruno@clisp.org>
124892         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
124893         invalid expansion for AC_EGREP_CPP.
124894         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
124895         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
124896         Suggested by Akim Demaille <akim@epita.fr> in
124897         http://mail.gnu.org/r/bug-autoconf/2003-05/threads.html
124899 2003-05-12  Jim Meyering  <jim@meyering.net>
124901         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
124902         the space-padded-by-default conversion specifiers, %e, %k, %l.
124904 2003-05-12  Bruno Haible  <bruno@clisp.org>
124906         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
124907         the string is longer than 4 KB.
124909 2003-05-11  Karl Berry  <karl@gnu.org>
124911         * config/config.{guess,sub}: update from prep.
124913 2003-05-09  Bruno Haible  <bruno@clisp.org>
124915         * modules/error: Add m4/strerror_r.m4 to file list.
124917 2003-05-03  Bruno Haible  <bruno@clisp.org>
124919         Upgrade to Unicode-4.0.
124920         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
124921         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
124922         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
124923         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
124924         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
124925         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
124926         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
124927         Change width of U+E0100..U+E01EF from 1 to 0.
124929 2003-04-25  Jim Meyering  <jim@meyering.net>
124931         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
124932         of type size_t, not int.
124934 2003-04-25  Bruno Haible  <bruno@clisp.org>
124936         * lib/copy-file.c: Include <stddef.h>, for size_t.
124938 2003-04-21  Paul Eggert  <eggert@twinsun.com>
124940         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
124941         code which expansion is under static control.  Patch imported from
124942         Akim Demaille's patch to Bison; see
124943         <http://mail.gnu.org/r/bison-patches/2003-03/msg00057.html>.
124945 2003-04-14  Bruno Haible  <bruno@clisp.org>
124947         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
124949 2003-04-11  Jim Meyering  <jim@meyering.net>
124951         Merge changes from Coreutils.
124953         2003-03-22  Jim Meyering  <jim@meyering.net>
124955         * lib/strftime.c (widen): Cast alloca return value to proper type.
124957         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
124959         From GNU libc.
124960         * lib/strftime.c (my_strftime): Handle very large width
124961         specifications for numeric values correctly.  Improve checks for
124962         overflow.
124964         2003-01-19  Jim Meyering  <jim@meyering.net>
124966         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
124967         definitions.
124968         (nl_get_alt_digit) [! defined my_strftime]: Define.
124969         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
124970         _nl_get_alt_digit and _nl_get_walt_digit.
124972         * lib/strftime.c (my_strftime): Merge in locale-related changes from
124973         libc. These changes have no effect outside of _LIBC.
124975 2003-04-10  Bruno Haible  <bruno@clisp.org>
124977         * modules/findprog: New file.
124978         * MODULES.html.sh (func_all_modules): Add it.
124980 2003-04-10  Bruno Haible  <bruno@clisp.org>
124982         * m4/findprog.m4: New file.
124983         * m4/eaccess.m4: New file.
124985 2003-04-10  Bruno Haible  <bruno@clisp.org>
124987         * lib/findprog.h: New file, from GNU gettext.
124988         * lib/findprog.c: New file, from GNU gettext.
124990 2003-04-05  Jim Meyering  <jim@meyering.net>
124992         Merge changes from Coreutils.
124994         * lib/exclude.h (PARAMS): Remove definition and uses.
124995         * lib/exclude.c: Remove uses of `PARAMS'.
124997         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
124998         Add test-cases for DOS filenames. Declare program_name.
124999         (main): Set up program_name.  Patch by Rich Dawe.
125001         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
125002         error from mntctl.
125003         Use mntctl's return value to drive the entry-processing loop, since
125004         we can't rely on the value of the vmt_length member in the last
125005         entry.  On some systems doing so could result in exhausting
125006         virtual memory.  Based in part on a patch from Mike Jetzer.
125008 2003-04-04  Bruno Haible  <bruno@clisp.org>
125010         * modules/linebreak: New file.
125011         * MODULES.html.sh (func_all_modules): Add it.
125013 2003-04-04  Bruno Haible  <bruno@clisp.org>
125015         * m4/linebreak.m4: New file.
125017 2003-04-04  Bruno Haible  <bruno@clisp.org>
125019         * lib/linebreak.h: New file, from GNU gettext.
125020         * lib/linebreak.c: New file, from GNU gettext with slight
125021         modifications.
125022         * lib/lbrkprop.h: New file, from GNU gettext.
125024 2003-04-03  Bruno Haible  <bruno@clisp.org>
125026         * modules/utf8-ucs4: New file.
125027         * modules/utf16-ucs4: New file.
125028         * modules/ucs4-utf8: New file.
125029         * modules/ucs4-utf16: New file.
125030         * MODULES.html.sh (func_all_modules): Add them.
125032 2003-04-03  Bruno Haible  <bruno@clisp.org>
125034         * m4/utf-ucs4.m4: New file.
125035         * m4/ucs4-utf.m4: New file.
125037 2003-04-03  Bruno Haible  <bruno@clisp.org>
125039         * lib/utf8-ucs4.h: New file, from GNU gettext.
125040         * lib/utf16-ucs4.h: New file, from GNU gettext.
125041         * lib/ucs4-utf8.h: New file, from GNU gettext.
125042         * lib/ucs4-utf16.h: New file, from GNU gettext.
125044 2003-04-02  Bruno Haible  <bruno@clisp.org>
125046         * modules/binary-io: New file.
125047         * MODULES.html.sh (func_all_modules): Add it.
125049 2003-04-02  Bruno Haible  <bruno@clisp.org>
125051         * lib/binary-io.h: New file, from GNU gettext.
125053 2003-04-01  Bruno Haible  <bruno@clisp.org>
125055         * modules/pathname: New file.
125056         * MODULES.html.sh (func_all_modules): Add it.
125058 2003-04-01  Bruno Haible  <bruno@clisp.org>
125060         * lib/pathname.h: New file, from GNU gettext.
125061         * lib/concatpath.c: New file, from GNU gettext.
125063 2003-03-30  Bruno Haible  <bruno@clisp.org>
125065         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
125067 2003-03-30  Bruno Haible  <bruno@clisp.org>
125069         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
125070         function chown() doesn't exist.
125072 2003-03-28  Bruno Haible  <bruno@clisp.org>
125074         * modules/copy-file: New file.
125075         * MODULES.html.sh (func_all_modules): Add it.
125077 2003-03-28  Bruno Haible  <bruno@clisp.org>
125079         * m4/copy-file.m4: New file.
125081 2003-03-28  Bruno Haible  <bruno@clisp.org>
125083         * lib/copy-file.h: New file, from GNU gettext.
125084         * lib/copy-file.c: New file, from GNU gettext.
125086 2003-03-18  Jim Meyering  <jim@meyering.net>
125088         * lib/quote.c (quote_n): Fix typo in comment.
125090 2003-03-18  Bruno Haible  <bruno@clisp.org>
125092         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
125093         checking.
125094         * m4/onceonly_2_57.m4: Likewise.
125096 2003-03-17  Bruno Haible  <bruno@clisp.org>
125098         * m4/onceonly.m4: Require autoconf 2.54 or newer.
125099         (m4_quote): Remove macro.
125100         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
125102 2003-03-14  Jim Meyering  <jim@meyering.net>
125104         Merge changes from Coreutils.
125105         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
125106         to be const, in order to avoid warnings.
125107         (obstack_room): Likewise.
125108         (obstack_empty_p): Likewise.
125110 2003-03-14  Bruno Haible  <bruno@clisp.org>
125112         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
125113         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
125115 2003-03-13  Paul Eggert  <eggert@twinsun.com>
125117         Merge changes from Bison.
125118         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
125119         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
125120         when compiling Bison 1.875's `bitset bset = obstack_alloc
125121         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
125122         * lib/hash.c: Include <stdbool.h> unconditionally.
125124 2003-03-13  Paul Eggert  <eggert@twinsun.com>
125126         * m4/onceonly.m4 (m4_quote): New macro.
125127         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
125128         Quote AC_FOREACH variable-expansions properly.
125130 2003-03-13  Paul Eggert  <eggert@twinsun.com>
125132         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
125134 2003-03-09  Paul Eggert  <eggert@twinsun.com>
125136         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
125137         Reported by Bruce Becker; see:
125138         http://mail.gnu.org/r/bug-bison/2003-03/msg00017.html
125140 2003-03-03  Paul Eggert  <eggert@twinsun.com>
125141             Bruno Haible  <bruno@clisp.org>
125143         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
125144         Reported by John Hughes, see
125145         http://mail.gnu.org/r/bug-bison/2003-02/msg00030.html
125147 2003-02-20  Bruno Haible  <bruno@clisp.org>
125149         * MODULES.html.sh (func_all_modules): Add poll.
125151 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
125153         * modules/poll: New file.
125155 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
125157         * lib/poll_.h: New file.
125158         * lib/poll.c: New file.
125160 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
125162         * m4/poll.m4: New file.
125164 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
125166         * modules/mathl: New file.
125168 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
125170         * lib/mathl.h: New file.
125171         * lib/acosl.c: New file.
125172         * lib/asinl.c: New file.
125173         * lib/atanl.c: New file.
125174         * lib/ceill.c: New file.
125175         * lib/cosl.c: New file.
125176         * lib/expl.c: New file.
125177         * lib/floorl.c: New file.
125178         * lib/frexpl.c: New file.
125179         * lib/ldexpl.c: New file.
125180         * lib/logl.c: New file.
125181         * lib/sincosl.c: New file.
125182         * lib/sinl.c: New file.
125183         * lib/sqrtl.c: New file.
125184         * lib/tanl.c: New file.
125185         * lib/trigl.c: New file.
125186         * lib/trigl.h: New file.
125188 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
125190         * m4/mathl.m4: New file.
125192 2003-02-18  Bruno Haible  <bruno@clisp.org>
125194         * MODULES.html.sh (func_all_modules): Add mathl.
125196 2003-02-17  Bruno Haible  <bruno@clisp.org>
125198         * modules/mkdtemp: New module.
125199         * MODULES.html.sh (func_all_modules): Add it.
125201 2003-02-17  Bruno Haible  <bruno@clisp.org>
125203         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
125205 2003-02-17  Bruno Haible  <bruno@clisp.org>
125207         * lib/mkdtemp.h: New file, from GNU gettext.
125208         * lib/mkdtemp.c: New file, from GNU gettext.
125210 2003-02-02  Jim Meyering  <jim@meyering.net>
125212         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
125213         e.g. glibc-2.2.93.
125215 2003-01-31  Bruno Haible  <bruno@clisp.org>
125217         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
125218         'rpl_rename'.
125219         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
125220         'rpl_strnlen'.
125221         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
125222         'rpl_strtod'.
125223         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
125224         'rpl_utime'.
125226 2003-01-31  Bruno Haible  <bruno@clisp.org>
125228         * lib/rename.c: #undef rename before defining rpl_rename.
125229         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
125231 2003-01-30  Bruno Haible  <bruno@clisp.org>
125233         * modules/vasnprintf, modules/vasprintf: New modules.
125234         * MODULES.html.sh (func_all_modules): Add them.
125236 2003-01-30  Bruno Haible  <bruno@clisp.org>
125238         * m4/signed.m4: New file, from GNU gettext.
125239         * m4/longdouble.m4: New file, from GNU gettext.
125240         * m4/wchar_t.m4: New file, from GNU gettext.
125241         * m4/wint_t.m4: New file, from GNU gettext.
125242         * m4/vasnprintf.m4: New file.
125243         * m4/vasprintf.m4: New file.
125245 2003-01-30  Bruno Haible  <bruno@clisp.org>
125247         * lib/printf-args.h: New file, from GNU gettext.
125248         * lib/printf-args.c: New file, from GNU gettext.
125249         * lib/printf-parse.h: New file, from GNU gettext.
125250         * lib/printf-parse.c: New file, from GNU gettext.
125251         * lib/vasnprintf.h: New file, from GNU gettext.
125252         * lib/vasnprintf.c: New file, from GNU gettext.
125253         * lib/asnprintf.c: New file, from GNU gettext.
125254         * lib/vasprintf.h: New file, from GNU gettext with modifications.
125255         * lib/vasprintf.c: New file, from GNU gettext.
125256         * lib/asprintf.c: New file, from GNU gettext.
125258 2003-01-29  Bruno Haible  <bruno@clisp.org>
125260         * modules/stpncpy: New module.
125261         * MODULES.html.sh (func_all_modules): Add it.
125263 2003-01-29  Bruno Haible  <bruno@clisp.org>
125265         * m4/stpncpy.m4: New file.
125267 2003-01-29  Bruno Haible  <bruno@clisp.org>
125269         * lib/stpncpy.h: New file, from GNU gettext with modifications.
125270         * lib/stpncpy.c: New file, from GNU gettext with modifications.
125272 2003-01-28  Bruno Haible  <bruno@clisp.org>
125274         * modules/c-ctype: New module.
125275         * MODULES.html.sh (func_all_modules): Add it.
125277 2003-01-28  Bruno Haible  <bruno@clisp.org>
125279         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
125280         Paul Eggert.
125281         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
125282         Paul Eggert.
125284 2003-01-27  Bruno Haible  <bruno@clisp.org>
125286         * modules/xsetenv: New module.
125287         * MODULES.html.sh (func_all_modules): Add it.
125289 2003-01-27  Bruno Haible  <bruno@clisp.org>
125291         * lib/xsetenv.h: New file, from GNU gettext.
125292         * lib/xsetenv.c: New file, from GNU gettext.
125294 2003-01-23  Jim Meyering  <jim@meyering.net>
125296         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
125297         from working on systems without dirfd (at least Irix and OSF1/Tru64).
125299 2003-01-23  Bruno Haible  <bruno@clisp.org>
125301         * modules/minmax: New module.
125302         * MODULES.html.sh (func_all_modules): Add it.
125304 2003-01-23  Bruno Haible  <bruno@clisp.org>
125306         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
125307         Eggert.
125309 2003-01-22  Bruno Haible  <bruno@clisp.org>
125311         * modules/exit: New module.
125312         * MODULES.html.sh (func_all_modules): Add it.
125314 2003-01-22  Bruno Haible  <bruno@clisp.org>
125316         * lib/exit.h: New file, from GNU gettext.
125318 2003-01-19  Bruno Haible  <bruno@clisp.org>
125320         * gnulib-tool: Recognize option --extract-maintainer.
125321         (func_get_maintainer): New function.
125322         * modules/*: Add Maintainer entry.
125324 2003-01-16  Jim Meyering  <jim@meyering.net>
125326         * m4/regex.m4: The `regex' struct is both input and output.
125327         Initialize it before each use.  Patch by Tim Waugh.
125329 2003-01-16  Bruno Haible  <bruno@clisp.org>
125331         * MODULES.html.sh: Add a table of contents. Add the module name as
125332         leftmost column. Add hyperlinks.
125334 2003-01-15  Bruno Haible  <bruno@clisp.org>
125336         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
125338 2003-01-15  Bruno Haible  <bruno@clisp.org>
125340         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
125341         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
125342         suffix.
125344 2003-01-15  Bruno Haible  <bruno@clisp.org>
125346         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
125348 2003-01-15  Bruno Haible  <bruno@clisp.org>
125350         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
125351         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
125353 2003-01-14  Jim Meyering  <jim@meyering.net>
125355         * lib/same.c (same_name): Tweak a comment.
125357 2003-01-14  Bruno Haible  <bruno@clisp.org>
125359         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
125360         when a string comparison is sufficient.
125362 2003-01-14  Bruno Haible  <bruno@clisp.org>
125364         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
125365         'unsigned int'.
125367 2003-01-14  Bruno Haible  <bruno@clisp.org>
125369         * lib/hash-pjw.c: Add comment about low quality of this function.
125371 2003-01-13  Bruno Haible  <bruno@clisp.org>
125373         * modules/stpcpy: Distribute lib/stpcpy.h.
125374         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
125376 2003-01-13  Bruno Haible  <bruno@clisp.org>
125378         * modules/*: Add a description.
125379         * modules/strpbrk: Fix Makefile.am snippet.
125380         * modules/strtoimax: Fix dependencies.
125381         * modules/strtoumax: Likewise.
125383 2003-01-13  Bruno Haible  <bruno@clisp.org>
125385         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
125386         * modules/alloca (Makefile.am): All object files depend on alloca.h.
125387         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
125389 2003-01-13  Bruno Haible  <bruno@clisp.org>
125391         * gnulib-tool (func_create_testdir): Store config/* files in the main
125392         directory.
125393         * config.rpath: Move to ...
125394         * config/config.rpath: ... here.
125395         * modules/gettext: Contains config/config.rpath, not config.rpath.
125396         * modules/iconv: Likewise.
125398 2003-01-12  Paul Eggert  <eggert@twinsun.com>
125400         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
125401         to avoid collisions with libcurses and libreadline.
125403         * m4/getstr.m4: Remove.
125404         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
125406 2003-01-12  Paul Eggert  <eggert@twinsun.com>
125408         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
125409         to avoid collisions with libcurses and libreadline.
125411         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
125412         * lib/getstr.h, getstr.c: Remove.
125413         * lib/getline.c: Include "getline.h", to check interface.
125414         Move body of old getstr.c here: this defines MIN_CHUNK and
125415         declares getdelim2, which is renamed from getstr.
125416         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
125418         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
125419         All uses changed.
125420         * lib/linebuffer.h: Likewise.
125421         (readline): Remove backward-compatibility macro.
125423 2003-01-12  Paul Eggert  <eggert@twinsun.com>
125425         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
125426         to avoid collisions with libcurses and libreadline.
125427         * getstr: Remove.
125428         * MODULES.html.sh: Remove getstr.
125429         * modules/getline: Depend on unlocked-io, not getstr.
125431 2003-01-12  Jim Meyering  <jim@meyering.net>
125433         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
125435 2003-01-10  Bruno Haible  <bruno@clisp.org>
125437         * modules/alloca: Change Makefile.am requirements. Simplify Include
125438         requirements. Add lib/alloca_.h to file list.
125440 2003-01-10  Bruno Haible  <bruno@clisp.org>
125442         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
125444 2003-01-10  Bruno Haible  <bruno@clisp.org>
125446         * lib/alloca_.h: New file.
125447         * lib/getdate.y: Unconditionally include alloca.h.
125448         * lib/makepath.c: Likewise.
125449         * lib/setenv.c: Likewise.
125450         * lib/userspec.c: Likewise.
125452 2003-01-09  Karl Berry  <karl@gnu.org>
125454         * MODULES.html.sh: include `dirname $0` in PATH, to find
125455         gnulib-tool.
125457 2003-01-09  Bruno Haible  <bruno@clisp.org>
125459         * modules/stdbool: Change configure.ac, Makefile.am requirements.
125460         Simplify Include requirements. Add lib/stdbool.h.in to file list.
125462 2003-01-09  Bruno Haible  <bruno@clisp.org>
125464         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
125466 2003-01-09  Bruno Haible  <bruno@clisp.org>
125468         * lib/stdbool.h.in: New file.
125470 2003-01-09  Bruno Haible  <bruno@clisp.org>
125472         * gnulib-tool (func_all_modules): Ignore files ending in ~.
125473         * MODULES.html.sh: Likewise.
125475 2003-01-08  Jim Meyering  <jim@meyering.net>
125477         * lib/full-write.c: Undefine and define-away `const' after inclusion
125478         of errno.h, not before.  Suggestion from Bruno Haible.
125480 2003-01-08  Bruno Haible  <bruno@clisp.org>
125482         * modules/full-read: Depend on full-write.
125484 2003-01-08  Bruno Haible  <bruno@clisp.org>
125486         * lib/safe-read.c: Include specification header first, to ensure its
125487         selfcontainedness.
125488         * lib/full-write.c: Likewise.
125490 2003-01-07  Jim Meyering  <jim@meyering.net>
125492         * lib/full-write.c: Rework so that it may serve to define full_read,
125493         too.
125494         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
125496 2003-01-07  Bruno Haible  <bruno@clisp.org>
125498         * lib/strtoimax.c: Include <stdint.h> as an alternative to
125499         <inttypes.h>.
125500         * lib/xstrtol.h: Likewise.
125501         * lib/xstrtoimax.c: Likewise.
125502         * lib/xstrtoumax.c: Likewise.
125503         * lib/human.h: Likewise.
125505         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
125506         on systems that have <inttypes.h> but not <stdint.h>.
125508 2003-01-07  Bruno Haible  <bruno@clisp.org>
125510         * MODULES.html.sh: Add copyright notice.
125511         (missed_files): Omit CVS directory entries.
125512         (func_module): Make it work with sed-3.02.
125513         * MODULES.txt: Remove file.
125515 2003-01-06  Jim Meyering  <jim@meyering.net>
125517         * lib/version-etc.c: Update year in translatable copyright string.
125519 2003-01-03  Karl Berry  <karl@gnu.org>
125521         * config/config.{guess,sub}: update from prep.
125523 2003-01-02  Karl Berry  <karl@gnu.org>
125525         * doc/COPYING.DOC: belatedly updated to 1.2.
125527 2003-01-01  Karl Berry  <karl@gnu.org>
125529         * gnulib-tool (func_verify_module): report module name $module in
125530         error message, not $1.
125531         * gnulib-tool (create-testdir): don't complain if destdir couldn't
125532         be created, only if it doesn't exist.
125533         * gnulib-tool (last_checkin_date): don't expand the $Date here.
125535 2002-12-31  Paul Eggert  <eggert@twinsun.com>
125537         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
125539 2002-12-31  Paul Eggert  <eggert@twinsun.com>
125541         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
125542         memcmp if strcoll doesn't work.
125544 2002-12-31  Bruno Haible  <bruno@clisp.org>
125546         * lib/utime.c (utime_null): No need to call ftruncate if the file was
125547         nonempty.
125549 2002-12-31  Bruno Haible  <bruno@clisp.org>
125551         * lib/memcoll.c (STRCOLL): New macro.
125552         (memcoll): Use it.
125554 2002-12-31  Bruno Haible  <bruno@clisp.org>
125556         * lib/localcharset.h: New file.
125557         * lib/localcharset.c: Include it.
125558         * lib/unicodeio.c: Likewise.
125560 2002-12-31  Bruno Haible  <bruno@clisp.org>
125562         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
125563         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
125565 2002-12-31  Bruno Haible  <bruno@clisp.org>
125567         * lib/getline.h: Include <stddef.h>, for size_t.
125569         * lib/unicodeio.h: Include <stddef.h>, for size_t.
125570         * lib/unicodeio.c: Don't include <stddef.h>.
125572 2002-12-31  Bruno Haible  <bruno@clisp.org>
125574         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
125575         HAVE_TM_ZONE.
125577 2002-12-24  Karl Berry  <karl@gnu.org>
125579         * config/config.guess: update from prep.
125581 2002-12-24  Bruno Haible  <bruno@clisp.org>
125583         General infrasructure.
125584         * m4/README: Rewritten.
125585         * m4/onceonly.m4: New file.
125586         * m4/onceonly_2_57.m4: New file.
125588         Module atexit.
125589         * m4/atexit.m4: New file.
125591         Module strtod.
125592         * m4/strtod.m4: New file.
125594         Module strtol.
125595         * m4/strtol.m4: New file.
125597         Module strtoul.
125598         * m4/strtoul.m4: New file.
125600         Module memchr.
125601         * m4/memchr.m4: New file.
125603         Module memcmp.
125604         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
125605         (jm_FUNC_MEMCMP): Invoke it.
125607         Module memcpy.
125608         * m4/memcpy.m4: New file.
125610         Module memmove.
125611         * m4/memmove.m4: New file.
125613         Module memset.
125614         * m4/memset.m4: New file.
125616         Module strcspn.
125617         * m4/strcspn.m4: New file.
125619         Module strpbrk.
125620         * m4/strpbrk.m4: New file.
125622         Module strstr.
125623         * m4/strstr.m4: New file.
125625         Module strerror.
125626         * m4/strerror.m4: New file.
125628         Module mktime.
125629         * m4/mktime.m4: Renamed from jm-mktime.m4.
125630         (gl_PREREQ_MKTIME): New macro.
125631         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
125633         Module malloc.
125634         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
125635         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
125636         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
125638         Module realloc.
125639         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
125640         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
125641         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
125643         Module strftime.
125644         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
125645         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
125646         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
125647         gl_TM_GMTOFF.
125648         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
125650         Module xalloc.
125651         * m4/xalloc.m4: New file.
125653         Module alloca.
125654         * m4/alloca.m4: New file.
125656         Module putenv.
125657         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
125658         (jm_FUNC_PUTENV): Invoke it.
125660         Module setenv.
125661         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
125662         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
125663         when invoked twice.
125664         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
125665         gt_FUNC_SETENV.
125667         Module memrchr.
125668         * m4/memrchr.m4: New file.
125670         Module stpcpy.
125671         * m4/stpcpy.m4: New file.
125673         Module strcase.
125674         * m4/strcase.m4: New file.
125676         Module strdup.
125677         * m4/strdup.m4: New file.
125679         Module strnlen.
125680         * m4/strnlen.m4: New file.
125682         Module strndup.
125683         * m4/strndup.m4: New file.
125685         Module xstrtod.
125686         * m4/xstrtod.m4: New file.
125688         Module xstrtol.
125689         * m4/xstrtol.m4: New file.
125691         Module getdate.
125692         * m4/getdate.m4: New file.
125694         Module unlocked-io.
125695         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
125696         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
125697         * m4/jm-glibc-io.m4n: Remove file.
125699         Module long-options.
125700         * m4/long-options.m4: New file.
125702         Module md5.
125703         * m4/md5.m4: New file.
125705         Module sha.
125706         * m4/sha.m4: New file.
125708         Module getstr.
125709         * m4/getstr.m4: New file.
125711         Module getline.
125712         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
125713         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
125714         <sys/types.h>, for size_t. Use the function name gnu_getline, not
125715         simply getline. Infoke gl_PREREQ_GETLINE.
125717         Module obstack.
125718         * m4/obstack.m4: New file.
125720         Module hash.
125721         * m4/hash.m4: New file.
125723         Module readtokens.
125724         * m4/readtokens.m4: New file.
125726         Module strverscmp.
125727         * m4/strverscmp.m4: New file.
125729         Module stdbool.
125730         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
125731         OSF/1.
125733         Module strtoll.
125734         * m4/strtoll.m4: New file.
125736         Module strtoull.
125737         * m4/strtoull.m4: New file.
125739         Module strtoimax.
125740         * m4/strtoimax.m4: New file.
125742         Module strtoumax.
125743         * m4/strtoumax.m4: New file.
125745         Module xstrtoimax.
125746         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
125747         jm_AC_PREREQ_XSTRTOIMAX.
125748         Moved the strtol prerequisites to strtol.m4.
125749         Moved the strtoll prerequisites to strtoll.m4.
125750         Moved the strtoimax prerequisites to strtoimax.m4.
125752         Module xstrtoumax.
125753         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
125754         jm_AC_PREREQ_XSTRTOUMAX.
125755         Moved the strtoul prerequisites to strtoul.m4.
125756         Moved the strtoull prerequisites to strtoull.m4.
125757         Moved the strtoumax prerequisites to strtoumax.m4.
125759         Module chown.
125760         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
125761         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
125763         Module dup2.
125764         * m4/dup2.m4: New file.
125766         Module ftruncate.
125767         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
125768         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
125770         Module getgroups.
125771         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
125772         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
125774         Module gettimeofday.
125775         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
125776         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
125777         gl_PREREQ_GETTIMEOFDAY.
125779         Module mkdir.
125780         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
125781         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
125783         Module mkstemp.
125784         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
125785         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
125786         jm_AC_TYPE_UINTMAX_T.
125787         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
125789         Module stat.
125790         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
125791         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
125793         Module lstat.
125794         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
125795         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
125797         Module timespec.
125798         * m4/timespec.m4 (gl_TIMESPEC): New macro.
125799         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
125800         * m4/st_mtim.m4: Indentation.
125802         Module nanosleep.
125803         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
125804         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
125805         gl_PREREQ_NANOSLEEP.
125807         Module regex.
125808         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
125809         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
125810         (gl_REGEX): New macro.
125812         Module rename.
125813         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
125814         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
125816         Module rmdir.
125817         * m4/rmdir.m4: New file.
125819         Module utime.
125820         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
125821         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
125822         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
125824         Module dirname.
125825         * m4/dirname.m4: New file.
125827         Module getopt.
125828         * m4/getopt.m4: New file.
125830         Module unistd-safer.
125831         * m4/unistd-safer.m4: New file.
125833         Module fnmatch.
125834         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
125835         declaration.
125836         (gl_PREREQ_FNMATCH_EXTRA): New macro.
125837         (gl_FUNC_FNMATCH_POSIX): New macro.
125838         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
125839         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
125840         simply fnmatch.
125842         Module exclude.
125843         * m4/exclude.m4: New file.
125845         Module human.
125846         * m4/human.m4: New file.
125848         Module acl.
125849         * m4/acl.m4: Nop.
125851         Module backupfile.
125852         * m4/backupfile.m4: New file.
125853         * m4/d-ino.m4: Indentation.
125855         Module fsusage.
125856         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
125857         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
125858         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
125860         Module dirfd.
125861         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
125862         requirements.
125864         Module euidaccess.
125865         * m4/euidaccess.m4: New file.
125867         Module file-type.
125868         * m4/file-type.m4: New file.
125870         Module fileblocks.
125871         * m4/fileblocks.m4: New file.
125873         Module filemode.
125874         * m4/filemode.m4: New file.
125876         Module isdir.
125877         * m4/isdir.m4: New file.
125879         Module lchown.
125880         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
125881         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
125883         Module makepath.
125884         * m4/makepath.m4: New file.
125886         Module modechange.
125887         * m4/modechange.m4: New file.
125889         Module mountlist.
125890         * m4/mountlist.m4: New file.
125891         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
125892         Indentation.
125894         Module path-concat.
125895         * m4/path-concat.m4: New file.
125897         Module pathmax.
125898         * m4/pathmax.m4: New file.
125900         Module same.
125901         * m4/same.m4: New file.
125903         Module save-cwd.
125904         * m4/save-cwd.m4: New file.
125906         Module savedir.
125907         * m4/savedir.m4: New file.
125909         Module xgetcwd.
125910         * m4/xgetcwd.m4: New file.
125911         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
125913         Module xreadlink.
125914         * m4/xreadlink.m4: New file.
125916         Module safe-read.
125917         * m4/safe-read.m4: New file.
125919         Module safe-write.
125920         * m4/safe-write.m4: New file.
125922         Module closeout.
125923         * m4/closeout.m4: New file.
125925         Module stdio-safer.
125926         * m4/stdio-safer.m4: New file.
125928         Module getpass.
125929         * m4/getpass.m4: New file.
125931         Module getugroups.
125932         * m4/getugroups.m4: New file.
125934         Module group-member.
125935         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
125936         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
125938         Module idcache.
125939         * m4/idcache.m4: New file.
125941         Module userspec.
125942         * m4/userspec.m4: New file.
125944         Module gettime.
125945         * m4/clock_time.m4: New file.
125946         * m4/gettime.m4: New file.
125948         Module settime.
125949         * m4/settime.m4: New file.
125951         Module posixtm.
125952         * m4/posixtm.m4: New file.
125954         Module gethostname.
125955         * m4/gethostname.m4: New file.
125957         Module canon-host.
125958         * m4/canon-host.m4: New file.
125960         Module gettext.
125961         * m4/codeset.m4: New file, from gettext-0.11.5.
125962         * m4/gettext.m4: New file, from gettext-0.11.5.
125963         * m4/glibc21.m4: New file, from gettext-0.11.5.
125964         * m4/iconv.m4: New file, from gettext-0.11.5.
125965         * m4/intdiv0.m4: New file, from gettext-0.11.5.
125966         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
125967         * m4/inttypes.m4: New file, from gettext-0.11.5.
125968         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
125969         * m4/isc-posix.m4: New file, from gettext-0.11.5.
125970         * m4/lcmessage.m4: New file, from gettext-0.11.5.
125971         * m4/lib-ld.m4: New file, from gettext-0.11.5.
125972         * m4/lib-link.m4: New file, from gettext-0.11.5.
125973         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
125974         * m4/progtest.m4: New file, from gettext-0.11.5.
125975         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
125976         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
125977         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
125979         Module localcharset.
125980         * m4/localcharset.m4: New file.
125982         Module hard-locale.
125983         * m4/hard-locale.m4: New file.
125985         Module mbswidth.
125986         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
125987         onceonly macros.
125988         * m4/mbrtowc.m4: Add comment.
125990         Module memcasecmp.
125991         * m4/memcasecmp.m4: New file.
125993         Module memcoll.
125994         * m4/memcoll.m4: New file.
125996         Module unicodeio.
125997         * m4/unicodeio.m4: New file.
125999         Module rpmatch.
126000         * m4/rpmatch.m4: New file.
126002         Module yesno.
126003         * m4/yesno.m4: New file.
126005         Module exitfail.
126006         * m4/exitfail.m4: New file.
126008         Module c-stack.
126009         * m4/c-stack.m4 (gl_C_STACK): New macro.
126010         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
126012         Module error.
126013         * m4/error.m4 (gl_ERROR): New macro.
126014         (jm_PREREQ_ERROR): Use onceonly macros.
126016         Module fatal.
126017         * m4/fatal.m4: New file.
126019         Module getloadavg.
126020         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
126021         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
126023         Module getpagesize.
126024         * m4/getpagesize.m4: New file.
126026         Module getusershell.
126027         * m4/getusershell.m4: New file.
126029         Module physmem.
126030         * m4/physmem.m4: New file.
126032         Module posixver.
126033         * m4/posixver.m4: New file.
126035         Module quotearg.
126036         * m4/quotearg.m4: New file.
126038         Module quote.
126039         * m4/quote.m4: New file.
126041         Module readutmp.
126042         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
126044         Module sig2str.
126045         * m4/sig2str.m4: New file.
126047         Other.
126048         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
126049         ulonglong.m4.
126050         * m4/intmax_t.m4: New file.
126051         * m4/d-type.m4: Indentation.
126052         * m4/jm-macros.m4: Update.
126053         * m4/prereq.m4 (jm_PREREQ): Update.
126054         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
126055         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
126056         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
126057         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
126058         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
126059         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
126060         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
126061         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
126062         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
126063         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
126064         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
126065         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
126066         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
126067         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
126068         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
126069         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
126070         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
126071         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
126072         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
126074 2002-12-24  Bruno Haible  <bruno@clisp.org>
126076         * MODULES.txt: Update according to m4/ changes.
126078         Module gettext.
126079         * config.rpath: New file, from gettext-0.11.5.
126081         * modules/*: New module descriptions.
126082         * gnulib-tool: New file.
126083         * MODULES.html.sh: New file.
126085 2002-12-21  Karl Berry  <karl@gnu.org>
126087         * doc/fdl.texi: update to version 1.2.
126089 2002-12-19  Karl Berry  <karl@gnu.org>
126091         * config/config.guess: update from prep.
126093 2002-12-18  Bruno Haible  <bruno@clisp.org>
126095         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
126096         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
126098 2002-12-17  Bruno Haible  <bruno@clisp.org>
126100         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
126101         stdlib.h, string.h.
126103 2002-12-17  Bruno Haible  <bruno@clisp.org>
126105         * lib/canon-host.c (strdup): Remove unused declaration.
126107         * lib/fsusage.c: Include full_read.h.
126108         (get_fs_usage): Use full_read instead of safe_read.
126110         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
126112 2002-12-12  Karl Berry  <karl@gnu.org>
126114         * config/config.guess: update from prep.
126116 2002-12-11  Bruno Haible  <bruno@clisp.org>
126118         * m4/setenv.m4: New file, from gettext-0.11.5.
126120 2002-12-11  Bruno Haible  <bruno@clisp.org>
126122         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
126123         not unsetenv().
126124         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
126125         modifications:
126127         2002-12-11  Bruno Haible  <bruno@clisp.org>
126129                 * setenv.c (alloca): Fall back to malloc.
126130                 (freea): New macro.
126131                 (setenv): Use freea() to free memory allocated with alloca().
126133         2002-11-13  Bruno Haible  <bruno@clisp.org>
126135                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
126136                 function declarations.
126137                 * unsetenv.c (unsetenv): Likewise.
126139         2002-03-04  Bruno Haible  <bruno@clisp.org>
126141                 Portability to AIX 4.3.3.
126142                 * unsetenv.c: New file, extracted from setenv.c.
126143                 * setenv.c: Move the unsetenv() function to unsetenv.c.
126145         2001-12-20  Bruno Haible  <bruno@clisp.org>
126147                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
126148                 use malloc instead. For SunOS 4.
126150         2001-12-11  Bruno Haible  <bruno@clisp.org>
126152                 * setenv.c: Declare alloca.
126153                 (compar_fn_t): New typedef.
126154                 (KNOWN_VALUE, STORE_VALUE): Use it.
126156         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
126157         setenv.h.
126159 2002-12-10  Paul Eggert  <eggert@twinsun.com>
126161         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
126162         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
126163         Choose values that are less likely to collide with system fnmatch
126164         options.
126165         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
126166         defined (e.g., a pure POSIX system).
126167         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
126168         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
126170 2002-12-06  Paul Eggert  <eggert@twinsun.com>
126172         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
126173         a pain in practice to deal with generated m4 files.  This change
126174         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
126176         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
126177         and jm-glibc-io.m4, as they are no longer a special case.
126178         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
126179         kludge and the auto-generation stuff.  Check only whether the
126180         functions are declared, not whether they exist, since older hosts
126181         that don't declare the functions can't use the optimization anyway.
126183 2002-12-06  Jim Meyering  <jim@meyering.net>
126185         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
126187         Merge in changes from libc's misc/error.c, in preparation
126188         for the merge of gnulib's changes back into libc.
126190         * lib/error.c (_): Define only if not already defined.
126191         Move definition to follow all #include directives.
126192         Include unlocked-io.h only if !_LIBC.
126193         [_LIBC]: Include <libio/libioP.h>.
126194         [USE_IN_LIBIO]: Include <libio/iolibio.h>
126195         (fflush): Tweak definition to use INTUSE.
126196         (putc): Define.
126198 2002-12-05  Paul Eggert  <eggert@twinsun.com>
126200         * lib/alloca.c [defined emacs]: Include "lisp.h".
126201         (xalloc_die) [defined emacs]: New macro.
126202         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
126203         [! defined emacs]: Include <xalloc.h>.
126204         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
126205         (pointer): Typedef to POINTER_TYPE *.
126206         (malloc): Remove decl; we now always use xmalloc.
126207         (alloca): Use old-style definition, since Emacs needs this.
126208         Check for arithmetic overflow when computing combined size.
126210 2002-12-04  Paul Eggert  <eggert@twinsun.com>
126212         Do not generate unlocked-io.h automatically, since it's easier to
126213         maintain it by hand.
126215         * lib/unlocked-io.h: New file, from GNU diffutils,
126216         but with proper copyright notice and attribution.
126217         * lib/gen-uio: Remove.
126218         * lib/Makefile.am: Add copyright notice.
126219         (libfetish_a_SOURCES): Add unlocked-io.h.
126220         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
126221         (DISTCLEANFILES, io_functions): Remove macros.
126222         (EXTRA_DIST): Remove gen_uio.
126223         (unlocked-io.h): Remove rule.
126225 2002-12-04  Jim Meyering  <jim@meyering.net>
126227         Reflect the fact that stat.c and lstat.c are no longer generated.
126228         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
126229         (DISTCLEANFILES): Likewise.
126230         (EXTRA_DIST): Likewise.
126231         (all_local): Don't depend on stat.c or lstat.c.
126232         (stat.c, lstat.c): Remove rules.
126233         (EXTRA_DIST): Remove xstat.in.
126235         * lib/xstat.in: Remove file.  Contents moved into stat.c.
126236         * lib/stat.c: New file.  Contents mostly from xstat.in.
126237         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
126238         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
126240         * lib/safe-read.c: Rework so that it may serve to define safe_write,
126241         too.
126242         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
126244 2002-12-03  Jim Meyering  <jim@meyering.net>
126246         * lib/safe-read.c, safe-write.c: Change variable names and comments,
126247         but not semantics, to minimize the differences between these two files.
126248         (safe_read): Change comment to mention SAFE_READ_ERROR.
126250         * lib/safe-read.c (IS_EINTR): Define.
126251         (safe_read): Use IS_EINTR in place of in-function cpp directives.
126253 2002-12-02  Jim Meyering  <jim@meyering.net>
126255         * lib/safe-read.c (EINTR): Define.
126256         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
126257         (INT_MAX): Provide fallback.
126258         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
126260         * lib/safe-read.h (SAFE_READ_ERROR): Define.
126262 2002-12-02  Bruno Haible  <bruno@clisp.org>
126264         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
126265         Define, taken from safe-read.c.
126266         (INT_MAX): Provide fallback.
126267         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
126268         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
126270         * lib/safe-read.c (EINTR): Remove definition.
126271         (safe_read): Don't use EINTR if it is absent.
126273 2002-12-01  Jim Meyering  <jim@meyering.net>
126275         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
126276         zero.
126277         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
126279 2002-11-27  Paul Eggert  <eggert@twinsun.com>
126281         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
126282         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
126283         with `if (! (value < limit)) abort ();', for readability.
126285 2002-11-26  Karl Berry  <karl@gnu.org>
126287         * lib/strdup.c: copy from libc again, with jim's ok.
126288         * lib/.cppi-disable: re-add strdup.c
126290 2002-11-25  Karl Berry  <karl@gnu.org>
126292         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
126293         instead of "strtol.c".
126295 2002-11-25  Karl Berry  <karl@gnu.org>
126297         * config/install-sh: update from automake for variable quoting, $0 in
126298         error msgs, etc.
126300         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
126301         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
126302         entry.
126304 2002-11-25  Jim Meyering  <jim@meyering.net>
126306         * lib/mktime.c: Sync from libc, now that it has the latest fix.
126308 2002-11-24  Karl Berry  <karl@gnu.org>
126310         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
126311         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
126313 2002-11-24  Jim Meyering  <jim@meyering.net>
126315         Update from coreutils:
126317         * lib/mktime.c: Merge in changes from libc.
126319         Avoid a link-time failure on some Linux systems.
126320         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
126321         (otherwise).
126322         (__mon_yday): Declare with the STATIC attribute.
126323         (__mktime_internal): Likewise.
126324         Based on a report from Greg Schafer.
126326 2002-11-23  Jim Meyering  <jim@meyering.net>
126328         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
126329         Use `unsigned', not `int', as type of index.
126331         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
126333         * lib/fsusage.c: Remove unneeded parentheses around operands of
126334         `defined'.
126336 2002-11-22  Paul Eggert  <eggert@twinsun.com>
126338         * lib/quotearg.h: Allow multiple inclusion by surrounding with
126339         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
126340         so that we can be included first.
126341         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
126342         * lib/quotearg.c: Include quotearg.h immediately after config.h.
126343         No need to include stddef.h or sys/types.h any more.
126344         Surround local include files with "", not "<>".
126345         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
126346         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
126347         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
126348         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
126349         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
126350         (ISPRINT): Remove; no longer needed now that we assume C89.
126352         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
126353         Preserve errno.
126355         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
126356         quotearg_char): Use SIZE_MAX rather than
126357         (size_t) -1 when we are talking about "infinity".
126359         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
126361 2002-11-22  Paul Eggert  <eggert@twinsun.com>
126363         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
126364         hint that one should use `if (! x) abort ();' rather than `assert
126365         (x);', and anyway it's one less thing to worry about configuring.
126366         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
126367         hash_rehash, hash_insert): Use abort rather than assert.
126369 2002-11-22  Bruno Haible  <bruno@clisp.org>
126371         * lib/safe-read.h: Assume C89. Add comments.
126372         (safe_read): Change return type to size_t.
126373         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
126374         byte counts > SSIZE_MAX correctly.
126375         * lib/safe-write.h: New file.
126376         * lib/safe-write.c: New file.
126377         * lib/full-read.h: New file.
126378         * lib/full-read.c: New file.
126379         * lib/full-write.h: Assume C89. Add comments.
126380         * lib/full-write.c: Include safe-write.h.
126381         (full_write): Rewritten to use safe_write.
126382         Suggested by Jim Meyering and Paul Eggert.
126384 2002-11-21  Jim Meyering  <jim@meyering.net>
126386         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
126388         Merge in changes from the coreutils.
126390         2002-09-25  Paul Eggert  <eggert@twinsun.com>
126391         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
126392         <stdint.h>.
126393         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
126394         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
126395         int.  Work more efficiently if X is the same width as uintmax_t.
126396         Do not compare X to -1, to avoid bogus compiler warning.
126397         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
126398         Don't assume that f_frsize and f_bsize are the same type.
126400         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
126401         warning on FreeBSD.
126403         * lib/makepath.c (make_path): Restore umask *before* creating the final
126404         component.
126405         (make_path): Minor reformatting.
126407         * lib/xmalloc.c: Adjust to work with new autoconf macros,
126408         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
126409         HAVE_MALLOC/HAVE_REALLOC.
126411         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
126412         dummy ones.  At least on GNU/Linux systems, `auto' means something
126413         else.
126414         From Michael Stone.
126416 2002-11-21  Bruno Haible  <bruno@clisp.org>
126418         Remove case insensitive option matching.
126419         * lib/argmatch.h (argcasematch): Remove declaration.
126420         (ARGCASEMATCH): Remove macro.
126421         (__xargmatch_internal): Remove case_sensitive argument.
126422         (XARGMATCH): Update.
126423         (XARGCASEMATCH): Remove macro.
126424         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
126425         case_sensitive argument.
126426         (argcasematch): Remove function.
126427         (__xargmatch_internal): Remove case_sensitive argument.
126428         (main): Use XARGMATCH instead of XARGCASEMATCH.
126430         * lib/xmalloc.c: Change compile-time error message. Add comment about
126431         required autoconf version.
126433 2002-11-20  Paul Eggert  <eggert@twinsun.com>
126435         Merge argmatch cleanups from Bison.  Assume C89.
126437         * lib/argmatch.c: Include config.h here, not in argmatch.h.
126438         Include stdlib.h, for EXIT_FAILURE.
126439         Always include <string.h>, since we assume C89.
126440         (EXIT_FAILURE): Remove pre-C89 bug workaround.
126441         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
126442         Include <stddef.h> instead, since it's all we need for size_t.
126443         (PARAMS): Remove.  All uses removed.
126444         (ARRAY_CARDINALITY): Do not bother to #undef.
126445         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
126446         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
126447         Remove unnecessary parentheses.
126448         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
126449         Insert necessary parentheses.
126450         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
126451         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
126453 2002-11-19  Bruno Haible  <bruno@clisp.org>
126455         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
126456         * lib/mbswidth.h: Include <stddef.h>, for size_t.
126458         * lib/mbswidth.h (PARAMS): Remove macro.
126459         (mbswidth, mbsnwidth): Use ANSI C function declarations.
126460         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
126462         * lib/gcd.h (PARAMS): Remove macro.
126463         (gcd): Use ANSI C function declarations.
126464         * lib/gcd.c (gcd): Likewise.
126466 2002-11-15  Bruno Haible  <bruno@clisp.org>
126468         * lib/strcspn.c: Include <stddef.h>.
126469         (strcspn): Use ANSI C function declaration. Change return type to
126470         size_t. Use NULL.
126471         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
126472         (strpbrk): Use NULL.
126473         * lib/strpbrk.h (PARAMS): Remove macro.
126474         (strpbrk): Use ANSI C function declaration.
126475         * lib/strstr.c: Don't include <sys/types.h>.
126476         * lib/strstr.h (PARAMS): Remove macro.
126477         (strstr): Use ANSI C function declarations.
126479 2002-11-14  Karl Berry  <karl@gnu.org>
126481         * config/mkinstalldirs: `do' on separate line, instead of
126482         `for var; do'.
126484 2002-11-06  Bruno Haible  <bruno@clisp.org>
126486         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
126487         * lib/gcd.c (gcd): Likewise.
126489 2002-11-05  Bruno Haible  <bruno@clisp.org>
126491         * lib/gcd.h: New file, from gettext-0.11.5.
126492         * lib/gcd.c: New file, from gettext-0.11.5.
126494 2002-11-05  Bruno Haible  <bruno@clisp.org>
126496         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
126497         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
126498         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
126499         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
126501         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
126502         <libintl.h>.
126503         * lib/makepath.c: Include gettext.h instead of <locale.h> and
126504         <libintl.h>.
126506         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
126507         * lib/human.c: Include gettext.h instead of <libintl.h>.
126508         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
126509         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
126510         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
126511         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
126512         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
126513         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
126514         (textdomain): Remove definition.
126515         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
126517         * lib/long-options.c: Remove include of <libintl.h> and definition of
126518         _.
126519         * lib/same.c: Remove include of <libintl.h> and definition of _.
126521 2002-11-04  Owen Taylor  <otaylor@redhat.com>
126523         * lib/config.charset: A few additions for Solaris.
126525 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
126527         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
126528         * lib/localcharset.c (locale_charset): Declare as extern "C".
126530 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
126532         * lib/config.charset: msdos in uk_UA uses CP1125.
126534 2002-11-04  Bruno Haible  <bruno@clisp.org>
126536         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
126537         * lib/strcase.h: New file, from GNU gettext-0.11.5.
126538         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
126539         * lib/strstr.h: New file, from GNU gettext-0.11.5.
126540         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
126542 2002-11-04  Bruno Haible  <bruno@clisp.org>
126544         * lib/localcharset.c (locale_charset): Don't return an empty string.
126546 2002-11-04  Bruno Haible  <bruno@clisp.org>
126548         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
126549         aliases.
126551 2002-11-04  Bruno Haible  <bruno@clisp.org>
126553         * lib/config.charset: Update for newest glibc. Add canonical names
126554         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
126556 2002-11-04  Bruno Haible  <bruno@clisp.org>
126558         * lib/config.charset: Add support for NetBSD.
126560 2002-11-04  Bruno Haible  <bruno@clisp.org>
126562         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
126564 2002-11-01  Bruno Haible  <bruno@clisp.org>
126566         * configure.in: Add AC_CONFIG_AUX_DIR call.
126567         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
126568         test/Makefile.
126569         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
126571 2002-09-28  Karl Berry  <karl@gnu.org>
126573         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
126574         installed automake until the next release, since changes have been
126575         made.
126577 2002-09-25  Karl Berry  <karl@gnu.org>
126579         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
126580         * lib/getopt*: copy from libc/posix.
126581         * lib/gettext.h: copy from gettext.
126582         * lib/.cppi-disable: add strdup.c, gettext.h.
126584 2002-09-25  Karl Berry  <karl@gnu.org>
126586         * config/srclist.txt: enable gettext.h check.
126587         * config/config.{guess,sub}: update from prep.
126588         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
126589                 from automake 1.6.3.
126590         See srclist*.
126592 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
126594         * regex.c (PATFETCH): Remove the translating fetch.
126595         (PATFETCH_RAW): Rename to PATFETCH.
126596         (set_image_of_range): New fun.
126597         (SET_RANGE_TABLE_WORK_AREA): Use it.
126598         (regex_compile): Don't translate the pattern chars so eagerly.
126599         Only do it when inserting an `exactn' bytecode or when handling
126600         a char-range.
126601         (mutually_exclusive_p): Avoid empty statement.
126603 2002-07-06  Jim Meyering  <meyering@lucent.com>
126605         * m4/README: Don't mention Makefile.am.in.
126606         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
126608 2002-07-01  Jim Meyering  <meyering@lucent.com>
126610         * lib/c-stack.c: Include sys/time.h.
126611         From Volker Borchert.
126613 2002-06-26  Paul Eggert  <eggert@twinsun.com>
126615         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
126617 2002-06-26  Paul Eggert  <eggert@twinsun.com>
126619         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
126620         New macro.  Use it uniformly instead of
126621         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
126622         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
126623         reported by Vin Shelton.
126625 2002-06-22  Paul Eggert  <eggert@twinsun.com>
126627         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
126628         Do not assume SA_SIGINFO behavior.
126629         Bug reported by Jim Meyering on NetBSD 1.5.2.
126631 2002-06-22  Jim Meyering  <meyering@lucent.com>
126633         * m4/c-stack.m4: New file, from diffutils-2.8.2.
126634         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
126636         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
126637         now that configure.ac uses AC_GNU_SOURCE.
126638         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
126639         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
126641         Update to latest tools.  Suggestions from Paul Eggert.
126642         * m4/stdbool.m4: New file, from diffutils-2.8.2.
126643         * m4/gnu-source.m4: Update from diffutils-2.8.2.
126644         * m4/fnmatch.m4: Likewise.
126645         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
126646         to AC_HEADER_STDBOOL
126648 2002-06-22  Jim Meyering  <meyering@lucent.com>
126650         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
126651         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
126653 2002-06-22  Jim Meyering  <meyering@lucent.com>
126655         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
126657         * lib/exitfail.c, exitfail.h: Likewise.
126658         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
126660         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
126661         of fnmatch.h.
126662         (EXTRA_DIST): Add fnmatch_loop.c.
126663         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
126665         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
126666         * lib/fnmatch.c: Update from diffutils-2.8.2.
126667         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
126668         * lib/fnmatch.h: Remove file.
126670 2002-06-21  Jim Meyering  <meyering@lucent.com>
126672         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
126673         * m4/mbrtowc.m4: Likewise.
126675         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
126676         * m4/mbswidth.m4: Reflect name change:
126677         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
126678         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
126680         * m4/lib-link.m4: Update from gettext-0.11.2.
126681         * m4/gettext.m4: Likewise.
126683         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
126684         From Alfred M. Szmidt.
126686 2002-06-18  Paul Eggert  <eggert@twinsun.com>
126688         * lib/file-type.h: Report an error if neither S_ISREG nor
126689         S_IFREG is defined, instead of using a test specific to glibc
126690         2.2.  This should be safe, since POSIX requires S_ISREG and
126691         Unix Version 7 had S_IFREG.  We don't need to check for
126692         <sys/types.h> since we don't use any symbols that it defines.
126694 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
126696         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
126697         $@-t, so that each temporary file name is unique and valid in the first
126698         8 characters, for operation under DOS.
126700 2002-06-15  Paul Eggert  <eggert@twinsun.com>
126702         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
126704 2002-06-15  Jim Meyering  <meyering@lucent.com>
126706         Work even with DJGPP 2.03, which lacks support for symlinks.
126707         From Richard Dawe.
126708         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
126709         is defined.
126710         * lib/lchown.c (S_ISLNK): Likewise.
126712 2002-06-15  Jim Meyering  <meyering@lucent.com>
126714         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
126715         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
126716         have been included before this file.
126718 2002-06-14  Jim Meyering  <meyering@lucent.com>
126720         * lib/file-type.h: Use the version from diffutils-2.8.2.
126721         * lib/file-type.c: Likewise.
126723 2002-06-07  Jim Meyering  <meyering@lucent.com>
126725         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
126726         They're needed at least for NetBSD 1.5.2.
126727         ($statxfs_includes): Include those same headers.
126728         ($statxfs_includes): Include sys/vfs.h if available.
126729         ($statxfs_includes): Likewise for sys/statvfs.h.
126730         Check for the following members in both structs statfs and statvfs:
126731         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
126733 2002-06-01  Jim Meyering  <meyering@lucent.com>
126735         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
126736         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
126738 2002-05-28  Jim Meyering  <meyering@lucent.com>
126740         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
126741         Reported by Volker Borchert.
126743 2002-05-27  Jim Meyering  <meyering@lucent.com>
126745         Fix a problem seen only on nonconforming systems whereby ls.c's
126746         use of localtime, and then of gettimeofday would cause trouble:
126747         the localtime call used to initialize rpl_gettimeofday's save
126748         mechanism would clobber ls's current local time information so
126749         that in any long listing the first file would always be listed
126750         with date 1970-01-01.  Analysis by Volker Borchert.
126752         * lib/gettimeofday.c (localtime): Undefine.
126753         (rpl_localtime): New function.
126755 2002-05-27  Jim Meyering  <meyering@lucent.com>
126757         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
126758         localtime.
126760         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
126761         use the replacement function; it wouldn't resolve at link time.
126762         Reported by Volker Borchert.
126764 2002-05-22  Jim Meyering  <meyering@lucent.com>
126766         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
126767         file-type.h.
126768         * lib/file-type.h: New file.
126769         * lib/file-type.c (file_type): New file/function.  Extracted from
126770         diffutils.
126772 2002-04-30  Jim Meyering  <meyering@lucent.com>
126774         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
126776 2002-04-29  Paul Eggert  <eggert@twinsun.com>
126778         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
126780 2002-04-29  Paul Eggert  <eggert@twinsun.com>
126782         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
126783         Do not check for alloca.h (no longer used) or stdbool.h (was never
126784         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
126786 2002-04-29  Paul Eggert  <eggert@twinsun.com>
126788         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
126790 2002-04-29  Jim Meyering  <meyering@lucent.com>
126792         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
126793         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
126794         Use AC_FUNC_STRNLEN here instead.
126796         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
126797         With autoconf-2.53a, it's part of AC_PROG_CC.
126799 2002-04-28  Paul Eggert  <eggert@twinsun.com>
126801         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
126802         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
126804 2002-04-28  Paul Eggert  <eggert@twinsun.com>
126806         * lib/sig2str.h, lib/sig2str.c: New files.
126807         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
126809 2002-04-28  Paul Eggert  <eggert@twinsun.com>
126811         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
126812         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
126813         of 127, since 64 is the largest conceivable number for ancient
126814         nonstandard hosts.
126815         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
126817 2002-04-28  Jim Meyering  <meyering@lucent.com>
126819         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
126821 2002-04-24  Jim Meyering  <meyering@lucent.com>
126823         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
126824         (jm_PREREQ): Use it.
126826         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
126827         mach/mach.h fcntl.h.
126828         Check for this function: setlocale.
126830 2002-04-24  Jim Meyering  <meyering@lucent.com>
126832         * lib/gettext.h: New file, from Gettext.
126833         * lib/Makefile.am (INCLUDES): Remove -I../intl.
126834         (libfetish_a_SOURCES): Add gettext.h.
126836 2002-04-16  Jim Meyering  <meyering@lucent.com>
126838         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
126839         ut_pid, ut_id, ut_exit.
126841 2002-04-16  Jim Meyering  <meyering@lucent.com>
126843         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
126844         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
126845         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
126847 2002-04-12  Jim Meyering  <meyering@lucent.com>
126849         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
126850         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
126851         existence of the getmntinfo function.  Needed for Darwin 5.3.
126853         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
126854         This is necessary at least on Darwin 5.3.
126856         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
126857         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
126858         strnlen.o in the library, and that makes some versions of ranlib
126859         object.
126861 2002-04-12  Jim Meyering  <meyering@lucent.com>
126863         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
126865 2002-04-09  Jim Meyering  <meyering@lucent.com>
126867         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
126868         to be more precise.  Rather than saying we're checking whether the
126869         function `works', say what we're testing.
126870         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
126871         Reported by Bruno Haible.
126873 2002-03-10  Jim Meyering  <meyering@lucent.com>
126875         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
126876         Suggestion from Santiago Vila.
126878 2002-03-08  Jim Meyering  <meyering@lucent.com>
126880         * lib/rename.c: Mention that this wrapper is needed also on
126881         mips-dec-ultrix4.4 systems.
126883 2002-03-02  Jim Meyering  <meyering@lucent.com>
126885         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
126886         not HAVE_CLOCK_SETTIME.
126888 2002-02-27  Paul Eggert  <eggert@twinsun.com>
126890         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
126891         Check for clock_settime.
126893 2002-02-27  Paul Eggert  <eggert@twinsun.com>
126895         * lib/nanosleep.h: Rename to....
126896         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
126898         * lib/gettime.c: New file.
126899         * lib/settime.c: New file.
126900         * lib/stime.c: Remove.
126902         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
126903         timespec.h.  Remove nanosleep.h.
126905 2002-02-25  Paul Eggert  <eggert@twinsun.com>
126907         * m4/acl.m4: New file.
126908         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
126909         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
126911 2002-02-25  Paul Eggert  <eggert@twinsun.com>
126913         * lib/acl.c, lib/acl.h: New files.
126914         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
126916 2002-02-24  Jim Meyering  <meyering@lucent.com>
126918         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
126919         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
126920         cause trouble.  Reported by Nelson Beebe.
126922 2002-02-23  Paul Eggert  <eggert@twinsun.com>
126924         * lib/path-concat.c (xpath_concat): Reorder code to pacify
126925         compilers that don't know that xalloc_die never returns.
126927 2002-02-20  Jim Meyering  <meyering@lucent.com>
126929         * lib/getdate.c: Regenerate using bison-1.33.
126931 2002-02-17  Jim Meyering  <meyering@lucent.com>
126933         * config/config.guess (main): Don't use `head -1'; it's no longer
126934         portable. Use `sed 1q' instead.
126936 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
126938         * m4/codeset.m4: Upgrade to gettext-0.11.
126939         * m4/gettext.m4: Upgrade to gettext-0.11.
126940         * m4/glibc21.m4: Upgrade to gettext-0.11.
126941         * m4/iconv.m4: Upgrade to gettext-0.11.
126942         * m4/isc-posix.m4: Upgrade to gettext-0.11.
126943         * m4/lcmessage.m4: Upgrade to gettext-0.11.
126944         * m4/lib-ld.m4: New file, from gettext-0.11.
126945         * m4/lib-link.m4: New file, from gettext-0.11.
126946         * m4/lib-prefix.m4: New file, from gettext-0.11.
126947         * m4/progtest.m4: Upgrade to gettext-0.11.
126949 2002-02-15  Paul Eggert  <eggert@twinsun.com>
126951         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
126952         (jm_PREREQ): Use it.
126954 2002-02-15  Paul Eggert  <eggert@twinsun.com>
126956         * lib/posixver.c, lib/posixver.h: New files.
126957         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
126959 2002-02-02  Paul Eggert  <eggert@twinsun.com>
126960             Bruno Haible  <bruno@clisp.org>
126962         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
126963         (fwrite_success_callback): New declaration.
126964         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
126965         print_unicode_char. Call failure callback instead of error.
126966         (fwrite_success_callback): New function.
126967         (exit_failure_callback): New function.
126968         (fallback_failure_callback): New function.
126969         (print_unicode_char): Call unicode_to_mb.
126971 2002-01-26  Jim Meyering  <meyering@lucent.com>
126973         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
126974         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
126976 2002-01-26  Jim Meyering  <meyering@lucent.com>
126978         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
126980 2002-01-22  Paul Eggert  <eggert@twinsun.com>
126982         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
126984 2002-01-22  Jim Meyering  <meyering@lucent.com>
126986         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
126987         Otherwise, some versions of automake would omit the rule that makes
126988         Makefile from Makefile.in.
126990 2002-01-21  Paul Eggert  <eggert@twinsun.com>
126992         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
126993         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
126994         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
126995         (memcoll): Set errno to zero if there is no error.
126997         * lib/quotearg.c (quotearg_buffer_restyled):
126998         Fix bug with quoting buffers containing NUL when backslashing escapes.
126999         This bug was exposed by the other changes in this patch.
127000         (quotearg_n_options): New arg ARGSIZE.
127001         All callers changed.
127002         (quoting_options_from_style): New function.
127003         (quotearg_n_style): Use it.
127004         (quotearg_n_style_mem): New function.
127006         * lib/quotearg.h (quotearg_n_style_mem): New function.
127008 2002-01-19  Jim Meyering  <meyering@lucent.com>
127010         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
127011         Remove useless quotes: DF_PROG="df".
127012         * m4/strnlen.m4: New file.
127014 2002-01-16  Paul Eggert  <eggert@twinsun.com>
127016         * lib/backupfile.c (ISDIGIT): Comment fix.
127017         * lib/getdate.y (ISDIGIT): Likewise.
127018         * lib/posixtm.c (ISDIGIT, year): Likewise.
127019         * lib/strverscmp.c (ISDIGIT): Likewise.
127020         * lib/userspec.c (ISDIGIT): Likewise.
127022 2002-01-16  Jim Meyering  <meyering@lucent.com>
127024         * lib/getdate.y: Add three semicolons, each just before a closing
127025         brace. Bison (as of version 1.31) no longer papers over that mistake.
127027 2002-01-05  Jim Meyering  <meyering@lucent.com>
127029         * lib/version-etc.c (version_etc_copyright): Update copyright year.
127031 2001-12-19  Paul Eggert  <eggert@twinsun.com>
127033         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
127034         not silently exit merely because the output buffer happens to
127035         have nothing pending.
127037 2001-12-18  Paul Eggert  <eggert@twinsun.com>
127039         See the big note in ../ChangeLog.
127040         * lib/human.c (suffixes): Prefer K to k for 1024.
127041         (generate_suffix_backwards): New function.
127042         (human_readable_inexact): Use it.
127043         * lib/xstrtol.c (__xstrtol): If there is no number but there
127044         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
127045         Accept 'K' as well as 'k'.
127047 2001-12-15  Jim Meyering  <meyering@lucent.com>
127049         * lib/regex.h (__restrict_arr): Update from libc.
127051         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
127052         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
127053         (STREQ): Define.
127055 2001-12-14  Jim Meyering  <meyering@lucent.com>
127057         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
127058         Suggestion from Bruno Haible.
127060 2001-12-10  Jim Meyering  <meyering@lucent.com>
127062         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
127063         xrealloc, Instead, include "xalloc.h".
127064         (initbuffer): Don't cast xmalloc return value to char*.
127065         (readline): Reword comment.
127066         Don't cast xrealloc return value to char*
127067         Return NULL, not 0.
127069 2001-12-09  Jim Meyering  <meyering@lucent.com>
127071         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
127072         about `signed and unsigned type in conditional expression'.
127073         * lib/posixtm.c (posix_time_parse): Likewise.
127075         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
127077         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
127078         to avoid a pedantic warning.
127080         * lib/getstr.c: Don't include assert.h.
127081         (getstr): Remove warning-evoking assertions.
127082         Return -1 if offset parameter is out of bounds.
127083         Change the type of a local from int to size_t.
127085         * lib/strftime.c (my_strftime_localtime_r): Include this function
127086         definition in the `#if ! HAVE_TM_GMTOFF' block.
127088         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
127089         Include xalloc.h instead.
127091 2001-12-02  Jim Meyering  <meyering@lucent.com>
127093         * lib/tempname.c: Don't declare getenv, thus reverting the change of
127094         2001-11-18.  It's no longer necessary, now that stdlib.h is always
127095         included.
127097         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
127098         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
127100 2001-11-30  Akim Demaille  <akim@epita.fr>
127102         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
127103         before being defined.
127105 2001-11-27  Paul Eggert  <eggert@twinsun.com>
127107         * lib/quotearg.h (quotearg_n, quotearg_n_style):
127108         First arg is int, not unsigned.
127109         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
127110         (SIZE_MAX, UINT_MAX): New macros.
127111         (quotearg_n_options): Abort if N is negative.
127112         Avoid overflow check on hosts where size_t is 64 bits and int
127113         is 32 bits, as overflow is impossible there.
127114         Fix off-by-one typo that caused unnecessary reallocation.
127116 2001-11-27  Jim Meyering  <meyering@lucent.com>
127118         * lib/tempname.c: Merge with version from libc.
127119         * lib/regex.c: Likewise.
127121         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
127122         systems for which STDC_HEADERS is 0, it was not included, resulting in
127123         a warning about an integer-to-pointer conversion problem with getenv.
127124         Reported by Volker Borchert.
127126 2001-11-26  Jim Meyering  <meyering@lucent.com>
127128         * lib/gtod.h: Remove file.
127129         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
127130         * lib/gettimeofday.c: Don't include gtod.h.
127131         (GTOD_init): Remove function.
127132         (rpl_gettimeofday): Do its job here instead, rather than aborting.
127133         Suggestion from Volker Borchert.
127135 2001-11-23  Jim Meyering  <meyering@lucent.com>
127137         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
127138         it.
127139         * lib/hash.c (struct hash_table): Define it here instead.
127141 2001-11-22  Jim Meyering  <meyering@lucent.com>
127143         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
127145 2001-11-20  Jim Meyering  <meyering@lucent.com>
127147         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
127148         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
127150 2001-11-19  Jim Meyering  <meyering@lucent.com>
127152         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
127153         directory.  Use "conftestXXXXXX" as the template.
127154         Suggestion from Paul Eggert.
127156         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
127157         immediately, so the test doesn't mistakenly hit the max-open-files
127158         limit.
127160 2001-11-18  Paul Eggert  <eggert@twinsun.com>
127162         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
127163         (TEMPORARIES): New macro.
127164         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
127165         removes an artificial limitation (e.g. HP-UX 10.20, where
127166         TMP_MAX is 17576).
127168 2001-11-18  Jim Meyering  <meyering@lucent.com>
127170         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
127172 2001-11-18  Jim Meyering  <meyering@lucent.com>
127174         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
127175         on SunOS 4.
127177         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
127178         files will be created before anything else.
127180 2001-11-17  Paul Eggert  <eggert@twinsun.com>
127182         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
127183         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
127185 2001-11-17  Jim Meyering  <meyering@lucent.com>
127187         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
127188         Prompted by a report from Bob Proulx.
127190         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
127191         Instead, require UTILS_FUNC_MKSTEMP.
127193 2001-11-17  Jim Meyering  <meyering@lucent.com>
127195         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
127196         Now, that's done as part of AC_FUNC_STRTOD.
127198 2001-11-17  Jim Meyering  <meyering@lucent.com>
127200         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
127201         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
127202         rather than group writable.  Patch by Juan F. Codagnone.
127204         * lib/readtokens.c: Remove explicit declarations of xmalloc and
127205         xrealloc, Instead, include "xalloc.h".
127207         * lib/mountlist.c: Include unlocked-io.h after all system headers.
127208         Remove explicit declarations of xmalloc, xrealloc,
127209         and xstrdup.  Instead, include "xalloc.h".
127211         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
127212         unlocked-io.h.
127213         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
127214         Likewise.
127215         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
127217         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
127218         Reported by Padraig Brady.
127220         * lib/mkstemp.c: #undef mkstemp.
127221         Include config.h.
127222         (rpl_mkstemp): Rename from mkstemp.
127223         Protoize.
127225 2001-11-16  Jim Meyering  <meyering@lucent.com>
127227         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
127228         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
127229         determine the amount of total physical memory, use pstat_getstatic.
127230         HPUX-11 doesn't define _SC_PHYS_PAGES.
127231         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
127232         If sysconf couldn't be used to determine the amount of available
127233         physical memory, use both pstat_getstatic and pstat_getdynamic.
127234         Based on a patch from Bob Proulx.
127236 2001-11-10  Jim Meyering  <meyering@lucent.com>
127238         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
127239         (jm_PREREQ): Use it.
127241 2001-11-09  Jim Meyering  <meyering@lucent.com>
127243         * m4/jm-macros.m4: Require autoconf-2.52f.
127244         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
127245         Use these AC_-prefixed names, not the AM_-prefixed ones.
127247         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
127249 2001-11-05  Jim Meyering  <meyering@lucent.com>
127251         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
127253 2001-11-04  Jim Meyering  <meyering@lucent.com>
127255         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
127256         $DEFS.
127258 2001-11-03  Jim Meyering  <meyering@lucent.com>
127260         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
127261         of AC_DEFUN.
127263         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
127264         know the name of the variable in the macro definition.
127266 2001-11-03  Jim Meyering  <meyering@lucent.com>
127268         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
127269         in argmatch_to_argument call.
127271         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
127272         argument.
127274         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
127275         e.g., a fault due to an attempt to free a NULL pointer.
127277 2001-11-01  Jim Meyering  <meyering@lucent.com>
127279         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
127280         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
127282 2001-11-01  Jim Meyering  <meyering@lucent.com>
127284         * lib/dirfd.c, lib/dirfd.h: New files.
127285         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
127287         * lib/hash.c (hash_print) [TESTING]: Clean up.
127289 2001-10-22  Paul Eggert  <eggert@twinsun.com>
127291         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
127292         to avoid a warning if -Wall.
127294 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
127296         * README: New file
127297         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
127298         (per RMS's instructions, this is now the canonical source)
127299         * lgpl/, gpl/: New directories.
127301 2001-10-21  Paul Eggert  <eggert@twinsun.com>
127303         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
127305 2001-10-21  Jim Meyering  <meyering@lucent.com>
127307         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
127308         this code would end up calling gettext even in packages built
127309         with --disable-nls.
127310         * lib/getopt.c (_): Likewise.
127311         * lib/regex.c (_): Likewise.
127313 2001-10-20  Paul Eggert  <eggert@twinsun.com>
127315         * m4/error.m4 (jm_PREREQ_ERROR):
127316         Do not invoke AC_CHECK_FUNCS with strerror_r, as
127317         AC_FUNC_STRERROR_R does that.
127318         Check for strerror declaration.
127320         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
127321         are supposed to have them these days.
127322         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
127323         Merge changes from latest Autoconf CVS.
127324         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
127325         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
127326         POSIX decided to standardize on the int flavor of strerror_r.
127328 2001-10-20  Paul Eggert  <eggert@twinsun.com>
127330         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
127331         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
127332         Use strerror_r that is only a macro, even if it is not a function.
127333         (strerror): Check for HAVE_DECL_STRERROR before declaring.
127334         (private_strerror): Use prototypes, not old-style function definition.
127335         (print_errno_message): New function.
127336         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
127337         char*-flavored one.
127338         (error_tail, error, error_at_line): Use it.
127340 2001-10-11  Jim Meyering  <meyering@lucent.com>
127342         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
127343         and quote_n (1, ... to avoid clobbering a buffer.
127345 2001-10-05  Jim Meyering  <meyering@lucent.com>
127347         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
127348         hash-pjw.h.
127349         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
127350         * lib/hash-pjw.h: New file.
127352 2001-09-30  Jim Meyering  <meyering@lucent.com>
127354         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
127355         `struct fsstat' has the `f_fstypename' member.
127356         Use that to define FS_TYPE, which is now used to make
127357         the getfsstat link test tighter.
127359 2001-09-30  Jim Meyering  <meyering@lucent.com>
127361         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
127362         Include <sys/ucred.h>, for Apple Darwin.
127363         Include sys/mount.h and sys/fs_types.h only if available.
127364         (FS_TYPE): Define.
127365         (read_filesystem_list): Use FS_TYPE.
127367 2001-09-29  Paul Eggert  <eggert@twinsun.com>
127369         * lib/exclude.c (excluded_filename): 0 -> false, since it's
127370         a boolean context.
127372 2001-09-29  Jim Meyering  <meyering@lucent.com>
127374         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
127375         [one-argument getmntent function]): Include stdio.h before mntent.h.
127376         SunOS 4.1.x needs it for the declaration of `FILE'.
127377         Patch by Volker Borchert.
127379         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
127380         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
127381         sys/fs_types.h, and make the link-test for getfsstat guard #include
127382         directives with appropriate #if HAVE_*_H tests so that we can
127383         detect getfsstat on Apple Darwin1.3.7 systems.
127384         Reported by Nelson Beebe.
127385         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
127387 2001-09-28  Paul Eggert  <eggert@twinsun.com>
127389         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
127390         #defines strtoimax.  Also treat the other strto* functions
127391         like strtoimax.
127393         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
127394         Check for strtoul and strtoumax,
127395         as those declarations are made even in the signed case.
127396         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
127397         Likewise, for strtol and strtoimax.
127399 2001-09-28  Paul Eggert  <eggert@twinsun.com>
127401         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
127402         #defines strtoimax.  Also treat the other strto* functions
127403         like strtoimax.
127405         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
127406         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
127407         (strtoimax, strtoumax): Do not declare if already defined as a macro.
127409 2001-09-26  Jim Meyering  <meyering@lucent.com>
127411         Most macros in unlocked-io.h had the wrong number of arguments.
127412         * lib/gen-uio: New script.
127413         (USE_UNLOCKED_IO): Define to 1 if not already defined.
127414         * lib/unlocked-io.hin: Remove file.
127415         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
127416         rather than trying to embed it here.
127417         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
127418         Reported by Padraig Brady.
127420 2001-09-25  Volker Borchert  <bt@teknon.de>
127422         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
127423         `result'.
127425 2001-09-24  Jim Meyering  <meyering@lucent.com>
127427         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
127429 2001-09-23  Jim Meyering  <meyering@lucent.com>
127431         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
127432         instead of the mere test for existence of mntent.h.  The latter
127433         would get a false-positive on AIX 3.4 systems.
127434         In the outer getmntent if-block, don't die if neither of the getmntent
127435         tests succeeds.  Instead, just fall through and continue with the
127436         remaining tests.
127438 2001-09-23  Jim Meyering  <meyering@lucent.com>
127440         * lib/mountlist.c: Remove useless parentheses in #if directives.
127441         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
127442         the deprecated MOUNTED symbol is no longer defined in mntent.h.
127444 2001-09-22  Jim Meyering  <meyering@lucent.com>
127446         * m4/gettext.m4: New file.  From gettext.
127447         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
127448         * m4/progtest.m4: Likewise
127449         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
127450         * m4/glibc21.m4: Likewise.
127452         * m4/libintl.m4: Remove.  No longer used.
127454 2001-09-22  Jim Meyering  <meyering@lucent.com>
127456         * lib/localcharset.c: Update from latest gettext.
127457         * lib/config.charset: Likewise.
127459 2001-09-20  Jim Meyering  <meyering@lucent.com>
127461         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
127462         strtoimax.
127463         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
127464         strtoumax.
127466 2001-09-20  Jim Meyering  <meyering@lucent.com>
127468         * lib/xstrtol.c (strtoimax): Guard declaration with
127469         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
127470         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
127471         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
127472         (strtoumax): Likewise, for completeness (it wasn't necessary).
127474 2001-09-17  Paul Eggert  <eggert@twinsun.com>
127476         * lib/strtoimax.c (HAVE_LONG_LONG):
127477         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
127478         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
127479         to work around bug in IBM C compiler.
127481 2001-09-17  Jim Meyering  <meyering@lucent.com>
127483         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
127484         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
127485         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
127486         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
127487         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
127488         whenever the right hand side need not be expanded by the shell.
127490 2001-09-16  Paul Eggert  <eggert@twinsun.com>
127492         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
127493         library.  It's not correct, as some older glibcs are buggy.
127494         fnmatch wasn't fixed until glibc 2.2.
127496         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
127497         special shell magic here.
127499 2001-09-16  Jim Meyering  <meyering@lucent.com>
127501         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
127502         * m4/jm-macros.m4: Require it.
127504 2001-09-16  Jim Meyering  <meyering@lucent.com>
127506         * lib/mkdir.c: New file.
127508 2001-09-15  Jim Meyering  <meyering@lucent.com>
127510         * m4/jm-macros.m4: Check for help2man.
127512 2001-09-11  Jim Meyering  <meyering@lucent.com>
127514         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
127515         The body, by Paul Eggert, was moved here from configure.in.
127516         * m4/jm-macros.m4: Require UTILS_HOST_OS.
127518 2001-09-04  Paul Eggert  <eggert@twinsun.com>
127520         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
127521         (jm_PREREQ): Use it.
127523 2001-09-04  Paul Eggert  <eggert@twinsun.com>
127525         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
127526         Use ssize_t, not int, to store result of readlink.
127527         Check for ssize_t overflow as well as size_t overflow,
127528         as POSIX says the result of readlink is implementation-defined
127529         when ssize_t overflows.
127530         Remove unnecessary cast to char*.
127531         Use free+malloc instead of realloc, as the storage doesn't need
127532         to be preserved and it's clearer and can be more efficient that way.
127533         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
127534         * lib/xreadlink.h (xreadlink): Update prototype.
127536 2001-09-04  Paul Eggert  <eggert@twinsun.com>
127538         * lib/xgetcwd.c: Revert some of the previous change; intead,
127539         fix the HAVE_GETCWD_NULL code to behave more like the
127540         !HAVE_GETCWD_NULL code used to.
127542         Include "xalloc.h".
127543         (xgetcwd): Do not return NULL when memory is exhausted; instead,
127544         invoke xalloc_die.
127546 2001-09-03  Paul Eggert  <eggert@twinsun.com>
127548         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
127549         sys/param.h, as pathmax.h includes them.
127551 2001-09-03  Paul Eggert  <eggert@twinsun.com>
127553         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
127554         (jm_PREREQ_XGETCWD): New macro.
127556         * m4/getcwd.m4: New file.
127558 2001-09-03  Paul Eggert  <eggert@twinsun.com>
127560         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
127561         like the HAVE_GETCWD_NULL code.
127562         Include pathmax.h if not HAVE_GETCWD.
127563         Do not include xalloc.h.
127564         (INITIAL_BUFFER_SIZE): New symbol.
127565         Do not use xmalloc / xrealloc, since the caller is responsible for
127566         handling errors.  Preserve errno around `free' during failure.
127567         Do not overrun buffer when using getwd.
127569 2001-09-03  Paul Eggert  <eggert@twinsun.com>
127571         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
127572         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
127573         getcwd (NULL, 0).
127575 2001-09-03  Paul Eggert  <eggert@twinsun.com>
127577         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
127578         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
127579         spotted by Jim Meyering.
127581 2001-09-03  Jim Meyering  <meyering@lucent.com>
127583         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
127584         failure.
127586 2001-09-02  Jim Meyering  <meyering@lucent.com>
127588         * lib/error.c: Update from GNU libc.
127590 2001-09-01  Jim Meyering  <meyering@lucent.com>
127592         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
127593         Used by df.
127595 2001-09-01  Jim Meyering  <meyering@lucent.com>
127597         * lib/xreadlink.c: New file.
127598         * lib/xreadlink.h: New file.
127599         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
127600         xreadlink.h.
127602         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
127603         doesn't conflict with sparc Solaris 7's definition in
127604         /usr/include/sys/int_types.h.
127606         * lib/exclude.c: Use `""', not `<>' to #include non-system header
127607         files.
127608         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
127609         and strncasecmp as r-values.  Unixware didn't have declarations.
127611 2001-08-31  Paul Eggert  <eggert@twinsun.com>
127613         * lib/xstrtol.h: Add copyright notice.
127614         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
127615         LONGINT_INVALID_SUFFIX_CHAR.
127617 2001-08-31  Paul Eggert  <eggert@twinsun.com>
127619         * lib/xstrtol.c (strtoimax): New decl.
127621 2001-08-31  Paul Eggert  <eggert@twinsun.com>
127623         * lib/xgetcwd.c: Don't include pathmax.h.
127624         Include stdlib.h and unistd.h if available.
127625         Include xalloc.h.
127626         (xmalloc, xstrdup, free): Remove decls.
127627         (xgetcwd): Don't assume sizes fit in unsigned.
127628         Check for overflow when computing sizes.
127629         Simplify reallocation code.
127631 2001-08-31  Paul Eggert  <eggert@twinsun.com>
127633         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
127634         a directory's st_size can have an arbitrary value, so the old
127635         usage could waste an arbitrary amount of memory.  All uses
127636         changed.
127637         * lib/savedir.h: Update prototype.
127639 2001-08-31  Paul Eggert  <eggert@twinsun.com>
127641         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
127643         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
127644         old strtoimax.c.
127646         Also, make the following further changes to make this file's
127647         configuration more similar to that of strtol.c:
127648         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
127649         (strtoumax, uintmax_t, strtoull, strtol): Remove.
127650         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
127651         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
127652         changed to signed values.
127654         And make the following changes as well:
127655         Fix copyright notice, as 1999 was missing.
127656         (verify): New macro.
127657         (strtoimax): Check sizes at compile-time, not run-time.
127658         Prefer strtol to strtoll if both work.
127659         (main): Remove; it was not that useful and was a pain to maintain.
127661         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
127663 2001-08-31  Jim Meyering  <meyering@lucent.com>
127665         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
127666         Use an initial, malloc'd, buffer of length 128 rather than
127667         a statically allocated one of length 1024.
127669 2001-08-30  Paul Eggert  <eggert@twinsun.com>
127671         Simplify code, partly by assuming autoconf 2.52 semantics.
127673         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
127675         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
127676         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
127677         All uses removed.
127678         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
127679         Move AC_REQUIRE to next-to-top level, to avoid confusion.
127680         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
127681         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
127682         jm_AC_HEADER_INTTYPES_H.
127683         * m4/jm-macros.m4 (jm_MACROS): Likewise.
127685         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
127687         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
127688         Quote first arg of AC_DEFUN.
127689         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
127690         since they are needed to parse the include file even if we need
127691         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
127692         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
127693         but with opposite signedness.
127695 2001-08-30  Paul Eggert  <eggert@twinsun.com>
127697         Merge 'exclude' changes from tar 1.13.22.
127698         This fixes one or two unlikely storage allocation overflow bugs,
127699         but doesn't change user-visible behavior otherwise.
127701 2001-08-30  Paul Eggert  <eggert@twinsun.com>
127703         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
127704         (jm_PREREQ_EXCLUDE): New macro.
127706 2001-08-30  Paul Eggert  <eggert@twinsun.com>
127708         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
127709         tm to be declared.
127711 2001-08-30  Paul Eggert  <eggert@twinsun.com>
127713         * lib/hash.c: Remove '2001' from copyright notice.
127715 2001-08-30  Paul Eggert  <eggert@twinsun.com>
127717         * lib/full-write.h: New file.
127718         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
127719         * lib/full-write.c: Correct credits, as cccp.c no longer
127720         exists and anyway it was so heavily changed from the old cccp
127721         code as to be unrecognizable.  Include full-write.h.
127722         (full_write): Return size_t, with short writes meaning failure.
127723         All callers changed.  This fixes a bug with large buffers
127724         on 64-bit hosts.
127725         * lib/utime.c: Include full-write.h.
127727 2001-08-30  Paul Eggert  <eggert@twinsun.com>
127729         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
127730         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
127731         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
127732         Include if available.
127733         (<xalloc.h>): Include
127734         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
127735         (verify): New macro.  Use it to verify that EXCLUDE macros do not
127736         collide with FNM macros.
127737         (struct patopts): New struct.
127738         (struct exclude): Use it, as exclude patterns now come with options.
127739         (new_exclude): Support above changes.
127740         (new_exclude, add_exclude_file):
127741         Initial size must now be a power of two to simplify overflow checking.
127742         (free_exclude, fnmatch_no_wildcards): New function.
127743         (excluded_filename): No longer requires options arg, as the options
127744         are determined by add_exclude.  Now returns bool, not int.
127745         (excluded_filename, add_exclude):
127746         Add support for the fancy new exclusion options.
127747         (add_exclude, add_exclude_file): Now takes int options arg.
127748         Check for arithmetic overflow when computing sizes.
127749         (add_exclude_file): xrealloc might modify errno, so don't
127750         realloc until after errno might be used.
127752         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
127753         New macros.
127754         (free_exclude): New decl.
127755         (add_exclude, add_exclude_file): Now takes int options arg.
127756         (excluded_filename): No longer requires options arg, as the options
127757         are determined by add_exclude.  Now returns bool, not int.
127759 2001-08-30  Paul Eggert  <eggert@twinsun.com>
127761         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
127763 2001-08-27  Jim Meyering  <meyering@lucent.com>
127765         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
127767         * lib/version-etc.c (N_): Remove definition.
127768         Revert most of last change.
127769         Instead, simply don't mark the `Copyright...' string for translation.
127770         Based on advice from Paul Eggert.
127772         * lib/strtoxmax.c: Tweak comment.
127774 2001-08-26  Jim Meyering  <meyering@lucent.com>
127776         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
127778         * m4/xstrtoimax.m4: New file.
127779         * m4/xstrtoumax.m4: Add comments explaining why we
127780         AC_REPLACE_FUNCS(strtol).
127782 2001-08-26  Jim Meyering  <meyering@lucent.com>
127784         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
127785         of copyright with `%s' so translators don't get an untranslated
127786         message in 2002.
127787         (COPYRIGHT_YEAR): Define.
127788         (version_etc): Use fprintf rather than fputs.
127789         Suggestion from Ulrich Drepper.
127791         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
127793         * lib/strtoll.c: New file, from GNU libc.
127794         * lib/xstrtoimax.c: New file.
127796         * lib/xstrtol.h: Add xstrtoimax.
127797         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
127798         * lib/strtoimax.c: New file.  Likewise, but first define
127799         STRTOUXMAX_SIGNED.
127801         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
127802         ...
127803         * lib/strtoxmax.c: ... then renamed to this.
127805 2001-08-18  Paul Eggert  <eggert@twinsun.com>
127807         * m4/inttypes.m4: Add AC_PREREQ(2.13).
127808         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
127809         (jm_AC_TYPE_INTMAX_T): New macro.
127810         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
127812         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
127814         * m4/longlong.m4: Renamed from ulonglong.m4.
127815         * m4/inttypes.m4: Renamed from inttypes_h.m4.
127816         * m4/uintmax_t.m4: Removed.
127818 2001-08-13  Paul Eggert  <eggert@twinsun.com>
127820         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
127821         Port to Solaris 8, where 'sed' requires a space after the 'r'
127822         command, and where sh dislikes "$/".  Clean up the spacing a bit.
127823         Redirect output to $tmp just once.
127825 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
127827         * lib/addext.c (<errno.h>): Include.
127828         (errno): Declare if not defined.
127829         (addext): Work correctly when pathconf returns -1 and leaves
127830         errno alone because there is no limit.  Also, work even if
127831         pathconf returns a value greater than SIZE_MAX.
127833 2001-08-12  Jim Meyering  <meyering@lucent.com>
127835         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
127836         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
127837         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
127838         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
127839         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
127840         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
127841         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
127842         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
127843         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
127844         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
127845         utime.m4, utimes.m4, xstrtoumax.m4:
127846         Quote the first argument in each use of AC_DEFUN.
127848 2001-08-12  Jim Meyering  <meyering@lucent.com>
127850         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
127851         Simply `return getcwd (NULL, 0);'.
127852         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
127853         Use 1300 as initial value for length, not PATH_MAX.
127855         * lib/pathmax.h: Clean up cpp syntax.
127857 2001-08-12  Jim Meyering  <meyering@lucent.com>
127859         * lib/gettimeofday.c: New file.
127860         * lib/gtod.h: New file.
127861         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
127863 2001-08-05  Jim Meyering  <meyering@lucent.com>
127865         * m4/jm-macros.m4: Require autoconf-2.52.
127867 2001-08-04  Jim Meyering  <meyering@lucent.com>
127869         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
127870         stmt, to get in sync with glibc.
127872 2001-08-03  Paul Eggert  <eggert@twinsun.com>
127874         The following changes are from gettext 0.10.39 as maintained by
127875         Bruno Haible.
127877         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
127878         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
127879         with inverted sense.  All uses changed.
127881         * lib/mbswidth.c: Don't include <limits.h>.
127882         Include <stdlib.h> and <string.h> unconditionally.
127883         (iswcntrl, mbsinit, ISCNTRL): New macros.
127884         (mbsnwidth): Use K&R style function declarations.
127885         Don't bother checking for MB_LEN_MAX == 1, since the compiler
127886         can optimize it when MB_CUR_MAX == 1.
127887         The width of control characters is zero, not 1.
127889 2001-08-03  Paul Eggert  <eggert@twinsun.com>
127891         The following changes are from gettext 0.10.39 as maintained by
127892         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
127894         * m4/codeset.m4: Upgrade to serial AM1.
127895         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
127896         all uses changed.  Quote first arg of AC_DEFUN.
127897         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
127899         * m4/iconv.m4: Upgrade to serial AM2.
127900         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
127901         Add --with-libconv-prefix.
127902         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
127903         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
127904         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
127905         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
127906         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
127908         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
127909         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
127910         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
127911         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
127912         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
127913         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
127914         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
127915         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
127916         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
127918         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
127919         string.h any more.
127921         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
127922         not the default value.
127924         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
127925         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
127926         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
127927         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
127928         Also check for iswcntrl, used for wcwidth fallback.
127929         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
127930         to Autoconf 2.13.
127932 2001-08-03  Jim Meyering  <meyering@lucent.com>
127934         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
127935         as it was in the original.  Reported by Paul Eggert.
127937 2001-07-16  Jim Meyering  <meyering@lucent.com>
127939         * m4/gettimeofday.m4: New file.
127940         Prompted by a report from Bernhard Baehr.
127942 2001-07-15  Jim Meyering  <meyering@lucent.com>
127944         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
127945         stuff. Now it's in ../Makefile.cfg.
127947 2001-07-15  Jim Meyering  <meyering@lucent.com>
127949         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
127950         (BUILT_SOURCES): Add unlocked-io.h.
127951         (io_functions): Define.
127952         (unlocked-io.h): New rule.
127953         (DISTCLEANFILES): Add unlocked-io.h.
127954         (all-local): Depend on unlocked-io.h, to ensure it is created.
127956         * lib/unlocked-io.hin: New file
127958         * lib/regex.c: Update from glibc.
127960 2001-07-05  Jim Meyering  <meyering@lucent.com>
127962         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
127963         recommendation.
127964         (libfetish_a_SOURCES): Put all .h files here instead.
127965         Remove a thus-exposed (better checks in automake) duplicate and
127966         two unnecessary .h files.
127968 2001-07-04  Jim Meyering  <meyering@lucent.com>
127970         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
127971         that generates jm-glibc-io.m4 so that it doesn't trigger any make
127972         distcheck failure.
127974 2001-07-02  Jim Meyering  <meyering@lucent.com>
127976         The following changes were prompted by suggestions from Bruno Haible.
127978         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
127979         is now generated.
127980         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
127981         definition of EXTRA_DIST.
127982         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
127983         ensure that the generated file is created/updated whenever the list
127984         of $(unlocked_functions) is changed.
127985         (jm-glibc-io.m4): New rule.
127986         (unlocked-io.h): New rule -- currently unused.
127988 2001-06-24  Jim Meyering  <meyering@lucent.com>
127990         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
127991         unmatched right bracket, rather than kludging it with an extra,
127992         falsely-matching quote in a comment.  Patch by Akim Demaille.
127994 2001-06-11  Jim Meyering  <meyering@lucent.com>
127996         * lib/regex.c: Update from GNU libc.
127998 2001-05-27  Jim Meyering  <meyering@lucent.com>
128000         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
128001         Check for ut_type in struct utmp.
128003 2001-05-27  Jim Meyering  <meyering@lucent.com>
128005         * lib/readutmp.h (UT_TYPE): Define.
128007 2001-05-24  Jim Meyering  <meyering@lucent.com>
128009         * lib/argmatch.c: Include "quote.h".
128010         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
128011         quote function.  Reported by Göran Uddeborg.
128013 2001-05-22  Jim Meyering  <meyering@lucent.com>
128015         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
128016         now that we use the package-supplied version unconditionally.
128017         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
128019 2001-05-21  Jim Meyering  <meyering@lucent.com>
128021         * m4/regex.m4: Change a couple backticks to single quotes to avoid
128022         shell syntax errors.
128024 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
128026         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
128028 2001-05-20  Paul Eggert  <eggert@twinsun.com>
128030         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
128031         Don't bother to check library strftime, since
128032         we'll be using our own my_strftime function anyway.
128033         Define my_strftime instead of strftime.
128035 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
128037         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
128038         which is not yet declared.
128040 2001-05-15  Jim Meyering  <meyering@lucent.com>
128042         * m4/regex.m4: Use proper quoting so brackets appear in the test
128043         program.
128044         Reported by, and with help from, Bruno Haible.
128046 2001-05-13  Jim Meyering  <meyering@lucent.com>
128048         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
128049         undefined.
128051 2001-05-11  Paul Eggert  <eggert@twinsun.com>
128053         dirname code cleanup.  base_name now behaves more compatibly
128054         with POSIX basename when given file names that have trailing
128055         slashes, and similarly for dir_name.  Add new primitives
128056         base_len and dir_len.  Put the directory-name-related decls
128057         into dirname.h.
128059         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
128060         * lib/backupfile.c (base_name): Likewise.
128061         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
128062         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
128063         * lib/makepath.c (strip_trailing_slashes): Likewise.
128064         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
128065         ISSLASH): Likewise.
128066         * lib/rename.c (strip_trailing_slashes): Likewise.
128067         * lib/same.c (base_name): Likewise.
128068         * lib/stripslash.c (ISSLASH): Likewise.
128070         * lib/addext.c: Include <dirname.h> after size_t is defined.
128071         * lib/backupfile.c: Likewise.
128073         * lib/addext.c (addext): Use base_len to trim redundant
128074         trailing slashes instead of doing it ourselves.
128075         But do not trim the last slash if it is not redundant.
128077         * lib/backupfile.c (find_backup_file_name,
128078         max_backup_version): Use base_len instead of rolling it ourselves.
128079         Handle the case of "" and (on DOS) "C:" correctly.
128081         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
128082         needed. Include <string.h>, <dirname.h>.
128083         (base_name): Allow file names ending in slashes, other than names
128084         that are all slashes.  In this case, return the basename followed
128085         by the slashes.  This is more general, and can be used in places
128086         where the original base_name purposely had an assertion failure.
128087         (base_len): New function.
128089         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
128090         Do not include <assert.h>; no longer needed.
128091         Include xalloc.h.
128092         (memrchr): Remove decl.
128093         (dir_name_r): Remove.
128094         (dir_len): Renamed from dirlen.  All callers changed.
128095         Rewrite in terms of base_name, for simplicity and consistency.
128096         (dir_name): Never return NULL.  All callers changed.
128097         Do not include <stdlib.h> in test program; no longer needed.
128098         return 0; is fine for test program.
128100         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
128101         New macros.
128102         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
128104         * lib/path-concat.c (path_concat): Use base_len to compute
128105         base length, not strlen; this means we cannot rely on memcpy
128106         to null-terminate.
128108         * lib/same.c (STREQ): Remove.
128109         (same_name): Handle the case where the basename ends in trailing '/'.
128111         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
128112         a slash was stripped.  Do not strip the last slash after a
128113         file system prefix.
128115 2001-05-11  Paul Eggert  <eggert@twinsun.com>
128117         * lib/Makefile.am (libfetish_a_SOURCES):
128118         Add strftime.c, since we now compile it on all hosts.
128120         * lib/strftime.c (my_strftime):
128121         Define to nstrftime if emacs, but only if my_strftime is not defined.
128122         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
128123         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
128124         Add one more extra argument: a nanoseconds value.
128125         All uses changed.
128126         (ns): New macro.
128127         (my_strftime function): Add %N format.
128128         (emacs_strftimeu): Renamed from emacs_strftime,
128129         with extra ut argument.
128131 2001-05-09  Paul Eggert  <eggert@twinsun.com>
128133         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
128135 2001-04-21  Jim Meyering  <meyering@lucent.com>
128137         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
128138         doesn't interfere.
128140 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
128142         * m4/ftruncate.m4: Check for chsize.
128143         Link with ftruncate.o unconditionally if ftruncate is missing.
128144         This was required when cross-compiling to i586-mingw32msvc.
128146 2001-04-08  Jim Meyering  <meyering@lucent.com>
128148         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
128149         recomputed; that's necessary when the offset spans a DST transition.
128150         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
128152 2001-04-02  Jim Meyering  <meyering@lucent.com>
128154         * lib/regex.h, regex.c: Update from GNU libc.
128156 2001-03-24  Jim Meyering  <meyering@lucent.com>
128158         * m4/jm-macros.m4: Require autoconf-2.49d.
128160 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
128162         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
128164 2001-03-19  Paul Eggert  <eggert@twinsun.com>
128166         * lib/version-etc.c (version_etc_copyright): Update to 2001.
128168 2001-03-17  Jim Meyering  <meyering@lucent.com>
128170         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
128171         now that the version in autoconf is equivalent.
128172         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
128174         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
128175         Suggestion from Akim Demaille.
128177         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
128178         (jm_PREREQ_TEMPNAME): New function.
128180 2001-03-16  Paul Eggert  <eggert@twinsun.com>
128182         * lib/tempname.c (uint64_t): Define to uintmax_t if
128183         not defined, and if UINT64_MAX is not defined.
128184         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
128185         Reported by John David Anglin.
128187 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
128189         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
128190         resolve alias if codeset is empty.
128191         * lib/config.charset (BeOS): Use wildcard syntax.
128193 2001-03-13  Jim Meyering  <meyering@lucent.com>
128195         * lib/path-concat.c (path_concat)
128196         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
128197         concatenating e.g., `C:' and `foo'.
128198         From Bruno Haible.
128200 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
128202         * lib/localcharset.c (locale_charset): Don't use
128203         setlocale(LC_CTYPE,NULL). Don't return NULL.
128204         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
128206 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
128208         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
128209         support for DOS/DJGPP.
128211 2001-03-01  Paul Eggert  <eggert@twinsun.com>
128213         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
128214         lacks mkstemp.  Compile our own tempname.c if we compile our own
128215         mkstemp.c, as mkstemp relies on tempname.
128217 2001-03-01  Jim Meyering  <meyering@lucent.com>
128219         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
128220         AH_VERBATIM really does output its argument verbatim.
128222 2001-02-28  Paul Eggert  <eggert@twinsun.com>
128224         * lib/Makefile.am (libfetish_a_SOURCES):
128225         Add dup-safer.c, fopen-safer.c.
128226         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
128228         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
128229         * lib/unistd-safer.h: New files.
128231 2001-02-25  Paul Eggert  <eggert@twinsun.com>
128233         The mkstemp replacement is taken from glibc 2.2.2, with some
128234         portability fixes for use outside glibc, as follows:
128236         * lib/tempname.c (struct_stat64): New macro.
128237         (direxists, __gen_tempname): Use it.
128238         This avoids a portability problem with Solaris 8.
128240         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
128241         (<stddef.h>, <stdint.h>, <string.h>):
128242         Include only if STDC_HEADERS || _LIBC.
128243         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
128244         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
128245         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
128246         (__set_errno): Define this macro if <errno.h> doesn't.
128247         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
128248         Define these macros if <stdio.h> doesn't.
128249         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
128250         Define these macros if <sys/stat.h>
128251         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
128252         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
128253         __xstat64): Define if not _LIBC.
128254         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
128255         (__gen_tempname): Invoke gettimeofday only if
128256         HAVE_GETTIMEOFDAY || _LIBC;
128257         otherwise, fall back on plain "time".
128258         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
128260         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
128262         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
128264 2001-02-18  Paul Eggert  <eggert@twinsun.com>
128266         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
128268 2001-02-17  Paul Eggert  <eggert@twinsun.com>
128270         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
128271         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
128272         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
128273         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
128275 2001-02-17  Paul Eggert  <eggert@twinsun.com>
128277         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
128278         Remove workaround macros for hosts that have mbrtowc but not
128279         mbstate_t, as we now insist on proper declarations for both
128280         before using mbrtowc.
128282 2001-02-17  Jim Meyering  <meyering@lucent.com>
128284         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
128285         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
128286         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
128287         UnixWare 7.1.1.
128289         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
128290         rather than AC_CACHE_VAL.
128292 2001-02-17  Jim Meyering  <meyering@lucent.com>
128294         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
128295         around included file name.
128297         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
128299         * lib/strftime.c: Update from GNU libc (the only changes were to
128300         comments).
128302 2001-02-17  Jim Meyering  <meyering@lucent.com>
128304         * lib/regex.c: Update from libc.
128306 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
128308         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
128309         clash.
128311 2001-02-16  Paul Eggert  <eggert@twinsun.com>
128313         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
128314         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
128315         Reported by Mark Hounschell via Paul Eggert.
128317 2001-02-07  Jim Meyering  <meyering@lucent.com>
128319         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
128321 2001-02-05  Jim Meyering  <meyering@lucent.com>
128323         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
128324         it includes the patch required for `large file' support with at least
128325         HP-UX's 10.20 /bin/cc.
128327 2001-02-03  Jim Meyering  <meyering@lucent.com>
128329         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
128330         AS_IF, now that it works once again (mysteriously).
128331         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
128333 2001-01-30  Jim Meyering  <meyering@lucent.com>
128335         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
128336         * m4/chown.m4: Rename conftestchown to conftest.chown.
128337         * m4/rename.m4: s/conftestdir/conftest.d1/ and
128338         s/conftestdir2/conftest.d2/.
128339         * m4/utimes.m4: s/conftestdata/conftest.data/
128340         Inspired by Pavel Roskin's change in autoconf.
128342 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
128344         * lib/config.charset: Update for FreeBSD 4.2.
128346 2001-01-27  Jim Meyering  <meyering@lucent.com>
128348         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
128349         a use of AS_IF.
128350         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
128352 2001-01-26  Jim Meyering  <meyering@lucent.com>
128354         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
128355         quotearg.c includes it.
128357 2001-01-26  Jim Meyering  <meyering@lucent.com>
128359         * lib/quotearg.c: Include stddef.h.
128360         * lib/quote.c: Include stddef.h.
128361         Reported by Axel Kittenberger.
128363         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
128364         line in double quotes so that it evokes a better diagnostic.
128365         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
128366         Reported by Axel Kittenberger.
128368 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
128370         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
128371         as if it was a `charset'.
128373 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
128375         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
128376         has const.
128378 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
128380         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
128381         to avoid a warning.  Add back 'const' to inptr.
128383 2001-01-20  Jim Meyering  <meyering@lucent.com>
128385         Be sure that headers are checked before used in code compiled
128386         for the type checks.
128387         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
128388         In place of that, invoke jm_CHECK_ALL_TYPES.
128389         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
128390         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
128391         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
128392         The check for ssize_t was mistakenly run before the test for unistd.h.
128394         The configure-time check for stdbool.h was missing.
128395         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
128396         (jm_PREREQ_HASH): New function.
128398 2001-01-17  Jim Meyering  <meyering@lucent.com>
128400         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
128401         for autoconf-2.49c.
128402         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
128404 2001-01-16  Jim Meyering  <meyering@lucent.com>
128406         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
128407         From Bruno Haible.
128409 2001-01-14  Jim Meyering  <meyering@lucent.com>
128411         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
128412         foo and bar.  Create conftestdir/ in the script, not in the C code.
128413         Remove directories in the script, not in the C code.
128414         Remove conftestdir{,2} before trying to create the directory.
128415         Make the entire configure script fail if the mkdir fails.
128417 2001-01-14  Jim Meyering  <meyering@lucent.com>
128419         * lib/rename.c: New file.  From Volker Borchert.
128420         Include stdlib.h, string.h or strings.h, and xalloc.h.
128421         Use strip_trailing_slashes rather than open-coding it.
128423 2001-01-03  Paul Eggert  <eggert@twinsun.com>
128425         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
128427 2001-01-03  Jim Meyering  <meyering@lucent.com>
128429         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
128430         of local `inptr' to avoid warning with some system declarations of
128431         iconv.
128433 2001-01-02  Volker Borchert  <bt@teknon.de>
128435         * m4/rename.m4: New file.
128436         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
128438 2001-01-01  Jim Meyering  <meyering@lucent.com>
128440         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
128441         even on systems with utmpx.h.  It's necessary for the declaration of
128442         utmp's ut_user member.  Reported by Andreas Jaeger.
128444         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
128445         available. They are required for the declarations of getgrgid and
128446         getpwuid resp.
128447         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
128448         Reported by Andreas Jaeger.
128450 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
128452         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
128453         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
128454         so `make install' also works in VPATH builds.
128456 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
128458         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
128459         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
128460         can be used in subdirectories.
128462 2000-12-29  Paul Eggert  <eggert@twinsun.com>
128464         * lib/modechange.c: Do not assume that mode_t uses the
128465         traditional octal encoding.  E.g. "chmod 1 FOO" should set
128466         the other-execute bit of FOO even if S_IXOTH != 1.
128468         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
128469         WOTH, XOTH, ALLM): New macros.
128470         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
128471          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
128472         Use them.
128473         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
128474         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
128475         (mode_compile):
128476         No need to use uintmax_t; unsigned long is long enough.
128477         Don't bother to get suffix since we don't use it.
128479 2000-12-26  Jim Meyering  <meyering@lucent.com>
128481         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
128482         better with autoheader.
128484 2000-12-24  Jim Meyering  <meyering@lucent.com>
128486         * lib/hash.c (is_prime): Return explicit boolean values.
128487         (hash_get_first): Return NULL to appease Irix5.6's 89.
128488         Reported by Nelson Beebe.
128490 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
128492         * lib/localcharset.c (locale_charset): Add support for Win32.
128494 2000-12-18  Paul Eggert  <eggert@twinsun.com>
128496         * lib/physmem.h, lib/physmem.c: New files.
128498         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
128499         (noinst_HEADERS): Add physmem.h.
128501         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
128502         't' for compatibility with Solaris 8 sort.
128504 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
128506         * lib/config.charset: Add support for BeOS.
128508 2000-12-17  Jim Meyering  <meyering@lucent.com>
128510         * m4/dos.m4 (jm_AC_DOS): New file and macro.
128511         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
128513 2000-12-16  Jim Meyering  <meyering@lucent.com>
128515         This bug had a serious impact on chown: `chown N:M FILE' (for integer
128516         N and M) would have treated it like `chown N:N FILE'.
128518         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
128520 2000-12-16  Jim Meyering  <meyering@lucent.com>
128522         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
128523         SHELLS_FILE to a file name that's useful on djgpp systems.
128524         Include stdlib.h.
128525         (ADDITIONAL_DEFAULT_SHELLS): Define.
128526         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
128527         Based mostly on a patch from Prashant TR.
128529 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
128531         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
128532         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
128533         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
128535 2000-12-08  Andreas Schwab  <schwab@suse.de>
128537         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
128538         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
128540 2000-12-07  Jim Meyering  <meyering@lucent.com>
128542         * lib/stripslash.c (ISSLASH): Define.
128543         (strip_trailing_slashes): Use ISSLASH rather than comparing against
128544         `/'.
128545         From Prashant TR.
128547         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
128548         (dir_name_r): Declare this function as static.
128549         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
128550         manifest itself on a name containing a mix of slashes and
128551         backslashes.
128552         Make this function work with names starting with a DOS-style
128553         drive letter and colon prefix.
128554         (dir_name): Append `.' if necessary.
128555         Based mostly on patches from Prashant TR and Eli Zaretskii.
128557         * lib/dirname.h (dir_name_r): Remove prototype.
128559 2000-12-06  Paul Eggert  <eggert@twinsun.com>
128561         * m4/off_t-format.m4: Remove this file.
128562         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
128564 2000-12-06  Jim Meyering  <meyering@lucent.com>
128566         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
128567         replacement strtoull, we may well need the replacement strtoul, too.
128568         Check for declarations of strtoul and strtoull.
128569         Check for strtol.  Mainly as a cue to cause automake to include
128570         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
128571         Check for limits.h -- strtol.c needs it.
128573 2000-12-05  Jim Meyering  <meyering@lucent.com>
128575         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
128577 2000-12-04  Jim Meyering  <meyering@lucent.com>
128579         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
128580         Also include memory.h, stdlib.h, unistd.h if appropriate.
128581         Reported by Andreas Jaeger (conflicting declaration of malloc).
128583 2000-12-02  Jim Meyering  <meyering@lucent.com>
128585         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
128586         * m4/jm-macros.m4 (jm_MACROS): require it.
128588 2000-12-02  Jim Meyering  <meyering@lucent.com>
128590         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
128592 2000-12-01  Paul Eggert  <eggert@twinsun.com>
128594         * lib/memrchr.c: Include <config.h> before any system include file.
128596 2000-11-30  Jim Meyering  <meyering@lucent.com>
128598         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
128600 2000-11-30  Jim Meyering  <meyering@lucent.com>
128602         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
128604 2000-11-29  Paul Eggert  <eggert@twinsun.com>
128606         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
128608 2000-11-26  Jim Meyering  <meyering@lucent.com>
128610         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
128612 2000-11-22  Paul Eggert  <eggert@twinsun.com>
128614         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
128615         size of (size_t) -1; it's not portable.
128617 2000-11-17  Jim Meyering  <meyering@lucent.com>
128619         * lib/strstr.c: Update from GNU libc.
128621 2000-11-17  Akim Demaille  <akim@epita.fr>
128623         * lib/obstack.h: Formatting changes.
128624         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
128625         prevent type checking.
128626         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
128627         cast the value to (void *): assigning a `foo *' to a `void *'
128628         variable is valid.
128629         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
128631 2000-11-16  Jim Meyering  <meyering@lucent.com>
128633         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
128635 2000-11-11  Jim Meyering  <meyering@lucent.com>
128637         * lib/error.c: Add a couple #includes, merging from GNU libc version.
128639 2000-11-10  Jim Meyering  <meyering@lucent.com>
128641         * lib/obstack.h: Update from GNU libc.
128642         * lib/obstack.c: Likewise.
128644 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
128646         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
128648 2000-11-06  Paul Eggert  <eggert@twinsun.com>
128650         * lib/getusershell.c (setusershell): Use rewind rather than
128651         fseek/fseeko, to avoid configuration hassles with fseeko.
128652         Don't bother opening SHELLS_FILE if shellstream is NULL;
128653         it's not necessary.
128655 2000-11-05  Jim Meyering  <meyering@lucent.com>
128657         * lib/makepath.h (make_dir): Declare.
128658         * lib/makepath.c (make_dir): Remove `static' attribute.
128659         Tweak a comment.
128661 2000-11-04  Jim Meyering  <meyering@lucent.com>
128663         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
128665 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
128667         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
128668         last one in a bucket, advance to the next bucket.
128670 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
128672         * lib/fnmatch.c: Do not comment out all the code if we are using
128673         the GNU C library, because in some cases we are replacing buggy
128674         code in the GNU C library itself.
128676 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
128678         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
128679         (regex_compile): Catch bogus \(\1\).
128681 2000-10-30  Paul Eggert  <eggert@twinsun.com>
128683         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
128684         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
128685         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
128687 2000-10-30  Paul Eggert  <eggert@twinsun.com>
128689         * lib/error.h, getline.h, modechange.h:
128690         Remove "2000" from Copyright line, as the file hasn't been
128691         changed this year other than in the copyright notice.
128693         * lib/xalloc.h: Add "2000" to Copyright line, as this file
128694         was changed this year.
128696 2000-10-29  Jim Meyering  <meyering@lucent.com>
128698         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
128699         renaming.
128700         * m4/ls-mntd-fs.m4: Likewise
128702 2000-10-29  Jim Meyering  <meyering@lucent.com>
128704         * lib/xstat.in: Fix grammar in comment.
128706 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
128708         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
128709         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
128710         doesn't define __restrict_arr.
128712 2000-10-28  Jim Meyering  <meyering@lucent.com>
128714         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
128715         (jm_PREREQ_MEMCHR): New function.
128717 2000-10-28  Jim Meyering  <meyering@lucent.com>
128719         * lib/memchr.c: Update from libc.
128720         Adjust for portability:
128721         [HAVE_STDLIB_H]: Include stdlib.h.
128722         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
128723         Undef __memchr, too.
128724         [!weak_alias]: Define __memchr to memchr.
128726         * lib/regex.c: Update from libc.
128727         * lib/regex.h: Likewise.
128728         * lib/getopt1.c: Likewise.
128729         * lib/memcmp.c: Likewise.
128731         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
128732         Avoid using fseek, when possible -- it's broken by design.
128733         Patch by Ulrich Drepper.
128735 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
128737         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
128738         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
128739         Giving in to popular pressure to shut up the compiler with casts.
128741 2000-10-26  Jim Meyering  <meyering@lucent.com>
128743         * lib/strftime.c: Update from libc.
128745 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
128747         * regex.c: More `unsigned char' -> `re_char' changes.
128748         Also change several `int' into `re_wchar_t'.
128749         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
128750         (PUSH_FAILURE_POINTER): Don't cast any more.
128751         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
128752         We want GCC to complain, since this piece of code makes
128753         re_match non-reentrant, which *should* be fixed.
128754         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
128755         (EXTEND_BUFFER): Use RETALLOC.
128756         (SET_LIST_BIT): Don't cast.
128757         (re_wchar_t): New type.
128758         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
128759         that those two functions will always properly return.
128760         (IMMEDIATE_QUIT_CHECK): Cast to void.
128761         (analyse_first): Use recursion rather than an explicit stack.
128762         (re_compile_fastmap): Can't fail anymore.
128763         (re_search_2): Don't check re_compile_fastmap for failure.
128764         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
128765         Now also sets the new value (passed in a new argument).
128766         (re_match_2_internal): Use it.
128767         Also, use a new var `reg' of type size_t when looping through regs
128768         rather than reuse the inappropriate `mcnt'.
128770 2000-10-25  Jim Meyering  <meyering@lucent.com>
128772         * lib/obstack.c: Update from libc.
128774 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
128776         * regex.c (regex_compile): Change the way of handling a range from
128777         a char less than 256 to a char not less than 256.
128779 2000-10-24  Andrew Innes  <andrewi@gnu.org>
128781         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
128782         NT-Emacs only.
128783         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
128784         so that re_search functions only quit when callers expect them to.
128786 2000-10-23  Jim Meyering  <meyering@lucent.com>
128788         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
128789         wrong.  That set_locale call must not have any side effects.
128790         From Paul Eggert.
128792 2000-10-22  Jim Meyering  <meyering@lucent.com>
128794         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
128795         [CYCLIC]: Remove now-unused definition.
128797         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
128798         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
128799         Suggestion from Ulrich Drepper.
128801 2000-10-21  Jim Meyering  <meyering@lucent.com>
128803         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
128804         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
128805         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
128807 2000-10-21  Jim Meyering  <meyering@lucent.com>
128809         * lib/dirname.c (memrchr): Declare if necessary.
128810         (dir_name): Remove the restriction that there be no
128811         trailing slashes.  Now, this code skips past them, effectively
128812         ignoring them.
128813         [TEST_DIRNAME] (main): New unit tests.
128815         * lib/memrchr.c: New file from GNU libc.
128816         Undef __memrchr, too.
128817         [!weak_alias]: Define __memrchr to memrchr.
128818         Guard weak_alias use with `#ifdef weak_alias'.
128820 2000-10-21  Jim Meyering  <meyering@lucent.com>
128822         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
128823         (dir_name): Use dir_name_r.
128824         * lib/dirname.h (dir_name_r): Declare it.
128826 2000-10-17  Jim Meyering  <meyering@lucent.com>
128828         * lib/quote.h (PARAMS): Define and use.
128829         Reported by Akim Demaille.
128831         * lib/getopt.c: Update from libc.
128833 2000-10-16  Jim Meyering  <meyering@lucent.com>
128835         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
128836         setlocale.
128837         From Jan Fedak.
128839 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
128841         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
128843 2000-09-25  Jim Meyering  <meyering@lucent.com>
128845         * lib/md5.h (rol): Define (from GnuPG).
128847         * lib/sha.c: Give credit (GnuPG) where due.
128848         (M): Use rol rather than open-coding it.
128849         Add a FIXME comment.
128851 2000-09-21  Jim Meyering  <meyering@lucent.com>
128853         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
128854         Reported by Michael Stone.
128856 2000-09-20  Jim Meyering  <meyering@lucent.com>
128858         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
128859         (noinst_HEADERS): Add sha.h.
128860         Based on code from Scott G. Miller and from GnuPG.
128862 2000-09-18  Jim Meyering  <meyering@lucent.com>
128864         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
128865         LIBS. Otherwise, everyone ends up linking with -lelf for some
128866         configurations.
128867         Reported by Mike Stone.
128869 2000-09-15  Jim Meyering  <meyering@lucent.com>
128871         * lib/regex.c: Update from libc.
128873 2000-09-10  Jim Meyering  <meyering@lucent.com>
128875         * lib/getopt.c (_getopt_internal): Update from glibc.
128877 2000-09-09  Jim Meyering  <meyering@lucent.com>
128879         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
128880         think it should be used as a general replacement for isascii.
128881         * lib/fnmatch.c: Likewise.
128882         * lib/mbswidth.c: Likewise
128883         * lib/regex.c: Likewise.
128885         Don't use atoi.
128886         * lib/userspec.c: Include sys/param.h and limits.h.
128887         Include xstrtol.h.
128888         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
128889         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
128890         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
128891         UID, GID.  Check range.
128893 2000-09-06  Jim Meyering  <meyering@lucent.com>
128895         * lib/getopt.c (_getopt_internal): Update from glibc.
128897 2000-08-30  Jim Meyering  <meyering@lucent.com>
128899         * lib/strftime.c: Merge in changes from GNU libc.
128901 2000-08-26  Jim Meyering  <meyering@lucent.com>
128903         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
128904         * m4/fpending.m4: New file.
128906 2000-08-26  Jim Meyering  <meyering@lucent.com>
128908         * lib/closeout.c: Include "__fpending.h".
128909         (close_stdout_status): Return right away if there's nothing to flush.
128911         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
128912         * lib/__fpending.c: New file.
128913         * lib/__fpending.h: New file.
128915 2000-08-20  Jim Meyering  <meyering@lucent.com>
128917         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
128918         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
128919         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
128921 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
128923         Improve fileutils installation on systems where running
128924         programs (like install) can't be unlinked.
128925         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
128926         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
128928 2000-08-07  Paul Eggert  <eggert@twinsun.com>
128930         Standardize on "memory exhausted" instead of "Memory exhausted"
128931         or "virtual memory exhausted".
128932         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
128933         "virtual memory exhausted".
128934         * lib/same.c (same_name): Invoke xalloc_die instead of printing
128935         our own message.
128936         * lib/userspec.c (parse_user_spec): Likewise.
128937         * lib/bumpalloc.h: comment fix
128938         * lib/same.c, userspec.c: Include xalloc.h.
128940         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
128941         not char *const and pointing to a constant array.
128942         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
128943         (xrealloc): Comment fix.
128945         * lib/userspec.c (parse_user_spec):
128946         Don't translate a message until just before returning,
128947         to avoid unnecessary translation.
128949 2000-08-07  Jim Meyering  <meyering@lucent.com>
128951         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
128952         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
128953         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
128954         getgroups.c, gethostname.c, getopt.h, group-member.c,
128955         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
128956         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
128957         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
128958         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
128959         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
128960         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
128961         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
128962         yesno.c: Back out Copyright date changes for each file with no change
128963         this year.  This eases coordination with other programs using the same
128964         source code modules.  From Paul Eggert.
128966 2000-08-06  Paul Eggert  <eggert@twinsun.com>
128968         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
128969         not char, for compatibility with glibc 2.1.3 strftime.c.
128971 2000-08-03  Greg McGary  <greg@mcgary.org>
128973         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
128974         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
128975         (EXTEND_BUFFER): Use them.
128977 2000-08-01  Jim Meyering  <meyering@lucent.com>
128979         * lib/dirname.c (ISSLASH): Define.
128980         (BACKSLASH_IS_PATH_SEPARATOR): Define.
128981         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
128982         both `\' and `/' may be use as path separators.
128983         Based on a patch from Prashant TR.
128985 2000-07-31  Paul Eggert  <eggert@twinsun.com>
128987         * lib/quotearg.c (quotearg_n_options): Don't make the initial
128988         slot vector a constant, since it might get modified.
128990 2000-07-31  Jim Meyering  <meyering@lucent.com>
128992         * lib/xmalloc.c: Use `virtual memory exhausted', not
128993         `Memory exhausted'.
128994         * lib/obstack.c (print_and_abort): Likewise.
128996 2000-07-30  Paul Eggert  <eggert@twinsun.com>
128998         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
128999         buffer, so that the caller can always quote one small
129000         component of a "memory exhausted" message in slot 0.
129001         From a suggestion by Jim Meyering.
129003 2000-07-30  Jim Meyering  <meyering@lucent.com>
129005         * lib/makepath.c (make_path): Quote the other instance, too.
129007         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
129008         (STATIC_BUF_SIZE): Define.
129009         (quotearg_n_options): Use only statically allocated storage when
129010         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
129011         than STATIC_BUF_SIZE.
129013 2000-07-29  Jim Meyering  <meyering@lucent.com>
129015         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
129016         * lib/dirname.c (dir_name): Likewise.
129018         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
129019         `/'.
129021         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
129022         (dir_name): Assert that there are no trailing slashes.
129024 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
129026         * lib/mbswidth.h (mbswidth): Add a flags argument.
129027         (mbswidth): New declaration.
129028         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
129029         * lib/mbswidth.c (mbswidth): Add a flags argument.
129030         (mbsnwidth): New function.
129032 2000-07-24  Jim Meyering  <meyering@lucent.com>
129034         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
129036 2000-07-23  Paul Eggert  <eggert@twinsun.com>
129038         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
129040 2000-07-23  Paul Eggert  <eggert@twinsun.com>
129042         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
129043         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
129044         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
129045         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
129046         invoke multibyte primitives.
129048 2000-07-23  Paul Eggert  <eggert@twinsun.com>
129050         * lib/quotearg.c:
129051         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
129052         so that mbstate_t is always defined.
129054         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
129055         be 1 in at least one GCC installation, and this configuration
129056         error is likely to be common.  Ignoring MB_LEN_MAX hurts
129057         performance on hosts that have mbrtowc but have only unibyte
129058         locales, but I assume these hosts are rare.
129060 2000-07-23  Paul Eggert  <eggert@twinsun.com>
129062         * lib/mbswidth.c (_XOPEN_SOURCE):
129063         Don't define; this causes problems on Solaris 7.
129064         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
129066 2000-07-23  Jim Meyering  <meyering@lucent.com>
129068         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
129069         too: getgrgid, getpwuid, getuid.
129071 2000-07-23  Jim Meyering  <meyering@lucent.com>
129073         * lib/basename.c (base_name): Add an assertion.
129075 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
129077         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
129078         shadow its mbsinit function.
129080 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
129082         * lib/mbswidth.h: New file.
129083         * lib/mbswidth.c: New file.
129084         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
129085         (noinst_HEADERS): Add mbswidth.h.
129087 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
129089         * lib/config.charset: Add support for FreeBSD. Improve support for
129090         HP-UX and IRIX 6.
129092 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
129094         * m4/mbswidth.m4: New file.
129095         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
129097 2000-07-15  Jim Meyering  <meyering@lucent.com>
129099         * lib/makepath.c: Include quote.h.
129100         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
129101         corresponding argument in a `quote (...)' call.
129102         Give better diagnostics.
129104         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
129105         (noinst_HEADERS): Add quote.h.
129107         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
129108         from tar's src/misc.c.
129109         * lib/quote.h: New file.  Prototypes for same.
129111 2000-07-14  Paul Eggert  <eggert@twinsun.com>
129113         From a suggestion by Bruno Haible.
129114         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
129115         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
129116         to decide whether to define the BeOS workaround macro;
129117         this adjusts to the change to AC_MBSTATE_T.
129119 2000-07-14  Jim Meyering  <meyering@lucent.com>
129121         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
129122         jm_AC_TYPE_UINTMAX_T.
129124 2000-07-13  Paul Eggert  <eggert@twinsun.com>
129126         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
129128         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
129129         quotearg_buffer_restyled): Add support for
129130         clocale_quoting_style.  Undo previous change to
129131         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
129132         and "{RIGHT QUOTATION MARK}" msgids.
129134 2000-07-10  Paul Eggert  <eggert@twinsun.com>
129136         From a suggestion by Bruno Haible.
129137         * m4/mbstate_t.m4 (AC_MBSTATE_T):
129138         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
129139         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
129140         and mbstate_t, to a single-part test that simply defines mbstate_t.
129141         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
129142         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
129144 2000-07-10  Jim Meyering  <meyering@lucent.com>
129146         * m4/strerror_r.m4: Mirror the correction made in autoconf.
129148         * m4/gnu-source.m4: Output to confdefs.h directly.
129149         Suggestion from Akim Demaille.
129151 2000-07-09  Paul Eggert  <eggert@twinsun.com>
129153         The old behavior of quoting `like this' doesn't look good with
129154         newer, ISO-style fonts.  See:
129155         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
129157         Instead, quote "like this" by default.  Let the translator
129158         tailor the locale-specific quoting behavior by providing
129159         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
129161         * lib/quotearg.c (N_): New macro.
129162         (gettext_default): New function.
129163         (quotearg_buffer_restyled): Use
129164         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
129165         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
129167 2000-07-09  Jim Meyering  <meyering@lucent.com>
129169         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
129170         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
129172         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
129173         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
129175 2000-07-09  Jim Meyering  <meyering@lucent.com>
129177         * lib/Most files: Update copyright dates to include 2000.
129179 2000-07-08  Jim Meyering  <meyering@lucent.com>
129181         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
129182         if not defined.
129183         (xgethostname): Remove now-unnecessary #ifdef.
129184         Move declaration of `err' into loop where it's used.
129186 2000-07-05  Paul Eggert  <eggert@twinsun.com>
129187         and Bruno Haible  <haible@clisp.cons.org>
129189         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
129190         only if the test for an object-type mbstate_t fails.  This
129191         prevents us from mistakenly reporting that mbstate_t is a
129192         system object type after we "#define mbstate_t int" to work
129193         around its lack.
129195 2000-07-05  Paul Eggert  <eggert@twinsun.com>
129196         and Bruno Haible  <haible@clisp.cons.org>
129198         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
129200 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
129202         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
129203         to strerror_r.
129204         Include <ctype.h> for use of isalpha.
129206 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
129208         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
129209         by allocating a larger buffer. Test the gethostname return value for
129210         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
129211         returns an error and ENAMETOOLONG isn't defined.
129213 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
129215         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
129216         dimension.
129218 2000-07-04  Jim Meyering  <meyering@lucent.com>
129220         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
129221         of the deprecated AC_CHECKING.
129223 2000-07-04  Jim Meyering  <meyering@lucent.com>
129225         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
129226         Reported by Bruno Haible.
129228 2000-07-04  Jim Meyering  <meyering@lucent.com>
129230         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
129231         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
129232         lacks mbrtowc.
129234 2000-07-03  Paul Eggert  <eggert@twinsun.com>
129236         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
129237         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
129239 2000-07-03  Paul Eggert  <eggert@twinsun.com>
129240         and Bruno Haible  <haible@clisp.cons.org>
129242         * lib/quotearg.c (mbrtowc):
129243         Assign to *pwc, and return 1 only if result is nonzero.
129244         (iswprint): Use ISPRINT when substituting our own mbrtowc.
129246 2000-07-03  Jim Meyering  <meyering@lucent.com>
129248         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
129250 2000-07-03  Jim Meyering  <meyering@lucent.com>
129252         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
129253         This is necessary to get a definition of e.g., UTMP_FILE on
129254         HP-UX 10.20.
129255         From Bob Proulx.
129257 2000-07-02  Jim Meyering  <meyering@lucent.com>
129259         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
129261         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
129262         AC_LIBOBJ(function_name).
129263         * m4/chown.m4: Likewise.
129264         * m4/fnmatch.m4: Likewise.
129265         * m4/ftruncate.m4: Likewise.
129266         * m4/getgroups.m4: Likewise.
129267         * m4/getline.m4: Likewise.
129268         * m4/group-member.m4: Likewise.
129269         * m4/jm-macros.m4: Likewise.
129270         * m4/lstat.m4: Likewise.
129271         * m4/malloc.m4: Likewise.
129272         * m4/memcmp.m4: Likewise.
129273         * m4/nanosleep.m4: Likewise.
129274         * m4/putenv.m4: Likewise.
129275         * m4/realloc.m4: Likewise.
129276         * m4/regex.m4: Likewise.
129277         * m4/stat.m4: Likewise.
129278         * m4/strftime.m4: Likewise.
129280 2000-07-02  Jim Meyering  <meyering@lucent.com>
129282         * lib/quotearg.c (mbstate_t): Don't define here.
129284 2000-07-02  Jim Meyering  <meyering@lucent.com>
129286         * lib/nanosleep.c (SIGCONT): Define if not already defined.
129288 2000-07-01  Jim Meyering  <meyering@lucent.com>
129290         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
129292 2000-07-01  Jim Meyering  <meyering@lucent.com>
129294         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
129295         problem.
129297 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
129299         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
129300         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
129302 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
129304         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
129305         per change in ../m4/ls-mntd-fs.m4.
129306         (read_filesystem_list): Ignore symbolic links.
129308 2000-06-29  Jim Meyering  <meyering@lucent.com>
129310         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
129311         for declaration of strcmp.
129313         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
129315         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
129316         Avoid warning by casting result to `char *' to remove `const'.
129318 2000-06-28  Jim Meyering  <meyering@lucent.com>
129320         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
129321         included by quotearg.c, for which we perform this test.  From
129322         Bruno Haible.
129324 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
129326         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
129327         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
129328         <utmpx.h> exists, put readutmp.o into LIBOBJS.
129330 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
129332         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
129334 2000-06-26  Paul Eggert  <eggert@twinsun.com>
129336         savedir now sets errno on failure and invokes xmalloc to get memory.
129337         Fix a couple of other minor bugs while we're at it.
129339         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
129340         (NAMLEN): Remove macro.
129341         (malloc, realloc): Remove decls.
129342         (stpcpy): Likewise.
129343         ("xalloc.h"): Include.
129344         (NAME_SIZE_DEFAULT): New macro.
129345         (savedir): Use xmalloc / xrealloc to allocate memory.
129346         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
129347         Skip "" directory entries.
129348         Use strlen to calculate directory entry length, since the old method
129349         is rarely used these days and isn't worth supporting.
129350         Don't use a pointer after freeing it.
129351         Check for integer overflow when calculating allocation size.
129352         Use memcpy to copy entries, instead of stpcpy.
129353         Set errno properly when returning NULL.
129354         Check for readdir error.
129356 2000-06-26  Jim Meyering  <meyering@lucent.com>
129358         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
129360 2000-06-25  Jim Meyering  <meyering@lucent.com>
129362         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
129363         Linux header bug when _XOPEN_SOURCE is defined to 500.
129365 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
129367         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
129368         deficiency.
129370 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
129372         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
129373         Include xalloc.h.
129374         Don't include <stdlib.h>.  Don't declare malloc, realloc.
129376 2000-06-24  Jim Meyering  <meyering@lucent.com>
129378         * m4/strerror_r.m4: Revive this file -- to try out an experimental
129379         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
129380         for which strerror does return char*, but which lacks a conveniently
129381         accessible declaration of the function.  If the compile-test says
129382         strerror_r doesn't work, then resort to a `run'-test that works on
129383         BeOS and segfaults on DEC Unix.
129385 2000-06-24  Jim Meyering  <meyering@lucent.com>
129387         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
129389 2000-06-23  Paul Eggert  <eggert@twinsun.com>
129391         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
129392         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
129394 2000-06-23  Paul Eggert  <eggert@twinsun.com>
129396         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
129397         (mbrtowc, mbstate_t): Define substitutes if
129398         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
129399         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
129400         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
129402 2000-06-23  Jim Meyering  <meyering@lucent.com>
129404         * m4/afs.m4: Add missing AC_MSG_RESULT.
129405         Reported by Bruno Haible.
129407         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
129408         Suggestion from Bruno Haible.
129410 2000-06-23  Jim Meyering  <meyering@lucent.com>
129412         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
129414 2000-06-21  Jim Meyering  <meyering@lucent.com>
129416         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
129418 2000-06-21  Jim Meyering  <meyering@lucent.com>
129420         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
129421         (noinst_HEADERS): Add getstr.h.
129423         * lib/getline.c (getstr): Move into a separate file.
129424         * lib/getstr.c (getstr): New file, extracted from getline.c, with
129425         the following changes: new parameter, delim2; both delim[12]
129426         parameters have type `int', not `char'.  The latter would lose
129427         with 8-bit delimiters.
129428         * lib/getstr.h: New file.
129430 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
129432         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
129433         than 1024, return a memory chunk of least possible size, instead
129434         of size PATH_MAX + 2. In the loop, increment the size proportionally.
129435         Use free/xmalloc instead of xrealloc to avoid copying for very long
129436         paths.
129438 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
129440         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
129441         the empty string.
129443 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
129445         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
129446         address, not strdup.  Include <stdlib.h> and don't declare free().
129448 2000-06-19  Jim Meyering  <meyering@lucent.com>
129450         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
129452 2000-06-18  Jim Meyering  <meyering@lucent.com>
129454         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
129456         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
129457         `checking whether...' message to be consistent with that of the
129458         lstat test.
129460 2000-06-18  Jim Meyering  <meyering@lucent.com>
129462         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
129463         Besides, these days every porting target provides a mkdir function.
129465         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
129466         needed. (this snippet comes from src/system.h).
129468 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
129470         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
129472 2000-06-15  Paul Eggert  <eggert@twinsun.com>
129474         * lib/human.c (adjust_value): New function.
129475         (human_readable_inexact): Apply rounding style even when
129476         printing approximate values.
129478 2000-06-14  Paul Eggert  <eggert@twinsun.com>
129480         * lib/human.c (human_readable_inexact): Allow an input block
129481         size that is not a multiple of the output block size, and vice versa.
129482         Reported by Piergiorgio Sartor.
129484 2000-06-14  Paul Eggert  <eggert@twinsun.com>
129486         * lib/getdate.y (get_date): Apply relative times after time
129487         zone indicator, not before.  Reported by Todd A. Jacobs.
129489 2000-06-13  Jim Meyering  <meyering@lucent.com>
129491         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
129493         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
129495 2000-06-12  Paul Eggert  <eggert@twinsun.com>
129497         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
129499 2000-06-12  Jim Meyering  <meyering@lucent.com>
129501         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
129502         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
129503         optional argument.
129504         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
129505         the optional argument, `lib'.
129507 2000-06-08  Jim Meyering  <meyering@lucent.com>
129509         * m4/largefile.m4: Remove file (now that it's part of autoconf).
129511 2000-06-04  Paul Eggert  <eggert@twinsun.com>
129513         Rewrite largefile configuration so that we don't need to run
129514         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
129515         AC_CANONICAL_HOST in configure.in -- jmm]
129517         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
129518         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
129519         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
129520         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
129521         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
129522         All uses changed.
129523         Instead of inspecting the output of getconf, try to compile the
129524         test program without and with the macro definition.
129525         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
129526         for getconf.  Instead, check for the needed flags by compiling
129527         test programs.
129529 2000-06-04  Paul Eggert  <eggert@twinsun.com>
129531         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
129533 2000-06-04  Jim Meyering  <meyering@lucent.com>
129535         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
129536         SunOS 4.1.4 for which gid_t is an unsigned type.
129538 2000-06-03  Jim Meyering  <meyering@lucent.com>
129540         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
129541         now that autoconf requires that.
129543         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
129544         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
129545         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
129547 2000-06-03  Jim Meyering  <meyering@lucent.com>
129549         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
129551 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
129553         * m4/glibc21.m4: New file.
129554         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
129556 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
129558         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
129559         newer, don't install charset.alias.
129560         * lib/config.charset: Change the Linux/glibc rules so they become empty
129561         on glibc-2.1 or newer.
129563 2000-06-02  Jim Meyering  <meyering@lucent.com>
129565         * lib/mountlist.c: Back out last change.  Instead, do this...
129566         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
129567         me_dummy member using the same `ignore'-testing code.
129568         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
129569         fs_type strings.
129570         From Mark D. Roth.
129572 2000-05-29  Jim Meyering  <meyering@lucent.com>
129574         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
129575         mounts with the `ignore' attribute.  Based on a patch from
129576         Mark D. Roth.
129578 2000-05-28  Jim Meyering  <meyering@lucent.com>
129580         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
129581         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
129582         * m4/stat.m4: Likewise.
129583         * m4/lstat.m4: Likewise.
129584         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
129586         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
129587         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
129589 2000-05-26  Jim Meyering  <meyering@lucent.com>
129591         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
129593 2000-05-24  Jim Meyering  <meyering@lucent.com>
129595         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
129596         autoconf requires that.
129597         * m4/lib-check.m4: Likewise.
129598         * m4/jm-macros.m4: Likewise.
129599         * m4/strftime.m4: Likewise.
129601         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
129602         AC_CHECK_DECLS, now that autoconf requires that.
129604 2000-05-22  Jim Meyering  <meyering@lucent.com>
129606         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
129607         * m4/lstat.m4: Likewise.
129609 2000-05-22  Jim Meyering  <meyering@lucent.com>
129611         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
129613 2000-05-20  Jim Meyering  <meyering@lucent.com>
129615         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
129616         (jm_PREREQ): Use it.
129618 2000-05-18  Jim Meyering  <meyering@lucent.com>
129620         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
129621         back, too, since it may have been modified by allocate_entry.
129622         (hash_delete): Rewrite to use neither the assignment operator
129623         nor the comma operator in an if-expression.
129625 2000-05-15  Paul Eggert  <eggert@twinsun.com>
129627         * lib/closeout.c:
129628         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
129629         Remove; no longer needed.
129630         "quotearg.h": Add include.
129631         (file_name): Do not bother to explicitly initialize to NULL; it's less
129632         efficient on some hosts.
129633         (close_stdout_status): Remove test as to whether stdout was already
129634         closed; it breaks for the case "echo x | sort >&-".
129635         Quote file name colons.
129636         Do not assume that _("write error") lacks format strings.
129638 2000-05-15  Jim Meyering  <meyering@lucent.com>
129640         * lib/version-etc.c (version_etc_copyright): Update the copyright
129641         string used in all --version output.
129643 2000-05-14  Jim Meyering  <meyering@lucent.com>
129645         * lib/closeout.c (close_stdout_set_file_name): New function.
129646         (close_stdout_status): Use new file-scoped global.
129647         Return right away if fstat says the stdout file descriptor is invalid.
129648         * lib/closeout.h (close_stdout_set_file_name): Declare.
129650 2000-05-10  Jim Meyering  <meyering@lucent.com>
129652         * lib/closeout.c [default_exit_status]: New file-scoped variable.
129653         (close_stdout_set_status): New function.
129654         * lib/closeout.h (close_stdout_set_status): Declare.
129656 2000-05-09  Jim Meyering  <meyering@lucent.com>
129658         * m4/gettext.m4: Rename this...
129659         * m4/libintl.m4: ...to this.
129661 2000-05-08  Jim Meyering  <meyering@lucent.com>
129663         * lib/long-options.c: Don't include closeout.h.
129664         (parse_long_options): Don't call close_stdout for --version.
129666 2000-05-06  Paul Eggert  <eggert@twinsun.com>
129668         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
129669         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
129670         2.1.3 bug.  This avoids a clash when files like regex.c define
129671         _GNU_SOURCE.
129673 2000-05-06  Jim Meyering  <meyering@lucent.com>
129675         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
129676         (AC_REPLACE_FUNCS): Add strnlen.
129678         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
129679         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
129681         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
129682         AC_SEARCH_LIBS call for nanosleep.
129683         (LIB_NANOSLEEP): Set and AC_SUBST.
129685 2000-05-06  Jim Meyering  <meyering@lucent.com>
129687         * lib/strnlen.c: Undefine __strnlen and strnlen.
129688         [!weak_alias]: Define __strnlen to strnlen.
129690         * lib/atexit.c: New file, from libiberty.
129692 2000-05-06  Jim Meyering  <meyering@lucent.com>
129694         * lib/closeout.c (close_stdout_status): Also check for errors on the
129695         stderr stream.
129697 2000-05-05  Jim Meyering  <meyering@lucent.com>
129699         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
129700         AC_SEARCH_LIBS call for clock_gettime.
129701         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
129703         * m4/search-libs.m4: Update from autoconf.
129705         su doesn't work on Solaris 2.6.
129706         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
129707         <shadow.h>.  Reported by Dragos Harabor.
129709 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
129711         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
129712         memcpy instead of xmalloc, xrealloc, path_concat.
129713         (locale_charset): Treat empty environment variables as absent.
129714         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
129716 2000-05-04  Jim Meyering  <meyering@lucent.com>
129718         * lib/getopt.c: Update from glibc.
129719         * lib/obstack.c: Likewise.
129720         * lib/obstack.h: Likewise.
129721         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
129722         file
129724         * lib/regex.h: Likewise.
129725         * lib/strndup.c: Likewise.
129726         * lib/strnlen.c: New file, from glibc.
129728 2000-05-03  Jim Meyering  <meyering@lucent.com>
129730         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
129732 2000-05-02  Paul Eggert  <eggert@twinsun.com>
129734         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
129735         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
129736         compile-time test, rather than inspecting host and OS, to
129737         decide whether to define _LARGEFILE_SOURCE.
129739 2000-05-01  Jim Meyering  <meyering@lucent.com>
129741         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
129743         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
129744         Based on a patch from Bruno Haible.
129746 2000-05-01  Jim Meyering  <meyering@lucent.com>
129748         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
129750 2000-04-29  Jim Meyering  <meyering@lucent.com>
129752         * lib/path-concat.c: Declare strdup only if it's not defined.
129753         * lib/canon-host.c: Likewise.
129755 2000-04-28  Jim Meyering  <meyering@lucent.com>
129757         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
129758         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
129759         is included first, then limits.h is included by locale.h by libintl.h.
129760         From John David Anglin.
129762 2000-04-25  Jim Meyering  <meyering@lucent.com>
129764         * lib/makepath.c (S_IRWXUGO): Define.
129765         (make_path): Always perform explicit chmod if MODE specifies any
129766         of the `special' permission bits.  Prompted by a bug report against
129767         install from Mate Wierdl and Joost van Baal.
129769 2000-04-18  Jim Meyering  <meyering@lucent.com>
129771         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
129772         (jm_PREREQ): Use it.
129774 2000-04-18  Jim Meyering  <meyering@lucent.com>
129776         * lib/README: New file.
129778         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
129779         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
129781 2000-04-17  Jim Meyering  <meyering@lucent.com>
129783         Get it right :-)
129784         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
129785         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
129786         Suggestion from Akim Demaille.
129788 2000-04-17  Jim Meyering  <meyering@lucent.com>
129790         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
129791         the definition of it to rpl_strftime also defined-away the system's
129792         declaration.
129794 2000-04-15  Jim Meyering  <meyering@lucent.com>
129796         Use `C' to denote so-called `contiguous' files, the same way
129797         that tar does.
129798         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
129799         (ftypelet): Use S_ISCTG.
129800         From Michael Deutschmann.
129802 2000-04-14  Jim Meyering  <meyering@lucent.com>
129804         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
129805         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
129806         clobbered.
129808 2000-04-14  Jim Meyering  <meyering@lucent.com>
129810         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
129812 2000-04-13  Jim Meyering  <meyering@lucent.com>
129814         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
129815         AH_VERBATIM to insert required #ifndef into config.h.in.
129816         Suggestion from Akim Demaille.
129818 2000-04-12  Jim Meyering  <meyering@lucent.com>
129820         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
129821         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
129822         Christian Krackowizer.
129824         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
129825         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
129826         (AC_SYS_LARGEFILE): Require.
129827         (AM_C_PROTOTYPES): Require.
129829 2000-04-08  Jim Meyering  <meyering@lucent.com>
129831         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
129832         names don't conflict.  Reported by Eli Zaretskii.
129834 2000-04-07  Jim Meyering  <meyering@lucent.com>
129836         * lib/putenv.c: Move inclusion of errno.h so it follows that of
129837         sys/types.h, to work around system header problems on AIX 3.2.5.
129838         From Bruno Haible.
129840 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
129842         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
129843         bug.  Deal with the different error behavior of Irix iconv.
129845 2000-04-05  Paul Eggert  <eggert@twinsun.com>
129847         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
129848         IRIX if the installer said otherwise.
129850 2000-04-05  Jim Meyering  <meyering@lucent.com>
129852         Portability tweaks required for ultrix4.3.
129853         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
129854         (jm_CHECK_DECLS): Add getutent to the list of functions.
129855         (_jm_DECL_HEADERS): Add utmpx.h.
129856         From John David Anglin.
129858         * m4/strftime.m4: Back out the 2000-04-02 change.
129859         Instead of that change, simply undefine putenv in the test program.
129861 2000-04-05  Jim Meyering  <meyering@lucent.com>
129863         Portability tweaks required for ultrix4.3.
129864         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
129865         getutent.
129866         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
129867         * lib/canon-host.c: Declare strdup.
129868         * lib/path-concat.c: Likewise.
129869         From John David Anglin.
129871 2000-04-04  Jim Meyering  <meyering@lucent.com>
129873         Be more DOS 8.3-friendly.
129874         * lib/ref-add.sin: Renamed from ref-add.sed.in.
129875         * lib/ref-del.sin: Renamed from ref-del.sed.in.
129876         * lib/Makefile.am: Reflect renaming.
129877         Reported by Eli Zaretskii.
129879         Use a temporary file name that won't clash with `charset.alias'
129880         in the DOS 8.3 name space.
129881         * lib/Makefile.am (charset_tmp): Define.
129882         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
129883         (uninstall-local): Likewise.
129884         Reported by Eli Zaretskii.
129886 2000-04-03  Jim Meyering  <meyering@lucent.com>
129888         * m4/gettext.m4: Fix typo in comment.
129890         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
129891         textutils/configure.in).  Suggestion from Paul Eggert.
129892         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
129894 2000-04-02  Paul Eggert  <eggert@twinsun.com>
129896         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
129897         variable in the shell rather than using putenv, which isn't
129898         portable.  This avoids the configure-time inter-test dependency
129899         on the potentially-renamed putenv function.
129901 2000-03-30  Paul Eggert  <eggert@twinsun.com>
129903         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
129904         before checking struct stat.st_blksize, so that
129905         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
129907 2000-03-29  Paul Eggert  <eggert@twinsun.com>
129909         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
129910         since strftime.c uses HAVE_STRFTIME to decide whether to use
129911         the underlying strftime.
129913 2000-03-29  Paul Eggert  <eggert@twinsun.com>
129915         * lib/time/strftime.c (my_strftime): Make sure we call the system
129916         strftime, not ourselves, when invoking the underlying strftime.
129918 2000-03-24  Jim Meyering  <meyering@lucent.com>
129920         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
129921         (charset_alias): Define.
129922         (install-exec-local): Factor out common code.
129923         (uninstall-local): Split lines longer than 80.
129924         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
129925         (SUFFIXES): Define.
129926         (.sed.in.sed): New rule.  Don't redirect directly to $@.
129927         (CLEANFILES): Add ref-add.sed and ref-del.sed.
129929 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
129931         * lib/config.charset: Output a line containing "Packages using this
129932         file".
129933         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
129934         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
129935         ref-del.sed): New rules.
129937 2000-03-17  Jim Meyering  <meyering@lucent.com>
129939         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
129940         Otherwise, include <strings.h>
129942 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
129944         * lib/unicodeio.c (utf8_wctomb): New function.
129945         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
129946         format instead of in UCS-4 with platform dependent endianness.
129948 2000-03-10  Jim Meyering  <meyering@lucent.com>
129950         * m4/lib-check.m4: Look for getspnam in -lgen, too.
129951         From Marco Franzen.
129953 2000-03-07  Paul Eggert  <eggert@twinsun.com>
129955         * lib/savedir.c (savedir): Work even if directory size is
129956         negative; this can happen with some screwy NFS configurations.
129958 2000-03-06  Jim Meyering  <meyering@lucent.com>
129960         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
129961         if it's NULL (because we ran out of memory).  From Bruno Haible.
129963 2000-03-05  Jim Meyering  <meyering@lucent.com>
129965         * lib/localcharset.c ("path-concat.h"): Include.
129966         (get_charset_aliases): Use path_concat instead of ANSI string
129967         concatenation.
129969         * lib/unicodeio.h (PARAMS): Define.
129970         Use it to guard prototype.
129972 2000-03-04  Jim Meyering  <meyering@lucent.com>
129974         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
129975         for lib/localcharset.c.
129977 2000-03-04  Jim Meyering  <meyering@lucent.com>
129979         * lib/Makefile.am (install-exec-local): Create $(libdir) before
129980         installing into it.
129981         (uninstall-local): Uncomment this rule so `make distcheck' works
129982         once again.
129984         * lib/unicodeio.c (<errno.h>): Include it.
129985         (errno): Declare if not defined.
129987         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
129989         * lib/config.charset: New version, incorporating remarks from a linux
129990         i18n mailing list.  From Bruno Haible.
129992 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
129994         * m4/codeset.m4: New file.
129995         * m4/iconv.m4: New file.
129996         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
129998 2000-03-03  Jim Meyering  <meyering@lucent.com>
130000         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
130002 2000-03-02  Jim Meyering  <meyering@lucent.com>
130004         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
130005         the messages come out on separate lines.
130007         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
130008         rather than jm_CHECK_DECLARATIONS.
130009         * m4/decl.m4: Remove now-unused file.
130011         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
130012         geteuid.
130014 2000-03-02  Jim Meyering  <meyering@lucent.com>
130016         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
130018 2000-03-01  Jim Meyering  <meyering@lucent.com>
130020         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
130021         * lib/unicodeio.c: Likewise.
130023 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
130025         * lib/config.charset: New file.
130026         * lib/localcharset.c: New file.
130027         * lib/unicodeio.h, lib/unicodeio.c: New files.
130028         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
130029         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
130030         (noinst_HEADERS): Add unicodeio.h.
130031         (all-local, install-exec-local, charset.alias): New targets.
130033 2000-02-28  Paul Eggert  <eggert@twinsun.com>
130035         * lib/quotearg.c (ALERT_CHAR): New macro.
130036         (quotearg_buffer_restyled): Use it.
130038 2000-02-27  Jim Meyering  <meyering@lucent.com>
130040         * m4/check-decl.m4: Add getenv to the list.
130042 2000-02-27  Jim Meyering  <meyering@lucent.com>
130044         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
130045         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
130047         * lib/backupfile.c: Guard inclusion of stdlib.h with
130048         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
130049         Declare malloc if needed.
130051         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
130052         `#ifndef HAVE_DECL..'
130053         now that autoconf always defines the HAVE_DECL_ symbols.
130054         * lib/human.c: Likewise.
130055         * lib/same.c: Likewise.
130056         * lib/strtoumax.c: Likewise.
130058         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
130059         declaration check was not run.
130060         * lib/hash.c: Likewise.
130061         * lib/human.c: Likewise.
130062         * lib/same.c: Likewise.
130063         * lib/strtoumax.c: Likewise.
130065         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
130066         `.', then first look up the entire `.'-containing string as a login
130067         name.
130069 2000-02-23  Jim Meyering  <meyering@lucent.com>
130071         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
130072         in place of my hack.
130074 2000-02-18  Paul Eggert  <eggert@twinsun.com>
130076         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
130077         (textint): New typedef.
130078         (parser_control): Member year changed from int to textint.
130079         All uses changed.
130080         (YYSTYPE): Removed; replaced by %union with int and textint members.
130081         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
130082         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
130083         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
130084         (tSNUMBER, tUNUMBER): Now of type <textintval>.
130085         (date, number, to_year): Use width of number in digits, not its value,
130086         to determine whether it's a 2-digit year, or a 2-digit time.
130087         (yylex): Store number of digits of numeric tokens.
130088         Reported by John Kendall.
130090         (parser_control): Changed from struct parser_control to typedef (for
130091         consistency).  All uses changed.
130093         (tID): Removed; not used.
130094         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
130096 2000-02-14  Paul Eggert  <eggert@twinsun.com>
130098         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
130099         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
130101 2000-02-12  Jim Meyering  <meyering@lucent.com>
130103         * lib/userspec.c (ISDIGIT): Define it.
130104         (isdigit): Remove definition.
130105         (is_number): Use ISDIGIT, not isdigit.
130106         <libintl.h>: Include.
130107         (_ and N_): Define.
130108         (parse_user_spec): Mark translatable strings.
130110 2000-02-10  Jim Meyering  <meyering@lucent.com>
130112         With these changes, nanosleep.[ch] are finally enough like the other
130113         lib/* replacement files to compile on a few more losing systems.
130115         * lib/nanosleep.h: Don't include config.h.
130116         Remove prototype from declaration of nanosleep.
130117         (PARAMS): Remove now-unneeded definition.
130118         * lib/nanosleep.c: #undef nanosleep.
130119         (rpl_nanosleep): Rename from nanosleep.
130121 2000-02-10  Jim Meyering  <meyering@lucent.com>
130123         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
130124         gnu_nanosleep to rpl_nanosleep.
130126 2000-02-09  Jim Meyering  <meyering@lucent.com>
130128         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
130129         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
130131 2000-02-08  Akim Demaille  <akim@epita.fr>
130133         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
130134         `[' and `]' and remove uses of `changequote'.
130135         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
130136         (AC_SYS_LARGEFILE): Likewise.
130137         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
130138         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
130139         of changequote.
130140         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
130141         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
130142         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
130143         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
130145 2000-02-05  Jim Meyering  <meyering@lucent.com>
130147         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
130148         Remove explicit use of AC_HEADER_TIME.  It is required by
130149         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
130150         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
130151         in autoconf whereby the expansion of the latter ended up preceding
130152         the expansion of its prerequisite, AC_HEADER_TIME.
130153         Reported by Volker Borchert.
130155 2000-02-03  Jim Meyering  <meyering@lucent.com>
130157         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
130159 2000-02-03  Jim Meyering  <meyering@lucent.com>
130161         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
130162         rather than with `#if HAVE_UTMPNAME'.
130164 2000-02-02  Jim Meyering  <meyering@lucent.com>
130166         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
130167         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
130168         Reported by Eli Zaretskii.
130170 2000-02-01  Jim Meyering  <meyering@lucent.com>
130172         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
130174 2000-01-31  Jim Meyering  <meyering@lucent.com>
130176         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
130177         functions.  Add the time.h and sys/time.h headers along with the
130178         AC_REQUIRE'ment of AC_HEADER_TIME.
130180 2000-01-31  Jim Meyering  <meyering@lucent.com>
130182         * lib/nanosleep.h (nanosleep): Guard declaration with
130183         `#if ! HAVE_DECL_NANOSLEEP'.
130184         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
130185         the declaration in that vendor's sys/timers.h.
130186         Reported by Christian Krackowizer.
130188         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
130189         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
130190         (ISPRINT): Likewise.
130191         Reported by Tom Tromey.
130193 2000-01-30  Jim Meyering  <meyering@lucent.com>
130195         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
130197         * m4/prereq.m4 (utmp_includes): Define.
130198         Check for ut_user and ut_name members in both struct utmpx
130199         and struct utmp.
130201 2000-01-30  Jim Meyering  <meyering@lucent.com>
130203         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
130204         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
130205         header files where only utmpx.ut_user is declared.
130207         * lib/readutmp.h (UT_USER): Define.
130209 2000-01-29  Jim Meyering  <meyering@lucent.com>
130211         * m4/lib-check.m4: New file containing library-related checks from
130212         fileutils and sh-utils (textutils had none).
130214 2000-01-28  Jim Meyering  <meyering@lucent.com>
130216         * m4/perl.m4: Change format of warning message to look more like that
130217         from the missing script.  Suggestion from François Pinard.
130219 2000-01-25  Jim Meyering  <meyering@lucent.com>
130221         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
130222         well as time.h in the compile check.
130223         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
130224         Fix typo in cross-compiling case: s/yes/no/.
130226 2000-01-23  Jim Meyering  <meyering@lucent.com>
130228         * m4/jm-macros.m4: Move df-related tests here from
130229         fileutils/configure.in
130231         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
130232         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
130234         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
130235         s/space/ac_fsusage_space/.
130236         (jm_FILE_SYSTEM_USAGE): Take two parameters.
130238         * m4/ftruncate.m4: New file (derived from part of
130239         fileutils/configure.in).
130240         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
130241         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
130243         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
130244         AC_SUBST these here, rather than just in sh-util/configure.in, so
130245         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
130246         all the same.
130247         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
130248         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
130249         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
130250         (AC_SUBST(POW_LIBM)): Likewise.
130251         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
130253 2000-01-23  Jim Meyering  <meyering@lucent.com>
130255         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
130256         obstack.c.
130258 2000-01-22  Jim Meyering  <meyering@lucent.com>
130260         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
130262         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
130264         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
130265         configure.in
130266         (AC_CHECK_HEADERS): Likewise for sh-utils.
130267         (AC_CHECK_HEADERS): Likewise for textutils.
130268         Merge the three lists of headers.
130270         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
130271         from fileutils' configure.in.
130273         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
130274         code. Moved tests into their own function (_jm_DECL_HEADERS) in
130275         check-decl.m4.
130277         * m4/check-decl.m4: Use #if rather than #ifdef.
130278         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
130279         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
130280         (_jm_DECL_HEADERS): Define new function.
130281         (jm_CHECK_DECLARATIONS): Require it.
130283 2000-01-22  Jim Meyering  <meyering@lucent.com>
130285         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
130286         [! HAVE_DECL_STRTOULL]: Declare strtoull.
130287         Required for some AIX systems.  Reported by Christian Krackowizer.
130288         [TESTING] (main): New function.
130290         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
130291         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
130292         letters.
130294         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
130295         iswprint.
130297         * lib/strverscmp.c (ISDIGIT): Define.
130298         (strverscmp): Use ISDIGIT, not isdigit.
130300 2000-01-19  Jim Meyering  <meyering@lucent.com>
130302         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
130303         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
130304         defines `struct timespec' in <sys/time.h>
130306         * m4/c-bs-a.m4: Remove uses of changequote altogether.
130307         Thanks to Akim for explaining.
130309 2000-01-17  Paul Eggert  <eggert@twinsun.com>
130311         * lib/nanosleep.c (nanosleep):
130312         Don't use SA_INTERRUPT to decide whether to call sigaction, as
130313         POSIX.1 doesn't require SA_INTERRUPT and some systems
130314         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
130315         it's been part of POSIX.1 since day 1 (in 1988).
130317 2000-01-17  Jim Meyering  <meyering@lucent.com>
130319         * lib/interlock: Remove unused file.  Reported by François Pinard.
130321 2000-01-16  Paul Eggert  <eggert@twinsun.com>
130323         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
130324         alert, backslash, formfeed, and vertical tab unnecessarily in
130325         shell quoting style.
130327 2000-01-16  Jim Meyering  <meyering@lucent.com>
130329         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
130330         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
130331         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
130332         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
130334 2000-01-16  Jim Meyering  <meyering@lucent.com>
130336         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
130337         because the latter didn't work.
130339 2000-01-15  Jim Meyering  <meyering@lucent.com>
130341         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
130342         (AC_REPLACE_FUNCS): Add memcpy and memset.
130343         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
130344         Add strpbrk.
130345         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
130347 2000-01-12  Jim Meyering  <meyering@lucent.com>
130349         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
130350         (jm_PREREQ): Use it.
130351         (jm_PREREQ_READUTMP): New macro.
130352         (jm_PREREQ): Use it.
130354 2000-01-11  Paul Eggert  <eggert@twinsun.com>
130356         Quote multibyte characters correctly.
130357         * m4/c-bs-a.m4: New file.
130358         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
130359         (jm_PREREQ): Use it.
130361 2000-01-11  Paul Eggert  <eggert@twinsun.com>
130363         * m4/uintmax_t.m4: Port to autoconf 2.13.
130365 2000-01-08  Jim Meyering  <meyering@ascend.com>
130367         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
130368         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
130370 2000-01-04  Jim Meyering  <meyering@ascend.com>
130372         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
130373         jm_STRUCT_DIRENT_D_TYPE.
130374         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
130375         jm_STRUCT_DIRENT_D_INO.
130376         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
130377         jm_STRUCT_UTIMBUF.
130378         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
130379         renamings.
130380         * m4/utime.m4: Likewise.
130382         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
130383         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
130385 2000-01-03  Paul Eggert  <eggert@twinsun.com>
130387         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
130388         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
130390 2000-01-02  Jim Meyering  <meyering@ascend.com>
130392         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
130393         remember if this is necessary.
130395 1999-12-26  Jim Meyering  <meyering@ascend.com>
130397         * m4/jm-macros.m4: Use it here.
130398         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
130400 1999-12-23  Jim Meyering  <meyering@ascend.com>
130402         * m4/jm-macros.m4: Check for clock_gettime (moved from
130403         fileutils/configure.in)
130404         Check for gettimeofday.
130406 1999-12-20  Jim Meyering  <meyering@ascend.com>
130408         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
130409         autoconf-2.14a-1999-12-20.
130411 1999-12-19  Jim Meyering  <meyering@ascend.com>
130413         * m4/lstat-slash.m4: New file.
130414         * m4/jm-macros.m4: Use the new macro:
130415         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
130417 1999-12-07  Jim Meyering  <meyering@ascend.com>
130419         * m4/perl.m4: Require that File::Compare be available, too.
130420         Too many systems seem to lack it.
130422         * m4/strftime.m4: Add checks for most of the cpp macros tested in
130423         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
130425 1999-11-18  Paul Eggert  <eggert@twinsun.com>
130427         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
130428         problem with the QNX 4.25 shell, which doesn't propagate exit
130429         status of failed commands inside shell assignments.
130431 1999-11-17  Jim Meyering  <meyering@ascend.com>
130433         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
130435 1999-11-07  Jim Meyering  <meyering@ascend.com>
130437         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
130439 1999-11-06  Jim Meyering  <meyering@ascend.com>
130441         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
130442         * m4/jm-macros.m4 (jm_MACROS): Use it here.
130444 1999-11-05  Jim Meyering  <meyering@ascend.com>
130446         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
130447         configure.in of textutils, fileutils, and sh-utils into this one
130448         (shared between those packages) file.
130449         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
130450         AC_STRUCT_ST_BLKSIZE.
130452 1999-11-03  Jim Meyering  <meyering@ascend.com>
130454         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
130455         of AC_CHECK_TYPE checks includes unistd.h.
130456         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
130457         Suggestion from Akim Demaille.
130459 1999-10-30  Jim Meyering  <meyering@ascend.com>
130461         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
130462         m4-quoted string.
130463         * m4/ls-mntd-fs.m4: Likewise.
130464         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
130465         * m4/jm-winsz1.m4: Likewise.
130467         * m4/const.m4: Remove file, since the fix made it into the experimental
130468         version of autoconf.
130469         * m4/mktime.m4: Likewise.
130471         * m4/check-type.m4: Remove file, now that the latest version of
130472         AC_CHECK_TYPE takes a third arg to specify additional #includes.
130474         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
130475         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
130476         AC_CHECK_TYPE.
130478 1999-10-04  Jim Meyering  <meyering@ascend.com>
130480         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
130482 1999-09-22  Paul Eggert  <eggert@twinsun.com>
130484         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
130485         2.95.1 bug with HP-UX 10.20.
130487 1999-09-17  Jim Meyering  <meyering@ascend.com>
130489         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
130490         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
130491         due to missing strdup (against sh-utils-2.0).
130493 1999-08-29  Jim Meyering  <meyering@ascend.com>
130495         * m4/jm-macros.m4: Require jm_BISON.
130496         * m4/bison.m4: New file.
130498 1999-08-17  Paul Eggert  <eggert@twinsun.com>
130500         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
130501         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
130503 1999-08-05  Jim Meyering  <meyering@ascend.com>
130505         * m4/getline.m4: Rename test file from conftestdata to conftest.data
130506         to avoid conflicts with `conftest' on 8+3 filesystems.
130507         Suggestion from Eli Zaretskii.
130509 1999-08-04  Jim Meyering  <meyering@ascend.com>
130511         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
130512         fileutils and sh-utils (textutils's getline test was inadequate).
130513         (AM_FUNC_GETLINE): Run this test.
130514         (AC_CHECK_FUNCS): Check for getdelim.
130515         Reported by Bob Proulx.
130517 1999-08-02  Jim Meyering  <meyering@ascend.com>
130519         * m4/jm-macros.m4: Add a comment.
130521 1999-08-01  Paul Eggert  <eggert@twinsun.com>
130523         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
130524         <inttypes.h> defines strtoumax as a macro (and not as a
130525         function).
130527 1999-08-01  Paul Eggert  <eggert@twinsun.com>
130529         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
130530         that we can shift, multiply and divide unsigned long long
130531         values; Ultrix cc can't do it.
130533 1999-08-01  Paul Eggert  <eggert@twinsun.com>
130535         * m4/mktime.m4: New file, which is a preview of what should appear
130536         in the next public autoconf release.
130538 1999-08-01  Paul Eggert  <eggert@twinsun.com>
130540         * m4/lfs.m4: Remove this file.
130541         * m4/largefile.m4: New file.  It contains the old contents of
130542         lfs.m4, except that all names with prefix AC_LFS have been
130543         changed to use the prefix AC_SYS_LARGEFILE instead, to be
130544         compatible with future autoconf versions.  Also, some minor m4
130545         quoting problems have been fixed.
130547 1999-08-01  Paul Eggert  <eggert@twinsun.com>
130549         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
130550         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
130551         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
130552         and simplify the shell code.
130554 1999-08-01  Jim Meyering  <meyering@ascend.com>
130556         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
130557         m4.
130559 1999-07-20  Jim Meyering  <meyering@ascend.com>
130561         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
130563 1999-07-15  Jim Meyering  <meyering@ascend.com>
130565         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
130567 1999-05-22  Jim Meyering  <meyering@ascend.com>
130569         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
130571 1999-05-20  Jim Meyering  <meyering@ascend.com>
130573         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
130574         Add a colon after each `then' in case $4 is empty.
130576 1999-05-16  Jim Meyering  <meyering@ascend.com>
130578         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
130580 1999-05-10  Jim Meyering  <meyering@ascend.com>
130582         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
130584         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
130585         AC_FUNC_MKTIME.
130587 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
130589         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
130591 1999-05-04  Paul Eggert  <eggert@twinsun.com>
130593         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
130594         not CPPFLAGS, so that linking works correctly in IRIX.
130596 1999-04-30  Paul Eggert  <eggert@twinsun.com>
130598         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
130600 1999-04-20  Paul Eggert  <eggert@twinsun.com>
130602         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
130603         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
130604         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
130605         jm_AC_TYPE_UNSIGNED_LONG_LONG.
130606         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
130608         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
130610 1999-04-20  Jim Meyering  <meyering@ascend.com>
130612         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
130613         AC_REPLACE xstroull if necessary.  From Paul Eggert.
130614         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
130616 1999-04-18  Jim Meyering  <meyering@ascend.com>
130618         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
130619         * m4/jm-macros.m4: Use it.
130621 1999-04-06  Jim Meyering  <meyering@ascend.com>
130623         * m4/strftime.m4: Remove test for %f.
130625 1999-03-29  Jim Meyering  <meyering@ascend.com>
130627         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
130628         superset of the AC_TYPE_* checks in the textutils, fileutils,
130629         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
130630         AC_TYPE_PID_T.
130632 1999-03-28  Jim Meyering  <meyering@ascend.com>
130634         * m4/jm-macros.m4: Define GNU_PACKAGE here.
130635         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
130636         replaced e.g., in the *.sh files of the sh-utils.
130638 1999-03-20  Jim Meyering  <meyering@ascend.com>
130640         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
130641         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
130642         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
130644 1999-03-19  Jim Meyering  <meyering@ascend.com>
130646         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
130648 1999-03-12  Jim Meyering  <meyering@ascend.com>
130650         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
130652 1999-03-07  Jim Meyering  <meyering@ascend.com>
130654         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
130655         declared.
130657 1999-02-17  Jim Meyering  <meyering@ascend.com>
130659         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
130660         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
130662 1999-02-07  Jim Meyering  <meyering@ascend.com>
130664         * m4/group-member.m4: New file -- extracted from sh-utils'
130665         configure.in.
130667         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
130668         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
130670 1999-02-06  Jim Meyering  <meyering@ascend.com>
130672         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
130673         * m4/fnmatch.m4: Likewise.
130674         * m4/getgroups.m4: Likewise.
130675         * m4/lstat.m4: Likewise.
130676         * m4/malloc.m4: Likewise.
130677         * m4/putenv.m4: Likewise.
130678         * m4/realloc.m4: Likewise.
130679         * m4/regex.m4: Likewise.
130680         * m4/stat.m4: Likewise.
130681         * m4/strftime.m4: Likewise.
130682         Suggestion from Alain Magloire.
130684         * m4/chown.m4: Use `.$ac_objext', not `.o'.
130685         * m4/fnmatch.m4: Likewise.
130686         * m4/getgroups.m4: Likewise.
130687         * m4/getline.m4: Likewise.
130688         * m4/lstat.m4: Likewise.
130689         * m4/malloc.m4: Likewise.
130690         * m4/memcmp.m4: Likewise.
130691         * m4/putenv.m4: Likewise.
130692         * m4/realloc.m4: Likewise.
130693         * m4/regex.m4: Likewise.
130694         * m4/stat.m4: Likewise.
130695         * m4/strftime.m4: Likewise.
130696         Suggestion from Alain Magloire.
130698         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
130699         an argument.
130701         * m4/regex.m4: Add a run-time Test for proper operation of
130702         re_compile_pattern.
130704 1999-01-31  Jim Meyering  <meyering@ascend.com>
130706         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
130708 1999-01-30  Jim Meyering  <meyering@ascend.com>
130710         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
130712         * m4/jm-mktime.m4: Make this a wrapper around the official
130713         AM_FUNC_MKTIME rather than my private copy, now that the official one
130714         is up to date.
130715         * m4/mktime.m4: Remove file.
130717         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
130718         * m4/uptime.m4: Likewise.
130719         * m4/uintmax_t.m4: Likewise.
130721 1999-01-28  Jim Meyering  <meyering@ascend.com>
130723         * m4/jm-macros.m4: Use jm_AFS.
130724         * m4/afs.m4: New file (from fileutils' configure.in).
130726         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
130727         * m4/chown.m4: Likewise.
130728         * m4/d-ino.m4: Likewise.
130729         * m4/d-type.m4: Likewise.
130730         * m4/fnmatch.m4: Likewise.
130731         * m4/getgroups.m4: Likewise.
130732         * m4/gettext.m4: Likewise.
130733         * m4/jm-mktime.m4: Likewise.
130734         * m4/jm-winsz2.m4: Likewise.
130735         * m4/lcmessage.m4: Likewise.
130736         * m4/ls-mntd-fs.m4: Likewise.
130737         * m4/malloc.m4: Likewise.
130738         * m4/memcmp.m4: Likewise.
130739         * m4/putenv.m4: Likewise.
130740         * m4/realloc.m4: Likewise.
130741         * m4/st_mtim.m4: Likewise.
130742         * m4/strftime.m4: Likewise.
130744 1999-01-16  Jim Meyering  <meyering@ascend.com>
130746         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
130747         (ARGMATCH_DIE_DECL): Define.
130749 1999-01-12  Jim Meyering  <meyering@ascend.com>
130751         * m4/Makefile.am.in: Rewrite to avoid using fmt.
130752         Reported by Lars Hecking.
130754 1999-01-10  Jim Meyering  <meyering@ascend.com>
130756         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
130757         gross kludge.
130758         * m4/inttypes_h.m4: Likewise.
130759         * m4/lstat.m4: Likewise.
130760         * m4/malloc.m4: Likewise.
130761         * m4/readdir.m4: Likewise.
130762         * m4/realloc.m4: Likewise.
130763         * m4/st_dm_mode.m4: Likewise.
130764         * m4/stat.m4: Likewise.
130765         * m4/utimbuf.m4: Likewise.
130766         * m4/utimes.m4: Likewise.
130768         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
130769         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
130770         comments in config.h.in are meaningful.
130772         * m4/jm-macros.m4: Require autoconf-2.13 here.
130774         * m4/regex.m4: By default, don't use the included regex.c on systems
130775         with glibc 2.  Suggestion from Uli Drepper.
130777 1999-01-02  Jim Meyering  <meyering@ascend.com>
130779         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
130781 1998-12-18  Jim Meyering  <meyering@ascend.com>
130783         * m4/Makefile.am.in (Makefile.am): Simplify rule.
130784         Based on a suggestion from Lars Hecking.
130786 1998-11-16  Paul Eggert  <eggert@twinsun.com>
130788         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
130790 1998-11-16  Jim Meyering  <meyering@ascend.com>
130792         * m4/lfs.m4: Double-quote the `uname...` expression.
130794 1998-11-14  Jim Meyering  <meyering@ascend.com>
130796         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
130797         * m4/stat.m4: Likewise.
130799 1998-11-03  Jim Meyering  <meyering@ascend.com>
130801         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
130802         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
130804 1998-10-18  Jim Meyering  <meyering@ascend.com>
130806         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
130808 1998-10-17  Jim Meyering  <meyering@ascend.com>
130810         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
130811         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
130812         calls for those previously hard-coded headers.  Instead, take a new
130813         parameter.
130814         (jm_CHECK_DECLARATIONS): Reflect interface change.
130815         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
130816         (jm_CHECK_DECL_LOCALTIME_R): New macro.
130818         * m4/mktime.m4: Test for spring-forward gap before long-running test.
130820 1998-10-14  Jim Meyering  <meyering@ascend.com>
130822         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
130823         instead of "TZ=America/Vancouver".  From Paul Eggert.
130825 1998-10-11  Jim Meyering  <meyering@ascend.com>
130827         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
130828         This adds a test for a recently added compatibility fix for mktime.c.
130829         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
130831 1998-09-27  Jim Meyering  <meyering@ascend.com>
130833         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
130835         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
130836         ../configure.in, including a change from Gordon Matzigkeit to allow
130837         cross-compiling for the Hurd.
130839         * m4/glibc.m4: New file/macro to test for the GNU C Library
130840         versions 1 and 2.  From Gordon Matzigkeit.
130841         Indent.
130843 1998-09-21  Jim Meyering  <meyering@ascend.com>
130845         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
130847 1998-08-18  Paul Eggert  <eggert@twinsun.com>
130849         Port nanosecond-resolution times to UnixWare 2.1.2 and
130850         pedantic Solaris 2.6.
130852         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
130853         AC_STRUCT_ST_MTIM.
130854         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
130855         Generate name of ns member, instead of just 1 or undef.
130856         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
130858 1998-08-15  Jim Meyering  <meyering@ascend.com>
130860         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
130861         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
130862         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
130863         instead of jm_TYPE_SSIZE_T.
130865 1998-08-12  Jim Meyering  <meyering@ascend.com>
130867         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
130869 1998-08-02  Jim Meyering  <meyering@ascend.com>
130871         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
130872         in acconfig.h manually.
130874 1998-07-31  Paul Eggert  <eggert@twinsun.com>
130876         * m4/st_mtim.m4: New file.
130878 1998-07-28  Jim Meyering  <meyering@ascend.com>
130880         * m4/utimes.m4: Undef stat.
130882 1998-07-25  Jim Meyering  <meyering@ascend.com>
130884         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
130885         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
130887 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
130889         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
130890         uid and gid actually remain unchanged.
130892 1998-07-07  Jim Meyering  <meyering@ascend.com>
130894         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
130896 1998-07-04  Jim Meyering  <meyering@ascend.com>
130898         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
130899         to prove that this macro can be used in packages without regex.c.
130901 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
130903         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
130904         is to be used.
130906 1998-07-03  Jim Meyering  <meyering@ascend.com>
130908         * m4/gettext.m4: Add -lintl if it's found to be necessary.
130910         * m4/gettext.m4: New file -- from gettext-0.10.35.
130911         * m4/lcmessage.m4: Likewise.
130912         * m4/progtest.m4: Likewise.
130914         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
130915         * m4/jm-macros.m4: Require the new macro.
130917 1998-06-29  Jim Meyering  <meyering@ascend.com>
130919         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
130920         for the definition of NGROUPS (used in a system header included
130921         by sys/mount.h).
130923 1998-06-28  Jim Meyering  <meyering@ascend.com>
130925         * m4/ls-mntd-fs.m4: New file.
130926         * m4/fstypename.m4: New file.
130928         * m4/jm-macros.m4: Require the new macro.
130929         * m4/jm-glibc-io.m4: New file.
130931 1998-05-19  Jim Meyering  <meyering@ascend.com>
130933         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
130934         * m4/lchown.m4: New file.
130936         * m4/Makefile.am.in: New file.
130937         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
130939 1998-05-14  Jim Meyering  <meyering@ascend.com>
130941         * m4/Makefile.am (EXTRA_DIST): Add them.
130942         * m4/jm-macros.m4: New file.
130943         * m4/utimbuf.m4: New file.
130945 1998-05-12  Jim Meyering  <meyering@ascend.com>
130947         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
130949 1998-05-11  Jim Meyering  <meyering@ascend.com>
130951         * m4/isc-posix.m4: New file.
130953 1998-05-10  Jim Meyering  <meyering@ascend.com>
130955         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
130957 1998-05-09  Jim Meyering  <meyering@ascend.com>
130959         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
130960         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
130961         with automake.
130963         * m4/ssize_t.m4: New file.
130964         * m4/mktime.m4: Remove file -- the new automake has this now.
130966 1998-04-26  Jim Meyering  <meyering@ascend.com>
130968         * m4/assert.m4: New file.
130969         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
130971 1998-04-05  Jim Meyering  <meyering@ascend.com>
130973         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
130974         (jm_PREREQ): Use it here.
130976 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
130978         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
130979         in acconfig.h.
130981 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
130983         * m4/prereq.m4: New file.
130984         * m4/error.m4: New file.
130985         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
130987 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
130989         * m4/getline.m4: Don't set am_cv_func_working_getline before the
130990         cache-check for the same variable -- that defeated the purpose of
130991         the test; the test program was never run.  This was a problem only
130992         on systems with losing getline functions -- HP-UX 10.20 is one.
130993         Reported by Bjorn Helgaas.
130995 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
130997         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
130999 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
131001         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
131003         * m4/const.m4: New file.  Use an initializer in this declaration
131004         typedef int charset[2]; const charset x;
131005         Reported by Bob Glickstein.
131007 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
131009         * m4/chown.m4: Fix reversed types on -1 args to chown.
131010         From Kaveh Ghazi.
131012 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
131014         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
131015         Add lseek and memchr.
131017         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
131018         T.E.Dickey <dickey@clark.net> said that some older preprocessors
131019         have a 20-character limit on names.
131021 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
131023         * m4/inttypes_h.m4: New file.
131024         * m4/uintmax_t.m4: New file.
131025         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
131028         -----
131030         Local Variables:
131031         coding: utf-8
131032         End:
131034         Copyright (C) 1997-2020 Free Software Foundation, Inc.
131036         Copying and distribution of this file, with or without
131037         modification, are permitted provided the copyright notice
131038         and this notice are preserved.